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
715 ac_precious_vars='build_alias
729 # Initialize some variables set by options.
731 ac_init_version=false
732 # The variables have the same names as the options, with
733 # dashes changed to underlines.
741 program_transform_name=s,x,x,
749 # Installation directory options.
750 # These are left unexpanded so users can "make install exec_prefix=/foo"
751 # and all the variables that are supposed to be based on exec_prefix
752 # by default will actually change.
753 # Use braces instead of parens because sh, perl, etc. also accept them.
754 # (The list follows the same order as the GNU Coding Standards.)
755 bindir='${exec_prefix}/bin'
756 sbindir='${exec_prefix}/sbin'
757 libexecdir='${exec_prefix}/libexec'
758 datarootdir='${prefix}/share'
759 datadir='${datarootdir}'
760 sysconfdir='${prefix}/etc'
761 sharedstatedir='${prefix}/com'
762 localstatedir='${prefix}/var'
763 includedir='${prefix}/include'
764 oldincludedir='/usr/include'
765 docdir='${datarootdir}/doc/${PACKAGE}'
766 infodir='${datarootdir}/info'
771 libdir='${exec_prefix}/lib'
772 localedir='${datarootdir}/locale'
773 mandir='${datarootdir}/man'
779 # If the previous option needs an argument, assign it.
780 if test -n "$ac_prev"; then
781 eval $ac_prev=\$ac_option
787 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 # Accept the important Cygnus configure options, so we can diagnose typos.
793 case $ac_dashdash$ac_option in
797 -bindir | --bindir | --bindi | --bind | --bin | --bi)
799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 -build | --build | --buil | --bui | --bu)
803 ac_prev=build_alias ;;
804 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805 build_alias=$ac_optarg ;;
807 -cache-file | --cache-file | --cache-fil | --cache-fi \
808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809 ac_prev=cache_file ;;
810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812 cache_file=$ac_optarg ;;
815 cache_file=config.cache ;;
817 -datadir | --datadir | --datadi | --datad)
819 -datadir=* | --datadir=* | --datadi=* | --datad=*)
820 datadir=$ac_optarg ;;
822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823 | --dataroo | --dataro | --datar)
824 ac_prev=datarootdir ;;
825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827 datarootdir=$ac_optarg ;;
829 -disable-* | --disable-*)
830 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831 # Reject names that are not valid shell variable names.
832 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
833 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834 { (exit 1); exit 1; }; }
835 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
836 eval enable_$ac_feature=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 -enable-* | --enable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=\$ac_optarg ;;
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
864 exec_prefix=$ac_optarg ;;
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
870 -help | --help | --hel | --he | -h)
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
877 -host | --host | --hos | --ho)
878 ac_prev=host_alias ;;
879 -host=* | --host=* | --hos=* | --ho=*)
880 host_alias=$ac_optarg ;;
882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 htmldir=$ac_optarg ;;
888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
893 includedir=$ac_optarg ;;
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
898 infodir=$ac_optarg ;;
900 -libdir | --libdir | --libdi | --libd)
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
910 libexecdir=$ac_optarg ;;
912 -localedir | --localedir | --localedi | --localed | --locale)
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
917 -localstatedir | --localstatedir | --localstatedi | --localstated \
918 | --localstate | --localstat | --localsta | --localst | --locals)
919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
922 localstatedir=$ac_optarg ;;
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 # Obsolete; use --without-fp.
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c | -n)
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
948 oldincludedir=$ac_optarg ;;
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
960 program_prefix=$ac_optarg ;;
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
967 program_suffix=$ac_optarg ;;
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
984 program_transform_name=$ac_optarg ;;
986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 -psdir | --psdir | --psdi | --psd | --ps)
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004 sbindir=$ac_optarg ;;
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015 sharedstatedir=$ac_optarg ;;
1017 -site | --site | --sit)
1019 -site=* | --site=* | --sit=*)
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1025 srcdir=$ac_optarg ;;
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1032 sysconfdir=$ac_optarg ;;
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
1035 ac_prev=target_alias ;;
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;;
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
1046 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=\$ac_optarg ;;
1054 -without-* | --without-*)
1055 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=no ;;
1064 # Obsolete; use --with-x.
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1081 -*) { echo "$as_me: error: unrecognized option: $ac_option
1082 Try \`$0 --help' for more information." >&2
1083 { (exit 1); exit 1; }; }
1087 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1091 { (exit 1); exit 1; }; }
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 { echo "$as_me: error: missing argument to $ac_option" >&2
1109 { (exit 1); exit 1; }; }
1112 # Be sure to have absolute directory names.
1113 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114 datadir sysconfdir sharedstatedir localstatedir includedir \
1115 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116 libdir localedir mandir
1118 eval ac_val=\$$ac_var
1120 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1124 { (exit 1); exit 1; }; }
1127 # There might be people who depend on the old broken behavior: `$host'
1128 # used to hold the argument of --host etc.
1129 # FIXME: To remove some day.
1132 target=$target_alias
1134 # FIXME: To remove some day.
1135 if test "x$host_alias" != x; then
1136 if test "x$build_alias" = x; then
1137 cross_compiling=maybe
1138 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1139 If a cross compiler is detected then cross compile mode will be used." >&2
1140 elif test "x$build_alias" != "x$host_alias"; then
1146 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1148 test "$silent" = yes && exec 6>/dev/null
1151 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152 ac_ls_di=`ls -di .` &&
1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 { echo "$as_me: error: Working directory cannot be determined" >&2
1155 { (exit 1); exit 1; }; }
1156 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1157 { echo "$as_me: error: pwd does not report name of working directory" >&2
1158 { (exit 1); exit 1; }; }
1161 # Find the source files, if location was not specified.
1162 if test -z "$srcdir"; then
1163 ac_srcdir_defaulted=yes
1164 # Try the directory containing this script, then the parent directory.
1165 ac_confdir=`$as_dirname -- "$0" ||
1166 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167 X"$0" : 'X\(//\)[^/]' \| \
1168 X"$0" : 'X\(//\)$' \| \
1169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1193 ac_srcdir_defaulted=no
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1198 { (exit 1); exit 1; }; }
1200 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1202 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1203 { (exit 1); exit 1; }; }
1205 # When building in place, set srcdir=.
1206 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 # Remove unnecessary trailing slashes from srcdir.
1210 # Double slashes in file names in object file debugging info
1211 # mess up M-x gdb in Emacs.
1213 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215 for ac_var in $ac_precious_vars; do
1216 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_env_${ac_var}_value=\$${ac_var}
1218 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 # Report the --help message.
1225 if test "$ac_init_help" = "long"; then
1226 # Omit some internal or obsolete options to make the list less imposing.
1227 # This message is too long to be a string in the A/UX 3.1 sh.
1229 \`configure' configures this package to adapt to many kinds of systems.
1231 Usage: $0 [OPTION]... [VAR=VALUE]...
1233 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1234 VAR=VALUE. See below for descriptions of some of the useful variables.
1236 Defaults for the options are specified in brackets.
1239 -h, --help display this help and exit
1240 --help=short display options specific to this package
1241 --help=recursive display the short help of all the included packages
1242 -V, --version display version information and exit
1243 -q, --quiet, --silent do not print \`checking...' messages
1244 --cache-file=FILE cache test results in FILE [disabled]
1245 -C, --config-cache alias for \`--cache-file=config.cache'
1246 -n, --no-create do not create output files
1247 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1249 Installation directories:
1250 --prefix=PREFIX install architecture-independent files in PREFIX
1251 [$ac_default_prefix]
1252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1255 By default, \`make install' will install all the files in
1256 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1257 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1258 for instance \`--prefix=\$HOME'.
1260 For better control, use the options below.
1262 Fine tuning of the installation directories:
1263 --bindir=DIR user executables [EPREFIX/bin]
1264 --sbindir=DIR system admin executables [EPREFIX/sbin]
1265 --libexecdir=DIR program executables [EPREFIX/libexec]
1266 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1267 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1268 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1269 --libdir=DIR object code libraries [EPREFIX/lib]
1270 --includedir=DIR C header files [PREFIX/include]
1271 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1272 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1273 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1274 --infodir=DIR info documentation [DATAROOTDIR/info]
1275 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1276 --mandir=DIR man documentation [DATAROOTDIR/man]
1277 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1278 --htmldir=DIR html documentation [DOCDIR]
1279 --dvidir=DIR dvi documentation [DOCDIR]
1280 --pdfdir=DIR pdf documentation [DOCDIR]
1281 --psdir=DIR ps documentation [DOCDIR]
1287 --program-prefix=PREFIX prepend PREFIX to installed program names
1288 --program-suffix=SUFFIX append SUFFIX to installed program names
1289 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1293 if test -n "$ac_init_help"; then
1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1300 --enable-maintainer-mode enable make rules and dependencies not useful
1301 (and sometimes confusing) to the casual installer
1302 --disable-dependency-tracking Speeds up one-time builds
1303 --enable-dependency-tracking Do not reject slow dependency extractors
1305 Some influential environment variables:
1306 CC C compiler command
1307 CFLAGS C compiler flags
1308 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1309 nonstandard directory <lib dir>
1310 LIBS libraries to pass to the linker, e.g. -l<library>
1311 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1312 you have headers in a nonstandard directory <include dir>
1314 PKG_CONFIG path to pkg-config utility
1316 C compiler flags for PACKAGE, overriding pkg-config
1318 linker flags for PACKAGE, overriding pkg-config
1320 Use these variables to override the choices made by `configure' or to help
1321 it to find libraries and programs with nonstandard names/locations.
1327 if test "$ac_init_help" = "recursive"; then
1328 # If there are subdirs, report their specific --help.
1329 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1330 test -d "$ac_dir" || continue
1334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1337 # A ".." for each directory in $ac_dir_suffix.
1338 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1339 case $ac_top_builddir_sub in
1340 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1341 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1344 ac_abs_top_builddir=$ac_pwd
1345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1346 # for backward compatibility:
1347 ac_top_builddir=$ac_top_build_prefix
1350 .) # We are building in place.
1352 ac_top_srcdir=$ac_top_builddir_sub
1353 ac_abs_top_srcdir=$ac_pwd ;;
1354 [\\/]* | ?:[\\/]* ) # Absolute name.
1355 ac_srcdir=$srcdir$ac_dir_suffix;
1356 ac_top_srcdir=$srcdir
1357 ac_abs_top_srcdir=$srcdir ;;
1359 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1360 ac_top_srcdir=$ac_top_build_prefix$srcdir
1361 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1365 cd "$ac_dir" || { ac_status=$?; continue; }
1366 # Check for guested configure.
1367 if test -f "$ac_srcdir/configure.gnu"; then
1369 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1370 elif test -f "$ac_srcdir/configure"; then
1372 $SHELL "$ac_srcdir/configure" --help=recursive
1374 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376 cd "$ac_pwd" || { ac_status=$?; break; }
1380 test -n "$ac_init_help" && exit $ac_status
1381 if $ac_init_version; then
1384 generated by GNU Autoconf 2.61
1386 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1387 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1388 This configure script is free software; the Free Software Foundation
1389 gives unlimited permission to copy, distribute and modify it.
1393 cat >config.log <<_ACEOF
1394 This file contains any messages produced by compilers while
1395 running configure, to aid debugging if configure makes a mistake.
1397 It was created by $as_me, which was
1398 generated by GNU Autoconf 2.61. Invocation command line was
1410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1417 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1419 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1420 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1422 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1423 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1424 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1425 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 echo "PATH: $as_dir"
1450 # Keep a trace of the command line.
1451 # Strip out --no-create and --no-recursion so they do not pile up.
1452 # Strip out --silent because we don't want to record it for future runs.
1453 # Also quote any args containing shell meta-characters.
1454 # Make two passes to allow for proper duplicate-argument suppression.
1458 ac_must_keep_next=false
1464 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466 | -silent | --silent | --silen | --sile | --sil)
1469 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1474 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1475 if test $ac_must_keep_next = true; then
1476 ac_must_keep_next=false # Got value, back to normal.
1479 *=* | --config-cache | -C | -disable-* | --disable-* \
1480 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1481 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1482 | -with-* | --with-* | -without-* | --without-* | --x)
1483 case "$ac_configure_args0 " in
1484 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1487 -* ) ac_must_keep_next=true ;;
1490 ac_configure_args="$ac_configure_args '$ac_arg'"
1495 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1496 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1498 # When interrupted or exit'd, cleanup temporary files, and complete
1499 # config.log. We remove comments because anyway the quotes in there
1500 # would cause problems or look ugly.
1501 # WARNING: Use '\'' to represent an apostrophe within the trap.
1502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1503 trap 'exit_status=$?
1504 # Save into config.log some information that might help in debugging.
1509 ## ---------------- ##
1510 ## Cache variables. ##
1511 ## ---------------- ##
1514 # The following way of writing the cache mishandles newlines in values,
1516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1517 eval ac_val=\$$ac_var
1521 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1522 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1525 _ | IFS | as_nl) ;; #(
1526 *) $as_unset $ac_var ;;
1531 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1532 *${as_nl}ac_space=\ *)
1534 "s/'\''/'\''\\\\'\'''\''/g;
1535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1546 ## ----------------- ##
1547 ## Output variables. ##
1548 ## ----------------- ##
1551 for ac_var in $ac_subst_vars
1553 eval ac_val=\$$ac_var
1555 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557 echo "$ac_var='\''$ac_val'\''"
1561 if test -n "$ac_subst_files"; then
1563 ## ------------------- ##
1564 ## File substitutions. ##
1565 ## ------------------- ##
1568 for ac_var in $ac_subst_files
1570 eval ac_val=\$$ac_var
1572 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574 echo "$ac_var='\''$ac_val'\''"
1579 if test -s confdefs.h; then
1589 test "$ac_signal" != 0 &&
1590 echo "$as_me: caught signal $ac_signal"
1591 echo "$as_me: exit $exit_status"
1593 rm -f core *.core core.conftest.* &&
1594 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1597 for ac_signal in 1 2 13 15; do
1598 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1603 rm -f -r conftest* confdefs.h
1605 # Predefined preprocessor variables.
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_NAME "$PACKAGE_NAME"
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_STRING "$PACKAGE_STRING"
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1632 # Let the site file select an alternate cache file if it wants to.
1633 # Prefer explicitly selected file to automatically selected ones.
1634 if test -n "$CONFIG_SITE"; then
1635 set x "$CONFIG_SITE"
1636 elif test "x$prefix" != xNONE; then
1637 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1639 set x "$ac_default_prefix/share/config.site" \
1640 "$ac_default_prefix/etc/config.site"
1645 if test -r "$ac_site_file"; then
1646 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1647 echo "$as_me: loading site script $ac_site_file" >&6;}
1648 sed 's/^/| /' "$ac_site_file" >&5
1653 if test -r "$cache_file"; then
1654 # Some versions of bash will fail to source /dev/null (special
1655 # files actually), so we avoid doing that.
1656 if test -f "$cache_file"; then
1657 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1658 echo "$as_me: loading cache $cache_file" >&6;}
1660 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1661 *) . "./$cache_file";;
1665 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1666 echo "$as_me: creating cache $cache_file" >&6;}
1670 # Check that the precious variables saved in the cache have kept the same
1672 ac_cache_corrupted=false
1673 for ac_var in $ac_precious_vars; do
1674 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1675 eval ac_new_set=\$ac_env_${ac_var}_set
1676 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1677 eval ac_new_val=\$ac_env_${ac_var}_value
1678 case $ac_old_set,$ac_new_set in
1680 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1681 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1682 ac_cache_corrupted=: ;;
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1689 if test "x$ac_old_val" != "x$ac_new_val"; then
1690 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1691 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1692 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1693 echo "$as_me: former value: $ac_old_val" >&2;}
1694 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1695 echo "$as_me: current value: $ac_new_val" >&2;}
1696 ac_cache_corrupted=:
1699 # Pass precious variables to config.status.
1700 if test "$ac_new_set" = set; then
1702 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1703 *) ac_arg=$ac_var=$ac_new_val ;;
1705 case " $ac_configure_args " in
1706 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1707 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1711 if $ac_cache_corrupted; then
1712 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1713 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1714 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1715 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1716 { (exit 1); exit 1; }; }
1736 ac_cpp='$CPP $CPPFLAGS'
1737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1742 am__api_version="1.7"
1744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1745 if test -f "$ac_dir/install-sh"; then
1747 ac_install_sh="$ac_aux_dir/install-sh -c"
1749 elif test -f "$ac_dir/install.sh"; then
1751 ac_install_sh="$ac_aux_dir/install.sh -c"
1753 elif test -f "$ac_dir/shtool"; then
1755 ac_install_sh="$ac_aux_dir/shtool install -c"
1759 if test -z "$ac_aux_dir"; then
1760 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1761 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1762 { (exit 1); exit 1; }; }
1765 # These three variables are undocumented and unsupported,
1766 # and are intended to be withdrawn in a future Autoconf release.
1767 # They can cause serious problems if a builder's source tree is in a directory
1768 # whose full name contains unusual characters.
1769 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1770 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1771 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1774 # Find a good install program. We prefer a C program (faster),
1775 # so one script is as good as another. But avoid the broken or
1776 # incompatible versions:
1777 # SysV /etc/install, /usr/sbin/install
1778 # SunOS /usr/etc/install
1779 # IRIX /sbin/install
1781 # AmigaOS /C/install, which installs bootblocks on floppy discs
1782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1785 # OS/2's system install, which has a completely different semantic
1786 # ./install, which can be erroneously created by make from ./install.sh.
1787 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1788 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1789 if test -z "$INSTALL"; then
1790 if test "${ac_cv_path_install+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 # Account for people who put trailing slashes in PATH elements.
1800 ./ | .// | /cC/* | \
1801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1802 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1805 # OSF1 and SCO ODT 3.0 have their own names for install.
1806 # Don't use installbsd from OSF since it installs stuff as root
1808 for ac_prog in ginstall scoinst install; do
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1811 if test $ac_prog = install &&
1812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # AIX install. It has an incompatible calling convention.
1815 elif test $ac_prog = install &&
1816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1817 # program-specific install script used by HP pwplus--don't use.
1820 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1833 if test "${ac_cv_path_install+set}" = set; then
1834 INSTALL=$ac_cv_path_install
1836 # As a last resort, use the slow shell script. Don't cache a
1837 # value for INSTALL within a source directory, because that will
1838 # break other packages using the cache if that directory is
1839 # removed, or if the value is a relative name.
1840 INSTALL=$ac_install_sh
1843 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1844 echo "${ECHO_T}$INSTALL" >&6; }
1846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1847 # It thinks the first close brace ends the variable substitution.
1848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1854 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1855 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1858 echo timestamp > conftest.file
1859 # Do `set' in a subshell so we don't clobber the current shell's
1860 # arguments. Must try -L first in case configure is actually a
1861 # symlink; some systems play weird games with the mod time of symlinks
1862 # (eg FreeBSD returns the mod time of the symlink's containing
1865 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1866 if test "$*" = "X"; then
1868 set X `ls -t $srcdir/configure conftest.file`
1871 if test "$*" != "X $srcdir/configure conftest.file" \
1872 && test "$*" != "X conftest.file $srcdir/configure"; then
1874 # If neither matched, then we have a broken ls. This can happen
1875 # if, for instance, CONFIG_SHELL is bash and it inherits a
1876 # broken ls alias from the environment. This has actually
1877 # happened. Such a system could not be considered "sane".
1878 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1879 alias in your environment" >&5
1880 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1881 alias in your environment" >&2;}
1882 { (exit 1); exit 1; }; }
1885 test "$2" = conftest.file
1891 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1892 Check your system clock" >&5
1893 echo "$as_me: error: newly created file is older than distributed files!
1894 Check your system clock" >&2;}
1895 { (exit 1); exit 1; }; }
1897 { echo "$as_me:$LINENO: result: yes" >&5
1898 echo "${ECHO_T}yes" >&6; }
1899 test "$program_prefix" != NONE &&
1900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1901 # Use a double $ so make ignores it.
1902 test "$program_suffix" != NONE &&
1903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1904 # Double any \ or $. echo might interpret backslashes.
1905 # By default was `s,x,x', remove it if useless.
1906 cat <<\_ACEOF >conftest.sed
1907 s/[\\$]/&&/g;s/;s,x,x,$//
1909 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1913 # expand $ac_aux_dir to an absolute path
1914 am_aux_dir=`cd $ac_aux_dir && pwd`
1916 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1917 # Use eval to expand $SHELL
1918 if eval "$MISSING --run true"; then
1919 am_missing_run="$MISSING --run "
1922 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1923 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1926 for ac_prog in gawk mawk nawk awk
1928 # Extract the first word of "$ac_prog", so it can be a program name with args.
1929 set dummy $ac_prog; ac_word=$2
1930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932 if test "${ac_cv_prog_AWK+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$AWK"; then
1936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 ac_cv_prog_AWK="$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 if test -n "$AWK"; then
1957 { echo "$as_me:$LINENO: result: $AWK" >&5
1958 echo "${ECHO_T}$AWK" >&6; }
1960 { echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6; }
1965 test -n "$AWK" && break
1968 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1970 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1971 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 cat >conftest.make <<\_ACEOF
1977 @echo '@@@%%%=$(MAKE)=@@@%%%'
1979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1980 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1982 eval ac_cv_prog_make_${ac_make}_set=yes;;
1984 eval ac_cv_prog_make_${ac_make}_set=no;;
1988 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1989 { echo "$as_me:$LINENO: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6; }
1993 { echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6; }
1995 SET_MAKE="MAKE=${MAKE-make}"
1998 rm -rf .tst 2>/dev/null
1999 mkdir .tst 2>/dev/null
2000 if test -d .tst; then
2005 rmdir .tst 2>/dev/null
2007 # test to see if srcdir already configured
2008 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2009 test -f $srcdir/config.status; then
2010 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2011 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2012 { (exit 1); exit 1; }; }
2015 # test whether we have cygpath
2016 if test -z "$CYGPATH_W"; then
2017 if (cygpath --version) >/dev/null 2>/dev/null; then
2018 CYGPATH_W='cygpath -w'
2025 # Define the identity of the package.
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE "$PACKAGE"
2035 cat >>confdefs.h <<_ACEOF
2036 #define VERSION "$VERSION"
2039 # Some tools Automake needs.
2041 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2044 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2047 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2050 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2053 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2056 AMTAR=${AMTAR-"${am_missing_run}tar"}
2058 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2060 # Installed binaries are usually stripped using `strip' when the user
2061 # run `make install-strip'. However `strip' might not be the right
2062 # tool to use in cross-compilation environments, therefore Automake
2063 # will honor the `STRIP' environment variable to overrule this program.
2064 if test "$cross_compiling" != no; then
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}strip; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_prog_STRIP+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$STRIP"; then
2074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 STRIP=$ac_cv_prog_STRIP
2094 if test -n "$STRIP"; then
2095 { echo "$as_me:$LINENO: result: $STRIP" >&5
2096 echo "${ECHO_T}$STRIP" >&6; }
2098 { echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6; }
2104 if test -z "$ac_cv_prog_STRIP"; then
2106 # Extract the first word of "strip", so it can be a program name with args.
2107 set dummy strip; ac_word=$2
2108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2110 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$ac_ct_STRIP"; then
2114 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_ac_ct_STRIP="strip"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2134 if test -n "$ac_ct_STRIP"; then
2135 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2136 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2138 { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2142 if test "x$ac_ct_STRIP" = x; then
2145 case $cross_compiling:$ac_tool_warned in
2147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2148 whose name does not start with the host triplet. If you think this
2149 configuration is useful to you, please write to autoconf@gnu.org." >&5
2150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2151 whose name does not start with the host triplet. If you think this
2152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2153 ac_tool_warned=yes ;;
2158 STRIP="$ac_cv_prog_STRIP"
2162 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2164 # We need awk for the "check" target. The system "awk" is bad on
2169 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2170 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2171 # Check whether --enable-maintainer-mode was given.
2172 if test "${enable_maintainer_mode+set}" = set; then
2173 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2175 USE_MAINTAINER_MODE=no
2178 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2179 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2182 if test $USE_MAINTAINER_MODE = yes; then
2183 MAINTAINER_MODE_TRUE=
2184 MAINTAINER_MODE_FALSE='#'
2186 MAINTAINER_MODE_TRUE='#'
2187 MAINTAINER_MODE_FALSE=
2190 MAINT=$MAINTAINER_MODE_TRUE
2193 ac_config_headers="$ac_config_headers config.h"
2196 DEPDIR="${am__leading_dot}deps"
2198 ac_config_commands="$ac_config_commands depfiles"
2201 am_make=${MAKE-make}
2202 cat > confinc << 'END'
2207 # If we don't find an include directive, just comment out the code.
2208 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2209 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2213 # First try GNU make style include.
2214 echo "include confinc" > confmf
2215 # We grep out `Entering directory' and `Leaving directory'
2216 # messages which can occur if `w' ends up in MAKEFLAGS.
2217 # In particular we don't look at `^make:' because GNU make might
2218 # be invoked under some other name (usually "gmake"), in which
2219 # case it prints its new name instead of `make'.
2220 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2225 # Now try BSD make style include.
2226 if test "$am__include" = "#"; then
2227 echo '.include "confinc"' > confmf
2228 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2229 am__include=.include
2236 { echo "$as_me:$LINENO: result: $_am_result" >&5
2237 echo "${ECHO_T}$_am_result" >&6; }
2238 rm -f confinc confmf
2240 # Check whether --enable-dependency-tracking was given.
2241 if test "${enable_dependency_tracking+set}" = set; then
2242 enableval=$enable_dependency_tracking;
2245 if test "x$enable_dependency_tracking" != xno; then
2246 am_depcomp="$ac_aux_dir/depcomp"
2251 if test "x$enable_dependency_tracking" != xno; then
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CC"; then
2296 { echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6; }
2299 { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2305 if test -z "$ac_cv_prog_CC"; then
2307 # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_CC="gcc"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2343 if test "x$ac_ct_CC" = x; then
2346 case $cross_compiling:$ac_tool_warned in
2348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2349 whose name does not start with the host triplet. If you think this
2350 configuration is useful to you, please write to autoconf@gnu.org." >&5
2351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet. If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2354 ac_tool_warned=yes ;;
2362 if test -z "$CC"; then
2363 if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}cc; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_CC="${ac_tool_prefix}cc"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 { echo "$as_me:$LINENO: result: $CC" >&5
2394 echo "${ECHO_T}$CC" >&6; }
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2403 if test -z "$CC"; then
2404 # Extract the first word of "cc", so it can be a program name with args.
2405 set dummy cc; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2423 ac_prog_rejected=yes
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy $ac_cv_prog_CC
2438 if test $# != 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2449 if test -n "$CC"; then
2450 { echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2459 if test -z "$CC"; then
2460 if test -n "$ac_tool_prefix"; then
2461 for ac_prog in cl.exe
2463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$CC"; then
2492 { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2500 test -n "$CC" && break
2503 if test -z "$CC"; then
2505 for ac_prog in cl.exe
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$ac_ct_CC"; then
2515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_ac_ct_CC="$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2535 if test -n "$ac_ct_CC"; then
2536 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2537 echo "${ECHO_T}$ac_ct_CC" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2544 test -n "$ac_ct_CC" && break
2547 if test "x$ac_ct_CC" = x; then
2550 case $cross_compiling:$ac_tool_warned in
2552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet. If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&5
2555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet. If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558 ac_tool_warned=yes ;;
2567 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2573 # Provide some information about the compiler.
2574 echo "$as_me:$LINENO: checking for C compiler version" >&5
2575 ac_compiler=`set X $ac_compile; echo $2`
2576 { (ac_try="$ac_compiler --version >&5"
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compiler --version >&5") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }
2586 { (ac_try="$ac_compiler -v >&5"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compiler -v >&5") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }
2596 { (ac_try="$ac_compiler -V >&5"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_compiler -V >&5") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2607 cat >conftest.$ac_ext <<_ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2622 ac_clean_files_save=$ac_clean_files
2623 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2624 # Try to create an executable without -o first, disregard a.out.
2625 # It will help us diagnose broken compilers, and finding out an intuition
2627 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2628 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2629 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2631 # List of possible output files, starting from the most likely.
2632 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2633 # only as a last resort. b.out is created by i960 compilers.
2634 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2636 # The IRIX 6 linker writes into existing files which may not be
2637 # executable, retaining their permissions. Remove them first so a
2638 # subsequent execution test works.
2640 for ac_file in $ac_files
2643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2644 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2649 if { (ac_try="$ac_link_default"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_link_default") 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2660 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2661 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2662 # so that the user can short-circuit this test for compilers unknown to
2664 for ac_file in $ac_files ''
2666 test -f "$ac_file" || continue
2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2671 # We found the default executable, but exeext='' is most
2675 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2677 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679 # We set ac_cv_exeext here because the later test for it is not
2680 # safe: cross compilers may not add the suffix if given an `-o'
2681 # argument, so we may need to know it at that point already.
2682 # Even if this section looks crufty: it has the advantage of
2689 test "$ac_cv_exeext" = no && ac_cv_exeext=
2695 { echo "$as_me:$LINENO: result: $ac_file" >&5
2696 echo "${ECHO_T}$ac_file" >&6; }
2697 if test -z "$ac_file"; then
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: C compiler cannot create executables
2704 See \`config.log' for more details." >&2;}
2705 { (exit 77); exit 77; }; }
2708 ac_exeext=$ac_cv_exeext
2710 # Check that the compiler produces executables we can run. If not, either
2711 # the compiler is broken, or we cross compile.
2712 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2713 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2714 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2715 # If not cross compiling, check that we can run a simple program.
2716 if test "$cross_compiling" != yes; then
2717 if { ac_try='./$ac_file'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 if test "$cross_compiling" = maybe; then
2732 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2733 If you meant to cross compile, use \`--host'.
2734 See \`config.log' for more details." >&5
2735 echo "$as_me: error: cannot run C compiled programs.
2736 If you meant to cross compile, use \`--host'.
2737 See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }
2742 { echo "$as_me:$LINENO: result: yes" >&5
2743 echo "${ECHO_T}yes" >&6; }
2745 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2746 ac_clean_files=$ac_clean_files_save
2747 # Check that the compiler produces executables we can run. If not, either
2748 # the compiler is broken, or we cross compile.
2749 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2750 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2751 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2752 echo "${ECHO_T}$cross_compiling" >&6; }
2754 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2755 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2756 if { (ac_try="$ac_link"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_link") 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
2766 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2767 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2768 # work properly (i.e., refer to `conftest.exe'), while it won't with
2770 for ac_file in conftest.exe conftest conftest.*; do
2771 test -f "$ac_file" || continue
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2783 See \`config.log' for more details." >&2;}
2784 { (exit 1); exit 1; }; }
2787 rm -f conftest$ac_cv_exeext
2788 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2789 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2791 rm -f conftest.$ac_ext
2792 EXEEXT=$ac_cv_exeext
2794 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2795 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2796 if test "${ac_cv_objext+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2814 rm -f conftest.o conftest.obj
2815 if { (ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_compile") 2>&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
2825 for ac_file in conftest.o conftest.obj conftest.*; do
2826 test -f "$ac_file" || continue;
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2829 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2837 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2846 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2847 echo "${ECHO_T}$ac_cv_objext" >&6; }
2848 OBJEXT=$ac_cv_objext
2850 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2851 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2852 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2873 rm -f conftest.$ac_objext
2874 if { (ac_try="$ac_compile"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compile") 2>conftest.er1
2882 grep -v '^ *+' conftest.er1 >conftest.err
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } && {
2887 test -z "$ac_c_werror_flag" ||
2888 test ! -s conftest.err
2889 } && test -s conftest.$ac_objext; then
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2902 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2903 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2904 GCC=`test $ac_compiler_gnu = yes && echo yes`
2905 ac_test_CFLAGS=${CFLAGS+set}
2906 ac_save_CFLAGS=$CFLAGS
2907 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_cc_g+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 ac_save_c_werror_flag=$ac_c_werror_flag
2913 ac_c_werror_flag=yes
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 ac_c_werror_flag=$ac_save_c_werror_flag
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1 >conftest.err
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } && {
3022 test -z "$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3024 } && test -s conftest.$ac_objext; then
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 ac_c_werror_flag=$ac_save_c_werror_flag
3042 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3044 if test "$ac_test_CFLAGS" = set; then
3045 CFLAGS=$ac_save_CFLAGS
3046 elif test $ac_cv_prog_cc_g = yes; then
3047 if test "$GCC" = yes; then
3053 if test "$GCC" = yes; then
3059 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3060 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_cc_c89+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 ac_cv_prog_cc_c89=no
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3074 #include <sys/types.h>
3075 #include <sys/stat.h>
3076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3077 struct buf { int x; };
3078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3079 static char *e (p, i)
3085 static char *f (char * (*g) (char **, int), char **p, ...)
3090 s = g (p, va_arg (v,int));
3095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3096 function prototypes and stuff, but not '\xHH' hex character constants.
3097 These don't provoke an error unfortunately, instead are silently treated
3098 as 'x'. The following induces an error, until -std is added to get
3099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3100 array size at least. It's necessary to write '\x00'==0 to get something
3101 that's true only with -std. */
3102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3105 inside strings and character constants. */
3107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3109 int test (int i, double x);
3110 struct s1 {int (*f) (int a);};
3111 struct s2 {int (*f) (double a);};
3112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3126 CC="$ac_save_CC $ac_arg"
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_cv_prog_cc_c89=$ac_arg
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3152 rm -f core conftest.err conftest.$ac_objext
3153 test "x$ac_cv_prog_cc_c89" != "xno" && break
3155 rm -f conftest.$ac_ext
3160 case "x$ac_cv_prog_cc_c89" in
3162 { echo "$as_me:$LINENO: result: none needed" >&5
3163 echo "${ECHO_T}none needed" >&6; } ;;
3165 { echo "$as_me:$LINENO: result: unsupported" >&5
3166 echo "${ECHO_T}unsupported" >&6; } ;;
3168 CC="$CC $ac_cv_prog_cc_c89"
3169 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3170 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 depcc="$CC" am_compiler_list=
3182 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188 # We make a subdir and do the tests there. Otherwise we can end up
3189 # making bogus files that we don't know about and never remove. For
3190 # instance it was reported that on HP-UX the gcc test will end up
3191 # making a dummy file named `D' -- because `-MD' means `put the output
3194 # Copy depcomp to subdir because otherwise we won't find it if we're
3195 # using a relative directory.
3196 cp "$am_depcomp" conftest.dir
3198 # We will build objects and dependencies in a subdirectory because
3199 # it helps to detect inapplicable dependency modes. For instance
3200 # both Tru64's cc and ICC support -MD to output dependencies as a
3201 # side effect of compilation, but ICC will put the dependencies in
3202 # the current directory while Tru64 will put them in the object
3206 am_cv_CC_dependencies_compiler_type=none
3207 if test "$am_compiler_list" = ""; then
3208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3210 for depmode in $am_compiler_list; do
3211 # Setup a source with many dependencies, because some compilers
3212 # like to wrap large dependency lists on column 80 (with \), and
3213 # we should not choose a depcomp mode which is confused by this.
3215 # We need to recreate these files for each test, as the compiler may
3216 # overwrite some of them when testing with obscure command lines.
3217 # This happens at least with the AIX C compiler.
3219 for i in 1 2 3 4 5 6; do
3220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3227 # after this tag, mechanisms are not by side-effect, so they'll
3228 # only be used when explicitly requested
3229 if test "x$enable_dependency_tracking" = xyes; then
3237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3238 # mode. It turns out that the SunPro C++ compiler does not properly
3239 # handle `-M -o', and we need to detect this.
3240 if depmode=$depmode \
3241 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3243 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3244 >/dev/null 2>conftest.err &&
3245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3246 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3248 # icc doesn't choke on unknown options, it will just issue warnings
3249 # (even with -Werror). So we grep stderr for any message
3250 # that says an option was ignored.
3251 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3252 am_cv_CC_dependencies_compiler_type=$depmode
3261 am_cv_CC_dependencies_compiler_type=none
3265 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3266 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3267 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3272 test "x$enable_dependency_tracking" != xno \
3273 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3275 am__fastdepCC_FALSE='#'
3277 am__fastdepCC_TRUE='#'
3278 am__fastdepCC_FALSE=
3283 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3284 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3285 if test "${ac_cv_search_strerror+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 ac_func_search_save_LIBS=$LIBS
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3296 /* Override any GCC internal prototype to avoid an error.
3297 Use char because int might match the return type of a GCC
3298 builtin and then its argument prototype would still apply. */
3311 for ac_lib in '' cposix; do
3312 if test -z "$ac_lib"; then
3313 ac_res="none required"
3316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3318 rm -f conftest.$ac_objext conftest$ac_exeext
3319 if { (ac_try="$ac_link"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_link") 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest$ac_exeext &&
3335 $as_test_x conftest$ac_exeext; then
3336 ac_cv_search_strerror=$ac_res
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3346 if test "${ac_cv_search_strerror+set}" = set; then
3350 if test "${ac_cv_search_strerror+set}" = set; then
3353 ac_cv_search_strerror=no
3356 LIBS=$ac_func_search_save_LIBS
3358 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3359 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3360 ac_res=$ac_cv_search_strerror
3361 if test "$ac_res" != no; then
3362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 if test -n "$ac_tool_prefix"; then
3372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3376 if test "${ac_cv_prog_CC+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 if test -n "$CC"; then
3401 { echo "$as_me:$LINENO: result: $CC" >&5
3402 echo "${ECHO_T}$CC" >&6; }
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3410 if test -z "$ac_cv_prog_CC"; then
3412 # Extract the first word of "gcc", so it can be a program name with args.
3413 set dummy gcc; ac_word=$2
3414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 ac_cv_prog_ac_ct_CC="gcc"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440 if test -n "$ac_ct_CC"; then
3441 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3442 echo "${ECHO_T}$ac_ct_CC" >&6; }
3444 { echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6; }
3448 if test "x$ac_ct_CC" = x; then
3451 case $cross_compiling:$ac_tool_warned in
3453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3454 whose name does not start with the host triplet. If you think this
3455 configuration is useful to you, please write to autoconf@gnu.org." >&5
3456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3457 whose name does not start with the host triplet. If you think this
3458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3459 ac_tool_warned=yes ;;
3467 if test -z "$CC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}cc; ac_word=$2
3471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC="${ac_tool_prefix}cc"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { echo "$as_me:$LINENO: result: $CC" >&5
3499 echo "${ECHO_T}$CC" >&6; }
3501 { echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6; }
3508 if test -z "$CC"; then
3509 # Extract the first word of "cc", so it can be a program name with args.
3510 set dummy cc; ac_word=$2
3511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3528 ac_prog_rejected=yes
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test $ac_prog_rejected = yes; then
3540 # We found a bogon in the path, so make sure we never use it.
3541 set dummy $ac_cv_prog_CC
3543 if test $# != 0; then
3544 # We chose a different compiler from the bogus one.
3545 # However, it has the same basename, so the bogon will be chosen
3546 # first if we set CC to just the basename; use the full file name.
3548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3554 if test -n "$CC"; then
3555 { echo "$as_me:$LINENO: result: $CC" >&5
3556 echo "${ECHO_T}$CC" >&6; }
3558 { echo "$as_me:$LINENO: result: no" >&5
3559 echo "${ECHO_T}no" >&6; }
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 for ac_prog in cl.exe
3568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3572 if test "${ac_cv_prog_CC+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 if test -n "$CC"; then
3597 { echo "$as_me:$LINENO: result: $CC" >&5
3598 echo "${ECHO_T}$CC" >&6; }
3600 { echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6; }
3605 test -n "$CC" && break
3608 if test -z "$CC"; then
3610 for ac_prog in cl.exe
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_ac_ct_CC="$ac_prog"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3642 echo "${ECHO_T}$ac_ct_CC" >&6; }
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3649 test -n "$ac_ct_CC" && break
3652 if test "x$ac_ct_CC" = x; then
3655 case $cross_compiling:$ac_tool_warned in
3657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3658 whose name does not start with the host triplet. If you think this
3659 configuration is useful to you, please write to autoconf@gnu.org." >&5
3660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3661 whose name does not start with the host triplet. If you think this
3662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3663 ac_tool_warned=yes ;;
3672 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3673 See \`config.log' for more details." >&5
3674 echo "$as_me: error: no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details." >&2;}
3676 { (exit 1); exit 1; }; }
3678 # Provide some information about the compiler.
3679 echo "$as_me:$LINENO: checking for C compiler version" >&5
3680 ac_compiler=`set X $ac_compile; echo $2`
3681 { (ac_try="$ac_compiler --version >&5"
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compiler --version >&5") 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }
3691 { (ac_try="$ac_compiler -v >&5"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_compiler -v >&5") 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }
3701 { (ac_try="$ac_compiler -V >&5"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_compiler -V >&5") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }
3712 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 cat >conftest.$ac_ext <<_ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3764 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3766 GCC=`test $ac_compiler_gnu = yes && echo yes`
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3770 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3771 if test "${ac_cv_prog_cc_g+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_c_werror_flag=$ac_save_c_werror_flag
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3870 rm -f conftest.$ac_objext
3871 if { (ac_try="$ac_compile"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_c_werror_flag=$ac_save_c_werror_flag
3904 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3905 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3906 if test "$ac_test_CFLAGS" = set; then
3907 CFLAGS=$ac_save_CFLAGS
3908 elif test $ac_cv_prog_cc_g = yes; then
3909 if test "$GCC" = yes; then
3915 if test "$GCC" = yes; then
3921 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3922 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3923 if test "${ac_cv_prog_cc_c89+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 ac_cv_prog_cc_c89=no
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3936 #include <sys/types.h>
3937 #include <sys/stat.h>
3938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3939 struct buf { int x; };
3940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3941 static char *e (p, i)
3947 static char *f (char * (*g) (char **, int), char **p, ...)
3952 s = g (p, va_arg (v,int));
3957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3958 function prototypes and stuff, but not '\xHH' hex character constants.
3959 These don't provoke an error unfortunately, instead are silently treated
3960 as 'x'. The following induces an error, until -std is added to get
3961 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3962 array size at least. It's necessary to write '\x00'==0 to get something
3963 that's true only with -std. */
3964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3966 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3967 inside strings and character constants. */
3969 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3971 int test (int i, double x);
3972 struct s1 {int (*f) (int a);};
3973 struct s2 {int (*f) (double a);};
3974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3980 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3986 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3988 CC="$ac_save_CC $ac_arg"
3989 rm -f conftest.$ac_objext
3990 if { (ac_try="$ac_compile"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_compile") 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } && {
4003 test -z "$ac_c_werror_flag" ||
4004 test ! -s conftest.err
4005 } && test -s conftest.$ac_objext; then
4006 ac_cv_prog_cc_c89=$ac_arg
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4014 rm -f core conftest.err conftest.$ac_objext
4015 test "x$ac_cv_prog_cc_c89" != "xno" && break
4017 rm -f conftest.$ac_ext
4022 case "x$ac_cv_prog_cc_c89" in
4024 { echo "$as_me:$LINENO: result: none needed" >&5
4025 echo "${ECHO_T}none needed" >&6; } ;;
4027 { echo "$as_me:$LINENO: result: unsupported" >&5
4028 echo "${ECHO_T}unsupported" >&6; } ;;
4030 CC="$CC $ac_cv_prog_cc_c89"
4031 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4032 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 depcc="$CC" am_compiler_list=
4044 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4045 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4046 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4050 # We make a subdir and do the tests there. Otherwise we can end up
4051 # making bogus files that we don't know about and never remove. For
4052 # instance it was reported that on HP-UX the gcc test will end up
4053 # making a dummy file named `D' -- because `-MD' means `put the output
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4072 for depmode in $am_compiler_list; do
4073 # Setup a source with many dependencies, because some compilers
4074 # like to wrap large dependency lists on column 80 (with \), and
4075 # we should not choose a depcomp mode which is confused by this.
4077 # We need to recreate these files for each test, as the compiler may
4078 # overwrite some of them when testing with obscure command lines.
4079 # This happens at least with the AIX C compiler.
4081 for i in 1 2 3 4 5 6; do
4082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4089 # after this tag, mechanisms are not by side-effect, so they'll
4090 # only be used when explicitly requested
4091 if test "x$enable_dependency_tracking" = xyes; then
4099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100 # mode. It turns out that the SunPro C++ compiler does not properly
4101 # handle `-M -o', and we need to detect this.
4102 if depmode=$depmode \
4103 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4105 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4106 >/dev/null 2>conftest.err &&
4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored.
4113 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4114 am_cv_CC_dependencies_compiler_type=$depmode
4123 am_cv_CC_dependencies_compiler_type=none
4127 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4128 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4129 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4134 test "x$enable_dependency_tracking" != xno \
4135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4137 am__fastdepCC_FALSE='#'
4139 am__fastdepCC_TRUE='#'
4140 am__fastdepCC_FALSE=
4147 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4148 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4149 if test "${am_cv_prog_cc_stdc+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 am_cv_prog_cc_stdc=no
4154 # Don't try gcc -ansi; that turns off useful extensions and
4155 # breaks some systems' header files.
4156 # AIX -qlanglvl=ansi
4157 # Ultrix and OSF/1 -std1
4158 # HP-UX 10.20 and later -Ae
4159 # HP-UX older versions -Aa -D_HPUX_SOURCE
4160 # SVR4 -Xc -D__EXTENSIONS__
4161 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4163 CC="$ac_save_CC $ac_arg"
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4172 #include <sys/types.h>
4173 #include <sys/stat.h>
4174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4175 struct buf { int x; };
4176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4177 static char *e (p, i)
4183 static char *f (char * (*g) (char **, int), char **p, ...)
4188 s = g (p, va_arg (v,int));
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } && {
4223 test -z "$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4225 } && test -s conftest.$ac_objext; then
4226 am_cv_prog_cc_stdc="$ac_arg"; break
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 if test -z "$am_cv_prog_cc_stdc"; then
4241 { echo "$as_me:$LINENO: result: none needed" >&5
4242 echo "${ECHO_T}none needed" >&6; }
4244 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4245 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4247 case "x$am_cv_prog_cc_stdc" in
4249 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4258 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4259 # On Suns, sometimes $CPP names a directory.
4260 if test -n "$CPP" && test -d "$CPP"; then
4263 if test -z "$CPP"; then
4264 if test "${ac_cv_prog_CPP+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 # Double quotes because CPP needs to be expanded
4268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4271 for ac_c_preproc_warn_flag in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4286 # include <limits.h>
4288 # include <assert.h>
4292 if { (ac_try="$ac_cpp conftest.$ac_ext"
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4300 grep -v '^ *+' conftest.er1 >conftest.err
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } >/dev/null && {
4305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4306 test ! -s conftest.err
4310 echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 # Broken: fails on valid input.
4317 rm -f conftest.err conftest.$ac_ext
4319 # OK, works on sane cases. Now check whether nonexistent headers
4320 # can be detected and how.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <ac_nonexistent.h>
4329 if { (ac_try="$ac_cpp conftest.$ac_ext"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } >/dev/null && {
4342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4343 test ! -s conftest.err
4345 # Broken: success on invalid input.
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4351 # Passes both tests.
4356 rm -f conftest.err conftest.$ac_ext
4359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4360 rm -f conftest.err conftest.$ac_ext
4361 if $ac_preproc_ok; then
4373 { echo "$as_me:$LINENO: result: $CPP" >&5
4374 echo "${ECHO_T}$CPP" >&6; }
4376 for ac_c_preproc_warn_flag in '' yes
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4391 # include <limits.h>
4393 # include <assert.h>
4397 if { (ac_try="$ac_cpp conftest.$ac_ext"
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4405 grep -v '^ *+' conftest.er1 >conftest.err
4407 cat conftest.err >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } >/dev/null && {
4410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4411 test ! -s conftest.err
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 # Broken: fails on valid input.
4422 rm -f conftest.err conftest.$ac_ext
4424 # OK, works on sane cases. Now check whether nonexistent headers
4425 # can be detected and how.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <ac_nonexistent.h>
4434 if { (ac_try="$ac_cpp conftest.$ac_ext"
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4442 grep -v '^ *+' conftest.er1 >conftest.err
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } >/dev/null && {
4447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4448 test ! -s conftest.err
4450 # Broken: success on invalid input.
4453 echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4456 # Passes both tests.
4461 rm -f conftest.err conftest.$ac_ext
4464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4465 rm -f conftest.err conftest.$ac_ext
4466 if $ac_preproc_ok; then
4469 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4470 See \`config.log' for more details." >&5
4471 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4472 See \`config.log' for more details." >&2;}
4473 { (exit 1); exit 1; }; }
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4484 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_GREP+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 # Extract the first word of "grep ggrep" to use in msg output
4489 if test -z "$GREP"; then
4490 set dummy grep ggrep; ac_prog_name=$2
4491 if test "${ac_cv_path_GREP+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4512 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 ac_count=`expr $ac_count + 1`
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 $ac_path_GREP_found && break 3
4544 GREP="$ac_cv_path_GREP"
4545 if test -z "$GREP"; then
4546 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4547 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4548 { (exit 1); exit 1; }; }
4552 ac_cv_path_GREP=$GREP
4557 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4558 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4559 GREP="$ac_cv_path_GREP"
4562 { echo "$as_me:$LINENO: checking for egrep" >&5
4563 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4564 if test "${ac_cv_path_EGREP+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568 then ac_cv_path_EGREP="$GREP -E"
4570 # Extract the first word of "egrep" to use in msg output
4571 if test -z "$EGREP"; then
4572 set dummy egrep; ac_prog_name=$2
4573 if test "${ac_cv_path_EGREP+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_path_EGREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in egrep; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4587 # Check for GNU ac_path_EGREP and select it if it is found.
4588 # Check for GNU $ac_path_EGREP
4589 case `"$ac_path_EGREP" --version 2>&1` in
4591 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4594 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 echo 'EGREP' >> "conftest.nl"
4601 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 ac_count=`expr $ac_count + 1`
4604 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_EGREP="$ac_path_EGREP"
4607 ac_path_EGREP_max=$ac_count
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 $ac_path_EGREP_found && break 3
4626 EGREP="$ac_cv_path_EGREP"
4627 if test -z "$EGREP"; then
4628 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4629 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4630 { (exit 1); exit 1; }; }
4634 ac_cv_path_EGREP=$EGREP
4640 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4641 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4642 EGREP="$ac_cv_path_EGREP"
4645 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4647 if test "${ac_cv_header_stdc+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4686 ac_cv_header_stdc=yes
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cv_header_stdc=no
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 if test $ac_cv_header_stdc = yes; then
4697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 $EGREP "memchr" >/dev/null 2>&1; then
4711 ac_cv_header_stdc=no
4717 if test $ac_cv_header_stdc = yes; then
4718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4729 $EGREP "free" >/dev/null 2>&1; then
4732 ac_cv_header_stdc=no
4738 if test $ac_cv_header_stdc = yes; then
4739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4740 if test "$cross_compiling" = yes; then
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4751 #if ((' ' & 0x0FF) == 0x020)
4752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4755 # define ISLOWER(c) \
4756 (('a' <= (c) && (c) <= 'i') \
4757 || ('j' <= (c) && (c) <= 'r') \
4758 || ('s' <= (c) && (c) <= 'z'))
4759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4767 for (i = 0; i < 256; i++)
4768 if (XOR (islower (i), ISLOWER (i))
4769 || toupper (i) != TOUPPER (i))
4774 rm -f conftest$ac_exeext
4775 if { (ac_try="$ac_link"
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_link") 2>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4785 { (case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_try") 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4796 echo "$as_me: program exited with status $ac_status" >&5
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4801 ac_cv_header_stdc=no
4803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4809 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4810 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4811 if test $ac_cv_header_stdc = yes; then
4813 cat >>confdefs.h <<\_ACEOF
4814 #define STDC_HEADERS 1
4822 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4855 if test -n "$PKG_CONFIG"; then
4856 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4857 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4859 { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4865 if test -z "$ac_cv_path_PKG_CONFIG"; then
4866 ac_pt_PKG_CONFIG=$PKG_CONFIG
4867 # Extract the first word of "pkg-config", so it can be a program name with args.
4868 set dummy pkg-config; ac_word=$2
4869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 case $ac_pt_PKG_CONFIG in
4876 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4898 if test -n "$ac_pt_PKG_CONFIG"; then
4899 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4900 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4906 if test "x$ac_pt_PKG_CONFIG" = x; then
4909 case $cross_compiling:$ac_tool_warned in
4911 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4912 whose name does not start with the host triplet. If you think this
4913 configuration is useful to you, please write to autoconf@gnu.org." >&5
4914 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4915 whose name does not start with the host triplet. If you think this
4916 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4917 ac_tool_warned=yes ;;
4919 PKG_CONFIG=$ac_pt_PKG_CONFIG
4922 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4926 if test -n "$PKG_CONFIG"; then
4927 _pkg_min_version=0.9.0
4928 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4929 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4930 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4931 { echo "$as_me:$LINENO: result: yes" >&5
4932 echo "${ECHO_T}yes" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4942 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
4943 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
4945 if test -n "$PKG_CONFIG"; then
4946 if test -n "$PACKAGE_CFLAGS"; then
4947 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
4949 if test -n "$PKG_CONFIG" && \
4950 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
4951 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; then
4955 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 esound libpng " 2>/dev/null`
4963 if test -n "$PKG_CONFIG"; then
4964 if test -n "$PACKAGE_LIBS"; then
4965 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
4967 if test -n "$PKG_CONFIG" && \
4968 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
4969 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; then
4973 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 esound libpng " 2>/dev/null`
4984 if test $pkg_failed = yes; then
4986 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4987 _pkg_short_errors_supported=yes
4989 _pkg_short_errors_supported=no
4991 if test $_pkg_short_errors_supported = yes; then
4992 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
4994 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
4996 # Put the nasty error message in config.log where it belongs
4997 echo "$PACKAGE_PKG_ERRORS" >&5
4999 { { echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5003 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5004 installed software in a non-standard prefix.
5006 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5007 and PACKAGE_LIBS to avoid the need to call pkg-config.
5008 See the pkg-config man page for more details.
5010 echo "$as_me: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5015 installed software in a non-standard prefix.
5017 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5018 and PACKAGE_LIBS to avoid the need to call pkg-config.
5019 See the pkg-config man page for more details.
5021 { (exit 1); exit 1; }; }
5022 elif test $pkg_failed = untried; then
5023 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5024 is in your PATH or set the PKG_CONFIG environment variable to the full
5027 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5028 and PACKAGE_LIBS to avoid the need to call pkg-config.
5029 See the pkg-config man page for more details.
5031 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5032 See \`config.log' for more details." >&5
5033 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5034 is in your PATH or set the PKG_CONFIG environment variable to the full
5037 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5038 and PACKAGE_LIBS to avoid the need to call pkg-config.
5039 See the pkg-config man page for more details.
5041 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5045 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5046 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5047 { echo "$as_me:$LINENO: result: yes" >&5
5048 echo "${ECHO_T}yes" >&6; }
5055 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5056 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5057 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 ac_check_lib_save_LIBS=$LIBS
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5069 /* Override any GCC internal prototype to avoid an error.
5070 Use char because int might match the return type of a GCC
5071 builtin and then its argument prototype would still apply. */
5079 return uncompress ();
5084 rm -f conftest.$ac_objext conftest$ac_exeext
5085 if { (ac_try="$ac_link"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_link") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest$ac_exeext &&
5101 $as_test_x conftest$ac_exeext; then
5102 ac_cv_lib_z_uncompress=yes
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 ac_cv_lib_z_uncompress=no
5110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5111 conftest$ac_exeext conftest.$ac_ext
5112 LIBS=$ac_check_lib_save_LIBS
5114 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5115 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5116 if test $ac_cv_lib_z_uncompress = yes; then
5117 cat >>confdefs.h <<_ACEOF
5125 echo "Zlib (libz.so) could not be found, but is required."
5130 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5131 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5132 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 ac_check_lib_save_LIBS=$LIBS
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5144 /* Override any GCC internal prototype to avoid an error.
5145 Use char because int might match the return type of a GCC
5146 builtin and then its argument prototype would still apply. */
5150 char glXQueryVersion ();
5154 return glXQueryVersion ();
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (ac_try="$ac_link"
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_link") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest$ac_exeext &&
5176 $as_test_x conftest$ac_exeext; then
5177 ac_cv_lib_GL_glXQueryVersion=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_lib_GL_glXQueryVersion=no
5185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5186 conftest$ac_exeext conftest.$ac_ext
5187 LIBS=$ac_check_lib_save_LIBS
5189 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5190 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5191 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5192 cat >>confdefs.h <<_ACEOF
5193 #define HAVE_LIBGL 1
5200 echo "The OpenGL library (libGL.so) could not be found, but is required."
5205 GETTEXT_PACKAGE=dream
5207 cat >>confdefs.h <<_ACEOF
5208 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5224 inttypes.h stdint.h unistd.h
5226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5240 #include <$ac_header>
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_compile") 2>conftest.er1
5251 grep -v '^ *+' conftest.er1 >conftest.err
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && {
5256 test -z "$ac_c_werror_flag" ||
5257 test ! -s conftest.err
5258 } && test -s conftest.$ac_objext; then
5259 eval "$as_ac_Header=yes"
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 eval "$as_ac_Header=no"
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 ac_res=`eval echo '${'$as_ac_Header'}'`
5270 { echo "$as_me:$LINENO: result: $ac_res" >&5
5271 echo "${ECHO_T}$ac_res" >&6; }
5272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5273 cat >>confdefs.h <<_ACEOF
5274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5284 for ac_header in locale.h
5286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 ac_res=`eval echo '${'$as_ac_Header'}'`
5294 { echo "$as_me:$LINENO: result: $ac_res" >&5
5295 echo "${ECHO_T}$ac_res" >&6; }
5297 # Is the header compilable?
5298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5307 #include <$ac_header>
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5318 grep -v '^ *+' conftest.er1 >conftest.err
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5326 ac_header_compiler=yes
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_header_compiler=no
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5336 echo "${ECHO_T}$ac_header_compiler" >&6; }
5338 # Is the header present?
5339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5341 cat >conftest.$ac_ext <<_ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <$ac_header>
5349 if { (ac_try="$ac_cpp conftest.$ac_ext"
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5357 grep -v '^ *+' conftest.er1 >conftest.err
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } >/dev/null && {
5362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5363 test ! -s conftest.err
5365 ac_header_preproc=yes
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 ac_header_preproc=no
5373 rm -f conftest.err conftest.$ac_ext
5374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5375 echo "${ECHO_T}$ac_header_preproc" >&6; }
5377 # So? What about this header?
5378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5384 ac_header_preproc=yes
5387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 eval "$as_ac_Header=\$ac_header_preproc"
5409 ac_res=`eval echo '${'$as_ac_Header'}'`
5410 { echo "$as_me:$LINENO: result: $ac_res" >&5
5411 echo "${ECHO_T}$ac_res" >&6; }
5414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5423 if test $ac_cv_header_locale_h = yes; then
5424 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5425 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5426 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (ac_try="$ac_link"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_link") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest$ac_exeext &&
5461 $as_test_x conftest$ac_exeext; then
5462 am_cv_val_LC_MESSAGES=yes
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 am_cv_val_LC_MESSAGES=no
5470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471 conftest$ac_exeext conftest.$ac_ext
5473 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5474 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5475 if test $am_cv_val_LC_MESSAGES = yes; then
5477 cat >>confdefs.h <<\_ACEOF
5478 #define HAVE_LC_MESSAGES 1
5486 gt_cv_have_gettext=no
5492 if test "${ac_cv_header_libintl_h+set}" = set; then
5493 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5494 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5495 if test "${ac_cv_header_libintl_h+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5499 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5501 # Is the header compilable?
5502 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5503 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 #include <libintl.h>
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_header_compiler=yes
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_header_compiler=no
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5540 echo "${ECHO_T}$ac_header_compiler" >&6; }
5542 # Is the header present?
5543 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5544 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5545 cat >conftest.$ac_ext <<_ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 #include <libintl.h>
5553 if { (ac_try="$ac_cpp conftest.$ac_ext"
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5561 grep -v '^ *+' conftest.er1 >conftest.err
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null && {
5566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5569 ac_header_preproc=yes
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_header_preproc=no
5577 rm -f conftest.err conftest.$ac_ext
5578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5579 echo "${ECHO_T}$ac_header_preproc" >&6; }
5581 # So? What about this header?
5582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5584 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5585 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5587 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5588 ac_header_preproc=yes
5591 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5592 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5594 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5596 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5598 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5600 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5602 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5606 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5607 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5608 if test "${ac_cv_header_libintl_h+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 ac_cv_header_libintl_h=$ac_header_preproc
5613 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5614 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5617 if test $ac_cv_header_libintl_h = yes; then
5618 gt_cv_func_dgettext_libintl="no"
5619 libintl_extra_libs=""
5622 # First check in libc
5624 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5625 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
5626 if test "${gt_cv_func_ngettext_libc+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5636 #include <libintl.h>
5641 return !ngettext ("","", 1)
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (ac_try="$ac_link"
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653 (eval "$ac_link") 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } && {
5660 test -z "$ac_c_werror_flag" ||
5661 test ! -s conftest.err
5662 } && test -s conftest$ac_exeext &&
5663 $as_test_x conftest$ac_exeext; then
5664 gt_cv_func_ngettext_libc=yes
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5669 gt_cv_func_ngettext_libc=no
5672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5673 conftest$ac_exeext conftest.$ac_ext
5676 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5677 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
5679 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5680 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5681 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
5682 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5692 #include <libintl.h>
5697 return !dgettext ("","")
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (ac_try="$ac_link"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_link") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest$ac_exeext &&
5719 $as_test_x conftest$ac_exeext; then
5720 gt_cv_func_dgettext_libc=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 gt_cv_func_dgettext_libc=no
5728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5729 conftest$ac_exeext conftest.$ac_ext
5732 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
5733 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
5736 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5738 for ac_func in bind_textdomain_codeset
5740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5754 #define $ac_func innocuous_$ac_func
5756 /* System header to define __stub macros and hopefully few prototypes,
5757 which can conflict with char $ac_func (); below.
5758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759 <limits.h> exists even on freestanding compilers. */
5762 # include <limits.h>
5764 # include <assert.h>
5769 /* Override any GCC internal prototype to avoid an error.
5770 Use char because int might match the return type of a GCC
5771 builtin and then its argument prototype would still apply. */
5776 /* The GNU C library defines this for functions which it implements
5777 to always fail with ENOSYS. Some functions are actually named
5778 something starting with __ and the normal name is an alias. */
5779 #if defined __stub_$ac_func || defined __stub___$ac_func
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (ac_try="$ac_link"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_link") 2>conftest.er1
5800 grep -v '^ *+' conftest.er1 >conftest.err
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest$ac_exeext &&
5808 $as_test_x conftest$ac_exeext; then
5809 eval "$as_ac_var=yes"
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 eval "$as_ac_var=no"
5817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5818 conftest$ac_exeext conftest.$ac_ext
5820 ac_res=`eval echo '${'$as_ac_var'}'`
5821 { echo "$as_me:$LINENO: result: $ac_res" >&5
5822 echo "${ECHO_T}$ac_res" >&6; }
5823 if test `eval echo '${'$as_ac_var'}'` = yes; then
5824 cat >>confdefs.h <<_ACEOF
5825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5834 # If we don't have everything we want, check in libintl
5836 if test "$gt_cv_func_dgettext_libc" != "yes" \
5837 || test "$gt_cv_func_ngettext_libc" != "yes" \
5838 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5840 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5841 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
5842 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_check_lib_save_LIBS=$LIBS
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5854 /* Override any GCC internal prototype to avoid an error.
5855 Use char because int might match the return type of a GCC
5856 builtin and then its argument prototype would still apply. */
5860 char bindtextdomain ();
5864 return bindtextdomain ();
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
5887 ac_cv_lib_intl_bindtextdomain=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_lib_intl_bindtextdomain=no
5895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896 conftest$ac_exeext conftest.$ac_ext
5897 LIBS=$ac_check_lib_save_LIBS
5899 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5900 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
5901 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5902 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
5903 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
5904 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_check_lib_save_LIBS=$LIBS
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 /* Override any GCC internal prototype to avoid an error.
5917 Use char because int might match the return type of a GCC
5918 builtin and then its argument prototype would still apply. */
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest$ac_exeext &&
5948 $as_test_x conftest$ac_exeext; then
5949 ac_cv_lib_intl_ngettext=yes
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5954 ac_cv_lib_intl_ngettext=no
5957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5958 conftest$ac_exeext conftest.$ac_ext
5959 LIBS=$ac_check_lib_save_LIBS
5961 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
5962 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
5963 if test $ac_cv_lib_intl_ngettext = yes; then
5964 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5965 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
5966 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 ac_check_lib_save_LIBS=$LIBS
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5978 /* Override any GCC internal prototype to avoid an error.
5979 Use char because int might match the return type of a GCC
5980 builtin and then its argument prototype would still apply. */
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest$ac_exeext &&
6010 $as_test_x conftest$ac_exeext; then
6011 ac_cv_lib_intl_dgettext=yes
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 ac_cv_lib_intl_dgettext=no
6019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6020 conftest$ac_exeext conftest.$ac_ext
6021 LIBS=$ac_check_lib_save_LIBS
6023 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6024 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6025 if test $ac_cv_lib_intl_dgettext = yes; then
6026 gt_cv_func_dgettext_libintl=yes
6034 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6035 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6036 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6037 { echo "$as_me:$LINENO: result: " >&5
6038 echo "${ECHO_T}" >&6; }
6039 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6040 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6041 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 ac_check_lib_save_LIBS=$LIBS
6045 LIBS="-lintl -liconv $LIBS"
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6053 /* Override any GCC internal prototype to avoid an error.
6054 Use char because int might match the return type of a GCC
6055 builtin and then its argument prototype would still apply. */
6068 rm -f conftest.$ac_objext conftest$ac_exeext
6069 if { (ac_try="$ac_link"
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_link") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest$ac_exeext &&
6085 $as_test_x conftest$ac_exeext; then
6086 ac_cv_lib_intl_ngettext=yes
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_cv_lib_intl_ngettext=no
6094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6095 conftest$ac_exeext conftest.$ac_ext
6096 LIBS=$ac_check_lib_save_LIBS
6098 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6099 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6100 if test $ac_cv_lib_intl_ngettext = yes; then
6101 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6102 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6103 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 ac_check_lib_save_LIBS=$LIBS
6107 LIBS="-lintl -liconv $LIBS"
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6115 /* Override any GCC internal prototype to avoid an error.
6116 Use char because int might match the return type of a GCC
6117 builtin and then its argument prototype would still apply. */
6125 return dcgettext ();
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (ac_try="$ac_link"
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_link") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest$ac_exeext &&
6147 $as_test_x conftest$ac_exeext; then
6148 ac_cv_lib_intl_dcgettext=yes
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_cv_lib_intl_dcgettext=no
6156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6157 conftest$ac_exeext conftest.$ac_ext
6158 LIBS=$ac_check_lib_save_LIBS
6160 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6161 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6162 if test $ac_cv_lib_intl_dcgettext = yes; then
6163 gt_cv_func_dgettext_libintl=yes
6164 libintl_extra_libs=-liconv
6176 # If we found libintl, then check in it for bind_textdomain_codeset();
6177 # we'll prefer libc if neither have bind_textdomain_codeset(),
6178 # and both have dgettext and ngettext
6180 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6181 glib_save_LIBS="$LIBS"
6182 LIBS="$LIBS -lintl $libintl_extra_libs"
6183 unset ac_cv_func_bind_textdomain_codeset
6185 for ac_func in bind_textdomain_codeset
6187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6201 #define $ac_func innocuous_$ac_func
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func (); below.
6205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6206 <limits.h> exists even on freestanding compilers. */
6209 # include <limits.h>
6211 # include <assert.h>
6216 /* Override any GCC internal prototype to avoid an error.
6217 Use char because int might match the return type of a GCC
6218 builtin and then its argument prototype would still apply. */
6223 /* The GNU C library defines this for functions which it implements
6224 to always fail with ENOSYS. Some functions are actually named
6225 something starting with __ and the normal name is an alias. */
6226 #if defined __stub_$ac_func || defined __stub___$ac_func
6238 rm -f conftest.$ac_objext conftest$ac_exeext
6239 if { (ac_try="$ac_link"
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_link") 2>conftest.er1
6247 grep -v '^ *+' conftest.er1 >conftest.err
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && {
6252 test -z "$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest$ac_exeext &&
6255 $as_test_x conftest$ac_exeext; then
6256 eval "$as_ac_var=yes"
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 eval "$as_ac_var=no"
6264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6265 conftest$ac_exeext conftest.$ac_ext
6267 ac_res=`eval echo '${'$as_ac_var'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270 if test `eval echo '${'$as_ac_var'}'` = yes; then
6271 cat >>confdefs.h <<_ACEOF
6272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6278 LIBS="$glib_save_LIBS"
6280 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6281 gt_cv_func_dgettext_libc=no
6283 if test "$gt_cv_func_dgettext_libc" = "yes" \
6284 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6285 gt_cv_func_dgettext_libintl=no
6291 if test "$gt_cv_func_dgettext_libc" = "yes" \
6292 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6293 gt_cv_have_gettext=yes
6296 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6297 INTLLIBS="-lintl $libintl_extra_libs"
6300 if test "$gt_cv_have_gettext" = "yes"; then
6302 cat >>confdefs.h <<\_ACEOF
6303 #define HAVE_GETTEXT 1
6306 # Extract the first word of "msgfmt", so it can be a program name with args.
6307 set dummy msgfmt; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_MSGFMT+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6319 for ac_dir in $PATH; do
6320 test -z "$ac_dir" && ac_dir=.
6321 if test -f $ac_dir/$ac_word; then
6322 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6323 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6329 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6333 MSGFMT="$ac_cv_path_MSGFMT"
6334 if test "$MSGFMT" != "no"; then
6335 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6336 echo "${ECHO_T}$MSGFMT" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6341 if test "$MSGFMT" != "no"; then
6342 glib_save_LIBS="$LIBS"
6343 LIBS="$LIBS $INTLLIBS"
6345 for ac_func in dcgettext
6347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6361 #define $ac_func innocuous_$ac_func
6363 /* System header to define __stub macros and hopefully few prototypes,
6364 which can conflict with char $ac_func (); below.
6365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6366 <limits.h> exists even on freestanding compilers. */
6369 # include <limits.h>
6371 # include <assert.h>
6376 /* Override any GCC internal prototype to avoid an error.
6377 Use char because int might match the return type of a GCC
6378 builtin and then its argument prototype would still apply. */
6383 /* The GNU C library defines this for functions which it implements
6384 to always fail with ENOSYS. Some functions are actually named
6385 something starting with __ and the normal name is an alias. */
6386 #if defined __stub_$ac_func || defined __stub___$ac_func
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (ac_try="$ac_link"
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_link") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest$ac_exeext &&
6415 $as_test_x conftest$ac_exeext; then
6416 eval "$as_ac_var=yes"
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 eval "$as_ac_var=no"
6424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6425 conftest$ac_exeext conftest.$ac_ext
6427 ac_res=`eval echo '${'$as_ac_var'}'`
6428 { echo "$as_me:$LINENO: result: $ac_res" >&5
6429 echo "${ECHO_T}$ac_res" >&6; }
6430 if test `eval echo '${'$as_ac_var'}'` = yes; then
6431 cat >>confdefs.h <<_ACEOF
6432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6438 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6439 set dummy gmsgfmt; ac_word=$2
6440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6469 GMSGFMT=$ac_cv_path_GMSGFMT
6470 if test -n "$GMSGFMT"; then
6471 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6472 echo "${ECHO_T}$GMSGFMT" >&6; }
6474 { echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6; }
6479 # Extract the first word of "xgettext", so it can be a program name with args.
6480 set dummy xgettext; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6492 for ac_dir in $PATH; do
6493 test -z "$ac_dir" && ac_dir=.
6494 if test -f $ac_dir/$ac_word; then
6495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6496 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6506 XGETTEXT="$ac_cv_path_XGETTEXT"
6507 if test "$XGETTEXT" != ":"; then
6508 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6509 echo "${ECHO_T}$XGETTEXT" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6525 extern int _nl_msg_cat_cntr;
6526 return _nl_msg_cat_cntr
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (ac_try="$ac_link"
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_link") 2>conftest.er1
6540 grep -v '^ *+' conftest.er1 >conftest.err
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest$ac_exeext &&
6548 $as_test_x conftest$ac_exeext; then
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6557 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6558 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6559 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6570 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6572 /* System header to define __stub macros and hopefully few prototypes,
6573 which can conflict with char bind_textdomain_codeset (); below.
6574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6575 <limits.h> exists even on freestanding compilers. */
6578 # include <limits.h>
6580 # include <assert.h>
6583 #undef bind_textdomain_codeset
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6591 char bind_textdomain_codeset ();
6592 /* The GNU C library defines this for functions which it implements
6593 to always fail with ENOSYS. Some functions are actually named
6594 something starting with __ and the normal name is an alias. */
6595 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6602 return bind_textdomain_codeset ();
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest$ac_exeext &&
6624 $as_test_x conftest$ac_exeext; then
6625 ac_cv_func_bind_textdomain_codeset=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6630 ac_cv_func_bind_textdomain_codeset=no
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634 conftest$ac_exeext conftest.$ac_ext
6636 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6637 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
6638 if test $ac_cv_func_bind_textdomain_codeset = yes; then
6654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6655 conftest$ac_exeext conftest.$ac_ext
6656 LIBS="$glib_save_LIBS"
6659 gt_cv_have_gettext=no
6667 if test "$gt_cv_have_gettext" = "yes" ; then
6669 cat >>confdefs.h <<\_ACEOF
6670 #define ENABLE_NLS 1
6675 if test "$XGETTEXT" != ":"; then
6676 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6679 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6680 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6685 # We need to process the po/ directory.
6688 ac_config_commands="$ac_config_commands default-1"
6691 for lang in $ALL_LINGUAS; do
6692 GMOFILES="$GMOFILES $lang.gmo"
6693 POFILES="$POFILES $lang.po"
6708 if test "$gt_cv_have_gettext" = "yes"; then
6709 if test "x$ALL_LINGUAS" = "x"; then
6712 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6713 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
6715 for presentlang in $ALL_LINGUAS; do
6717 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
6718 desiredlanguages="$LINGUAS"
6720 desiredlanguages="$ALL_LINGUAS"
6722 for desiredlang in $desiredlanguages; do
6723 # Use the presentlang catalog if desiredlang is
6724 # a. equal to presentlang, or
6725 # b. a variant of presentlang (because in this case,
6726 # presentlang can be used as a fallback for messages
6727 # which are not translated in the desiredlang catalog).
6728 case "$desiredlang" in
6729 "$presentlang"*) useit=yes;;
6732 if test $useit = yes; then
6733 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
6736 LINGUAS=$NEW_LINGUAS
6737 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
6738 echo "${ECHO_T}$LINGUAS" >&6; }
6741 if test -n "$LINGUAS"; then
6742 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6747 if test -n "$ac_aux_dir"; then
6748 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6750 if test -z "$MKINSTALLDIRS"; then
6751 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6755 test -d po || mkdir po
6756 if test "x$srcdir" != "x."; then
6757 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6758 posrcprefix="$srcdir/"
6760 posrcprefix="../$srcdir/"
6766 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6767 < $srcdir/po/POTFILES.in > po/POTFILES