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
747 ac_precious_vars='build_alias
765 # Initialize some variables set by options.
767 ac_init_version=false
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name=s,x,x,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
869 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
870 { (exit 1); exit 1; }; }
871 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
872 eval enable_$ac_feature=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_$ac_feature=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
906 -help | --help | --hel | --he | -h)
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 # Obsolete; use --without-fp.
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1055 -site=* | --site=* | --sit=*)
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1082 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid package name: $ac_package" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1088 eval with_$ac_package=\$ac_optarg ;;
1090 -without-* | --without-*)
1091 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_$ac_package=no ;;
1100 # Obsolete; use --with-x.
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108 x_includes=$ac_optarg ;;
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115 x_libraries=$ac_optarg ;;
1117 -*) { echo "$as_me: error: unrecognized option: $ac_option
1118 Try \`$0 --help' for more information." >&2
1119 { (exit 1); exit 1; }; }
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1127 { (exit 1); exit 1; }; }
1128 eval $ac_envvar=\$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142 if test -n "$ac_prev"; then
1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144 { echo "$as_me: error: missing argument to $ac_option" >&2
1145 { (exit 1); exit 1; }; }
1148 # Be sure to have absolute directory names.
1149 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir
1154 eval ac_val=\$$ac_var
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1160 { (exit 1); exit 1; }; }
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184 test "$silent" = yes && exec 6>/dev/null
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 { echo "$as_me: error: Working directory cannot be determined" >&2
1191 { (exit 1); exit 1; }; }
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 { echo "$as_me: error: pwd does not report name of working directory" >&2
1194 { (exit 1); exit 1; }; }
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$0" ||
1202 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$0" : 'X\(//\)[^/]' \| \
1204 X"$0" : 'X\(//\)$' \| \
1205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1234 { (exit 1); exit 1; }; }
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1239 { (exit 1); exit 1; }; }
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259 # Report the --help message.
1261 if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1265 \`configure' configures this package to adapt to many kinds of systems.
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE. See below for descriptions of some of the useful variables.
1272 Defaults for the options are specified in brackets.
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285 Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1296 For better control, use the options below.
1298 Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
1323 --program-prefix=PREFIX prepend PREFIX to installed program names
1324 --program-suffix=SUFFIX append SUFFIX to installed program names
1325 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1328 --build=BUILD configure for building on BUILD [guessed]
1329 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1333 if test -n "$ac_init_help"; then
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-maintainer-mode enable make rules and dependencies not useful
1341 (and sometimes confusing) to the casual installer
1342 --disable-dependency-tracking Speeds up one-time builds
1343 --enable-dependency-tracking Do not reject slow dependency extractors
1344 --enable-trace Enable generation of IO traces (warning: hurts
1346 --enable-watch Enable watchpoints in the debugger (warning: hurts
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1358 PKG_CONFIG path to pkg-config utility
1360 C compiler flags for LIBPNG, overriding pkg-config
1361 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1362 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1363 GTK_LIBS linker flags for GTK, overriding pkg-config
1365 C compiler flags for ESOUND, overriding pkg-config
1366 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1368 Use these variables to override the choices made by `configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" || continue
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1398 .) # We are building in place.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1432 generated by GNU Autoconf 2.61
1434 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1441 cat >config.log <<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by $as_me, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir=.
1482 echo "PATH: $as_dir"
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1506 ac_must_keep_next=false
1512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514 | -silent | --silent | --silen | --sile | --sil)
1517 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true; then
1524 ac_must_keep_next=false # Got value, back to normal.
1527 *=* | --config-cache | -C | -disable-* | --disable-* \
1528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530 | -with-* | --with-* | -without-* | --without-* | --x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 -* ) ac_must_keep_next=true ;;
1538 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1603 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 echo "$ac_var='\''$ac_val'\''"
1609 if test -n "$ac_subst_files"; then
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1616 for ac_var in $ac_subst_files
1618 eval ac_val=\$$ac_var
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 echo "$ac_var='\''$ac_val'\''"
1627 if test -s confdefs.h; then
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x "$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE; then
1685 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1687 set x "$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709 *) . "./$cache_file";;
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1718 # Check that the precious variables saved in the cache have kept the same
1720 ac_cache_corrupted=false
1721 for ac_var in $ac_precious_vars; do
1722 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1723 eval ac_new_set=\$ac_env_${ac_var}_set
1724 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1725 eval ac_new_val=\$ac_env_${ac_var}_value
1726 case $ac_old_set,$ac_new_set in
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1729 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1737 if test "x$ac_old_val" != "x$ac_new_val"; then
1738 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1739 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1740 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1741 echo "$as_me: former value: $ac_old_val" >&2;}
1742 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1743 echo "$as_me: current value: $ac_new_val" >&2;}
1744 ac_cache_corrupted=:
1747 # Pass precious variables to config.status.
1748 if test "$ac_new_set" = set; then
1750 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 *) ac_arg=$ac_var=$ac_new_val ;;
1753 case " $ac_configure_args " in
1754 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1755 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1759 if $ac_cache_corrupted; then
1760 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1761 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1762 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1763 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1764 { (exit 1); exit 1; }; }
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 am__api_version="1.7"
1792 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1793 if test -f "$ac_dir/install-sh"; then
1795 ac_install_sh="$ac_aux_dir/install-sh -c"
1797 elif test -f "$ac_dir/install.sh"; then
1799 ac_install_sh="$ac_aux_dir/install.sh -c"
1801 elif test -f "$ac_dir/shtool"; then
1803 ac_install_sh="$ac_aux_dir/shtool install -c"
1807 if test -z "$ac_aux_dir"; then
1808 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1809 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1810 { (exit 1); exit 1; }; }
1813 # These three variables are undocumented and unsupported,
1814 # and are intended to be withdrawn in a future Autoconf release.
1815 # They can cause serious problems if a builder's source tree is in a directory
1816 # whose full name contains unusual characters.
1817 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1818 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1819 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1822 # Find a good install program. We prefer a C program (faster),
1823 # so one script is as good as another. But avoid the broken or
1824 # incompatible versions:
1825 # SysV /etc/install, /usr/sbin/install
1826 # SunOS /usr/etc/install
1827 # IRIX /sbin/install
1829 # AmigaOS /C/install, which installs bootblocks on floppy discs
1830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1833 # OS/2's system install, which has a completely different semantic
1834 # ./install, which can be erroneously created by make from ./install.sh.
1835 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1836 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1837 if test -z "$INSTALL"; then
1838 if test "${ac_cv_path_install+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 # Account for people who put trailing slashes in PATH elements.
1848 ./ | .// | /cC/* | \
1849 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1850 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1853 # OSF1 and SCO ODT 3.0 have their own names for install.
1854 # Don't use installbsd from OSF since it installs stuff as root
1856 for ac_prog in ginstall scoinst install; do
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1859 if test $ac_prog = install &&
1860 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1861 # AIX install. It has an incompatible calling convention.
1863 elif test $ac_prog = install &&
1864 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1865 # program-specific install script used by HP pwplus--don't use.
1868 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1881 if test "${ac_cv_path_install+set}" = set; then
1882 INSTALL=$ac_cv_path_install
1884 # As a last resort, use the slow shell script. Don't cache a
1885 # value for INSTALL within a source directory, because that will
1886 # break other packages using the cache if that directory is
1887 # removed, or if the value is a relative name.
1888 INSTALL=$ac_install_sh
1891 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1892 echo "${ECHO_T}$INSTALL" >&6; }
1894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1895 # It thinks the first close brace ends the variable substitution.
1896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1902 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1903 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1906 echo timestamp > conftest.file
1907 # Do `set' in a subshell so we don't clobber the current shell's
1908 # arguments. Must try -L first in case configure is actually a
1909 # symlink; some systems play weird games with the mod time of symlinks
1910 # (eg FreeBSD returns the mod time of the symlink's containing
1913 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1914 if test "$*" = "X"; then
1916 set X `ls -t $srcdir/configure conftest.file`
1919 if test "$*" != "X $srcdir/configure conftest.file" \
1920 && test "$*" != "X conftest.file $srcdir/configure"; then
1922 # If neither matched, then we have a broken ls. This can happen
1923 # if, for instance, CONFIG_SHELL is bash and it inherits a
1924 # broken ls alias from the environment. This has actually
1925 # happened. Such a system could not be considered "sane".
1926 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1927 alias in your environment" >&5
1928 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1929 alias in your environment" >&2;}
1930 { (exit 1); exit 1; }; }
1933 test "$2" = conftest.file
1939 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1940 Check your system clock" >&5
1941 echo "$as_me: error: newly created file is older than distributed files!
1942 Check your system clock" >&2;}
1943 { (exit 1); exit 1; }; }
1945 { echo "$as_me:$LINENO: result: yes" >&5
1946 echo "${ECHO_T}yes" >&6; }
1947 test "$program_prefix" != NONE &&
1948 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1949 # Use a double $ so make ignores it.
1950 test "$program_suffix" != NONE &&
1951 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1952 # Double any \ or $. echo might interpret backslashes.
1953 # By default was `s,x,x', remove it if useless.
1954 cat <<\_ACEOF >conftest.sed
1955 s/[\\$]/&&/g;s/;s,x,x,$//
1957 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1961 # expand $ac_aux_dir to an absolute path
1962 am_aux_dir=`cd $ac_aux_dir && pwd`
1964 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1965 # Use eval to expand $SHELL
1966 if eval "$MISSING --run true"; then
1967 am_missing_run="$MISSING --run "
1970 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1971 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1974 for ac_prog in gawk mawk nawk awk
1976 # Extract the first word of "$ac_prog", so it can be a program name with args.
1977 set dummy $ac_prog; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_AWK+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$AWK"; then
1984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_AWK="$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test -n "$AWK"; then
2005 { echo "$as_me:$LINENO: result: $AWK" >&5
2006 echo "${ECHO_T}$AWK" >&6; }
2008 { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2013 test -n "$AWK" && break
2016 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2017 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2018 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2019 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 cat >conftest.make <<\_ACEOF
2025 @echo '@@@%%%=$(MAKE)=@@@%%%'
2027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2028 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2030 eval ac_cv_prog_make_${ac_make}_set=yes;;
2032 eval ac_cv_prog_make_${ac_make}_set=no;;
2036 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2037 { echo "$as_me:$LINENO: result: yes" >&5
2038 echo "${ECHO_T}yes" >&6; }
2041 { echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6; }
2043 SET_MAKE="MAKE=${MAKE-make}"
2046 rm -rf .tst 2>/dev/null
2047 mkdir .tst 2>/dev/null
2048 if test -d .tst; then
2053 rmdir .tst 2>/dev/null
2055 # test to see if srcdir already configured
2056 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2057 test -f $srcdir/config.status; then
2058 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2059 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # test whether we have cygpath
2064 if test -z "$CYGPATH_W"; then
2065 if (cygpath --version) >/dev/null 2>/dev/null; then
2066 CYGPATH_W='cygpath -w'
2073 # Define the identity of the package.
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE "$PACKAGE"
2083 cat >>confdefs.h <<_ACEOF
2084 #define VERSION "$VERSION"
2087 # Some tools Automake needs.
2089 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2092 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2095 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2098 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2101 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2104 AMTAR=${AMTAR-"${am_missing_run}tar"}
2106 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2108 # Installed binaries are usually stripped using `strip' when the user
2109 # run `make install-strip'. However `strip' might not be the right
2110 # tool to use in cross-compilation environments, therefore Automake
2111 # will honor the `STRIP' environment variable to overrule this program.
2112 if test "$cross_compiling" != no; then
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}strip; ac_word=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_STRIP+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$STRIP"; then
2122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 STRIP=$ac_cv_prog_STRIP
2142 if test -n "$STRIP"; then
2143 { echo "$as_me:$LINENO: result: $STRIP" >&5
2144 echo "${ECHO_T}$STRIP" >&6; }
2146 { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2152 if test -z "$ac_cv_prog_STRIP"; then
2154 # Extract the first word of "strip", so it can be a program name with args.
2155 set dummy strip; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_STRIP"; then
2162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_STRIP="strip"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2182 if test -n "$ac_ct_STRIP"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2184 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2190 if test "x$ac_ct_STRIP" = x; then
2193 case $cross_compiling:$ac_tool_warned in
2195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&5
2198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2201 ac_tool_warned=yes ;;
2206 STRIP="$ac_cv_prog_STRIP"
2210 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2212 # We need awk for the "check" target. The system "awk" is bad on
2217 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2218 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2219 # Check whether --enable-maintainer-mode was given.
2220 if test "${enable_maintainer_mode+set}" = set; then
2221 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2223 USE_MAINTAINER_MODE=no
2226 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2227 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2230 if test $USE_MAINTAINER_MODE = yes; then
2231 MAINTAINER_MODE_TRUE=
2232 MAINTAINER_MODE_FALSE='#'
2234 MAINTAINER_MODE_TRUE='#'
2235 MAINTAINER_MODE_FALSE=
2238 MAINT=$MAINTAINER_MODE_TRUE
2241 ac_config_headers="$ac_config_headers config.h"
2244 DEPDIR="${am__leading_dot}deps"
2246 ac_config_commands="$ac_config_commands depfiles"
2249 am_make=${MAKE-make}
2250 cat > confinc << 'END'
2255 # If we don't find an include directive, just comment out the code.
2256 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2257 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2261 # First try GNU make style include.
2262 echo "include confinc" > confmf
2263 # We grep out `Entering directory' and `Leaving directory'
2264 # messages which can occur if `w' ends up in MAKEFLAGS.
2265 # In particular we don't look at `^make:' because GNU make might
2266 # be invoked under some other name (usually "gmake"), in which
2267 # case it prints its new name instead of `make'.
2268 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2273 # Now try BSD make style include.
2274 if test "$am__include" = "#"; then
2275 echo '.include "confinc"' > confmf
2276 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2277 am__include=.include
2284 { echo "$as_me:$LINENO: result: $_am_result" >&5
2285 echo "${ECHO_T}$_am_result" >&6; }
2286 rm -f confinc confmf
2288 # Check whether --enable-dependency-tracking was given.
2289 if test "${enable_dependency_tracking+set}" = set; then
2290 enableval=$enable_dependency_tracking;
2293 if test "x$enable_dependency_tracking" != xno; then
2294 am_depcomp="$ac_aux_dir/depcomp"
2299 if test "x$enable_dependency_tracking" != xno; then
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 if test -n "$CC"; then
2344 { echo "$as_me:$LINENO: result: $CC" >&5
2345 echo "${ECHO_T}$CC" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2353 if test -z "$ac_cv_prog_CC"; then
2355 # Extract the first word of "gcc", so it can be a program name with args.
2356 set dummy gcc; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_CC="gcc"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2383 if test -n "$ac_ct_CC"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2385 echo "${ECHO_T}$ac_ct_CC" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2391 if test "x$ac_ct_CC" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}cc; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}cc"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 if test -n "$CC"; then
2441 { echo "$as_me:$LINENO: result: $CC" >&5
2442 echo "${ECHO_T}$CC" >&6; }
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2451 if test -z "$CC"; then
2452 # Extract the first word of "cc", so it can be a program name with args.
2453 set dummy cc; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 if test -n "$CC"; then
2460 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2471 ac_prog_rejected=yes
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 if test $ac_prog_rejected = yes; then
2483 # We found a bogon in the path, so make sure we never use it.
2484 set dummy $ac_cv_prog_CC
2486 if test $# != 0; then
2487 # We chose a different compiler from the bogus one.
2488 # However, it has the same basename, so the bogon will be chosen
2489 # first if we set CC to just the basename; use the full file name.
2491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2497 if test -n "$CC"; then
2498 { echo "$as_me:$LINENO: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6; }
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2507 if test -z "$CC"; then
2508 if test -n "$ac_tool_prefix"; then
2509 for ac_prog in cl.exe
2511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2548 test -n "$CC" && break
2551 if test -z "$CC"; then
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_ac_ct_CC="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2585 echo "${ECHO_T}$ac_ct_CC" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2592 test -n "$ac_ct_CC" && break
2595 if test "x$ac_ct_CC" = x; then
2598 case $cross_compiling:$ac_tool_warned in
2600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet. If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2615 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: no acceptable C compiler found in \$PATH
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2621 # Provide some information about the compiler.
2622 echo "$as_me:$LINENO: checking for C compiler version" >&5
2623 ac_compiler=`set X $ac_compile; echo $2`
2624 { (ac_try="$ac_compiler --version >&5"
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_compiler --version >&5") 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }
2634 { (ac_try="$ac_compiler -v >&5"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compiler -v >&5") 2>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }
2644 { (ac_try="$ac_compiler -V >&5"
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler -V >&5") 2>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 ac_clean_files_save=$ac_clean_files
2671 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2672 # Try to create an executable without -o first, disregard a.out.
2673 # It will help us diagnose broken compilers, and finding out an intuition
2675 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2676 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2677 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2679 # List of possible output files, starting from the most likely.
2680 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2681 # only as a last resort. b.out is created by i960 compilers.
2682 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2684 # The IRIX 6 linker writes into existing files which may not be
2685 # executable, retaining their permissions. Remove them first so a
2686 # subsequent execution test works.
2688 for ac_file in $ac_files
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2692 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2697 if { (ac_try="$ac_link_default"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_link_default") 2>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; then
2707 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2708 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2709 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2710 # so that the user can short-circuit this test for compilers unknown to
2712 for ac_file in $ac_files ''
2714 test -f "$ac_file" || continue
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2719 # We found the default executable, but exeext='' is most
2723 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2725 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727 # We set ac_cv_exeext here because the later test for it is not
2728 # safe: cross compilers may not add the suffix if given an `-o'
2729 # argument, so we may need to know it at that point already.
2730 # Even if this section looks crufty: it has the advantage of
2737 test "$ac_cv_exeext" = no && ac_cv_exeext=
2743 { echo "$as_me:$LINENO: result: $ac_file" >&5
2744 echo "${ECHO_T}$ac_file" >&6; }
2745 if test -z "$ac_file"; then
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: C compiler cannot create executables
2752 See \`config.log' for more details." >&2;}
2753 { (exit 77); exit 77; }; }
2756 ac_exeext=$ac_cv_exeext
2758 # Check that the compiler produces executables we can run. If not, either
2759 # the compiler is broken, or we cross compile.
2760 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2761 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2762 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2763 # If not cross compiling, check that we can run a simple program.
2764 if test "$cross_compiling" != yes; then
2765 if { ac_try='./$ac_file'
2766 { (case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_try") 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; }; then
2777 if test "$cross_compiling" = maybe; then
2780 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2781 If you meant to cross compile, use \`--host'.
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: cannot run C compiled programs.
2784 If you meant to cross compile, use \`--host'.
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2790 { echo "$as_me:$LINENO: result: yes" >&5
2791 echo "${ECHO_T}yes" >&6; }
2793 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2794 ac_clean_files=$ac_clean_files_save
2795 # Check that the compiler produces executables we can run. If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2798 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2799 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2800 echo "${ECHO_T}$cross_compiling" >&6; }
2802 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2803 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2804 if { (ac_try="$ac_link"
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2815 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2816 # work properly (i.e., refer to `conftest.exe'), while it won't with
2818 for ac_file in conftest.exe conftest conftest.*; do
2819 test -f "$ac_file" || continue
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2835 rm -f conftest$ac_cv_exeext
2836 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2839 rm -f conftest.$ac_ext
2840 EXEEXT=$ac_cv_exeext
2842 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2844 if test "${ac_cv_objext+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2862 rm -f conftest.o conftest.obj
2863 if { (ac_try="$ac_compile"
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_compile") 2>&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; then
2873 for ac_file in conftest.o conftest.obj conftest.*; do
2874 test -f "$ac_file" || continue;
2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2886 See \`config.log' for more details." >&5
2887 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2894 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2895 echo "${ECHO_T}$ac_cv_objext" >&6; }
2896 OBJEXT=$ac_cv_objext
2898 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2900 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2952 GCC=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CFLAGS=${CFLAGS+set}
2954 ac_save_CFLAGS=$CFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2956 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cc_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 ac_save_c_werror_flag=$ac_c_werror_flag
2961 ac_c_werror_flag=yes
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 ac_c_werror_flag=$ac_save_c_werror_flag
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_c_werror_flag=$ac_save_c_werror_flag
3090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3092 if test "$ac_test_CFLAGS" = set; then
3093 CFLAGS=$ac_save_CFLAGS
3094 elif test $ac_cv_prog_cc_g = yes; then
3095 if test "$GCC" = yes; then
3101 if test "$GCC" = yes; then
3107 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3108 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_cc_c89+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 ac_cv_prog_cc_c89=no
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 #include <sys/types.h>
3123 #include <sys/stat.h>
3124 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3125 struct buf { int x; };
3126 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3127 static char *e (p, i)
3133 static char *f (char * (*g) (char **, int), char **p, ...)
3138 s = g (p, va_arg (v,int));
3143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3144 function prototypes and stuff, but not '\xHH' hex character constants.
3145 These don't provoke an error unfortunately, instead are silently treated
3146 as 'x'. The following induces an error, until -std is added to get
3147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3148 array size at least. It's necessary to write '\x00'==0 to get something
3149 that's true only with -std. */
3150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3153 inside strings and character constants. */
3155 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3157 int test (int i, double x);
3158 struct s1 {int (*f) (int a);};
3159 struct s2 {int (*f) (double a);};
3160 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3171 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3172 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3174 CC="$ac_save_CC $ac_arg"
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_cv_prog_cc_c89=$ac_arg
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3200 rm -f core conftest.err conftest.$ac_objext
3201 test "x$ac_cv_prog_cc_c89" != "xno" && break
3203 rm -f conftest.$ac_ext
3208 case "x$ac_cv_prog_cc_c89" in
3210 { echo "$as_me:$LINENO: result: none needed" >&5
3211 echo "${ECHO_T}none needed" >&6; } ;;
3213 { echo "$as_me:$LINENO: result: unsupported" >&5
3214 echo "${ECHO_T}unsupported" >&6; } ;;
3216 CC="$CC $ac_cv_prog_cc_c89"
3217 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3218 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 depcc="$CC" am_compiler_list=
3230 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3231 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3232 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3236 # We make a subdir and do the tests there. Otherwise we can end up
3237 # making bogus files that we don't know about and never remove. For
3238 # instance it was reported that on HP-UX the gcc test will end up
3239 # making a dummy file named `D' -- because `-MD' means `put the output
3242 # Copy depcomp to subdir because otherwise we won't find it if we're
3243 # using a relative directory.
3244 cp "$am_depcomp" conftest.dir
3246 # We will build objects and dependencies in a subdirectory because
3247 # it helps to detect inapplicable dependency modes. For instance
3248 # both Tru64's cc and ICC support -MD to output dependencies as a
3249 # side effect of compilation, but ICC will put the dependencies in
3250 # the current directory while Tru64 will put them in the object
3254 am_cv_CC_dependencies_compiler_type=none
3255 if test "$am_compiler_list" = ""; then
3256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3258 for depmode in $am_compiler_list; do
3259 # Setup a source with many dependencies, because some compilers
3260 # like to wrap large dependency lists on column 80 (with \), and
3261 # we should not choose a depcomp mode which is confused by this.
3263 # We need to recreate these files for each test, as the compiler may
3264 # overwrite some of them when testing with obscure command lines.
3265 # This happens at least with the AIX C compiler.
3267 for i in 1 2 3 4 5 6; do
3268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3275 # after this tag, mechanisms are not by side-effect, so they'll
3276 # only be used when explicitly requested
3277 if test "x$enable_dependency_tracking" = xyes; then
3285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3286 # mode. It turns out that the SunPro C++ compiler does not properly
3287 # handle `-M -o', and we need to detect this.
3288 if depmode=$depmode \
3289 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3291 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3292 >/dev/null 2>conftest.err &&
3293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3294 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3296 # icc doesn't choke on unknown options, it will just issue warnings
3297 # (even with -Werror). So we grep stderr for any message
3298 # that says an option was ignored.
3299 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3300 am_cv_CC_dependencies_compiler_type=$depmode
3309 am_cv_CC_dependencies_compiler_type=none
3313 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3314 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3315 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3320 test "x$enable_dependency_tracking" != xno \
3321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3323 am__fastdepCC_FALSE='#'
3325 am__fastdepCC_TRUE='#'
3326 am__fastdepCC_FALSE=
3331 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3332 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3333 if test "${ac_cv_search_strerror+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 ac_func_search_save_LIBS=$LIBS
3337 cat >conftest.$ac_ext <<_ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3344 /* Override any GCC internal prototype to avoid an error.
3345 Use char because int might match the return type of a GCC
3346 builtin and then its argument prototype would still apply. */
3359 for ac_lib in '' cposix; do
3360 if test -z "$ac_lib"; then
3361 ac_res="none required"
3364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (ac_try="$ac_link"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_link") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && {
3380 test -z "$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 } && test -s conftest$ac_exeext &&
3383 $as_test_x conftest$ac_exeext; then
3384 ac_cv_search_strerror=$ac_res
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3394 if test "${ac_cv_search_strerror+set}" = set; then
3398 if test "${ac_cv_search_strerror+set}" = set; then
3401 ac_cv_search_strerror=no
3404 LIBS=$ac_func_search_save_LIBS
3406 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3407 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3408 ac_res=$ac_cv_search_strerror
3409 if test "$ac_res" != no; then
3410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { echo "$as_me:$LINENO: result: $CC" >&5
3450 echo "${ECHO_T}$CC" >&6; }
3452 { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3458 if test -z "$ac_cv_prog_CC"; then
3460 # Extract the first word of "gcc", so it can be a program name with args.
3461 set dummy gcc; ac_word=$2
3462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477 ac_cv_prog_ac_ct_CC="gcc"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3490 echo "${ECHO_T}$ac_ct_CC" >&6; }
3492 { echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6; }
3496 if test "x$ac_ct_CC" = x; then
3499 case $cross_compiling:$ac_tool_warned in
3501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3502 whose name does not start with the host triplet. If you think this
3503 configuration is useful to you, please write to autoconf@gnu.org." >&5
3504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3505 whose name does not start with the host triplet. If you think this
3506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3507 ac_tool_warned=yes ;;
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}cc; ac_word=$2
3519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3521 if test "${ac_cv_prog_CC+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534 ac_cv_prog_CC="${ac_tool_prefix}cc"
3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 if test -n "$CC"; then
3546 { echo "$as_me:$LINENO: result: $CC" >&5
3547 echo "${ECHO_T}$CC" >&6; }
3549 { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3556 if test -z "$CC"; then
3557 # Extract the first word of "cc", so it can be a program name with args.
3558 set dummy cc; ac_word=$2
3559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_CC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3576 ac_prog_rejected=yes
3580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test $ac_prog_rejected = yes; then
3588 # We found a bogon in the path, so make sure we never use it.
3589 set dummy $ac_cv_prog_CC
3591 if test $# != 0; then
3592 # We chose a different compiler from the bogus one.
3593 # However, it has the same basename, so the bogon will be chosen
3594 # first if we set CC to just the basename; use the full file name.
3596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3602 if test -n "$CC"; then
3603 { echo "$as_me:$LINENO: result: $CC" >&5
3604 echo "${ECHO_T}$CC" >&6; }
3606 { echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6; }
3612 if test -z "$CC"; then
3613 if test -n "$ac_tool_prefix"; then
3614 for ac_prog in cl.exe
3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 if test -n "$CC"; then
3645 { echo "$as_me:$LINENO: result: $CC" >&5
3646 echo "${ECHO_T}$CC" >&6; }
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3653 test -n "$CC" && break
3656 if test -z "$CC"; then
3658 for ac_prog in cl.exe
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_ac_ct_CC="$ac_prog"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3690 echo "${ECHO_T}$ac_ct_CC" >&6; }
3692 { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3697 test -n "$ac_ct_CC" && break
3700 if test "x$ac_ct_CC" = x; then
3703 case $cross_compiling:$ac_tool_warned in
3705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: no acceptable C compiler found in \$PATH
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3726 # Provide some information about the compiler.
3727 echo "$as_me:$LINENO: checking for C compiler version" >&5
3728 ac_compiler=`set X $ac_compile; echo $2`
3729 { (ac_try="$ac_compiler --version >&5"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_compiler --version >&5") 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }
3739 { (ac_try="$ac_compiler -v >&5"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_compiler -v >&5") 2>&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }
3749 { (ac_try="$ac_compiler -V >&5"
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_compiler -V >&5") 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3818 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 ac_save_c_werror_flag=$ac_c_werror_flag
3823 ac_c_werror_flag=yes
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3963 if test "$GCC" = yes; then
3969 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3970 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 ac_cv_prog_cc_c89=no
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3995 static char *f (char * (*g) (char **, int), char **p, ...)
4000 s = g (p, va_arg (v,int));
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4036 CC="$ac_save_CC $ac_arg"
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv_prog_cc_c89=$ac_arg
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4065 rm -f conftest.$ac_ext
4070 case "x$ac_cv_prog_cc_c89" in
4072 { echo "$as_me:$LINENO: result: none needed" >&5
4073 echo "${ECHO_T}none needed" >&6; } ;;
4075 { echo "$as_me:$LINENO: result: unsupported" >&5
4076 echo "${ECHO_T}unsupported" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 depcc="$CC" am_compiler_list=
4092 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4098 # We make a subdir and do the tests there. Otherwise we can end up
4099 # making bogus files that we don't know about and never remove. For
4100 # instance it was reported that on HP-UX the gcc test will end up
4101 # making a dummy file named `D' -- because `-MD' means `put the output
4104 # Copy depcomp to subdir because otherwise we won't find it if we're
4105 # using a relative directory.
4106 cp "$am_depcomp" conftest.dir
4108 # We will build objects and dependencies in a subdirectory because
4109 # it helps to detect inapplicable dependency modes. For instance
4110 # both Tru64's cc and ICC support -MD to output dependencies as a
4111 # side effect of compilation, but ICC will put the dependencies in
4112 # the current directory while Tru64 will put them in the object
4116 am_cv_CC_dependencies_compiler_type=none
4117 if test "$am_compiler_list" = ""; then
4118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4137 # after this tag, mechanisms are not by side-effect, so they'll
4138 # only be used when explicitly requested
4139 if test "x$enable_dependency_tracking" = xyes; then
4147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4148 # mode. It turns out that the SunPro C++ compiler does not properly
4149 # handle `-M -o', and we need to detect this.
4150 if depmode=$depmode \
4151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4154 >/dev/null 2>conftest.err &&
4155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4156 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4158 # icc doesn't choke on unknown options, it will just issue warnings
4159 # (even with -Werror). So we grep stderr for any message
4160 # that says an option was ignored.
4161 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4162 am_cv_CC_dependencies_compiler_type=$depmode
4171 am_cv_CC_dependencies_compiler_type=none
4175 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4176 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4177 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4182 test "x$enable_dependency_tracking" != xno \
4183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4185 am__fastdepCC_FALSE='#'
4187 am__fastdepCC_TRUE='#'
4188 am__fastdepCC_FALSE=
4195 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4196 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4197 if test "${am_cv_prog_cc_stdc+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 am_cv_prog_cc_stdc=no
4202 # Don't try gcc -ansi; that turns off useful extensions and
4203 # breaks some systems' header files.
4204 # AIX -qlanglvl=ansi
4205 # Ultrix and OSF/1 -std1
4206 # HP-UX 10.20 and later -Ae
4207 # HP-UX older versions -Aa -D_HPUX_SOURCE
4208 # SVR4 -Xc -D__EXTENSIONS__
4209 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4211 CC="$ac_save_CC $ac_arg"
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4220 #include <sys/types.h>
4221 #include <sys/stat.h>
4222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4223 struct buf { int x; };
4224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4225 static char *e (p, i)
4231 static char *f (char * (*g) (char **, int), char **p, ...)
4236 s = g (p, va_arg (v,int));
4240 int test (int i, double x);
4241 struct s1 {int (*f) (int a);};
4242 struct s2 {int (*f) (double a);};
4243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 am_cv_prog_cc_stdc="$ac_arg"; break
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 if test -z "$am_cv_prog_cc_stdc"; then
4289 { echo "$as_me:$LINENO: result: none needed" >&5
4290 echo "${ECHO_T}none needed" >&6; }
4292 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4293 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4295 case "x$am_cv_prog_cc_stdc" in
4297 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4307 # On Suns, sometimes $CPP names a directory.
4308 if test -n "$CPP" && test -d "$CPP"; then
4311 if test -z "$CPP"; then
4312 if test "${ac_cv_prog_CPP+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 # Double quotes because CPP needs to be expanded
4316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4319 for ac_c_preproc_warn_flag in '' yes
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4334 # include <limits.h>
4336 # include <assert.h>
4340 if { (ac_try="$ac_cpp conftest.$ac_ext"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } >/dev/null && {
4353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 # Broken: fails on valid input.
4365 rm -f conftest.err conftest.$ac_ext
4367 # OK, works on sane cases. Now check whether nonexistent headers
4368 # can be detected and how.
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 #include <ac_nonexistent.h>
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev/null && {
4390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4393 # Broken: success on invalid input.
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 # Passes both tests.
4404 rm -f conftest.err conftest.$ac_ext
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then
4421 { echo "$as_me:$LINENO: result: $CPP" >&5
4422 echo "${ECHO_T}$CPP" >&6; }
4424 for ac_c_preproc_warn_flag in '' yes
4426 # Use a header file that comes with gcc, so configuring glibc
4427 # with a fresh cross-compiler works.
4428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429 # <limits.h> exists even on freestanding compilers.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4439 # include <limits.h>
4441 # include <assert.h>
4445 if { (ac_try="$ac_cpp conftest.$ac_ext"
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } >/dev/null && {
4458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 # Broken: fails on valid input.
4470 rm -f conftest.err conftest.$ac_ext
4472 # OK, works on sane cases. Now check whether nonexistent headers
4473 # can be detected and how.
4474 cat >conftest.$ac_ext <<_ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <ac_nonexistent.h>
4482 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4498 # Broken: success on invalid input.
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Passes both tests.
4509 rm -f conftest.err conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then
4517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4518 See \`config.log' for more details." >&5
4519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&2;}
4521 { (exit 1); exit 1; }; }
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4532 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_GREP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 # Extract the first word of "grep ggrep" to use in msg output
4537 if test -z "$GREP"; then
4538 set dummy grep ggrep; ac_prog_name=$2
4539 if test "${ac_cv_path_GREP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4560 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 ac_count=`expr $ac_count + 1`
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4582 $ac_path_GREP_found && break 3
4592 GREP="$ac_cv_path_GREP"
4593 if test -z "$GREP"; then
4594 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4595 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4596 { (exit 1); exit 1; }; }
4600 ac_cv_path_GREP=$GREP
4605 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4606 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4607 GREP="$ac_cv_path_GREP"
4610 { echo "$as_me:$LINENO: checking for egrep" >&5
4611 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4612 if test "${ac_cv_path_EGREP+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4615 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4616 then ac_cv_path_EGREP="$GREP -E"
4618 # Extract the first word of "egrep" to use in msg output
4619 if test -z "$EGREP"; then
4620 set dummy egrep; ac_prog_name=$2
4621 if test "${ac_cv_path_EGREP+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 ac_path_EGREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in egrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4635 # Check for GNU ac_path_EGREP and select it if it is found.
4636 # Check for GNU $ac_path_EGREP
4637 case `"$ac_path_EGREP" --version 2>&1` in
4639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4642 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 echo 'EGREP' >> "conftest.nl"
4649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 ac_count=`expr $ac_count + 1`
4652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_EGREP="$ac_path_EGREP"
4655 ac_path_EGREP_max=$ac_count
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 $ac_path_EGREP_found && break 3
4674 EGREP="$ac_cv_path_EGREP"
4675 if test -z "$EGREP"; then
4676 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4677 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4678 { (exit 1); exit 1; }; }
4682 ac_cv_path_EGREP=$EGREP
4688 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4689 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4693 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4695 if test "${ac_cv_header_stdc+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4717 rm -f conftest.$ac_objext
4718 if { (ac_try="$ac_compile"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_compile") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && {
4731 test -z "$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 } && test -s conftest.$ac_objext; then
4734 ac_cv_header_stdc=yes
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 ac_cv_header_stdc=no
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 if test $ac_cv_header_stdc = yes; then
4745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 $EGREP "memchr" >/dev/null 2>&1; then
4759 ac_cv_header_stdc=no
4765 if test $ac_cv_header_stdc = yes; then
4766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777 $EGREP "free" >/dev/null 2>&1; then
4780 ac_cv_header_stdc=no
4786 if test $ac_cv_header_stdc = yes; then
4787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4788 if test "$cross_compiling" = yes; then
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4799 #if ((' ' & 0x0FF) == 0x020)
4800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4803 # define ISLOWER(c) \
4804 (('a' <= (c) && (c) <= 'i') \
4805 || ('j' <= (c) && (c) <= 'r') \
4806 || ('s' <= (c) && (c) <= 'z'))
4807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4815 for (i = 0; i < 256; i++)
4816 if (XOR (islower (i), ISLOWER (i))
4817 || toupper (i) != TOUPPER (i))
4822 rm -f conftest$ac_exeext
4823 if { (ac_try="$ac_link"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_link") 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4833 { (case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_try") 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4844 echo "$as_me: program exited with status $ac_status" >&5
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4849 ac_cv_header_stdc=no
4851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4857 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4858 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4859 if test $ac_cv_header_stdc = yes; then
4861 cat >>confdefs.h <<\_ACEOF
4862 #define STDC_HEADERS 1
4867 # Make sure we can run config.sub.
4868 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4869 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4870 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4871 { (exit 1); exit 1; }; }
4873 { echo "$as_me:$LINENO: checking build system type" >&5
4874 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4875 if test "${ac_cv_build+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 ac_build_alias=$build_alias
4879 test "x$ac_build_alias" = x &&
4880 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4881 test "x$ac_build_alias" = x &&
4882 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4883 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4884 { (exit 1); exit 1; }; }
4885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4886 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4887 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4888 { (exit 1); exit 1; }; }
4891 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4892 echo "${ECHO_T}$ac_cv_build" >&6; }
4893 case $ac_cv_build in
4895 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4896 echo "$as_me: error: invalid value of canonical build" >&2;}
4897 { (exit 1); exit 1; }; };;
4900 ac_save_IFS=$IFS; IFS='-'
4906 # Remember, the first character of IFS is used to create $*,
4907 # except with old shells:
4910 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4913 { echo "$as_me:$LINENO: checking host system type" >&5
4914 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4915 if test "${ac_cv_host+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 if test "x$host_alias" = x; then
4919 ac_cv_host=$ac_cv_build
4921 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4922 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4923 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4924 { (exit 1); exit 1; }; }
4928 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4929 echo "${ECHO_T}$ac_cv_host" >&6; }
4932 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4933 echo "$as_me: error: invalid value of canonical host" >&2;}
4934 { (exit 1); exit 1; }; };;
4937 ac_save_IFS=$IFS; IFS='-'
4943 # Remember, the first character of IFS is used to create $*,
4944 # except with old shells:
4947 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4950 # Check whether --enable-trace was given.
4951 if test "${enable_trace+set}" = set; then
4952 enableval=$enable_trace; if test "$enableval" == "yes"; then
4954 cat >>confdefs.h <<\_ACEOF
4955 #define ENABLE_TRACE_IO 1
4961 # Check whether --enable-watch was given.
4962 if test "${enable_watch+set}" = set; then
4963 enableval=$enable_watch; if test "$enableval" == "yes"; then
4965 cat >>confdefs.h <<\_ACEOF
4966 #define ENABLE_WATCH 1
4972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4983 inttypes.h stdint.h unistd.h
4985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 $ac_includes_default
4999 #include <$ac_header>
5001 rm -f conftest.$ac_objext
5002 if { (ac_try="$ac_compile"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_compile") 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } && {
5015 test -z "$ac_c_werror_flag" ||
5016 test ! -s conftest.err
5017 } && test -s conftest.$ac_objext; then
5018 eval "$as_ac_Header=yes"
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 eval "$as_ac_Header=no"
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 ac_res=`eval echo '${'$as_ac_Header'}'`
5029 { echo "$as_me:$LINENO: result: $ac_res" >&5
5030 echo "${ECHO_T}$ac_res" >&6; }
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5042 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5043 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5044 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5048 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5050 # Is the header compilable?
5051 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
5052 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
5053 cat >conftest.$ac_ext <<_ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 $ac_includes_default
5060 #include <Carbon/Carbon.h>
5062 rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compile") 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && {
5076 test -z "$ac_c_werror_flag" ||
5077 test ! -s conftest.err
5078 } && test -s conftest.$ac_objext; then
5079 ac_header_compiler=yes
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ac_header_compiler=no
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5089 echo "${ECHO_T}$ac_header_compiler" >&6; }
5091 # Is the header present?
5092 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
5093 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #include <Carbon/Carbon.h>
5102 if { (ac_try="$ac_cpp conftest.$ac_ext"
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null && {
5115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5116 test ! -s conftest.err
5118 ac_header_preproc=yes
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 ac_header_preproc=no
5126 rm -f conftest.err conftest.$ac_ext
5127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5128 echo "${ECHO_T}$ac_header_preproc" >&6; }
5130 # So? What about this header?
5131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5133 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
5134 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5135 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
5136 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
5137 ac_header_preproc=yes
5140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
5141 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
5143 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
5145 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
5147 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
5148 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
5149 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
5151 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
5155 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5156 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5157 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
5162 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5163 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5166 if test $ac_cv_header_Carbon_Carbon_h = yes; then
5170 LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
5172 cat >>confdefs.h <<\_ACEOF
5173 #define HAVE_CARBON 1
5177 cat >>confdefs.h <<\_ACEOF
5178 #define APPLE_BUILD 1
5188 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5191 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5221 if test -n "$PKG_CONFIG"; then
5222 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5223 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5231 if test -z "$ac_cv_path_PKG_CONFIG"; then
5232 ac_pt_PKG_CONFIG=$PKG_CONFIG
5233 # Extract the first word of "pkg-config", so it can be a program name with args.
5234 set dummy pkg-config; ac_word=$2
5235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5237 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 case $ac_pt_PKG_CONFIG in
5242 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5264 if test -n "$ac_pt_PKG_CONFIG"; then
5265 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5266 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5268 { echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6; }
5272 if test "x$ac_pt_PKG_CONFIG" = x; then
5275 case $cross_compiling:$ac_tool_warned in
5277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5278 whose name does not start with the host triplet. If you think this
5279 configuration is useful to you, please write to autoconf@gnu.org." >&5
5280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5281 whose name does not start with the host triplet. If you think this
5282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5283 ac_tool_warned=yes ;;
5285 PKG_CONFIG=$ac_pt_PKG_CONFIG
5288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5292 if test -n "$PKG_CONFIG"; then
5293 _pkg_min_version=0.9.0
5294 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5295 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5297 { echo "$as_me:$LINENO: result: yes" >&5
5298 echo "${ECHO_T}yes" >&6; }
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5308 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5309 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5311 if test -n "$PKG_CONFIG"; then
5312 if test -n "$LIBPNG_CFLAGS"; then
5313 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5315 if test -n "$PKG_CONFIG" && \
5316 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5317 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; then
5321 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5329 if test -n "$PKG_CONFIG"; then
5330 if test -n "$LIBPNG_LIBS"; then
5331 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5333 if test -n "$PKG_CONFIG" && \
5334 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5335 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then
5339 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5350 if test $pkg_failed = yes; then
5352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5353 _pkg_short_errors_supported=yes
5355 _pkg_short_errors_supported=no
5357 if test $_pkg_short_errors_supported = yes; then
5358 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5360 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5362 # Put the nasty error message in config.log where it belongs
5363 echo "$LIBPNG_PKG_ERRORS" >&5
5365 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5369 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5370 installed software in a non-standard prefix.
5372 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5373 and LIBPNG_LIBS to avoid the need to call pkg-config.
5374 See the pkg-config man page for more details.
5376 echo "$as_me: error: Package requirements (libpng ) were not met:
5380 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5381 installed software in a non-standard prefix.
5383 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5384 and LIBPNG_LIBS to avoid the need to call pkg-config.
5385 See the pkg-config man page for more details.
5387 { (exit 1); exit 1; }; }
5388 elif test $pkg_failed = untried; then
5389 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5390 is in your PATH or set the PKG_CONFIG environment variable to the full
5393 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5394 and LIBPNG_LIBS to avoid the need to call pkg-config.
5395 See the pkg-config man page for more details.
5397 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5398 See \`config.log' for more details." >&5
5399 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5400 is in your PATH or set the PKG_CONFIG environment variable to the full
5403 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5404 and LIBPNG_LIBS to avoid the need to call pkg-config.
5405 See the pkg-config man page for more details.
5407 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5408 See \`config.log' for more details." >&2;}
5409 { (exit 1); exit 1; }; }
5411 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5412 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5413 { echo "$as_me:$LINENO: result: yes" >&5
5414 echo "${ECHO_T}yes" >&6; }
5419 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5420 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5421 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 ac_check_lib_save_LIBS=$LIBS
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5433 /* Override any GCC internal prototype to avoid an error.
5434 Use char because int might match the return type of a GCC
5435 builtin and then its argument prototype would still apply. */
5443 return uncompress ();
5448 rm -f conftest.$ac_objext conftest$ac_exeext
5449 if { (ac_try="$ac_link"
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_link") 2>conftest.er1
5457 grep -v '^ *+' conftest.er1 >conftest.err
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && {
5462 test -z "$ac_c_werror_flag" ||
5463 test ! -s conftest.err
5464 } && test -s conftest$ac_exeext &&
5465 $as_test_x conftest$ac_exeext; then
5466 ac_cv_lib_z_uncompress=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 ac_cv_lib_z_uncompress=no
5474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5475 conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5478 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5479 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5480 if test $ac_cv_lib_z_uncompress = yes; then
5481 cat >>confdefs.h <<_ACEOF
5489 echo "Zlib (libz.so) could not be found, but is required."
5494 if test "$APPLE_BUILD" != 'yes'; then
5496 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5497 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5498 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_check_lib_save_LIBS=$LIBS
5503 cat >conftest.$ac_ext <<_ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5510 /* Override any GCC internal prototype to avoid an error.
5511 Use char because int might match the return type of a GCC
5512 builtin and then its argument prototype would still apply. */
5516 char glXQueryVersion ();
5520 return glXQueryVersion ();
5525 rm -f conftest.$ac_objext conftest$ac_exeext
5526 if { (ac_try="$ac_link"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_link") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest$ac_exeext &&
5542 $as_test_x conftest$ac_exeext; then
5543 ac_cv_lib_GL_glXQueryVersion=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_cv_lib_GL_glXQueryVersion=no
5551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5552 conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5555 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5556 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5557 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define HAVE_LIBGL 1
5566 echo "The OpenGL library (libGL.so) could not be found, but is required."
5570 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5571 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5572 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5573 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5577 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5579 # Is the header compilable?
5580 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5581 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 ac_header_compiler=yes
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_header_compiler=no
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5618 echo "${ECHO_T}$ac_header_compiler" >&6; }
5620 # Is the header present?
5621 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5622 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5631 if { (ac_try="$ac_cpp conftest.$ac_ext"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } >/dev/null && {
5644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5647 ac_header_preproc=yes
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 ac_header_preproc=no
5655 rm -f conftest.err conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5657 echo "${ECHO_T}$ac_header_preproc" >&6; }
5659 # So? What about this header?
5660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5662 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5663 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5665 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5666 ac_header_preproc=yes
5669 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5670 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5672 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5674 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5676 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5678 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5680 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5684 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5685 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5686 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 ac_cv_header_GL_gl_h=$ac_header_preproc
5691 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5692 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5695 if test $ac_cv_header_GL_gl_h = yes; then
5699 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5708 { echo "$as_me:$LINENO: checking for GTK" >&5
5709 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
5711 if test -n "$PKG_CONFIG"; then
5712 if test -n "$GTK_CFLAGS"; then
5713 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
5715 if test -n "$PKG_CONFIG" && \
5716 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5717 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; then
5721 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
5729 if test -n "$PKG_CONFIG"; then
5730 if test -n "$GTK_LIBS"; then
5731 pkg_cv_GTK_LIBS="$GTK_LIBS"
5733 if test -n "$PKG_CONFIG" && \
5734 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5735 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; then
5739 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
5750 if test $pkg_failed = yes; then
5752 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5753 _pkg_short_errors_supported=yes
5755 _pkg_short_errors_supported=no
5757 if test $_pkg_short_errors_supported = yes; then
5758 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
5760 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
5762 # Put the nasty error message in config.log where it belongs
5763 echo "$GTK_PKG_ERRORS" >&5
5765 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
5769 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5770 installed software in a non-standard prefix.
5772 Alternatively, you may set the environment variables GTK_CFLAGS
5773 and GTK_LIBS to avoid the need to call pkg-config.
5774 See the pkg-config man page for more details.
5776 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
5780 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5781 installed software in a non-standard prefix.
5783 Alternatively, you may set the environment variables GTK_CFLAGS
5784 and GTK_LIBS to avoid the need to call pkg-config.
5785 See the pkg-config man page for more details.
5787 { (exit 1); exit 1; }; }
5788 elif test $pkg_failed = untried; then
5789 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5790 is in your PATH or set the PKG_CONFIG environment variable to the full
5793 Alternatively, you may set the environment variables GTK_CFLAGS
5794 and GTK_LIBS to avoid the need to call pkg-config.
5795 See the pkg-config man page for more details.
5797 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5798 See \`config.log' for more details." >&5
5799 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5800 is in your PATH or set the PKG_CONFIG environment variable to the full
5803 Alternatively, you may set the environment variables GTK_CFLAGS
5804 and GTK_LIBS to avoid the need to call pkg-config.
5805 See the pkg-config man page for more details.
5807 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5808 See \`config.log' for more details." >&2;}
5809 { (exit 1); exit 1; }; }
5811 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
5812 GTK_LIBS=$pkg_cv_GTK_LIBS
5813 { echo "$as_me:$LINENO: result: yes" >&5
5814 echo "${ECHO_T}yes" >&6; }
5818 cat >>confdefs.h <<\_ACEOF
5827 if test "$HAVE_CARBON" = 'yes'; then
5829 GUI_CARBON_FALSE='#'
5837 if test "$HAVE_GTK" = 'yes'; then
5847 i386|i486|i586|i686)
5848 SH4_TRANSLATOR="x86"
5850 cat >>confdefs.h <<_ACEOF
5851 #define SH4_TRANSLATOR TARGET_X86
5855 SH4_TRANSLATOR="x86_64"
5857 cat >>confdefs.h <<_ACEOF
5858 #define SH4_TRANSLATOR TARGET_X86_64
5862 echo "Warning: No translator available for $host. Building emulation core only";;
5866 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
5868 BUILD_SH4X86_FALSE='#'
5870 BUILD_SH4X86_TRUE='#'
5877 { echo "$as_me:$LINENO: checking for ESOUND" >&5
5878 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
5880 if test -n "$PKG_CONFIG"; then
5881 if test -n "$ESOUND_CFLAGS"; then
5882 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
5884 if test -n "$PKG_CONFIG" && \
5885 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5886 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; then
5890 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
5898 if test -n "$PKG_CONFIG"; then
5899 if test -n "$ESOUND_LIBS"; then
5900 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
5902 if test -n "$PKG_CONFIG" && \
5903 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5904 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; then
5908 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
5919 if test $pkg_failed = yes; then
5921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5922 _pkg_short_errors_supported=yes
5924 _pkg_short_errors_supported=no
5926 if test $_pkg_short_errors_supported = yes; then
5927 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
5929 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
5931 # Put the nasty error message in config.log where it belongs
5932 echo "$ESOUND_PKG_ERRORS" >&5
5934 echo "Warning: esound not found - building without audio support"
5935 elif test $pkg_failed = untried; then
5936 echo "Warning: esound not found - building without audio support"
5938 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
5939 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
5940 { echo "$as_me:$LINENO: result: yes" >&5
5941 echo "${ECHO_T}yes" >&6; }
5945 cat >>confdefs.h <<\_ACEOF
5946 #define HAVE_ESOUND 1
5952 if test "$HAVE_ESOUND" = 'yes' ; then
5954 AUDIO_ESOUND_FALSE='#'
5956 AUDIO_ESOUND_TRUE='#'
5961 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5962 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5963 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5964 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5968 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5970 # Is the header compilable?
5971 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
5972 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 $ac_includes_default
5980 #include <linux/cdrom.h>
5982 rm -f conftest.$ac_objext
5983 if { (ac_try="$ac_compile"
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest.$ac_objext; then
5999 ac_header_compiler=yes
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 ac_header_compiler=no
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6009 echo "${ECHO_T}$ac_header_compiler" >&6; }
6011 # Is the header present?
6012 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
6013 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <linux/cdrom.h>
6022 if { (ac_try="$ac_cpp conftest.$ac_ext"
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6030 grep -v '^ *+' conftest.er1 >conftest.err
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } >/dev/null && {
6035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6038 ac_header_preproc=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_header_preproc=no
6046 rm -f conftest.err conftest.$ac_ext
6047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6048 echo "${ECHO_T}$ac_header_preproc" >&6; }
6050 # So? What about this header?
6051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6053 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
6054 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
6056 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
6057 ac_header_preproc=yes
6060 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
6061 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
6062 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
6063 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
6064 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
6065 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
6066 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
6067 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
6068 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
6069 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
6070 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
6071 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
6075 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6076 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6077 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 ac_cv_header_linux_cdrom_h=$ac_header_preproc
6082 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6083 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6086 if test $ac_cv_header_linux_cdrom_h = yes; then
6087 HAVE_LINUX_CDROM_H=yes
6090 echo "Linux CDROM support not found, building without it."
6096 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
6098 CDROM_LINUX_FALSE='#'
6100 CDROM_LINUX_TRUE='#'
6105 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
6106 set dummy sh-elf-gcc; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_SHCC+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 SHCC=$ac_cv_path_SHCC
6136 if test -n "$SHCC"; then
6137 { echo "$as_me:$LINENO: result: $SHCC" >&5
6138 echo "${ECHO_T}$SHCC" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6145 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
6146 set dummy sh-elf-ld; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_SHLD+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 SHLD=$ac_cv_path_SHLD
6176 if test -n "$SHLD"; then
6177 { echo "$as_me:$LINENO: result: $SHLD" >&5
6178 echo "${ECHO_T}$SHLD" >&6; }
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6185 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
6186 set dummy sh-elf-objcopy; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
6216 if test -n "$SHOBJCOPY"; then
6217 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
6218 echo "${ECHO_T}$SHOBJCOPY" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
6226 set dummy arm-elf-gcc; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_ARMCC+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 ARMCC=$ac_cv_path_ARMCC
6256 if test -n "$ARMCC"; then
6257 { echo "$as_me:$LINENO: result: $ARMCC" >&5
6258 echo "${ECHO_T}$ARMCC" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
6266 set dummy arm-elf-ld; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_ARMLD+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 ARMLD=$ac_cv_path_ARMLD
6296 if test -n "$ARMLD"; then
6297 { echo "$as_me:$LINENO: result: $ARMLD" >&5
6298 echo "${ECHO_T}$ARMLD" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6305 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
6306 set dummy arm-elf-objcopy; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
6336 if test -n "$ARMOBJCOPY"; then
6337 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
6338 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6346 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
6348 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
6352 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
6354 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
6360 if test "$BUILD_SH" = "yes"; then
6362 BUILD_SYSTEST_FALSE='#'
6364 BUILD_SYSTEST_TRUE='#'
6365 BUILD_SYSTEST_FALSE=
6370 if test "$BUILD_ARM" = "yes"; then
6372 BUILD_ARMTEST_FALSE='#'
6374 BUILD_ARMTEST_TRUE='#'
6375 BUILD_ARMTEST_FALSE=
6380 GETTEXT_PACKAGE=lxdream
6383 cat >>confdefs.h <<_ACEOF
6384 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6388 ALL_LINGUAS="de pt_BR"
6391 for ac_header in locale.h
6393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 ac_res=`eval echo '${'$as_ac_Header'}'`
6401 { echo "$as_me:$LINENO: result: $ac_res" >&5
6402 echo "${ECHO_T}$ac_res" >&6; }
6404 # Is the header compilable?
6405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6414 #include <$ac_header>
6416 rm -f conftest.$ac_objext
6417 if { (ac_try="$ac_compile"
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_compile") 2>conftest.er1
6425 grep -v '^ *+' conftest.er1 >conftest.err
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest.$ac_objext; then
6433 ac_header_compiler=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_header_compiler=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6443 echo "${ECHO_T}$ac_header_compiler" >&6; }
6445 # Is the header present?
6446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <$ac_header>
6456 if { (ac_try="$ac_cpp conftest.$ac_ext"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } >/dev/null && {
6469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6472 ac_header_preproc=yes
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6477 ac_header_preproc=no
6480 rm -f conftest.err conftest.$ac_ext
6481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482 echo "${ECHO_T}$ac_header_preproc" >&6; }
6484 # So? What about this header?
6485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6491 ac_header_preproc=yes
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 eval "$as_ac_Header=\$ac_header_preproc"
6516 ac_res=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518 echo "${ECHO_T}$ac_res" >&6; }
6521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6522 cat >>confdefs.h <<_ACEOF
6523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530 if test $ac_cv_header_locale_h = yes; then
6531 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6532 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6533 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6551 rm -f conftest.$ac_objext conftest$ac_exeext
6552 if { (ac_try="$ac_link"
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_link") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest$ac_exeext &&
6568 $as_test_x conftest$ac_exeext; then
6569 am_cv_val_LC_MESSAGES=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 am_cv_val_LC_MESSAGES=no
6577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6578 conftest$ac_exeext conftest.$ac_ext
6580 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6581 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6582 if test $am_cv_val_LC_MESSAGES = yes; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_LC_MESSAGES 1
6593 gt_cv_have_gettext=no
6599 if test "${ac_cv_header_libintl_h+set}" = set; then
6600 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6601 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6602 if test "${ac_cv_header_libintl_h+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6606 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6608 # Is the header compilable?
6609 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6610 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 $ac_includes_default
6618 #include <libintl.h>
6620 rm -f conftest.$ac_objext
6621 if { (ac_try="$ac_compile"
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6629 grep -v '^ *+' conftest.er1 >conftest.err
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && {
6634 test -z "$ac_c_werror_flag" ||
6635 test ! -s conftest.err
6636 } && test -s conftest.$ac_objext; then
6637 ac_header_compiler=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 ac_header_compiler=no
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6647 echo "${ECHO_T}$ac_header_compiler" >&6; }
6649 # Is the header present?
6650 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6651 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <libintl.h>
6660 if { (ac_try="$ac_cpp conftest.$ac_ext"
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } >/dev/null && {
6673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6676 ac_header_preproc=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6681 ac_header_preproc=no
6684 rm -f conftest.err conftest.$ac_ext
6685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6686 echo "${ECHO_T}$ac_header_preproc" >&6; }
6688 # So? What about this header?
6689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6691 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6692 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6694 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6695 ac_header_preproc=yes
6698 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6699 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6701 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6703 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6705 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6707 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6709 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6713 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6714 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6715 if test "${ac_cv_header_libintl_h+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_header_libintl_h=$ac_header_preproc
6720 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6721 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6724 if test $ac_cv_header_libintl_h = yes; then
6725 gt_cv_func_dgettext_libintl="no"
6726 libintl_extra_libs=""
6729 # First check in libc
6731 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6732 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6733 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 #include <libintl.h>
6748 return !ngettext ("","", 1)
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_link") 2>conftest.er1
6762 grep -v '^ *+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest$ac_exeext &&
6770 $as_test_x conftest$ac_exeext; then
6771 gt_cv_func_ngettext_libc=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 gt_cv_func_ngettext_libc=no
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6783 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6784 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6786 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6787 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6788 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6789 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6799 #include <libintl.h>
6804 return !dgettext ("","")
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_link") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest$ac_exeext &&
6826 $as_test_x conftest$ac_exeext; then
6827 gt_cv_func_dgettext_libc=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 gt_cv_func_dgettext_libc=no
6835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6836 conftest$ac_exeext conftest.$ac_ext
6839 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6840 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6843 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6845 for ac_func in bind_textdomain_codeset
6847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6861 #define $ac_func innocuous_$ac_func
6863 /* System header to define __stub macros and hopefully few prototypes,
6864 which can conflict with char $ac_func (); below.
6865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6866 <limits.h> exists even on freestanding compilers. */
6869 # include <limits.h>
6871 # include <assert.h>
6876 /* Override any GCC internal prototype to avoid an error.
6877 Use char because int might match the return type of a GCC
6878 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined __stub_$ac_func || defined __stub___$ac_func
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_link") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext &&
6915 $as_test_x conftest$ac_exeext; then
6916 eval "$as_ac_var=yes"
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 eval "$as_ac_var=no"
6924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6925 conftest$ac_exeext conftest.$ac_ext
6927 ac_res=`eval echo '${'$as_ac_var'}'`
6928 { echo "$as_me:$LINENO: result: $ac_res" >&5
6929 echo "${ECHO_T}$ac_res" >&6; }
6930 if test `eval echo '${'$as_ac_var'}'` = yes; then
6931 cat >>confdefs.h <<_ACEOF
6932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6941 # If we don't have everything we want, check in libintl
6943 if test "$gt_cv_func_dgettext_libc" != "yes" \
6944 || test "$gt_cv_func_ngettext_libc" != "yes" \
6945 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6947 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6948 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6949 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_check_lib_save_LIBS=$LIBS
6954 cat >conftest.$ac_ext <<_ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6961 /* Override any GCC internal prototype to avoid an error.
6962 Use char because int might match the return type of a GCC
6963 builtin and then its argument prototype would still apply. */
6967 char bindtextdomain ();
6971 return bindtextdomain ();
6976 rm -f conftest.$ac_objext conftest$ac_exeext
6977 if { (ac_try="$ac_link"
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_link") 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest$ac_exeext &&
6993 $as_test_x conftest$ac_exeext; then
6994 ac_cv_lib_intl_bindtextdomain=yes
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_cv_lib_intl_bindtextdomain=no
7002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7003 conftest$ac_exeext conftest.$ac_ext
7004 LIBS=$ac_check_lib_save_LIBS
7006 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7007 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
7008 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7009 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7010 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7011 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_check_lib_save_LIBS=$LIBS
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7023 /* Override any GCC internal prototype to avoid an error.
7024 Use char because int might match the return type of a GCC
7025 builtin and then its argument prototype would still apply. */
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (ac_try="$ac_link"
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_link") 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest$ac_exeext &&
7055 $as_test_x conftest$ac_exeext; then
7056 ac_cv_lib_intl_ngettext=yes
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 ac_cv_lib_intl_ngettext=no
7064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LIBS=$ac_check_lib_save_LIBS
7068 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7069 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7070 if test $ac_cv_lib_intl_ngettext = yes; then
7071 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7072 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
7073 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 ac_check_lib_save_LIBS=$LIBS
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 /* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (ac_try="$ac_link"
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_link") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest$ac_exeext &&
7117 $as_test_x conftest$ac_exeext; then
7118 ac_cv_lib_intl_dgettext=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_lib_intl_dgettext=no
7126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7127 conftest$ac_exeext conftest.$ac_ext
7128 LIBS=$ac_check_lib_save_LIBS
7130 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7131 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
7132 if test $ac_cv_lib_intl_dgettext = yes; then
7133 gt_cv_func_dgettext_libintl=yes
7141 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7142 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7143 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
7144 { echo "$as_me:$LINENO: result: " >&5
7145 echo "${ECHO_T}" >&6; }
7146 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7147 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7148 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 ac_check_lib_save_LIBS=$LIBS
7152 LIBS="-lintl -liconv $LIBS"
7153 cat >conftest.$ac_ext <<_ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7175 rm -f conftest.$ac_objext conftest$ac_exeext
7176 if { (ac_try="$ac_link"
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_link") 2>conftest.er1
7184 grep -v '^ *+' conftest.er1 >conftest.err
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && {
7189 test -z "$ac_c_werror_flag" ||
7190 test ! -s conftest.err
7191 } && test -s conftest$ac_exeext &&
7192 $as_test_x conftest$ac_exeext; then
7193 ac_cv_lib_intl_ngettext=yes
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_cv_lib_intl_ngettext=no
7201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7205 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7206 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7207 if test $ac_cv_lib_intl_ngettext = yes; then
7208 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7209 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
7210 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-lintl -liconv $LIBS"
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7222 /* Override any GCC internal prototype to avoid an error.
7223 Use char because int might match the return type of a GCC
7224 builtin and then its argument prototype would still apply. */
7232 return dcgettext ();
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (ac_try="$ac_link"
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_link") 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest$ac_exeext &&
7254 $as_test_x conftest$ac_exeext; then
7255 ac_cv_lib_intl_dcgettext=yes
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 ac_cv_lib_intl_dcgettext=no
7263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7264 conftest$ac_exeext conftest.$ac_ext
7265 LIBS=$ac_check_lib_save_LIBS
7267 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7268 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7269 if test $ac_cv_lib_intl_dcgettext = yes; then
7270 gt_cv_func_dgettext_libintl=yes
7271 libintl_extra_libs=-liconv
7283 # If we found libintl, then check in it for bind_textdomain_codeset();
7284 # we'll prefer libc if neither have bind_textdomain_codeset(),
7285 # and both have dgettext and ngettext
7287 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7288 glib_save_LIBS="$LIBS"
7289 LIBS="$LIBS -lintl $libintl_extra_libs"
7290 unset ac_cv_func_bind_textdomain_codeset
7292 for ac_func in bind_textdomain_codeset
7294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7308 #define $ac_func innocuous_$ac_func
7310 /* System header to define __stub macros and hopefully few prototypes,
7311 which can conflict with char $ac_func (); below.
7312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7313 <limits.h> exists even on freestanding compilers. */
7316 # include <limits.h>
7318 # include <assert.h>
7323 /* Override any GCC internal prototype to avoid an error.
7324 Use char because int might match the return type of a GCC
7325 builtin and then its argument prototype would still apply. */
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined __stub_$ac_func || defined __stub___$ac_func
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (ac_try="$ac_link"
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_link") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest$ac_exeext &&
7362 $as_test_x conftest$ac_exeext; then
7363 eval "$as_ac_var=yes"
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 eval "$as_ac_var=no"
7371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7372 conftest$ac_exeext conftest.$ac_ext
7374 ac_res=`eval echo '${'$as_ac_var'}'`
7375 { echo "$as_me:$LINENO: result: $ac_res" >&5
7376 echo "${ECHO_T}$ac_res" >&6; }
7377 if test `eval echo '${'$as_ac_var'}'` = yes; then
7378 cat >>confdefs.h <<_ACEOF
7379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7385 LIBS="$glib_save_LIBS"
7387 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7388 gt_cv_func_dgettext_libc=no
7390 if test "$gt_cv_func_dgettext_libc" = "yes" \
7391 && test "$gt_cv_func_ngettext_libc" = "yes"; then
7392 gt_cv_func_dgettext_libintl=no
7398 if test "$gt_cv_func_dgettext_libc" = "yes" \
7399 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7400 gt_cv_have_gettext=yes
7403 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7404 INTLLIBS="-lintl $libintl_extra_libs"
7407 if test "$gt_cv_have_gettext" = "yes"; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define HAVE_GETTEXT 1
7413 # Extract the first word of "msgfmt", so it can be a program name with args.
7414 set dummy msgfmt; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_MSGFMT+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7426 for ac_dir in $PATH; do
7427 test -z "$ac_dir" && ac_dir=.
7428 if test -f $ac_dir/$ac_word; then
7429 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7430 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7436 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7440 MSGFMT="$ac_cv_path_MSGFMT"
7441 if test "$MSGFMT" != "no"; then
7442 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7443 echo "${ECHO_T}$MSGFMT" >&6; }
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7448 if test "$MSGFMT" != "no"; then
7449 glib_save_LIBS="$LIBS"
7450 LIBS="$LIBS $INTLLIBS"
7452 for ac_func in dcgettext
7454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 cat >conftest.$ac_ext <<_ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7468 #define $ac_func innocuous_$ac_func
7470 /* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char $ac_func (); below.
7472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473 <limits.h> exists even on freestanding compilers. */
7476 # include <limits.h>
7478 # include <assert.h>
7483 /* Override any GCC internal prototype to avoid an error.
7484 Use char because int might match the return type of a GCC
7485 builtin and then its argument prototype would still apply. */
7490 /* The GNU C library defines this for functions which it implements
7491 to always fail with ENOSYS. Some functions are actually named
7492 something starting with __ and the normal name is an alias. */
7493 #if defined __stub_$ac_func || defined __stub___$ac_func
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (ac_try="$ac_link"
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_link") 2>conftest.er1
7514 grep -v '^ *+' conftest.er1 >conftest.err
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest$ac_exeext &&
7522 $as_test_x conftest$ac_exeext; then
7523 eval "$as_ac_var=yes"
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 eval "$as_ac_var=no"
7531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7532 conftest$ac_exeext conftest.$ac_ext
7534 ac_res=`eval echo '${'$as_ac_var'}'`
7535 { echo "$as_me:$LINENO: result: $ac_res" >&5
7536 echo "${ECHO_T}$ac_res" >&6; }
7537 if test `eval echo '${'$as_ac_var'}'` = yes; then
7538 cat >>confdefs.h <<_ACEOF
7539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7545 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7546 set dummy gmsgfmt; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7576 GMSGFMT=$ac_cv_path_GMSGFMT
7577 if test -n "$GMSGFMT"; then
7578 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7579 echo "${ECHO_T}$GMSGFMT" >&6; }
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 # Extract the first word of "xgettext", so it can be a program name with args.
7587 set dummy xgettext; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7599 for ac_dir in $PATH; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/$ac_word; then
7602 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7603 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7609 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7613 XGETTEXT="$ac_cv_path_XGETTEXT"
7614 if test "$XGETTEXT" != ":"; then
7615 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7616 echo "${ECHO_T}$XGETTEXT" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7632 extern int _nl_msg_cat_cntr;
7633 return _nl_msg_cat_cntr
7638 rm -f conftest.$ac_objext conftest$ac_exeext
7639 if { (ac_try="$ac_link"
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_link") 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest$ac_exeext &&
7655 $as_test_x conftest$ac_exeext; then
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7664 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7665 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7666 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7677 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7679 /* System header to define __stub macros and hopefully few prototypes,
7680 which can conflict with char bind_textdomain_codeset (); below.
7681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7682 <limits.h> exists even on freestanding compilers. */
7685 # include <limits.h>
7687 # include <assert.h>
7690 #undef bind_textdomain_codeset
7692 /* Override any GCC internal prototype to avoid an error.
7693 Use char because int might match the return type of a GCC
7694 builtin and then its argument prototype would still apply. */
7698 char bind_textdomain_codeset ();
7699 /* The GNU C library defines this for functions which it implements
7700 to always fail with ENOSYS. Some functions are actually named
7701 something starting with __ and the normal name is an alias. */
7702 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7709 return bind_textdomain_codeset ();
7714 rm -f conftest.$ac_objext conftest$ac_exeext
7715 if { (ac_try="$ac_link"
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_link") 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && {
7728 test -z "$ac_c_werror_flag" ||
7729 test ! -s conftest.err
7730 } && test -s conftest$ac_exeext &&
7731 $as_test_x conftest$ac_exeext; then
7732 ac_cv_func_bind_textdomain_codeset=yes
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737 ac_cv_func_bind_textdomain_codeset=no
7740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7741 conftest$ac_exeext conftest.$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7744 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7745 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762 conftest$ac_exeext conftest.$ac_ext
7763 LIBS="$glib_save_LIBS"
7766 gt_cv_have_gettext=no
7774 if test "$gt_cv_have_gettext" = "yes" ; then
7776 cat >>confdefs.h <<\_ACEOF
7777 #define ENABLE_NLS 1
7782 if test "$XGETTEXT" != ":"; then
7783 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7786 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7787 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7792 # We need to process the po/ directory.
7795 ac_config_commands="$ac_config_commands default-1"
7798 for lang in $ALL_LINGUAS; do
7799 GMOFILES="$GMOFILES $lang.gmo"
7800 POFILES="$POFILES $lang.po"
7815 if test "$gt_cv_have_gettext" = "yes"; then
7816 if test "x$ALL_LINGUAS" = "x"; then
7819 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7820 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7822 for presentlang in $ALL_LINGUAS; do
7824 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7825 desiredlanguages="$LINGUAS"
7827 desiredlanguages="$ALL_LINGUAS"
7829 for desiredlang in $desiredlanguages; do
7830 # Use the presentlang catalog if desiredlang is
7831 # a. equal to presentlang, or
7832 # b. a variant of presentlang (because in this case,
7833 # presentlang can be used as a fallback for messages
7834 # which are not translated in the desiredlang catalog).
7835 case "$desiredlang" in
7836 "$presentlang"*) useit=yes;;
7839 if test $useit = yes; then
7840 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7843 LINGUAS=$NEW_LINGUAS
7844 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7845 echo "${ECHO_T}$LINGUAS" >&6; }
7848 if test -n "$LINGUAS"; then
7849 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7854 if test -n "$ac_aux_dir"; then
7855 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7857 if test -z "$MKINSTALLDIRS"; then
7858 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7862 test -d po || mkdir po
7863 if test "x$srcdir" != "x."; then
7864 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7865 posrcprefix="$srcdir/"
7867 posrcprefix="../$srcdir/"
7873 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7874 < $srcdir/po/POTFILES.in > po/POTFILES
7877 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
7879 cat >confcache <<\_ACEOF
7880 # This file is a shell script that caches the results of configure
7881 # tests run on this system so they can be shared between configure
7882 # scripts and configure runs, see configure's option --config-cache.
7883 # It is not useful on other systems. If it contains results you don't
7884 # want to keep, you may remove or edit it.
7886 # config.status only pays attention to the cache file if you give it
7887 # the --recheck option to rerun configure.
7889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7895 # The following way of writing the cache mishandles newlines in values,
7896 # but we know of no workaround that is simple, portable, and efficient.
7897 # So, we kill variables containing newlines.
7898 # Ultrix sh set writes to stderr and can't be redirected directly,
7899 # and sets the high bit in the cache file unless we assign to the vars.
7901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7902 eval ac_val=\$$ac_var
7906 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7907 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7910 _ | IFS | as_nl) ;; #(
7911 *) $as_unset $ac_var ;;
7917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7918 *${as_nl}ac_space=\ *)
7919 # `set' does not quote correctly, so add quotes (double-quote
7920 # substitution turns \\\\ into \\, and sed turns \\ into \).
7923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7926 # `set' quotes correctly as required by POSIX, so do not add quotes.
7927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7940 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7941 if test -w "$cache_file"; then
7942 test "x$cache_file" != "x/dev/null" &&
7943 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7944 echo "$as_me: updating cache $cache_file" >&6;}
7945 cat confcache >$cache_file
7947 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7948 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7954 # Let make expand exec_prefix.
7955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7957 DEFS=-DHAVE_CONFIG_H
7961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7962 # 1. Remove the extension, and $U if already installed.
7963 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7964 ac_i=`echo "$ac_i" | sed "$ac_script"`
7965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7966 # will be set to the directory where LIBOBJS objects are built.
7967 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7968 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7972 LTLIBOBJS=$ac_ltlibobjs
7975 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7976 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7977 Usually this means the macro was only invoked conditionally." >&5
7978 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7979 Usually this means the macro was only invoked conditionally." >&2;}
7980 { (exit 1); exit 1; }; }
7982 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7983 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7984 Usually this means the macro was only invoked conditionally." >&5
7985 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7986 Usually this means the macro was only invoked conditionally." >&2;}
7987 { (exit 1); exit 1; }; }
7989 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7990 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7991 Usually this means the macro was only invoked conditionally." >&5
7992 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7993 Usually this means the macro was only invoked conditionally." >&2;}
7994 { (exit 1); exit 1; }; }
7996 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7997 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7998 Usually this means the macro was only invoked conditionally." >&5
7999 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8000 Usually this means the macro was only invoked conditionally." >&2;}
8001 { (exit 1); exit 1; }; }
8003 if test -z "${GUI_CARBON_TRUE}" && test -z "${GUI_CARBON_FALSE}"; then
8004 { { echo "$as_me:$LINENO: error: conditional \"GUI_CARBON\" was never defined.
8005 Usually this means the macro was only invoked conditionally." >&5
8006 echo "$as_me: error: conditional \"GUI_CARBON\" was never defined.
8007 Usually this means the macro was only invoked conditionally." >&2;}
8008 { (exit 1); exit 1; }; }
8010 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
8011 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
8012 Usually this means the macro was only invoked conditionally." >&5
8013 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
8014 Usually this means the macro was only invoked conditionally." >&2;}
8015 { (exit 1); exit 1; }; }
8017 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
8018 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
8019 Usually this means the macro was only invoked conditionally." >&5
8020 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
8021 Usually this means the macro was only invoked conditionally." >&2;}
8022 { (exit 1); exit 1; }; }
8024 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
8025 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
8026 Usually this means the macro was only invoked conditionally." >&5
8027 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
8028 Usually this means the macro was only invoked conditionally." >&2;}
8029 { (exit 1); exit 1; }; }
8031 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
8032 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
8033 Usually this means the macro was only invoked conditionally." >&5
8034 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
8035 Usually this means the macro was only invoked conditionally." >&2;}
8036 { (exit 1); exit 1; }; }
8038 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
8039 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
8040 Usually this means the macro was only invoked conditionally." >&5
8041 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
8042 Usually this means the macro was only invoked conditionally." >&2;}
8043 { (exit 1); exit 1; }; }
8045 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
8046 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
8047 Usually this means the macro was only invoked conditionally." >&5
8048 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
8049 Usually this means the macro was only invoked conditionally." >&2;}
8050 { (exit 1); exit 1; }; }
8053 : ${CONFIG_STATUS=./config.status}
8054 ac_clean_files_save=$ac_clean_files
8055 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8056 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8057 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8058 cat >$CONFIG_STATUS <<_ACEOF
8060 # Generated by $as_me.
8061 # Run this file to recreate the current configuration.
8062 # Compiler output produced by configure, useful for debugging
8063 # configure, is in config.log if it exists.
8068 SHELL=\${CONFIG_SHELL-$SHELL}
8071 cat >>$CONFIG_STATUS <<\_ACEOF
8072 ## --------------------- ##
8073 ## M4sh Initialization. ##
8074 ## --------------------- ##
8076 # Be more Bourne compatible
8077 DUALCASE=1; export DUALCASE # for MKS sh
8078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8081 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8082 # is contrary to our usage. Disable this feature.
8083 alias -g '${1+"$@"}'='"$@"'
8084 setopt NO_GLOB_SUBST
8086 case `(set -o) 2>/dev/null` in
8087 *posix*) set -o posix ;;
8096 # Avoid depending upon Character Ranges.
8097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8100 as_cr_digits='0123456789'
8101 as_cr_alnum=$as_cr_Letters$as_cr_digits
8103 # The user is always right.
8104 if test "${PATH_SEPARATOR+set}" != set; then
8105 echo "#! /bin/sh" >conf$$.sh
8106 echo "exit 0" >>conf$$.sh
8108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8116 # Support unset when possible.
8117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8125 # We need space, tab and new line, in precisely that order. Quoting is
8126 # there to prevent editors from complaining about space-tab.
8127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8128 # splitting by setting IFS to empty value.)
8133 # Find who we are. Look in the path if we contain no directory separator.
8135 *[\\/]* ) as_myself=$0 ;;
8136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8147 # We did not find ourselves, most probably we were run as `sh COMMAND'
8148 # in which case we are not to be found in the path.
8149 if test "x$as_myself" = x; then
8152 if test ! -f "$as_myself"; then
8153 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8154 { (exit 1); exit 1; }
8157 # Work around bugs in pre-3.0 UWIN ksh.
8158 for as_var in ENV MAIL MAILPATH
8159 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8169 LC_TELEPHONE LC_TIME
8171 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8172 eval $as_var=C; export $as_var
8174 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8178 # Required to use basename.
8179 if expr a : '\(a\)' >/dev/null 2>&1 &&
8180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8187 as_basename=basename
8193 # Name of the executable.
8194 as_me=`$as_basename -- "$0" ||
8195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8196 X"$0" : 'X\(//\)$' \| \
8197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8199 sed '/^.*\/\([^/][^/]*\)\/*$/{
8220 test "x$as_lineno_1" != "x$as_lineno_2" &&
8221 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8223 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8224 # uniformly replaced by the line number. The first 'sed' inserts a
8225 # line-number line after each line using $LINENO; the second 'sed'
8226 # does the real work. The second script uses 'N' to pair each
8227 # line-number line with the line containing $LINENO, and appends
8228 # trailing '-' during substitution so that $LINENO is not a special
8230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8231 # scripts with optimization help from Paolo Bonzini. Blame Lee
8232 # E. McMahon (1931-1989) for sed's syntax. :-)
8244 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8248 chmod +x "$as_me.lineno" ||
8249 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8250 { (exit 1); exit 1; }; }
8252 # Don't try to exec as it changes $[0], causing all sort of problems
8253 # (the dirname of $[0] is not the place where we might find the
8254 # original and so on. Autoconf is especially sensitive to this).
8256 # Exit status is that of the last command.
8261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8267 ECHO_C= ECHO_N= ECHO_T=
8270 case `echo 'x\c'` in
8271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8278 if expr a : '\(a\)' >/dev/null 2>&1 &&
8279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8285 rm -f conf$$ conf$$.exe conf$$.file
8286 if test -d conf$$.dir; then
8287 rm -f conf$$.dir/conf$$.file
8293 if ln -s conf$$.file conf$$ 2>/dev/null; then
8295 # ... but there are two gotchas:
8296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8298 # In both cases, we have to default to `cp -p'.
8299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8301 elif ln conf$$.file conf$$ 2>/dev/null; then
8306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8307 rmdir conf$$.dir 2>/dev/null
8309 if mkdir -p . 2>/dev/null; then
8312 test -d ./-p && rmdir ./-p
8316 if test -x / >/dev/null 2>&1; then
8319 if ls -dL / >/dev/null 2>&1; then
8326 if test -d "$1"; then
8332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8333 ???[sx]*):;;*)false;;esac;fi
8337 as_executable_p=$as_test_x
8339 # Sed expression to map a string onto a valid CPP name.
8340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8342 # Sed expression to map a string onto a valid variable name.
8343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8348 # Save the log message, to keep $[0] and so on meaningful, and to
8349 # report actual input values of CONFIG_FILES etc. instead of their
8350 # values after options handling.
8352 This file was extended by $as_me, which was
8353 generated by GNU Autoconf 2.61. Invocation command line was
8355 CONFIG_FILES = $CONFIG_FILES
8356 CONFIG_HEADERS = $CONFIG_HEADERS
8357 CONFIG_LINKS = $CONFIG_LINKS
8358 CONFIG_COMMANDS = $CONFIG_COMMANDS
8361 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8366 cat >>$CONFIG_STATUS <<_ACEOF
8367 # Files that config.status was made for.
8368 config_files="$ac_config_files"
8369 config_headers="$ac_config_headers"
8370 config_commands="$ac_config_commands"
8374 cat >>$CONFIG_STATUS <<\_ACEOF
8376 \`$as_me' instantiates files from templates according to the
8377 current configuration.
8379 Usage: $0 [OPTIONS] [FILE]...
8381 -h, --help print this help, then exit
8382 -V, --version print version number and configuration settings, then exit
8383 -q, --quiet do not print progress messages
8384 -d, --debug don't remove temporary files
8385 --recheck update $as_me by reconfiguring in the same conditions
8386 --file=FILE[:TEMPLATE]
8387 instantiate the configuration file FILE
8388 --header=FILE[:TEMPLATE]
8389 instantiate the configuration header FILE
8391 Configuration files:
8394 Configuration headers:
8397 Configuration commands:
8400 Report bugs to <bug-autoconf@gnu.org>."
8403 cat >>$CONFIG_STATUS <<_ACEOF
8406 configured by $0, generated by GNU Autoconf 2.61,
8407 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8409 Copyright (C) 2006 Free Software Foundation, Inc.
8410 This config.status script is free software; the Free Software Foundation
8411 gives unlimited permission to copy, distribute and modify it."
8418 cat >>$CONFIG_STATUS <<\_ACEOF
8419 # If no file are specified by the user, then we need to provide default
8420 # value. By we need to know if files were specified by the user.
8426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8438 # Handling of the options.
8439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8442 echo "$ac_cs_version"; exit ;;
8443 --debug | --debu | --deb | --de | --d | -d )
8445 --file | --fil | --fi | --f )
8447 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8448 ac_need_defaults=false;;
8449 --header | --heade | --head | --hea )
8451 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8452 ac_need_defaults=false;;
8454 # Conflict between --help and --header
8455 { echo "$as_me: error: ambiguous option: $1
8456 Try \`$0 --help' for more information." >&2
8457 { (exit 1); exit 1; }; };;
8458 --help | --hel | -h )
8459 echo "$ac_cs_usage"; exit ;;
8460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8465 -*) { echo "$as_me: error: unrecognized option: $1
8466 Try \`$0 --help' for more information." >&2
8467 { (exit 1); exit 1; }; } ;;
8469 *) ac_config_targets="$ac_config_targets $1"
8470 ac_need_defaults=false ;;
8476 ac_configure_extra_args=
8478 if $ac_cs_silent; then
8480 ac_configure_extra_args="$ac_configure_extra_args --silent"
8484 cat >>$CONFIG_STATUS <<_ACEOF
8485 if \$ac_cs_recheck; then
8486 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8489 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8493 cat >>$CONFIG_STATUS <<\_ACEOF
8497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8498 ## Running $as_me. ##
8504 cat >>$CONFIG_STATUS <<_ACEOF
8508 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8513 cat >>$CONFIG_STATUS <<\_ACEOF
8515 # Handling of arguments.
8516 for ac_config_target in $ac_config_targets
8518 case $ac_config_target in
8519 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8520 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8521 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8522 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8523 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8524 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8525 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
8527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8529 { (exit 1); exit 1; }; };;
8534 # If the user did not use the arguments to specify the items to instantiate,
8535 # then the envvar interface is used. Set only those that are not.
8536 # We use the long form for the default assignment because of an extremely
8537 # bizarre bug on SunOS 4.1.3.
8538 if $ac_need_defaults; then
8539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8544 # Have a temporary directory for convenience. Make it in the build tree
8545 # simply because there is no reason against having it here, and in addition,
8546 # creating and moving files from /tmp can sometimes cause problems.
8547 # Hook for its removal unless debugging.
8548 # Note that there is a small window in which the directory will not be cleaned:
8549 # after its creation but before its name has been assigned to `$tmp'.
8553 trap 'exit_status=$?
8554 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8556 trap '{ (exit 1); exit 1; }' 1 2 13 15
8558 # Create a (secure) tmp directory for tmp files.
8561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8562 test -n "$tmp" && test -d "$tmp"
8565 tmp=./conf$$-$RANDOM
8566 (umask 077 && mkdir "$tmp")
8569 echo "$me: cannot create a temporary directory in ." >&2
8570 { (exit 1); exit 1; }
8574 # Set up the sed scripts for CONFIG_FILES section.
8577 # No need to generate the scripts if there are no CONFIG_FILES.
8578 # This happens for instance when ./config.status config.h
8579 if test -n "$CONFIG_FILES"; then
8586 for ac_last_try in false false false false false :; do
8587 cat >conf$$subs.sed <<_ACEOF
8588 SHELL!$SHELL$ac_delim
8589 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8590 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8591 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8592 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8593 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8594 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8595 exec_prefix!$exec_prefix$ac_delim
8596 prefix!$prefix$ac_delim
8597 program_transform_name!$program_transform_name$ac_delim
8598 bindir!$bindir$ac_delim
8599 sbindir!$sbindir$ac_delim
8600 libexecdir!$libexecdir$ac_delim
8601 datarootdir!$datarootdir$ac_delim
8602 datadir!$datadir$ac_delim
8603 sysconfdir!$sysconfdir$ac_delim
8604 sharedstatedir!$sharedstatedir$ac_delim
8605 localstatedir!$localstatedir$ac_delim
8606 includedir!$includedir$ac_delim
8607 oldincludedir!$oldincludedir$ac_delim
8608 docdir!$docdir$ac_delim
8609 infodir!$infodir$ac_delim
8610 htmldir!$htmldir$ac_delim
8611 dvidir!$dvidir$ac_delim
8612 pdfdir!$pdfdir$ac_delim
8613 psdir!$psdir$ac_delim
8614 libdir!$libdir$ac_delim
8615 localedir!$localedir$ac_delim
8616 mandir!$mandir$ac_delim
8618 ECHO_C!$ECHO_C$ac_delim
8619 ECHO_N!$ECHO_N$ac_delim
8620 ECHO_T!$ECHO_T$ac_delim
8622 build_alias!$build_alias$ac_delim
8623 host_alias!$host_alias$ac_delim
8624 target_alias!$target_alias$ac_delim
8625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8627 INSTALL_DATA!$INSTALL_DATA$ac_delim
8628 CYGPATH_W!$CYGPATH_W$ac_delim
8629 PACKAGE!$PACKAGE$ac_delim
8630 VERSION!$VERSION$ac_delim
8631 ACLOCAL!$ACLOCAL$ac_delim
8632 AUTOCONF!$AUTOCONF$ac_delim
8633 AUTOMAKE!$AUTOMAKE$ac_delim
8634 AUTOHEADER!$AUTOHEADER$ac_delim
8635 MAKEINFO!$MAKEINFO$ac_delim
8636 AMTAR!$AMTAR$ac_delim
8637 install_sh!$install_sh$ac_delim
8638 STRIP!$STRIP$ac_delim
8639 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8641 SET_MAKE!$SET_MAKE$ac_delim
8642 am__leading_dot!$am__leading_dot$ac_delim
8643 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
8644 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
8645 MAINT!$MAINT$ac_delim
8647 CFLAGS!$CFLAGS$ac_delim
8648 LDFLAGS!$LDFLAGS$ac_delim
8649 CPPFLAGS!$CPPFLAGS$ac_delim
8650 ac_ct_CC!$ac_ct_CC$ac_delim
8651 EXEEXT!$EXEEXT$ac_delim
8652 OBJEXT!$OBJEXT$ac_delim
8653 DEPDIR!$DEPDIR$ac_delim
8654 am__include!$am__include$ac_delim
8655 am__quote!$am__quote$ac_delim
8656 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8657 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8658 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8659 CCDEPMODE!$CCDEPMODE$ac_delim
8660 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8661 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8664 EGREP!$EGREP$ac_delim
8665 build!$build$ac_delim
8666 build_cpu!$build_cpu$ac_delim
8667 build_vendor!$build_vendor$ac_delim
8668 build_os!$build_os$ac_delim
8670 host_cpu!$host_cpu$ac_delim
8671 host_vendor!$host_vendor$ac_delim
8672 host_os!$host_os$ac_delim
8673 PKG_CONFIG!$PKG_CONFIG$ac_delim
8674 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
8675 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
8676 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
8677 GTK_LIBS!$GTK_LIBS$ac_delim
8678 GUI_CARBON_TRUE!$GUI_CARBON_TRUE$ac_delim
8679 GUI_CARBON_FALSE!$GUI_CARBON_FALSE$ac_delim
8680 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
8681 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
8682 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
8683 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
8684 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
8687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8689 elif $ac_last_try; then
8690 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8691 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8692 { (exit 1); exit 1; }; }
8694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8698 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8699 if test -n "$ac_eof"; then
8700 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8701 ac_eof=`expr $ac_eof + 1`
8704 cat >>$CONFIG_STATUS <<_ACEOF
8705 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8709 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8710 s/^/s,@/; s/!/@,|#_!!_#|/
8713 s/'"$ac_delim"'$/,g/; t
8715 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8716 ' >>$CONFIG_STATUS <conf$$subs.sed
8717 rm -f conf$$subs.sed
8718 cat >>$CONFIG_STATUS <<_ACEOF
8724 for ac_last_try in false false false false false :; do
8725 cat >conf$$subs.sed <<_ACEOF
8726 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
8727 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
8728 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
8729 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
8730 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
8733 SHOBJCOPY!$SHOBJCOPY$ac_delim
8734 ARMCC!$ARMCC$ac_delim
8735 ARMLD!$ARMLD$ac_delim
8736 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
8737 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
8738 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
8739 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
8740 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
8741 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
8742 USE_NLS!$USE_NLS$ac_delim
8743 MSGFMT!$MSGFMT$ac_delim
8744 GMSGFMT!$GMSGFMT$ac_delim
8745 XGETTEXT!$XGETTEXT$ac_delim
8746 CATALOGS!$CATALOGS$ac_delim
8747 CATOBJEXT!$CATOBJEXT$ac_delim
8748 DATADIRNAME!$DATADIRNAME$ac_delim
8749 GMOFILES!$GMOFILES$ac_delim
8750 INSTOBJEXT!$INSTOBJEXT$ac_delim
8751 INTLLIBS!$INTLLIBS$ac_delim
8752 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
8753 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
8754 POFILES!$POFILES$ac_delim
8755 POSUB!$POSUB$ac_delim
8756 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
8757 LIBOBJS!$LIBOBJS$ac_delim
8758 LTLIBOBJS!$LTLIBOBJS$ac_delim
8761 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
8763 elif $ac_last_try; then
8764 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8765 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8766 { (exit 1); exit 1; }; }
8768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8772 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8773 if test -n "$ac_eof"; then
8774 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8775 ac_eof=`expr $ac_eof + 1`
8778 cat >>$CONFIG_STATUS <<_ACEOF
8779 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8783 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8784 s/^/s,@/; s/!/@,|#_!!_#|/
8787 s/'"$ac_delim"'$/,g/; t
8789 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8790 ' >>$CONFIG_STATUS <conf$$subs.sed
8791 rm -f conf$$subs.sed
8792 cat >>$CONFIG_STATUS <<_ACEOF
8799 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8800 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8801 # trailing colons and then remove the whole line if VPATH becomes empty
8802 # (actually we leave an empty line to preserve line numbers).
8803 if test "x$srcdir" = x.; then
8804 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8808 s/^\([^=]*=[ ]*\):*/\1/
8814 cat >>$CONFIG_STATUS <<\_ACEOF
8815 fi # test -n "$CONFIG_FILES"
8818 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8821 :[FHLC]) ac_mode=$ac_tag; continue;;
8823 case $ac_mode$ac_tag in
8825 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8826 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8827 { (exit 1); exit 1; }; };;
8828 :[FH]-) ac_tag=-:-;;
8829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8846 -) ac_f="$tmp/stdin";;
8847 *) # Look for the file first in the build tree, then in the source tree
8848 # (if the path is not absolute). The absolute path cannot be DOS-style,
8849 # because $ac_f cannot contain `:'.
8853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8855 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8856 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8857 { (exit 1); exit 1; }; };;
8859 ac_file_inputs="$ac_file_inputs $ac_f"
8862 # Let's still pretend it is `configure' which instantiates (i.e., don't
8863 # use $as_me), people would be surprised to read:
8864 # /* config.h. Generated by config.status. */
8865 configure_input="Generated from "`IFS=:
8866 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8867 if test x"$ac_file" != x-; then
8868 configure_input="$ac_file. $configure_input"
8869 { echo "$as_me:$LINENO: creating $ac_file" >&5
8870 echo "$as_me: creating $ac_file" >&6;}
8874 *:-:* | *:-) cat >"$tmp/stdin";;
8879 ac_dir=`$as_dirname -- "$ac_file" ||
8880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8881 X"$ac_file" : 'X\(//\)[^/]' \| \
8882 X"$ac_file" : 'X\(//\)$' \| \
8883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8904 -*) as_dir=./$as_dir;;
8906 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8910 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8911 *) as_qdir=$as_dir;;
8913 as_dirs="'$as_qdir' $as_dirs"
8914 as_dir=`$as_dirname -- "$as_dir" ||
8915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8916 X"$as_dir" : 'X\(//\)[^/]' \| \
8917 X"$as_dir" : 'X\(//\)$' \| \
8918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8937 test -d "$as_dir" && break
8939 test -z "$as_dirs" || eval "mkdir $as_dirs"
8940 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8941 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8942 { (exit 1); exit 1; }; }; }
8946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8948 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8949 # A ".." for each directory in $ac_dir_suffix.
8950 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8951 case $ac_top_builddir_sub in
8952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8956 ac_abs_top_builddir=$ac_pwd
8957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8958 # for backward compatibility:
8959 ac_top_builddir=$ac_top_build_prefix
8962 .) # We are building in place.
8964 ac_top_srcdir=$ac_top_builddir_sub
8965 ac_abs_top_srcdir=$ac_pwd ;;
8966 [\\/]* | ?:[\\/]* ) # Absolute name.
8967 ac_srcdir=$srcdir$ac_dir_suffix;
8968 ac_top_srcdir=$srcdir
8969 ac_abs_top_srcdir=$srcdir ;;
8971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8972 ac_top_srcdir=$ac_top_build_prefix$srcdir
8973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8990 cat >>$CONFIG_STATUS <<\_ACEOF
8991 # If the template does not know about datarootdir, expand it.
8992 # FIXME: This hack should be removed a few years after 2.60.
8993 ac_datarootdir_hack=; ac_datarootdir_seen=
8995 case `sed -n '/datarootdir/ {
9004 ' $ac_file_inputs` in
9005 *datarootdir*) ac_datarootdir_seen=yes;;
9006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9007 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9008 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9010 cat >>$CONFIG_STATUS <<_ACEOF
9011 ac_datarootdir_hack='
9012 s&@datadir@&$datadir&g
9013 s&@docdir@&$docdir&g
9014 s&@infodir@&$infodir&g
9015 s&@localedir@&$localedir&g
9016 s&@mandir@&$mandir&g
9017 s&\\\${datarootdir}&$datarootdir&g' ;;
9021 # Neutralize VPATH when `$srcdir' = `.'.
9022 # Shell code in configure.ac might set extrasub.
9023 # FIXME: do we really want to maintain this feature?
9024 cat >>$CONFIG_STATUS <<_ACEOF
9028 cat >>$CONFIG_STATUS <<\_ACEOF
9030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9031 s&@configure_input@&$configure_input&;t t
9032 s&@top_builddir@&$ac_top_builddir_sub&;t t
9033 s&@srcdir@&$ac_srcdir&;t t
9034 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9035 s&@top_srcdir@&$ac_top_srcdir&;t t
9036 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9037 s&@builddir@&$ac_builddir&;t t
9038 s&@abs_builddir@&$ac_abs_builddir&;t t
9039 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9040 s&@INSTALL@&$ac_INSTALL&;t t
9041 $ac_datarootdir_hack
9042 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9044 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9045 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9046 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9047 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9048 which seems to be undefined. Please make sure it is defined." >&5
9049 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9050 which seems to be undefined. Please make sure it is defined." >&2;}
9054 -) cat "$tmp/out"; rm -f "$tmp/out";;
9055 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9064 # Transform confdefs.h into a sed script `conftest.defines', that
9065 # substitutes the proper values into config.h.in to produce config.h.
9066 rm -f conftest.defines conftest.tail
9067 # First, append a space to every undef/define line, to ease matching.
9068 echo 's/$/ /' >conftest.defines
9069 # Then, protect against being on the right side of a sed subst, or in
9070 # an unquoted here document, in config.status. If some macros were
9071 # called several times there might be several #defines for the same
9072 # symbol, which is useless. But do not sort them, since the last
9073 # AC_DEFINE must be honored.
9074 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9075 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9076 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9077 # PARAMS is the parameter list in the macro definition--in most cases, it's
9078 # just an empty string.
9079 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9080 ac_dB='\\)[ (].*,\\1define\\2'
9088 s/^[ ]*#[ ]*define[ ][ ]*//
9093 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9094 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9095 ' >>conftest.defines
9097 # Remove the space that was appended to ease matching.
9098 # Then replace #undef with comments. This is necessary, for
9099 # example, in the case of _POSIX_SOURCE, which is predefined and required
9100 # on some systems where configure will not decide to define it.
9101 # (The regexp can be short, since the line contains either #define or #undef.)
9103 s,^[ #]*u.*,/* & */,' >>conftest.defines
9105 # Break up conftest.defines:
9108 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9109 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9110 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9112 ac_in='$ac_file_inputs'
9113 ac_out='"$tmp/out1"'
9114 ac_nxt='"$tmp/out2"'
9118 # Write a here document:
9119 cat >>$CONFIG_STATUS <<_ACEOF
9120 # First, check the format of the line:
9121 cat >"\$tmp/defines.sed" <<\\CEOF
9122 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9123 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9127 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9129 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9130 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9131 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9132 grep . conftest.tail >/dev/null || break
9133 rm -f conftest.defines
9134 mv conftest.tail conftest.defines
9136 rm -f conftest.defines conftest.tail
9138 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9139 cat >>$CONFIG_STATUS <<\_ACEOF
9140 if test x"$ac_file" != x-; then
9141 echo "/* $configure_input */" >"$tmp/config.h"
9142 cat "$ac_result" >>"$tmp/config.h"
9143 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9144 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9145 echo "$as_me: $ac_file is unchanged" >&6;}
9148 mv "$tmp/config.h" $ac_file
9151 echo "/* $configure_input */"
9155 # Compute $ac_file's index in $config_headers.
9157 for _am_header in $config_headers :; do
9159 $ac_file | $ac_file:* )
9162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9165 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
9166 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9167 X$ac_file : 'X\(//\)[^/]' \| \
9168 X$ac_file : 'X\(//\)$' \| \
9169 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
9171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9187 s/.*/./; q'`/stamp-h$_am_stamp_count
9190 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9191 echo "$as_me: executing $ac_file commands" >&6;}
9196 case $ac_file$ac_mode in
9197 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9198 # Strip MF so we end up with the name of the file.
9199 mf=`echo "$mf" | sed -e 's/:.*$//'`
9200 # Check whether this is an Automake generated Makefile or not.
9201 # We used to match only the files named `Makefile.in', but
9202 # some people rename them; so instead we look at the file content.
9203 # Grep'ing the first line is not enough: some people post-process
9204 # each Makefile.in and add a new line on top of each file to say so.
9205 # So let's grep whole file.
9206 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9207 dirpart=`$as_dirname -- "$mf" ||
9208 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9209 X"$mf" : 'X\(//\)[^/]' \| \
9210 X"$mf" : 'X\(//\)$' \| \
9211 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9233 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9234 # Extract the definition of DEP_FILES from the Makefile without
9236 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9237 test -z "$DEPDIR" && continue
9238 # When using ansi2knr, U may be empty or an underscore; expand it
9239 U=`sed -n -e '/^U = / s///p' < "$mf"`
9240 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9241 # We invoke sed twice because it is the simplest approach to
9242 # changing $(DEPDIR) to its actual value in the expansion.
9243 for file in `sed -n -e '
9244 /^DEP_FILES = .*\\\\$/ {
9253 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9254 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9255 # Make sure the directory exists.
9256 test -f "$dirpart/$file" && continue
9257 fdir=`$as_dirname -- "$file" ||
9258 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9259 X"$file" : 'X\(//\)[^/]' \| \
9260 X"$file" : 'X\(//\)$' \| \
9261 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9280 { as_dir=$dirpart/$fdir
9282 -*) as_dir=./$as_dir;;
9284 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9288 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9289 *) as_qdir=$as_dir;;
9291 as_dirs="'$as_qdir' $as_dirs"
9292 as_dir=`$as_dirname -- "$as_dir" ||
9293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9294 X"$as_dir" : 'X\(//\)[^/]' \| \
9295 X"$as_dir" : 'X\(//\)$' \| \
9296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9315 test -d "$as_dir" && break
9317 test -z "$as_dirs" || eval "mkdir $as_dirs"
9318 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9319 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9320 { (exit 1); exit 1; }; }; }
9321 # echo "creating $dirpart/$file"
9322 echo '# dummy' > "$dirpart/$file"
9326 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
9327 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9334 { (exit 0); exit 0; }
9336 chmod +x $CONFIG_STATUS
9337 ac_clean_files=$ac_clean_files_save
9340 # configure is writing to config.log, and then calls config.status.
9341 # config.status does its own redirection, appending to config.log.
9342 # Unfortunately, on DOS this fails, as config.log is still kept open
9343 # by configure, so config.status won't be able to write to it; its
9344 # output is simply discarded. So we exec the FD to /dev/null,
9345 # effectively closing config.log, so it can be properly (re)opened and
9346 # appended to by config.status. When coming back to configure, we
9347 # need to make the FD available again.
9348 if test "$no_create" != yes; then
9350 ac_config_status_args=
9351 test "$silent" = yes &&
9352 ac_config_status_args="$ac_config_status_args --quiet"
9354 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9357 # would make configure fail if this is the last instruction.
9358 $ac_cs_success || { (exit 1); exit 1; }
.