2006-03-16 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / ld / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ldmain.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874 --with-included-gettext use the GNU gettext library included here
875
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
926 *)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
944 *)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
978 fi
979
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324 ac_aux_dir=
1325 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1326 if test -f $ac_dir/install-sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 break
1330 elif test -f $ac_dir/install.sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 break
1334 elif test -f $ac_dir/shtool; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 break
1338 fi
1339 done
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1343 { (exit 1); exit 1; }; }
1344 fi
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349 # Make sure we can run config.sub.
1350 $ac_config_sub sun4 >/dev/null 2>&1 ||
1351 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1352 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1353 { (exit 1); exit 1; }; }
1354
1355 echo "$as_me:$LINENO: checking build system type" >&5
1356 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1357 if test "${ac_cv_build+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 ac_cv_build_alias=$build_alias
1361 test -z "$ac_cv_build_alias" &&
1362 ac_cv_build_alias=`$ac_config_guess`
1363 test -z "$ac_cv_build_alias" &&
1364 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1365 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1366 { (exit 1); exit 1; }; }
1367 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1368 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1369 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1370 { (exit 1); exit 1; }; }
1371
1372 fi
1373 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1374 echo "${ECHO_T}$ac_cv_build" >&6
1375 build=$ac_cv_build
1376 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1377 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1378 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
1380
1381 echo "$as_me:$LINENO: checking host system type" >&5
1382 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1383 if test "${ac_cv_host+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386 ac_cv_host_alias=$host_alias
1387 test -z "$ac_cv_host_alias" &&
1388 ac_cv_host_alias=$ac_cv_build_alias
1389 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1390 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1391 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1392 { (exit 1); exit 1; }; }
1393
1394 fi
1395 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1396 echo "${ECHO_T}$ac_cv_host" >&6
1397 host=$ac_cv_host
1398 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403 echo "$as_me:$LINENO: checking target system type" >&5
1404 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1405 if test "${ac_cv_target+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 ac_cv_target_alias=$target_alias
1409 test "x$ac_cv_target_alias" = "x" &&
1410 ac_cv_target_alias=$ac_cv_host_alias
1411 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1415
1416 fi
1417 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1418 echo "${ECHO_T}$ac_cv_target" >&6
1419 target=$ac_cv_target
1420 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425 # The aliases save the names the user supplied, while $host etc.
1426 # will get canonicalized.
1427 test -n "$target_alias" &&
1428 test "$program_prefix$program_suffix$program_transform_name" = \
1429 NONENONEs,x,x, &&
1430 program_prefix=${target_alias}-
1431 ac_ext=c
1432 ac_cpp='$CPP $CPPFLAGS'
1433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1436 if test -n "$ac_tool_prefix"; then
1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1438 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444 if test -n "$CC"; then
1445 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 break 2
1457 fi
1458 done
1459 done
1460
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465 echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468 echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$ac_cv_prog_CC"; then
1474 ac_ct_CC=$CC
1475 # Extract the first word of "gcc", so it can be a program name with args.
1476 set dummy gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$ac_ct_CC"; then
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 for ac_exec_ext in '' $ac_executable_extensions; do
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492 ac_cv_prog_ac_ct_CC="gcc"
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494 break 2
1495 fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1505 else
1506 echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510 CC=$ac_ct_CC
1511 else
1512 CC="$ac_cv_prog_CC"
1513 fi
1514
1515 if test -z "$CC"; then
1516 if test -n "$ac_tool_prefix"; then
1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}cc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 if test -n "$CC"; then
1525 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 else
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 for as_dir in $PATH
1529 do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_CC="${ac_tool_prefix}cc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538 done
1539 done
1540
1541 fi
1542 fi
1543 CC=$ac_cv_prog_CC
1544 if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546 echo "${ECHO_T}$CC" >&6
1547 else
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1550 fi
1551
1552 fi
1553 if test -z "$ac_cv_prog_CC"; then
1554 ac_ct_CC=$CC
1555 # Extract the first word of "cc", so it can be a program name with args.
1556 set dummy cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562 if test -n "$ac_ct_CC"; then
1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 for ac_exec_ext in '' $ac_executable_extensions; do
1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572 ac_cv_prog_ac_ct_CC="cc"
1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 break 2
1575 fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1582 if test -n "$ac_ct_CC"; then
1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1584 echo "${ECHO_T}$ac_ct_CC" >&6
1585 else
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 CC=$ac_ct_CC
1591 else
1592 CC="$ac_cv_prog_CC"
1593 fi
1594
1595 fi
1596 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1606 else
1607 ac_prog_rejected=no
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1616 ac_prog_rejected=yes
1617 continue
1618 fi
1619 ac_cv_prog_CC="cc"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 break 2
1622 fi
1623 done
1624 done
1625
1626 if test $ac_prog_rejected = yes; then
1627 # We found a bogon in the path, so make sure we never use it.
1628 set dummy $ac_cv_prog_CC
1629 shift
1630 if test $# != 0; then
1631 # We chose a different compiler from the bogus one.
1632 # However, it has the same basename, so the bogon will be chosen
1633 # first if we set CC to just the basename; use the full file name.
1634 shift
1635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1636 fi
1637 fi
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 fi
1650 if test -z "$CC"; then
1651 if test -n "$ac_tool_prefix"; then
1652 for ac_prog in cl
1653 do
1654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667 IFS=$as_save_IFS
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 break 2
1674 fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 CC=$ac_cv_prog_CC
1681 if test -n "$CC"; then
1682 echo "$as_me:$LINENO: result: $CC" >&5
1683 echo "${ECHO_T}$CC" >&6
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689 test -n "$CC" && break
1690 done
1691 fi
1692 if test -z "$CC"; then
1693 ac_ct_CC=$CC
1694 for ac_prog in cl
1695 do
1696 # Extract the first word of "$ac_prog", so it can be a program name with args.
1697 set dummy $ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 if test -n "$ac_ct_CC"; then
1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_ac_ct_CC="$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717 done
1718 done
1719
1720 fi
1721 fi
1722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1723 if test -n "$ac_ct_CC"; then
1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1725 echo "${ECHO_T}$ac_ct_CC" >&6
1726 else
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 fi
1730
1731 test -n "$ac_ct_CC" && break
1732 done
1733
1734 CC=$ac_ct_CC
1735 fi
1736
1737 fi
1738
1739
1740 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1745
1746 # Provide some information about the compiler.
1747 echo "$as_me:$LINENO:" \
1748 "checking for C compiler version" >&5
1749 ac_compiler=`set X $ac_compile; echo $2`
1750 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1751 (eval $ac_compiler --version </dev/null >&5) 2>&5
1752 ac_status=$?
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1756 (eval $ac_compiler -v </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1761 (eval $ac_compiler -V </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765
1766 cat >conftest.$ac_ext <<_ACEOF
1767 /* confdefs.h. */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1772
1773 int
1774 main ()
1775 {
1776
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 ac_clean_files_save=$ac_clean_files
1782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1783 # Try to create an executable without -o first, disregard a.out.
1784 # It will help us diagnose broken compilers, and finding out an intuition
1785 # of exeext.
1786 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1789 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1790 (eval $ac_link_default) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # Find the output, starting from the most likely. This scheme is
1795 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1796 # resort.
1797
1798 # Be careful to initialize this variable, since it used to be cached.
1799 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 ac_cv_exeext=
1801 # b.out is created by i960 compilers.
1802 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 do
1804 test -f "$ac_file" || continue
1805 case $ac_file in
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1807 ;;
1808 conftest.$ac_ext )
1809 # This is the source file.
1810 ;;
1811 [ab].out )
1812 # We found the default executable, but exeext='' is most
1813 # certainly right.
1814 break;;
1815 *.* )
1816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1817 # FIXME: I believe we export ac_cv_exeext for Libtool,
1818 # but it would be cool to find out if it's true. Does anybody
1819 # maintain Libtool? --akim.
1820 export ac_cv_exeext
1821 break;;
1822 * )
1823 break;;
1824 esac
1825 done
1826 else
1827 echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&2;}
1834 { (exit 77); exit 77; }; }
1835 fi
1836
1837 ac_exeext=$ac_cv_exeext
1838 echo "$as_me:$LINENO: result: $ac_file" >&5
1839 echo "${ECHO_T}$ac_file" >&6
1840
1841 # Check the compiler produces executables we can run. If not, either
1842 # the compiler is broken, or we cross compile.
1843 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1844 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1845 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1846 # If not cross compiling, check that we can run a simple program.
1847 if test "$cross_compiling" != yes; then
1848 if { ac_try='./$ac_file'
1849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1850 (eval $ac_try) 2>&5
1851 ac_status=$?
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1854 cross_compiling=no
1855 else
1856 if test "$cross_compiling" = maybe; then
1857 cross_compiling=yes
1858 else
1859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&5
1862 echo "$as_me: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&2;}
1865 { (exit 1); exit 1; }; }
1866 fi
1867 fi
1868 fi
1869 echo "$as_me:$LINENO: result: yes" >&5
1870 echo "${ECHO_T}yes" >&6
1871
1872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1873 ac_clean_files=$ac_clean_files_save
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1878 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1879 echo "${ECHO_T}$cross_compiling" >&6
1880
1881 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1884 (eval $ac_link) 2>&5
1885 ac_status=$?
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; then
1888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1890 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 # `rm'.
1892 for ac_file in conftest.exe conftest conftest.*; do
1893 test -f "$ac_file" || continue
1894 case $ac_file in
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897 export ac_cv_exeext
1898 break;;
1899 * ) break;;
1900 esac
1901 done
1902 else
1903 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&5
1905 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1908 fi
1909
1910 rm -f conftest$ac_cv_exeext
1911 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1912 echo "${ECHO_T}$ac_cv_exeext" >&6
1913
1914 rm -f conftest.$ac_ext
1915 EXEEXT=$ac_cv_exeext
1916 ac_exeext=$EXEEXT
1917 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1918 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1919 if test "${ac_cv_objext+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 cat >conftest.$ac_ext <<_ACEOF
1923 /* confdefs.h. */
1924 _ACEOF
1925 cat confdefs.h >>conftest.$ac_ext
1926 cat >>conftest.$ac_ext <<_ACEOF
1927 /* end confdefs.h. */
1928
1929 int
1930 main ()
1931 {
1932
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 rm -f conftest.o conftest.obj
1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939 (eval $ac_compile) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944 case $ac_file in
1945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1947 break;;
1948 esac
1949 done
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&5
1956 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1959 fi
1960
1961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 fi
1963 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1964 echo "${ECHO_T}$ac_cv_objext" >&6
1965 OBJEXT=$ac_cv_objext
1966 ac_objext=$OBJEXT
1967 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1968 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1969 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h. */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1978
1979 int
1980 main ()
1981 {
1982 #ifndef __GNUC__
1983 choke me
1984 #endif
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_compiler_gnu=yes
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_compiler_gnu=no
2018 fi
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025 GCC=`test $ac_compiler_gnu = yes && echo yes`
2026 ac_test_CFLAGS=${CFLAGS+set}
2027 ac_save_CFLAGS=$CFLAGS
2028 CFLAGS="-g"
2029 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031 if test "${ac_cv_prog_cc_g+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2040
2041 int
2042 main ()
2043 {
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2052 ac_status=$?
2053 grep -v '^ *+' conftest.er1 >conftest.err
2054 rm -f conftest.er1
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -z "$ac_c_werror_flag"
2059 || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_prog_cc_g=yes
2072 else
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_cv_prog_cc_g=no
2077 fi
2078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082 if test "$ac_test_CFLAGS" = set; then
2083 CFLAGS=$ac_save_CFLAGS
2084 elif test $ac_cv_prog_cc_g = yes; then
2085 if test "$GCC" = yes; then
2086 CFLAGS="-g -O2"
2087 else
2088 CFLAGS="-g"
2089 fi
2090 else
2091 if test "$GCC" = yes; then
2092 CFLAGS="-O2"
2093 else
2094 CFLAGS=
2095 fi
2096 fi
2097 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 ac_cv_prog_cc_stdc=no
2103 ac_save_CC=$CC
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h. */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h. */
2110 #include <stdarg.h>
2111 #include <stdio.h>
2112 #include <sys/types.h>
2113 #include <sys/stat.h>
2114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2115 struct buf { int x; };
2116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2118 char **p;
2119 int i;
2120 {
2121 return p[i];
2122 }
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2124 {
2125 char *s;
2126 va_list v;
2127 va_start (v,p);
2128 s = g (p, va_arg (v,int));
2129 va_end (v);
2130 return s;
2131 }
2132
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2134 function prototypes and stuff, but not '\xHH' hex character constants.
2135 These don't provoke an error unfortunately, instead are silently treated
2136 as 'x'. The following induces an error, until -std1 is added to get
2137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2138 array size at least. It's necessary to write '\x00'==0 to get something
2139 that's true only with -std1. */
2140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141
2142 int test (int i, double x);
2143 struct s1 {int (*f) (int a);};
2144 struct s2 {int (*f) (double a);};
2145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146 int argc;
2147 char **argv;
2148 int
2149 main ()
2150 {
2151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 # Don't try gcc -ansi; that turns off useful extensions and
2157 # breaks some systems' header files.
2158 # AIX -qlanglvl=ansi
2159 # Ultrix and OSF/1 -std1
2160 # HP-UX 10.20 and later -Ae
2161 # HP-UX older versions -Aa -D_HPUX_SOURCE
2162 # SVR4 -Xc -D__EXTENSIONS__
2163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 do
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
2175 { ac_try='test -z "$ac_c_werror_flag"
2176 || test ! -s conftest.err'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_cv_prog_cc_stdc=$ac_arg
2189 break
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 fi
2195 rm -f conftest.err conftest.$ac_objext
2196 done
2197 rm -f conftest.$ac_ext conftest.$ac_objext
2198 CC=$ac_save_CC
2199
2200 fi
2201
2202 case "x$ac_cv_prog_cc_stdc" in
2203 x|xno)
2204 echo "$as_me:$LINENO: result: none needed" >&5
2205 echo "${ECHO_T}none needed" >&6 ;;
2206 *)
2207 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209 CC="$CC $ac_cv_prog_cc_stdc" ;;
2210 esac
2211
2212 # Some people use a C++ compiler to compile C. Since we use `exit',
2213 # in C++ we need to declare it. In case someone uses the same compiler
2214 # for both compiling C and C++ we need to have the C++ compiler decide
2215 # the declaration of exit, since it's the most demanding environment.
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #ifndef __cplusplus
2218 choke me
2219 #endif
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 for ac_declaration in \
2244 '' \
2245 'extern "C" void std::exit (int) throw (); using std::exit;' \
2246 'extern "C" void std::exit (int); using std::exit;' \
2247 'extern "C" void exit (int) throw ();' \
2248 'extern "C" void exit (int);' \
2249 'void exit (int);'
2250 do
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2257 $ac_declaration
2258 #include <stdlib.h>
2259 int
2260 main ()
2261 {
2262 exit (42);
2263 ;
2264 return 0;
2265 }
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2270 ac_status=$?
2271 grep -v '^ *+' conftest.er1 >conftest.err
2272 rm -f conftest.er1
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 :
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 continue
2295 fi
2296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297 cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h. */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2303 $ac_declaration
2304 int
2305 main ()
2306 {
2307 exit (42);
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>conftest.er1
2315 ac_status=$?
2316 grep -v '^ *+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -z "$ac_c_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 break
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 fi
2340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341 done
2342 rm -f conftest*
2343 if test -n "$ac_declaration"; then
2344 echo '#ifdef __cplusplus' >>confdefs.h
2345 echo $ac_declaration >>confdefs.h
2346 echo '#endif' >>confdefs.h
2347 fi
2348
2349 else
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 fi
2354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360
2361
2362 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2363 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2364 if test "${ac_cv_search_strerror+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 ac_func_search_save_LIBS=$LIBS
2368 ac_cv_search_strerror=no
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375
2376 /* Override any gcc2 internal prototype to avoid an error. */
2377 #ifdef __cplusplus
2378 extern "C"
2379 #endif
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char strerror ();
2383 int
2384 main ()
2385 {
2386 strerror ();
2387 ;
2388 return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_search_strerror="none required"
2414 else
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 fi
2419 rm -f conftest.err conftest.$ac_objext \
2420 conftest$ac_exeext conftest.$ac_ext
2421 if test "$ac_cv_search_strerror" = no; then
2422 for ac_lib in cposix; do
2423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2424 cat >conftest.$ac_ext <<_ACEOF
2425 /* confdefs.h. */
2426 _ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2430
2431 /* Override any gcc2 internal prototype to avoid an error. */
2432 #ifdef __cplusplus
2433 extern "C"
2434 #endif
2435 /* We use char because int might match the return type of a gcc2
2436 builtin and then its argument prototype would still apply. */
2437 char strerror ();
2438 int
2439 main ()
2440 {
2441 strerror ();
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext conftest$ac_exeext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2448 (eval $ac_link) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest$ac_exeext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_cv_search_strerror="-l$ac_lib"
2469 break
2470 else
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2473
2474 fi
2475 rm -f conftest.err conftest.$ac_objext \
2476 conftest$ac_exeext conftest.$ac_ext
2477 done
2478 fi
2479 LIBS=$ac_func_search_save_LIBS
2480 fi
2481 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2482 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2483 if test "$ac_cv_search_strerror" != no; then
2484 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2485
2486 fi
2487
2488
2489 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2490 am__api_version="1.9"
2491 # Find a good install program. We prefer a C program (faster),
2492 # so one script is as good as another. But avoid the broken or
2493 # incompatible versions:
2494 # SysV /etc/install, /usr/sbin/install
2495 # SunOS /usr/etc/install
2496 # IRIX /sbin/install
2497 # AIX /bin/install
2498 # AmigaOS /C/install, which installs bootblocks on floppy discs
2499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502 # OS/2's system install, which has a completely different semantic
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2506 if test -z "$INSTALL"; then
2507 if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 # Account for people who put trailing slashes in PATH elements.
2516 case $as_dir/ in
2517 ./ | .// | /cC/* | \
2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2520 /usr/ucb/* ) ;;
2521 *)
2522 # OSF1 and SCO ODT 3.0 have their own names for install.
2523 # Don't use installbsd from OSF since it installs stuff as root
2524 # by default.
2525 for ac_prog in ginstall scoinst install; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528 if test $ac_prog = install &&
2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530 # AIX install. It has an incompatible calling convention.
2531 :
2532 elif test $ac_prog = install &&
2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2535 :
2536 else
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
2539 fi
2540 fi
2541 done
2542 done
2543 ;;
2544 esac
2545 done
2546
2547
2548 fi
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2551 else
2552 # As a last resort, use the slow shell script. We don't cache a
2553 # path for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the path is relative.
2556 INSTALL=$ac_install_sh
2557 fi
2558 fi
2559 echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 echo "${ECHO_T}$INSTALL" >&6
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Do `set' in a subshell so we don't clobber the current shell's
2576 # arguments. Must try -L first in case configure is actually a
2577 # symlink; some systems play weird games with the mod time of symlinks
2578 # (eg FreeBSD returns the mod time of the symlink's containing
2579 # directory).
2580 if (
2581 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2582 if test "$*" = "X"; then
2583 # -L didn't work.
2584 set X `ls -t $srcdir/configure conftest.file`
2585 fi
2586 rm -f conftest.file
2587 if test "$*" != "X $srcdir/configure conftest.file" \
2588 && test "$*" != "X conftest.file $srcdir/configure"; then
2589
2590 # If neither matched, then we have a broken ls. This can happen
2591 # if, for instance, CONFIG_SHELL is bash and it inherits a
2592 # broken ls alias from the environment. This has actually
2593 # happened. Such a system could not be considered "sane".
2594 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2595 alias in your environment" >&5
2596 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" >&2;}
2598 { (exit 1); exit 1; }; }
2599 fi
2600
2601 test "$2" = conftest.file
2602 )
2603 then
2604 # Ok.
2605 :
2606 else
2607 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2608 Check your system clock" >&5
2609 echo "$as_me: error: newly created file is older than distributed files!
2610 Check your system clock" >&2;}
2611 { (exit 1); exit 1; }; }
2612 fi
2613 echo "$as_me:$LINENO: result: yes" >&5
2614 echo "${ECHO_T}yes" >&6
2615 test "$program_prefix" != NONE &&
2616 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2617 # Use a double $ so make ignores it.
2618 test "$program_suffix" != NONE &&
2619 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2620 # Double any \ or $. echo might interpret backslashes.
2621 # By default was `s,x,x', remove it if useless.
2622 cat <<\_ACEOF >conftest.sed
2623 s/[\\$]/&&/g;s/;s,x,x,$//
2624 _ACEOF
2625 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2626 rm conftest.sed
2627
2628 # expand $ac_aux_dir to an absolute path
2629 am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634 am_missing_run="$MISSING --run "
2635 else
2636 am_missing_run=
2637 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639 fi
2640
2641 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2642 # We used to keeping the `.' as first argument, in order to
2643 # allow $(mkdir_p) to be used without argument. As in
2644 # $(mkdir_p) $(somedir)
2645 # where $(somedir) is conditionally defined. However this is wrong
2646 # for two reasons:
2647 # 1. if the package is installed by a user who cannot write `.'
2648 # make install will fail,
2649 # 2. the above comment should most certainly read
2650 # $(mkdir_p) $(DESTDIR)$(somedir)
2651 # so it does not work when $(somedir) is undefined and
2652 # $(DESTDIR) is not.
2653 # To support the latter case, we have to write
2654 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2655 # so the `.' trick is pointless.
2656 mkdir_p='mkdir -p --'
2657 else
2658 # On NextStep and OpenStep, the `mkdir' command does not
2659 # recognize any option. It will interpret all options as
2660 # directories to create, and then abort because `.' already
2661 # exists.
2662 for d in ./-p ./--version;
2663 do
2664 test -d $d && rmdir $d
2665 done
2666 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2667 if test -f "$ac_aux_dir/mkinstalldirs"; then
2668 mkdir_p='$(mkinstalldirs)'
2669 else
2670 mkdir_p='$(install_sh) -d'
2671 fi
2672 fi
2673
2674 for ac_prog in gawk mawk nawk awk
2675 do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_AWK+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$AWK"; then
2684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_AWK="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699
2700 fi
2701 fi
2702 AWK=$ac_cv_prog_AWK
2703 if test -n "$AWK"; then
2704 echo "$as_me:$LINENO: result: $AWK" >&5
2705 echo "${ECHO_T}$AWK" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2709 fi
2710
2711 test -n "$AWK" && break
2712 done
2713
2714 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 cat >conftest.make <<\_ACEOF
2721 all:
2722 @echo 'ac_maketemp="$(MAKE)"'
2723 _ACEOF
2724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726 if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2728 else
2729 eval ac_cv_prog_make_${ac_make}_set=no
2730 fi
2731 rm -f conftest.make
2732 fi
2733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736 SET_MAKE=
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740 SET_MAKE="MAKE=${MAKE-make}"
2741 fi
2742
2743 rm -rf .tst 2>/dev/null
2744 mkdir .tst 2>/dev/null
2745 if test -d .tst; then
2746 am__leading_dot=.
2747 else
2748 am__leading_dot=_
2749 fi
2750 rmdir .tst 2>/dev/null
2751
2752 DEPDIR="${am__leading_dot}deps"
2753
2754 ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757 am_make=${MAKE-make}
2758 cat > confinc << 'END'
2759 am__doit:
2760 @echo done
2761 .PHONY: am__doit
2762 END
2763 # If we don't find an include directive, just comment out the code.
2764 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2766 am__include="#"
2767 am__quote=
2768 _am_result=none
2769 # First try GNU make style include.
2770 echo "include confinc" > confmf
2771 # We grep out `Entering directory' and `Leaving directory'
2772 # messages which can occur if `w' ends up in MAKEFLAGS.
2773 # In particular we don't look at `^make:' because GNU make might
2774 # be invoked under some other name (usually "gmake"), in which
2775 # case it prints its new name instead of `make'.
2776 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777 am__include=include
2778 am__quote=
2779 _am_result=GNU
2780 fi
2781 # Now try BSD make style include.
2782 if test "$am__include" = "#"; then
2783 echo '.include "confinc"' > confmf
2784 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785 am__include=.include
2786 am__quote="\""
2787 _am_result=BSD
2788 fi
2789 fi
2790
2791
2792 echo "$as_me:$LINENO: result: $_am_result" >&5
2793 echo "${ECHO_T}$_am_result" >&6
2794 rm -f confinc confmf
2795
2796 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2797 if test "${enable_dependency_tracking+set}" = set; then
2798 enableval="$enable_dependency_tracking"
2799
2800 fi;
2801 if test "x$enable_dependency_tracking" != xno; then
2802 am_depcomp="$ac_aux_dir/depcomp"
2803 AMDEPBACKSLASH='\'
2804 fi
2805
2806
2807 if test "x$enable_dependency_tracking" != xno; then
2808 AMDEP_TRUE=
2809 AMDEP_FALSE='#'
2810 else
2811 AMDEP_TRUE='#'
2812 AMDEP_FALSE=
2813 fi
2814
2815
2816
2817 # test to see if srcdir already configured
2818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2819 test -f $srcdir/config.status; then
2820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822 { (exit 1); exit 1; }; }
2823 fi
2824
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827 if (cygpath --version) >/dev/null 2>/dev/null; then
2828 CYGPATH_W='cygpath -w'
2829 else
2830 CYGPATH_W=echo
2831 fi
2832 fi
2833
2834
2835 # Define the identity of the package.
2836 PACKAGE=ld
2837 VERSION=${BFD_VERSION}
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2842 _ACEOF
2843
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2847 _ACEOF
2848
2849 # Some tools Automake needs.
2850
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866
2867 # Installed binaries are usually stripped using `strip' when the user
2868 # run `make install-strip'. However `strip' might not be the right
2869 # tool to use in cross-compilation environments, therefore Automake
2870 # will honor the `STRIP' environment variable to overrule this program.
2871 if test "$cross_compiling" != no; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}strip; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_STRIP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 if test -n "$STRIP"; then
2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 STRIP=$ac_cv_prog_STRIP
2900 if test -n "$STRIP"; then
2901 echo "$as_me:$LINENO: result: $STRIP" >&5
2902 echo "${ECHO_T}$STRIP" >&6
2903 else
2904 echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908 fi
2909 if test -z "$ac_cv_prog_STRIP"; then
2910 ac_ct_STRIP=$STRIP
2911 # Extract the first word of "strip", so it can be a program name with args.
2912 set dummy strip; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$ac_ct_STRIP"; then
2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_ac_ct_STRIP="strip"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934
2935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936 fi
2937 fi
2938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939 if test -n "$ac_ct_STRIP"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2941 echo "${ECHO_T}$ac_ct_STRIP" >&6
2942 else
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947 STRIP=$ac_ct_STRIP
2948 else
2949 STRIP="$ac_cv_prog_STRIP"
2950 fi
2951
2952 fi
2953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954
2955 # We need awk for the "check" target. The system "awk" is bad on
2956 # some platforms.
2957 # Always define AMTAR for backward compatibility.
2958
2959 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960
2961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962
2963
2964
2965
2966 depcc="$CC" am_compiler_list=
2967
2968 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974 # We make a subdir and do the tests there. Otherwise we can end up
2975 # making bogus files that we don't know about and never remove. For
2976 # instance it was reported that on HP-UX the gcc test will end up
2977 # making a dummy file named `D' -- because `-MD' means `put the output
2978 # in D'.
2979 mkdir conftest.dir
2980 # Copy depcomp to subdir because otherwise we won't find it if we're
2981 # using a relative directory.
2982 cp "$am_depcomp" conftest.dir
2983 cd conftest.dir
2984 # We will build objects and dependencies in a subdirectory because
2985 # it helps to detect inapplicable dependency modes. For instance
2986 # both Tru64's cc and ICC support -MD to output dependencies as a
2987 # side effect of compilation, but ICC will put the dependencies in
2988 # the current directory while Tru64 will put them in the object
2989 # directory.
2990 mkdir sub
2991
2992 am_cv_CC_dependencies_compiler_type=none
2993 if test "$am_compiler_list" = ""; then
2994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 fi
2996 for depmode in $am_compiler_list; do
2997 # Setup a source with many dependencies, because some compilers
2998 # like to wrap large dependency lists on column 80 (with \), and
2999 # we should not choose a depcomp mode which is confused by this.
3000 #
3001 # We need to recreate these files for each test, as the compiler may
3002 # overwrite some of them when testing with obscure command lines.
3003 # This happens at least with the AIX C compiler.
3004 : > sub/conftest.c
3005 for i in 1 2 3 4 5 6; do
3006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008 # Solaris 8's {/usr,}/bin/sh.
3009 touch sub/conftst$i.h
3010 done
3011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013 case $depmode in
3014 nosideeffect)
3015 # after this tag, mechanisms are not by side-effect, so they'll
3016 # only be used when explicitly requested
3017 if test "x$enable_dependency_tracking" = xyes; then
3018 continue
3019 else
3020 break
3021 fi
3022 ;;
3023 none) break ;;
3024 esac
3025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026 # mode. It turns out that the SunPro C++ compiler does not properly
3027 # handle `-M -o', and we need to detect this.
3028 if depmode=$depmode \
3029 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032 >/dev/null 2>conftest.err &&
3033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036 # icc doesn't choke on unknown options, it will just issue warnings
3037 # or remarks (even with -Werror). So we grep stderr for any message
3038 # that says an option was ignored or not supported.
3039 # When given -MP, icc 7.0 and 7.1 complain thusly:
3040 # icc: Command line warning: ignoring option '-M'; no argument required
3041 # The diagnosis changed in icc 8.0:
3042 # icc: Command line remark: option '-MP' not supported
3043 if (grep 'ignoring option' conftest.err ||
3044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045 am_cv_CC_dependencies_compiler_type=$depmode
3046 break
3047 fi
3048 fi
3049 done
3050
3051 cd ..
3052 rm -rf conftest.dir
3053 else
3054 am_cv_CC_dependencies_compiler_type=none
3055 fi
3056
3057 fi
3058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061
3062
3063
3064 if
3065 test "x$enable_dependency_tracking" != xno \
3066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067 am__fastdepCC_TRUE=
3068 am__fastdepCC_FALSE='#'
3069 else
3070 am__fastdepCC_TRUE='#'
3071 am__fastdepCC_FALSE=
3072 fi
3073
3074
3075
3076
3077 # Check whether --enable-shared or --disable-shared was given.
3078 if test "${enable_shared+set}" = set; then
3079 enableval="$enable_shared"
3080 p=${PACKAGE-default}
3081 case $enableval in
3082 yes) enable_shared=yes ;;
3083 no) enable_shared=no ;;
3084 *)
3085 enable_shared=no
3086 # Look at the argument we got. We use all the common list separators.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088 for pkg in $enableval; do
3089 if test "X$pkg" = "X$p"; then
3090 enable_shared=yes
3091 fi
3092 done
3093 IFS="$ac_save_ifs"
3094 ;;
3095 esac
3096 else
3097 enable_shared=yes
3098 fi;
3099 # Check whether --enable-static or --disable-static was given.
3100 if test "${enable_static+set}" = set; then
3101 enableval="$enable_static"
3102 p=${PACKAGE-default}
3103 case $enableval in
3104 yes) enable_static=yes ;;
3105 no) enable_static=no ;;
3106 *)
3107 enable_static=no
3108 # Look at the argument we got. We use all the common list separators.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110 for pkg in $enableval; do
3111 if test "X$pkg" = "X$p"; then
3112 enable_static=yes
3113 fi
3114 done
3115 IFS="$ac_save_ifs"
3116 ;;
3117 esac
3118 else
3119 enable_static=yes
3120 fi;
3121 # Check whether --enable-fast-install or --disable-fast-install was given.
3122 if test "${enable_fast_install+set}" = set; then
3123 enableval="$enable_fast_install"
3124 p=${PACKAGE-default}
3125 case $enableval in
3126 yes) enable_fast_install=yes ;;
3127 no) enable_fast_install=no ;;
3128 *)
3129 enable_fast_install=no
3130 # Look at the argument we got. We use all the common list separators.
3131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3132 for pkg in $enableval; do
3133 if test "X$pkg" = "X$p"; then
3134 enable_fast_install=yes
3135 fi
3136 done
3137 IFS="$ac_save_ifs"
3138 ;;
3139 esac
3140 else
3141 enable_fast_install=yes
3142 fi;
3143
3144 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3145 if test "${with_gnu_ld+set}" = set; then
3146 withval="$with_gnu_ld"
3147 test "$withval" = no || with_gnu_ld=yes
3148 else
3149 with_gnu_ld=no
3150 fi;
3151 ac_prog=ld
3152 if test "$GCC" = yes; then
3153 # Check if gcc -print-prog-name=ld gives a path.
3154 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3155 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3156 case $host in
3157 *-*-mingw*)
3158 # gcc leaves a trailing carriage return which upsets mingw
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3160 *)
3161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3162 esac
3163 case $ac_prog in
3164 # Accept absolute paths.
3165 [\\/]* | [A-Za-z]:[\\/]*)
3166 re_direlt='/[^/][^/]*/\.\./'
3167 # Canonicalize the path of ld
3168 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3170 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3171 done
3172 test -z "$LD" && LD="$ac_prog"
3173 ;;
3174 "")
3175 # If it fails, then pretend we aren't using GCC.
3176 ac_prog=ld
3177 ;;
3178 *)
3179 # If it is relative, then search for the first ld in PATH.
3180 with_gnu_ld=unknown
3181 ;;
3182 esac
3183 elif test "$with_gnu_ld" = yes; then
3184 echo "$as_me:$LINENO: checking for GNU ld" >&5
3185 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3186 else
3187 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3188 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3189 fi
3190 if test "${lt_cv_path_LD+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -z "$LD"; then
3194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3195 for ac_dir in $PATH; do
3196 test -z "$ac_dir" && ac_dir=.
3197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3198 lt_cv_path_LD="$ac_dir/$ac_prog"
3199 # Check to see if the program is GNU ld. I'd rather use --version,
3200 # but apparently some GNU ld's only accept -v.
3201 # Break only if it was the GNU/non-GNU ld that we prefer.
3202 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3203 test "$with_gnu_ld" != no && break
3204 else
3205 test "$with_gnu_ld" != yes && break
3206 fi
3207 fi
3208 done
3209 IFS="$ac_save_ifs"
3210 else
3211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3212 fi
3213 fi
3214
3215 LD="$lt_cv_path_LD"
3216 if test -n "$LD"; then
3217 echo "$as_me:$LINENO: result: $LD" >&5
3218 echo "${ECHO_T}$LD" >&6
3219 else
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222 fi
3223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3225 { (exit 1); exit 1; }; }
3226 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3228 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3232 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3233 lt_cv_prog_gnu_ld=yes
3234 else
3235 lt_cv_prog_gnu_ld=no
3236 fi
3237 fi
3238 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3239 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3240 with_gnu_ld=$lt_cv_prog_gnu_ld
3241
3242
3243 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3244 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3245 if test "${lt_cv_ld_reload_flag+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 lt_cv_ld_reload_flag='-r'
3249 fi
3250 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3251 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3252 reload_flag=$lt_cv_ld_reload_flag
3253 test -n "$reload_flag" && reload_flag=" $reload_flag"
3254
3255 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3256 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3257 if test "${lt_cv_path_NM+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 if test -n "$NM"; then
3261 # Let the user override the test.
3262 lt_cv_path_NM="$NM"
3263 else
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3265 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3266 test -z "$ac_dir" && ac_dir=.
3267 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3268 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3269 # Check to see if the nm accepts a BSD-compat flag.
3270 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3271 # nm: unknown option "B" ignored
3272 # Tru64's nm complains that /dev/null is an invalid object file
3273 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3274 lt_cv_path_NM="$tmp_nm -B"
3275 break
3276 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3277 lt_cv_path_NM="$tmp_nm -p"
3278 break
3279 else
3280 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3281 continue # so that we can try to find one that supports BSD flags
3282 fi
3283 fi
3284 done
3285 IFS="$ac_save_ifs"
3286 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3287 fi
3288 fi
3289
3290 NM="$lt_cv_path_NM"
3291 echo "$as_me:$LINENO: result: $NM" >&5
3292 echo "${ECHO_T}$NM" >&6
3293
3294 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3295 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3296 LN_S=$as_ln_s
3297 if test "$LN_S" = "ln -s"; then
3298 echo "$as_me:$LINENO: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3302 echo "${ECHO_T}no, using $LN_S" >&6
3303 fi
3304
3305 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3306 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3307 if test "${lt_cv_deplibs_check_method+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310 lt_cv_file_magic_cmd='$MAGIC_CMD'
3311 lt_cv_file_magic_test_file=
3312 lt_cv_deplibs_check_method='unknown'
3313 # Need to set the preceding variable on all platforms that support
3314 # interlibrary dependencies.
3315 # 'none' -- dependencies not supported.
3316 # `unknown' -- same as none, but documents that we really don't know.
3317 # 'pass_all' -- all dependencies passed with no checks.
3318 # 'test_compile' -- check by making test program.
3319 # 'file_magic [regex]' -- check by looking for files in library path
3320 # which responds to the $file_magic_cmd with a given egrep regex.
3321 # If you have `file' or equivalent on your system and you're not sure
3322 # whether `pass_all' will *always* work, you probably want this one.
3323
3324 case $host_os in
3325 aix*)
3326 lt_cv_deplibs_check_method=pass_all
3327 ;;
3328
3329 beos*)
3330 lt_cv_deplibs_check_method=pass_all
3331 ;;
3332
3333 bsdi4*)
3334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3335 lt_cv_file_magic_cmd='/usr/bin/file -L'
3336 lt_cv_file_magic_test_file=/shlib/libc.so
3337 ;;
3338
3339 cygwin* | mingw* |pw32*)
3340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3341 lt_cv_file_magic_cmd='$OBJDUMP -f'
3342 ;;
3343
3344 darwin* | rhapsody*)
3345 # this will be overwritten by pass_all, but leave it in just in case
3346 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3347 lt_cv_file_magic_cmd='/usr/bin/file -L'
3348 case "$host_os" in
3349 rhapsody* | darwin1.012)
3350 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3351 ;;
3352 *) # Darwin 1.3 on
3353 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3354 ;;
3355 esac
3356 lt_cv_deplibs_check_method=pass_all
3357 ;;
3358
3359 freebsd* | kfreebsd*-gnu)
3360 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3361 case $host_cpu in
3362 i*86 )
3363 # Not sure whether the presence of OpenBSD here was a mistake.
3364 # Let's accept both of them until this is cleared up.
3365 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3366 lt_cv_file_magic_cmd=/usr/bin/file
3367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3368 ;;
3369 esac
3370 else
3371 lt_cv_deplibs_check_method=pass_all
3372 fi
3373 ;;
3374
3375 gnu*)
3376 lt_cv_deplibs_check_method=pass_all
3377 ;;
3378
3379 hpux10.20*|hpux11*)
3380 case $host_cpu in
3381 hppa*)
3382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3383 lt_cv_file_magic_cmd=/usr/bin/file
3384 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3385 ;;
3386 ia64*)
3387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3388 lt_cv_file_magic_cmd=/usr/bin/file
3389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3390 ;;
3391 esac
3392 ;;
3393
3394 irix5* | irix6*)
3395 case $host_os in
3396 irix5*)
3397 # this will be overridden with pass_all, but let us keep it just in case
3398 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3399 ;;
3400 *)
3401 case $LD in
3402 *-32|*"-32 ") libmagic=32-bit;;
3403 *-n32|*"-n32 ") libmagic=N32;;
3404 *-64|*"-64 ") libmagic=64-bit;;
3405 *) libmagic=never-match;;
3406 esac
3407 # this will be overridden with pass_all, but let us keep it just in case
3408 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3409 ;;
3410 esac
3411 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3412 lt_cv_deplibs_check_method=pass_all
3413 ;;
3414
3415 # This must be Linux ELF.
3416 linux-gnu*)
3417 lt_cv_deplibs_check_method=pass_all
3418 ;;
3419
3420 netbsd* | knetbsd*-gnu)
3421 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3422 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3423 else
3424 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3425 fi
3426 ;;
3427
3428 newsos6)
3429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3430 lt_cv_file_magic_cmd=/usr/bin/file
3431 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3432 ;;
3433
3434 osf3* | osf4* | osf5*)
3435 # this will be overridden with pass_all, but let us keep it just in case
3436 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3437 lt_cv_file_magic_test_file=/shlib/libc.so
3438 lt_cv_deplibs_check_method=pass_all
3439 ;;
3440
3441 sco3.2v5*)
3442 lt_cv_deplibs_check_method=pass_all
3443 ;;
3444
3445 solaris*)
3446 lt_cv_deplibs_check_method=pass_all
3447 lt_cv_file_magic_test_file=/lib/libc.so
3448 ;;
3449
3450 sysv5uw[78]* | sysv4*uw2*)
3451 lt_cv_deplibs_check_method=pass_all
3452 ;;
3453
3454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3455 case $host_vendor in
3456 ncr)
3457 lt_cv_deplibs_check_method=pass_all
3458 ;;
3459 motorola)
3460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3462 ;;
3463 esac
3464 ;;
3465 esac
3466
3467 fi
3468 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3469 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3470 file_magic_cmd=$lt_cv_file_magic_cmd
3471 deplibs_check_method=$lt_cv_deplibs_check_method
3472
3473
3474
3475
3476 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3477
3478 # find the maximum length of command line arguments
3479 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3480 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3481 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484 i=0
3485 teststring="ABCD"
3486
3487 case $build_os in
3488 msdosdjgpp*)
3489 # On DJGPP, this test can blow up pretty badly due to problems in libc
3490 # (any single argument exceeding 2000 bytes causes a buffer overrun
3491 # during glob expansion). Even if it were fixed, the result of this
3492 # check would be larger than it should be.
3493 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3494 ;;
3495
3496 cygwin* | mingw*)
3497 # On Win9x/ME, this test blows up -- it succeeds, but takes
3498 # about 5 minutes as the teststring grows exponentially.
3499 # Worse, since 9x/ME are not pre-emptively multitasking,
3500 # you end up with a "frozen" computer, even though with patience
3501 # the test eventually succeeds (with a max line length of 256k).
3502 # Instead, let's just punt: use the minimum linelength reported by
3503 # all of the supported platforms: 8192 (on NT/2K/XP).
3504 lt_cv_sys_max_cmd_len=8192;
3505 ;;
3506
3507 amigaos*)
3508 # On AmigaOS with pdksh, this test takes hours, literally.
3509 # So we just punt and use a minimum line length of 8192.
3510 lt_cv_sys_max_cmd_len=8192;
3511 ;;
3512
3513 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3514 # This has been around since 386BSD, at least. Likely further.
3515 if test -x /sbin/sysctl; then
3516 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3517 elif test -x /usr/sbin/sysctl; then
3518 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3519 else
3520 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3521 fi
3522 # And add a safety zone
3523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3525 ;;
3526 esac
3527
3528 fi
3529
3530 if test -n "$lt_cv_sys_max_cmd_len" ; then
3531 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3532 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3533 else
3534 echo "$as_me:$LINENO: result: none" >&5
3535 echo "${ECHO_T}none" >&6
3536 fi
3537
3538
3539 # Only perform the check for file, if the check method requires it
3540 case $deplibs_check_method in
3541 file_magic*)
3542 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3543 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3544 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 case $MAGIC_CMD in
3549 /*)
3550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3551 ;;
3552 ?:/*)
3553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3554 ;;
3555 *)
3556 ac_save_MAGIC_CMD="$MAGIC_CMD"
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3558 ac_dummy="/usr/bin:$PATH"
3559 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/${ac_tool_prefix}file; then
3562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3563 if test -n "$file_magic_test_file"; then
3564 case $deplibs_check_method in
3565 "file_magic "*)
3566 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3569 egrep "$file_magic_regex" > /dev/null; then
3570 :
3571 else
3572 cat <<EOF 1>&2
3573
3574 *** Warning: the command libtool uses to detect shared libraries,
3575 *** $file_magic_cmd, produces output that libtool cannot recognize.
3576 *** The result is that libtool may fail to recognize shared libraries
3577 *** as such. This will affect the creation of libtool libraries that
3578 *** depend on shared libraries, but programs linked with such libtool
3579 *** libraries will work regardless of this problem. Nevertheless, you
3580 *** may want to report the problem to your system manager and/or to
3581 *** bug-libtool@gnu.org
3582
3583 EOF
3584 fi ;;
3585 esac
3586 fi
3587 break
3588 fi
3589 done
3590 IFS="$ac_save_ifs"
3591 MAGIC_CMD="$ac_save_MAGIC_CMD"
3592 ;;
3593 esac
3594 fi
3595
3596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3597 if test -n "$MAGIC_CMD"; then
3598 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3599 echo "${ECHO_T}$MAGIC_CMD" >&6
3600 else
3601 echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3603 fi
3604
3605 if test -z "$lt_cv_path_MAGIC_CMD"; then
3606 if test -n "$ac_tool_prefix"; then
3607 echo "$as_me:$LINENO: checking for file" >&5
3608 echo $ECHO_N "checking for file... $ECHO_C" >&6
3609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 case $MAGIC_CMD in
3613 /*)
3614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3615 ;;
3616 ?:/*)
3617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3618 ;;
3619 *)
3620 ac_save_MAGIC_CMD="$MAGIC_CMD"
3621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3622 ac_dummy="/usr/bin:$PATH"
3623 for ac_dir in $ac_dummy; do
3624 test -z "$ac_dir" && ac_dir=.
3625 if test -f $ac_dir/file; then
3626 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3627 if test -n "$file_magic_test_file"; then
3628 case $deplibs_check_method in
3629 "file_magic "*)
3630 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3633 egrep "$file_magic_regex" > /dev/null; then
3634 :
3635 else
3636 cat <<EOF 1>&2
3637
3638 *** Warning: the command libtool uses to detect shared libraries,
3639 *** $file_magic_cmd, produces output that libtool cannot recognize.
3640 *** The result is that libtool may fail to recognize shared libraries
3641 *** as such. This will affect the creation of libtool libraries that
3642 *** depend on shared libraries, but programs linked with such libtool
3643 *** libraries will work regardless of this problem. Nevertheless, you
3644 *** may want to report the problem to your system manager and/or to
3645 *** bug-libtool@gnu.org
3646
3647 EOF
3648 fi ;;
3649 esac
3650 fi
3651 break
3652 fi
3653 done
3654 IFS="$ac_save_ifs"
3655 MAGIC_CMD="$ac_save_MAGIC_CMD"
3656 ;;
3657 esac
3658 fi
3659
3660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3661 if test -n "$MAGIC_CMD"; then
3662 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3663 echo "${ECHO_T}$MAGIC_CMD" >&6
3664 else
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669 else
3670 MAGIC_CMD=:
3671 fi
3672 fi
3673
3674 fi
3675 ;;
3676 esac
3677
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3681 echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_RANLIB+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 if test -n "$RANLIB"; then
3687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702
3703 fi
3704 fi
3705 RANLIB=$ac_cv_prog_RANLIB
3706 if test -n "$RANLIB"; then
3707 echo "$as_me:$LINENO: result: $RANLIB" >&5
3708 echo "${ECHO_T}$RANLIB" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712 fi
3713
3714 fi
3715 if test -z "$ac_cv_prog_RANLIB"; then
3716 ac_ct_RANLIB=$RANLIB
3717 # Extract the first word of "ranlib", so it can be a program name with args.
3718 set dummy ranlib; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 if test -n "$ac_ct_RANLIB"; then
3725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_ac_ct_RANLIB="ranlib"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738 done
3739 done
3740
3741 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3742 fi
3743 fi
3744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3745 if test -n "$ac_ct_RANLIB"; then
3746 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3747 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3748 else
3749 echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3751 fi
3752
3753 RANLIB=$ac_ct_RANLIB
3754 else
3755 RANLIB="$ac_cv_prog_RANLIB"
3756 fi
3757
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}strip; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_STRIP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 if test -n "$STRIP"; then
3767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780 done
3781 done
3782
3783 fi
3784 fi
3785 STRIP=$ac_cv_prog_STRIP
3786 if test -n "$STRIP"; then
3787 echo "$as_me:$LINENO: result: $STRIP" >&5
3788 echo "${ECHO_T}$STRIP" >&6
3789 else
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3792 fi
3793
3794 fi
3795 if test -z "$ac_cv_prog_STRIP"; then
3796 ac_ct_STRIP=$STRIP
3797 # Extract the first word of "strip", so it can be a program name with args.
3798 set dummy strip; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804 if test -n "$ac_ct_STRIP"; then
3805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_STRIP="strip"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820
3821 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3822 fi
3823 fi
3824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3825 if test -n "$ac_ct_STRIP"; then
3826 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3827 echo "${ECHO_T}$ac_ct_STRIP" >&6
3828 else
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3831 fi
3832
3833 STRIP=$ac_ct_STRIP
3834 else
3835 STRIP="$ac_cv_prog_STRIP"
3836 fi
3837
3838
3839 # Check for any special flags to pass to ltconfig.
3840 libtool_flags="--cache-file=$cache_file"
3841 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3842 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3843 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3844 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3845 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3846
3847
3848 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3849 if test "${enable_libtool_lock+set}" = set; then
3850 enableval="$enable_libtool_lock"
3851
3852 fi;
3853 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3854 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3855
3856
3857 # Check whether --with-pic or --without-pic was given.
3858 if test "${with_pic+set}" = set; then
3859 withval="$with_pic"
3860 pic_mode="$withval"
3861 else
3862 pic_mode=default
3863 fi;
3864 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3865 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3866
3867 # Some flags need to be propagated to the compiler or linker for good
3868 # libtool support.
3869 case $host in
3870 *-*-irix6*)
3871 # Find out which ABI we are using.
3872 echo '#line 3872 "configure"' > conftest.$ac_ext
3873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; then
3878 if test "$lt_cv_prog_gnu_ld" = yes; then
3879 case `/usr/bin/file conftest.$ac_objext` in
3880 *32-bit*)
3881 LD="${LD-ld} -melf32bsmip"
3882 ;;
3883 *N32*)
3884 LD="${LD-ld} -melf32bmipn32"
3885 ;;
3886 *64-bit*)
3887 LD="${LD-ld} -melf64bmip"
3888 ;;
3889 esac
3890 else
3891 case `/usr/bin/file conftest.$ac_objext` in
3892 *32-bit*)
3893 LD="${LD-ld} -32"
3894 ;;
3895 *N32*)
3896 LD="${LD-ld} -n32"
3897 ;;
3898 *64-bit*)
3899 LD="${LD-ld} -64"
3900 ;;
3901 esac
3902 fi
3903 fi
3904 rm -rf conftest*
3905 ;;
3906
3907 ia64-*-hpux*)
3908 # Find out which ABI we are using.
3909 echo 'int i;' > conftest.$ac_ext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911 (eval $ac_compile) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; then
3915 case "`/usr/bin/file conftest.o`" in
3916 *ELF-32*)
3917 HPUX_IA64_MODE="32"
3918 ;;
3919 *ELF-64*)
3920 HPUX_IA64_MODE="64"
3921 ;;
3922 esac
3923 fi
3924 rm -rf conftest*
3925 ;;
3926
3927 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3928 # Find out which ABI we are using.
3929 echo 'int i;' > conftest.$ac_ext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; then
3935 case "`/usr/bin/file conftest.o`" in
3936 *32-bit*)
3937 case $host in
3938 x86_64-*linux*)
3939 LD="${LD-ld} -m elf_i386"
3940 ;;
3941 ppc64-*linux*|powerpc64-*linux*)
3942 LD="${LD-ld} -m elf32ppclinux"
3943 ;;
3944 s390x-*linux*)
3945 LD="${LD-ld} -m elf_s390"
3946 ;;
3947 sparc64-*linux*)
3948 LD="${LD-ld} -m elf32_sparc"
3949 ;;
3950 esac
3951 ;;
3952 *64-bit*)
3953 case $host in
3954 x86_64-*linux*)
3955 LD="${LD-ld} -m elf_x86_64"
3956 ;;
3957 ppc*-*linux*|powerpc*-*linux*)
3958 LD="${LD-ld} -m elf64ppc"
3959 ;;
3960 s390*-*linux*)
3961 LD="${LD-ld} -m elf64_s390"
3962 ;;
3963 sparc*-*linux*)
3964 LD="${LD-ld} -m elf64_sparc"
3965 ;;
3966 esac
3967 ;;
3968 esac
3969 fi
3970 rm -rf conftest*
3971 ;;
3972
3973 *-*-sco3.2v5*)
3974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3975 SAVE_CFLAGS="$CFLAGS"
3976 CFLAGS="$CFLAGS -belf"
3977 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3978 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3979 if test "${lt_cv_cc_needs_belf+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.$ac_objext conftest$ac_exeext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4007 (eval $ac_link) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -z "$ac_c_werror_flag"
4015 || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest$ac_exeext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 lt_cv_cc_needs_belf=yes
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 lt_cv_cc_needs_belf=no
4033 fi
4034 rm -f conftest.err conftest.$ac_objext \
4035 conftest$ac_exeext conftest.$ac_ext
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042 fi
4043 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4044 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4045 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4046 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4047 CFLAGS="$SAVE_CFLAGS"
4048 fi
4049 ;;
4050
4051
4052 esac
4053
4054
4055 # Save cache, so that ltconfig can load it
4056 cat >confcache <<\_ACEOF
4057 # This file is a shell script that caches the results of configure
4058 # tests run on this system so they can be shared between configure
4059 # scripts and configure runs, see configure's option --config-cache.
4060 # It is not useful on other systems. If it contains results you don't
4061 # want to keep, you may remove or edit it.
4062 #
4063 # config.status only pays attention to the cache file if you give it
4064 # the --recheck option to rerun configure.
4065 #
4066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4068 # following values.
4069
4070 _ACEOF
4071
4072 # The following way of writing the cache mishandles newlines in values,
4073 # but we know of no workaround that is simple, portable, and efficient.
4074 # So, don't put newlines in cache variables' values.
4075 # Ultrix sh set writes to stderr and can't be redirected directly,
4076 # and sets the high bit in the cache file unless we assign to the vars.
4077 {
4078 (set) 2>&1 |
4079 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4080 *ac_space=\ *)
4081 # `set' does not quote correctly, so add quotes (double-quote
4082 # substitution turns \\\\ into \\, and sed turns \\ into \).
4083 sed -n \
4084 "s/'/'\\\\''/g;
4085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4086 ;;
4087 *)
4088 # `set' quotes correctly as required by POSIX, so do not add quotes.
4089 sed -n \
4090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4091 ;;
4092 esac;
4093 } |
4094 sed '
4095 t clear
4096 : clear
4097 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4098 t end
4099 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4100 : end' >>confcache
4101 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4102 if test -w $cache_file; then
4103 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4104 cat confcache >$cache_file
4105 else
4106 echo "not updating unwritable cache $cache_file"
4107 fi
4108 fi
4109 rm -f confcache
4110
4111 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4112 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4113 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4114 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4115 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4116 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4117 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4118 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4119 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4120 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4121 echo "$as_me: error: libtool configure failed" >&2;}
4122 { (exit 1); exit 1; }; }
4123
4124 # Reload cache, that may have been modified by ltconfig
4125 if test -r "$cache_file"; then
4126 # Some versions of bash will fail to source /dev/null (special
4127 # files actually), so we avoid doing that.
4128 if test -f "$cache_file"; then
4129 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4130 echo "$as_me: loading cache $cache_file" >&6;}
4131 case $cache_file in
4132 [\\/]* | ?:[\\/]* ) . $cache_file;;
4133 *) . ./$cache_file;;
4134 esac
4135 fi
4136 else
4137 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4138 echo "$as_me: creating cache $cache_file" >&6;}
4139 >$cache_file
4140 fi
4141
4142
4143 # This can be used to rebuild libtool when needed
4144 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4145
4146 # Always use our own libtool.
4147 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4148
4149 # Redirect the config.log output again, so that the ltconfig log is not
4150 # clobbered by the next message.
4151 exec 5>>./config.log
4152
4153
4154
4155
4156
4157
4158
4159
4160 # Check whether --with-lib-path or --without-lib-path was given.
4161 if test "${with_lib_path+set}" = set; then
4162 withval="$with_lib_path"
4163 LIB_PATH=$withval
4164 fi;
4165 # Check whether --enable-targets or --disable-targets was given.
4166 if test "${enable_targets+set}" = set; then
4167 enableval="$enable_targets"
4168 case "${enableval}" in
4169 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4170 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4171 { (exit 1); exit 1; }; }
4172 ;;
4173 no) enable_targets= ;;
4174 *) enable_targets=$enableval ;;
4175 esac
4176 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4177 if test "${enable_64_bit_bfd+set}" = set; then
4178 enableval="$enable_64_bit_bfd"
4179 case "${enableval}" in
4180 yes) want64=true ;;
4181 no) want64=false ;;
4182 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4183 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4184 { (exit 1); exit 1; }; } ;;
4185 esac
4186 else
4187 want64=false
4188 fi;
4189
4190 # Check whether --with-sysroot or --without-sysroot was given.
4191 if test "${with_sysroot+set}" = set; then
4192 withval="$with_sysroot"
4193
4194 case ${with_sysroot} in
4195 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4196 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4197 esac
4198
4199 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4200 use_sysroot=yes
4201
4202 if test "x$exec_prefix" = xNONE; then
4203 if test "x$prefix" = xNONE; then
4204 test_prefix=/usr/local
4205 else
4206 test_prefix=$prefix
4207 fi
4208 else
4209 test_prefix=$exec_prefix
4210 fi
4211 case ${TARGET_SYSTEM_ROOT} in
4212 "${test_prefix}"|"${test_prefix}/"*|\
4213 '${exec_prefix}'|'${exec_prefix}/'*)
4214 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4215 TARGET_SYSTEM_ROOT_DEFINE="$t"
4216 ;;
4217 esac
4218
4219 else
4220
4221 use_sysroot=no
4222 TARGET_SYSTEM_ROOT=
4223 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4224
4225 fi;
4226
4227
4228
4229
4230
4231 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4232
4233 # Check whether --enable-werror or --disable-werror was given.
4234 if test "${enable_werror+set}" = set; then
4235 enableval="$enable_werror"
4236 case "${enableval}" in
4237 yes | y) ERROR_ON_WARNING="yes" ;;
4238 no | n) ERROR_ON_WARNING="no" ;;
4239 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4240 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4241 { (exit 1); exit 1; }; } ;;
4242 esac
4243 fi;
4244
4245 # Enable -Werror by default when using gcc
4246 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4247 ERROR_ON_WARNING=yes
4248 fi
4249
4250 NO_WERROR=
4251 if test "${ERROR_ON_WARNING}" = yes ; then
4252 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4253 NO_WERROR="-Wno-error"
4254 fi
4255
4256 if test "${GCC}" = yes ; then
4257 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4258 fi
4259
4260 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4261 if test "${enable_build_warnings+set}" = set; then
4262 enableval="$enable_build_warnings"
4263 case "${enableval}" in
4264 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4265 no) if test "${GCC}" = yes ; then
4266 WARN_CFLAGS="-w"
4267 fi;;
4268 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4269 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4270 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4271 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4272 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4273 esac
4274 fi;
4275
4276 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4277 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4278 fi
4279
4280
4281
4282
4283
4284 ac_config_headers="$ac_config_headers config.h:config.in"
4285
4286
4287 if test -z "$target" ; then
4288 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4289 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4290 { (exit 1); exit 1; }; }
4291 fi
4292 if test -z "$host" ; then
4293 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4294 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4295 { (exit 1); exit 1; }; }
4296 fi
4297
4298 # host-specific stuff:
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 if test -n "$ac_tool_prefix"; then
4306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4308 echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310 if test "${ac_cv_prog_CC+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 if test -n "$CC"; then
4314 ac_cv_prog_CC="$CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329
4330 fi
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 echo "$as_me:$LINENO: result: $CC" >&5
4335 echo "${ECHO_T}$CC" >&6
4336 else
4337 echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6
4339 fi
4340
4341 fi
4342 if test -z "$ac_cv_prog_CC"; then
4343 ac_ct_CC=$CC
4344 # Extract the first word of "gcc", so it can be a program name with args.
4345 set dummy gcc; ac_word=$2
4346 echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 if test -n "$ac_ct_CC"; then
4352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_ac_ct_CC="gcc"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365 done
4366 done
4367
4368 fi
4369 fi
4370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4371 if test -n "$ac_ct_CC"; then
4372 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4373 echo "${ECHO_T}$ac_ct_CC" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6
4377 fi
4378
4379 CC=$ac_ct_CC
4380 else
4381 CC="$ac_cv_prog_CC"
4382 fi
4383
4384 if test -z "$CC"; then
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}cc; ac_word=$2
4388 echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_CC+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC="$CC" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC="${ac_tool_prefix}cc"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4406 fi
4407 done
4408 done
4409
4410 fi
4411 fi
4412 CC=$ac_cv_prog_CC
4413 if test -n "$CC"; then
4414 echo "$as_me:$LINENO: result: $CC" >&5
4415 echo "${ECHO_T}$CC" >&6
4416 else
4417 echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6
4419 fi
4420
4421 fi
4422 if test -z "$ac_cv_prog_CC"; then
4423 ac_ct_CC=$CC
4424 # Extract the first word of "cc", so it can be a program name with args.
4425 set dummy cc; ac_word=$2
4426 echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 if test -n "$ac_ct_CC"; then
4432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_ac_ct_CC="cc"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4444 fi
4445 done
4446 done
4447
4448 fi
4449 fi
4450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4451 if test -n "$ac_ct_CC"; then
4452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4453 echo "${ECHO_T}$ac_ct_CC" >&6
4454 else
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459 CC=$ac_ct_CC
4460 else
4461 CC="$ac_cv_prog_CC"
4462 fi
4463
4464 fi
4465 if test -z "$CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_prog_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475 else
4476 ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492 done
4493 done
4494
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506 fi
4507 fi
4508 fi
4509 CC=$ac_cv_prog_CC
4510 if test -n "$CC"; then
4511 echo "$as_me:$LINENO: result: $CC" >&5
4512 echo "${ECHO_T}$CC" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4516 fi
4517
4518 fi
4519 if test -z "$CC"; then
4520 if test -n "$ac_tool_prefix"; then
4521 for ac_prog in cl
4522 do
4523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4525 echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_prog_CC+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 if test -n "$CC"; then
4531 ac_cv_prog_CC="$CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544 done
4545 done
4546
4547 fi
4548 fi
4549 CC=$ac_cv_prog_CC
4550 if test -n "$CC"; then
4551 echo "$as_me:$LINENO: result: $CC" >&5
4552 echo "${ECHO_T}$CC" >&6
4553 else
4554 echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4556 fi
4557
4558 test -n "$CC" && break
4559 done
4560 fi
4561 if test -z "$CC"; then
4562 ac_ct_CC=$CC
4563 for ac_prog in cl
4564 do
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$ac_ct_CC"; then
4573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_ac_ct_CC="$ac_prog"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586 done
4587 done
4588
4589 fi
4590 fi
4591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4592 if test -n "$ac_ct_CC"; then
4593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4594 echo "${ECHO_T}$ac_ct_CC" >&6
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4598 fi
4599
4600 test -n "$ac_ct_CC" && break
4601 done
4602
4603 CC=$ac_ct_CC
4604 fi
4605
4606 fi
4607
4608
4609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: no acceptable C compiler found in \$PATH
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4614
4615 # Provide some information about the compiler.
4616 echo "$as_me:$LINENO:" \
4617 "checking for C compiler version" >&5
4618 ac_compiler=`set X $ac_compile; echo $2`
4619 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4620 (eval $ac_compiler --version </dev/null >&5) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }
4624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4625 (eval $ac_compiler -v </dev/null >&5) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }
4629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4630 (eval $ac_compiler -V </dev/null >&5) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }
4634
4635 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4636 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4637 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646
4647 int
4648 main ()
4649 {
4650 #ifndef __GNUC__
4651 choke me
4652 #endif
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 rm -f conftest.$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660 (eval $ac_compile) 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -z "$ac_c_werror_flag"
4668 || test ! -s conftest.err'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 ac_compiler_gnu=yes
4681 else
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 ac_compiler_gnu=no
4686 fi
4687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4688 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4689
4690 fi
4691 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4692 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4693 GCC=`test $ac_compiler_gnu = yes && echo yes`
4694 ac_test_CFLAGS=${CFLAGS+set}
4695 ac_save_CFLAGS=$CFLAGS
4696 CFLAGS="-g"
4697 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4698 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4699 if test "${ac_cv_prog_cc_g+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h. */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708
4709 int
4710 main ()
4711 {
4712
4713 ;
4714 return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_cv_prog_cc_g=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_cv_prog_cc_g=no
4745 fi
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 fi
4748 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4749 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4750 if test "$ac_test_CFLAGS" = set; then
4751 CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4754 CFLAGS="-g -O2"
4755 else
4756 CFLAGS="-g"
4757 fi
4758 else
4759 if test "$GCC" = yes; then
4760 CFLAGS="-O2"
4761 else
4762 CFLAGS=
4763 fi
4764 fi
4765 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4766 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4767 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770 ac_cv_prog_cc_stdc=no
4771 ac_save_CC=$CC
4772 cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h. */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4778 #include <stdarg.h>
4779 #include <stdio.h>
4780 #include <sys/types.h>
4781 #include <sys/stat.h>
4782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4783 struct buf { int x; };
4784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4785 static char *e (p, i)
4786 char **p;
4787 int i;
4788 {
4789 return p[i];
4790 }
4791 static char *f (char * (*g) (char **, int), char **p, ...)
4792 {
4793 char *s;
4794 va_list v;
4795 va_start (v,p);
4796 s = g (p, va_arg (v,int));
4797 va_end (v);
4798 return s;
4799 }
4800
4801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4802 function prototypes and stuff, but not '\xHH' hex character constants.
4803 These don't provoke an error unfortunately, instead are silently treated
4804 as 'x'. The following induces an error, until -std1 is added to get
4805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4806 array size at least. It's necessary to write '\x00'==0 to get something
4807 that's true only with -std1. */
4808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4809
4810 int test (int i, double x);
4811 struct s1 {int (*f) (int a);};
4812 struct s2 {int (*f) (double a);};
4813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4814 int argc;
4815 char **argv;
4816 int
4817 main ()
4818 {
4819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 # Don't try gcc -ansi; that turns off useful extensions and
4825 # breaks some systems' header files.
4826 # AIX -qlanglvl=ansi
4827 # Ultrix and OSF/1 -std1
4828 # HP-UX 10.20 and later -Ae
4829 # HP-UX older versions -Aa -D_HPUX_SOURCE
4830 # SVR4 -Xc -D__EXTENSIONS__
4831 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4832 do
4833 CC="$ac_save_CC $ac_arg"
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest.$ac_objext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_prog_cc_stdc=$ac_arg
4857 break
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 fi
4863 rm -f conftest.err conftest.$ac_objext
4864 done
4865 rm -f conftest.$ac_ext conftest.$ac_objext
4866 CC=$ac_save_CC
4867
4868 fi
4869
4870 case "x$ac_cv_prog_cc_stdc" in
4871 x|xno)
4872 echo "$as_me:$LINENO: result: none needed" >&5
4873 echo "${ECHO_T}none needed" >&6 ;;
4874 *)
4875 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4876 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4877 CC="$CC $ac_cv_prog_cc_stdc" ;;
4878 esac
4879
4880 # Some people use a C++ compiler to compile C. Since we use `exit',
4881 # in C++ we need to declare it. In case someone uses the same compiler
4882 # for both compiling C and C++ we need to have the C++ compiler decide
4883 # the declaration of exit, since it's the most demanding environment.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #ifndef __cplusplus
4886 choke me
4887 #endif
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_c_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest.$ac_objext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 for ac_declaration in \
4912 '' \
4913 'extern "C" void std::exit (int) throw (); using std::exit;' \
4914 'extern "C" void std::exit (int); using std::exit;' \
4915 'extern "C" void exit (int) throw ();' \
4916 'extern "C" void exit (int);' \
4917 'void exit (int);'
4918 do
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 $ac_declaration
4926 #include <stdlib.h>
4927 int
4928 main ()
4929 {
4930 exit (42);
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 :
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 continue
4963 fi
4964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_declaration
4972 int
4973 main ()
4974 {
4975 exit (42);
4976 ;
4977 return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 break
5003 else
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 fi
5008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 done
5010 rm -f conftest*
5011 if test -n "$ac_declaration"; then
5012 echo '#ifdef __cplusplus' >>confdefs.h
5013 echo $ac_declaration >>confdefs.h
5014 echo '#endif' >>confdefs.h
5015 fi
5016
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 fi
5022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_ext=c
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028
5029 # Find a good install program. We prefer a C program (faster),
5030 # so one script is as good as another. But avoid the broken or
5031 # incompatible versions:
5032 # SysV /etc/install, /usr/sbin/install
5033 # SunOS /usr/etc/install
5034 # IRIX /sbin/install
5035 # AIX /bin/install
5036 # AmigaOS /C/install, which installs bootblocks on floppy discs
5037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5040 # OS/2's system install, which has a completely different semantic
5041 # ./install, which can be erroneously created by make from ./install.sh.
5042 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5044 if test -z "$INSTALL"; then
5045 if test "${ac_cv_path_install+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 # Account for people who put trailing slashes in PATH elements.
5054 case $as_dir/ in
5055 ./ | .// | /cC/* | \
5056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5058 /usr/ucb/* ) ;;
5059 *)
5060 # OSF1 and SCO ODT 3.0 have their own names for install.
5061 # Don't use installbsd from OSF since it installs stuff as root
5062 # by default.
5063 for ac_prog in ginstall scoinst install; do
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5066 if test $ac_prog = install &&
5067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5068 # AIX install. It has an incompatible calling convention.
5069 :
5070 elif test $ac_prog = install &&
5071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5072 # program-specific install script used by HP pwplus--don't use.
5073 :
5074 else
5075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5076 break 3
5077 fi
5078 fi
5079 done
5080 done
5081 ;;
5082 esac
5083 done
5084
5085
5086 fi
5087 if test "${ac_cv_path_install+set}" = set; then
5088 INSTALL=$ac_cv_path_install
5089 else
5090 # As a last resort, use the slow shell script. We don't cache a
5091 # path for INSTALL within a source directory, because that will
5092 # break other packages using the cache if that directory is
5093 # removed, or if the path is relative.
5094 INSTALL=$ac_install_sh
5095 fi
5096 fi
5097 echo "$as_me:$LINENO: result: $INSTALL" >&5
5098 echo "${ECHO_T}$INSTALL" >&6
5099
5100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5101 # It thinks the first close brace ends the variable substitution.
5102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5103
5104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5105
5106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5107
5108
5109 ALL_LINGUAS="fr sv tr es da vi zh_CN"
5110 if test -n "$ac_tool_prefix"; then
5111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5113 echo "$as_me:$LINENO: checking for $ac_word" >&5
5114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5115 if test "${ac_cv_prog_RANLIB+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 if test -n "$RANLIB"; then
5119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134
5135 fi
5136 fi
5137 RANLIB=$ac_cv_prog_RANLIB
5138 if test -n "$RANLIB"; then
5139 echo "$as_me:$LINENO: result: $RANLIB" >&5
5140 echo "${ECHO_T}$RANLIB" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6
5144 fi
5145
5146 fi
5147 if test -z "$ac_cv_prog_RANLIB"; then
5148 ac_ct_RANLIB=$RANLIB
5149 # Extract the first word of "ranlib", so it can be a program name with args.
5150 set dummy ranlib; ac_word=$2
5151 echo "$as_me:$LINENO: checking for $ac_word" >&5
5152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if test -n "$ac_ct_RANLIB"; then
5157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_ac_ct_RANLIB="ranlib"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172
5173 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5174 fi
5175 fi
5176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5177 if test -n "$ac_ct_RANLIB"; then
5178 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5179 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5180 else
5181 echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5183 fi
5184
5185 RANLIB=$ac_ct_RANLIB
5186 else
5187 RANLIB="$ac_cv_prog_RANLIB"
5188 fi
5189
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5197 # On Suns, sometimes $CPP names a directory.
5198 if test -n "$CPP" && test -d "$CPP"; then
5199 CPP=
5200 fi
5201 if test -z "$CPP"; then
5202 if test "${ac_cv_prog_CPP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 # Double quotes because CPP needs to be expanded
5206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5207 do
5208 ac_preproc_ok=false
5209 for ac_c_preproc_warn_flag in '' yes
5210 do
5211 # Use a header file that comes with gcc, so configuring glibc
5212 # with a fresh cross-compiler works.
5213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 # <limits.h> exists even on freestanding compilers.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 #ifdef __STDC__
5224 # include <limits.h>
5225 #else
5226 # include <assert.h>
5227 #endif
5228 Syntax error
5229 _ACEOF
5230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_c_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241 else
5242 ac_cpp_err=
5243 fi
5244 else
5245 ac_cpp_err=yes
5246 fi
5247 if test -z "$ac_cpp_err"; then
5248 :
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 # Broken: fails on valid input.
5254 continue
5255 fi
5256 rm -f conftest.err conftest.$ac_ext
5257
5258 # OK, works on sane cases. Now check whether non-existent headers
5259 # can be detected and how.
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <ac_nonexistent.h>
5267 _ACEOF
5268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5281 fi
5282 else
5283 ac_cpp_err=yes
5284 fi
5285 if test -z "$ac_cpp_err"; then
5286 # Broken: success on invalid input.
5287 continue
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 # Passes both tests.
5293 ac_preproc_ok=:
5294 break
5295 fi
5296 rm -f conftest.err conftest.$ac_ext
5297
5298 done
5299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5300 rm -f conftest.err conftest.$ac_ext
5301 if $ac_preproc_ok; then
5302 break
5303 fi
5304
5305 done
5306 ac_cv_prog_CPP=$CPP
5307
5308 fi
5309 CPP=$ac_cv_prog_CPP
5310 else
5311 ac_cv_prog_CPP=$CPP
5312 fi
5313 echo "$as_me:$LINENO: result: $CPP" >&5
5314 echo "${ECHO_T}$CPP" >&6
5315 ac_preproc_ok=false
5316 for ac_c_preproc_warn_flag in '' yes
5317 do
5318 # Use a header file that comes with gcc, so configuring glibc
5319 # with a fresh cross-compiler works.
5320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321 # <limits.h> exists even on freestanding compilers.
5322 # On the NeXT, cc -E runs the code through the compiler's parser,
5323 # not just through cpp. "Syntax error" is here to catch this case.
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335 Syntax error
5336 _ACEOF
5337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348 else
5349 ac_cpp_err=
5350 fi
5351 else
5352 ac_cpp_err=yes
5353 fi
5354 if test -z "$ac_cpp_err"; then
5355 :
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 # Broken: fails on valid input.
5361 continue
5362 fi
5363 rm -f conftest.err conftest.$ac_ext
5364
5365 # OK, works on sane cases. Now check whether non-existent headers
5366 # can be detected and how.
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <ac_nonexistent.h>
5374 _ACEOF
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 else
5387 ac_cpp_err=
5388 fi
5389 else
5390 ac_cpp_err=yes
5391 fi
5392 if test -z "$ac_cpp_err"; then
5393 # Broken: success on invalid input.
5394 continue
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 # Passes both tests.
5400 ac_preproc_ok=:
5401 break
5402 fi
5403 rm -f conftest.err conftest.$ac_ext
5404
5405 done
5406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407 rm -f conftest.err conftest.$ac_ext
5408 if $ac_preproc_ok; then
5409 :
5410 else
5411 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5412 See \`config.log' for more details." >&5
5413 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5414 See \`config.log' for more details." >&2;}
5415 { (exit 1); exit 1; }; }
5416 fi
5417
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
5424
5425 echo "$as_me:$LINENO: checking for egrep" >&5
5426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5427 if test "${ac_cv_prog_egrep+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5431 then ac_cv_prog_egrep='grep -E'
5432 else ac_cv_prog_egrep='egrep'
5433 fi
5434 fi
5435 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5436 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5437 EGREP=$ac_cv_prog_egrep
5438
5439
5440 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5442 if test "${ac_cv_header_stdc+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <stdlib.h>
5452 #include <stdarg.h>
5453 #include <string.h>
5454 #include <float.h>
5455
5456 int
5457 main ()
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_header_stdc=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_cv_header_stdc=no
5492 fi
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494
5495 if test $ac_cv_header_stdc = yes; then
5496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <string.h>
5504
5505 _ACEOF
5506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5507 $EGREP "memchr" >/dev/null 2>&1; then
5508 :
5509 else
5510 ac_cv_header_stdc=no
5511 fi
5512 rm -f conftest*
5513
5514 fi
5515
5516 if test $ac_cv_header_stdc = yes; then
5517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <stdlib.h>
5525
5526 _ACEOF
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "free" >/dev/null 2>&1; then
5529 :
5530 else
5531 ac_cv_header_stdc=no
5532 fi
5533 rm -f conftest*
5534
5535 fi
5536
5537 if test $ac_cv_header_stdc = yes; then
5538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5539 if test "$cross_compiling" = yes; then
5540 :
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <ctype.h>
5549 #if ((' ' & 0x0FF) == 0x020)
5550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5552 #else
5553 # define ISLOWER(c) \
5554 (('a' <= (c) && (c) <= 'i') \
5555 || ('j' <= (c) && (c) <= 'r') \
5556 || ('s' <= (c) && (c) <= 'z'))
5557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5558 #endif
5559
5560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5561 int
5562 main ()
5563 {
5564 int i;
5565 for (i = 0; i < 256; i++)
5566 if (XOR (islower (i), ISLOWER (i))
5567 || toupper (i) != TOUPPER (i))
5568 exit(2);
5569 exit (0);
5570 }
5571 _ACEOF
5572 rm -f conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 :
5584 else
5585 echo "$as_me: program exited with status $ac_status" >&5
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ( exit $ac_status )
5590 ac_cv_header_stdc=no
5591 fi
5592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5593 fi
5594 fi
5595 fi
5596 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5597 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5598 if test $ac_cv_header_stdc = yes; then
5599
5600 cat >>confdefs.h <<\_ACEOF
5601 #define STDC_HEADERS 1
5602 _ACEOF
5603
5604 fi
5605
5606 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5607 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5608 if test "${ac_cv_c_const+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617
5618 int
5619 main ()
5620 {
5621 /* FIXME: Include the comments suggested by Paul. */
5622 #ifndef __cplusplus
5623 /* Ultrix mips cc rejects this. */
5624 typedef int charset[2];
5625 const charset x;
5626 /* SunOS 4.1.1 cc rejects this. */
5627 char const *const *ccp;
5628 char **p;
5629 /* NEC SVR4.0.2 mips cc rejects this. */
5630 struct point {int x, y;};
5631 static struct point const zero = {0,0};
5632 /* AIX XL C 1.02.0.0 rejects this.
5633 It does not let you subtract one const X* pointer from another in
5634 an arm of an if-expression whose if-part is not a constant
5635 expression */
5636 const char *g = "string";
5637 ccp = &g + (g ? g-g : 0);
5638 /* HPUX 7.0 cc rejects these. */
5639 ++ccp;
5640 p = (char**) ccp;
5641 ccp = (char const *const *) p;
5642 { /* SCO 3.2v4 cc rejects this. */
5643 char *t;
5644 char const *s = 0 ? (char *) 0 : (char const *) 0;
5645
5646 *t++ = 0;
5647 }
5648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5649 int x[] = {25, 17};
5650 const int *foo = &x[0];
5651 ++foo;
5652 }
5653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5654 typedef const int *iptr;
5655 iptr p = 0;
5656 ++p;
5657 }
5658 { /* AIX XL C 1.02.0.0 rejects this saying
5659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5660 struct s { int j; const int *ap[3]; };
5661 struct s *b; b->j = 5;
5662 }
5663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5664 const int foo = 10;
5665 }
5666 #endif
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 (eval $ac_try) 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_c_const=yes
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_cv_c_const=no
5700 fi
5701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5704 echo "${ECHO_T}$ac_cv_c_const" >&6
5705 if test $ac_cv_c_const = no; then
5706
5707 cat >>confdefs.h <<\_ACEOF
5708 #define const
5709 _ACEOF
5710
5711 fi
5712
5713 echo "$as_me:$LINENO: checking for inline" >&5
5714 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5715 if test "${ac_cv_c_inline+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 ac_cv_c_inline=no
5719 for ac_kw in inline __inline__ __inline; do
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #ifndef __cplusplus
5727 typedef int foo_t;
5728 static $ac_kw foo_t static_foo () {return 0; }
5729 $ac_kw foo_t foo () {return 0; }
5730 #endif
5731
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_c_inline=$ac_kw; break
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 fi
5761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 done
5763
5764 fi
5765 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5766 echo "${ECHO_T}$ac_cv_c_inline" >&6
5767
5768
5769 case $ac_cv_c_inline in
5770 inline | yes) ;;
5771 *)
5772 case $ac_cv_c_inline in
5773 no) ac_val=;;
5774 *) ac_val=$ac_cv_c_inline;;
5775 esac
5776 cat >>confdefs.h <<_ACEOF
5777 #ifndef __cplusplus
5778 #define inline $ac_val
5779 #endif
5780 _ACEOF
5781 ;;
5782 esac
5783
5784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5795 inttypes.h stdint.h unistd.h
5796 do
5797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5810
5811 #include <$ac_header>
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 eval "$as_ac_Header=yes"
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 eval "$as_ac_Header=no"
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5847 cat >>confdefs.h <<_ACEOF
5848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5849 _ACEOF
5850
5851 fi
5852
5853 done
5854
5855
5856 echo "$as_me:$LINENO: checking for off_t" >&5
5857 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5858 if test "${ac_cv_type_off_t+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 $ac_includes_default
5868 int
5869 main ()
5870 {
5871 if ((off_t *) 0)
5872 return 0;
5873 if (sizeof (off_t))
5874 return 0;
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_type_off_t=yes
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_cv_type_off_t=no
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5911 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5912 if test $ac_cv_type_off_t = yes; then
5913 :
5914 else
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define off_t long
5918 _ACEOF
5919
5920 fi
5921
5922 echo "$as_me:$LINENO: checking for size_t" >&5
5923 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5924 if test "${ac_cv_type_size_t+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 int
5935 main ()
5936 {
5937 if ((size_t *) 0)
5938 return 0;
5939 if (sizeof (size_t))
5940 return 0;
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_type_size_t=yes
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 ac_cv_type_size_t=no
5973 fi
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5977 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5978 if test $ac_cv_type_size_t = yes; then
5979 :
5980 else
5981
5982 cat >>confdefs.h <<_ACEOF
5983 #define size_t unsigned
5984 _ACEOF
5985
5986 fi
5987
5988 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5989 # for constant arguments. Useless!
5990 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5991 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5992 if test "${ac_cv_working_alloca_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <alloca.h>
6002 int
6003 main ()
6004 {
6005 char *p = (char *) alloca (2 * sizeof (int));
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_working_alloca_h=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 ac_cv_working_alloca_h=no
6038 fi
6039 rm -f conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6043 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6044 if test $ac_cv_working_alloca_h = yes; then
6045
6046 cat >>confdefs.h <<\_ACEOF
6047 #define HAVE_ALLOCA_H 1
6048 _ACEOF
6049
6050 fi
6051
6052 echo "$as_me:$LINENO: checking for alloca" >&5
6053 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6054 if test "${ac_cv_func_alloca_works+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #ifdef __GNUC__
6064 # define alloca __builtin_alloca
6065 #else
6066 # ifdef _MSC_VER
6067 # include <malloc.h>
6068 # define alloca _alloca
6069 # else
6070 # if HAVE_ALLOCA_H
6071 # include <alloca.h>
6072 # else
6073 # ifdef _AIX
6074 #pragma alloca
6075 # else
6076 # ifndef alloca /* predefined by HP cc +Olibcalls */
6077 char *alloca ();
6078 # endif
6079 # endif
6080 # endif
6081 # endif
6082 #endif
6083
6084 int
6085 main ()
6086 {
6087 char *p = (char *) alloca (1);
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094 (eval $ac_link) 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_func_alloca_works=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_func_alloca_works=no
6120 fi
6121 rm -f conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
6123 fi
6124 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6125 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6126
6127 if test $ac_cv_func_alloca_works = yes; then
6128
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_ALLOCA 1
6131 _ACEOF
6132
6133 else
6134 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6135 # that cause trouble. Some versions do not even contain alloca or
6136 # contain a buggy version. If you still want to use their alloca,
6137 # use ar to extract alloca.o from them instead of compiling alloca.c.
6138
6139 ALLOCA=alloca.$ac_objext
6140
6141 cat >>confdefs.h <<\_ACEOF
6142 #define C_ALLOCA 1
6143 _ACEOF
6144
6145
6146 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6147 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6148 if test "${ac_cv_os_cray+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #if defined(CRAY) && ! defined(CRAY2)
6158 webecray
6159 #else
6160 wenotbecray
6161 #endif
6162
6163 _ACEOF
6164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6165 $EGREP "webecray" >/dev/null 2>&1; then
6166 ac_cv_os_cray=yes
6167 else
6168 ac_cv_os_cray=no
6169 fi
6170 rm -f conftest*
6171
6172 fi
6173 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6174 echo "${ECHO_T}$ac_cv_os_cray" >&6
6175 if test $ac_cv_os_cray = yes; then
6176 for ac_func in _getb67 GETB67 getb67; do
6177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6178 echo "$as_me:$LINENO: checking for $ac_func" >&5
6179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6180 if eval "test \"\${$as_ac_var+set}\" = set"; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6191 #define $ac_func innocuous_$ac_func
6192
6193 /* System header to define __stub macros and hopefully few prototypes,
6194 which can conflict with char $ac_func (); below.
6195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 <limits.h> exists even on freestanding compilers. */
6197
6198 #ifdef __STDC__
6199 # include <limits.h>
6200 #else
6201 # include <assert.h>
6202 #endif
6203
6204 #undef $ac_func
6205
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 #ifdef __cplusplus
6208 extern "C"
6209 {
6210 #endif
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char $ac_func ();
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 choke me
6219 #else
6220 char (*f) () = $ac_func;
6221 #endif
6222 #ifdef __cplusplus
6223 }
6224 #endif
6225
6226 int
6227 main ()
6228 {
6229 return f != $ac_func;
6230 ;
6231 return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236 (eval $ac_link) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
6243 { ac_try='test -z "$ac_c_werror_flag"
6244 || test ! -s conftest.err'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; } &&
6250 { ac_try='test -s conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 (eval $ac_try) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 eval "$as_ac_var=yes"
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6260
6261 eval "$as_ac_var=no"
6262 fi
6263 rm -f conftest.err conftest.$ac_objext \
6264 conftest$ac_exeext conftest.$ac_ext
6265 fi
6266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6268 if test `eval echo '${'$as_ac_var'}'` = yes; then
6269
6270 cat >>confdefs.h <<_ACEOF
6271 #define CRAY_STACKSEG_END $ac_func
6272 _ACEOF
6273
6274 break
6275 fi
6276
6277 done
6278 fi
6279
6280 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6281 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6282 if test "${ac_cv_c_stack_direction+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 if test "$cross_compiling" = yes; then
6286 ac_cv_c_stack_direction=0
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 int
6295 find_stack_direction ()
6296 {
6297 static char *addr = 0;
6298 auto char dummy;
6299 if (addr == 0)
6300 {
6301 addr = &dummy;
6302 return find_stack_direction ();
6303 }
6304 else
6305 return (&dummy > addr) ? 1 : -1;
6306 }
6307
6308 int
6309 main ()
6310 {
6311 exit (find_stack_direction () < 0);
6312 }
6313 _ACEOF
6314 rm -f conftest$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_c_stack_direction=1
6326 else
6327 echo "$as_me: program exited with status $ac_status" >&5
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ( exit $ac_status )
6332 ac_cv_c_stack_direction=-1
6333 fi
6334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6335 fi
6336 fi
6337 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6338 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define STACK_DIRECTION $ac_cv_c_stack_direction
6342 _ACEOF
6343
6344
6345 fi
6346
6347
6348
6349 for ac_header in stdlib.h unistd.h
6350 do
6351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo "$as_me:$LINENO: checking for $ac_header" >&5
6354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 fi
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6360 else
6361 # Is the header compilable?
6362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6376 ac_status=$?
6377 grep -v '^ *+' conftest.er1 >conftest.err
6378 rm -f conftest.er1
6379 cat conftest.err >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -z "$ac_c_werror_flag"
6383 || test ! -s conftest.err'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; } &&
6389 { ac_try='test -s conftest.$ac_objext'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }; then
6395 ac_header_compiler=yes
6396 else
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 ac_header_compiler=no
6401 fi
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6404 echo "${ECHO_T}$ac_header_compiler" >&6
6405
6406 # Is the header present?
6407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 #include <$ac_header>
6416 _ACEOF
6417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } >/dev/null; then
6425 if test -s conftest.err; then
6426 ac_cpp_err=$ac_c_preproc_warn_flag
6427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6428 else
6429 ac_cpp_err=
6430 fi
6431 else
6432 ac_cpp_err=yes
6433 fi
6434 if test -z "$ac_cpp_err"; then
6435 ac_header_preproc=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ac_header_preproc=no
6441 fi
6442 rm -f conftest.err conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6444 echo "${ECHO_T}$ac_header_preproc" >&6
6445
6446 # So? What about this header?
6447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6448 yes:no: )
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6453 ac_header_preproc=yes
6454 ;;
6455 no:yes:* )
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6468 (
6469 cat <<\_ASBOX
6470 ## ------------------------------------------ ##
6471 ## Report this to the AC_PACKAGE_NAME lists. ##
6472 ## ------------------------------------------ ##
6473 _ASBOX
6474 ) |
6475 sed "s/^/$as_me: WARNING: /" >&2
6476 ;;
6477 esac
6478 echo "$as_me:$LINENO: checking for $ac_header" >&5
6479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 eval "$as_ac_Header=\$ac_header_preproc"
6484 fi
6485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6487
6488 fi
6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 _ACEOF
6493
6494 fi
6495
6496 done
6497
6498
6499 for ac_func in getpagesize
6500 do
6501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6502 echo "$as_me:$LINENO: checking for $ac_func" >&5
6503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6504 if eval "test \"\${$as_ac_var+set}\" = set"; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6515 #define $ac_func innocuous_$ac_func
6516
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func (); below.
6519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6520 <limits.h> exists even on freestanding compilers. */
6521
6522 #ifdef __STDC__
6523 # include <limits.h>
6524 #else
6525 # include <assert.h>
6526 #endif
6527
6528 #undef $ac_func
6529
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 #ifdef __cplusplus
6532 extern "C"
6533 {
6534 #endif
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char $ac_func ();
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 choke me
6543 #else
6544 char (*f) () = $ac_func;
6545 #endif
6546 #ifdef __cplusplus
6547 }
6548 #endif
6549
6550 int
6551 main ()
6552 {
6553 return f != $ac_func;
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest.$ac_objext conftest$ac_exeext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6560 (eval $ac_link) 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -z "$ac_c_werror_flag"
6568 || test ! -s conftest.err'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; } &&
6574 { ac_try='test -s conftest$ac_exeext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 eval "$as_ac_var=yes"
6581 else
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585 eval "$as_ac_var=no"
6586 fi
6587 rm -f conftest.err conftest.$ac_objext \
6588 conftest$ac_exeext conftest.$ac_ext
6589 fi
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6592 if test `eval echo '${'$as_ac_var'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6595 _ACEOF
6596
6597 fi
6598 done
6599
6600 echo "$as_me:$LINENO: checking for working mmap" >&5
6601 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6602 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 if test "$cross_compiling" = yes; then
6606 ac_cv_func_mmap_fixed_mapped=no
6607 else
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 $ac_includes_default
6615 /* malloc might have been renamed as rpl_malloc. */
6616 #undef malloc
6617
6618 /* Thanks to Mike Haertel and Jim Avera for this test.
6619 Here is a matrix of mmap possibilities:
6620 mmap private not fixed
6621 mmap private fixed at somewhere currently unmapped
6622 mmap private fixed at somewhere already mapped
6623 mmap shared not fixed
6624 mmap shared fixed at somewhere currently unmapped
6625 mmap shared fixed at somewhere already mapped
6626 For private mappings, we should verify that changes cannot be read()
6627 back from the file, nor mmap's back from the file at a different
6628 address. (There have been systems where private was not correctly
6629 implemented like the infamous i386 svr4.0, and systems where the
6630 VM page cache was not coherent with the file system buffer cache
6631 like early versions of FreeBSD and possibly contemporary NetBSD.)
6632 For shared mappings, we should conversely verify that changes get
6633 propagated back to all the places they're supposed to be.
6634
6635 Grep wants private fixed already mapped.
6636 The main things grep needs to know about mmap are:
6637 * does it exist and is it safe to write into the mmap'd area
6638 * how to use it (BSD variants) */
6639
6640 #include <fcntl.h>
6641 #include <sys/mman.h>
6642
6643 #if !STDC_HEADERS && !HAVE_STDLIB_H
6644 char *malloc ();
6645 #endif
6646
6647 /* This mess was copied from the GNU getpagesize.h. */
6648 #if !HAVE_GETPAGESIZE
6649 /* Assume that all systems that can run configure have sys/param.h. */
6650 # if !HAVE_SYS_PARAM_H
6651 # define HAVE_SYS_PARAM_H 1
6652 # endif
6653
6654 # ifdef _SC_PAGESIZE
6655 # define getpagesize() sysconf(_SC_PAGESIZE)
6656 # else /* no _SC_PAGESIZE */
6657 # if HAVE_SYS_PARAM_H
6658 # include <sys/param.h>
6659 # ifdef EXEC_PAGESIZE
6660 # define getpagesize() EXEC_PAGESIZE
6661 # else /* no EXEC_PAGESIZE */
6662 # ifdef NBPG
6663 # define getpagesize() NBPG * CLSIZE
6664 # ifndef CLSIZE
6665 # define CLSIZE 1
6666 # endif /* no CLSIZE */
6667 # else /* no NBPG */
6668 # ifdef NBPC
6669 # define getpagesize() NBPC
6670 # else /* no NBPC */
6671 # ifdef PAGESIZE
6672 # define getpagesize() PAGESIZE
6673 # endif /* PAGESIZE */
6674 # endif /* no NBPC */
6675 # endif /* no NBPG */
6676 # endif /* no EXEC_PAGESIZE */
6677 # else /* no HAVE_SYS_PARAM_H */
6678 # define getpagesize() 8192 /* punt totally */
6679 # endif /* no HAVE_SYS_PARAM_H */
6680 # endif /* no _SC_PAGESIZE */
6681
6682 #endif /* no HAVE_GETPAGESIZE */
6683
6684 int
6685 main ()
6686 {
6687 char *data, *data2, *data3;
6688 int i, pagesize;
6689 int fd;
6690
6691 pagesize = getpagesize ();
6692
6693 /* First, make a file with some known garbage in it. */
6694 data = (char *) malloc (pagesize);
6695 if (!data)
6696 exit (1);
6697 for (i = 0; i < pagesize; ++i)
6698 *(data + i) = rand ();
6699 umask (0);
6700 fd = creat ("conftest.mmap", 0600);
6701 if (fd < 0)
6702 exit (1);
6703 if (write (fd, data, pagesize) != pagesize)
6704 exit (1);
6705 close (fd);
6706
6707 /* Next, try to mmap the file at a fixed address which already has
6708 something else allocated at it. If we can, also make sure that
6709 we see the same garbage. */
6710 fd = open ("conftest.mmap", O_RDWR);
6711 if (fd < 0)
6712 exit (1);
6713 data2 = (char *) malloc (2 * pagesize);
6714 if (!data2)
6715 exit (1);
6716 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6717 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6718 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6719 exit (1);
6720 for (i = 0; i < pagesize; ++i)
6721 if (*(data + i) != *(data2 + i))
6722 exit (1);
6723
6724 /* Finally, make sure that changes to the mapped area do not
6725 percolate back to the file as seen by read(). (This is a bug on
6726 some variants of i386 svr4.0.) */
6727 for (i = 0; i < pagesize; ++i)
6728 *(data2 + i) = *(data2 + i) + 1;
6729 data3 = (char *) malloc (pagesize);
6730 if (!data3)
6731 exit (1);
6732 if (read (fd, data3, pagesize) != pagesize)
6733 exit (1);
6734 for (i = 0; i < pagesize; ++i)
6735 if (*(data + i) != *(data3 + i))
6736 exit (1);
6737 close (fd);
6738 exit (0);
6739 }
6740 _ACEOF
6741 rm -f conftest$ac_exeext
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 ac_cv_func_mmap_fixed_mapped=yes
6753 else
6754 echo "$as_me: program exited with status $ac_status" >&5
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 ( exit $ac_status )
6759 ac_cv_func_mmap_fixed_mapped=no
6760 fi
6761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6762 fi
6763 fi
6764 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6765 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6766 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6767
6768 cat >>confdefs.h <<\_ACEOF
6769 #define HAVE_MMAP 1
6770 _ACEOF
6771
6772 fi
6773 rm -f conftest.mmap
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6786 unistd.h values.h sys/param.h
6787 do
6788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6790 echo "$as_me:$LINENO: checking for $ac_header" >&5
6791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 fi
6795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6797 else
6798 # Is the header compilable?
6799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 #include <$ac_header>
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_header_compiler=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837 ac_header_compiler=no
6838 fi
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6841 echo "${ECHO_T}$ac_header_compiler" >&6
6842
6843 # Is the header present?
6844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6846 cat >conftest.$ac_ext <<_ACEOF
6847 /* confdefs.h. */
6848 _ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <$ac_header>
6853 _ACEOF
6854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } >/dev/null; then
6862 if test -s conftest.err; then
6863 ac_cpp_err=$ac_c_preproc_warn_flag
6864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6865 else
6866 ac_cpp_err=
6867 fi
6868 else
6869 ac_cpp_err=yes
6870 fi
6871 if test -z "$ac_cpp_err"; then
6872 ac_header_preproc=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_header_preproc=no
6878 fi
6879 rm -f conftest.err conftest.$ac_ext
6880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6881 echo "${ECHO_T}$ac_header_preproc" >&6
6882
6883 # So? What about this header?
6884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6885 yes:no: )
6886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6890 ac_header_preproc=yes
6891 ;;
6892 no:yes:* )
6893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6905 (
6906 cat <<\_ASBOX
6907 ## ------------------------------------------ ##
6908 ## Report this to the AC_PACKAGE_NAME lists. ##
6909 ## ------------------------------------------ ##
6910 _ASBOX
6911 ) |
6912 sed "s/^/$as_me: WARNING: /" >&2
6913 ;;
6914 esac
6915 echo "$as_me:$LINENO: checking for $ac_header" >&5
6916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 eval "$as_ac_Header=\$ac_header_preproc"
6921 fi
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6924
6925 fi
6926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6927 cat >>confdefs.h <<_ACEOF
6928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929 _ACEOF
6930
6931 fi
6932
6933 done
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6946 __argz_count __argz_stringify __argz_next
6947 do
6948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6949 echo "$as_me:$LINENO: checking for $ac_func" >&5
6950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6951 if eval "test \"\${$as_ac_var+set}\" = set"; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6962 #define $ac_func innocuous_$ac_func
6963
6964 /* System header to define __stub macros and hopefully few prototypes,
6965 which can conflict with char $ac_func (); below.
6966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 <limits.h> exists even on freestanding compilers. */
6968
6969 #ifdef __STDC__
6970 # include <limits.h>
6971 #else
6972 # include <assert.h>
6973 #endif
6974
6975 #undef $ac_func
6976
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 #ifdef __cplusplus
6979 extern "C"
6980 {
6981 #endif
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6984 char $ac_func ();
6985 /* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6989 choke me
6990 #else
6991 char (*f) () = $ac_func;
6992 #endif
6993 #ifdef __cplusplus
6994 }
6995 #endif
6996
6997 int
6998 main ()
6999 {
7000 return f != $ac_func;
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 eval "$as_ac_var=yes"
7028 else
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 eval "$as_ac_var=no"
7033 fi
7034 rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 fi
7037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7039 if test `eval echo '${'$as_ac_var'}'` = yes; then
7040 cat >>confdefs.h <<_ACEOF
7041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7042 _ACEOF
7043
7044 fi
7045 done
7046
7047
7048 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7049
7050 for ac_func in stpcpy
7051 do
7052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_func" >&5
7054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_var+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7066 #define $ac_func innocuous_$ac_func
7067
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char $ac_func (); below.
7070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 <limits.h> exists even on freestanding compilers. */
7072
7073 #ifdef __STDC__
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7078
7079 #undef $ac_func
7080
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 #ifdef __cplusplus
7083 extern "C"
7084 {
7085 #endif
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088 char $ac_func ();
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7093 choke me
7094 #else
7095 char (*f) () = $ac_func;
7096 #endif
7097 #ifdef __cplusplus
7098 }
7099 #endif
7100
7101 int
7102 main ()
7103 {
7104 return f != $ac_func;
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 eval "$as_ac_var=yes"
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 eval "$as_ac_var=no"
7137 fi
7138 rm -f conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 fi
7141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7143 if test `eval echo '${'$as_ac_var'}'` = yes; then
7144 cat >>confdefs.h <<_ACEOF
7145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7146 _ACEOF
7147
7148 fi
7149 done
7150
7151 fi
7152 if test "${ac_cv_func_stpcpy}" = "yes"; then
7153
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_STPCPY 1
7156 _ACEOF
7157
7158 fi
7159
7160 if test $ac_cv_header_locale_h = yes; then
7161 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7162 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7163 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <locale.h>
7173 int
7174 main ()
7175 {
7176 return LC_MESSAGES
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest.$ac_objext conftest$ac_exeext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 am_cv_val_LC_MESSAGES=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 am_cv_val_LC_MESSAGES=no
7209 fi
7210 rm -f conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7212 fi
7213 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7214 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7215 if test $am_cv_val_LC_MESSAGES = yes; then
7216
7217 cat >>confdefs.h <<\_ACEOF
7218 #define HAVE_LC_MESSAGES 1
7219 _ACEOF
7220
7221 fi
7222 fi
7223 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7224 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7225 # Check whether --enable-nls or --disable-nls was given.
7226 if test "${enable_nls+set}" = set; then
7227 enableval="$enable_nls"
7228 USE_NLS=$enableval
7229 else
7230 USE_NLS=yes
7231 fi;
7232 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7233 echo "${ECHO_T}$USE_NLS" >&6
7234
7235
7236 USE_INCLUDED_LIBINTL=no
7237
7238 if test "$USE_NLS" = "yes"; then
7239 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7240 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7241
7242 # Check whether --with-included-gettext or --without-included-gettext was given.
7243 if test "${with_included_gettext+set}" = set; then
7244 withval="$with_included_gettext"
7245 nls_cv_force_use_gnu_gettext=$withval
7246 else
7247 nls_cv_force_use_gnu_gettext=no
7248 fi;
7249 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7250 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7251
7252 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7253 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7254 nls_cv_header_intl=
7255 nls_cv_header_libgt=
7256 CATOBJEXT=
7257
7258 if test "${ac_cv_header_libintl_h+set}" = set; then
7259 echo "$as_me:$LINENO: checking for libintl.h" >&5
7260 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7261 if test "${ac_cv_header_libintl_h+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 fi
7264 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7265 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7266 else
7267 # Is the header compilable?
7268 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7269 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7277 #include <libintl.h>
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_header_compiler=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 ac_header_compiler=no
7307 fi
7308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7310 echo "${ECHO_T}$ac_header_compiler" >&6
7311
7312 # Is the header present?
7313 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7314 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 #include <libintl.h>
7322 _ACEOF
7323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev/null; then
7331 if test -s conftest.err; then
7332 ac_cpp_err=$ac_c_preproc_warn_flag
7333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7334 else
7335 ac_cpp_err=
7336 fi
7337 else
7338 ac_cpp_err=yes
7339 fi
7340 if test -z "$ac_cpp_err"; then
7341 ac_header_preproc=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 ac_header_preproc=no
7347 fi
7348 rm -f conftest.err conftest.$ac_ext
7349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7350 echo "${ECHO_T}$ac_header_preproc" >&6
7351
7352 # So? What about this header?
7353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7354 yes:no: )
7355 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7356 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7358 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7359 ac_header_preproc=yes
7360 ;;
7361 no:yes:* )
7362 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7363 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7365 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7367 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7369 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7371 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7373 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7374 (
7375 cat <<\_ASBOX
7376 ## ------------------------------------------ ##
7377 ## Report this to the AC_PACKAGE_NAME lists. ##
7378 ## ------------------------------------------ ##
7379 _ASBOX
7380 ) |
7381 sed "s/^/$as_me: WARNING: /" >&2
7382 ;;
7383 esac
7384 echo "$as_me:$LINENO: checking for libintl.h" >&5
7385 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7386 if test "${ac_cv_header_libintl_h+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 ac_cv_header_libintl_h=$ac_header_preproc
7390 fi
7391 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7392 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7393
7394 fi
7395 if test $ac_cv_header_libintl_h = yes; then
7396 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7397 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7398 if test "${gt_cv_func_gettext_libc+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <libintl.h>
7408 int
7409 main ()
7410 {
7411 return (int) gettext ("")
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418 (eval $ac_link) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest$ac_exeext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 gt_cv_func_gettext_libc=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 gt_cv_func_gettext_libc=no
7444 fi
7445 rm -f conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 fi
7448 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7449 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7450
7451 if test "$gt_cv_func_gettext_libc" != "yes"; then
7452 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7453 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7454 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457 ac_check_lib_save_LIBS=$LIBS
7458 LIBS="-lintl $LIBS"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465
7466 /* Override any gcc2 internal prototype to avoid an error. */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7472 char bindtextdomain ();
7473 int
7474 main ()
7475 {
7476 bindtextdomain ();
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_lib_intl_bindtextdomain=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_cv_lib_intl_bindtextdomain=no
7509 fi
7510 rm -f conftest.err conftest.$ac_objext \
7511 conftest$ac_exeext conftest.$ac_ext
7512 LIBS=$ac_check_lib_save_LIBS
7513 fi
7514 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7515 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7516 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7517 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7518 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7519 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528
7529 int
7530 main ()
7531 {
7532 return (int) gettext ("")
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 gt_cv_func_gettext_libintl=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 gt_cv_func_gettext_libintl=no
7565 fi
7566 rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 fi
7569 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7570 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7571 fi
7572
7573 fi
7574
7575 if test "$gt_cv_func_gettext_libc" = "yes" \
7576 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7577
7578 cat >>confdefs.h <<\_ACEOF
7579 #define HAVE_GETTEXT 1
7580 _ACEOF
7581
7582 # Extract the first word of "msgfmt", so it can be a program name with args.
7583 set dummy msgfmt; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_path_MSGFMT+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 case "$MSGFMT" in
7590 /*)
7591 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7595 for ac_dir in $PATH; do
7596 test -z "$ac_dir" && ac_dir=.
7597 if test -f $ac_dir/$ac_word; then
7598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7599 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7600 break
7601 fi
7602 fi
7603 done
7604 IFS="$ac_save_ifs"
7605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7606 ;;
7607 esac
7608 fi
7609 MSGFMT="$ac_cv_path_MSGFMT"
7610 if test -n "$MSGFMT"; then
7611 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7612 echo "${ECHO_T}$MSGFMT" >&6
7613 else
7614 echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6
7616 fi
7617 if test "$MSGFMT" != "no"; then
7618
7619 for ac_func in dcgettext
7620 do
7621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7622 echo "$as_me:$LINENO: checking for $ac_func" >&5
7623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7624 if eval "test \"\${$as_ac_var+set}\" = set"; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7635 #define $ac_func innocuous_$ac_func
7636
7637 /* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func (); below.
7639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7640 <limits.h> exists even on freestanding compilers. */
7641
7642 #ifdef __STDC__
7643 # include <limits.h>
7644 #else
7645 # include <assert.h>
7646 #endif
7647
7648 #undef $ac_func
7649
7650 /* Override any gcc2 internal prototype to avoid an error. */
7651 #ifdef __cplusplus
7652 extern "C"
7653 {
7654 #endif
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657 char $ac_func ();
7658 /* The GNU C library defines this for functions which it implements
7659 to always fail with ENOSYS. Some functions are actually named
7660 something starting with __ and the normal name is an alias. */
7661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7662 choke me
7663 #else
7664 char (*f) () = $ac_func;
7665 #endif
7666 #ifdef __cplusplus
7667 }
7668 #endif
7669
7670 int
7671 main ()
7672 {
7673 return f != $ac_func;
7674 ;
7675 return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 (eval $ac_try) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 eval "$as_ac_var=yes"
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705 eval "$as_ac_var=no"
7706 fi
7707 rm -f conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 fi
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7712 if test `eval echo '${'$as_ac_var'}'` = yes; then
7713 cat >>confdefs.h <<_ACEOF
7714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7715 _ACEOF
7716
7717 fi
7718 done
7719
7720 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7721 set dummy gmsgfmt; ac_word=$2
7722 echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 case $GMSGFMT in
7728 [\\/]* | ?:[\\/]*)
7729 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7730 ;;
7731 *)
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7742 fi
7743 done
7744 done
7745
7746 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7747 ;;
7748 esac
7749 fi
7750 GMSGFMT=$ac_cv_path_GMSGFMT
7751
7752 if test -n "$GMSGFMT"; then
7753 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7754 echo "${ECHO_T}$GMSGFMT" >&6
7755 else
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6
7758 fi
7759
7760 # Extract the first word of "xgettext", so it can be a program name with args.
7761 set dummy xgettext; ac_word=$2
7762 echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 case "$XGETTEXT" in
7768 /*)
7769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7773 for ac_dir in $PATH; do
7774 test -z "$ac_dir" && ac_dir=.
7775 if test -f $ac_dir/$ac_word; then
7776 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7777 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7778 break
7779 fi
7780 fi
7781 done
7782 IFS="$ac_save_ifs"
7783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7784 ;;
7785 esac
7786 fi
7787 XGETTEXT="$ac_cv_path_XGETTEXT"
7788 if test -n "$XGETTEXT"; then
7789 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7790 echo "${ECHO_T}$XGETTEXT" >&6
7791 else
7792 echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794 fi
7795
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802
7803 int
7804 main ()
7805 {
7806 extern int _nl_msg_cat_cntr;
7807 return _nl_msg_cat_cntr
7808 ;
7809 return 0;
7810 }
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 CATOBJEXT=.gmo
7835 DATADIRNAME=share
7836 else
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840 CATOBJEXT=.mo
7841 DATADIRNAME=lib
7842 fi
7843 rm -f conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
7845 INSTOBJEXT=.mo
7846 fi
7847 fi
7848
7849 fi
7850
7851
7852
7853
7854 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7855 # Neither gettext nor catgets in included in the C library.
7856 # Fall back on GNU gettext library (assuming it is present).
7857 nls_cv_use_gnu_gettext=yes
7858 fi
7859 fi
7860
7861 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7862 INTLOBJS="\$(GETTOBJS)"
7863 # Extract the first word of "msgfmt", so it can be a program name with args.
7864 set dummy msgfmt; ac_word=$2
7865 echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7867 if test "${ac_cv_path_MSGFMT+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870 case "$MSGFMT" in
7871 /*)
7872 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7873 ;;
7874 *)
7875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7876 for ac_dir in $PATH; do
7877 test -z "$ac_dir" && ac_dir=.
7878 if test -f $ac_dir/$ac_word; then
7879 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7880 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7881 break
7882 fi
7883 fi
7884 done
7885 IFS="$ac_save_ifs"
7886 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7887 ;;
7888 esac
7889 fi
7890 MSGFMT="$ac_cv_path_MSGFMT"
7891 if test -n "$MSGFMT"; then
7892 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7893 echo "${ECHO_T}$MSGFMT" >&6
7894 else
7895 echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7897 fi
7898
7899 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7900 set dummy gmsgfmt; ac_word=$2
7901 echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7903 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 case $GMSGFMT in
7907 [\\/]* | ?:[\\/]*)
7908 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7909 ;;
7910 *)
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922 done
7923 done
7924
7925 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7926 ;;
7927 esac
7928 fi
7929 GMSGFMT=$ac_cv_path_GMSGFMT
7930
7931 if test -n "$GMSGFMT"; then
7932 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7933 echo "${ECHO_T}$GMSGFMT" >&6
7934 else
7935 echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6
7937 fi
7938
7939 # Extract the first word of "xgettext", so it can be a program name with args.
7940 set dummy xgettext; ac_word=$2
7941 echo "$as_me:$LINENO: checking for $ac_word" >&5
7942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7943 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 case "$XGETTEXT" in
7947 /*)
7948 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7949 ;;
7950 *)
7951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7952 for ac_dir in $PATH; do
7953 test -z "$ac_dir" && ac_dir=.
7954 if test -f $ac_dir/$ac_word; then
7955 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7956 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7957 break
7958 fi
7959 fi
7960 done
7961 IFS="$ac_save_ifs"
7962 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7963 ;;
7964 esac
7965 fi
7966 XGETTEXT="$ac_cv_path_XGETTEXT"
7967 if test -n "$XGETTEXT"; then
7968 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7969 echo "${ECHO_T}$XGETTEXT" >&6
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6
7973 fi
7974
7975
7976 USE_INCLUDED_LIBINTL=yes
7977 CATOBJEXT=.gmo
7978 INSTOBJEXT=.mo
7979 DATADIRNAME=share
7980 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7981 INTLLIBS=$INTLDEPS
7982 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7983 nls_cv_header_intl=libintl.h
7984 nls_cv_header_libgt=libgettext.h
7985 fi
7986
7987 if test "$XGETTEXT" != ":"; then
7988 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7989 : ;
7990 else
7991 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7992 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7993 XGETTEXT=":"
7994 fi
7995 fi
7996
7997 # We need to process the po/ directory.
7998 POSUB=po
7999 else
8000 DATADIRNAME=share
8001 nls_cv_header_intl=libintl.h
8002 nls_cv_header_libgt=libgettext.h
8003 fi
8004
8005 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8006 # because some of the sources are only built for this goal.
8007 if test "$PACKAGE" = gettext; then
8008 USE_NLS=yes
8009 USE_INCLUDED_LIBINTL=yes
8010 fi
8011
8012 for lang in $ALL_LINGUAS; do
8013 GMOFILES="$GMOFILES $lang.gmo"
8014 POFILES="$POFILES $lang.po"
8015 done
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 if test "x$CATOBJEXT" != "x"; then
8029
8030 cat >>confdefs.h <<\_ACEOF
8031 #define ENABLE_NLS 1
8032 _ACEOF
8033
8034 fi
8035
8036
8037 if test "x$CATOBJEXT" != "x"; then
8038 if test "x$ALL_LINGUAS" = "x"; then
8039 LINGUAS=
8040 else
8041 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8042 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8043 NEW_LINGUAS=
8044 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8045 case "$ALL_LINGUAS" in
8046 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8047 esac
8048 done
8049 LINGUAS=$NEW_LINGUAS
8050 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8051 echo "${ECHO_T}$LINGUAS" >&6
8052 fi
8053
8054 if test -n "$LINGUAS"; then
8055 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8056 fi
8057 fi
8058
8059 if test $ac_cv_header_locale_h = yes; then
8060 INCLUDE_LOCALE_H="#include <locale.h>"
8061 else
8062 INCLUDE_LOCALE_H="\
8063 /* The system does not provide the header <locale.h>. Take care yourself. */"
8064 fi
8065
8066
8067 if test -f $srcdir/po2tbl.sed.in; then
8068 if test "$CATOBJEXT" = ".cat"; then
8069 if test "${ac_cv_header_linux_version_h+set}" = set; then
8070 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8071 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8072 if test "${ac_cv_header_linux_version_h+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 fi
8075 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8076 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8077 else
8078 # Is the header compilable?
8079 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8080 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8088 #include <linux/version.h>
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8092 (eval $ac_compile) 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
8099 { ac_try='test -z "$ac_c_werror_flag"
8100 || test ! -s conftest.err'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 ac_header_compiler=yes
8113 else
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117 ac_header_compiler=no
8118 fi
8119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8121 echo "${ECHO_T}$ac_header_compiler" >&6
8122
8123 # Is the header present?
8124 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8125 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 #include <linux/version.h>
8133 _ACEOF
8134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } >/dev/null; then
8142 if test -s conftest.err; then
8143 ac_cpp_err=$ac_c_preproc_warn_flag
8144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8145 else
8146 ac_cpp_err=
8147 fi
8148 else
8149 ac_cpp_err=yes
8150 fi
8151 if test -z "$ac_cpp_err"; then
8152 ac_header_preproc=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_header_preproc=no
8158 fi
8159 rm -f conftest.err conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161 echo "${ECHO_T}$ac_header_preproc" >&6
8162
8163 # So? What about this header?
8164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8165 yes:no: )
8166 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8167 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8169 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8170 ac_header_preproc=yes
8171 ;;
8172 no:yes:* )
8173 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8174 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8176 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8178 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8180 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8182 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8184 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8185 (
8186 cat <<\_ASBOX
8187 ## ------------------------------------------ ##
8188 ## Report this to the AC_PACKAGE_NAME lists. ##
8189 ## ------------------------------------------ ##
8190 _ASBOX
8191 ) |
8192 sed "s/^/$as_me: WARNING: /" >&2
8193 ;;
8194 esac
8195 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8196 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8197 if test "${ac_cv_header_linux_version_h+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 ac_cv_header_linux_version_h=$ac_header_preproc
8201 fi
8202 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8203 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8204
8205 fi
8206 if test $ac_cv_header_linux_version_h = yes; then
8207 msgformat=linux
8208 else
8209 msgformat=xopen
8210 fi
8211
8212
8213
8214 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8215 fi
8216 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8217 $srcdir/po2tbl.sed.in > po2tbl.sed
8218 fi
8219
8220 if test "$PACKAGE" = "gettext"; then
8221 GT_NO="#NO#"
8222 GT_YES=
8223 else
8224 GT_NO=
8225 GT_YES="#YES#"
8226 fi
8227
8228
8229
8230 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8231
8232
8233 l=
8234
8235
8236 if test -f $srcdir/po/POTFILES.in; then
8237 test -d po || mkdir po
8238 if test "x$srcdir" != "x."; then
8239 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8240 posrcprefix="$srcdir/"
8241 else
8242 posrcprefix="../$srcdir/"
8243 fi
8244 else
8245 posrcprefix="../"
8246 fi
8247 rm -f po/POTFILES
8248 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8249 < $srcdir/po/POTFILES.in > po/POTFILES
8250 fi
8251
8252
8253
8254
8255 for ac_prog in 'bison -y' byacc
8256 do
8257 # Extract the first word of "$ac_prog", so it can be a program name with args.
8258 set dummy $ac_prog; ac_word=$2
8259 echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8261 if test "${ac_cv_prog_YACC+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264 if test -n "$YACC"; then
8265 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_YACC="$ac_prog"
8275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278 done
8279 done
8280
8281 fi
8282 fi
8283 YACC=$ac_cv_prog_YACC
8284 if test -n "$YACC"; then
8285 echo "$as_me:$LINENO: result: $YACC" >&5
8286 echo "${ECHO_T}$YACC" >&6
8287 else
8288 echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6
8290 fi
8291
8292 test -n "$YACC" && break
8293 done
8294 test -n "$YACC" || YACC="yacc"
8295
8296 for ac_prog in flex lex
8297 do
8298 # Extract the first word of "$ac_prog", so it can be a program name with args.
8299 set dummy $ac_prog; ac_word=$2
8300 echo "$as_me:$LINENO: checking for $ac_word" >&5
8301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8302 if test "${ac_cv_prog_LEX+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 if test -n "$LEX"; then
8306 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_LEX="$ac_prog"
8316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319 done
8320 done
8321
8322 fi
8323 fi
8324 LEX=$ac_cv_prog_LEX
8325 if test -n "$LEX"; then
8326 echo "$as_me:$LINENO: result: $LEX" >&5
8327 echo "${ECHO_T}$LEX" >&6
8328 else
8329 echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6
8331 fi
8332
8333 test -n "$LEX" && break
8334 done
8335 test -n "$LEX" || LEX=":"
8336
8337 if test -z "$LEXLIB"
8338 then
8339 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8340 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8341 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 ac_check_lib_save_LIBS=$LIBS
8345 LIBS="-lfl $LIBS"
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 /* We use char because int might match the return type of a gcc2
8358 builtin and then its argument prototype would still apply. */
8359 char yywrap ();
8360 int
8361 main ()
8362 {
8363 yywrap ();
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_lib_fl_yywrap=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 ac_cv_lib_fl_yywrap=no
8396 fi
8397 rm -f conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8399 LIBS=$ac_check_lib_save_LIBS
8400 fi
8401 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8402 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8403 if test $ac_cv_lib_fl_yywrap = yes; then
8404 LEXLIB="-lfl"
8405 else
8406 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8407 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8408 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 ac_check_lib_save_LIBS=$LIBS
8412 LIBS="-ll $LIBS"
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 #ifdef __cplusplus
8422 extern "C"
8423 #endif
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8426 char yywrap ();
8427 int
8428 main ()
8429 {
8430 yywrap ();
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try='test -z "$ac_c_werror_flag"
8445 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest$ac_exeext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_cv_lib_l_yywrap=yes
8458 else
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 ac_cv_lib_l_yywrap=no
8463 fi
8464 rm -f conftest.err conftest.$ac_objext \
8465 conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8467 fi
8468 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8469 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8470 if test $ac_cv_lib_l_yywrap = yes; then
8471 LEXLIB="-ll"
8472 fi
8473
8474 fi
8475
8476 fi
8477
8478 if test "x$LEX" != "x:"; then
8479 echo "$as_me:$LINENO: checking lex output file root" >&5
8480 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8481 if test "${ac_cv_prog_lex_root+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484 # The minimal lex program is just a single line: %%. But some broken lexes
8485 # (Solaris, I think it was) want two %% lines, so accommodate them.
8486 cat >conftest.l <<_ACEOF
8487 %%
8488 %%
8489 _ACEOF
8490 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8491 (eval $LEX conftest.l) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }
8495 if test -f lex.yy.c; then
8496 ac_cv_prog_lex_root=lex.yy
8497 elif test -f lexyy.c; then
8498 ac_cv_prog_lex_root=lexyy
8499 else
8500 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8501 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8502 { (exit 1); exit 1; }; }
8503 fi
8504 fi
8505 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8506 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8507 rm -f conftest.l
8508 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8509
8510 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8511 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8512 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 # POSIX says lex can declare yytext either as a pointer or an array; the
8516 # default is implementation-dependent. Figure out which it is, since
8517 # not all implementations provide the %pointer and %array declarations.
8518 ac_cv_prog_lex_yytext_pointer=no
8519 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8520 ac_save_LIBS=$LIBS
8521 LIBS="$LIBS $LEXLIB"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 `cat $LEX_OUTPUT_ROOT.c`
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_prog_lex_yytext_pointer=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 fi
8553 rm -f conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 LIBS=$ac_save_LIBS
8556 rm -f "${LEX_OUTPUT_ROOT}.c"
8557
8558 fi
8559 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8560 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8561 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define YYTEXT_POINTER 1
8565 _ACEOF
8566
8567 fi
8568
8569 fi
8570 if test "$LEX" = :; then
8571 LEX=${am_missing_run}flex
8572 fi
8573
8574 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8575 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8576 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8577 if test "${enable_maintainer_mode+set}" = set; then
8578 enableval="$enable_maintainer_mode"
8579 USE_MAINTAINER_MODE=$enableval
8580 else
8581 USE_MAINTAINER_MODE=no
8582 fi;
8583 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8584 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8585
8586
8587 if test $USE_MAINTAINER_MODE = yes; then
8588 MAINTAINER_MODE_TRUE=
8589 MAINTAINER_MODE_FALSE='#'
8590 else
8591 MAINTAINER_MODE_TRUE='#'
8592 MAINTAINER_MODE_FALSE=
8593 fi
8594
8595 MAINT=$MAINTAINER_MODE_TRUE
8596
8597
8598
8599 . ${srcdir}/configure.host
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610 for ac_header in string.h strings.h stdlib.h unistd.h
8611 do
8612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614 echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 fi
8619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8621 else
8622 # Is the header compilable?
8623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #include <$ac_header>
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636 (eval $ac_compile) 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag"
8644 || test ! -s conftest.err'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; } &&
8650 { ac_try='test -s conftest.$ac_objext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_header_compiler=yes
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_header_compiler=no
8662 fi
8663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8665 echo "${ECHO_T}$ac_header_compiler" >&6
8666
8667 # Is the header present?
8668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h. */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 #include <$ac_header>
8677 _ACEOF
8678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } >/dev/null; then
8686 if test -s conftest.err; then
8687 ac_cpp_err=$ac_c_preproc_warn_flag
8688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8689 else
8690 ac_cpp_err=
8691 fi
8692 else
8693 ac_cpp_err=yes
8694 fi
8695 if test -z "$ac_cpp_err"; then
8696 ac_header_preproc=yes
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701 ac_header_preproc=no
8702 fi
8703 rm -f conftest.err conftest.$ac_ext
8704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8705 echo "${ECHO_T}$ac_header_preproc" >&6
8706
8707 # So? What about this header?
8708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8709 yes:no: )
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8714 ac_header_preproc=yes
8715 ;;
8716 no:yes:* )
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8729 (
8730 cat <<\_ASBOX
8731 ## ------------------------------------------ ##
8732 ## Report this to the AC_PACKAGE_NAME lists. ##
8733 ## ------------------------------------------ ##
8734 _ASBOX
8735 ) |
8736 sed "s/^/$as_me: WARNING: /" >&2
8737 ;;
8738 esac
8739 echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 eval "$as_ac_Header=\$ac_header_preproc"
8745 fi
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748
8749 fi
8750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751 cat >>confdefs.h <<_ACEOF
8752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8753 _ACEOF
8754
8755 fi
8756
8757 done
8758
8759
8760
8761
8762 for ac_func in sbrk realpath glob
8763 do
8764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8765 echo "$as_me:$LINENO: checking for $ac_func" >&5
8766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8767 if eval "test \"\${$as_ac_var+set}\" = set"; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define $ac_func innocuous_$ac_func
8779
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char $ac_func (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8784
8785 #ifdef __STDC__
8786 # include <limits.h>
8787 #else
8788 # include <assert.h>
8789 #endif
8790
8791 #undef $ac_func
8792
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 #ifdef __cplusplus
8795 extern "C"
8796 {
8797 #endif
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800 char $ac_func ();
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8805 choke me
8806 #else
8807 char (*f) () = $ac_func;
8808 #endif
8809 #ifdef __cplusplus
8810 }
8811 #endif
8812
8813 int
8814 main ()
8815 {
8816 return f != $ac_func;
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 eval "$as_ac_var=yes"
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 eval "$as_ac_var=no"
8849 fi
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8855 if test `eval echo '${'$as_ac_var'}'` = yes; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8858 _ACEOF
8859
8860 fi
8861 done
8862
8863
8864
8865
8866
8867
8868 ac_header_dirent=no
8869 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8870 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8871 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8872 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h. */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 #include <sys/types.h>
8883 #include <$ac_hdr>
8884
8885 int
8886 main ()
8887 {
8888 if ((DIR *) 0)
8889 return 0;
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 eval "$as_ac_Header=yes"
8917 else
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 eval "$as_ac_Header=no"
8922 fi
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928 cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8930 _ACEOF
8931
8932 ac_header_dirent=$ac_hdr; break
8933 fi
8934
8935 done
8936 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8937 if test $ac_header_dirent = dirent.h; then
8938 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8940 if test "${ac_cv_search_opendir+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 ac_func_search_save_LIBS=$LIBS
8944 ac_cv_search_opendir=no
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char opendir ();
8959 int
8960 main ()
8961 {
8962 opendir ();
8963 ;
8964 return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_search_opendir="none required"
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 fi
8995 rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 if test "$ac_cv_search_opendir" = no; then
8998 for ac_lib in dir; do
8999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h. */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006
9007 /* Override any gcc2 internal prototype to avoid an error. */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */
9013 char opendir ();
9014 int
9015 main ()
9016 {
9017 opendir ();
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>conftest.er1
9025 ac_status=$?
9026 grep -v '^ *+' conftest.er1 >conftest.err
9027 rm -f conftest.er1
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag"
9032 || test ! -s conftest.err'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; } &&
9038 { ac_try='test -s conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_search_opendir="-l$ac_lib"
9045 break
9046 else
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 fi
9051 rm -f conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 done
9054 fi
9055 LIBS=$ac_func_search_save_LIBS
9056 fi
9057 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9058 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9059 if test "$ac_cv_search_opendir" != no; then
9060 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9061
9062 fi
9063
9064 else
9065 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9067 if test "${ac_cv_search_opendir+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070 ac_func_search_save_LIBS=$LIBS
9071 ac_cv_search_opendir=no
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078
9079 /* Override any gcc2 internal prototype to avoid an error. */
9080 #ifdef __cplusplus
9081 extern "C"
9082 #endif
9083 /* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9085 char opendir ();
9086 int
9087 main ()
9088 {
9089 opendir ();
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -z "$ac_c_werror_flag"
9104 || test ! -s conftest.err'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; } &&
9110 { ac_try='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_cv_search_opendir="none required"
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121 fi
9122 rm -f conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 if test "$ac_cv_search_opendir" = no; then
9125 for ac_lib in x; do
9126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h. */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133
9134 /* Override any gcc2 internal prototype to avoid an error. */
9135 #ifdef __cplusplus
9136 extern "C"
9137 #endif
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9140 char opendir ();
9141 int
9142 main ()
9143 {
9144 opendir ();
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_search_opendir="-l$ac_lib"
9172 break
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 fi
9178 rm -f conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 done
9181 fi
9182 LIBS=$ac_func_search_save_LIBS
9183 fi
9184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9186 if test "$ac_cv_search_opendir" != no; then
9187 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9188
9189 fi
9190
9191 fi
9192
9193
9194 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9195 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9196 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 #include <unistd.h>
9206 int
9207 main ()
9208 {
9209 extern int getopt (int, char *const*, const char *);
9210 ;
9211 return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216 (eval $ac_compile) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ld_cv_decl_getopt_unistd_h=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ld_cv_decl_getopt_unistd_h=no
9242 fi
9243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9244 fi
9245
9246 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
9247 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
9248 if test $ld_cv_decl_getopt_unistd_h = yes; then
9249
9250 cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_DECL_GETOPT 1
9252 _ACEOF
9253
9254 fi
9255
9256
9257 case "${host}" in
9258 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9259
9260 cat >>confdefs.h <<\_ACEOF
9261 #define USE_BINARY_FOPEN 1
9262 _ACEOF
9263 ;;
9264 esac
9265
9266 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9267 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9268 if test "${ac_cv_have_decl_strstr+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 int
9279 main ()
9280 {
9281 #ifndef strstr
9282 char *p = (char *) strstr;
9283 #endif
9284
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9291 (eval $ac_compile) 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest.$ac_objext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_have_decl_strstr=yes
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_cv_have_decl_strstr=no
9317 fi
9318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9319 fi
9320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9321 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9322 if test $ac_cv_have_decl_strstr = yes; then
9323
9324 cat >>confdefs.h <<_ACEOF
9325 #define HAVE_DECL_STRSTR 1
9326 _ACEOF
9327
9328
9329 else
9330 cat >>confdefs.h <<_ACEOF
9331 #define HAVE_DECL_STRSTR 0
9332 _ACEOF
9333
9334
9335 fi
9336 echo "$as_me:$LINENO: checking whether free is declared" >&5
9337 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9338 if test "${ac_cv_have_decl_free+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 int
9349 main ()
9350 {
9351 #ifndef free
9352 char *p = (char *) free;
9353 #endif
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>conftest.er1
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_have_decl_free=yes
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_cv_have_decl_free=no
9387 fi
9388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9389 fi
9390 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9391 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9392 if test $ac_cv_have_decl_free = yes; then
9393
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_FREE 1
9396 _ACEOF
9397
9398
9399 else
9400 cat >>confdefs.h <<_ACEOF
9401 #define HAVE_DECL_FREE 0
9402 _ACEOF
9403
9404
9405 fi
9406 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
9407 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
9408 if test "${ac_cv_have_decl_sbrk+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h. */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 $ac_includes_default
9418 int
9419 main ()
9420 {
9421 #ifndef sbrk
9422 char *p = (char *) sbrk;
9423 #endif
9424
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 rm -f conftest.$ac_objext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431 (eval $ac_compile) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag"
9439 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest.$ac_objext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 (eval $ac_try) 2>&5
9448 ac_status=$?
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_have_decl_sbrk=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456 ac_cv_have_decl_sbrk=no
9457 fi
9458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9459 fi
9460 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
9461 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
9462 if test $ac_cv_have_decl_sbrk = yes; then
9463
9464 cat >>confdefs.h <<_ACEOF
9465 #define HAVE_DECL_SBRK 1
9466 _ACEOF
9467
9468
9469 else
9470 cat >>confdefs.h <<_ACEOF
9471 #define HAVE_DECL_SBRK 0
9472 _ACEOF
9473
9474
9475 fi
9476 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9477 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9478 if test "${ac_cv_have_decl_getenv+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487 $ac_includes_default
9488 int
9489 main ()
9490 {
9491 #ifndef getenv
9492 char *p = (char *) getenv;
9493 #endif
9494
9495 ;
9496 return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_have_decl_getenv=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_cv_have_decl_getenv=no
9527 fi
9528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 fi
9530 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9531 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9532 if test $ac_cv_have_decl_getenv = yes; then
9533
9534 cat >>confdefs.h <<_ACEOF
9535 #define HAVE_DECL_GETENV 1
9536 _ACEOF
9537
9538
9539 else
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_DECL_GETENV 0
9542 _ACEOF
9543
9544
9545 fi
9546 echo "$as_me:$LINENO: checking whether environ is declared" >&5
9547 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
9548 if test "${ac_cv_have_decl_environ+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h. */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 $ac_includes_default
9558 int
9559 main ()
9560 {
9561 #ifndef environ
9562 char *p = (char *) environ;
9563 #endif
9564
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9571 (eval $ac_compile) 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest.$ac_objext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 ac_cv_have_decl_environ=yes
9592 else
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 ac_cv_have_decl_environ=no
9597 fi
9598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9599 fi
9600 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
9601 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
9602 if test $ac_cv_have_decl_environ = yes; then
9603
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_DECL_ENVIRON 1
9606 _ACEOF
9607
9608
9609 else
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_DECL_ENVIRON 0
9612 _ACEOF
9613
9614
9615 fi
9616
9617
9618
9619 # When converting linker scripts into strings for use in emulation
9620 # files, use astring.sed if the compiler supports ANSI string
9621 # concatenation, or ostring.sed otherwise. This is to support the
9622 # broken Microsoft MSVC compiler, which limits the length of string
9623 # constants, while still supporting pre-ANSI compilers which do not
9624 # support string concatenation.
9625 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9626 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9627 if test "${ld_cv_string_concatenation+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636
9637 int
9638 main ()
9639 {
9640 char *a = "a" "a";
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ld_cv_string_concatenation=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 ld_cv_string_concatenation=no
9673 fi
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 fi
9676
9677 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9678 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9679 if test "$ld_cv_string_concatenation" = "yes"; then
9680 STRINGIFY=astring.sed
9681 else
9682 STRINGIFY=ostring.sed
9683 fi
9684
9685
9686 # target-specific stuff:
9687
9688 all_targets=
9689 EMUL=
9690 all_emuls=
9691 all_emul_extras=
9692 all_libpath=
9693
9694 rm -f tdirs
9695
9696 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9697 do
9698 if test "$targ_alias" = "all"; then
9699 all_targets=true
9700 else
9701 # Canonicalize the secondary target names.
9702 result=`$ac_config_sub $targ_alias 2>/dev/null`
9703 if test -n "$result"; then
9704 targ=$result
9705 else
9706 targ=$targ_alias
9707 fi
9708
9709 . ${srcdir}/configure.tgt
9710
9711 if test "$targ" = "$target"; then
9712 EMUL=$targ_emul
9713 fi
9714
9715 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9716 case " $all_emuls " in
9717 *" e${i}.o "*) ;;
9718 *)
9719 all_emuls="$all_emuls e${i}.o"
9720 eval result=\$tdir_$i
9721 test -z "$result" && result=$targ_alias
9722 echo tdir_$i=$result >> tdirs
9723 ;;
9724 esac
9725 done
9726
9727 for i in $targ_emul $targ_extra_libpath; do
9728 case " $all_libpath " in
9729 *" ${i} "*) ;;
9730 *)
9731 if test -z "$all_libpath"; then
9732 all_libpath=${i}
9733 else
9734 all_libpath="$all_libpath ${i}"
9735 fi
9736 ;;
9737 esac
9738 done
9739
9740 for i in $targ_extra_ofiles; do
9741 case " $all_emul_extras " in
9742 *" ${i} "*) ;;
9743 *)
9744 all_emul_extras="$all_emul_extras ${i}"
9745 ;;
9746 esac
9747 done
9748 fi
9749 done
9750
9751
9752
9753 TDIRS=tdirs
9754
9755
9756 if test x${all_targets} = xtrue; then
9757 if test x${want64} = xtrue; then
9758 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9759 else
9760 EMULATION_OFILES='$(ALL_EMULATIONS)'
9761 fi
9762 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9763 else
9764 EMULATION_OFILES=$all_emuls
9765 EMUL_EXTRA_OFILES=$all_emul_extras
9766 fi
9767
9768
9769
9770
9771 EMULATION_LIBPATH=$all_libpath
9772
9773
9774 if test x${enable_static} = xno; then
9775 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9776 else
9777 TESTBFDLIB="../bfd/.libs/libbfd.a"
9778 fi
9779
9780
9781 target_vendor=${target_vendor=$host_vendor}
9782 case "$target_vendor" in
9783 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9784 *) EXTRA_SHLIB_EXTENSION= ;;
9785 esac
9786
9787 case "$target_os" in
9788 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9789 esac
9790
9791 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9792
9793 cat >>confdefs.h <<_ACEOF
9794 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9795 _ACEOF
9796
9797 fi
9798
9799 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9800 ac_config_commands="$ac_config_commands default"
9801 cat >confcache <<\_ACEOF
9802 # This file is a shell script that caches the results of configure
9803 # tests run on this system so they can be shared between configure
9804 # scripts and configure runs, see configure's option --config-cache.
9805 # It is not useful on other systems. If it contains results you don't
9806 # want to keep, you may remove or edit it.
9807 #
9808 # config.status only pays attention to the cache file if you give it
9809 # the --recheck option to rerun configure.
9810 #
9811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9813 # following values.
9814
9815 _ACEOF
9816
9817 # The following way of writing the cache mishandles newlines in values,
9818 # but we know of no workaround that is simple, portable, and efficient.
9819 # So, don't put newlines in cache variables' values.
9820 # Ultrix sh set writes to stderr and can't be redirected directly,
9821 # and sets the high bit in the cache file unless we assign to the vars.
9822 {
9823 (set) 2>&1 |
9824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9825 *ac_space=\ *)
9826 # `set' does not quote correctly, so add quotes (double-quote
9827 # substitution turns \\\\ into \\, and sed turns \\ into \).
9828 sed -n \
9829 "s/'/'\\\\''/g;
9830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9831 ;;
9832 *)
9833 # `set' quotes correctly as required by POSIX, so do not add quotes.
9834 sed -n \
9835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9836 ;;
9837 esac;
9838 } |
9839 sed '
9840 t clear
9841 : clear
9842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9843 t end
9844 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9845 : end' >>confcache
9846 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9847 if test -w $cache_file; then
9848 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9849 cat confcache >$cache_file
9850 else
9851 echo "not updating unwritable cache $cache_file"
9852 fi
9853 fi
9854 rm -f confcache
9855
9856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9857 # Let make expand exec_prefix.
9858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9859
9860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9862 # trailing colons and then remove the whole line if VPATH becomes empty
9863 # (actually we leave an empty line to preserve line numbers).
9864 if test "x$srcdir" = x.; then
9865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9866 s/:*\$(srcdir):*/:/;
9867 s/:*\${srcdir}:*/:/;
9868 s/:*@srcdir@:*/:/;
9869 s/^\([^=]*=[ ]*\):*/\1/;
9870 s/:*$//;
9871 s/^[^=]*=[ ]*$//;
9872 }'
9873 fi
9874
9875 DEFS=-DHAVE_CONFIG_H
9876
9877 ac_libobjs=
9878 ac_ltlibobjs=
9879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9880 # 1. Remove the extension, and $U if already installed.
9881 ac_i=`echo "$ac_i" |
9882 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9883 # 2. Add them.
9884 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9885 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9886 done
9887 LIBOBJS=$ac_libobjs
9888
9889 LTLIBOBJS=$ac_ltlibobjs
9890
9891
9892 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9893 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9894 Usually this means the macro was only invoked conditionally." >&5
9895 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9896 Usually this means the macro was only invoked conditionally." >&2;}
9897 { (exit 1); exit 1; }; }
9898 fi
9899 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9900 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9901 Usually this means the macro was only invoked conditionally." >&5
9902 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9903 Usually this means the macro was only invoked conditionally." >&2;}
9904 { (exit 1); exit 1; }; }
9905 fi
9906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9907 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9908 Usually this means the macro was only invoked conditionally." >&5
9909 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9910 Usually this means the macro was only invoked conditionally." >&2;}
9911 { (exit 1); exit 1; }; }
9912 fi
9913
9914 : ${CONFIG_STATUS=./config.status}
9915 ac_clean_files_save=$ac_clean_files
9916 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9917 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9918 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9919 cat >$CONFIG_STATUS <<_ACEOF
9920 #! $SHELL
9921 # Generated by $as_me.
9922 # Run this file to recreate the current configuration.
9923 # Compiler output produced by configure, useful for debugging
9924 # configure, is in config.log if it exists.
9925
9926 debug=false
9927 ac_cs_recheck=false
9928 ac_cs_silent=false
9929 SHELL=\${CONFIG_SHELL-$SHELL}
9930 _ACEOF
9931
9932 cat >>$CONFIG_STATUS <<\_ACEOF
9933 ## --------------------- ##
9934 ## M4sh Initialization. ##
9935 ## --------------------- ##
9936
9937 # Be Bourne compatible
9938 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9939 emulate sh
9940 NULLCMD=:
9941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9942 # is contrary to our usage. Disable this feature.
9943 alias -g '${1+"$@"}'='"$@"'
9944 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9945 set -o posix
9946 fi
9947 DUALCASE=1; export DUALCASE # for MKS sh
9948
9949 # Support unset when possible.
9950 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9951 as_unset=unset
9952 else
9953 as_unset=false
9954 fi
9955
9956
9957 # Work around bugs in pre-3.0 UWIN ksh.
9958 $as_unset ENV MAIL MAILPATH
9959 PS1='$ '
9960 PS2='> '
9961 PS4='+ '
9962
9963 # NLS nuisances.
9964 for as_var in \
9965 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9966 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9967 LC_TELEPHONE LC_TIME
9968 do
9969 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9970 eval $as_var=C; export $as_var
9971 else
9972 $as_unset $as_var
9973 fi
9974 done
9975
9976 # Required to use basename.
9977 if expr a : '\(a\)' >/dev/null 2>&1; then
9978 as_expr=expr
9979 else
9980 as_expr=false
9981 fi
9982
9983 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9984 as_basename=basename
9985 else
9986 as_basename=false
9987 fi
9988
9989
9990 # Name of the executable.
9991 as_me=`$as_basename "$0" ||
9992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9993 X"$0" : 'X\(//\)$' \| \
9994 X"$0" : 'X\(/\)$' \| \
9995 . : '\(.\)' 2>/dev/null ||
9996 echo X/"$0" |
9997 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9998 /^X\/\(\/\/\)$/{ s//\1/; q; }
9999 /^X\/\(\/\).*/{ s//\1/; q; }
10000 s/.*/./; q'`
10001
10002
10003 # PATH needs CR, and LINENO needs CR and PATH.
10004 # Avoid depending upon Character Ranges.
10005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10008 as_cr_digits='0123456789'
10009 as_cr_alnum=$as_cr_Letters$as_cr_digits
10010
10011 # The user is always right.
10012 if test "${PATH_SEPARATOR+set}" != set; then
10013 echo "#! /bin/sh" >conf$$.sh
10014 echo "exit 0" >>conf$$.sh
10015 chmod +x conf$$.sh
10016 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10017 PATH_SEPARATOR=';'
10018 else
10019 PATH_SEPARATOR=:
10020 fi
10021 rm -f conf$$.sh
10022 fi
10023
10024
10025 as_lineno_1=$LINENO
10026 as_lineno_2=$LINENO
10027 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10028 test "x$as_lineno_1" != "x$as_lineno_2" &&
10029 test "x$as_lineno_3" = "x$as_lineno_2" || {
10030 # Find who we are. Look in the path if we contain no path at all
10031 # relative or not.
10032 case $0 in
10033 *[\\/]* ) as_myself=$0 ;;
10034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10036 do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10040 done
10041
10042 ;;
10043 esac
10044 # We did not find ourselves, most probably we were run as `sh COMMAND'
10045 # in which case we are not to be found in the path.
10046 if test "x$as_myself" = x; then
10047 as_myself=$0
10048 fi
10049 if test ! -f "$as_myself"; then
10050 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10051 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10052 { (exit 1); exit 1; }; }
10053 fi
10054 case $CONFIG_SHELL in
10055 '')
10056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10058 do
10059 IFS=$as_save_IFS
10060 test -z "$as_dir" && as_dir=.
10061 for as_base in sh bash ksh sh5; do
10062 case $as_dir in
10063 /*)
10064 if ("$as_dir/$as_base" -c '
10065 as_lineno_1=$LINENO
10066 as_lineno_2=$LINENO
10067 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10068 test "x$as_lineno_1" != "x$as_lineno_2" &&
10069 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10070 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10071 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10072 CONFIG_SHELL=$as_dir/$as_base
10073 export CONFIG_SHELL
10074 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10075 fi;;
10076 esac
10077 done
10078 done
10079 ;;
10080 esac
10081
10082 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10083 # uniformly replaced by the line number. The first 'sed' inserts a
10084 # line-number line before each line; the second 'sed' does the real
10085 # work. The second script uses 'N' to pair each line-number line
10086 # with the numbered line, and appends trailing '-' during
10087 # substitution so that $LINENO is not a special case at line end.
10088 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10089 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10090 sed '=' <$as_myself |
10091 sed '
10092 N
10093 s,$,-,
10094 : loop
10095 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10096 t loop
10097 s,-$,,
10098 s,^['$as_cr_digits']*\n,,
10099 ' >$as_me.lineno &&
10100 chmod +x $as_me.lineno ||
10101 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10102 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10103 { (exit 1); exit 1; }; }
10104
10105 # Don't try to exec as it changes $[0], causing all sort of problems
10106 # (the dirname of $[0] is not the place where we might find the
10107 # original and so on. Autoconf is especially sensible to this).
10108 . ./$as_me.lineno
10109 # Exit status is that of the last command.
10110 exit
10111 }
10112
10113
10114 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10115 *c*,-n*) ECHO_N= ECHO_C='
10116 ' ECHO_T=' ' ;;
10117 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10118 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10119 esac
10120
10121 if expr a : '\(a\)' >/dev/null 2>&1; then
10122 as_expr=expr
10123 else
10124 as_expr=false
10125 fi
10126
10127 rm -f conf$$ conf$$.exe conf$$.file
10128 echo >conf$$.file
10129 if ln -s conf$$.file conf$$ 2>/dev/null; then
10130 # We could just check for DJGPP; but this test a) works b) is more generic
10131 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10132 if test -f conf$$.exe; then
10133 # Don't use ln at all; we don't have any links
10134 as_ln_s='cp -p'
10135 else
10136 as_ln_s='ln -s'
10137 fi
10138 elif ln conf$$.file conf$$ 2>/dev/null; then
10139 as_ln_s=ln
10140 else
10141 as_ln_s='cp -p'
10142 fi
10143 rm -f conf$$ conf$$.exe conf$$.file
10144
10145 if mkdir -p . 2>/dev/null; then
10146 as_mkdir_p=:
10147 else
10148 test -d ./-p && rmdir ./-p
10149 as_mkdir_p=false
10150 fi
10151
10152 as_executable_p="test -f"
10153
10154 # Sed expression to map a string onto a valid CPP name.
10155 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10156
10157 # Sed expression to map a string onto a valid variable name.
10158 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10159
10160
10161 # IFS
10162 # We need space, tab and new line, in precisely that order.
10163 as_nl='
10164 '
10165 IFS=" $as_nl"
10166
10167 # CDPATH.
10168 $as_unset CDPATH
10169
10170 exec 6>&1
10171
10172 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10173 # report actual input values of CONFIG_FILES etc. instead of their
10174 # values after options handling. Logging --version etc. is OK.
10175 exec 5>>config.log
10176 {
10177 echo
10178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10179 ## Running $as_me. ##
10180 _ASBOX
10181 } >&5
10182 cat >&5 <<_CSEOF
10183
10184 This file was extended by $as_me, which was
10185 generated by GNU Autoconf 2.59. Invocation command line was
10186
10187 CONFIG_FILES = $CONFIG_FILES
10188 CONFIG_HEADERS = $CONFIG_HEADERS
10189 CONFIG_LINKS = $CONFIG_LINKS
10190 CONFIG_COMMANDS = $CONFIG_COMMANDS
10191 $ $0 $@
10192
10193 _CSEOF
10194 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10195 echo >&5
10196 _ACEOF
10197
10198 # Files that config.status was made for.
10199 if test -n "$ac_config_files"; then
10200 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10201 fi
10202
10203 if test -n "$ac_config_headers"; then
10204 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10205 fi
10206
10207 if test -n "$ac_config_links"; then
10208 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10209 fi
10210
10211 if test -n "$ac_config_commands"; then
10212 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10213 fi
10214
10215 cat >>$CONFIG_STATUS <<\_ACEOF
10216
10217 ac_cs_usage="\
10218 \`$as_me' instantiates files from templates according to the
10219 current configuration.
10220
10221 Usage: $0 [OPTIONS] [FILE]...
10222
10223 -h, --help print this help, then exit
10224 -V, --version print version number, then exit
10225 -q, --quiet do not print progress messages
10226 -d, --debug don't remove temporary files
10227 --recheck update $as_me by reconfiguring in the same conditions
10228 --file=FILE[:TEMPLATE]
10229 instantiate the configuration file FILE
10230 --header=FILE[:TEMPLATE]
10231 instantiate the configuration header FILE
10232
10233 Configuration files:
10234 $config_files
10235
10236 Configuration headers:
10237 $config_headers
10238
10239 Configuration commands:
10240 $config_commands
10241
10242 Report bugs to <bug-autoconf@gnu.org>."
10243 _ACEOF
10244
10245 cat >>$CONFIG_STATUS <<_ACEOF
10246 ac_cs_version="\\
10247 config.status
10248 configured by $0, generated by GNU Autoconf 2.59,
10249 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10250
10251 Copyright (C) 2003 Free Software Foundation, Inc.
10252 This config.status script is free software; the Free Software Foundation
10253 gives unlimited permission to copy, distribute and modify it."
10254 srcdir=$srcdir
10255 INSTALL="$INSTALL"
10256 _ACEOF
10257
10258 cat >>$CONFIG_STATUS <<\_ACEOF
10259 # If no file are specified by the user, then we need to provide default
10260 # value. By we need to know if files were specified by the user.
10261 ac_need_defaults=:
10262 while test $# != 0
10263 do
10264 case $1 in
10265 --*=*)
10266 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10267 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10268 ac_shift=:
10269 ;;
10270 -*)
10271 ac_option=$1
10272 ac_optarg=$2
10273 ac_shift=shift
10274 ;;
10275 *) # This is not an option, so the user has probably given explicit
10276 # arguments.
10277 ac_option=$1
10278 ac_need_defaults=false;;
10279 esac
10280
10281 case $ac_option in
10282 # Handling of the options.
10283 _ACEOF
10284 cat >>$CONFIG_STATUS <<\_ACEOF
10285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10286 ac_cs_recheck=: ;;
10287 --version | --vers* | -V )
10288 echo "$ac_cs_version"; exit 0 ;;
10289 --he | --h)
10290 # Conflict between --help and --header
10291 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10292 Try \`$0 --help' for more information." >&5
10293 echo "$as_me: error: ambiguous option: $1
10294 Try \`$0 --help' for more information." >&2;}
10295 { (exit 1); exit 1; }; };;
10296 --help | --hel | -h )
10297 echo "$ac_cs_usage"; exit 0 ;;
10298 --debug | --d* | -d )
10299 debug=: ;;
10300 --file | --fil | --fi | --f )
10301 $ac_shift
10302 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10303 ac_need_defaults=false;;
10304 --header | --heade | --head | --hea )
10305 $ac_shift
10306 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10307 ac_need_defaults=false;;
10308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10310 ac_cs_silent=: ;;
10311
10312 # This is an error.
10313 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10314 Try \`$0 --help' for more information." >&5
10315 echo "$as_me: error: unrecognized option: $1
10316 Try \`$0 --help' for more information." >&2;}
10317 { (exit 1); exit 1; }; } ;;
10318
10319 *) ac_config_targets="$ac_config_targets $1" ;;
10320
10321 esac
10322 shift
10323 done
10324
10325 ac_configure_extra_args=
10326
10327 if $ac_cs_silent; then
10328 exec 6>/dev/null
10329 ac_configure_extra_args="$ac_configure_extra_args --silent"
10330 fi
10331
10332 _ACEOF
10333 cat >>$CONFIG_STATUS <<_ACEOF
10334 if \$ac_cs_recheck; then
10335 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10336 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10337 fi
10338
10339 _ACEOF
10340
10341 cat >>$CONFIG_STATUS <<_ACEOF
10342 #
10343 # INIT-COMMANDS section.
10344 #
10345
10346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10347
10348 _ACEOF
10349
10350
10351
10352 cat >>$CONFIG_STATUS <<\_ACEOF
10353 for ac_config_target in $ac_config_targets
10354 do
10355 case "$ac_config_target" in
10356 # Handling of arguments.
10357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10358 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10359 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10360 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10361 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10362 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10363 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10364 { (exit 1); exit 1; }; };;
10365 esac
10366 done
10367
10368 # If the user did not use the arguments to specify the items to instantiate,
10369 # then the envvar interface is used. Set only those that are not.
10370 # We use the long form for the default assignment because of an extremely
10371 # bizarre bug on SunOS 4.1.3.
10372 if $ac_need_defaults; then
10373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10376 fi
10377
10378 # Have a temporary directory for convenience. Make it in the build tree
10379 # simply because there is no reason to put it here, and in addition,
10380 # creating and moving files from /tmp can sometimes cause problems.
10381 # Create a temporary directory, and hook for its removal unless debugging.
10382 $debug ||
10383 {
10384 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10385 trap '{ (exit 1); exit 1; }' 1 2 13 15
10386 }
10387
10388 # Create a (secure) tmp directory for tmp files.
10389
10390 {
10391 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10392 test -n "$tmp" && test -d "$tmp"
10393 } ||
10394 {
10395 tmp=./confstat$$-$RANDOM
10396 (umask 077 && mkdir $tmp)
10397 } ||
10398 {
10399 echo "$me: cannot create a temporary directory in ." >&2
10400 { (exit 1); exit 1; }
10401 }
10402
10403 _ACEOF
10404
10405 cat >>$CONFIG_STATUS <<_ACEOF
10406
10407 #
10408 # CONFIG_FILES section.
10409 #
10410
10411 # No need to generate the scripts if there are no CONFIG_FILES.
10412 # This happens for instance when ./config.status config.h
10413 if test -n "\$CONFIG_FILES"; then
10414 # Protect against being on the right side of a sed subst in config.status.
10415 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10416 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10417 s,@SHELL@,$SHELL,;t t
10418 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10419 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10420 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10421 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10422 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10423 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10424 s,@exec_prefix@,$exec_prefix,;t t
10425 s,@prefix@,$prefix,;t t
10426 s,@program_transform_name@,$program_transform_name,;t t
10427 s,@bindir@,$bindir,;t t
10428 s,@sbindir@,$sbindir,;t t
10429 s,@libexecdir@,$libexecdir,;t t
10430 s,@datadir@,$datadir,;t t
10431 s,@sysconfdir@,$sysconfdir,;t t
10432 s,@sharedstatedir@,$sharedstatedir,;t t
10433 s,@localstatedir@,$localstatedir,;t t
10434 s,@libdir@,$libdir,;t t
10435 s,@includedir@,$includedir,;t t
10436 s,@oldincludedir@,$oldincludedir,;t t
10437 s,@infodir@,$infodir,;t t
10438 s,@mandir@,$mandir,;t t
10439 s,@build_alias@,$build_alias,;t t
10440 s,@host_alias@,$host_alias,;t t
10441 s,@target_alias@,$target_alias,;t t
10442 s,@DEFS@,$DEFS,;t t
10443 s,@ECHO_C@,$ECHO_C,;t t
10444 s,@ECHO_N@,$ECHO_N,;t t
10445 s,@ECHO_T@,$ECHO_T,;t t
10446 s,@LIBS@,$LIBS,;t t
10447 s,@build@,$build,;t t
10448 s,@build_cpu@,$build_cpu,;t t
10449 s,@build_vendor@,$build_vendor,;t t
10450 s,@build_os@,$build_os,;t t
10451 s,@host@,$host,;t t
10452 s,@host_cpu@,$host_cpu,;t t
10453 s,@host_vendor@,$host_vendor,;t t
10454 s,@host_os@,$host_os,;t t
10455 s,@target@,$target,;t t
10456 s,@target_cpu@,$target_cpu,;t t
10457 s,@target_vendor@,$target_vendor,;t t
10458 s,@target_os@,$target_os,;t t
10459 s,@CC@,$CC,;t t
10460 s,@CFLAGS@,$CFLAGS,;t t
10461 s,@LDFLAGS@,$LDFLAGS,;t t
10462 s,@CPPFLAGS@,$CPPFLAGS,;t t
10463 s,@ac_ct_CC@,$ac_ct_CC,;t t
10464 s,@EXEEXT@,$EXEEXT,;t t
10465 s,@OBJEXT@,$OBJEXT,;t t
10466 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10467 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10468 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10469 s,@CYGPATH_W@,$CYGPATH_W,;t t
10470 s,@PACKAGE@,$PACKAGE,;t t
10471 s,@VERSION@,$VERSION,;t t
10472 s,@ACLOCAL@,$ACLOCAL,;t t
10473 s,@AUTOCONF@,$AUTOCONF,;t t
10474 s,@AUTOMAKE@,$AUTOMAKE,;t t
10475 s,@AUTOHEADER@,$AUTOHEADER,;t t
10476 s,@MAKEINFO@,$MAKEINFO,;t t
10477 s,@install_sh@,$install_sh,;t t
10478 s,@STRIP@,$STRIP,;t t
10479 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10480 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10481 s,@mkdir_p@,$mkdir_p,;t t
10482 s,@AWK@,$AWK,;t t
10483 s,@SET_MAKE@,$SET_MAKE,;t t
10484 s,@am__leading_dot@,$am__leading_dot,;t t
10485 s,@AMTAR@,$AMTAR,;t t
10486 s,@am__tar@,$am__tar,;t t
10487 s,@am__untar@,$am__untar,;t t
10488 s,@DEPDIR@,$DEPDIR,;t t
10489 s,@am__include@,$am__include,;t t
10490 s,@am__quote@,$am__quote,;t t
10491 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10492 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10493 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10494 s,@CCDEPMODE@,$CCDEPMODE,;t t
10495 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10496 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10497 s,@LN_S@,$LN_S,;t t
10498 s,@RANLIB@,$RANLIB,;t t
10499 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10500 s,@LIBTOOL@,$LIBTOOL,;t t
10501 s,@use_sysroot@,$use_sysroot,;t t
10502 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10503 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10504 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10505 s,@NO_WERROR@,$NO_WERROR,;t t
10506 s,@CPP@,$CPP,;t t
10507 s,@EGREP@,$EGREP,;t t
10508 s,@ALLOCA@,$ALLOCA,;t t
10509 s,@USE_NLS@,$USE_NLS,;t t
10510 s,@MSGFMT@,$MSGFMT,;t t
10511 s,@GMSGFMT@,$GMSGFMT,;t t
10512 s,@XGETTEXT@,$XGETTEXT,;t t
10513 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10514 s,@CATALOGS@,$CATALOGS,;t t
10515 s,@CATOBJEXT@,$CATOBJEXT,;t t
10516 s,@DATADIRNAME@,$DATADIRNAME,;t t
10517 s,@GMOFILES@,$GMOFILES,;t t
10518 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10519 s,@INTLDEPS@,$INTLDEPS,;t t
10520 s,@INTLLIBS@,$INTLLIBS,;t t
10521 s,@INTLOBJS@,$INTLOBJS,;t t
10522 s,@POFILES@,$POFILES,;t t
10523 s,@POSUB@,$POSUB,;t t
10524 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10525 s,@GT_NO@,$GT_NO,;t t
10526 s,@GT_YES@,$GT_YES,;t t
10527 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10528 s,@l@,$l,;t t
10529 s,@YACC@,$YACC,;t t
10530 s,@LEX@,$LEX,;t t
10531 s,@LEXLIB@,$LEXLIB,;t t
10532 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10533 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10534 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10535 s,@MAINT@,$MAINT,;t t
10536 s,@HDEFINES@,$HDEFINES,;t t
10537 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10538 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10539 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10540 s,@STRINGIFY@,$STRINGIFY,;t t
10541 s,@EMUL@,$EMUL,;t t
10542 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10543 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10544 s,@LIB_PATH@,$LIB_PATH,;t t
10545 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10546 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10547 s,@LIBOBJS@,$LIBOBJS,;t t
10548 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10549 /@TDIRS@/r $TDIRS
10550 s,@TDIRS@,,;t t
10551 CEOF
10552
10553 _ACEOF
10554
10555 cat >>$CONFIG_STATUS <<\_ACEOF
10556 # Split the substitutions into bite-sized pieces for seds with
10557 # small command number limits, like on Digital OSF/1 and HP-UX.
10558 ac_max_sed_lines=48
10559 ac_sed_frag=1 # Number of current file.
10560 ac_beg=1 # First line for current file.
10561 ac_end=$ac_max_sed_lines # Line after last line for current file.
10562 ac_more_lines=:
10563 ac_sed_cmds=
10564 while $ac_more_lines; do
10565 if test $ac_beg -gt 1; then
10566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10567 else
10568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10569 fi
10570 if test ! -s $tmp/subs.frag; then
10571 ac_more_lines=false
10572 else
10573 # The purpose of the label and of the branching condition is to
10574 # speed up the sed processing (if there are no `@' at all, there
10575 # is no need to browse any of the substitutions).
10576 # These are the two extra sed commands mentioned above.
10577 (echo ':t
10578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10579 if test -z "$ac_sed_cmds"; then
10580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10581 else
10582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10583 fi
10584 ac_sed_frag=`expr $ac_sed_frag + 1`
10585 ac_beg=$ac_end
10586 ac_end=`expr $ac_end + $ac_max_sed_lines`
10587 fi
10588 done
10589 if test -z "$ac_sed_cmds"; then
10590 ac_sed_cmds=cat
10591 fi
10592 fi # test -n "$CONFIG_FILES"
10593
10594 _ACEOF
10595 cat >>$CONFIG_STATUS <<\_ACEOF
10596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10598 case $ac_file in
10599 - | *:- | *:-:* ) # input from stdin
10600 cat >$tmp/stdin
10601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10605 * ) ac_file_in=$ac_file.in ;;
10606 esac
10607
10608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10611 X"$ac_file" : 'X\(//\)[^/]' \| \
10612 X"$ac_file" : 'X\(//\)$' \| \
10613 X"$ac_file" : 'X\(/\)' \| \
10614 . : '\(.\)' 2>/dev/null ||
10615 echo X"$ac_file" |
10616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10618 /^X\(\/\/\)$/{ s//\1/; q; }
10619 /^X\(\/\).*/{ s//\1/; q; }
10620 s/.*/./; q'`
10621 { if $as_mkdir_p; then
10622 mkdir -p "$ac_dir"
10623 else
10624 as_dir="$ac_dir"
10625 as_dirs=
10626 while test ! -d "$as_dir"; do
10627 as_dirs="$as_dir $as_dirs"
10628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10630 X"$as_dir" : 'X\(//\)[^/]' \| \
10631 X"$as_dir" : 'X\(//\)$' \| \
10632 X"$as_dir" : 'X\(/\)' \| \
10633 . : '\(.\)' 2>/dev/null ||
10634 echo X"$as_dir" |
10635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10637 /^X\(\/\/\)$/{ s//\1/; q; }
10638 /^X\(\/\).*/{ s//\1/; q; }
10639 s/.*/./; q'`
10640 done
10641 test ! -n "$as_dirs" || mkdir $as_dirs
10642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10644 { (exit 1); exit 1; }; }; }
10645
10646 ac_builddir=.
10647
10648 if test "$ac_dir" != .; then
10649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10650 # A "../" for each directory in $ac_dir_suffix.
10651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10652 else
10653 ac_dir_suffix= ac_top_builddir=
10654 fi
10655
10656 case $srcdir in
10657 .) # No --srcdir option. We are building in place.
10658 ac_srcdir=.
10659 if test -z "$ac_top_builddir"; then
10660 ac_top_srcdir=.
10661 else
10662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10663 fi ;;
10664 [\\/]* | ?:[\\/]* ) # Absolute path.
10665 ac_srcdir=$srcdir$ac_dir_suffix;
10666 ac_top_srcdir=$srcdir ;;
10667 *) # Relative path.
10668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10670 esac
10671
10672 # Do not use `cd foo && pwd` to compute absolute paths, because
10673 # the directories may not exist.
10674 case `pwd` in
10675 .) ac_abs_builddir="$ac_dir";;
10676 *)
10677 case "$ac_dir" in
10678 .) ac_abs_builddir=`pwd`;;
10679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10680 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10681 esac;;
10682 esac
10683 case $ac_abs_builddir in
10684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10685 *)
10686 case ${ac_top_builddir}. in
10687 .) ac_abs_top_builddir=$ac_abs_builddir;;
10688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10690 esac;;
10691 esac
10692 case $ac_abs_builddir in
10693 .) ac_abs_srcdir=$ac_srcdir;;
10694 *)
10695 case $ac_srcdir in
10696 .) ac_abs_srcdir=$ac_abs_builddir;;
10697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10699 esac;;
10700 esac
10701 case $ac_abs_builddir in
10702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10703 *)
10704 case $ac_top_srcdir in
10705 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10708 esac;;
10709 esac
10710
10711
10712 case $INSTALL in
10713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10715 esac
10716
10717 if test x"$ac_file" != x-; then
10718 { echo "$as_me:$LINENO: creating $ac_file" >&5
10719 echo "$as_me: creating $ac_file" >&6;}
10720 rm -f "$ac_file"
10721 fi
10722 # Let's still pretend it is `configure' which instantiates (i.e., don't
10723 # use $as_me), people would be surprised to read:
10724 # /* config.h. Generated by config.status. */
10725 if test x"$ac_file" = x-; then
10726 configure_input=
10727 else
10728 configure_input="$ac_file. "
10729 fi
10730 configure_input=$configure_input"Generated from `echo $ac_file_in |
10731 sed 's,.*/,,'` by configure."
10732
10733 # First look for the input files in the build tree, otherwise in the
10734 # src tree.
10735 ac_file_inputs=`IFS=:
10736 for f in $ac_file_in; do
10737 case $f in
10738 -) echo $tmp/stdin ;;
10739 [\\/$]*)
10740 # Absolute (can't be DOS-style, as IFS=:)
10741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10742 echo "$as_me: error: cannot find input file: $f" >&2;}
10743 { (exit 1); exit 1; }; }
10744 echo "$f";;
10745 *) # Relative
10746 if test -f "$f"; then
10747 # Build tree
10748 echo "$f"
10749 elif test -f "$srcdir/$f"; then
10750 # Source tree
10751 echo "$srcdir/$f"
10752 else
10753 # /dev/null tree
10754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10755 echo "$as_me: error: cannot find input file: $f" >&2;}
10756 { (exit 1); exit 1; }; }
10757 fi;;
10758 esac
10759 done` || { (exit 1); exit 1; }
10760 _ACEOF
10761 cat >>$CONFIG_STATUS <<_ACEOF
10762 sed "$ac_vpsub
10763 $extrasub
10764 _ACEOF
10765 cat >>$CONFIG_STATUS <<\_ACEOF
10766 :t
10767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10768 s,@configure_input@,$configure_input,;t t
10769 s,@srcdir@,$ac_srcdir,;t t
10770 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10771 s,@top_srcdir@,$ac_top_srcdir,;t t
10772 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10773 s,@builddir@,$ac_builddir,;t t
10774 s,@abs_builddir@,$ac_abs_builddir,;t t
10775 s,@top_builddir@,$ac_top_builddir,;t t
10776 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10777 s,@INSTALL@,$ac_INSTALL,;t t
10778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10779 rm -f $tmp/stdin
10780 if test x"$ac_file" != x-; then
10781 mv $tmp/out $ac_file
10782 else
10783 cat $tmp/out
10784 rm -f $tmp/out
10785 fi
10786
10787 done
10788 _ACEOF
10789 cat >>$CONFIG_STATUS <<\_ACEOF
10790
10791 #
10792 # CONFIG_HEADER section.
10793 #
10794
10795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10797 #
10798 # ac_d sets the value in "#define NAME VALUE" lines.
10799 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10800 ac_dB='[ ].*$,\1#\2'
10801 ac_dC=' '
10802 ac_dD=',;t'
10803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10804 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10805 ac_uB='$,\1#\2define\3'
10806 ac_uC=' '
10807 ac_uD=',;t'
10808
10809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10811 case $ac_file in
10812 - | *:- | *:-:* ) # input from stdin
10813 cat >$tmp/stdin
10814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10818 * ) ac_file_in=$ac_file.in ;;
10819 esac
10820
10821 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10822 echo "$as_me: creating $ac_file" >&6;}
10823
10824 # First look for the input files in the build tree, otherwise in the
10825 # src tree.
10826 ac_file_inputs=`IFS=:
10827 for f in $ac_file_in; do
10828 case $f in
10829 -) echo $tmp/stdin ;;
10830 [\\/$]*)
10831 # Absolute (can't be DOS-style, as IFS=:)
10832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10833 echo "$as_me: error: cannot find input file: $f" >&2;}
10834 { (exit 1); exit 1; }; }
10835 # Do quote $f, to prevent DOS paths from being IFS'd.
10836 echo "$f";;
10837 *) # Relative
10838 if test -f "$f"; then
10839 # Build tree
10840 echo "$f"
10841 elif test -f "$srcdir/$f"; then
10842 # Source tree
10843 echo "$srcdir/$f"
10844 else
10845 # /dev/null tree
10846 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10847 echo "$as_me: error: cannot find input file: $f" >&2;}
10848 { (exit 1); exit 1; }; }
10849 fi;;
10850 esac
10851 done` || { (exit 1); exit 1; }
10852 # Remove the trailing spaces.
10853 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10854
10855 _ACEOF
10856
10857 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10858 # `conftest.undefs', that substitutes the proper values into
10859 # config.h.in to produce config.h. The first handles `#define'
10860 # templates, and the second `#undef' templates.
10861 # And first: Protect against being on the right side of a sed subst in
10862 # config.status. Protect against being in an unquoted here document
10863 # in config.status.
10864 rm -f conftest.defines conftest.undefs
10865 # Using a here document instead of a string reduces the quoting nightmare.
10866 # Putting comments in sed scripts is not portable.
10867 #
10868 # `end' is used to avoid that the second main sed command (meant for
10869 # 0-ary CPP macros) applies to n-ary macro definitions.
10870 # See the Autoconf documentation for `clear'.
10871 cat >confdef2sed.sed <<\_ACEOF
10872 s/[\\&,]/\\&/g
10873 s,[\\$`],\\&,g
10874 t clear
10875 : clear
10876 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10877 t end
10878 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10879 : end
10880 _ACEOF
10881 # If some macros were called several times there might be several times
10882 # the same #defines, which is useless. Nevertheless, we may not want to
10883 # sort them, since we want the *last* AC-DEFINE to be honored.
10884 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10885 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10886 rm -f confdef2sed.sed
10887
10888 # This sed command replaces #undef with comments. This is necessary, for
10889 # example, in the case of _POSIX_SOURCE, which is predefined and required
10890 # on some systems where configure will not decide to define it.
10891 cat >>conftest.undefs <<\_ACEOF
10892 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10893 _ACEOF
10894
10895 # Break up conftest.defines because some shells have a limit on the size
10896 # of here documents, and old seds have small limits too (100 cmds).
10897 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10898 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10899 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10900 echo ' :' >>$CONFIG_STATUS
10901 rm -f conftest.tail
10902 while grep . conftest.defines >/dev/null
10903 do
10904 # Write a limited-size here document to $tmp/defines.sed.
10905 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10906 # Speed up: don't consider the non `#define' lines.
10907 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10908 # Work around the forget-to-reset-the-flag bug.
10909 echo 't clr' >>$CONFIG_STATUS
10910 echo ': clr' >>$CONFIG_STATUS
10911 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10912 echo 'CEOF
10913 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10914 rm -f $tmp/in
10915 mv $tmp/out $tmp/in
10916 ' >>$CONFIG_STATUS
10917 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10918 rm -f conftest.defines
10919 mv conftest.tail conftest.defines
10920 done
10921 rm -f conftest.defines
10922 echo ' fi # grep' >>$CONFIG_STATUS
10923 echo >>$CONFIG_STATUS
10924
10925 # Break up conftest.undefs because some shells have a limit on the size
10926 # of here documents, and old seds have small limits too (100 cmds).
10927 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10928 rm -f conftest.tail
10929 while grep . conftest.undefs >/dev/null
10930 do
10931 # Write a limited-size here document to $tmp/undefs.sed.
10932 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10933 # Speed up: don't consider the non `#undef'
10934 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10935 # Work around the forget-to-reset-the-flag bug.
10936 echo 't clr' >>$CONFIG_STATUS
10937 echo ': clr' >>$CONFIG_STATUS
10938 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10939 echo 'CEOF
10940 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10941 rm -f $tmp/in
10942 mv $tmp/out $tmp/in
10943 ' >>$CONFIG_STATUS
10944 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10945 rm -f conftest.undefs
10946 mv conftest.tail conftest.undefs
10947 done
10948 rm -f conftest.undefs
10949
10950 cat >>$CONFIG_STATUS <<\_ACEOF
10951 # Let's still pretend it is `configure' which instantiates (i.e., don't
10952 # use $as_me), people would be surprised to read:
10953 # /* config.h. Generated by config.status. */
10954 if test x"$ac_file" = x-; then
10955 echo "/* Generated by configure. */" >$tmp/config.h
10956 else
10957 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10958 fi
10959 cat $tmp/in >>$tmp/config.h
10960 rm -f $tmp/in
10961 if test x"$ac_file" != x-; then
10962 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10963 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10964 echo "$as_me: $ac_file is unchanged" >&6;}
10965 else
10966 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10968 X"$ac_file" : 'X\(//\)[^/]' \| \
10969 X"$ac_file" : 'X\(//\)$' \| \
10970 X"$ac_file" : 'X\(/\)' \| \
10971 . : '\(.\)' 2>/dev/null ||
10972 echo X"$ac_file" |
10973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10975 /^X\(\/\/\)$/{ s//\1/; q; }
10976 /^X\(\/\).*/{ s//\1/; q; }
10977 s/.*/./; q'`
10978 { if $as_mkdir_p; then
10979 mkdir -p "$ac_dir"
10980 else
10981 as_dir="$ac_dir"
10982 as_dirs=
10983 while test ! -d "$as_dir"; do
10984 as_dirs="$as_dir $as_dirs"
10985 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10987 X"$as_dir" : 'X\(//\)[^/]' \| \
10988 X"$as_dir" : 'X\(//\)$' \| \
10989 X"$as_dir" : 'X\(/\)' \| \
10990 . : '\(.\)' 2>/dev/null ||
10991 echo X"$as_dir" |
10992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10994 /^X\(\/\/\)$/{ s//\1/; q; }
10995 /^X\(\/\).*/{ s//\1/; q; }
10996 s/.*/./; q'`
10997 done
10998 test ! -n "$as_dirs" || mkdir $as_dirs
10999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11001 { (exit 1); exit 1; }; }; }
11002
11003 rm -f $ac_file
11004 mv $tmp/config.h $ac_file
11005 fi
11006 else
11007 cat $tmp/config.h
11008 rm -f $tmp/config.h
11009 fi
11010 # Compute $ac_file's index in $config_headers.
11011 _am_stamp_count=1
11012 for _am_header in $config_headers :; do
11013 case $_am_header in
11014 $ac_file | $ac_file:* )
11015 break ;;
11016 * )
11017 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11018 esac
11019 done
11020 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11021 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11022 X$ac_file : 'X\(//\)[^/]' \| \
11023 X$ac_file : 'X\(//\)$' \| \
11024 X$ac_file : 'X\(/\)' \| \
11025 . : '\(.\)' 2>/dev/null ||
11026 echo X$ac_file |
11027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11029 /^X\(\/\/\)$/{ s//\1/; q; }
11030 /^X\(\/\).*/{ s//\1/; q; }
11031 s/.*/./; q'`/stamp-h$_am_stamp_count
11032 done
11033 _ACEOF
11034 cat >>$CONFIG_STATUS <<\_ACEOF
11035
11036 #
11037 # CONFIG_COMMANDS section.
11038 #
11039 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11040 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11041 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11042 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11043 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11044 X"$ac_dest" : 'X\(//\)[^/]' \| \
11045 X"$ac_dest" : 'X\(//\)$' \| \
11046 X"$ac_dest" : 'X\(/\)' \| \
11047 . : '\(.\)' 2>/dev/null ||
11048 echo X"$ac_dest" |
11049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11051 /^X\(\/\/\)$/{ s//\1/; q; }
11052 /^X\(\/\).*/{ s//\1/; q; }
11053 s/.*/./; q'`
11054 { if $as_mkdir_p; then
11055 mkdir -p "$ac_dir"
11056 else
11057 as_dir="$ac_dir"
11058 as_dirs=
11059 while test ! -d "$as_dir"; do
11060 as_dirs="$as_dir $as_dirs"
11061 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11063 X"$as_dir" : 'X\(//\)[^/]' \| \
11064 X"$as_dir" : 'X\(//\)$' \| \
11065 X"$as_dir" : 'X\(/\)' \| \
11066 . : '\(.\)' 2>/dev/null ||
11067 echo X"$as_dir" |
11068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11070 /^X\(\/\/\)$/{ s//\1/; q; }
11071 /^X\(\/\).*/{ s//\1/; q; }
11072 s/.*/./; q'`
11073 done
11074 test ! -n "$as_dirs" || mkdir $as_dirs
11075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11076 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11077 { (exit 1); exit 1; }; }; }
11078
11079 ac_builddir=.
11080
11081 if test "$ac_dir" != .; then
11082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11083 # A "../" for each directory in $ac_dir_suffix.
11084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11085 else
11086 ac_dir_suffix= ac_top_builddir=
11087 fi
11088
11089 case $srcdir in
11090 .) # No --srcdir option. We are building in place.
11091 ac_srcdir=.
11092 if test -z "$ac_top_builddir"; then
11093 ac_top_srcdir=.
11094 else
11095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11096 fi ;;
11097 [\\/]* | ?:[\\/]* ) # Absolute path.
11098 ac_srcdir=$srcdir$ac_dir_suffix;
11099 ac_top_srcdir=$srcdir ;;
11100 *) # Relative path.
11101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11103 esac
11104
11105 # Do not use `cd foo && pwd` to compute absolute paths, because
11106 # the directories may not exist.
11107 case `pwd` in
11108 .) ac_abs_builddir="$ac_dir";;
11109 *)
11110 case "$ac_dir" in
11111 .) ac_abs_builddir=`pwd`;;
11112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11114 esac;;
11115 esac
11116 case $ac_abs_builddir in
11117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11118 *)
11119 case ${ac_top_builddir}. in
11120 .) ac_abs_top_builddir=$ac_abs_builddir;;
11121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11123 esac;;
11124 esac
11125 case $ac_abs_builddir in
11126 .) ac_abs_srcdir=$ac_srcdir;;
11127 *)
11128 case $ac_srcdir in
11129 .) ac_abs_srcdir=$ac_abs_builddir;;
11130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11132 esac;;
11133 esac
11134 case $ac_abs_builddir in
11135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11136 *)
11137 case $ac_top_srcdir in
11138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11141 esac;;
11142 esac
11143
11144
11145 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11146 echo "$as_me: executing $ac_dest commands" >&6;}
11147 case $ac_dest in
11148 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11149 # Strip MF so we end up with the name of the file.
11150 mf=`echo "$mf" | sed -e 's/:.*$//'`
11151 # Check whether this is an Automake generated Makefile or not.
11152 # We used to match only the files named `Makefile.in', but
11153 # some people rename them; so instead we look at the file content.
11154 # Grep'ing the first line is not enough: some people post-process
11155 # each Makefile.in and add a new line on top of each file to say so.
11156 # So let's grep whole file.
11157 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11158 dirpart=`(dirname "$mf") 2>/dev/null ||
11159 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11160 X"$mf" : 'X\(//\)[^/]' \| \
11161 X"$mf" : 'X\(//\)$' \| \
11162 X"$mf" : 'X\(/\)' \| \
11163 . : '\(.\)' 2>/dev/null ||
11164 echo X"$mf" |
11165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11167 /^X\(\/\/\)$/{ s//\1/; q; }
11168 /^X\(\/\).*/{ s//\1/; q; }
11169 s/.*/./; q'`
11170 else
11171 continue
11172 fi
11173 # Extract the definition of DEPDIR, am__include, and am__quote
11174 # from the Makefile without running `make'.
11175 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11176 test -z "$DEPDIR" && continue
11177 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11178 test -z "am__include" && continue
11179 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11180 # When using ansi2knr, U may be empty or an underscore; expand it
11181 U=`sed -n 's/^U = //p' < "$mf"`
11182 # Find all dependency output files, they are included files with
11183 # $(DEPDIR) in their names. We invoke sed twice because it is the
11184 # simplest approach to changing $(DEPDIR) to its actual value in the
11185 # expansion.
11186 for file in `sed -n "
11187 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11188 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11189 # Make sure the directory exists.
11190 test -f "$dirpart/$file" && continue
11191 fdir=`(dirname "$file") 2>/dev/null ||
11192 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11193 X"$file" : 'X\(//\)[^/]' \| \
11194 X"$file" : 'X\(//\)$' \| \
11195 X"$file" : 'X\(/\)' \| \
11196 . : '\(.\)' 2>/dev/null ||
11197 echo X"$file" |
11198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11200 /^X\(\/\/\)$/{ s//\1/; q; }
11201 /^X\(\/\).*/{ s//\1/; q; }
11202 s/.*/./; q'`
11203 { if $as_mkdir_p; then
11204 mkdir -p $dirpart/$fdir
11205 else
11206 as_dir=$dirpart/$fdir
11207 as_dirs=
11208 while test ! -d "$as_dir"; do
11209 as_dirs="$as_dir $as_dirs"
11210 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11212 X"$as_dir" : 'X\(//\)[^/]' \| \
11213 X"$as_dir" : 'X\(//\)$' \| \
11214 X"$as_dir" : 'X\(/\)' \| \
11215 . : '\(.\)' 2>/dev/null ||
11216 echo X"$as_dir" |
11217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11219 /^X\(\/\/\)$/{ s//\1/; q; }
11220 /^X\(\/\).*/{ s//\1/; q; }
11221 s/.*/./; q'`
11222 done
11223 test ! -n "$as_dirs" || mkdir $as_dirs
11224 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11225 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11226 { (exit 1); exit 1; }; }; }
11227
11228 # echo "creating $dirpart/$file"
11229 echo '# dummy' > "$dirpart/$file"
11230 done
11231 done
11232 ;;
11233 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11234 esac
11235 done
11236 _ACEOF
11237
11238 cat >>$CONFIG_STATUS <<\_ACEOF
11239
11240 { (exit 0); exit 0; }
11241 _ACEOF
11242 chmod +x $CONFIG_STATUS
11243 ac_clean_files=$ac_clean_files_save
11244
11245
11246 # configure is writing to config.log, and then calls config.status.
11247 # config.status does its own redirection, appending to config.log.
11248 # Unfortunately, on DOS this fails, as config.log is still kept open
11249 # by configure, so config.status won't be able to write to it; its
11250 # output is simply discarded. So we exec the FD to /dev/null,
11251 # effectively closing config.log, so it can be properly (re)opened and
11252 # appended to by config.status. When coming back to configure, we
11253 # need to make the FD available again.
11254 if test "$no_create" != yes; then
11255 ac_cs_success=:
11256 ac_config_status_args=
11257 test "$silent" = yes &&
11258 ac_config_status_args="$ac_config_status_args --quiet"
11259 exec 5>/dev/null
11260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11261 exec 5>>config.log
11262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11263 # would make configure fail if this is the last instruction.
11264 $ac_cs_success || { (exit 1); exit 1; }
11265 fi
11266
This page took 0.283363 seconds and 4 git commands to generate.