2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
667 INSTALL_STRIP_PROGRAM
672 MAINTAINER_MODE_FALSE
717 ac_precious_vars='build_alias
731 # Initialize some variables set by options.
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850 -enable-* | --enable-*)
851 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=\$ac_optarg ;;
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
872 -help | --help | --hel | --he | -h)
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
888 htmldir=$ac_optarg ;;
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
902 -libdir | --libdir | --libdi | --libd)
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
914 -localedir | --localedir | --localedi | --localed | --locale)
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932 # Obsolete; use --without-fp.
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 -psdir | --psdir | --psdi | --psd | --ps)
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1006 sbindir=$ac_optarg ;;
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1017 sharedstatedir=$ac_optarg ;;
1019 -site | --site | --sit)
1021 -site=* | --site=* | --sit=*)
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1048 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=no ;;
1066 # Obsolete; use --with-x.
1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070 | --x-incl | --x-inc | --x-in | --x-i)
1071 ac_prev=x_includes ;;
1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074 x_includes=$ac_optarg ;;
1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078 ac_prev=x_libraries ;;
1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081 x_libraries=$ac_optarg ;;
1083 -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085 { (exit 1); exit 1; }; }
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093 { (exit 1); exit 1; }; }
1094 eval $ac_envvar=\$ac_optarg
1095 export $ac_envvar ;;
1098 # FIXME: should be removed in autoconf 3.0.
1099 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 if test -n "$ac_prev"; then
1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110 { echo "$as_me: error: missing argument to $ac_option" >&2
1111 { (exit 1); exit 1; }; }
1114 # Be sure to have absolute directory names.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1120 eval ac_val=\$$ac_var
1122 [\\/$]* | ?:[\\/]* ) continue;;
1123 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126 { (exit 1); exit 1; }; }
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1134 target=$target_alias
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141 If a cross compiler is detected then cross compile mode will be used." >&2
1142 elif test "x$build_alias" != "x$host_alias"; then
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150 test "$silent" = yes && exec 6>/dev/null
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 { echo "$as_me: error: Working directory cannot be determined" >&2
1157 { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159 { echo "$as_me: error: pwd does not report name of working directory" >&2
1160 { (exit 1); exit 1; }; }
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165 ac_srcdir_defaulted=yes
1166 # Try the directory containing this script, then the parent directory.
1167 ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169 X"$0" : 'X\(//\)[^/]' \| \
1170 X"$0" : 'X\(//\)$' \| \
1171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1195 ac_srcdir_defaulted=no
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200 { (exit 1); exit 1; }; }
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1204 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205 { (exit 1); exit 1; }; }
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 # Report the --help message.
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1231 \`configure' configures this package to adapt to many kinds of systems.
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1238 Defaults for the options are specified in brackets.
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1262 For better control, use the options below.
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1289 --program-prefix=PREFIX prepend PREFIX to installed program names
1290 --program-suffix=SUFFIX append SUFFIX to installed program names
1291 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1295 if test -n "$ac_init_help"; then
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --enable-maintainer-mode enable make rules and dependencies not useful
1303 (and sometimes confusing) to the casual installer
1304 --disable-dependency-tracking Speeds up one-time builds
1305 --enable-dependency-tracking Do not reject slow dependency extractors
1307 Some influential environment variables:
1308 CC C compiler command
1309 CFLAGS C compiler flags
1310 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1311 nonstandard directory <lib dir>
1312 LIBS libraries to pass to the linker, e.g. -l<library>
1313 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1314 you have headers in a nonstandard directory <include dir>
1316 PKG_CONFIG path to pkg-config utility
1318 C compiler flags for PACKAGE, overriding pkg-config
1320 linker flags for PACKAGE, overriding pkg-config
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1329 if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332 test -d "$ac_dir" || continue
1336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1339 # A ".." for each directory in $ac_dir_suffix.
1340 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1341 case $ac_top_builddir_sub in
1342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 ac_abs_top_builddir=$ac_pwd
1347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1348 # for backward compatibility:
1349 ac_top_builddir=$ac_top_build_prefix
1352 .) # We are building in place.
1354 ac_top_srcdir=$ac_top_builddir_sub
1355 ac_abs_top_srcdir=$ac_pwd ;;
1356 [\\/]* | ?:[\\/]* ) # Absolute name.
1357 ac_srcdir=$srcdir$ac_dir_suffix;
1358 ac_top_srcdir=$srcdir
1359 ac_abs_top_srcdir=$srcdir ;;
1361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1362 ac_top_srcdir=$ac_top_build_prefix$srcdir
1363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1367 cd "$ac_dir" || { ac_status=$?; continue; }
1368 # Check for guested configure.
1369 if test -f "$ac_srcdir/configure.gnu"; then
1371 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1372 elif test -f "$ac_srcdir/configure"; then
1374 $SHELL "$ac_srcdir/configure" --help=recursive
1376 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1378 cd "$ac_pwd" || { ac_status=$?; break; }
1382 test -n "$ac_init_help" && exit $ac_status
1383 if $ac_init_version; then
1386 generated by GNU Autoconf 2.61
1388 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1389 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1390 This configure script is free software; the Free Software Foundation
1391 gives unlimited permission to copy, distribute and modify it.
1395 cat >config.log <<_ACEOF
1396 This file contains any messages produced by compilers while
1397 running configure, to aid debugging if configure makes a mistake.
1399 It was created by $as_me, which was
1400 generated by GNU Autoconf 2.61. Invocation command line was
1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 echo "PATH: $as_dir"
1452 # Keep a trace of the command line.
1453 # Strip out --no-create and --no-recursion so they do not pile up.
1454 # Strip out --silent because we don't want to record it for future runs.
1455 # Also quote any args containing shell meta-characters.
1456 # Make two passes to allow for proper duplicate-argument suppression.
1460 ac_must_keep_next=false
1466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1471 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1476 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1477 if test $ac_must_keep_next = true; then
1478 ac_must_keep_next=false # Got value, back to normal.
1481 *=* | --config-cache | -C | -disable-* | --disable-* \
1482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1484 | -with-* | --with-* | -without-* | --without-* | --x)
1485 case "$ac_configure_args0 " in
1486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1489 -* ) ac_must_keep_next=true ;;
1492 ac_configure_args="$ac_configure_args '$ac_arg'"
1497 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1498 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1500 # When interrupted or exit'd, cleanup temporary files, and complete
1501 # config.log. We remove comments because anyway the quotes in there
1502 # would cause problems or look ugly.
1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1505 trap 'exit_status=$?
1506 # Save into config.log some information that might help in debugging.
1511 ## ---------------- ##
1512 ## Cache variables. ##
1513 ## ---------------- ##
1516 # The following way of writing the cache mishandles newlines in values,
1518 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1519 eval ac_val=\$$ac_var
1523 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1527 _ | IFS | as_nl) ;; #(
1528 *) $as_unset $ac_var ;;
1533 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1534 *${as_nl}ac_space=\ *)
1536 "s/'\''/'\''\\\\'\'''\''/g;
1537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1548 ## ----------------- ##
1549 ## Output variables. ##
1550 ## ----------------- ##
1553 for ac_var in $ac_subst_vars
1555 eval ac_val=\$$ac_var
1557 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 echo "$ac_var='\''$ac_val'\''"
1563 if test -n "$ac_subst_files"; then
1565 ## ------------------- ##
1566 ## File substitutions. ##
1567 ## ------------------- ##
1570 for ac_var in $ac_subst_files
1572 eval ac_val=\$$ac_var
1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 echo "$ac_var='\''$ac_val'\''"
1581 if test -s confdefs.h; then
1591 test "$ac_signal" != 0 &&
1592 echo "$as_me: caught signal $ac_signal"
1593 echo "$as_me: exit $exit_status"
1595 rm -f core *.core core.conftest.* &&
1596 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1599 for ac_signal in 1 2 13 15; do
1600 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1605 rm -f -r conftest* confdefs.h
1607 # Predefined preprocessor variables.
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_NAME "$PACKAGE_NAME"
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_STRING "$PACKAGE_STRING"
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1634 # Let the site file select an alternate cache file if it wants to.
1635 # Prefer explicitly selected file to automatically selected ones.
1636 if test -n "$CONFIG_SITE"; then
1637 set x "$CONFIG_SITE"
1638 elif test "x$prefix" != xNONE; then
1639 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1641 set x "$ac_default_prefix/share/config.site" \
1642 "$ac_default_prefix/etc/config.site"
1647 if test -r "$ac_site_file"; then
1648 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1649 echo "$as_me: loading site script $ac_site_file" >&6;}
1650 sed 's/^/| /' "$ac_site_file" >&5
1655 if test -r "$cache_file"; then
1656 # Some versions of bash will fail to source /dev/null (special
1657 # files actually), so we avoid doing that.
1658 if test -f "$cache_file"; then
1659 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1660 echo "$as_me: loading cache $cache_file" >&6;}
1662 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1663 *) . "./$cache_file";;
1667 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1668 echo "$as_me: creating cache $cache_file" >&6;}
1672 # Check that the precious variables saved in the cache have kept the same
1674 ac_cache_corrupted=false
1675 for ac_var in $ac_precious_vars; do
1676 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1677 eval ac_new_set=\$ac_env_${ac_var}_set
1678 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1679 eval ac_new_val=\$ac_env_${ac_var}_value
1680 case $ac_old_set,$ac_new_set in
1682 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1683 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1684 ac_cache_corrupted=: ;;
1686 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1687 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1688 ac_cache_corrupted=: ;;
1691 if test "x$ac_old_val" != "x$ac_new_val"; then
1692 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1693 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1694 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1695 echo "$as_me: former value: $ac_old_val" >&2;}
1696 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1697 echo "$as_me: current value: $ac_new_val" >&2;}
1698 ac_cache_corrupted=:
1701 # Pass precious variables to config.status.
1702 if test "$ac_new_set" = set; then
1704 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 *) ac_arg=$ac_var=$ac_new_val ;;
1707 case " $ac_configure_args " in
1708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1709 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1713 if $ac_cache_corrupted; then
1714 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1715 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1716 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1717 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1718 { (exit 1); exit 1; }; }
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744 am__api_version="1.7"
1746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1747 if test -f "$ac_dir/install-sh"; then
1749 ac_install_sh="$ac_aux_dir/install-sh -c"
1751 elif test -f "$ac_dir/install.sh"; then
1753 ac_install_sh="$ac_aux_dir/install.sh -c"
1755 elif test -f "$ac_dir/shtool"; then
1757 ac_install_sh="$ac_aux_dir/shtool install -c"
1761 if test -z "$ac_aux_dir"; then
1762 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1763 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1764 { (exit 1); exit 1; }; }
1767 # These three variables are undocumented and unsupported,
1768 # and are intended to be withdrawn in a future Autoconf release.
1769 # They can cause serious problems if a builder's source tree is in a directory
1770 # whose full name contains unusual characters.
1771 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1772 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1773 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1776 # Find a good install program. We prefer a C program (faster),
1777 # so one script is as good as another. But avoid the broken or
1778 # incompatible versions:
1779 # SysV /etc/install, /usr/sbin/install
1780 # SunOS /usr/etc/install
1781 # IRIX /sbin/install
1783 # AmigaOS /C/install, which installs bootblocks on floppy discs
1784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1787 # OS/2's system install, which has a completely different semantic
1788 # ./install, which can be erroneously created by make from ./install.sh.
1789 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1790 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1791 if test -z "$INSTALL"; then
1792 if test "${ac_cv_path_install+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 # Account for people who put trailing slashes in PATH elements.
1802 ./ | .// | /cC/* | \
1803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1804 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1807 # OSF1 and SCO ODT 3.0 have their own names for install.
1808 # Don't use installbsd from OSF since it installs stuff as root
1810 for ac_prog in ginstall scoinst install; do
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1813 if test $ac_prog = install &&
1814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1815 # AIX install. It has an incompatible calling convention.
1817 elif test $ac_prog = install &&
1818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1819 # program-specific install script used by HP pwplus--don't use.
1822 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1835 if test "${ac_cv_path_install+set}" = set; then
1836 INSTALL=$ac_cv_path_install
1838 # As a last resort, use the slow shell script. Don't cache a
1839 # value for INSTALL within a source directory, because that will
1840 # break other packages using the cache if that directory is
1841 # removed, or if the value is a relative name.
1842 INSTALL=$ac_install_sh
1845 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1846 echo "${ECHO_T}$INSTALL" >&6; }
1848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1849 # It thinks the first close brace ends the variable substitution.
1850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1856 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1857 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1860 echo timestamp > conftest.file
1861 # Do `set' in a subshell so we don't clobber the current shell's
1862 # arguments. Must try -L first in case configure is actually a
1863 # symlink; some systems play weird games with the mod time of symlinks
1864 # (eg FreeBSD returns the mod time of the symlink's containing
1867 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1868 if test "$*" = "X"; then
1870 set X `ls -t $srcdir/configure conftest.file`
1873 if test "$*" != "X $srcdir/configure conftest.file" \
1874 && test "$*" != "X conftest.file $srcdir/configure"; then
1876 # If neither matched, then we have a broken ls. This can happen
1877 # if, for instance, CONFIG_SHELL is bash and it inherits a
1878 # broken ls alias from the environment. This has actually
1879 # happened. Such a system could not be considered "sane".
1880 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1881 alias in your environment" >&5
1882 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1883 alias in your environment" >&2;}
1884 { (exit 1); exit 1; }; }
1887 test "$2" = conftest.file
1893 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1894 Check your system clock" >&5
1895 echo "$as_me: error: newly created file is older than distributed files!
1896 Check your system clock" >&2;}
1897 { (exit 1); exit 1; }; }
1899 { echo "$as_me:$LINENO: result: yes" >&5
1900 echo "${ECHO_T}yes" >&6; }
1901 test "$program_prefix" != NONE &&
1902 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1903 # Use a double $ so make ignores it.
1904 test "$program_suffix" != NONE &&
1905 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1906 # Double any \ or $. echo might interpret backslashes.
1907 # By default was `s,x,x', remove it if useless.
1908 cat <<\_ACEOF >conftest.sed
1909 s/[\\$]/&&/g;s/;s,x,x,$//
1911 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1915 # expand $ac_aux_dir to an absolute path
1916 am_aux_dir=`cd $ac_aux_dir && pwd`
1918 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1919 # Use eval to expand $SHELL
1920 if eval "$MISSING --run true"; then
1921 am_missing_run="$MISSING --run "
1924 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1925 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1928 for ac_prog in gawk mawk nawk awk
1930 # Extract the first word of "$ac_prog", so it can be a program name with args.
1931 set dummy $ac_prog; ac_word=$2
1932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1934 if test "${ac_cv_prog_AWK+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$AWK"; then
1938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1947 ac_cv_prog_AWK="$ac_prog"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test -n "$AWK"; then
1959 { echo "$as_me:$LINENO: result: $AWK" >&5
1960 echo "${ECHO_T}$AWK" >&6; }
1962 { echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6; }
1967 test -n "$AWK" && break
1970 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1971 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1972 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1973 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 cat >conftest.make <<\_ACEOF
1979 @echo '@@@%%%=$(MAKE)=@@@%%%'
1981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1984 eval ac_cv_prog_make_${ac_make}_set=yes;;
1986 eval ac_cv_prog_make_${ac_make}_set=no;;
1990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1991 { echo "$as_me:$LINENO: result: yes" >&5
1992 echo "${ECHO_T}yes" >&6; }
1995 { echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6; }
1997 SET_MAKE="MAKE=${MAKE-make}"
2000 rm -rf .tst 2>/dev/null
2001 mkdir .tst 2>/dev/null
2002 if test -d .tst; then
2007 rmdir .tst 2>/dev/null
2009 # test to see if srcdir already configured
2010 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2011 test -f $srcdir/config.status; then
2012 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2013 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2014 { (exit 1); exit 1; }; }
2017 # test whether we have cygpath
2018 if test -z "$CYGPATH_W"; then
2019 if (cygpath --version) >/dev/null 2>/dev/null; then
2020 CYGPATH_W='cygpath -w'
2027 # Define the identity of the package.
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE "$PACKAGE"
2037 cat >>confdefs.h <<_ACEOF
2038 #define VERSION "$VERSION"
2041 # Some tools Automake needs.
2043 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2046 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2049 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2052 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2055 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2058 AMTAR=${AMTAR-"${am_missing_run}tar"}
2060 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2062 # Installed binaries are usually stripped using `strip' when the user
2063 # run `make install-strip'. However `strip' might not be the right
2064 # tool to use in cross-compilation environments, therefore Automake
2065 # will honor the `STRIP' environment variable to overrule this program.
2066 if test "$cross_compiling" != no; then
2067 if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}strip; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_STRIP+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 if test -n "$STRIP"; then
2076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 STRIP=$ac_cv_prog_STRIP
2096 if test -n "$STRIP"; then
2097 { echo "$as_me:$LINENO: result: $STRIP" >&5
2098 echo "${ECHO_T}$STRIP" >&6; }
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2106 if test -z "$ac_cv_prog_STRIP"; then
2108 # Extract the first word of "strip", so it can be a program name with args.
2109 set dummy strip; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$ac_ct_STRIP"; then
2116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_ac_ct_STRIP="strip"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2136 if test -n "$ac_ct_STRIP"; then
2137 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2138 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2144 if test "x$ac_ct_STRIP" = x; then
2147 case $cross_compiling:$ac_tool_warned in
2149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2150 whose name does not start with the host triplet. If you think this
2151 configuration is useful to you, please write to autoconf@gnu.org." >&5
2152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2153 whose name does not start with the host triplet. If you think this
2154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2155 ac_tool_warned=yes ;;
2160 STRIP="$ac_cv_prog_STRIP"
2164 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2166 # We need awk for the "check" target. The system "awk" is bad on
2171 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2172 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2173 # Check whether --enable-maintainer-mode was given.
2174 if test "${enable_maintainer_mode+set}" = set; then
2175 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2177 USE_MAINTAINER_MODE=no
2180 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2181 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2184 if test $USE_MAINTAINER_MODE = yes; then
2185 MAINTAINER_MODE_TRUE=
2186 MAINTAINER_MODE_FALSE='#'
2188 MAINTAINER_MODE_TRUE='#'
2189 MAINTAINER_MODE_FALSE=
2192 MAINT=$MAINTAINER_MODE_TRUE
2195 ac_config_headers="$ac_config_headers config.h"
2198 DEPDIR="${am__leading_dot}deps"
2200 ac_config_commands="$ac_config_commands depfiles"
2203 am_make=${MAKE-make}
2204 cat > confinc << 'END'
2209 # If we don't find an include directive, just comment out the code.
2210 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2211 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2215 # First try GNU make style include.
2216 echo "include confinc" > confmf
2217 # We grep out `Entering directory' and `Leaving directory'
2218 # messages which can occur if `w' ends up in MAKEFLAGS.
2219 # In particular we don't look at `^make:' because GNU make might
2220 # be invoked under some other name (usually "gmake"), in which
2221 # case it prints its new name instead of `make'.
2222 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2227 # Now try BSD make style include.
2228 if test "$am__include" = "#"; then
2229 echo '.include "confinc"' > confmf
2230 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2231 am__include=.include
2238 { echo "$as_me:$LINENO: result: $_am_result" >&5
2239 echo "${ECHO_T}$_am_result" >&6; }
2240 rm -f confinc confmf
2242 # Check whether --enable-dependency-tracking was given.
2243 if test "${enable_dependency_tracking+set}" = set; then
2244 enableval=$enable_dependency_tracking;
2247 if test "x$enable_dependency_tracking" != xno; then
2248 am_depcomp="$ac_aux_dir/depcomp"
2253 if test "x$enable_dependency_tracking" != xno; then
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
2307 if test -z "$ac_cv_prog_CC"; then
2309 # Extract the first word of "gcc", so it can be a program name with args.
2310 set dummy gcc; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_ac_ct_CC="gcc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6; }
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2345 if test "x$ac_ct_CC" = x; then
2348 case $cross_compiling:$ac_tool_warned in
2350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&5
2353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2356 ac_tool_warned=yes ;;
2364 if test -z "$CC"; then
2365 if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}cc; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2383 ac_cv_prog_CC="${ac_tool_prefix}cc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 if test -n "$CC"; then
2395 { echo "$as_me:$LINENO: result: $CC" >&5
2396 echo "${ECHO_T}$CC" >&6; }
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2405 if test -z "$CC"; then
2406 # Extract the first word of "cc", so it can be a program name with args.
2407 set dummy cc; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2425 ac_prog_rejected=yes
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test $ac_prog_rejected = yes; then
2437 # We found a bogon in the path, so make sure we never use it.
2438 set dummy $ac_cv_prog_CC
2440 if test $# != 0; then
2441 # We chose a different compiler from the bogus one.
2442 # However, it has the same basename, so the bogon will be chosen
2443 # first if we set CC to just the basename; use the full file name.
2445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2461 if test -z "$CC"; then
2462 if test -n "$ac_tool_prefix"; then
2463 for ac_prog in cl.exe
2465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 if test -n "$CC"; then
2494 { echo "$as_me:$LINENO: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6; }
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2502 test -n "$CC" && break
2505 if test -z "$CC"; then
2507 for ac_prog in cl.exe
2509 # Extract the first word of "$ac_prog", so it can be a program name with args.
2510 set dummy $ac_prog; ac_word=$2
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 if test -n "$ac_ct_CC"; then
2517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_ac_ct_CC="$ac_prog"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2537 if test -n "$ac_ct_CC"; then
2538 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2539 echo "${ECHO_T}$ac_ct_CC" >&6; }
2541 { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2546 test -n "$ac_ct_CC" && break
2549 if test "x$ac_ct_CC" = x; then
2552 case $cross_compiling:$ac_tool_warned in
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet. If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560 ac_tool_warned=yes ;;
2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }
2575 # Provide some information about the compiler.
2576 echo "$as_me:$LINENO: checking for C compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (ac_try="$ac_compiler --version >&5"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compiler --version >&5") 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588 { (ac_try="$ac_compiler -v >&5"
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compiler -v >&5") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }
2598 { (ac_try="$ac_compiler -V >&5"
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_compiler -V >&5") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 ac_clean_files_save=$ac_clean_files
2625 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2626 # Try to create an executable without -o first, disregard a.out.
2627 # It will help us diagnose broken compilers, and finding out an intuition
2629 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2630 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2631 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2633 # List of possible output files, starting from the most likely.
2634 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2635 # only as a last resort. b.out is created by i960 compilers.
2636 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2638 # The IRIX 6 linker writes into existing files which may not be
2639 # executable, retaining their permissions. Remove them first so a
2640 # subsequent execution test works.
2642 for ac_file in $ac_files
2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2646 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2651 if { (ac_try="$ac_link_default"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_link_default") 2>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; then
2661 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2662 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2663 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2664 # so that the user can short-circuit this test for compilers unknown to
2666 for ac_file in $ac_files ''
2668 test -f "$ac_file" || continue
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2673 # We found the default executable, but exeext='' is most
2677 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681 # We set ac_cv_exeext here because the later test for it is not
2682 # safe: cross compilers may not add the suffix if given an `-o'
2683 # argument, so we may need to know it at that point already.
2684 # Even if this section looks crufty: it has the advantage of
2691 test "$ac_cv_exeext" = no && ac_cv_exeext=
2697 { echo "$as_me:$LINENO: result: $ac_file" >&5
2698 echo "${ECHO_T}$ac_file" >&6; }
2699 if test -z "$ac_file"; then
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2703 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: C compiler cannot create executables
2706 See \`config.log' for more details." >&2;}
2707 { (exit 77); exit 77; }; }
2710 ac_exeext=$ac_cv_exeext
2712 # Check that the compiler produces executables we can run. If not, either
2713 # the compiler is broken, or we cross compile.
2714 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2715 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2716 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2717 # If not cross compiling, check that we can run a simple program.
2718 if test "$cross_compiling" != yes; then
2719 if { ac_try='./$ac_file'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2731 if test "$cross_compiling" = maybe; then
2734 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2735 If you meant to cross compile, use \`--host'.
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: cannot run C compiled programs.
2738 If you meant to cross compile, use \`--host'.
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2744 { echo "$as_me:$LINENO: result: yes" >&5
2745 echo "${ECHO_T}yes" >&6; }
2747 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2748 ac_clean_files=$ac_clean_files_save
2749 # Check that the compiler produces executables we can run. If not, either
2750 # the compiler is broken, or we cross compile.
2751 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2752 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2753 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2754 echo "${ECHO_T}$cross_compiling" >&6; }
2756 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2757 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2758 if { (ac_try="$ac_link"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_link") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; then
2768 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2769 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2770 # work properly (i.e., refer to `conftest.exe'), while it won't with
2772 for ac_file in conftest.exe conftest conftest.*; do
2773 test -f "$ac_file" || continue
2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2782 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2789 rm -f conftest$ac_cv_exeext
2790 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2791 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2793 rm -f conftest.$ac_ext
2794 EXEEXT=$ac_cv_exeext
2796 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2797 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2798 if test "${ac_cv_objext+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2816 rm -f conftest.o conftest.obj
2817 if { (ac_try="$ac_compile"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; then
2827 for ac_file in conftest.o conftest.obj conftest.*; do
2828 test -f "$ac_file" || continue;
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2839 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2840 See \`config.log' for more details." >&5
2841 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2842 See \`config.log' for more details." >&2;}
2843 { (exit 1); exit 1; }; }
2846 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2848 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2849 echo "${ECHO_T}$ac_cv_objext" >&6; }
2850 OBJEXT=$ac_cv_objext
2852 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2853 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2854 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2884 grep -v '^ *+' conftest.er1 >conftest.err
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2904 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2905 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2906 GCC=`test $ac_compiler_gnu = yes && echo yes`
2907 ac_test_CFLAGS=${CFLAGS+set}
2908 ac_save_CFLAGS=$CFLAGS
2909 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2910 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_cc_g+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 ac_save_c_werror_flag=$ac_c_werror_flag
2915 ac_c_werror_flag=yes
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.$ac_objext
2934 if { (ac_try="$ac_compile"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_compile") 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } && {
2947 test -z "$ac_c_werror_flag" ||
2948 test ! -s conftest.err
2949 } && test -s conftest.$ac_objext; then
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 ac_c_werror_flag=$ac_save_c_werror_flag
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && {
3024 test -z "$ac_c_werror_flag" ||
3025 test ! -s conftest.err
3026 } && test -s conftest.$ac_objext; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3046 if test "$ac_test_CFLAGS" = set; then
3047 CFLAGS=$ac_save_CFLAGS
3048 elif test $ac_cv_prog_cc_g = yes; then
3049 if test "$GCC" = yes; then
3055 if test "$GCC" = yes; then
3061 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3062 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3063 if test "${ac_cv_prog_cc_c89+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 ac_cv_prog_cc_c89=no
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3076 #include <sys/types.h>
3077 #include <sys/stat.h>
3078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3079 struct buf { int x; };
3080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3081 static char *e (p, i)
3087 static char *f (char * (*g) (char **, int), char **p, ...)
3092 s = g (p, va_arg (v,int));
3097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3098 function prototypes and stuff, but not '\xHH' hex character constants.
3099 These don't provoke an error unfortunately, instead are silently treated
3100 as 'x'. The following induces an error, until -std is added to get
3101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3102 array size at least. It's necessary to write '\x00'==0 to get something
3103 that's true only with -std. */
3104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3107 inside strings and character constants. */
3109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3111 int test (int i, double x);
3112 struct s1 {int (*f) (int a);};
3113 struct s2 {int (*f) (double a);};
3114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3128 CC="$ac_save_CC $ac_arg"
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3146 ac_cv_prog_cc_c89=$ac_arg
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f core conftest.err conftest.$ac_objext
3155 test "x$ac_cv_prog_cc_c89" != "xno" && break
3157 rm -f conftest.$ac_ext
3162 case "x$ac_cv_prog_cc_c89" in
3164 { echo "$as_me:$LINENO: result: none needed" >&5
3165 echo "${ECHO_T}none needed" >&6; } ;;
3167 { echo "$as_me:$LINENO: result: unsupported" >&5
3168 echo "${ECHO_T}unsupported" >&6; } ;;
3170 CC="$CC $ac_cv_prog_cc_c89"
3171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 depcc="$CC" am_compiler_list=
3184 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3185 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3190 # We make a subdir and do the tests there. Otherwise we can end up
3191 # making bogus files that we don't know about and never remove. For
3192 # instance it was reported that on HP-UX the gcc test will end up
3193 # making a dummy file named `D' -- because `-MD' means `put the output
3196 # Copy depcomp to subdir because otherwise we won't find it if we're
3197 # using a relative directory.
3198 cp "$am_depcomp" conftest.dir
3200 # We will build objects and dependencies in a subdirectory because
3201 # it helps to detect inapplicable dependency modes. For instance
3202 # both Tru64's cc and ICC support -MD to output dependencies as a
3203 # side effect of compilation, but ICC will put the dependencies in
3204 # the current directory while Tru64 will put them in the object
3208 am_cv_CC_dependencies_compiler_type=none
3209 if test "$am_compiler_list" = ""; then
3210 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3212 for depmode in $am_compiler_list; do
3213 # Setup a source with many dependencies, because some compilers
3214 # like to wrap large dependency lists on column 80 (with \), and
3215 # we should not choose a depcomp mode which is confused by this.
3217 # We need to recreate these files for each test, as the compiler may
3218 # overwrite some of them when testing with obscure command lines.
3219 # This happens at least with the AIX C compiler.
3221 for i in 1 2 3 4 5 6; do
3222 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3229 # after this tag, mechanisms are not by side-effect, so they'll
3230 # only be used when explicitly requested
3231 if test "x$enable_dependency_tracking" = xyes; then
3239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240 # mode. It turns out that the SunPro C++ compiler does not properly
3241 # handle `-M -o', and we need to detect this.
3242 if depmode=$depmode \
3243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246 >/dev/null 2>conftest.err &&
3247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3248 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3250 # icc doesn't choke on unknown options, it will just issue warnings
3251 # (even with -Werror). So we grep stderr for any message
3252 # that says an option was ignored.
3253 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3254 am_cv_CC_dependencies_compiler_type=$depmode
3263 am_cv_CC_dependencies_compiler_type=none
3267 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3268 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3269 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3274 test "x$enable_dependency_tracking" != xno \
3275 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3277 am__fastdepCC_FALSE='#'
3279 am__fastdepCC_TRUE='#'
3280 am__fastdepCC_FALSE=
3285 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3286 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3287 if test "${ac_cv_search_strerror+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_func_search_save_LIBS=$LIBS
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3298 /* Override any GCC internal prototype to avoid an error.
3299 Use char because int might match the return type of a GCC
3300 builtin and then its argument prototype would still apply. */
3313 for ac_lib in '' cposix; do
3314 if test -z "$ac_lib"; then
3315 ac_res="none required"
3318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3320 rm -f conftest.$ac_objext conftest$ac_exeext
3321 if { (ac_try="$ac_link"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_link") 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest$ac_exeext &&
3337 $as_test_x conftest$ac_exeext; then
3338 ac_cv_search_strerror=$ac_res
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3348 if test "${ac_cv_search_strerror+set}" = set; then
3352 if test "${ac_cv_search_strerror+set}" = set; then
3355 ac_cv_search_strerror=no
3358 LIBS=$ac_func_search_save_LIBS
3360 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3361 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3362 ac_res=$ac_cv_search_strerror
3363 if test "$ac_res" != no; then
3364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_CC+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 if test -n "$CC"; then
3403 { echo "$as_me:$LINENO: result: $CC" >&5
3404 echo "${ECHO_T}$CC" >&6; }
3406 { echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6; }
3412 if test -z "$ac_cv_prog_CC"; then
3414 # Extract the first word of "gcc", so it can be a program name with args.
3415 set dummy gcc; ac_word=$2
3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_ac_ct_CC="gcc"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3444 echo "${ECHO_T}$ac_ct_CC" >&6; }
3446 { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3450 if test "x$ac_ct_CC" = x; then
3453 case $cross_compiling:$ac_tool_warned in
3455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3456 whose name does not start with the host triplet. If you think this
3457 configuration is useful to you, please write to autoconf@gnu.org." >&5
3458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3459 whose name does not start with the host triplet. If you think this
3460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3461 ac_tool_warned=yes ;;
3469 if test -z "$CC"; then
3470 if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472 set dummy ${ac_tool_prefix}cc; ac_word=$2
3473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_CC="${ac_tool_prefix}cc"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 if test -n "$CC"; then
3500 { echo "$as_me:$LINENO: result: $CC" >&5
3501 echo "${ECHO_T}$CC" >&6; }
3503 { echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6; }
3510 if test -z "$CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530 ac_prog_rejected=yes
3534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 if test $ac_prog_rejected = yes; then
3542 # We found a bogon in the path, so make sure we never use it.
3543 set dummy $ac_cv_prog_CC
3545 if test $# != 0; then
3546 # We chose a different compiler from the bogus one.
3547 # However, it has the same basename, so the bogon will be chosen
3548 # first if we set CC to just the basename; use the full file name.
3550 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3556 if test -n "$CC"; then
3557 { echo "$as_me:$LINENO: result: $CC" >&5
3558 echo "${ECHO_T}$CC" >&6; }
3560 { echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6; }
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 for ac_prog in cl.exe
3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3574 if test "${ac_cv_prog_CC+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test -n "$CC"; then
3599 { echo "$as_me:$LINENO: result: $CC" >&5
3600 echo "${ECHO_T}$CC" >&6; }
3602 { echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6; }
3607 test -n "$CC" && break
3610 if test -z "$CC"; then
3612 for ac_prog in cl.exe
3614 # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy $ac_prog; ac_word=$2
3616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_ac_ct_CC="$ac_prog"
3632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3644 echo "${ECHO_T}$ac_ct_CC" >&6; }
3646 { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; }
3651 test -n "$ac_ct_CC" && break
3654 if test "x$ac_ct_CC" = x; then
3657 case $cross_compiling:$ac_tool_warned in
3659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3660 whose name does not start with the host triplet. If you think this
3661 configuration is useful to you, please write to autoconf@gnu.org." >&5
3662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3663 whose name does not start with the host triplet. If you think this
3664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3665 ac_tool_warned=yes ;;
3674 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details." >&5
3676 echo "$as_me: error: no acceptable C compiler found in \$PATH
3677 See \`config.log' for more details." >&2;}
3678 { (exit 1); exit 1; }; }
3680 # Provide some information about the compiler.
3681 echo "$as_me:$LINENO: checking for C compiler version" >&5
3682 ac_compiler=`set X $ac_compile; echo $2`
3683 { (ac_try="$ac_compiler --version >&5"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_compiler --version >&5") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }
3693 { (ac_try="$ac_compiler -v >&5"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compiler -v >&5") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }
3703 { (ac_try="$ac_compiler -V >&5"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_compiler -V >&5") 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }
3714 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3715 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3716 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3737 rm -f conftest.$ac_objext
3738 if { (ac_try="$ac_compile"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_compile") 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } && {
3751 test -z "$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 } && test -s conftest.$ac_objext; then
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3767 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3768 GCC=`test $ac_compiler_gnu = yes && echo yes`
3769 ac_test_CFLAGS=${CFLAGS+set}
3770 ac_save_CFLAGS=$CFLAGS
3771 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3772 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3773 if test "${ac_cv_prog_cc_g+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 ac_save_c_werror_flag=$ac_c_werror_flag
3777 ac_c_werror_flag=yes
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3804 grep -v '^ *+' conftest.er1 >conftest.err
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.$ac_objext; then
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && {
3847 test -z "$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 } && test -s conftest.$ac_objext; then
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest.$ac_objext; then
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3906 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3907 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
3909 CFLAGS=$ac_save_CFLAGS
3910 elif test $ac_cv_prog_cc_g = yes; then
3911 if test "$GCC" = yes; then
3917 if test "$GCC" = yes; then
3923 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3924 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_cc_c89+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_cv_prog_cc_c89=no
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3938 #include <sys/types.h>
3939 #include <sys/stat.h>
3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3941 struct buf { int x; };
3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943 static char *e (p, i)
3949 static char *f (char * (*g) (char **, int), char **p, ...)
3954 s = g (p, va_arg (v,int));
3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3960 function prototypes and stuff, but not '\xHH' hex character constants.
3961 These don't provoke an error unfortunately, instead are silently treated
3962 as 'x'. The following induces an error, until -std is added to get
3963 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3964 array size at least. It's necessary to write '\x00'==0 to get something
3965 that's true only with -std. */
3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969 inside strings and character constants. */
3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3973 int test (int i, double x);
3974 struct s1 {int (*f) (int a);};
3975 struct s2 {int (*f) (double a);};
3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990 CC="$ac_save_CC $ac_arg"
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_cv_prog_cc_c89=$ac_arg
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 rm -f conftest.$ac_ext
4024 case "x$ac_cv_prog_cc_c89" in
4026 { echo "$as_me:$LINENO: result: none needed" >&5
4027 echo "${ECHO_T}none needed" >&6; } ;;
4029 { echo "$as_me:$LINENO: result: unsupported" >&5
4030 echo "${ECHO_T}unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4034 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 depcc="$CC" am_compiler_list=
4046 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4047 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4048 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052 # We make a subdir and do the tests there. Otherwise we can end up
4053 # making bogus files that we don't know about and never remove. For
4054 # instance it was reported that on HP-UX the gcc test will end up
4055 # making a dummy file named `D' -- because `-MD' means `put the output
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4070 am_cv_CC_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091 # after this tag, mechanisms are not by side-effect, so they'll
4092 # only be used when explicitly requested
4093 if test "x$enable_dependency_tracking" = xyes; then
4101 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4102 # mode. It turns out that the SunPro C++ compiler does not properly
4103 # handle `-M -o', and we need to detect this.
4104 if depmode=$depmode \
4105 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4108 >/dev/null 2>conftest.err &&
4109 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4110 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4111 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4112 # icc doesn't choke on unknown options, it will just issue warnings
4113 # (even with -Werror). So we grep stderr for any message
4114 # that says an option was ignored.
4115 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4116 am_cv_CC_dependencies_compiler_type=$depmode
4125 am_cv_CC_dependencies_compiler_type=none
4129 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4130 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4136 test "x$enable_dependency_tracking" != xno \
4137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4139 am__fastdepCC_FALSE='#'
4141 am__fastdepCC_TRUE='#'
4142 am__fastdepCC_FALSE=
4149 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4150 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4151 if test "${am_cv_prog_cc_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 am_cv_prog_cc_stdc=no
4156 # Don't try gcc -ansi; that turns off useful extensions and
4157 # breaks some systems' header files.
4158 # AIX -qlanglvl=ansi
4159 # Ultrix and OSF/1 -std1
4160 # HP-UX 10.20 and later -Ae
4161 # HP-UX older versions -Aa -D_HPUX_SOURCE
4162 # SVR4 -Xc -D__EXTENSIONS__
4163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4165 CC="$ac_save_CC $ac_arg"
4166 cat >conftest.$ac_ext <<_ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4174 #include <sys/types.h>
4175 #include <sys/stat.h>
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4190 s = g (p, va_arg (v,int));
4194 int test (int i, double x);
4195 struct s1 {int (*f) (int a);};
4196 struct s2 {int (*f) (double a);};
4197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.$ac_objext; then
4228 am_cv_prog_cc_stdc="$ac_arg"; break
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 if test -z "$am_cv_prog_cc_stdc"; then
4243 { echo "$as_me:$LINENO: result: none needed" >&5
4244 echo "${ECHO_T}none needed" >&6; }
4246 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4247 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4249 case "x$am_cv_prog_cc_stdc" in
4251 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4260 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4261 # On Suns, sometimes $CPP names a directory.
4262 if test -n "$CPP" && test -d "$CPP"; then
4265 if test -z "$CPP"; then
4266 if test "${ac_cv_prog_CPP+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 # Double quotes because CPP needs to be expanded
4270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4273 for ac_c_preproc_warn_flag in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4288 # include <limits.h>
4290 # include <assert.h>
4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null && {
4307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 # Broken: fails on valid input.
4319 rm -f conftest.err conftest.$ac_ext
4321 # OK, works on sane cases. Now check whether nonexistent headers
4322 # can be detected and how.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 #include <ac_nonexistent.h>
4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } >/dev/null && {
4344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4347 # Broken: success on invalid input.
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 # Passes both tests.
4358 rm -f conftest.err conftest.$ac_ext
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then
4375 { echo "$as_me:$LINENO: result: $CPP" >&5
4376 echo "${ECHO_T}$CPP" >&6; }
4378 for ac_c_preproc_warn_flag in '' yes
4380 # Use a header file that comes with gcc, so configuring glibc
4381 # with a fresh cross-compiler works.
4382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4383 # <limits.h> exists even on freestanding compilers.
4384 # On the NeXT, cc -E runs the code through the compiler's parser,
4385 # not just through cpp. "Syntax error" is here to catch this case.
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4393 # include <limits.h>
4395 # include <assert.h>
4399 if { (ac_try="$ac_cpp conftest.$ac_ext"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null && {
4412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 # Broken: fails on valid input.
4424 rm -f conftest.err conftest.$ac_ext
4426 # OK, works on sane cases. Now check whether nonexistent headers
4427 # can be detected and how.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 #include <ac_nonexistent.h>
4436 if { (ac_try="$ac_cpp conftest.$ac_ext"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4444 grep -v '^ *+' conftest.er1 >conftest.err
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } >/dev/null && {
4449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4450 test ! -s conftest.err
4452 # Broken: success on invalid input.
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 # Passes both tests.
4463 rm -f conftest.err conftest.$ac_ext
4466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467 rm -f conftest.err conftest.$ac_ext
4468 if $ac_preproc_ok; then
4471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4472 See \`config.log' for more details." >&5
4473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4474 See \`config.log' for more details." >&2;}
4475 { (exit 1); exit 1; }; }
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4486 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4487 if test "${ac_cv_path_GREP+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 # Extract the first word of "grep ggrep" to use in msg output
4491 if test -z "$GREP"; then
4492 set dummy grep ggrep; ac_prog_name=$2
4493 if test "${ac_cv_path_GREP+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 ac_path_GREP_found=false
4497 # Loop through the user's path and test for each of PROGNAME-LIST
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502 test -z "$as_dir" && as_dir=.
4503 for ac_prog in grep ggrep; do
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4506 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4507 # Check for GNU ac_path_GREP and select it if it is found.
4508 # Check for GNU $ac_path_GREP
4509 case `"$ac_path_GREP" --version 2>&1` in
4511 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4514 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4517 cat "conftest.in" "conftest.in" >"conftest.tmp"
4518 mv "conftest.tmp" "conftest.in"
4519 cp "conftest.in" "conftest.nl"
4520 echo 'GREP' >> "conftest.nl"
4521 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523 ac_count=`expr $ac_count + 1`
4524 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4525 # Best one so far, save it but keep looking for a better one
4526 ac_cv_path_GREP="$ac_path_GREP"
4527 ac_path_GREP_max=$ac_count
4529 # 10*(2^10) chars as input seems more than enough
4530 test $ac_count -gt 10 && break
4532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 $ac_path_GREP_found && break 3
4546 GREP="$ac_cv_path_GREP"
4547 if test -z "$GREP"; then
4548 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4549 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4550 { (exit 1); exit 1; }; }
4554 ac_cv_path_GREP=$GREP
4559 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4560 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4561 GREP="$ac_cv_path_GREP"
4564 { echo "$as_me:$LINENO: checking for egrep" >&5
4565 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4566 if test "${ac_cv_path_EGREP+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4570 then ac_cv_path_EGREP="$GREP -E"
4572 # Extract the first word of "egrep" to use in msg output
4573 if test -z "$EGREP"; then
4574 set dummy egrep; ac_prog_name=$2
4575 if test "${ac_cv_path_EGREP+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_path_EGREP_found=false
4579 # Loop through the user's path and test for each of PROGNAME-LIST
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 test -z "$as_dir" && as_dir=.
4585 for ac_prog in egrep; do
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4588 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4589 # Check for GNU ac_path_EGREP and select it if it is found.
4590 # Check for GNU $ac_path_EGREP
4591 case `"$ac_path_EGREP" --version 2>&1` in
4593 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4596 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4599 cat "conftest.in" "conftest.in" >"conftest.tmp"
4600 mv "conftest.tmp" "conftest.in"
4601 cp "conftest.in" "conftest.nl"
4602 echo 'EGREP' >> "conftest.nl"
4603 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605 ac_count=`expr $ac_count + 1`
4606 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4607 # Best one so far, save it but keep looking for a better one
4608 ac_cv_path_EGREP="$ac_path_EGREP"
4609 ac_path_EGREP_max=$ac_count
4611 # 10*(2^10) chars as input seems more than enough
4612 test $ac_count -gt 10 && break
4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 $ac_path_EGREP_found && break 3
4628 EGREP="$ac_cv_path_EGREP"
4629 if test -z "$EGREP"; then
4630 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4631 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4632 { (exit 1); exit 1; }; }
4636 ac_cv_path_EGREP=$EGREP
4642 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4643 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4644 EGREP="$ac_cv_path_EGREP"
4647 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4648 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4649 if test "${ac_cv_header_stdc+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4671 rm -f conftest.$ac_objext
4672 if { (ac_try="$ac_compile"
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_compile") 2>conftest.er1
4680 grep -v '^ *+' conftest.er1 >conftest.err
4682 cat conftest.err >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && {
4685 test -z "$ac_c_werror_flag" ||
4686 test ! -s conftest.err
4687 } && test -s conftest.$ac_objext; then
4688 ac_cv_header_stdc=yes
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 ac_cv_header_stdc=no
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 if test $ac_cv_header_stdc = yes; then
4699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4700 cat >conftest.$ac_ext <<_ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4710 $EGREP "memchr" >/dev/null 2>&1; then
4713 ac_cv_header_stdc=no
4719 if test $ac_cv_header_stdc = yes; then
4720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 $EGREP "free" >/dev/null 2>&1; then
4734 ac_cv_header_stdc=no
4740 if test $ac_cv_header_stdc = yes; then
4741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4742 if test "$cross_compiling" = yes; then
4745 cat >conftest.$ac_ext <<_ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4753 #if ((' ' & 0x0FF) == 0x020)
4754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4757 # define ISLOWER(c) \
4758 (('a' <= (c) && (c) <= 'i') \
4759 || ('j' <= (c) && (c) <= 'r') \
4760 || ('s' <= (c) && (c) <= 'z'))
4761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4769 for (i = 0; i < 256; i++)
4770 if (XOR (islower (i), ISLOWER (i))
4771 || toupper (i) != TOUPPER (i))
4776 rm -f conftest$ac_exeext
4777 if { (ac_try="$ac_link"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_link") 2>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4787 { (case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_try") 2>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4798 echo "$as_me: program exited with status $ac_status" >&5
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4803 ac_cv_header_stdc=no
4805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4811 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4812 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4813 if test $ac_cv_header_stdc = yes; then
4815 cat >>confdefs.h <<\_ACEOF
4816 #define STDC_HEADERS 1
4824 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4857 if test -n "$PKG_CONFIG"; then
4858 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4859 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4867 if test -z "$ac_cv_path_PKG_CONFIG"; then
4868 ac_pt_PKG_CONFIG=$PKG_CONFIG
4869 # Extract the first word of "pkg-config", so it can be a program name with args.
4870 set dummy pkg-config; ac_word=$2
4871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4873 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 case $ac_pt_PKG_CONFIG in
4878 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4900 if test -n "$ac_pt_PKG_CONFIG"; then
4901 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4902 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4908 if test "x$ac_pt_PKG_CONFIG" = x; then
4911 case $cross_compiling:$ac_tool_warned in
4913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4914 whose name does not start with the host triplet. If you think this
4915 configuration is useful to you, please write to autoconf@gnu.org." >&5
4916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4917 whose name does not start with the host triplet. If you think this
4918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4919 ac_tool_warned=yes ;;
4921 PKG_CONFIG=$ac_pt_PKG_CONFIG
4924 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4928 if test -n "$PKG_CONFIG"; then
4929 _pkg_min_version=0.9.0
4930 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4931 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4932 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4933 { echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6; }
4936 { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4944 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
4945 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
4947 if test -n "$PKG_CONFIG"; then
4948 if test -n "$PACKAGE_CFLAGS"; then
4949 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
4951 if test -n "$PKG_CONFIG" && \
4952 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
4953 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
4957 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 esound libpng " 2>/dev/null`
4965 if test -n "$PKG_CONFIG"; then
4966 if test -n "$PACKAGE_LIBS"; then
4967 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
4969 if test -n "$PKG_CONFIG" && \
4970 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
4971 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; then
4975 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 esound libpng " 2>/dev/null`
4986 if test $pkg_failed = yes; then
4988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4989 _pkg_short_errors_supported=yes
4991 _pkg_short_errors_supported=no
4993 if test $_pkg_short_errors_supported = yes; then
4994 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
4996 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
4998 # Put the nasty error message in config.log where it belongs
4999 echo "$PACKAGE_PKG_ERRORS" >&5
5001 { { echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5005 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5006 installed software in a non-standard prefix.
5008 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5009 and PACKAGE_LIBS to avoid the need to call pkg-config.
5010 See the pkg-config man page for more details.
5012 echo "$as_me: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5016 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5017 installed software in a non-standard prefix.
5019 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5020 and PACKAGE_LIBS to avoid the need to call pkg-config.
5021 See the pkg-config man page for more details.
5023 { (exit 1); exit 1; }; }
5024 elif test $pkg_failed = untried; then
5025 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5026 is in your PATH or set the PKG_CONFIG environment variable to the full
5029 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5030 and PACKAGE_LIBS to avoid the need to call pkg-config.
5031 See the pkg-config man page for more details.
5033 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5034 See \`config.log' for more details." >&5
5035 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5036 is in your PATH or set the PKG_CONFIG environment variable to the full
5039 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5040 and PACKAGE_LIBS to avoid the need to call pkg-config.
5041 See the pkg-config man page for more details.
5043 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5044 See \`config.log' for more details." >&2;}
5045 { (exit 1); exit 1; }; }
5047 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5048 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5049 { echo "$as_me:$LINENO: result: yes" >&5
5050 echo "${ECHO_T}yes" >&6; }
5054 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5055 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5056 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 ac_check_lib_save_LIBS=$LIBS
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5068 /* Override any GCC internal prototype to avoid an error.
5069 Use char because int might match the return type of a GCC
5070 builtin and then its argument prototype would still apply. */
5078 return uncompress ();
5083 rm -f conftest.$ac_objext conftest$ac_exeext
5084 if { (ac_try="$ac_link"
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090 (eval "$ac_link") 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && {
5097 test -z "$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 } && test -s conftest$ac_exeext &&
5100 $as_test_x conftest$ac_exeext; then
5101 ac_cv_lib_z_uncompress=yes
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ac_cv_lib_z_uncompress=no
5109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5110 conftest$ac_exeext conftest.$ac_ext
5111 LIBS=$ac_check_lib_save_LIBS
5113 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5114 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5115 if test $ac_cv_lib_z_uncompress = yes; then
5116 cat >>confdefs.h <<_ACEOF
5124 echo "Zlib (libz.so) could not be found, but is required."
5129 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5130 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5131 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 ac_check_lib_save_LIBS=$LIBS
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5143 /* Override any GCC internal prototype to avoid an error.
5144 Use char because int might match the return type of a GCC
5145 builtin and then its argument prototype would still apply. */
5149 char glXQueryVersion ();
5153 return glXQueryVersion ();
5158 rm -f conftest.$ac_objext conftest$ac_exeext
5159 if { (ac_try="$ac_link"
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_link") 2>conftest.er1
5167 grep -v '^ *+' conftest.er1 >conftest.err
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest$ac_exeext &&
5175 $as_test_x conftest$ac_exeext; then
5176 ac_cv_lib_GL_glXQueryVersion=yes
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_lib_GL_glXQueryVersion=no
5184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5185 conftest$ac_exeext conftest.$ac_ext
5186 LIBS=$ac_check_lib_save_LIBS
5188 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5189 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5190 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5191 cat >>confdefs.h <<_ACEOF
5192 #define HAVE_LIBGL 1
5199 echo "The OpenGL library (libGL.so) could not be found, but is required."
5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5215 inttypes.h stdint.h unistd.h
5217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 cat >conftest.$ac_ext <<_ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5231 #include <$ac_header>
5233 rm -f conftest.$ac_objext
5234 if { (ac_try="$ac_compile"
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_compile") 2>conftest.er1
5242 grep -v '^ *+' conftest.er1 >conftest.err
5244 cat conftest.err >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } && {
5247 test -z "$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 } && test -s conftest.$ac_objext; then
5250 eval "$as_ac_Header=yes"
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 eval "$as_ac_Header=no"
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_res=`eval echo '${'$as_ac_Header'}'`
5261 { echo "$as_me:$LINENO: result: $ac_res" >&5
5262 echo "${ECHO_T}$ac_res" >&6; }
5263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5264 cat >>confdefs.h <<_ACEOF
5265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5274 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5275 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5276 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5280 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5282 # Is the header compilable?
5283 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
5284 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 $ac_includes_default
5292 #include <linux/cdrom.h>
5294 rm -f conftest.$ac_objext
5295 if { (ac_try="$ac_compile"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compile") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest.$ac_objext; then
5311 ac_header_compiler=yes
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 ac_header_compiler=no
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321 echo "${ECHO_T}$ac_header_compiler" >&6; }
5323 # Is the header present?
5324 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
5325 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <linux/cdrom.h>
5334 if { (ac_try="$ac_cpp conftest.$ac_ext"
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } >/dev/null && {
5347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5350 ac_header_preproc=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ac_header_preproc=no
5358 rm -f conftest.err conftest.$ac_ext
5359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5360 echo "${ECHO_T}$ac_header_preproc" >&6; }
5362 # So? What about this header?
5363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5365 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
5366 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5367 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
5368 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
5369 ac_header_preproc=yes
5372 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
5373 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
5375 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
5377 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
5379 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
5380 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
5381 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
5383 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
5387 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5388 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5389 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 ac_cv_header_linux_cdrom_h=$ac_header_preproc
5394 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5395 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5398 if test $ac_cv_header_linux_cdrom_h = yes; then
5399 HAVE_LINUX_CDROM_H=yes
5402 echo "Linux CDROM support not found, building without it."
5408 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
5410 CDROM_LINUX_FALSE='#'
5412 CDROM_LINUX_TRUE='#'
5417 GETTEXT_PACKAGE=lxdream
5419 cat >>confdefs.h <<_ACEOF
5420 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5430 for ac_header in locale.h
5432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_res=`eval echo '${'$as_ac_Header'}'`
5440 { echo "$as_me:$LINENO: result: $ac_res" >&5
5441 echo "${ECHO_T}$ac_res" >&6; }
5443 # Is the header compilable?
5444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 #include <$ac_header>
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 ac_header_compiler=yes
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_header_compiler=no
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5482 echo "${ECHO_T}$ac_header_compiler" >&6; }
5484 # Is the header present?
5485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #include <$ac_header>
5495 if { (ac_try="$ac_cpp conftest.$ac_ext"
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null && {
5508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5511 ac_header_preproc=yes
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_header_preproc=no
5519 rm -f conftest.err conftest.$ac_ext
5520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5521 echo "${ECHO_T}$ac_header_preproc" >&6; }
5523 # So? What about this header?
5524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5530 ac_header_preproc=yes
5533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 eval "$as_ac_Header=\$ac_header_preproc"
5555 ac_res=`eval echo '${'$as_ac_Header'}'`
5556 { echo "$as_me:$LINENO: result: $ac_res" >&5
5557 echo "${ECHO_T}$ac_res" >&6; }
5560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5561 cat >>confdefs.h <<_ACEOF
5562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569 if test $ac_cv_header_locale_h = yes; then
5570 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5571 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5572 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.$ac_ext <<_ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (ac_try="$ac_link"
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_link") 2>conftest.er1
5599 grep -v '^ *+' conftest.er1 >conftest.err
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest$ac_exeext &&
5607 $as_test_x conftest$ac_exeext; then
5608 am_cv_val_LC_MESSAGES=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 am_cv_val_LC_MESSAGES=no
5616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5617 conftest$ac_exeext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5620 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5621 if test $am_cv_val_LC_MESSAGES = yes; then
5623 cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_LC_MESSAGES 1
5632 gt_cv_have_gettext=no
5638 if test "${ac_cv_header_libintl_h+set}" = set; then
5639 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5640 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5641 if test "${ac_cv_header_libintl_h+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5645 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5647 # Is the header compilable?
5648 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5649 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5650 cat >conftest.$ac_ext <<_ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 $ac_includes_default
5657 #include <libintl.h>
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_compile") 2>conftest.er1
5668 grep -v '^ *+' conftest.er1 >conftest.err
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_c_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest.$ac_objext; then
5676 ac_header_compiler=yes
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 ac_header_compiler=no
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5686 echo "${ECHO_T}$ac_header_compiler" >&6; }
5688 # Is the header present?
5689 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5690 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <libintl.h>
5699 if { (ac_try="$ac_cpp conftest.$ac_ext"
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5707 grep -v '^ *+' conftest.er1 >conftest.err
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } >/dev/null && {
5712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5715 ac_header_preproc=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_header_preproc=no
5723 rm -f conftest.err conftest.$ac_ext
5724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5725 echo "${ECHO_T}$ac_header_preproc" >&6; }
5727 # So? What about this header?
5728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5730 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5731 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5733 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5734 ac_header_preproc=yes
5737 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5738 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5740 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5741 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5742 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5743 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5744 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5746 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5748 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5752 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5753 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5754 if test "${ac_cv_header_libintl_h+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 ac_cv_header_libintl_h=$ac_header_preproc
5759 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5760 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5763 if test $ac_cv_header_libintl_h = yes; then
5764 gt_cv_func_dgettext_libintl="no"
5765 libintl_extra_libs=""
5768 # First check in libc
5770 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5771 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
5772 if test "${gt_cv_func_ngettext_libc+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5782 #include <libintl.h>
5787 return !ngettext ("","", 1)
5792 rm -f conftest.$ac_objext conftest$ac_exeext
5793 if { (ac_try="$ac_link"
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_link") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest$ac_exeext &&
5809 $as_test_x conftest$ac_exeext; then
5810 gt_cv_func_ngettext_libc=yes
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 gt_cv_func_ngettext_libc=no
5818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5819 conftest$ac_exeext conftest.$ac_ext
5822 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5823 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
5825 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5826 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5827 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
5828 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5838 #include <libintl.h>
5843 return !dgettext ("","")
5848 rm -f conftest.$ac_objext conftest$ac_exeext
5849 if { (ac_try="$ac_link"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_link") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest$ac_exeext &&
5865 $as_test_x conftest$ac_exeext; then
5866 gt_cv_func_dgettext_libc=yes
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 gt_cv_func_dgettext_libc=no
5874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5875 conftest$ac_exeext conftest.$ac_ext
5878 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5879 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
5882 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5884 for ac_func in bind_textdomain_codeset
5886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5900 #define $ac_func innocuous_$ac_func
5902 /* System header to define __stub macros and hopefully few prototypes,
5903 which can conflict with char $ac_func (); below.
5904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 <limits.h> exists even on freestanding compilers. */
5908 # include <limits.h>
5910 # include <assert.h>
5915 /* Override any GCC internal prototype to avoid an error.
5916 Use char because int might match the return type of a GCC
5917 builtin and then its argument prototype would still apply. */
5922 /* The GNU C library defines this for functions which it implements
5923 to always fail with ENOSYS. Some functions are actually named
5924 something starting with __ and the normal name is an alias. */
5925 #if defined __stub_$ac_func || defined __stub___$ac_func
5937 rm -f conftest.$ac_objext conftest$ac_exeext
5938 if { (ac_try="$ac_link"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_link") 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest$ac_exeext &&
5954 $as_test_x conftest$ac_exeext; then
5955 eval "$as_ac_var=yes"
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 eval "$as_ac_var=no"
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964 conftest$ac_exeext conftest.$ac_ext
5966 ac_res=`eval echo '${'$as_ac_var'}'`
5967 { echo "$as_me:$LINENO: result: $ac_res" >&5
5968 echo "${ECHO_T}$ac_res" >&6; }
5969 if test `eval echo '${'$as_ac_var'}'` = yes; then
5970 cat >>confdefs.h <<_ACEOF
5971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5980 # If we don't have everything we want, check in libintl
5982 if test "$gt_cv_func_dgettext_libc" != "yes" \
5983 || test "$gt_cv_func_ngettext_libc" != "yes" \
5984 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5986 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5987 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
5988 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 ac_check_lib_save_LIBS=$LIBS
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
6000 /* Override any GCC internal prototype to avoid an error.
6001 Use char because int might match the return type of a GCC
6002 builtin and then its argument prototype would still apply. */
6006 char bindtextdomain ();
6010 return bindtextdomain ();
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (ac_try="$ac_link"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_link") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest$ac_exeext &&
6032 $as_test_x conftest$ac_exeext; then
6033 ac_cv_lib_intl_bindtextdomain=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_lib_intl_bindtextdomain=no
6041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6042 conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6045 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6046 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6047 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6048 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6049 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6050 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_check_lib_save_LIBS=$LIBS
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 /* Override any GCC internal prototype to avoid an error.
6063 Use char because int might match the return type of a GCC
6064 builtin and then its argument prototype would still apply. */
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (ac_try="$ac_link"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_link") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest$ac_exeext &&
6094 $as_test_x conftest$ac_exeext; then
6095 ac_cv_lib_intl_ngettext=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_lib_intl_ngettext=no
6103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6104 conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6107 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6108 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6109 if test $ac_cv_lib_intl_ngettext = yes; then
6110 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6111 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6112 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 ac_check_lib_save_LIBS=$LIBS
6117 cat >conftest.$ac_ext <<_ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6124 /* Override any GCC internal prototype to avoid an error.
6125 Use char because int might match the return type of a GCC
6126 builtin and then its argument prototype would still apply. */
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (ac_try="$ac_link"
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_link") 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest$ac_exeext &&
6156 $as_test_x conftest$ac_exeext; then
6157 ac_cv_lib_intl_dgettext=yes
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_cv_lib_intl_dgettext=no
6165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6166 conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6169 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6170 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6171 if test $ac_cv_lib_intl_dgettext = yes; then
6172 gt_cv_func_dgettext_libintl=yes
6180 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6181 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6182 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6183 { echo "$as_me:$LINENO: result: " >&5
6184 echo "${ECHO_T}" >&6; }
6185 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6186 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6187 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 ac_check_lib_save_LIBS=$LIBS
6191 LIBS="-lintl -liconv $LIBS"
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6199 /* Override any GCC internal prototype to avoid an error.
6200 Use char because int might match the return type of a GCC
6201 builtin and then its argument prototype would still apply. */
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (ac_try="$ac_link"
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_link") 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest$ac_exeext &&
6231 $as_test_x conftest$ac_exeext; then
6232 ac_cv_lib_intl_ngettext=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_cv_lib_intl_ngettext=no
6240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6241 conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6244 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6245 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6246 if test $ac_cv_lib_intl_ngettext = yes; then
6247 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6248 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6249 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lintl -liconv $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6271 return dcgettext ();
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest$ac_exeext &&
6293 $as_test_x conftest$ac_exeext; then
6294 ac_cv_lib_intl_dcgettext=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_cv_lib_intl_dcgettext=no
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LIBS=$ac_check_lib_save_LIBS
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6307 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6308 if test $ac_cv_lib_intl_dcgettext = yes; then
6309 gt_cv_func_dgettext_libintl=yes
6310 libintl_extra_libs=-liconv
6322 # If we found libintl, then check in it for bind_textdomain_codeset();
6323 # we'll prefer libc if neither have bind_textdomain_codeset(),
6324 # and both have dgettext and ngettext
6326 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6327 glib_save_LIBS="$LIBS"
6328 LIBS="$LIBS -lintl $libintl_extra_libs"
6329 unset ac_cv_func_bind_textdomain_codeset
6331 for ac_func in bind_textdomain_codeset
6333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 cat >conftest.$ac_ext <<_ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6347 #define $ac_func innocuous_$ac_func
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func (); below.
6351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352 <limits.h> exists even on freestanding compilers. */
6355 # include <limits.h>
6357 # include <assert.h>
6362 /* Override any GCC internal prototype to avoid an error.
6363 Use char because int might match the return type of a GCC
6364 builtin and then its argument prototype would still apply. */
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined __stub_$ac_func || defined __stub___$ac_func
6384 rm -f conftest.$ac_objext conftest$ac_exeext
6385 if { (ac_try="$ac_link"
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_link") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest$ac_exeext &&
6401 $as_test_x conftest$ac_exeext; then
6402 eval "$as_ac_var=yes"
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 eval "$as_ac_var=no"
6410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6411 conftest$ac_exeext conftest.$ac_ext
6413 ac_res=`eval echo '${'$as_ac_var'}'`
6414 { echo "$as_me:$LINENO: result: $ac_res" >&5
6415 echo "${ECHO_T}$ac_res" >&6; }
6416 if test `eval echo '${'$as_ac_var'}'` = yes; then
6417 cat >>confdefs.h <<_ACEOF
6418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6424 LIBS="$glib_save_LIBS"
6426 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6427 gt_cv_func_dgettext_libc=no
6429 if test "$gt_cv_func_dgettext_libc" = "yes" \
6430 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6431 gt_cv_func_dgettext_libintl=no
6437 if test "$gt_cv_func_dgettext_libc" = "yes" \
6438 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6439 gt_cv_have_gettext=yes
6442 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6443 INTLLIBS="-lintl $libintl_extra_libs"
6446 if test "$gt_cv_have_gettext" = "yes"; then
6448 cat >>confdefs.h <<\_ACEOF
6449 #define HAVE_GETTEXT 1
6452 # Extract the first word of "msgfmt", so it can be a program name with args.
6453 set dummy msgfmt; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_MSGFMT+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6465 for ac_dir in $PATH; do
6466 test -z "$ac_dir" && ac_dir=.
6467 if test -f $ac_dir/$ac_word; then
6468 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6469 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6475 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6479 MSGFMT="$ac_cv_path_MSGFMT"
6480 if test "$MSGFMT" != "no"; then
6481 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6482 echo "${ECHO_T}$MSGFMT" >&6; }
6484 { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6487 if test "$MSGFMT" != "no"; then
6488 glib_save_LIBS="$LIBS"
6489 LIBS="$LIBS $INTLLIBS"
6491 for ac_func in dcgettext
6493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6507 #define $ac_func innocuous_$ac_func
6509 /* System header to define __stub macros and hopefully few prototypes,
6510 which can conflict with char $ac_func (); below.
6511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6512 <limits.h> exists even on freestanding compilers. */
6515 # include <limits.h>
6517 # include <assert.h>
6522 /* Override any GCC internal prototype to avoid an error.
6523 Use char because int might match the return type of a GCC
6524 builtin and then its argument prototype would still apply. */
6529 /* The GNU C library defines this for functions which it implements
6530 to always fail with ENOSYS. Some functions are actually named
6531 something starting with __ and the normal name is an alias. */
6532 #if defined __stub_$ac_func || defined __stub___$ac_func
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (ac_try="$ac_link"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_link") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext &&
6561 $as_test_x conftest$ac_exeext; then
6562 eval "$as_ac_var=yes"
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 eval "$as_ac_var=no"
6570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6571 conftest$ac_exeext conftest.$ac_ext
6573 ac_res=`eval echo '${'$as_ac_var'}'`
6574 { echo "$as_me:$LINENO: result: $ac_res" >&5
6575 echo "${ECHO_T}$ac_res" >&6; }
6576 if test `eval echo '${'$as_ac_var'}'` = yes; then
6577 cat >>confdefs.h <<_ACEOF
6578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6584 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6585 set dummy gmsgfmt; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6615 GMSGFMT=$ac_cv_path_GMSGFMT
6616 if test -n "$GMSGFMT"; then
6617 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6618 echo "${ECHO_T}$GMSGFMT" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 # Extract the first word of "xgettext", so it can be a program name with args.
6626 set dummy xgettext; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6638 for ac_dir in $PATH; do
6639 test -z "$ac_dir" && ac_dir=.
6640 if test -f $ac_dir/$ac_word; then
6641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6642 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6652 XGETTEXT="$ac_cv_path_XGETTEXT"
6653 if test "$XGETTEXT" != ":"; then
6654 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6655 echo "${ECHO_T}$XGETTEXT" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661 cat >conftest.$ac_ext <<_ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6671 extern int _nl_msg_cat_cntr;
6672 return _nl_msg_cat_cntr
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (ac_try="$ac_link"
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_link") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1 >conftest.err
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest$ac_exeext &&
6694 $as_test_x conftest$ac_exeext; then
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6703 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6704 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6705 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6716 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6718 /* System header to define __stub macros and hopefully few prototypes,
6719 which can conflict with char bind_textdomain_codeset (); below.
6720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721 <limits.h> exists even on freestanding compilers. */
6724 # include <limits.h>
6726 # include <assert.h>
6729 #undef bind_textdomain_codeset
6731 /* Override any GCC internal prototype to avoid an error.
6732 Use char because int might match the return type of a GCC
6733 builtin and then its argument prototype would still apply. */
6737 char bind_textdomain_codeset ();
6738 /* The GNU C library defines this for functions which it implements
6739 to always fail with ENOSYS. Some functions are actually named
6740 something starting with __ and the normal name is an alias. */
6741 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6748 return bind_textdomain_codeset ();
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;