2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for fixincludes .
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 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
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'"
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME='fixincludes'
269 PACKAGE_TARNAME='fixincludes'
271 PACKAGE_STRING='fixincludes '
274 ac_unique_file="inclhack.def"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
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 SED WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures fixincludes to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
842 if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of fixincludes :";;
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-werror-always enable -Werror despite compiler version
852 --enable-twoprocess Use a separate process to apply the fixes
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --with-local-prefix=DIR specifies directory to put local include
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
968 fixincludes configure
969 generated by GNU Autoconf 2.59
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by fixincludes $as_me , which was
983 generated by GNU Autoconf 2.59. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 # differences in whitespace do not lead to failure.
1257 ac_old_val_w=`echo x $ac_old_val`
1258 ac_new_val_w=`echo x $ac_new_val`
1259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 ac_cache_corrupted=:
1264 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1265 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1266 eval $ac_var=\$ac_old_val
1268 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1269 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1270 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1271 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 for ac_dir in .. $srcdir/..; do
1335 if test -f $ac_dir/install-sh; then
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 elif test -f $ac_dir/install.sh; then
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 elif test -f $ac_dir/shtool; then
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1360 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1361 # 2006, 2007, 2008 Free Software Foundation, Inc.
1362 # Written by Gordon Matzigkeit, 1996
1364 # This file is free software; the Free Software Foundation gives
1365 # unlimited permission to copy and/or distribute it, with or without
1366 # modifications, as long as this notice is preserved.
1373 # LT_PREREQ(VERSION)
1374 # ------------------
1375 # Complain and exit if this libtool version is less that VERSION.
1379 # _LT_CHECK_BUILDDIR
1380 # ------------------
1381 # Complain if the absolute build directory name contains unusual characters
1385 # LT_INIT([OPTIONS])
1386 # ------------------
1394 # _LT_CC_BASENAME(CC)
1395 # -------------------
1396 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1400 # _LT_FILEUTILS_DEFAULTS
1401 # ----------------------
1402 # It is okay to use these file commands and assume they have been set
1403 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1404 # _LT_FILEUTILS_DEFAULTS
1414 # Note that this code is called both from `configure', and `config.status'
1415 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1416 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1417 # so we pass a copy along to make sure it has a sensible value anyway.
1421 ## ------------------------------------- ##
1422 ## Accumulate code for creating libtool. ##
1423 ## ------------------------------------- ##
1425 # So that we can recreate a full libtool script including additional
1426 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1427 # in macros and then make a single call at the end using the `libtool'
1431 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1432 # ----------------------------------------
1433 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1440 # _LT_CONFIG_LIBTOOL([COMMANDS])
1441 # ------------------------------
1442 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1449 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1450 # -----------------------------------------------------
1454 # _LT_FORMAT_COMMENT([COMMENT])
1455 # -----------------------------
1456 # Add leading comment marks to the start of each line, and a trailing
1457 # full-stop to the whole comment if one is not present already.
1462 ## ------------------------ ##
1463 ## FIXME: Eliminate VARNAME ##
1464 ## ------------------------ ##
1467 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1468 # -------------------------------------------------------------------
1469 # CONFIGNAME is the name given to the value in the libtool script.
1470 # VARNAME is the (base) name used in the configure script.
1471 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1472 # VARNAME. Any other value will be used directly.
1476 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1477 # --------------------------------------------------------
1481 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1482 # ------------------------------------------------
1486 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1487 # ---------------------------------------------------------
1491 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1492 # --------------------------------------------------
1496 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1497 # ---------------------------------------------------
1501 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1502 # ---------------------------------------------------
1507 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1508 # ------------------------------------------------
1513 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1514 # ------------------------------------
1515 # Quote a variable value, and forward it to `config.status' so that its
1516 # declaration there will have the same value as in `configure'. VARNAME
1517 # must have a single quote delimited value for this to work.
1521 # _LT_CONFIG_STATUS_DECLARATIONS
1522 # ------------------------------
1523 # We delimit libtool config variables with single quotes, so when
1524 # we write them to config.status, we have to be sure to quote all
1525 # embedded single quotes properly. In configure, this macro expands
1526 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1528 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1534 # Output comment and list of tags supported by the script
1538 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1539 # -----------------------------------
1540 # Extract the dictionary values for VARNAME (optionally with TAG) and
1541 # expand to a commented shell variable setting:
1543 # # Some comment about what VAR is for.
1544 # visible_name=$lt_internal_name
1548 # _LT_LIBTOOL_CONFIG_VARS
1549 # -----------------------
1550 # Produce commented declarations of non-tagged libtool config variables
1551 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1552 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1553 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1557 # _LT_LIBTOOL_TAG_VARS(TAG)
1558 # -------------------------
1562 # _LT_TAGVAR(VARNAME, [TAGNAME])
1563 # ------------------------------
1567 # _LT_CONFIG_COMMANDS
1568 # -------------------
1569 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1570 # variables for single and double quote escaping we saved from calls
1571 # to _LT_DECL, we can put quote escaped variables declarations
1572 # into `config.status', and then the shell code to quote escape them in
1573 # for loops in `config.status'. Finally, any additional code accumulated
1574 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1575 #_LT_CONFIG_COMMANDS
1584 # This macro allows early generation of the libtool script (before
1585 # AC_OUTPUT is called), incase it is used in configure for compilation
1592 # If TAG is the built-in tag, create an initial libtool script with a
1593 # default configuration from the untagged config vars. Otherwise add code
1594 # to config.status for appending the configuration named by TAG from the
1595 # matching tagged config vars.
1599 # LT_SUPPORTED_TAG(TAG)
1600 # ---------------------
1601 # Trace this macro to discover what tags are supported by the libtool
1602 # --tag option, using:
1603 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1607 # C support is built-in for now
1614 # Enable libtool support for the given language if not already enabled.
1618 # _LT_LANG(LANGNAME)
1619 # ------------------
1623 # _LT_LANG_DEFAULT_CONFIG
1624 # -----------------------
1625 # _LT_LANG_DEFAULT_CONFIG
1639 # _LT_COMPILER_BOILERPLATE
1640 # ------------------------
1641 # Check for compiler boilerplate output or warnings with
1642 # the simple compiler test code.
1643 # _LT_COMPILER_BOILERPLATE
1646 # _LT_LINKER_BOILERPLATE
1647 # ----------------------
1648 # Check for linker boilerplate output or warnings with
1649 # the simple link test code.
1650 # _LT_LINKER_BOILERPLATE
1652 # _LT_REQUIRED_DARWIN_CHECKS
1653 # -------------------------
1657 # _LT_DARWIN_LINKER_FEATURES
1658 # --------------------------
1659 # Checks for linker and compiler features on darwin
1662 # _LT_SYS_MODULE_PATH_AIX
1663 # -----------------------
1664 # Links a minimal program and checks the executable
1665 # for the system default hardcoded library path. In most cases,
1666 # this is /usr/lib:/lib, but when the MPI compilers are used
1667 # the location of the communication and MPI libs are included too.
1668 # If we don't find anything, use the default library path according
1669 # to the aix ld manual.
1670 # _LT_SYS_MODULE_PATH_AIX
1673 # _LT_SHELL_INIT(ARG)
1674 # -------------------
1678 # _LT_PROG_ECHO_BACKSLASH
1679 # -----------------------
1680 # Add some code to the start of the generated configure script which
1681 # will find an echo command which doesn't interpret backslashes.
1682 # _LT_PROG_ECHO_BACKSLASH
1690 # _LT_CMD_OLD_ARCHIVE
1691 # -------------------
1692 # _LT_CMD_OLD_ARCHIVE
1695 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1696 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1697 # ----------------------------------------------------------------
1698 # Check whether the given compiler option works
1699 # _LT_COMPILER_OPTION
1705 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1706 # [ACTION-SUCCESS], [ACTION-FAILURE])
1707 # ----------------------------------------------------
1708 # Check whether the given linker option works
1728 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1729 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1730 # ----------------------------------------------------------------
1731 # _LT_TRY_DLOPEN_SELF
1734 # LT_SYS_DLOPEN_SELF
1735 # ------------------
1736 # LT_SYS_DLOPEN_SELF
1742 # _LT_COMPILER_C_O([TAGNAME])
1743 # ---------------------------
1744 # Check to see if options -c and -o are simultaneously supported by compiler.
1745 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1749 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1750 # ----------------------------------
1751 # Check to see if we can do hard links to lock some files if needed
1752 # _LT_COMPILER_FILE_LOCKS
1760 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1761 # --------------------------------------
1762 # Check hardcoding attributes.
1763 # _LT_LINKER_HARDCODE_LIBPATH
1771 # _LT_SYS_DYNAMIC_LINKER([TAG])
1772 # -----------------------------
1773 # PORTME Fill in your ld.so characteristics
1774 # _LT_SYS_DYNAMIC_LINKER
1777 # _LT_PATH_TOOL_PREFIX(TOOL)
1778 # --------------------------
1779 # find a file program which can recognize shared library
1780 # _LT_PATH_TOOL_PREFIX
1788 # find a file program which can recognize a shared library
1794 # find the pathname to the GNU or non-GNU linker
1809 # find reload flag for linker
1810 # -- PORTME Some linkers may need a different reload flag.
1814 # _LT_CHECK_MAGIC_METHOD
1815 # ----------------------
1816 # how to check for library dependencies
1817 # -- PORTME fill in with the dynamic library characteristics
1818 # _LT_CHECK_MAGIC_METHOD
1823 # find the pathname to a BSD- or MS-compatible name lister
1833 # check for math library
1840 # _LT_COMPILER_NO_RTTI([TAGNAME])
1841 # -------------------------------
1842 # _LT_COMPILER_NO_RTTI
1845 # _LT_CMD_GLOBAL_SYMBOLS
1846 # ----------------------
1847 # _LT_CMD_GLOBAL_SYMBOLS
1850 # _LT_COMPILER_PIC([TAGNAME])
1851 # ---------------------------
1855 # _LT_LINKER_SHLIBS([TAGNAME])
1856 # ----------------------------
1857 # See if the linker supports building shared libraries.
1861 # _LT_LANG_C_CONFIG([TAG])
1862 # ------------------------
1863 # Ensure that the configuration variables for a C compiler are suitably
1864 # defined. These variables are subsequently used by _LT_CONFIG to write
1865 # the compiler configuration to `libtool'.
1871 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
1872 # compiler, we have our own version here.
1877 # _LT_LANG_CXX_CONFIG([TAG])
1878 # --------------------------
1879 # Ensure that the configuration variables for a C++ compiler are suitably
1880 # defined. These variables are subsequently used by _LT_CONFIG to write
1881 # the compiler configuration to `libtool'.
1882 # _LT_LANG_CXX_CONFIG
1885 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
1886 # ---------------------------------
1887 # Figure out "hidden" library dependencies from verbose
1888 # compiler output when linking a shared library.
1889 # Parse the compiler output and extract the necessary
1890 # objects, libraries and library flags.
1891 # _LT_SYS_HIDDEN_LIBDEPS
1896 # Since AC_PROG_F77 is broken, in that it returns the empty string
1897 # if there is no fortran compiler, we have our own version here.
1902 # _LT_LANG_F77_CONFIG([TAG])
1903 # --------------------------
1904 # Ensure that the configuration variables for a Fortran 77 compiler are
1905 # suitably defined. These variables are subsequently used by _LT_CONFIG
1906 # to write the compiler configuration to `libtool'.
1907 # _LT_LANG_F77_CONFIG
1912 # Since AC_PROG_FC is broken, in that it returns the empty string
1913 # if there is no fortran compiler, we have our own version here.
1918 # _LT_LANG_FC_CONFIG([TAG])
1919 # -------------------------
1920 # Ensure that the configuration variables for a Fortran compiler are
1921 # suitably defined. These variables are subsequently used by _LT_CONFIG
1922 # to write the compiler configuration to `libtool'.
1923 # _LT_LANG_FC_CONFIG
1926 # _LT_LANG_GCJ_CONFIG([TAG])
1927 # --------------------------
1928 # Ensure that the configuration variables for the GNU Java Compiler compiler
1929 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1930 # to write the compiler configuration to `libtool'.
1931 # _LT_LANG_GCJ_CONFIG
1934 # _LT_LANG_RC_CONFIG([TAG])
1935 # -------------------------
1936 # Ensure that the configuration variables for the Windows resource compiler
1937 # are suitably defined. These variables are subsequently used by _LT_CONFIG
1938 # to write the compiler configuration to `libtool'.
1939 # _LT_LANG_RC_CONFIG
1960 # If we don't have a new enough Autoconf to choose the best grep
1961 # available, choose the one first in the user's PATH.
1967 # If we don't have a new enough Autoconf to choose the best objdump
1968 # available, choose the one first in the user's PATH.
1974 # Check for a fully-functional sed program, that truncates
1975 # as few characters as possible. Prefer GNU sed if found.
1979 ############################################################
1980 # NOTE: This macro has been submitted for inclusion into #
1981 # GNU Autoconf as AC_PROG_SED. When it is available in #
1982 # a released version of Autoconf we should remove this #
1983 # macro and use it instead. #
1984 ############################################################
1993 # _LT_CHECK_SHELL_FEATURES
1994 # ------------------------
1995 # Find out whether the shell is Bourne or XSI compatible,
1996 # or has some other useful features.
1997 # _LT_CHECK_SHELL_FEATURES
2000 # _LT_PROG_XSI_SHELLFNS
2001 # ---------------------
2002 # Bourne and XSI compatible variants of some useful shell functions.
2005 # Make sure we can run config.sub.
2006 $ac_config_sub sun4 >/dev/null 2>&1 ||
2007 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2008 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2009 { (exit 1); exit 1; }; }
2011 echo "$as_me:$LINENO: checking build system type" >&5
2012 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2013 if test "${ac_cv_build+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 ac_cv_build_alias=$build_alias
2017 test -z "$ac_cv_build_alias" &&
2018 ac_cv_build_alias=`$ac_config_guess`
2019 test -z "$ac_cv_build_alias" &&
2020 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022 { (exit 1); exit 1; }; }
2023 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2024 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2025 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2029 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 echo "${ECHO_T}$ac_cv_build" >&6
2032 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2037 echo "$as_me:$LINENO: checking host system type" >&5
2038 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2039 if test "${ac_cv_host+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 ac_cv_host_alias=$host_alias
2043 test -z "$ac_cv_host_alias" &&
2044 ac_cv_host_alias=$ac_cv_build_alias
2045 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2046 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2047 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2048 { (exit 1); exit 1; }; }
2051 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2052 echo "${ECHO_T}$ac_cv_host" >&6
2054 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2059 echo "$as_me:$LINENO: checking target system type" >&5
2060 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2061 if test "${ac_cv_target+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 ac_cv_target_alias=$target_alias
2065 test "x$ac_cv_target_alias" = "x" &&
2066 ac_cv_target_alias=$ac_cv_host_alias
2067 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2068 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2069 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2070 { (exit 1); exit 1; }; }
2073 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2074 echo "${ECHO_T}$ac_cv_target" >&6
2075 target=$ac_cv_target
2076 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2081 # The aliases save the names the user supplied, while $host etc.
2082 # will get canonicalized.
2083 test -n "$target_alias" &&
2084 test "$program_prefix$program_suffix$program_transform_name" = \
2086 program_prefix=${target_alias}-
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2129 if test -z "$ac_cv_prog_CC"; then
2131 # Extract the first word of "gcc", so it can be a program name with args.
2132 set dummy gcc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="gcc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2171 if test -z "$CC"; then
2172 if test -n "$ac_tool_prefix"; then
2173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2174 set dummy ${ac_tool_prefix}cc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 ac_cv_prog_CC="${ac_tool_prefix}cc"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2209 if test -z "$ac_cv_prog_CC"; then
2211 # Extract the first word of "cc", so it can be a program name with args.
2212 set dummy cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 ac_cv_prog_ac_ct_CC="cc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_CC" >&6
2242 echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2252 if test -z "$CC"; then
2253 # Extract the first word of "cc", so it can be a program name with args.
2254 set dummy cc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_CC+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 if test -n "$CC"; then
2261 ac_cv_prog_CC="$CC" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2272 ac_prog_rejected=yes
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 if test $ac_prog_rejected = yes; then
2283 # We found a bogon in the path, so make sure we never use it.
2284 set dummy $ac_cv_prog_CC
2286 if test $# != 0; then
2287 # We chose a different compiler from the bogus one.
2288 # However, it has the same basename, so the bogon will be chosen
2289 # first if we set CC to just the basename; use the full file name.
2291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2297 if test -n "$CC"; then
2298 echo "$as_me:$LINENO: result: $CC" >&5
2299 echo "${ECHO_T}$CC" >&6
2301 echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6
2306 if test -z "$CC"; then
2307 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$CC"; then
2318 ac_cv_prog_CC="$CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 if test -n "$CC"; then
2338 echo "$as_me:$LINENO: result: $CC" >&5
2339 echo "${ECHO_T}$CC" >&6
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2345 test -n "$CC" && break
2348 if test -z "$CC"; then
2352 # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$ac_ct_CC"; then
2360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369 ac_cv_prog_ac_ct_CC="$ac_prog"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381 echo "${ECHO_T}$ac_ct_CC" >&6
2383 echo "$as_me:$LINENO: result: no" >&5
2384 echo "${ECHO_T}no" >&6
2387 test -n "$ac_ct_CC" && break
2396 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2397 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: no acceptable C compiler found in \$PATH
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }; }
2404 # Provide some information about the compiler.
2405 echo "$as_me:$LINENO:" \
2406 "checking for C compiler version" >&5
2407 ac_compiler=`set X $ac_compile; echo $2`
2408 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2409 (eval $ac_compiler --version </dev/null >&5) 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
2413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2414 (eval $ac_compiler -v </dev/null >&5) 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }
2418 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2419 (eval $ac_compiler -V </dev/null >&5) 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
2424 cat >conftest.$ac_ext <<_ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2439 ac_clean_files_save=$ac_clean_files
2440 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2441 # Try to create an executable without -o first, disregard a.out.
2442 # It will help us diagnose broken compilers, and finding out an intuition
2444 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2445 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2446 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2447 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2448 (eval $ac_link_default) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; then
2452 # Find the output, starting from the most likely. This scheme is
2453 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2456 # Be careful to initialize this variable, since it used to be cached.
2457 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2459 # b.out is created by i960 compilers.
2460 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2462 test -f "$ac_file" || continue
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2467 # This is the source file.
2470 # We found the default executable, but exeext='' is most
2474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2475 # FIXME: I believe we export ac_cv_exeext for Libtool,
2476 # but it would be cool to find out if it's true. Does anybody
2477 # maintain Libtool? --akim.
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2489 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&2;}
2494 { (exit 77); exit 77; }; }; }
2497 ac_exeext=$ac_cv_exeext
2498 echo "$as_me:$LINENO: result: $ac_file" >&5
2499 echo "${ECHO_T}$ac_file" >&6
2501 # Check the compiler produces executables we can run. If not, either
2502 # the compiler is broken, or we cross compile.
2503 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2504 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2505 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2506 # If not cross compiling, check that we can run a simple program.
2507 if test "$cross_compiling" != yes; then
2508 if { ac_try='./$ac_file'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 if test "$cross_compiling" = maybe; then
2519 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2520 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }; }
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run. If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546 (eval $ac_link) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2574 rm -f conftest$ac_cv_exeext
2575 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2576 echo "${ECHO_T}$ac_cv_exeext" >&6
2578 rm -f conftest.$ac_ext
2579 EXEEXT=$ac_cv_exeext
2581 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2582 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2583 if test "${ac_cv_objext+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.o conftest.obj
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; then
2607 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2618 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }; }
2627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2629 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2630 echo "${ECHO_T}$ac_cv_objext" >&6
2631 OBJEXT=$ac_cv_objext
2633 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 cat >conftest.$ac_ext <<_ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2680 echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2689 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2690 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2691 GCC=`test $ac_compiler_gnu = yes && echo yes`
2692 ac_test_CFLAGS=${CFLAGS+set}
2693 ac_save_CFLAGS=$CFLAGS
2695 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2696 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2697 if test "${ac_cv_prog_cc_g+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>conftest.er1
2719 grep -v '^ *+' conftest.er1 >conftest.err
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag"
2725 || test ! -s conftest.err'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2748 if test "$ac_test_CFLAGS" = set; then
2749 CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751 if test "$GCC" = yes; then
2757 if test "$GCC" = yes; then
2763 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2764 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2765 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 ac_cv_prog_cc_stdc=no
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2794 s = g (p, va_arg (v,int));
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2800 function prototypes and stuff, but not '\xHH' hex character constants.
2801 These don't provoke an error unfortunately, instead are silently treated
2802 as 'x'. The following induces an error, until -std1 is added to get
2803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2804 array size at least. It's necessary to write '\x00'==0 to get something
2805 that's true only with -std1. */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2808 int test (int i, double x);
2809 struct s1 {int (*f) (int a);};
2810 struct s2 {int (*f) (double a);};
2811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2822 # Don't try gcc -ansi; that turns off useful extensions and
2823 # breaks some systems' header files.
2824 # AIX -qlanglvl=ansi
2825 # Ultrix and OSF/1 -std1
2826 # HP-UX 10.20 and later -Ae
2827 # HP-UX older versions -Aa -D_HPUX_SOURCE
2828 # SVR4 -Xc -D__EXTENSIONS__
2829 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2831 CC="$ac_save_CC $ac_arg"
2832 rm -f conftest.$ac_objext
2833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2834 (eval $ac_compile) 2>conftest.er1
2836 grep -v '^ *+' conftest.er1 >conftest.err
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -z "$ac_c_werror_flag"
2842 || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_prog_cc_stdc=$ac_arg
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2861 rm -f conftest.err conftest.$ac_objext
2863 rm -f conftest.$ac_ext conftest.$ac_objext
2868 case "x$ac_cv_prog_cc_stdc" in
2870 echo "$as_me:$LINENO: result: none needed" >&5
2871 echo "${ECHO_T}none needed" >&6 ;;
2873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2875 CC="$CC $ac_cv_prog_cc_stdc" ;;
2878 # Some people use a C++ compiler to compile C. Since we use `exit',
2879 # in C++ we need to declare it. In case someone uses the same compiler
2880 # for both compiling C and C++ we need to have the C++ compiler decide
2881 # the declaration of exit, since it's the most demanding environment.
2882 cat >conftest.$ac_ext <<_ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2891 grep -v '^ *+' conftest.er1 >conftest.err
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -z "$ac_c_werror_flag"
2897 || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 for ac_declaration in \
2911 'extern "C" void std::exit (int) throw (); using std::exit;' \
2912 'extern "C" void std::exit (int); using std::exit;' \
2913 'extern "C" void exit (int) throw ();' \
2914 'extern "C" void exit (int);' \
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_c_werror_flag"
2988 || test ! -s conftest.err'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3028 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3029 if test "${lt_cv_path_SED+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 # Loop through the user's path and test for sed and gsed.
3033 # Then use that list of sed's as ones to test for truncation.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for lt_ac_prog in sed gsed; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3042 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3050 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3051 # along with /bin/sed that truncates output.
3052 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3053 test ! -f $lt_ac_sed && continue
3054 cat /dev/null > conftest.in
3056 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3057 # Check for GNU sed and select it if it is found.
3058 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3059 lt_cv_path_SED=$lt_ac_sed
3063 cat conftest.in conftest.in >conftest.tmp
3064 mv conftest.tmp conftest.in
3065 cp conftest.in conftest.nl
3067 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3068 cmp -s conftest.out conftest.nl || break
3069 # 10000 chars as input seems more than enough
3070 test $lt_ac_count -gt 10 && break
3071 lt_ac_count=`expr $lt_ac_count + 1`
3072 if test $lt_ac_count -gt $lt_ac_max; then
3073 lt_ac_max=$lt_ac_count
3074 lt_cv_path_SED=$lt_ac_sed
3083 echo "$as_me:$LINENO: result: $SED" >&5
3084 echo "${ECHO_T}$SED" >&6
3087 # Figure out what compiler warnings we can enable.
3088 # See config/warnings.m4 for details.
3092 save_CFLAGS="$CFLAGS"
3093 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
3094 -Wmissing-prototypes -Wold-style-definition \
3095 -Wmissing-format-attribute -Wno-overlength-strings; do
3096 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3098 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
3099 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
3100 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 cat >conftest.$ac_ext <<_ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3119 rm -f conftest.$ac_objext
3120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>conftest.er1
3123 grep -v '^ *+' conftest.er1 >conftest.err
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_c_werror_flag"
3129 || test ! -s conftest.err'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; } &&
3135 { ac_try='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 eval "$as_acx_Woption=yes"
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 eval "$as_acx_Woption=no"
3148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3151 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3152 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3153 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3154 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option"
3158 CFLAGS="$save_CFLAGS"
3161 if test "$GCC" = yes; then
3162 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
3163 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
3164 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 save_CFLAGS="$CFLAGS"
3168 CFLAGS="-pedantic -Wno-long-long"
3169 cat >conftest.$ac_ext <<_ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3184 rm -f conftest.$ac_objext
3185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag"
3194 || test ! -s conftest.err'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 acx_cv_prog_cc_pedantic__Wno_long_long=yes
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 acx_cv_prog_cc_pedantic__Wno_long_long=no
3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3214 CFLAGS="$save_CFLAGS"
3216 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
3217 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6
3218 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then
3219 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3227 # Only enable with --enable-werror-always until existing warnings are
3230 # Check whether --enable-werror-always or --disable-werror-always was given.
3231 if test "${enable_werror_always+set}" = set; then
3232 enableval="$enable_werror_always"
3235 enable_werror_always=no
3237 if test $enable_werror_always = yes; then
3238 WERROR="$WERROR${WERROR:+ }-Werror"
3244 # Determine the noncanonical target name, for directory use.
3245 case ${build_alias} in
3246 "") build_noncanonical=${build} ;;
3247 *) build_noncanonical=${build_alias} ;;
3250 case ${host_alias} in
3251 "") host_noncanonical=${build_noncanonical} ;;
3252 *) host_noncanonical=${host_alias} ;;
3255 case ${target_alias} in
3256 "") target_noncanonical=${host_noncanonical} ;;
3257 *) target_noncanonical=${target_alias} ;;
3263 # Specify the local prefix
3266 # Check whether --with-local-prefix or --without-local-prefix was given.
3267 if test "${with_local_prefix+set}" = set; then
3268 withval="$with_local_prefix"
3269 case "${withval}" in
3270 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
3271 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
3272 { (exit 1); exit 1; }; } ;;
3274 *) local_prefix=$with_local_prefix ;;
3278 # Default local prefix if it is empty
3279 if test x$local_prefix = x; then
3280 local_prefix=/usr/local
3283 # Choose one or two-process fix methodology. Systems that cannot handle
3284 # bi-directional pipes must use the two process method.
3286 # Check whether --enable-twoprocess or --disable-twoprocess was given.
3287 if test "${enable_twoprocess+set}" = set; then
3288 enableval="$enable_twoprocess"
3289 if test "x$enable_twoprocess" = xyes; then
3296 i?86-*-msdosdjgpp* | \
3298 x86_64-*-mingw32* | \
3310 if test $TARGET = twoprocess; then
3312 cat >>confdefs.h <<\_ACEOF
3313 #define SEPARATE_FIX_PROC 1
3321 cat >>confdefs.h <<\_ACEOF
3326 cat >>confdefs.h <<\_ACEOF
3327 #define atexit xatexit
3334 cat >>confdefs.h <<_ACEOF
3335 #define EXE_EXT "$ac_exeext"
3339 # Checks for header files.
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 # Double quotes because CPP needs to be expanded
3356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3359 for ac_c_preproc_warn_flag in '' yes
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3374 # include <limits.h>
3376 # include <assert.h>
3380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null; then
3388 if test -s conftest.err; then
3389 ac_cpp_err=$ac_c_preproc_warn_flag
3390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3397 if test -z "$ac_cpp_err"; then
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 # Broken: fails on valid input.
3406 rm -f conftest.err conftest.$ac_ext
3408 # OK, works on sane cases. Now check whether non-existent headers
3409 # can be detected and how.
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 #include <ac_nonexistent.h>
3418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3446 rm -f conftest.err conftest.$ac_ext
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3463 echo "$as_me:$LINENO: result: $CPP" >&5
3464 echo "${ECHO_T}$CPP" >&6
3466 for ac_c_preproc_warn_flag in '' yes
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3481 # include <limits.h>
3483 # include <assert.h>
3487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 if test -z "$ac_cpp_err"; then
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3513 rm -f conftest.err conftest.$ac_ext
3515 # OK, works on sane cases. Now check whether non-existent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542 if test -z "$ac_cpp_err"; then
3543 # Broken: success on invalid input.
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 # Passes both tests.
3553 rm -f conftest.err conftest.$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3561 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3562 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&5
3565 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }; }
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 echo "$as_me:$LINENO: checking for egrep" >&5
3578 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3579 if test "${ac_cv_prog_egrep+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3583 then ac_cv_prog_egrep='grep -E'
3584 else ac_cv_prog_egrep='egrep'
3587 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3588 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3589 EGREP=$ac_cv_prog_egrep
3592 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3593 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3594 if test "${ac_cv_header_stdc+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 ac_cv_header_stdc=yes
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 ac_cv_header_stdc=no
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 if test $ac_cv_header_stdc = yes; then
3648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3659 $EGREP "memchr" >/dev/null 2>&1; then
3662 ac_cv_header_stdc=no
3668 if test $ac_cv_header_stdc = yes; then
3669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680 $EGREP "free" >/dev/null 2>&1; then
3683 ac_cv_header_stdc=no
3689 if test $ac_cv_header_stdc = yes; then
3690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3691 if test "$cross_compiling" = yes; then
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3701 #if ((' ' & 0x0FF) == 0x020)
3702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3705 # define ISLOWER(c) \
3706 (('a' <= (c) && (c) <= 'i') \
3707 || ('j' <= (c) && (c) <= 'r') \
3708 || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 for (i = 0; i < 256; i++)
3718 if (XOR (islower (i), ISLOWER (i))
3719 || toupper (i) != TOUPPER (i))
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3737 echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3742 ac_cv_header_stdc=no
3744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3748 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3749 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3750 if test $ac_cv_header_stdc = yes; then
3752 cat >>confdefs.h <<\_ACEOF
3753 #define STDC_HEADERS 1
3758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3769 inttypes.h stdint.h unistd.h
3771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3772 echo "$as_me:$LINENO: checking for $ac_header" >&5
3773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3785 #include <$ac_header>
3787 rm -f conftest.$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try='test -z "$ac_c_werror_flag"
3797 || test ! -s conftest.err'
3798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; } &&
3803 { ac_try='test -s conftest.$ac_objext'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 eval "$as_ac_Header=yes"
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 eval "$as_ac_Header=no"
3816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<_ACEOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3837 for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \
3840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3842 echo "$as_me:$LINENO: checking for $ac_header" >&5
3843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3850 # Is the header compilable?
3851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3859 $ac_includes_default
3860 #include <$ac_header>
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_header_compiler=yes
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 ac_header_compiler=no
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3893 echo "${ECHO_T}$ac_header_compiler" >&6
3895 # Is the header present?
3896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <$ac_header>
3906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } >/dev/null; then
3914 if test -s conftest.err; then
3915 ac_cpp_err=$ac_c_preproc_warn_flag
3916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3923 if test -z "$ac_cpp_err"; then
3924 ac_header_preproc=yes
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_header_preproc=no
3931 rm -f conftest.err conftest.$ac_ext
3932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3933 echo "${ECHO_T}$ac_header_preproc" >&6
3935 # So? What about this header?
3936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3942 ac_header_preproc=yes
3945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3959 ## -------------------------------------- ##
3960 ## Report this to the fixincludes lists. ##
3961 ## -------------------------------------- ##
3964 sed "s/^/$as_me: WARNING: /" >&2
3967 echo "$as_me:$LINENO: checking for $ac_header" >&5
3968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 eval "$as_ac_Header=\$ac_header_preproc"
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979 cat >>confdefs.h <<_ACEOF
3980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4004 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
4006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4007 echo "$as_me:$LINENO: checking for $ac_func" >&5
4008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4009 if eval "test \"\${$as_ac_var+set}\" = set"; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4020 #define $ac_func innocuous_$ac_func
4022 /* System header to define __stub macros and hopefully few prototypes,
4023 which can conflict with char $ac_func (); below.
4024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025 <limits.h> exists even on freestanding compilers. */
4028 # include <limits.h>
4030 # include <assert.h>
4035 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4043 /* The GNU C library defines this for functions which it implements
4044 to always fail with ENOSYS. Some functions are actually named
4045 something starting with __ and the normal name is an alias. */
4046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4049 char (*f) () = $ac_func;
4058 return f != $ac_func;
4063 rm -f conftest.$ac_objext conftest$ac_exeext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4065 (eval $ac_link) 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag"
4073 || test ! -s conftest.err'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest$ac_exeext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 eval "$as_ac_var=yes"
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 eval "$as_ac_var=no"
4092 rm -f conftest.err conftest.$ac_objext \
4093 conftest$ac_exeext conftest.$ac_ext
4095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4097 if test `eval echo '${'$as_ac_var'}'` = yes; then
4098 cat >>confdefs.h <<_ACEOF
4099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4105 echo "$as_me:$LINENO: checking whether abort is declared" >&5
4106 echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6
4107 if test "${ac_cv_have_decl_abort+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 $ac_includes_default
4121 char *p = (char *) abort;
4128 rm -f conftest.$ac_objext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag"
4138 || test ! -s conftest.err'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try='test -s conftest.$ac_objext'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 ac_cv_have_decl_abort=yes
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_cv_have_decl_abort=no
4157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5
4160 echo "${ECHO_T}$ac_cv_have_decl_abort" >&6
4161 if test $ac_cv_have_decl_abort = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164 #define HAVE_DECL_ABORT 1
4169 cat >>confdefs.h <<_ACEOF
4170 #define HAVE_DECL_ABORT 0
4175 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
4176 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
4177 if test "${ac_cv_have_decl_asprintf+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 $ac_includes_default
4191 char *p = (char *) asprintf;
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_c_werror_flag"
4208 || test ! -s conftest.err'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_cv_have_decl_asprintf=yes
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ac_cv_have_decl_asprintf=no
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
4230 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
4231 if test $ac_cv_have_decl_asprintf = yes; then
4233 cat >>confdefs.h <<_ACEOF
4234 #define HAVE_DECL_ASPRINTF 1
4239 cat >>confdefs.h <<_ACEOF
4240 #define HAVE_DECL_ASPRINTF 0
4245 echo "$as_me:$LINENO: checking whether basename is declared" >&5
4246 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
4247 if test "${ac_cv_have_decl_basename+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4261 char *p = (char *) basename;
4268 rm -f conftest.$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_have_decl_basename=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_have_decl_basename=no
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
4300 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
4301 if test $ac_cv_have_decl_basename = yes; then
4303 cat >>confdefs.h <<_ACEOF
4304 #define HAVE_DECL_BASENAME 1
4309 cat >>confdefs.h <<_ACEOF
4310 #define HAVE_DECL_BASENAME 0
4315 echo "$as_me:$LINENO: checking whether errno is declared" >&5
4316 echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6
4317 if test "${ac_cv_have_decl_errno+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4331 char *p = (char *) errno;
4338 rm -f conftest.$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_have_decl_errno=yes
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_cv_have_decl_errno=no
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369 echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5
4370 echo "${ECHO_T}$ac_cv_have_decl_errno" >&6
4371 if test $ac_cv_have_decl_errno = yes; then
4373 cat >>confdefs.h <<_ACEOF
4374 #define HAVE_DECL_ERRNO 1
4379 cat >>confdefs.h <<_ACEOF
4380 #define HAVE_DECL_ERRNO 0
4385 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
4386 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
4387 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 $ac_includes_default
4401 char *p = (char *) vasprintf;
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4412 grep -v '^ *+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&