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="gbdfed.c"
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
684 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
708 program_transform_name=s,x,x,
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
748 eval $ac_prev=\$ac_option
754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
758 # Accept the important Cygnus configure options, so we can diagnose typos.
760 case $ac_dashdash$ac_option in
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
782 cache_file=config.cache ;;
784 -datadir | --datadir | --datadi | --datad)
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
796 -disable-* | --disable-*)
797 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801 { (exit 1); exit 1; }; }
802 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803 eval enable_$ac_feature=no ;;
805 -docdir | --docdir | --docdi | --doc | --do)
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815 -enable-* | --enable-*)
816 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820 { (exit 1); exit 1; }; }
821 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822 eval enable_$ac_feature=\$ac_optarg ;;
824 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826 | --exec | --exe | --ex)
827 ac_prev=exec_prefix ;;
828 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830 | --exec=* | --exe=* | --ex=*)
831 exec_prefix=$ac_optarg ;;
833 -gas | --gas | --ga | --g)
834 # Obsolete; use --with-gas.
837 -help | --help | --hel | --he | -h)
839 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840 ac_init_help=recursive ;;
841 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842 ac_init_help=short ;;
844 -host | --host | --hos | --ho)
845 ac_prev=host_alias ;;
846 -host=* | --host=* | --hos=* | --ho=*)
847 host_alias=$ac_optarg ;;
849 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853 htmldir=$ac_optarg ;;
855 -includedir | --includedir | --includedi | --included | --include \
856 | --includ | --inclu | --incl | --inc)
857 ac_prev=includedir ;;
858 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859 | --includ=* | --inclu=* | --incl=* | --inc=*)
860 includedir=$ac_optarg ;;
862 -infodir | --infodir | --infodi | --infod | --info | --inf)
864 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865 infodir=$ac_optarg ;;
867 -libdir | --libdir | --libdi | --libd)
869 -libdir=* | --libdir=* | --libdi=* | --libd=*)
872 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873 | --libexe | --libex | --libe)
874 ac_prev=libexecdir ;;
875 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876 | --libexe=* | --libex=* | --libe=*)
877 libexecdir=$ac_optarg ;;
879 -localedir | --localedir | --localedi | --localed | --locale)
881 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882 localedir=$ac_optarg ;;
884 -localstatedir | --localstatedir | --localstatedi | --localstated \
885 | --localstate | --localstat | --localsta | --localst | --locals)
886 ac_prev=localstatedir ;;
887 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889 localstatedir=$ac_optarg ;;
891 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897 # Obsolete; use --without-fp.
900 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901 | --no-cr | --no-c | -n)
904 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910 | --oldin | --oldi | --old | --ol | --o)
911 ac_prev=oldincludedir ;;
912 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915 oldincludedir=$ac_optarg ;;
917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
922 -program-prefix | --program-prefix | --program-prefi | --program-pref \
923 | --program-pre | --program-pr | --program-p)
924 ac_prev=program_prefix ;;
925 -program-prefix=* | --program-prefix=* | --program-prefi=* \
926 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927 program_prefix=$ac_optarg ;;
929 -program-suffix | --program-suffix | --program-suffi | --program-suff \
930 | --program-suf | --program-su | --program-s)
931 ac_prev=program_suffix ;;
932 -program-suffix=* | --program-suffix=* | --program-suffi=* \
933 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934 program_suffix=$ac_optarg ;;
936 -program-transform-name | --program-transform-name \
937 | --program-transform-nam | --program-transform-na \
938 | --program-transform-n | --program-transform- \
939 | --program-transform | --program-transfor \
940 | --program-transfo | --program-transf \
941 | --program-trans | --program-tran \
942 | --progr-tra | --program-tr | --program-t)
943 ac_prev=program_transform_name ;;
944 -program-transform-name=* | --program-transform-name=* \
945 | --program-transform-nam=* | --program-transform-na=* \
946 | --program-transform-n=* | --program-transform-=* \
947 | --program-transform=* | --program-transfor=* \
948 | --program-transfo=* | --program-transf=* \
949 | --program-trans=* | --program-tran=* \
950 | --progr-tra=* | --program-tr=* | --program-t=*)
951 program_transform_name=$ac_optarg ;;
953 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958 -psdir | --psdir | --psdi | --psd | --ps)
960 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964 | -silent | --silent | --silen | --sile | --sil)
967 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971 sbindir=$ac_optarg ;;
973 -sharedstatedir | --sharedstatedir | --sharedstatedi \
974 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975 | --sharedst | --shareds | --shared | --share | --shar \
977 ac_prev=sharedstatedir ;;
978 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982 sharedstatedir=$ac_optarg ;;
984 -site | --site | --sit)
986 -site=* | --site=* | --sit=*)
989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
994 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995 | --syscon | --sysco | --sysc | --sys | --sy)
996 ac_prev=sysconfdir ;;
997 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999 sysconfdir=$ac_optarg ;;
1001 -target | --target | --targe | --targ | --tar | --ta | --t)
1002 ac_prev=target_alias ;;
1003 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004 target_alias=$ac_optarg ;;
1006 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009 -version | --version | --versio | --versi | --vers | -V)
1010 ac_init_version=: ;;
1013 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid package name: $ac_package" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019 eval with_$ac_package=\$ac_optarg ;;
1021 -without-* | --without-*)
1022 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid package name: $ac_package" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028 eval with_$ac_package=no ;;
1031 # Obsolete; use --with-x.
1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035 | --x-incl | --x-inc | --x-in | --x-i)
1036 ac_prev=x_includes ;;
1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039 x_includes=$ac_optarg ;;
1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043 ac_prev=x_libraries ;;
1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046 x_libraries=$ac_optarg ;;
1048 -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050 { (exit 1); exit 1; }; }
1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058 { (exit 1); exit 1; }; }
1059 eval $ac_envvar=\$ac_optarg
1060 export $ac_envvar ;;
1063 # FIXME: should be removed in autoconf 3.0.
1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 if test -n "$ac_prev"; then
1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 { echo "$as_me: error: missing argument to $ac_option" >&2
1076 { (exit 1); exit 1; }; }
1079 # Be sure to have absolute directory names.
1080 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1085 eval ac_val=\$$ac_var
1087 [\\/$]* | ?:[\\/]* ) continue;;
1088 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091 { (exit 1); exit 1; }; }
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1099 target=$target_alias
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103 if test "x$build_alias" = x; then
1104 cross_compiling=maybe
1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106 If a cross compiler is detected then cross compile mode will be used." >&2
1107 elif test "x$build_alias" != "x$host_alias"; then
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1115 test "$silent" = yes && exec 6>/dev/null
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121 { echo "$as_me: error: Working directory cannot be determined" >&2
1122 { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124 { echo "$as_me: error: pwd does not report name of working directory" >&2
1125 { (exit 1); exit 1; }; }
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130 ac_srcdir_defaulted=yes
1131 # Try the directory containing this script, then the parent directory.
1132 ac_confdir=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134 X"$0" : 'X\(//\)[^/]' \| \
1135 X"$0" : 'X\(//\)$' \| \
1136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1160 ac_srcdir_defaulted=no
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165 { (exit 1); exit 1; }; }
1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170 { (exit 1); exit 1; }; }
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 for ac_var in $ac_precious_vars; do
1183 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_${ac_var}_value=\$${ac_var}
1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190 # Report the --help message.
1192 if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1196 \`configure' configures this package to adapt to many kinds of systems.
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE. See below for descriptions of some of the useful variables.
1203 Defaults for the options are specified in brackets.
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1216 Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1227 For better control, use the options below.
1229 Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1254 --x-includes=DIR X include files are in DIR
1255 --x-libraries=DIR X library files are in DIR
1259 if test -n "$ac_init_help"; then
1264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1266 --with-x use the X Window System
1268 Some influential environment variables:
1269 CC C compiler command
1270 CFLAGS C compiler flags
1271 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1272 nonstandard directory <lib dir>
1273 LIBS libraries to pass to the linker, e.g. -l<library>
1274 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1275 you have headers in a nonstandard directory <include dir>
1277 XMKMF Path to xmkmf, Makefile generator for X Window System
1279 Use these variables to override the choices made by `configure' or to help
1280 it to find libraries and programs with nonstandard names/locations.
1286 if test "$ac_init_help" = "recursive"; then
1287 # If there are subdirs, report their specific --help.
1288 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1289 test -d "$ac_dir" || continue
1293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1295 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1296 # A ".." for each directory in $ac_dir_suffix.
1297 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1298 case $ac_top_builddir_sub in
1299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1303 ac_abs_top_builddir=$ac_pwd
1304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305 # for backward compatibility:
1306 ac_top_builddir=$ac_top_build_prefix
1309 .) # We are building in place.
1311 ac_top_srcdir=$ac_top_builddir_sub
1312 ac_abs_top_srcdir=$ac_pwd ;;
1313 [\\/]* | ?:[\\/]* ) # Absolute name.
1314 ac_srcdir=$srcdir$ac_dir_suffix;
1315 ac_top_srcdir=$srcdir
1316 ac_abs_top_srcdir=$srcdir ;;
1318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1319 ac_top_srcdir=$ac_top_build_prefix$srcdir
1320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1324 cd "$ac_dir" || { ac_status=$?; continue; }
1325 # Check for guested configure.
1326 if test -f "$ac_srcdir/configure.gnu"; then
1328 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1329 elif test -f "$ac_srcdir/configure"; then
1331 $SHELL "$ac_srcdir/configure" --help=recursive
1333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1335 cd "$ac_pwd" || { ac_status=$?; break; }
1339 test -n "$ac_init_help" && exit $ac_status
1340 if $ac_init_version; then
1343 generated by GNU Autoconf 2.61
1345 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1346 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1347 This configure script is free software; the Free Software Foundation
1348 gives unlimited permission to copy, distribute and modify it.
1352 cat >config.log <<_ACEOF
1353 This file contains any messages produced by compilers while
1354 running configure, to aid debugging if configure makes a mistake.
1356 It was created by $as_me, which was
1357 generated by GNU Autoconf 2.61. Invocation command line was
1369 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1370 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1371 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1372 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1373 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1375 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1376 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1378 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1379 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1380 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1381 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1382 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1383 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1384 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir=.
1393 echo "PATH: $as_dir"
1409 # Keep a trace of the command line.
1410 # Strip out --no-create and --no-recursion so they do not pile up.
1411 # Strip out --silent because we don't want to record it for future runs.
1412 # Also quote any args containing shell meta-characters.
1413 # Make two passes to allow for proper duplicate-argument suppression.
1417 ac_must_keep_next=false
1423 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1425 | -silent | --silent | --silen | --sile | --sil)
1428 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1433 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1434 if test $ac_must_keep_next = true; then
1435 ac_must_keep_next=false # Got value, back to normal.
1438 *=* | --config-cache | -C | -disable-* | --disable-* \
1439 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1440 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1441 | -with-* | --with-* | -without-* | --without-* | --x)
1442 case "$ac_configure_args0 " in
1443 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1446 -* ) ac_must_keep_next=true ;;
1449 ac_configure_args="$ac_configure_args '$ac_arg'"
1454 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1457 # When interrupted or exit'd, cleanup temporary files, and complete
1458 # config.log. We remove comments because anyway the quotes in there
1459 # would cause problems or look ugly.
1460 # WARNING: Use '\'' to represent an apostrophe within the trap.
1461 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1462 trap 'exit_status=$?
1463 # Save into config.log some information that might help in debugging.
1468 ## ---------------- ##
1469 ## Cache variables. ##
1470 ## ---------------- ##
1473 # The following way of writing the cache mishandles newlines in values,
1475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1476 eval ac_val=\$$ac_var
1480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1484 _ | IFS | as_nl) ;; #(
1485 *) $as_unset $ac_var ;;
1490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1491 *${as_nl}ac_space=\ *)
1493 "s/'\''/'\''\\\\'\'''\''/g;
1494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1505 ## ----------------- ##
1506 ## Output variables. ##
1507 ## ----------------- ##
1510 for ac_var in $ac_subst_vars
1512 eval ac_val=\$$ac_var
1514 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1516 echo "$ac_var='\''$ac_val'\''"
1520 if test -n "$ac_subst_files"; then
1522 ## ------------------- ##
1523 ## File substitutions. ##
1524 ## ------------------- ##
1527 for ac_var in $ac_subst_files
1529 eval ac_val=\$$ac_var
1531 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 echo "$ac_var='\''$ac_val'\''"
1538 if test -s confdefs.h; then
1548 test "$ac_signal" != 0 &&
1549 echo "$as_me: caught signal $ac_signal"
1550 echo "$as_me: exit $exit_status"
1552 rm -f core *.core core.conftest.* &&
1553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1556 for ac_signal in 1 2 13 15; do
1557 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1561 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1562 rm -f -r conftest* confdefs.h
1564 # Predefined preprocessor variables.
1566 cat >>confdefs.h <<_ACEOF
1567 #define PACKAGE_NAME "$PACKAGE_NAME"
1571 cat >>confdefs.h <<_ACEOF
1572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1576 cat >>confdefs.h <<_ACEOF
1577 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_STRING "$PACKAGE_STRING"
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1591 # Let the site file select an alternate cache file if it wants to.
1592 # Prefer explicitly selected file to automatically selected ones.
1593 if test -n "$CONFIG_SITE"; then
1594 set x "$CONFIG_SITE"
1595 elif test "x$prefix" != xNONE; then
1596 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1598 set x "$ac_default_prefix/share/config.site" \
1599 "$ac_default_prefix/etc/config.site"
1604 if test -r "$ac_site_file"; then
1605 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1606 echo "$as_me: loading site script $ac_site_file" >&6;}
1607 sed 's/^/| /' "$ac_site_file" >&5
1612 if test -r "$cache_file"; then
1613 # Some versions of bash will fail to source /dev/null (special
1614 # files actually), so we avoid doing that.
1615 if test -f "$cache_file"; then
1616 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1617 echo "$as_me: loading cache $cache_file" >&6;}
1619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1620 *) . "./$cache_file";;
1624 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1625 echo "$as_me: creating cache $cache_file" >&6;}
1629 # Check that the precious variables saved in the cache have kept the same
1631 ac_cache_corrupted=false
1632 for ac_var in $ac_precious_vars; do
1633 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1634 eval ac_new_set=\$ac_env_${ac_var}_set
1635 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1636 eval ac_new_val=\$ac_env_${ac_var}_value
1637 case $ac_old_set,$ac_new_set in
1639 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1640 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1641 ac_cache_corrupted=: ;;
1643 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1644 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1645 ac_cache_corrupted=: ;;
1648 if test "x$ac_old_val" != "x$ac_new_val"; then
1649 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1650 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1651 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1652 echo "$as_me: former value: $ac_old_val" >&2;}
1653 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1654 echo "$as_me: current value: $ac_new_val" >&2;}
1655 ac_cache_corrupted=:
1658 # Pass precious variables to config.status.
1659 if test "$ac_new_set" = set; then
1661 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 *) ac_arg=$ac_var=$ac_new_val ;;
1664 case " $ac_configure_args " in
1665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1666 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1670 if $ac_cache_corrupted; then
1671 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1672 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1673 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1674 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1675 { (exit 1); exit 1; }; }
1695 ac_cpp='$CPP $CPPFLAGS'
1696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test -n "$CC"; then
1737 { echo "$as_me:$LINENO: result: $CC" >&5
1738 echo "${ECHO_T}$CC" >&6; }
1740 { echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6; }
1746 if test -z "$ac_cv_prog_CC"; then
1748 # Extract the first word of "gcc", so it can be a program name with args.
1749 set dummy gcc; ac_word=$2
1750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 if test -n "$ac_ct_CC"; then
1756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 for ac_exec_ext in '' $ac_executable_extensions; do
1764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1765 ac_cv_prog_ac_ct_CC="gcc"
1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1776 if test -n "$ac_ct_CC"; then
1777 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1778 echo "${ECHO_T}$ac_ct_CC" >&6; }
1780 { echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6; }
1784 if test "x$ac_ct_CC" = x; then
1787 case $cross_compiling:$ac_tool_warned in
1789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1790 whose name does not start with the host triplet. If you think this
1791 configuration is useful to you, please write to autoconf@gnu.org." >&5
1792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1793 whose name does not start with the host triplet. If you think this
1794 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1795 ac_tool_warned=yes ;;
1803 if test -z "$CC"; then
1804 if test -n "$ac_tool_prefix"; then
1805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1806 set dummy ${ac_tool_prefix}cc; ac_word=$2
1807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1809 if test "${ac_cv_prog_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 if test -n "$CC"; then
1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1822 ac_cv_prog_CC="${ac_tool_prefix}cc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 if test -n "$CC"; then
1834 { echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6; }
1837 { echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6; }
1844 if test -z "$CC"; then
1845 # Extract the first word of "cc", so it can be a program name with args.
1846 set dummy cc; ac_word=$2
1847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 if test -n "$CC"; then
1853 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1864 ac_prog_rejected=yes
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 if test $ac_prog_rejected = yes; then
1876 # We found a bogon in the path, so make sure we never use it.
1877 set dummy $ac_cv_prog_CC
1879 if test $# != 0; then
1880 # We chose a different compiler from the bogus one.
1881 # However, it has the same basename, so the bogon will be chosen
1882 # first if we set CC to just the basename; use the full file name.
1884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1890 if test -n "$CC"; then
1891 { echo "$as_me:$LINENO: result: $CC" >&5
1892 echo "${ECHO_T}$CC" >&6; }
1894 { echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6; }
1900 if test -z "$CC"; then
1901 if test -n "$ac_tool_prefix"; then
1902 for ac_prog in cl.exe
1904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$CC"; then
1933 { echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6; }
1936 { echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6; }
1941 test -n "$CC" && break
1944 if test -z "$CC"; then
1946 for ac_prog in cl.exe
1948 # Extract the first word of "$ac_prog", so it can be a program name with args.
1949 set dummy $ac_prog; ac_word=$2
1950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$ac_ct_CC"; then
1956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965 ac_cv_prog_ac_ct_CC="$ac_prog"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1976 if test -n "$ac_ct_CC"; then
1977 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978 echo "${ECHO_T}$ac_ct_CC" >&6; }
1980 { echo "$as_me:$LINENO: result: no" >&5
1981 echo "${ECHO_T}no" >&6; }
1985 test -n "$ac_ct_CC" && break
1988 if test "x$ac_ct_CC" = x; then
1991 case $cross_compiling:$ac_tool_warned in
1993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1994 whose name does not start with the host triplet. If you think this
1995 configuration is useful to you, please write to autoconf@gnu.org." >&5
1996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1997 whose name does not start with the host triplet. If you think this
1998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1999 ac_tool_warned=yes ;;
2008 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2009 See \`config.log' for more details." >&5
2010 echo "$as_me: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&2;}
2012 { (exit 1); exit 1; }; }
2014 # Provide some information about the compiler.
2015 echo "$as_me:$LINENO: checking for C compiler version" >&5
2016 ac_compiler=`set X $ac_compile; echo $2`
2017 { (ac_try="$ac_compiler --version >&5"
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2023 (eval "$ac_compiler --version >&5") 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2027 { (ac_try="$ac_compiler -v >&5"
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2033 (eval "$ac_compiler -v >&5") 2>&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }
2037 { (ac_try="$ac_compiler -V >&5"
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2043 (eval "$ac_compiler -V >&5") 2>&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }
2048 cat >conftest.$ac_ext <<_ACEOF
2051 cat confdefs.h >>conftest.$ac_ext
2052 cat >>conftest.$ac_ext <<_ACEOF
2053 /* end confdefs.h. */
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2068 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072 # List of possible output files, starting from the most likely.
2073 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2074 # only as a last resort. b.out is created by i960 compilers.
2075 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2077 # The IRIX 6 linker writes into existing files which may not be
2078 # executable, retaining their permissions. Remove them first so a
2079 # subsequent execution test works.
2081 for ac_file in $ac_files
2084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2085 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2090 if { (ac_try="$ac_link_default"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_link_default") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; then
2100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2101 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2102 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2103 # so that the user can short-circuit this test for compilers unknown to
2105 for ac_file in $ac_files ''
2107 test -f "$ac_file" || continue
2109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2112 # We found the default executable, but exeext='' is most
2116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 # We set ac_cv_exeext here because the later test for it is not
2121 # safe: cross compilers may not add the suffix if given an `-o'
2122 # argument, so we may need to know it at that point already.
2123 # Even if this section looks crufty: it has the advantage of
2130 test "$ac_cv_exeext" = no && ac_cv_exeext=
2136 { echo "$as_me:$LINENO: result: $ac_file" >&5
2137 echo "${ECHO_T}$ac_file" >&6; }
2138 if test -z "$ac_file"; then
2139 echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: C compiler cannot create executables
2145 See \`config.log' for more details." >&2;}
2146 { (exit 77); exit 77; }; }
2149 ac_exeext=$ac_cv_exeext
2151 # Check that the compiler produces executables we can run. If not, either
2152 # the compiler is broken, or we cross compile.
2153 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2156 # If not cross compiling, check that we can run a simple program.
2157 if test "$cross_compiling" != yes; then
2158 if { ac_try='./$ac_file'
2159 { (case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_try") 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; }; then
2170 if test "$cross_compiling" = maybe; then
2173 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot run C compiled programs.
2177 If you meant to cross compile, use \`--host'.
2178 See \`config.log' for more details." >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: yes" >&5
2184 echo "${ECHO_T}yes" >&6; }
2186 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2187 ac_clean_files=$ac_clean_files_save
2188 # Check that the compiler produces executables we can run. If not, either
2189 # the compiler is broken, or we cross compile.
2190 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2191 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2192 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2193 echo "${ECHO_T}$cross_compiling" >&6; }
2195 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2196 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2197 if { (ac_try="$ac_link"
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203 (eval "$ac_link") 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2208 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2209 # work properly (i.e., refer to `conftest.exe'), while it won't with
2211 for ac_file in conftest.exe conftest conftest.*; do
2212 test -f "$ac_file" || continue
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2215 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2224 See \`config.log' for more details." >&2;}
2225 { (exit 1); exit 1; }; }
2228 rm -f conftest$ac_cv_exeext
2229 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2230 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2232 rm -f conftest.$ac_ext
2233 EXEEXT=$ac_cv_exeext
2235 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2236 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2237 if test "${ac_cv_objext+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 cat >conftest.$ac_ext <<_ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2255 rm -f conftest.o conftest.obj
2256 if { (ac_try="$ac_compile"
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_compile") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 for ac_file in conftest.o conftest.obj conftest.*; do
2267 test -f "$ac_file" || continue;
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2287 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2288 echo "${ECHO_T}$ac_cv_objext" >&6; }
2289 OBJEXT=$ac_cv_objext
2291 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2292 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2293 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2314 rm -f conftest.$ac_objext
2315 if { (ac_try="$ac_compile"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } && {
2328 test -z "$ac_c_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest.$ac_objext; then
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2343 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2344 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2345 GCC=`test $ac_compiler_gnu = yes && echo yes`
2346 ac_test_CFLAGS=${CFLAGS+set}
2347 ac_save_CFLAGS=$CFLAGS
2348 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2349 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_cc_g+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 ac_save_c_werror_flag=$ac_c_werror_flag
2354 ac_c_werror_flag=yes
2357 cat >conftest.$ac_ext <<_ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 rm -f conftest.$ac_objext
2373 if { (ac_try="$ac_compile"
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (ac_try="$ac_compile"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compile") 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } && {
2424 test -z "$ac_c_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest.$ac_objext; then
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2432 ac_c_werror_flag=$ac_save_c_werror_flag
2434 cat >conftest.$ac_ext <<_ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } && {
2463 test -z "$ac_c_werror_flag" ||
2464 test ! -s conftest.err
2465 } && test -s conftest.$ac_objext; then
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481 ac_c_werror_flag=$ac_save_c_werror_flag
2483 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2494 if test "$GCC" = yes; then
2500 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2501 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_cc_c89+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 ac_cv_prog_cc_c89=no
2507 cat >conftest.$ac_ext <<_ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2531 s = g (p, va_arg (v,int));
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2537 function prototypes and stuff, but not '\xHH' hex character constants.
2538 These don't provoke an error unfortunately, instead are silently treated
2539 as 'x'. The following induces an error, until -std is added to get
2540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2541 array size at least. It's necessary to write '\x00'==0 to get something
2542 that's true only with -std. */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2546 inside strings and character constants. */
2548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567 CC="$ac_save_CC $ac_arg"
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } && {
2582 test -z "$ac_c_werror_flag" ||
2583 test ! -s conftest.err
2584 } && test -s conftest.$ac_objext; then
2585 ac_cv_prog_cc_c89=$ac_arg
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f core conftest.err conftest.$ac_objext
2594 test "x$ac_cv_prog_cc_c89" != "xno" && break
2596 rm -f conftest.$ac_ext
2601 case "x$ac_cv_prog_cc_c89" in
2603 { echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6; } ;;
2606 { echo "$as_me:$LINENO: result: unsupported" >&5
2607 echo "${ECHO_T}unsupported" >&6; } ;;
2609 CC="$CC $ac_cv_prog_cc_c89"
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 if test "x$CC" = xgcc; then
2624 XX_CFLAGS="-Wall -pedantic"
2628 XX_CFLAGS="-std1 -O2 -g3"
2637 # Extract the first word of "rm", so it can be a program name with args.
2638 set dummy rm; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_RM+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 if test -n "$RM"; then
2645 ac_cv_prog_RM="$RM" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 if test -n "$RM"; then
2666 { echo "$as_me:$LINENO: result: $RM" >&5
2667 echo "${ECHO_T}$RM" >&6; }
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2674 # Extract the first word of "cp", so it can be a program name with args.
2675 set dummy cp; ac_word=$2
2676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_CP+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 if test -n "$CP"; then
2682 ac_cv_prog_CP="$CP" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test -n "$CP"; then
2703 { echo "$as_me:$LINENO: result: $CP" >&5
2704 echo "${ECHO_T}$CP" >&6; }
2706 { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2719 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2720 # On Suns, sometimes $CPP names a directory.
2721 if test -n "$CPP" && test -d "$CPP"; then
2724 if test -z "$CPP"; then
2725 if test "${ac_cv_prog_CPP+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 # Double quotes because CPP needs to be expanded
2729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2732 for ac_c_preproc_warn_flag in '' yes
2734 # Use a header file that comes with gcc, so configuring glibc
2735 # with a fresh cross-compiler works.
2736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2737 # <limits.h> exists even on freestanding compilers.
2738 # On the NeXT, cc -E runs the code through the compiler's parser,
2739 # not just through cpp. "Syntax error" is here to catch this case.
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2747 # include <limits.h>
2749 # include <assert.h>
2753 if { (ac_try="$ac_cpp conftest.$ac_ext"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } >/dev/null && {
2766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2767 test ! -s conftest.err
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2774 # Broken: fails on valid input.
2778 rm -f conftest.err conftest.$ac_ext
2780 # OK, works on sane cases. Now check whether nonexistent headers
2781 # can be detected and how.
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2788 #include <ac_nonexistent.h>
2790 if { (ac_try="$ac_cpp conftest.$ac_ext"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } >/dev/null && {
2803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2804 test ! -s conftest.err
2806 # Broken: success on invalid input.
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 # Passes both tests.
2817 rm -f conftest.err conftest.$ac_ext
2820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2821 rm -f conftest.err conftest.$ac_ext
2822 if $ac_preproc_ok; then
2834 { echo "$as_me:$LINENO: result: $CPP" >&5
2835 echo "${ECHO_T}$CPP" >&6; }
2837 for ac_c_preproc_warn_flag in '' yes
2839 # Use a header file that comes with gcc, so configuring glibc
2840 # with a fresh cross-compiler works.
2841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2842 # <limits.h> exists even on freestanding compilers.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.$ac_ext <<_ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2852 # include <limits.h>
2854 # include <assert.h>
2858 if { (ac_try="$ac_cpp conftest.$ac_ext"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2866 grep -v '^ *+' conftest.er1 >conftest.err
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } >/dev/null && {
2871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2872 test ! -s conftest.err
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2879 # Broken: fails on valid input.
2883 rm -f conftest.err conftest.$ac_ext
2885 # OK, works on sane cases. Now check whether nonexistent headers
2886 # can be detected and how.
2887 cat >conftest.$ac_ext <<_ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893 #include <ac_nonexistent.h>
2895 if { (ac_try="$ac_cpp conftest.$ac_ext"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } >/dev/null && {
2908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2911 # Broken: success on invalid input.
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Passes both tests.
2922 rm -f conftest.err conftest.$ac_ext
2925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2926 rm -f conftest.err conftest.$ac_ext
2927 if $ac_preproc_ok; then
2930 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2945 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2946 if test "${ac_cv_path_GREP+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 # Extract the first word of "grep ggrep" to use in msg output
2950 if test -z "$GREP"; then
2951 set dummy grep ggrep; ac_prog_name=$2
2952 if test "${ac_cv_path_GREP+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 ac_path_GREP_found=false
2956 # Loop through the user's path and test for each of PROGNAME-LIST
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2961 test -z "$as_dir" && as_dir=.
2962 for ac_prog in grep ggrep; do
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2965 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2966 # Check for GNU ac_path_GREP and select it if it is found.
2967 # Check for GNU $ac_path_GREP
2968 case `"$ac_path_GREP" --version 2>&1` in
2970 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2973 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2976 cat "conftest.in" "conftest.in" >"conftest.tmp"
2977 mv "conftest.tmp" "conftest.in"
2978 cp "conftest.in" "conftest.nl"
2979 echo 'GREP' >> "conftest.nl"
2980 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2982 ac_count=`expr $ac_count + 1`
2983 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2984 # Best one so far, save it but keep looking for a better one
2985 ac_cv_path_GREP="$ac_path_GREP"
2986 ac_path_GREP_max=$ac_count
2988 # 10*(2^10) chars as input seems more than enough
2989 test $ac_count -gt 10 && break
2991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2995 $ac_path_GREP_found && break 3
3005 GREP="$ac_cv_path_GREP"
3006 if test -z "$GREP"; then
3007 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3008 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3009 { (exit 1); exit 1; }; }
3013 ac_cv_path_GREP=$GREP
3018 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3019 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3020 GREP="$ac_cv_path_GREP"
3023 { echo "$as_me:$LINENO: checking for egrep" >&5
3024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3025 if test "${ac_cv_path_EGREP+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3029 then ac_cv_path_EGREP="$GREP -E"
3031 # Extract the first word of "egrep" to use in msg output
3032 if test -z "$EGREP"; then
3033 set dummy egrep; ac_prog_name=$2
3034 if test "${ac_cv_path_EGREP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 ac_path_EGREP_found=false
3038 # Loop through the user's path and test for each of PROGNAME-LIST
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3043 test -z "$as_dir" && as_dir=.
3044 for ac_prog in egrep; do
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3048 # Check for GNU ac_path_EGREP and select it if it is found.
3049 # Check for GNU $ac_path_EGREP
3050 case `"$ac_path_EGREP" --version 2>&1` in
3052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3055 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3058 cat "conftest.in" "conftest.in" >"conftest.tmp"
3059 mv "conftest.tmp" "conftest.in"
3060 cp "conftest.in" "conftest.nl"
3061 echo 'EGREP' >> "conftest.nl"
3062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3064 ac_count=`expr $ac_count + 1`
3065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3066 # Best one so far, save it but keep looking for a better one
3067 ac_cv_path_EGREP="$ac_path_EGREP"
3068 ac_path_EGREP_max=$ac_count
3070 # 10*(2^10) chars as input seems more than enough
3071 test $ac_count -gt 10 && break
3073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3077 $ac_path_EGREP_found && break 3
3087 EGREP="$ac_cv_path_EGREP"
3088 if test -z "$EGREP"; then
3089 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3090 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3091 { (exit 1); exit 1; }; }
3095 ac_cv_path_EGREP=$EGREP
3101 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3102 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3103 EGREP="$ac_cv_path_EGREP"
3106 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3108 if test "${ac_cv_header_stdc+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_cv_header_stdc=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 ac_cv_header_stdc=no
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 if test $ac_cv_header_stdc = yes; then
3158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169 $EGREP "memchr" >/dev/null 2>&1; then
3172 ac_cv_header_stdc=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3190 $EGREP "free" >/dev/null 2>&1; then
3193 ac_cv_header_stdc=no
3199 if test $ac_cv_header_stdc = yes; then
3200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3201 if test "$cross_compiling" = yes; then
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 #if ((' ' & 0x0FF) == 0x020)
3213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3216 # define ISLOWER(c) \
3217 (('a' <= (c) && (c) <= 'i') \
3218 || ('j' <= (c) && (c) <= 'r') \
3219 || ('s' <= (c) && (c) <= 'z'))
3220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3228 for (i = 0; i < 256; i++)
3229 if (XOR (islower (i), ISLOWER (i))
3230 || toupper (i) != TOUPPER (i))
3235 rm -f conftest$ac_exeext
3236 if { (ac_try="$ac_link"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_link") 2>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: program exited with status $ac_status" >&5
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3262 ac_cv_header_stdc=no
3264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3270 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3271 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3272 if test $ac_cv_header_stdc = yes; then
3274 cat >>confdefs.h <<\_ACEOF
3275 #define STDC_HEADERS 1
3280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3291 inttypes.h stdint.h unistd.h
3293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 $ac_includes_default
3307 #include <$ac_header>
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } && {
3323 test -z "$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3325 } && test -s conftest.$ac_objext; then
3326 eval "$as_ac_Header=yes"
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 eval "$as_ac_Header=no"
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_res=`eval echo '${'$as_ac_Header'}'`
3337 { echo "$as_me:$LINENO: result: $ac_res" >&5
3338 echo "${ECHO_T}$ac_res" >&6; }
3339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3340 cat >>confdefs.h <<_ACEOF
3341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3354 for ac_header in libintl.h stddef.h stdlib.h string.h unistd.h
3356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 ac_res=`eval echo '${'$as_ac_Header'}'`
3364 { echo "$as_me:$LINENO: result: $ac_res" >&5
3365 echo "${ECHO_T}$ac_res" >&6; }
3367 # Is the header compilable?
3368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 $ac_includes_default
3377 #include <$ac_header>
3379 rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_compile") 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } && {
3393 test -z "$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 } && test -s conftest.$ac_objext; then
3396 ac_header_compiler=yes
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 ac_header_compiler=no
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3406 echo "${ECHO_T}$ac_header_compiler" >&6; }
3408 # Is the header present?
3409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #include <$ac_header>
3419 if { (ac_try="$ac_cpp conftest.$ac_ext"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } >/dev/null && {
3432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3435 ac_header_preproc=yes
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 ac_header_preproc=no
3443 rm -f conftest.err conftest.$ac_ext
3444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3445 echo "${ECHO_T}$ac_header_preproc" >&6; }
3447 # So? What about this header?
3448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3454 ac_header_preproc=yes
3457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 eval "$as_ac_Header=\$ac_header_preproc"
3479 ac_res=`eval echo '${'$as_ac_Header'}'`
3480 { echo "$as_me:$LINENO: result: $ac_res" >&5
3481 echo "${ECHO_T}$ac_res" >&6; }
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485 cat >>confdefs.h <<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3494 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3495 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3496 if test "${ac_cv_c_const+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3509 /* FIXME: Include the comments suggested by Paul. */
3511 /* Ultrix mips cc rejects this. */
3512 typedef int charset[2];
3514 /* SunOS 4.1.1 cc rejects this. */
3515 char const *const *pcpcc;
3517 /* NEC SVR4.0.2 mips cc rejects this. */
3518 struct point {int x, y;};
3519 static struct point const zero = {0,0};
3520 /* AIX XL C 1.02.0.0 rejects this.
3521 It does not let you subtract one const X* pointer from another in
3522 an arm of an if-expression whose if-part is not a constant
3524 const char *g = "string";
3525 pcpcc = &g + (g ? g-g : 0);
3526 /* HPUX 7.0 cc rejects these. */
3528 ppc = (char**) pcpcc;
3529 pcpcc = (char const *const *) ppc;
3530 { /* SCO 3.2v4 cc rejects this. */
3532 char const *s = 0 ? (char *) 0 : (char const *) 0;
3537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3539 const int *foo = &x[0];
3542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3543 typedef const int *iptr;
3547 { /* AIX XL C 1.02.0.0 rejects this saying
3548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3549 struct s { int j; const int *ap[3]; };
3550 struct s *b; b->j = 5;
3552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3556 return !cs[0] && !zero.x;
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3591 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3592 if test $ac_cv_c_const = no; then
3594 cat >>confdefs.h <<\_ACEOF
3602 for ac_header in stdlib.h
3604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_res=`eval echo '${'$as_ac_Header'}'`
3612 { echo "$as_me:$LINENO: result: $ac_res" >&5
3613 echo "${ECHO_T}$ac_res" >&6; }
3615 # Is the header compilable?
3616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 $ac_includes_default
3625 #include <$ac_header>
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_header_compiler=yes
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_header_compiler=no
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6; }
3656 # Is the header present?
3657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <$ac_header>
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } >/dev/null && {
3680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3683 ac_header_preproc=yes
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 ac_header_preproc=no
3691 rm -f conftest.err conftest.$ac_ext
3692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693 echo "${ECHO_T}$ac_header_preproc" >&6; }
3695 # So? What about this header?
3696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3702 ac_header_preproc=yes
3705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 eval "$as_ac_Header=\$ac_header_preproc"
3727 ac_res=`eval echo '${'$as_ac_Header'}'`
3728 { echo "$as_me:$LINENO: result: $ac_res" >&5
3729 echo "${ECHO_T}$ac_res" >&6; }
3732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3733 cat >>confdefs.h <<_ACEOF
3734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3741 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3742 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
3743 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 if test "$cross_compiling" = yes; then
3747 ac_cv_func_malloc_0_nonnull=no
3749 cat >conftest.$ac_ext <<_ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3756 # include <stdlib.h>
3764 return ! malloc (0);
3769 rm -f conftest$ac_exeext
3770 if { (ac_try="$ac_link"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_link") 2>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3780 { (case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_try") 2>&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_func_malloc_0_nonnull=yes
3791 echo "$as_me: program exited with status $ac_status" >&5
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3796 ac_cv_func_malloc_0_nonnull=no
3798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3803 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3804 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
3805 if test $ac_cv_func_malloc_0_nonnull = yes; then
3807 cat >>confdefs.h <<\_ACEOF
3808 #define HAVE_MALLOC 1
3812 cat >>confdefs.h <<\_ACEOF
3813 #define HAVE_MALLOC 0
3816 case " $LIBOBJS " in
3817 *" malloc.$ac_objext "* ) ;;
3818 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3823 cat >>confdefs.h <<\_ACEOF
3824 #define malloc rpl_malloc
3831 { echo "$as_me:$LINENO: checking for working memcmp" >&5
3832 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
3833 if test "${ac_cv_func_memcmp_working+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test "$cross_compiling" = yes; then
3837 ac_cv_func_memcmp_working=no
3839 cat >conftest.$ac_ext <<_ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3845 $ac_includes_default
3850 /* Some versions of memcmp are not 8-bit clean. */
3851 char c0 = '\100', c1 = '\200', c2 = '\201';
3852 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3855 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3856 or more and with at least one buffer not starting on a 4-byte boundary.
3857 William Lewis provided this test program. */
3862 for (i = 0; i < 4; i++)
3866 strcpy (a, "--------01111111");
3867 strcpy (b, "--------10000000");
3868 if (memcmp (a, b, 16) >= 0)
3878 rm -f conftest$ac_exeext
3879 if { (ac_try="$ac_link"
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_link") 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3889 { (case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_try") 2>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 ac_cv_func_memcmp_working=yes
3900 echo "$as_me: program exited with status $ac_status" >&5
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3905 ac_cv_func_memcmp_working=no
3907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3912 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
3913 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
3914 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
3915 *" memcmp.$ac_objext "* ) ;;
3916 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3922 for ac_header in stdlib.h
3924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 ac_res=`eval echo '${'$as_ac_Header'}'`
3932 { echo "$as_me:$LINENO: result: $ac_res" >&5
3933 echo "${ECHO_T}$ac_res" >&6; }
3935 # Is the header compilable?
3936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 $ac_includes_default
3945 #include <$ac_header>
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 ac_header_compiler=yes
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_header_compiler=no
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3974 echo "${ECHO_T}$ac_header_compiler" >&6; }
3976 # Is the header present?
3977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 #include <$ac_header>
3987 if { (ac_try="$ac_cpp conftest.$ac_ext"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } >/dev/null && {
4000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4001 test ! -s conftest.err
4003 ac_header_preproc=yes
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 ac_header_preproc=no
4011 rm -f conftest.err conftest.$ac_ext
4012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4013 echo "${ECHO_T}$ac_header_preproc" >&6; }
4015 # So? What about this header?
4016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4022 ac_header_preproc=yes
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 eval "$as_ac_Header=\$ac_header_preproc"
4047 ac_res=`eval echo '${'$as_ac_Header'}'`
4048 { echo "$as_me:$LINENO: result: $ac_res" >&5
4049 echo "${ECHO_T}$ac_res" >&6; }
4052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
4062 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
4063 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 if test "$cross_compiling" = yes; then
4067 ac_cv_func_realloc_0_nonnull=no
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4076 # include <stdlib.h>
4084 return ! realloc (0, 0);
4089 rm -f conftest$ac_exeext
4090 if { (ac_try="$ac_link"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_link") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4100 { (case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_try") 2>&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_cv_func_realloc_0_nonnull=yes
4111 echo "$as_me: program exited with status $ac_status" >&5
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_cv_func_realloc_0_nonnull=no
4118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4123 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
4124 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
4125 if test $ac_cv_func_realloc_0_nonnull = yes; then
4127 cat >>confdefs.h <<\_ACEOF
4128 #define HAVE_REALLOC 1
4132 cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_REALLOC 0
4136 case " $LIBOBJS " in
4137 *" realloc.$ac_objext "* ) ;;
4138 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4143 cat >>confdefs.h <<\_ACEOF
4144 #define realloc rpl_realloc
4152 for ac_func in vprintf
4154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4168 #define $ac_func innocuous_$ac_func
4170 /* System header to define __stub macros and hopefully few prototypes,
4171 which can conflict with char $ac_func (); below.
4172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173 <limits.h> exists even on freestanding compilers. */
4176 # include <limits.h>
4178 # include <assert.h>
4183 /* Override any GCC internal prototype to avoid an error.
4184 Use char because int might match the return type of a GCC
4185 builtin and then its argument prototype would still apply. */
4190 /* The GNU C library defines this for functions which it implements
4191 to always fail with ENOSYS. Some functions are actually named
4192 something starting with __ and the normal name is an alias. */
4193 #if defined __stub_$ac_func || defined __stub___$ac_func
4205 rm -f conftest.$ac_objext conftest$ac_exeext
4206 if { (ac_try="$ac_link"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_link") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && {
4219 test -z "$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest$ac_exeext &&
4222 $as_test_x conftest$ac_exeext; then
4223 eval "$as_ac_var=yes"
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 eval "$as_ac_var=no"
4231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4232 conftest$ac_exeext conftest.$ac_ext
4234 ac_res=`eval echo '${'$as_ac_var'}'`
4235 { echo "$as_me:$LINENO: result: $ac_res" >&5
4236 echo "${ECHO_T}$ac_res" >&6; }
4237 if test `eval echo '${'$as_ac_var'}'` = yes; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4242 { echo "$as_me:$LINENO: checking for _doprnt" >&5
4243 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
4244 if test "${ac_cv_func__doprnt+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4255 #define _doprnt innocuous__doprnt
4257 /* System header to define __stub macros and hopefully few prototypes,
4258 which can conflict with char _doprnt (); below.
4259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 <limits.h> exists even on freestanding compilers. */
4263 # include <limits.h>
4265 # include <assert.h>
4270 /* Override any GCC internal prototype to avoid an error.
4271 Use char because int might match the return type of a GCC
4272 builtin and then its argument prototype would still apply. */
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined __stub__doprnt || defined __stub____doprnt
4292 rm -f conftest.$ac_objext conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_link") 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && {
4306 test -z "$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest$ac_exeext &&
4309 $as_test_x conftest$ac_exeext; then
4310 ac_cv_func__doprnt=yes
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_func__doprnt=no
4318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4319 conftest$ac_exeext conftest.$ac_ext
4321 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4322 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
4323 if test $ac_cv_func__doprnt = yes; then
4325 cat >>confdefs.h <<\_ACEOF
4326 #define HAVE_DOPRNT 1
4341 for ac_func in memmove memset strchr strdup strrchr strstr
4343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4357 #define $ac_func innocuous_$ac_func
4359 /* System header to define __stub macros and hopefully few prototypes,
4360 which can conflict with char $ac_func (); below.
4361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 <limits.h> exists even on freestanding compilers. */
4365 # include <limits.h>
4367 # include <assert.h>
4372 /* Override any GCC internal prototype to avoid an error.
4373 Use char because int might match the return type of a GCC
4374 builtin and then its argument prototype would still apply. */
4379 /* The GNU C library defines this for functions which it implements
4380 to always fail with ENOSYS. Some functions are actually named
4381 something starting with __ and the normal name is an alias. */
4382 #if defined __stub_$ac_func || defined __stub___$ac_func
4394 rm -f conftest.$ac_objext conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_link") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } && {
4408 test -z "$ac_c_werror_flag" ||
4409 test ! -s conftest.err
4410 } && test -s conftest$ac_exeext &&
4411 $as_test_x conftest$ac_exeext; then
4412 eval "$as_ac_var=yes"
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 eval "$as_ac_var=no"
4420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4421 conftest$ac_exeext conftest.$ac_ext
4423 ac_res=`eval echo '${'$as_ac_var'}'`
4424 { echo "$as_me:$LINENO: result: $ac_res" >&5
4425 echo "${ECHO_T}$ac_res" >&6; }
4426 if test `eval echo '${'$as_ac_var'}'` = yes; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4438 if test -z "$PKG_CONFIG"; then
4439 # Extract the first word of "pkg-config", so it can be a program name with args.
4440 set dummy pkg-config; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4471 if test -n "$PKG_CONFIG"; then
4472 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4473 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4482 if test "$PKG_CONFIG" = "no" ; then
4483 echo "*** The pkg-config script could not be found. Make sure it is"
4484 echo "*** in your path, or set the PKG_CONFIG environment variable"
4485 echo "*** to the full path to pkg-config."
4486 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4488 PKG_CONFIG_MIN_VERSION=0.9.0
4489 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4490 { echo "$as_me:$LINENO: checking for freetype2 >= 2.0" >&5
4491 echo $ECHO_N "checking for freetype2 >= 2.0... $ECHO_C" >&6; }
4493 if $PKG_CONFIG --exists "freetype2 >= 2.0" ; then
4494 { echo "$as_me:$LINENO: result: yes" >&5
4495 echo "${ECHO_T}yes" >&6; }
4498 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
4499 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
4500 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0"`
4501 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
4502 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
4504 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
4505 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
4506 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0"`
4507 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
4508 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
4512 ## If we have a custom action on failure, don't print errors, but
4513 ## do set a variable so people can do so.
4514 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.0"`
4515 echo $FREETYPE_PKG_ERRORS
4521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4526 if test $succeeded = yes; then
4527 DEFINES="-DHAVE_FREETYPE" CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS" LIBS="$LIBS $FREETYPE_LIBS"
4529 { { echo "$as_me:$LINENO: error: Library requirements (freetype2 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
4530 echo "$as_me: error: Library requirements (freetype2 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
4531 { (exit 1); exit 1; }; }
4537 if test -z "$PKG_CONFIG"; then
4538 # Extract the first word of "pkg-config", so it can be a program name with args.
4539 set dummy pkg-config; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
4569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4570 if test -n "$PKG_CONFIG"; then
4571 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4572 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4581 if test "$PKG_CONFIG" = "no" ; then
4582 echo "*** The pkg-config script could not be found. Make sure it is"
4583 echo "*** in your path, or set the PKG_CONFIG environment variable"
4584 echo "*** to the full path to pkg-config."
4585 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
4587 PKG_CONFIG_MIN_VERSION=0.9.0
4588 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4589 { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.6" >&5
4590 echo $ECHO_N "checking for gtk+-2.0 >= 2.6... $ECHO_C" >&6; }
4592 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.6" ; then
4593 { echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6; }
4597 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
4598 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
4599 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6"`
4600 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
4601 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
4603 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
4604 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
4605 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6"`
4606 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
4607 echo "${ECHO_T}$GTK_LIBS" >&6; }
4611 ## If we have a custom action on failure, don't print errors, but
4612 ## do set a variable so people can do so.
4613 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6"`
4614 echo $GTK_PKG_ERRORS
4620 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
4621 echo "*** See http://www.freedesktop.org/software/pkgconfig"
4625 if test $succeeded = yes; then
4626 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"
4628 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
4629 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
4630 { (exit 1); exit 1; }; }
4634 { echo "$as_me:$LINENO: checking for hbf.c" >&5
4635 echo $ECHO_N "checking for hbf.c... $ECHO_C" >&6; }
4636 if test "${ac_cv_file_hbf_c+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 test "$cross_compiling" = yes &&
4640 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4641 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4642 { (exit 1); exit 1; }; }
4643 if test -r "hbf.c"; then
4644 ac_cv_file_hbf_c=yes
4649 { echo "$as_me:$LINENO: result: $ac_cv_file_hbf_c" >&5
4650 echo "${ECHO_T}$ac_cv_file_hbf_c" >&6; }
4651 if test $ac_cv_file_hbf_c = yes; then
4652 DEFINES="$DEFINES -DHAVE_HBF" HBFSRC="hbf.c" HBFOBJ="hbf.o"
4656 { echo "$as_me:$LINENO: checking for X" >&5
4657 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4660 # Check whether --with-x was given.
4661 if test "${with_x+set}" = set; then
4665 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4666 if test "x$with_x" = xno; then
4667 # The user explicitly disabled X.
4670 case $x_includes,$x_libraries in #(
4671 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4672 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4673 { (exit 1); exit 1; }; };; #(
4674 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 # One or both of the vars are not set, and there is no cached value.
4678 ac_x_includes=no ac_x_libraries=no
4679 rm -f -r conftest.dir
4680 if mkdir conftest.dir; then
4682 cat >Imakefile <<'_ACEOF'
4684 @echo incroot='${INCROOT}'
4686 @echo usrlibdir='${USRLIBDIR}'
4688 @echo libdir='${LIBDIR}'
4690 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4691 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4692 for ac_var in incroot usrlibdir libdir; do
4693 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4695 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4696 for ac_extension in a so sl; do
4697 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4698 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4699 ac_im_usrlibdir=$ac_im_libdir; break
4702 # Screen out bogus values from the imake configuration. They are
4703 # bogus both because they are the default anyway, and because
4704 # using them would break gcc on systems where it needs fixed includes.
4705 case $ac_im_incroot in
4706 /usr/include) ac_x_includes= ;;
4707 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4709 case $ac_im_usrlibdir in
4711 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4715 rm -f -r conftest.dir
4718 # Standard set of common directories for X headers.
4719 # Check X11 before X11Rn because it is often a symlink to the current release.
4731 /usr/local/X11/include
4732 /usr/local/X11R6/include
4733 /usr/local/X11R5/include
4734 /usr/local/X11R4/include
4736 /usr/local/include/X11
4737 /usr/local/include/X11R6
4738 /usr/local/include/X11R5
4739 /usr/local/include/X11R4
4743 /usr/XFree86/include/X11
4747 /usr/unsupported/include
4749 /usr/local/x11r5/include
4750 /usr/lpp/Xamples/include
4752 /usr/openwin/include
4753 /usr/openwin/share/include'
4755 if test "$ac_x_includes" = no; then
4756 # Guess where to find include files, by looking for Xlib.h.
4757 # First, try using that file with no special directory specified.
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <X11/Xlib.h>
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4782 # We can compile using X headers with no special include directory.
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 for ac_dir in $ac_x_header_dirs; do
4789 if test -r "$ac_dir/X11/Xlib.h"; then
4790 ac_x_includes=$ac_dir
4796 rm -f conftest.err conftest.$ac_ext
4797 fi # $ac_x_includes = no
4799 if test "$ac_x_libraries" = no; then
4800 # Check for the libraries.
4801 # See if we find them without any special options.
4802 # Don't add to $LIBS permanently.
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <X11/Xlib.h>
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (ac_try="$ac_link"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_link") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest$ac_exeext &&
4837 $as_test_x conftest$ac_exeext; then
4839 # We can link X programs with no special library path.
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4846 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4848 # Don't even attempt the hair of trying to link an X program!
4849 for ac_extension in a so sl; do
4850 if test -r "$ac_dir/libX11.$ac_extension"; then
4851 ac_x_libraries=$ac_dir
4858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4859 conftest$ac_exeext conftest.$ac_ext
4860 fi # $ac_x_libraries = no
4862 case $ac_x_includes,$ac_x_libraries in #(
4864 # Didn't find X, or a directory has "'" in its name.
4865 ac_cv_have_x="have_x=no";; #(
4867 # Record where we found X for the cache.
4868 ac_cv_have_x="have_x=yes\
4869 ac_x_includes='$ac_x_includes'\
4870 ac_x_libraries='$ac_x_libraries'"
4876 eval "$ac_cv_have_x"
4879 if test "$have_x" != yes; then
4880 { echo "$as_me:$LINENO: result: $have_x" >&5
4881 echo "${ECHO_T}$have_x" >&6; }
4884 # If each of the values was on the command line, it overrides each guess.
4885 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4886 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4887 # Update the cache value to reflect the command line values.
4888 ac_cv_have_x="have_x=yes\
4889 ac_x_includes='$x_includes'\
4890 ac_x_libraries='$x_libraries'"
4891 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4892 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4895 if test "$no_x" = yes; then
4896 # Not all programs may use this symbol, but it does not hurt to define it.
4898 cat >>confdefs.h <<\_ACEOF
4899 #define X_DISPLAY_MISSING 1
4902 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4904 if test -n "$x_includes"; then
4905 X_CFLAGS="$X_CFLAGS -I$x_includes"
4908 # It would also be nice to do this for all -L options, not just this one.
4909 if test -n "$x_libraries"; then
4910 X_LIBS="$X_LIBS -L$x_libraries"
4911 # For Solaris; some versions of Sun CC require a space after -R and
4912 # others require no space. Words are not sufficient . . . .
4913 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4914 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4915 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4916 ac_xsave_c_werror_flag=$ac_c_werror_flag
4917 ac_c_werror_flag=yes
4918 cat >conftest.$ac_ext <<_ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (ac_try="$ac_link"
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_link") 2>conftest.er1
4942 grep -v '^ *+' conftest.er1 >conftest.err
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && {
4947 test -z "$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 } && test -s conftest$ac_exeext &&
4950 $as_test_x conftest$ac_exeext; then
4951 { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4953 X_LIBS="$X_LIBS -R$x_libraries"
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 LIBS="$ac_xsave_LIBS -R $x_libraries"
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (ac_try="$ac_link"
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_link") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest$ac_exeext &&
4991 $as_test_x conftest$ac_exeext; then
4992 { echo "$as_me:$LINENO: result: yes" >&5
4993 echo "${ECHO_T}yes" >&6; }
4994 X_LIBS="$X_LIBS -R $x_libraries"
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 { echo "$as_me:$LINENO: result: neither works" >&5
5000 echo "${ECHO_T}neither works" >&6; }
5003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5004 conftest$ac_exeext conftest.$ac_ext
5007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5008 conftest$ac_exeext conftest.$ac_ext
5009 ac_c_werror_flag=$ac_xsave_c_werror_flag
5013 # Check for system-dependent libraries X programs must link with.
5014 # Do this before checking for the system-independent R6 libraries
5015 # (-lICE), since we may need -lsocket or whatever for X linking.
5017 if test "$ISC" = yes; then
5018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5020 # Martyn Johnson says this is needed for Ultrix, if the X
5021 # libraries were built with DECnet support. And Karl Berry says
5022 # the Alpha needs dnet_stub (dnet does not exist).
5023 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5024 cat >conftest.$ac_ext <<_ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5031 /* Override any GCC internal prototype to avoid an error.
5032 Use char because int might match the return type of a GCC
5033 builtin and then its argument prototype would still apply. */
5037 char XOpenDisplay ();
5041 return XOpenDisplay ();
5046 rm -f conftest.$ac_objext conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_link") 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && {
5060 test -z "$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 } && test -s conftest$ac_exeext &&
5063 $as_test_x conftest$ac_exeext; then
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5070 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5071 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 ac_check_lib_save_LIBS=$LIBS
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5083 /* Override any GCC internal prototype to avoid an error.
5084 Use char because int might match the return type of a GCC
5085 builtin and then its argument prototype would still apply. */
5093 return dnet_ntoa ();
5098 rm -f conftest.$ac_objext conftest$ac_exeext
5099 if { (ac_try="$ac_link"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_link") 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest$ac_exeext &&
5115 $as_test_x conftest$ac_exeext; then
5116 ac_cv_lib_dnet_dnet_ntoa=yes
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 ac_cv_lib_dnet_dnet_ntoa=no
5124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125 conftest$ac_exeext conftest.$ac_ext
5126 LIBS=$ac_check_lib_save_LIBS
5128 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5129 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5130 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5131 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5134 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5135 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5136 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5137 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 ac_check_lib_save_LIBS=$LIBS
5141 LIBS="-ldnet_stub $LIBS"
5142 cat >conftest.$ac_ext <<_ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5149 /* Override any GCC internal prototype to avoid an error.
5150 Use char because int might match the return type of a GCC
5151 builtin and then its argument prototype would still apply. */
5159 return dnet_ntoa ();
5164 rm -f conftest.$ac_objext conftest$ac_exeext
5165 if { (ac_try="$ac_link"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_link") 2>conftest.er1
5173 grep -v '^ *+' conftest.er1 >conftest.err
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5180 } && test -s conftest$ac_exeext &&
5181 $as_test_x conftest$ac_exeext; then
5182 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_cv_lib_dnet_stub_dnet_ntoa=no
5190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5191 conftest$ac_exeext conftest.$ac_ext
5192 LIBS=$ac_check_lib_save_LIBS
5194 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5195 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5196 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5197 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5204 conftest$ac_exeext conftest.$ac_ext
5205 LIBS="$ac_xsave_LIBS"
5207 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5208 # to get the SysV transport functions.
5209 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5211 # The nsl library prevents programs from opening the X display
5212 # on Irix 5.2, according to T.E. Dickey.
5213 # The functions gethostbyname, getservbyname, and inet_addr are
5214 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5215 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5216 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5217 if test "${ac_cv_func_gethostbyname+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5228 #define gethostbyname innocuous_gethostbyname
5230 /* System header to define __stub macros and hopefully few prototypes,
5231 which can conflict with char gethostbyname (); below.
5232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5233 <limits.h> exists even on freestanding compilers. */
5236 # include <limits.h>
5238 # include <assert.h>
5241 #undef gethostbyname
5243 /* Override any GCC internal prototype to avoid an error.
5244 Use char because int might match the return type of a GCC
5245 builtin and then its argument prototype would still apply. */
5249 char gethostbyname ();
5250 /* The GNU C library defines this for functions which it implements
5251 to always fail with ENOSYS. Some functions are actually named
5252 something starting with __ and the normal name is an alias. */
5253 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5260 return gethostbyname ();
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_link") 2>conftest.er1
5274 grep -v '^ *+' conftest.er1 >conftest.err
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest$ac_exeext &&
5282 $as_test_x conftest$ac_exeext; then
5283 ac_cv_func_gethostbyname=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_func_gethostbyname=no
5291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5292 conftest$ac_exeext conftest.$ac_ext
5294 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5295 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5297 if test $ac_cv_func_gethostbyname = no; then
5298 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5299 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5300 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 ac_check_lib_save_LIBS=$LIBS
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5312 /* Override any GCC internal prototype to avoid an error.
5313 Use char because int might match the return type of a GCC
5314 builtin and then its argument prototype would still apply. */
5318 char gethostbyname ();
5322 return gethostbyname ();
5327 rm -f conftest.$ac_objext conftest$ac_exeext
5328 if { (ac_try="$ac_link"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_link") 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && {
5341 test -z "$ac_c_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest$ac_exeext &&
5344 $as_test_x conftest$ac_exeext; then
5345 ac_cv_lib_nsl_gethostbyname=yes
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_cv_lib_nsl_gethostbyname=no
5353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5354 conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5358 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5359 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5363 if test $ac_cv_lib_nsl_gethostbyname = no; then
5364 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5365 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5366 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 ac_check_lib_save_LIBS=$LIBS
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5378 /* Override any GCC internal prototype to avoid an error.
5379 Use char because int might match the return type of a GCC
5380 builtin and then its argument prototype would still apply. */
5384 char gethostbyname ();
5388 return gethostbyname ();
5393 rm -f conftest.$ac_objext conftest$ac_exeext
5394 if { (ac_try="$ac_link"
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_link") 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest$ac_exeext &&
5410 $as_test_x conftest$ac_exeext; then
5411 ac_cv_lib_bsd_gethostbyname=yes
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_cv_lib_bsd_gethostbyname=no
5419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5420 conftest$ac_exeext conftest.$ac_ext
5421 LIBS=$ac_check_lib_save_LIBS
5423 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5424 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5425 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5432 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5433 # socket/setsockopt and other routines are undefined under SCO ODT
5434 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5435 # on later versions), says Simon Leinen: it contains gethostby*
5436 # variants that don't use the name server (or something). -lsocket
5437 # must be given before -lnsl if both are needed. We assume that
5438 # if connect needs -lnsl, so does gethostbyname.
5439 { echo "$as_me:$LINENO: checking for connect" >&5
5440 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5441 if test "${ac_cv_func_connect+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5452 #define connect innocuous_connect
5454 /* System header to define __stub macros and hopefully few prototypes,
5455 which can conflict with char connect (); below.
5456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 <limits.h> exists even on freestanding compilers. */
5460 # include <limits.h>
5462 # include <assert.h>
5467 /* Override any GCC internal prototype to avoid an error.
5468 Use char because int might match the return type of a GCC
5469 builtin and then its argument prototype would still apply. */
5474 /* The GNU C library defines this for functions which it implements
5475 to always fail with ENOSYS. Some functions are actually named
5476 something starting with __ and the normal name is an alias. */
5477 #if defined __stub_connect || defined __stub___connect
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (ac_try="$ac_link"
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_link") 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest$ac_exeext &&
5506 $as_test_x conftest$ac_exeext; then
5507 ac_cv_func_connect=yes
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_func_connect=no
5515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5516 conftest$ac_exeext conftest.$ac_ext
5518 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5519 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5521 if test $ac_cv_func_connect = no; then
5522 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5523 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5524 if test "${ac_cv_lib_socket_connect+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 ac_check_lib_save_LIBS=$LIBS
5528 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5536 /* Override any GCC internal prototype to avoid an error.
5537 Use char because int might match the return type of a GCC
5538 builtin and then its argument prototype would still apply. */
5551 rm -f conftest.$ac_objext conftest$ac_exeext
5552 if { (ac_try="$ac_link"
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_link") 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && {
5565 test -z "$ac_c_werror_flag" ||
5566 test ! -s conftest.err
5567 } && test -s conftest$ac_exeext &&
5568 $as_test_x conftest$ac_exeext; then
5569 ac_cv_lib_socket_connect=yes
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_cv_lib_socket_connect=no
5577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5578 conftest$ac_exeext conftest.$ac_ext
5579 LIBS=$ac_check_lib_save_LIBS
5581 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5582 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5583 if test $ac_cv_lib_socket_connect = yes; then
5584 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5589 # Guillermo Gomez says -lposix is necessary on A/UX.
5590 { echo "$as_me:$LINENO: checking for remove" >&5
5591 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5592 if test "${ac_cv_func_remove+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5603 #define remove innocuous_remove
5605 /* System header to define __stub macros and hopefully few prototypes,
5606 which can conflict with char remove (); below.
5607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608 <limits.h> exists even on freestanding compilers. */
5611 # include <limits.h>
5613 # include <assert.h>
5618 /* Override any GCC internal prototype to avoid an error.
5619 Use char because int might match the return type of a GCC
5620 builtin and then its argument prototype would still apply. */
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined __stub_remove || defined __stub___remove
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (ac_try="$ac_link"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_link") 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } && {
5654 test -z "$ac_c_werror_flag" ||
5655 test ! -s conftest.err
5656 } && test -s conftest$ac_exeext &&
5657 $as_test_x conftest$ac_exeext; then
5658 ac_cv_func_remove=yes
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 ac_cv_func_remove=no
5666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5667 conftest$ac_exeext conftest.$ac_ext
5669 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5670 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5672 if test $ac_cv_func_remove = no; then
5673 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5674 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5675 if test "${ac_cv_lib_posix_remove+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-lposix $LIBS"
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5687 /* Override any GCC internal prototype to avoid an error.
5688 Use char because int might match the return type of a GCC
5689 builtin and then its argument prototype would still apply. */
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (ac_try="$ac_link"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_link") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest$ac_exeext &&
5719 $as_test_x conftest$ac_exeext; then
5720 ac_cv_lib_posix_remove=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_lib_posix_remove=no
5728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5729 conftest$ac_exeext conftest.$ac_ext
5730 LIBS=$ac_check_lib_save_LIBS
5732 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5733 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5734 if test $ac_cv_lib_posix_remove = yes; then
5735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5740 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5741 { echo "$as_me:$LINENO: checking for shmat" >&5
5742 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5743 if test "${ac_cv_func_shmat+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5754 #define shmat innocuous_shmat
5756 /* System header to define __stub macros and hopefully few prototypes,
5757 which can conflict with char shmat (); below.
5758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759 <limits.h> exists even on freestanding compilers. */
5762 # include <limits.h>
5764 # include <assert.h>
5769 /* Override any GCC internal prototype to avoid an error.
5770 Use char because int might match the return type of a GCC
5771 builtin and then its argument prototype would still apply. */
5776 /* The GNU C library defines this for functions which it implements
5777 to always fail with ENOSYS. Some functions are actually named
5778 something starting with __ and the normal name is an alias. */
5779 #if defined __stub_shmat || defined __stub___shmat
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (ac_try="$ac_link"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_link") 2>conftest.er1
5800 grep -v '^ *+' conftest.er1 >conftest.err
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest$ac_exeext &&
5808 $as_test_x conftest$ac_exeext; then
5809 ac_cv_func_shmat=yes
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5818 conftest$ac_exeext conftest.$ac_ext
5820 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5821 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5823 if test $ac_cv_func_shmat = no; then
5824 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5825 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5826 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_check_lib_save_LIBS=$LIBS
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5838 /* Override any GCC internal prototype to avoid an error.
5839 Use char because int might match the return type of a GCC
5840 builtin and then its argument prototype would still apply. */
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (ac_try="$ac_link"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_link") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest$ac_exeext &&
5870 $as_test_x conftest$ac_exeext; then
5871 ac_cv_lib_ipc_shmat=yes
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 ac_cv_lib_ipc_shmat=no
5879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5880 conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_check_lib_save_LIBS
5883 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5884 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5885 if test $ac_cv_lib_ipc_shmat = yes; then
5886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5892 # Check for libraries that X11R6 Xt/Xaw programs need.
5893 ac_save_LDFLAGS=$LDFLAGS
5894 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5895 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5896 # check for ICE first), but we must link in the order -lSM -lICE or
5897 # we get undefined symbols. So assume we have SM if we have ICE.
5898 # These have to be linked with before -lX11, unlike the other
5899 # libraries we check for below, so use a different variable.
5900 # John Interrante, Karl Berry
5901 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5902 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5903 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_check_lib_save_LIBS=$LIBS
5907 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5915 /* Override any GCC internal prototype to avoid an error.
5916 Use char because int might match the return type of a GCC
5917 builtin and then its argument prototype would still apply. */
5921 char IceConnectionNumber ();
5925 return IceConnectionNumber ();
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (ac_try="$ac_link"
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_link") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest$ac_exeext &&
5947 $as_test_x conftest$ac_exeext; then
5948 ac_cv_lib_ICE_IceConnectionNumber=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_cv_lib_ICE_IceConnectionNumber=no
5956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5957 conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5961 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5962 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5963 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5966 LDFLAGS=$ac_save_LDFLAGS
5971 if test "$have_x" != yes; then
5972 { echo "$as_me:$LINENO: X11 not found. Disabling server font grabbing." >&5
5973 echo "$as_me: X11 not found. Disabling server font grabbing." >&6;}
5975 DEFINES="$DEFINES -DHAVE_XLIB"
5976 BDFGRABSRC="bdfgrab.c"
5977 BDFGRABOBJ="bdfgrab.o"
5981 # Fix for implicit DSO linking issue.
5984 { echo "$as_me:$LINENO: checking for XCreatePixmap in -lX11" >&5
5985 echo $ECHO_N "checking for XCreatePixmap in -lX11... $ECHO_C" >&6; }
5986 if test "${ac_cv_lib_X11_XCreatePixmap+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 ac_check_lib_save_LIBS=$LIBS
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6004 char XCreatePixmap ();
6008 return XCreatePixmap ();
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (ac_try="$ac_link"
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_link") 2>conftest.er1
6022 grep -v '^ *+' conftest.er1 >conftest.err
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } && {
6027 test -z "$ac_c_werror_flag" ||
6028 test ! -s conftest.err
6029 } && test -s conftest$ac_exeext &&
6030 $as_test_x conftest$ac_exeext; then
6031 ac_cv_lib_X11_XCreatePixmap=yes
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_lib_X11_XCreatePixmap=no
6039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6040 conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6043 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCreatePixmap" >&5
6044 echo "${ECHO_T}$ac_cv_lib_X11_XCreatePixmap" >&6; }
6045 if test $ac_cv_lib_X11_XCreatePixmap = yes; then
6046 cat >>confdefs.h <<_ACEOF
6047 #define HAVE_LIBX11 1
6061 ac_config_files="$ac_config_files Makefile"
6063 cat >confcache <<\_ACEOF
6064 # This file is a shell script that caches the results of configure
6065 # tests run on this system so they can be shared between configure
6066 # scripts and configure runs, see configure's option --config-cache.
6067 # It is not useful on other systems. If it contains results you don't
6068 # want to keep, you may remove or edit it.
6070 # config.status only pays attention to the cache file if you give it
6071 # the --recheck option to rerun configure.
6073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6079 # The following way of writing the cache mishandles newlines in values,
6080 # but we know of no workaround that is simple, portable, and efficient.
6081 # So, we kill variables containing newlines.
6082 # Ultrix sh set writes to stderr and can't be redirected directly,
6083 # and sets the high bit in the cache file unless we assign to the vars.
6085 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6086 eval ac_val=\$$ac_var
6090 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6091 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6094 _ | IFS | as_nl) ;; #(
6095 *) $as_unset $ac_var ;;
6101 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6102 *${as_nl}ac_space=\ *)
6103 # `set' does not quote correctly, so add quotes (double-quote
6104 # substitution turns \\\\ into \\, and sed turns \\ into \).
6107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6110 # `set' quotes correctly as required by POSIX, so do not add quotes.
6111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6122 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6124 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6125 if test -w "$cache_file"; then
6126 test "x$cache_file" != "x/dev/null" &&
6127 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6128 echo "$as_me: updating cache $cache_file" >&6;}
6129 cat confcache >$cache_file
6131 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6132 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6137 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6138 # Let make expand exec_prefix.
6139 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6141 # Transform confdefs.h into DEFS.
6142 # Protect against shell expansion while executing Makefile rules.
6143 # Protect against Makefile macro expansion.
6145 # If the first sed substitution is executed (which looks for macros that
6146 # take arguments), then branch to the quote section. Otherwise,
6147 # look for a macro that doesn't take arguments.
6151 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6153 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6157 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6170 DEFS=`sed -n "$ac_script" confdefs.h`
6175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6176 # 1. Remove the extension, and $U if already installed.
6177 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6178 ac_i=`echo "$ac_i" | sed "$ac_script"`
6179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6180 # will be set to the directory where LIBOBJS objects are built.
6181 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6182 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6186 LTLIBOBJS=$ac_ltlibobjs
6190 : ${CONFIG_STATUS=./config.status}
6191 ac_clean_files_save=$ac_clean_files
6192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6195 cat >$CONFIG_STATUS <<_ACEOF
6197 # Generated by $as_me.
6198 # Run this file to recreate the current configuration.
6199 # Compiler output produced by configure, useful for debugging
6200 # configure, is in config.log if it exists.
6205 SHELL=\${CONFIG_SHELL-$SHELL}
6208 cat >>$CONFIG_STATUS <<\_ACEOF
6209 ## --------------------- ##
6210 ## M4sh Initialization. ##
6211 ## --------------------- ##
6213 # Be more Bourne compatible
6214 DUALCASE=1; export DUALCASE # for MKS sh
6215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6219 # is contrary to our usage. Disable this feature.
6220 alias -g '${1+"$@"}'='"$@"'
6221 setopt NO_GLOB_SUBST
6223 case `(set -o) 2>/dev/null` in
6224 *posix*) set -o posix ;;
6233 # Avoid depending upon Character Ranges.
6234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6237 as_cr_digits='0123456789'
6238 as_cr_alnum=$as_cr_Letters$as_cr_digits
6240 # The user is always right.
6241 if test "${PATH_SEPARATOR+set}" != set; then
6242 echo "#! /bin/sh" >conf$$.sh
6243 echo "exit 0" >>conf$$.sh
6245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6253 # Support unset when possible.
6254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6262 # We need space, tab and new line, in precisely that order. Quoting is
6263 # there to prevent editors from complaining about space-tab.
6264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6265 # splitting by setting IFS to empty value.)
6270 # Find who we are. Look in the path if we contain no directory separator.
6272 *[\\/]* ) as_myself=$0 ;;
6273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6284 # We did not find ourselves, most probably we were run as `sh COMMAND'
6285 # in which case we are not to be found in the path.
6286 if test "x$as_myself" = x; then
6289 if test ! -f "$as_myself"; then
6290 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6291 { (exit 1); exit 1; }
6294 # Work around bugs in pre-3.0 UWIN ksh.
6295 for as_var in ENV MAIL MAILPATH
6296 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6304 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6305 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6306 LC_TELEPHONE LC_TIME
6308 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6309 eval $as_var=C; export $as_var
6311 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6315 # Required to use basename.
6316 if expr a : '\(a\)' >/dev/null 2>&1 &&
6317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6324 as_basename=basename
6330 # Name of the executable.
6331 as_me=`$as_basename -- "$0" ||
6332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6333 X"$0" : 'X\(//\)$' \| \
6334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6336 sed '/^.*\/\([^/][^/]*\)\/*$/{
6357 test "x$as_lineno_1" != "x$as_lineno_2" &&
6358 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6361 # uniformly replaced by the line number. The first 'sed' inserts a
6362 # line-number line after each line using $LINENO; the second 'sed'
6363 # does the real work. The second script uses 'N' to pair each
6364 # line-number line with the line containing $LINENO, and appends
6365 # trailing '-' during substitution so that $LINENO is not a special
6367 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6368 # scripts with optimization help from Paolo Bonzini. Blame Lee
6369 # E. McMahon (1931-1989) for sed's syntax. :-)
6381 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6385 chmod +x "$as_me.lineno" ||
6386 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6387 { (exit 1); exit 1; }; }
6389 # Don't try to exec as it changes $[0], causing all sort of problems
6390 # (the dirname of $[0] is not the place where we might find the
6391 # original and so on. Autoconf is especially sensitive to this).
6393 # Exit status is that of the last command.
6398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6404 ECHO_C= ECHO_N= ECHO_T=
6407 case `echo 'x\c'` in
6408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6415 if expr a : '\(a\)' >/dev/null 2>&1 &&
6416 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6422 rm -f conf$$ conf$$.exe conf$$.file
6423 if test -d conf$$.dir; then
6424 rm -f conf$$.dir/conf$$.file
6430 if ln -s conf$$.file conf$$ 2>/dev/null; then
6432 # ... but there are two gotchas:
6433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6435 # In both cases, we have to default to `cp -p'.
6436 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6438 elif ln conf$$.file conf$$ 2>/dev/null; then
6443 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6444 rmdir conf$$.dir 2>/dev/null
6446 if mkdir -p . 2>/dev/null; then
6449 test -d ./-p && rmdir ./-p
6453 if test -x / >/dev/null 2>&1; then
6456 if ls -dL / >/dev/null 2>&1; then
6463 if test -d "$1"; then
6469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6470 ???[sx]*):;;*)false;;esac;fi
6474 as_executable_p=$as_test_x
6476 # Sed expression to map a string onto a valid CPP name.
6477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6479 # Sed expression to map a string onto a valid variable name.
6480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6485 # Save the log message, to keep $[0] and so on meaningful, and to
6486 # report actual input values of CONFIG_FILES etc. instead of their
6487 # values after options handling.
6489 This file was extended by $as_me, which was
6490 generated by GNU Autoconf 2.61. Invocation command line was
6492 CONFIG_FILES = $CONFIG_FILES
6493 CONFIG_HEADERS = $CONFIG_HEADERS
6494 CONFIG_LINKS = $CONFIG_LINKS
6495 CONFIG_COMMANDS = $CONFIG_COMMANDS
6498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6503 cat >>$CONFIG_STATUS <<_ACEOF
6504 # Files that config.status was made for.
6505 config_files="$ac_config_files"
6509 cat >>$CONFIG_STATUS <<\_ACEOF
6511 \`$as_me' instantiates files from templates according to the
6512 current configuration.
6514 Usage: $0 [OPTIONS] [FILE]...
6516 -h, --help print this help, then exit
6517 -V, --version print version number and configuration settings, then exit
6518 -q, --quiet do not print progress messages
6519 -d, --debug don't remove temporary files
6520 --recheck update $as_me by reconfiguring in the same conditions
6521 --file=FILE[:TEMPLATE]
6522 instantiate the configuration file FILE
6524 Configuration files:
6527 Report bugs to <bug-autoconf@gnu.org>."
6530 cat >>$CONFIG_STATUS <<_ACEOF
6533 configured by $0, generated by GNU Autoconf 2.61,
6534 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6536 Copyright (C) 2006 Free Software Foundation, Inc.
6537 This config.status script is free software; the Free Software Foundation
6538 gives unlimited permission to copy, distribute and modify it."
6544 cat >>$CONFIG_STATUS <<\_ACEOF
6545 # If no file are specified by the user, then we need to provide default
6546 # value. By we need to know if files were specified by the user.
6552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6564 # Handling of the options.
6565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6568 echo "$ac_cs_version"; exit ;;
6569 --debug | --debu | --deb | --de | --d | -d )
6571 --file | --fil | --fi | --f )
6573 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6574 ac_need_defaults=false;;
6575 --he | --h | --help | --hel | -h )
6576 echo "$ac_cs_usage"; exit ;;
6577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6578 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6582 -*) { echo "$as_me: error: unrecognized option: $1
6583 Try \`$0 --help' for more information." >&2
6584 { (exit 1); exit 1; }; } ;;
6586 *) ac_config_targets="$ac_config_targets $1"
6587 ac_need_defaults=false ;;
6593 ac_configure_extra_args=
6595 if $ac_cs_silent; then
6597 ac_configure_extra_args="$ac_configure_extra_args --silent"
6601 cat >>$CONFIG_STATUS <<_ACEOF
6602 if \$ac_cs_recheck; then
6603 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6606 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6610 cat >>$CONFIG_STATUS <<\_ACEOF
6614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6615 ## Running $as_me. ##
6621 cat >>$CONFIG_STATUS <<_ACEOF
6624 cat >>$CONFIG_STATUS <<\_ACEOF
6626 # Handling of arguments.
6627 for ac_config_target in $ac_config_targets
6629 case $ac_config_target in
6630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6634 { (exit 1); exit 1; }; };;
6639 # If the user did not use the arguments to specify the items to instantiate,
6640 # then the envvar interface is used. Set only those that are not.
6641 # We use the long form for the default assignment because of an extremely
6642 # bizarre bug on SunOS 4.1.3.
6643 if $ac_need_defaults; then
6644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6647 # Have a temporary directory for convenience. Make it in the build tree
6648 # simply because there is no reason against having it here, and in addition,
6649 # creating and moving files from /tmp can sometimes cause problems.
6650 # Hook for its removal unless debugging.
6651 # Note that there is a small window in which the directory will not be cleaned:
6652 # after its creation but before its name has been assigned to `$tmp'.
6656 trap 'exit_status=$?
6657 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6659 trap '{ (exit 1); exit 1; }' 1 2 13 15
6661 # Create a (secure) tmp directory for tmp files.
6664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6665 test -n "$tmp" && test -d "$tmp"
6668 tmp=./conf$$-$RANDOM
6669 (umask 077 && mkdir "$tmp")
6672 echo "$me: cannot create a temporary directory in ." >&2
6673 { (exit 1); exit 1; }
6677 # Set up the sed scripts for CONFIG_FILES section.
6680 # No need to generate the scripts if there are no CONFIG_FILES.
6681 # This happens for instance when ./config.status config.h
6682 if test -n "$CONFIG_FILES"; then
6689 for ac_last_try in false false false false false :; do
6690 cat >conf$$subs.sed <<_ACEOF
6691 SHELL!$SHELL$ac_delim
6692 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6693 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6694 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6695 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6696 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6697 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6698 exec_prefix!$exec_prefix$ac_delim
6699 prefix!$prefix$ac_delim
6700 program_transform_name!$program_transform_name$ac_delim
6701 bindir!$bindir$ac_delim
6702 sbindir!$sbindir$ac_delim
6703 libexecdir!$libexecdir$ac_delim
6704 datarootdir!$datarootdir$ac_delim
6705 datadir!$datadir$ac_delim
6706 sysconfdir!$sysconfdir$ac_delim
6707 sharedstatedir!$sharedstatedir$ac_delim
6708 localstatedir!$localstatedir$ac_delim
6709 includedir!$includedir$ac_delim
6710 oldincludedir!$oldincludedir$ac_delim
6711 docdir!$docdir$ac_delim
6712 infodir!$infodir$ac_delim
6713 htmldir!$htmldir$ac_delim
6714 dvidir!$dvidir$ac_delim
6715 pdfdir!$pdfdir$ac_delim
6716 psdir!$psdir$ac_delim
6717 libdir!$libdir$ac_delim
6718 localedir!$localedir$ac_delim
6719 mandir!$mandir$ac_delim
6721 ECHO_C!$ECHO_C$ac_delim
6722 ECHO_N!$ECHO_N$ac_delim
6723 ECHO_T!$ECHO_T$ac_delim
6725 build_alias!$build_alias$ac_delim
6726 host_alias!$host_alias$ac_delim
6727 target_alias!$target_alias$ac_delim
6729 CFLAGS!$CFLAGS$ac_delim
6730 LDFLAGS!$LDFLAGS$ac_delim
6731 CPPFLAGS!$CPPFLAGS$ac_delim
6732 ac_ct_CC!$ac_ct_CC$ac_delim
6733 EXEEXT!$EXEEXT$ac_delim
6734 OBJEXT!$OBJEXT$ac_delim
6735 XX_CFLAGS!$XX_CFLAGS$ac_delim
6740 EGREP!$EGREP$ac_delim
6741 LIBOBJS!$LIBOBJS$ac_delim
6742 PKG_CONFIG!$PKG_CONFIG$ac_delim
6743 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
6744 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
6745 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
6746 GTK_LIBS!$GTK_LIBS$ac_delim
6747 XMKMF!$XMKMF$ac_delim
6748 X_CFLAGS!$X_CFLAGS$ac_delim
6749 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
6750 X_LIBS!$X_LIBS$ac_delim
6751 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
6752 DEFINES!$DEFINES$ac_delim
6753 HBFSRC!$HBFSRC$ac_delim
6754 HBFOBJ!$HBFOBJ$ac_delim
6755 BDFGRABSRC!$BDFGRABSRC$ac_delim
6756 BDFGRABOBJ!$BDFGRABOBJ$ac_delim
6757 LTLIBOBJS!$LTLIBOBJS$ac_delim
6760 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
6762 elif $ac_last_try; then
6763 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6764 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6765 { (exit 1); exit 1; }; }
6767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6771 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6772 if test -n "$ac_eof"; then
6773 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6774 ac_eof=`expr $ac_eof + 1`
6777 cat >>$CONFIG_STATUS <<_ACEOF
6778 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6782 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6783 s/^/s,@/; s/!/@,|#_!!_#|/
6786 s/'"$ac_delim"'$/,g/; t
6788 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6789 ' >>$CONFIG_STATUS <conf$$subs.sed
6790 rm -f conf$$subs.sed
6791 cat >>$CONFIG_STATUS <<_ACEOF
6798 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6799 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6800 # trailing colons and then remove the whole line if VPATH becomes empty
6801 # (actually we leave an empty line to preserve line numbers).
6802 if test "x$srcdir" = x.; then
6803 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6807 s/^\([^=]*=[ ]*\):*/\1/
6813 cat >>$CONFIG_STATUS <<\_ACEOF
6814 fi # test -n "$CONFIG_FILES"
6817 for ac_tag in :F $CONFIG_FILES
6820 :[FHLC]) ac_mode=$ac_tag; continue;;
6822 case $ac_mode$ac_tag in
6824 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6825 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6826 { (exit 1); exit 1; }; };;
6827 :[FH]-) ac_tag=-:-;;
6828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6845 -) ac_f="$tmp/stdin";;
6846 *) # Look for the file first in the build tree, then in the source tree
6847 # (if the path is not absolute). The absolute path cannot be DOS-style,
6848 # because $ac_f cannot contain `:'.
6852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6854 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6855 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6856 { (exit 1); exit 1; }; };;
6858 ac_file_inputs="$ac_file_inputs $ac_f"
6861 # Let's still pretend it is `configure' which instantiates (i.e., don't
6862 # use $as_me), people would be surprised to read:
6863 # /* config.h. Generated by config.status. */
6864 configure_input="Generated from "`IFS=:
6865 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6866 if test x"$ac_file" != x-; then
6867 configure_input="$ac_file. $configure_input"
6868 { echo "$as_me:$LINENO: creating $ac_file" >&5
6869 echo "$as_me: creating $ac_file" >&6;}
6873 *:-:* | *:-) cat >"$tmp/stdin";;
6878 ac_dir=`$as_dirname -- "$ac_file" ||
6879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6880 X"$ac_file" : 'X\(//\)[^/]' \| \
6881 X"$ac_file" : 'X\(//\)$' \| \
6882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6903 -*) as_dir=./$as_dir;;
6905 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6909 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6910 *) as_qdir=$as_dir;;
6912 as_dirs="'$as_qdir' $as_dirs"
6913 as_dir=`$as_dirname -- "$as_dir" ||
6914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6915 X"$as_dir" : 'X\(//\)[^/]' \| \
6916 X"$as_dir" : 'X\(//\)$' \| \
6917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6936 test -d "$as_dir" && break
6938 test -z "$as_dirs" || eval "mkdir $as_dirs"
6939 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6940 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6941 { (exit 1); exit 1; }; }; }
6945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6948 # A ".." for each directory in $ac_dir_suffix.
6949 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6950 case $ac_top_builddir_sub in
6951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6955 ac_abs_top_builddir=$ac_pwd
6956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6957 # for backward compatibility:
6958 ac_top_builddir=$ac_top_build_prefix
6961 .) # We are building in place.
6963 ac_top_srcdir=$ac_top_builddir_sub
6964 ac_abs_top_srcdir=$ac_pwd ;;
6965 [\\/]* | ?:[\\/]* ) # Absolute name.
6966 ac_srcdir=$srcdir$ac_dir_suffix;
6967 ac_top_srcdir=$srcdir
6968 ac_abs_top_srcdir=$srcdir ;;
6970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6971 ac_top_srcdir=$ac_top_build_prefix$srcdir
6972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6985 cat >>$CONFIG_STATUS <<\_ACEOF
6986 # If the template does not know about datarootdir, expand it.
6987 # FIXME: This hack should be removed a few years after 2.60.
6988 ac_datarootdir_hack=; ac_datarootdir_seen=
6990 case `sed -n '/datarootdir/ {
6999 ' $ac_file_inputs` in
7000 *datarootdir*) ac_datarootdir_seen=yes;;
7001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7002 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7003 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7005 cat >>$CONFIG_STATUS <<_ACEOF
7006 ac_datarootdir_hack='
7007 s&@datadir@&$datadir&g
7008 s&@docdir@&$docdir&g
7009 s&@infodir@&$infodir&g
7010 s&@localedir@&$localedir&g
7011 s&@mandir@&$mandir&g
7012 s&\\\${datarootdir}&$datarootdir&g' ;;
7016 # Neutralize VPATH when `$srcdir' = `.'.
7017 # Shell code in configure.ac might set extrasub.
7018 # FIXME: do we really want to maintain this feature?
7019 cat >>$CONFIG_STATUS <<_ACEOF
7023 cat >>$CONFIG_STATUS <<\_ACEOF
7025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7026 s&@configure_input@&$configure_input&;t t
7027 s&@top_builddir@&$ac_top_builddir_sub&;t t
7028 s&@srcdir@&$ac_srcdir&;t t
7029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7030 s&@top_srcdir@&$ac_top_srcdir&;t t
7031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7032 s&@builddir@&$ac_builddir&;t t
7033 s&@abs_builddir@&$ac_abs_builddir&;t t
7034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7035 $ac_datarootdir_hack
7036 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7038 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7039 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7040 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7041 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7042 which seems to be undefined. Please make sure it is defined." >&5
7043 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7044 which seems to be undefined. Please make sure it is defined." >&2;}
7048 -) cat "$tmp/out"; rm -f "$tmp/out";;
7049 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7060 { (exit 0); exit 0; }
7062 chmod +x $CONFIG_STATUS
7063 ac_clean_files=$ac_clean_files_save
7066 # configure is writing to config.log, and then calls config.status.
7067 # config.status does its own redirection, appending to config.log.
7068 # Unfortunately, on DOS this fails, as config.log is still kept open
7069 # by configure, so config.status won't be able to write to it; its
7070 # output is simply discarded. So we exec the FD to /dev/null,
7071 # effectively closing config.log, so it can be properly (re)opened and
7072 # appended to by config.status. When coming back to configure, we
7073 # need to make the FD available again.
7074 if test "$no_create" != yes; then
7076 ac_config_status_args=
7077 test "$silent" = yes &&
7078 ac_config_status_args="$ac_config_status_args --quiet"
7080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7083 # would make configure fail if this is the last instruction.
7084 $ac_cs_success || { (exit 1); exit 1; }