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="ircd/ircd.c"
580 ac_default_prefix=$HOME
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
695 ac_precious_vars='build_alias
708 # Initialize some variables set by options.
710 ac_init_version=false
711 # The variables have the same names as the options, with
712 # dashes changed to underlines.
720 program_transform_name=s,x,x,
728 # Installation directory options.
729 # These are left unexpanded so users can "make install exec_prefix=/foo"
730 # and all the variables that are supposed to be based on exec_prefix
731 # by default will actually change.
732 # Use braces instead of parens because sh, perl, etc. also accept them.
733 # (The list follows the same order as the GNU Coding Standards.)
734 bindir='${exec_prefix}/bin'
735 sbindir='${exec_prefix}/sbin'
736 libexecdir='${exec_prefix}/libexec'
737 datarootdir='${prefix}/share'
738 datadir='${datarootdir}'
739 sysconfdir='${prefix}/etc'
740 sharedstatedir='${prefix}/com'
741 localstatedir='${prefix}/var'
742 includedir='${prefix}/include'
743 oldincludedir='/usr/include'
744 docdir='${datarootdir}/doc/${PACKAGE}'
745 infodir='${datarootdir}/info'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
758 # If the previous option needs an argument, assign it.
759 if test -n "$ac_prev"; then
760 eval $ac_prev=\$ac_option
766 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
770 # Accept the important Cygnus configure options, so we can diagnose typos.
772 case $ac_dashdash$ac_option in
776 -bindir | --bindir | --bindi | --bind | --bin | --bi)
778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781 -build | --build | --buil | --bui | --bu)
782 ac_prev=build_alias ;;
783 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784 build_alias=$ac_optarg ;;
786 -cache-file | --cache-file | --cache-fil | --cache-fi \
787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788 ac_prev=cache_file ;;
789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791 cache_file=$ac_optarg ;;
794 cache_file=config.cache ;;
796 -datadir | --datadir | --datadi | --datad)
798 -datadir=* | --datadir=* | --datadi=* | --datad=*)
799 datadir=$ac_optarg ;;
801 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802 | --dataroo | --dataro | --datar)
803 ac_prev=datarootdir ;;
804 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806 datarootdir=$ac_optarg ;;
808 -disable-* | --disable-*)
809 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
813 { (exit 1); exit 1; }; }
814 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
815 eval enable_$ac_feature=no ;;
817 -docdir | --docdir | --docdi | --doc | --do)
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
827 -enable-* | --enable-*)
828 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832 { (exit 1); exit 1; }; }
833 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834 eval enable_$ac_feature=\$ac_optarg ;;
836 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838 | --exec | --exe | --ex)
839 ac_prev=exec_prefix ;;
840 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842 | --exec=* | --exe=* | --ex=*)
843 exec_prefix=$ac_optarg ;;
845 -gas | --gas | --ga | --g)
846 # Obsolete; use --with-gas.
849 -help | --help | --hel | --he | -h)
851 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852 ac_init_help=recursive ;;
853 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854 ac_init_help=short ;;
856 -host | --host | --hos | --ho)
857 ac_prev=host_alias ;;
858 -host=* | --host=* | --hos=* | --ho=*)
859 host_alias=$ac_optarg ;;
861 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 htmldir=$ac_optarg ;;
867 -includedir | --includedir | --includedi | --included | --include \
868 | --includ | --inclu | --incl | --inc)
869 ac_prev=includedir ;;
870 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871 | --includ=* | --inclu=* | --incl=* | --inc=*)
872 includedir=$ac_optarg ;;
874 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877 infodir=$ac_optarg ;;
879 -libdir | --libdir | --libdi | --libd)
881 -libdir=* | --libdir=* | --libdi=* | --libd=*)
884 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885 | --libexe | --libex | --libe)
886 ac_prev=libexecdir ;;
887 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888 | --libexe=* | --libex=* | --libe=*)
889 libexecdir=$ac_optarg ;;
891 -localedir | --localedir | --localedi | --localed | --locale)
893 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894 localedir=$ac_optarg ;;
896 -localstatedir | --localstatedir | --localstatedi | --localstated \
897 | --localstate | --localstat | --localsta | --localst | --locals)
898 ac_prev=localstatedir ;;
899 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901 localstatedir=$ac_optarg ;;
903 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909 # Obsolete; use --without-fp.
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c | -n)
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922 | --oldin | --oldi | --old | --ol | --o)
923 ac_prev=oldincludedir ;;
924 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927 oldincludedir=$ac_optarg ;;
929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934 -program-prefix | --program-prefix | --program-prefi | --program-pref \
935 | --program-pre | --program-pr | --program-p)
936 ac_prev=program_prefix ;;
937 -program-prefix=* | --program-prefix=* | --program-prefi=* \
938 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939 program_prefix=$ac_optarg ;;
941 -program-suffix | --program-suffix | --program-suffi | --program-suff \
942 | --program-suf | --program-su | --program-s)
943 ac_prev=program_suffix ;;
944 -program-suffix=* | --program-suffix=* | --program-suffi=* \
945 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946 program_suffix=$ac_optarg ;;
948 -program-transform-name | --program-transform-name \
949 | --program-transform-nam | --program-transform-na \
950 | --program-transform-n | --program-transform- \
951 | --program-transform | --program-transfor \
952 | --program-transfo | --program-transf \
953 | --program-trans | --program-tran \
954 | --progr-tra | --program-tr | --program-t)
955 ac_prev=program_transform_name ;;
956 -program-transform-name=* | --program-transform-name=* \
957 | --program-transform-nam=* | --program-transform-na=* \
958 | --program-transform-n=* | --program-transform-=* \
959 | --program-transform=* | --program-transfor=* \
960 | --program-transfo=* | --program-transf=* \
961 | --program-trans=* | --program-tran=* \
962 | --progr-tra=* | --program-tr=* | --program-t=*)
963 program_transform_name=$ac_optarg ;;
965 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 -psdir | --psdir | --psdi | --psd | --ps)
972 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976 | -silent | --silent | --silen | --sile | --sil)
979 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 sbindir=$ac_optarg ;;
985 -sharedstatedir | --sharedstatedir | --sharedstatedi \
986 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987 | --sharedst | --shareds | --shared | --share | --shar \
989 ac_prev=sharedstatedir ;;
990 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 sharedstatedir=$ac_optarg ;;
996 -site | --site | --sit)
998 -site=* | --site=* | --sit=*)
1001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004 srcdir=$ac_optarg ;;
1006 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007 | --syscon | --sysco | --sysc | --sys | --sy)
1008 ac_prev=sysconfdir ;;
1009 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011 sysconfdir=$ac_optarg ;;
1013 -target | --target | --targe | --targ | --tar | --ta | --t)
1014 ac_prev=target_alias ;;
1015 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016 target_alias=$ac_optarg ;;
1018 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 -version | --version | --versio | --versi | --vers | -V)
1022 ac_init_version=: ;;
1025 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid package name: $ac_package" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1031 eval with_$ac_package=\$ac_optarg ;;
1033 -without-* | --without-*)
1034 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_$ac_package=no ;;
1043 # Obsolete; use --with-x.
1046 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047 | --x-incl | --x-inc | --x-in | --x-i)
1048 ac_prev=x_includes ;;
1049 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051 x_includes=$ac_optarg ;;
1053 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055 ac_prev=x_libraries ;;
1056 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058 x_libraries=$ac_optarg ;;
1060 -*) { echo "$as_me: error: unrecognized option: $ac_option
1061 Try \`$0 --help' for more information." >&2
1062 { (exit 1); exit 1; }; }
1066 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1070 { (exit 1); exit 1; }; }
1071 eval $ac_envvar=\$ac_optarg
1072 export $ac_envvar ;;
1075 # FIXME: should be removed in autoconf 3.0.
1076 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085 if test -n "$ac_prev"; then
1086 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087 { echo "$as_me: error: missing argument to $ac_option" >&2
1088 { (exit 1); exit 1; }; }
1091 # Be sure to have absolute directory names.
1092 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1093 datadir sysconfdir sharedstatedir localstatedir includedir \
1094 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1095 libdir localedir mandir
1097 eval ac_val=\$$ac_var
1099 [\\/$]* | ?:[\\/]* ) continue;;
1100 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1102 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1103 { (exit 1); exit 1; }; }
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1111 target=$target_alias
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115 if test "x$build_alias" = x; then
1116 cross_compiling=maybe
1117 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118 If a cross compiler is detected then cross compile mode will be used." >&2
1119 elif test "x$build_alias" != "x$host_alias"; then
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1127 test "$silent" = yes && exec 6>/dev/null
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133 { echo "$as_me: error: Working directory cannot be determined" >&2
1134 { (exit 1); exit 1; }; }
1135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1136 { echo "$as_me: error: pwd does not report name of working directory" >&2
1137 { (exit 1); exit 1; }; }
1140 # Find the source files, if location was not specified.
1141 if test -z "$srcdir"; then
1142 ac_srcdir_defaulted=yes
1143 # Try the directory containing this script, then the parent directory.
1144 ac_confdir=`$as_dirname -- "$0" ||
1145 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146 X"$0" : 'X\(//\)[^/]' \| \
1147 X"$0" : 'X\(//\)$' \| \
1148 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168 if test ! -r "$srcdir/$ac_unique_file"; then
1172 ac_srcdir_defaulted=no
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1177 { (exit 1); exit 1; }; }
1179 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1182 { (exit 1); exit 1; }; }
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1194 for ac_var in $ac_precious_vars; do
1195 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196 eval ac_env_${ac_var}_value=\$${ac_var}
1197 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202 # Report the --help message.
1204 if test "$ac_init_help" = "long"; then
1205 # Omit some internal or obsolete options to make the list less imposing.
1206 # This message is too long to be a string in the A/UX 3.1 sh.
1208 \`configure' configures this package to adapt to many kinds of systems.
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE. See below for descriptions of some of the useful variables.
1215 Defaults for the options are specified in brackets.
1218 -h, --help display this help and exit
1219 --help=short display options specific to this package
1220 --help=recursive display the short help of all the included packages
1221 -V, --version display version information and exit
1222 -q, --quiet, --silent do not print \`checking...' messages
1223 --cache-file=FILE cache test results in FILE [disabled]
1224 -C, --config-cache alias for \`--cache-file=config.cache'
1225 -n, --no-create do not create output files
1226 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1228 Installation directories:
1229 --prefix=PREFIX install architecture-independent files in PREFIX
1230 [$ac_default_prefix]
1231 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1239 For better control, use the options below.
1241 Fine tuning of the installation directories:
1242 --bindir=DIR user executables [EPREFIX/bin]
1243 --sbindir=DIR system admin executables [EPREFIX/sbin]
1244 --libexecdir=DIR program executables [EPREFIX/libexec]
1245 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1246 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1247 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1248 --libdir=DIR object code libraries [EPREFIX/lib]
1249 --includedir=DIR C header files [PREFIX/include]
1250 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1251 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1252 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1253 --infodir=DIR info documentation [DATAROOTDIR/info]
1254 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1255 --mandir=DIR man documentation [DATAROOTDIR/man]
1256 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1257 --htmldir=DIR html documentation [DOCDIR]
1258 --dvidir=DIR dvi documentation [DOCDIR]
1259 --pdfdir=DIR pdf documentation [DOCDIR]
1260 --psdir=DIR ps documentation [DOCDIR]
1266 --build=BUILD configure for building on BUILD [guessed]
1267 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1271 if test -n "$ac_init_help"; then
1276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1278 --enable-poll Force poll to be used regardless of whether or not
1280 --enable-debug Turn on debugging mode
1281 --disable-asserts Disable assertion checking
1282 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
1283 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
1284 --enable-warnings Enable warnings (add -Wall to CFLAGS)
1285 --disable-inlines Disable inlining for a few critical functions
1286 --disable-devpoll Disable the /dev/poll-based engine
1287 --disable-kqueue Disable the kqueue-based engine
1288 --disable-epoll Disable the epoll-based engine
1291 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1292 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1293 --with-leak-detect Turn on the leak detector(requires patched boehm)
1294 --without-ipv6 disable IPv6 support (default is autodetect)
1295 --with-symlink=name Name to give the symlink; if name is "no," no
1296 symlink will be created.
1297 --with-mode=mode Permissions (in octal) to give the binary
1298 --with-owner=owner Specify owner of the installed binary
1299 --with-group=group Specify group owner of the installed binary
1300 --with-domain=domain Domain name to use in local statistics gathering
1301 --with-chroot=dir Specify that the server will be operated under
1302 a different root directory given by dir. See
1303 doc/readme.chroot for more information.
1304 --with-dpath=dir Directory for all server data files
1305 --with-cpath=file Set server configuration file
1306 --with-lpath=file Set the debugging log file
1307 --with-maxcon=maxcon Maximum number of connections server will accept
1309 Some influential environment variables:
1310 CC C compiler command
1311 CFLAGS C compiler flags
1312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1313 nonstandard directory <lib dir>
1314 LIBS libraries to pass to the linker, e.g. -l<library>
1315 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316 you have headers in a nonstandard directory <include dir>
1318 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1319 the first program found out of: `bison -y', `byacc', `yacc'.
1320 YFLAGS The list of arguments that will be passed by default to $YACC.
1321 This script will default YFLAGS to the empty string to avoid a
1322 default value of `-d' given by some make applications.
1324 Use these variables to override the choices made by `configure' or to help
1325 it to find libraries and programs with nonstandard names/locations.
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334 test -d "$ac_dir" || continue
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1354 .) # We are building in place.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1388 generated by GNU Autoconf 2.61
1390 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1397 cat >config.log <<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1401 It was created by $as_me, which was
1402 generated by GNU Autoconf 2.61. Invocation command line was
1414 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1415 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1416 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1417 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1418 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1421 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1423 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1424 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1425 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1426 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1427 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1428 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1429 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 echo "PATH: $as_dir"
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1462 ac_must_keep_next=false
1468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470 | -silent | --silent | --silen | --sile | --sil)
1473 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479 if test $ac_must_keep_next = true; then
1480 ac_must_keep_next=false # Got value, back to normal.
1483 *=* | --config-cache | -C | -disable-* | --disable-* \
1484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486 | -with-* | --with-* | -without-* | --without-* | --x)
1487 case "$ac_configure_args0 " in
1488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1491 -* ) ac_must_keep_next=true ;;
1494 ac_configure_args="$ac_configure_args '$ac_arg'"
1499 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log. We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508 # Save into config.log some information that might help in debugging.
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1518 # The following way of writing the cache mishandles newlines in values,
1520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1521 eval ac_val=\$$ac_var
1525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1535 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1559 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 echo "$ac_var='\''$ac_val'\''"
1565 if test -n "$ac_subst_files"; then
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1572 for ac_var in $ac_subst_files
1574 eval ac_val=\$$ac_var
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1578 echo "$ac_var='\''$ac_val'\''"
1583 if test -s confdefs.h; then
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1601 for ac_signal in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest* confdefs.h
1609 # Predefined preprocessor variables.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639 set x "$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE; then
1641 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1643 set x "$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1649 if test -r "$ac_site_file"; then
1650 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1657 if test -r "$cache_file"; then
1658 # Some versions of bash will fail to source /dev/null (special
1659 # files actually), so we avoid doing that.
1660 if test -f "$cache_file"; then
1661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665 *) . "./$cache_file";;
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1674 # Check that the precious variables saved in the cache have kept the same
1676 ac_cache_corrupted=false
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1679 eval ac_new_set=\$ac_env_${ac_var}_set
1680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1681 eval ac_new_val=\$ac_env_${ac_var}_value
1682 case $ac_old_set,$ac_new_set in
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1693 if test "x$ac_old_val" != "x$ac_new_val"; then
1694 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1696 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1697 echo "$as_me: former value: $ac_old_val" >&2;}
1698 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1699 echo "$as_me: current value: $ac_new_val" >&2;}
1700 ac_cache_corrupted=:
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1706 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 *) ac_arg=$ac_var=$ac_new_val ;;
1709 case " $ac_configure_args " in
1710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1711 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1715 if $ac_cache_corrupted; then
1716 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1717 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1718 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1720 { (exit 1); exit 1; }; }
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748 { echo "$as_me:$LINENO: checking for installation prefix" >&5
1749 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6; }
1750 if test "${unet_cv_prefix+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 unet_cv_prefix=$HOME
1756 if test x"$prefix" != xNONE; then
1757 unet_cv_prefix=$prefix
1759 { echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1760 echo "${ECHO_T}$unet_cv_prefix" >&6; }
1761 ac_default_prefix=$unet_cv_prefix
1763 ac_config_headers="$ac_config_headers config.h"
1769 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1770 if test -f "$ac_dir/install-sh"; then
1772 ac_install_sh="$ac_aux_dir/install-sh -c"
1774 elif test -f "$ac_dir/install.sh"; then
1776 ac_install_sh="$ac_aux_dir/install.sh -c"
1778 elif test -f "$ac_dir/shtool"; then
1780 ac_install_sh="$ac_aux_dir/shtool install -c"
1784 if test -z "$ac_aux_dir"; then
1785 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1786 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1787 { (exit 1); exit 1; }; }
1790 # These three variables are undocumented and unsupported,
1791 # and are intended to be withdrawn in a future Autoconf release.
1792 # They can cause serious problems if a builder's source tree is in a directory
1793 # whose full name contains unusual characters.
1794 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1795 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1796 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1799 # Make sure we can run config.sub.
1800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1801 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1802 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1803 { (exit 1); exit 1; }; }
1805 { echo "$as_me:$LINENO: checking build system type" >&5
1806 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1807 if test "${ac_cv_build+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 ac_build_alias=$build_alias
1811 test "x$ac_build_alias" = x &&
1812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1813 test "x$ac_build_alias" = x &&
1814 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1815 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1816 { (exit 1); exit 1; }; }
1817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1818 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1820 { (exit 1); exit 1; }; }
1823 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1824 echo "${ECHO_T}$ac_cv_build" >&6; }
1825 case $ac_cv_build in
1827 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1828 echo "$as_me: error: invalid value of canonical build" >&2;}
1829 { (exit 1); exit 1; }; };;
1832 ac_save_IFS=$IFS; IFS='-'
1838 # Remember, the first character of IFS is used to create $*,
1839 # except with old shells:
1842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1845 { echo "$as_me:$LINENO: checking host system type" >&5
1846 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1847 if test "${ac_cv_host+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 if test "x$host_alias" = x; then
1851 ac_cv_host=$ac_cv_build
1853 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1854 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1856 { (exit 1); exit 1; }; }
1860 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1861 echo "${ECHO_T}$ac_cv_host" >&6; }
1864 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1865 echo "$as_me: error: invalid value of canonical host" >&2;}
1866 { (exit 1); exit 1; }; };;
1869 ac_save_IFS=$IFS; IFS='-'
1875 # Remember, the first character of IFS is used to create $*,
1876 # except with old shells:
1879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 if test -n "$ac_tool_prefix"; then
1889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC="$CC" # Let the user override the test.
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do
1905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1906 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 if test -n "$CC"; then
1918 { echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6; }
1921 { echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6; }
1927 if test -z "$ac_cv_prog_CC"; then
1929 # Extract the first word of "gcc", so it can be a program name with args.
1930 set dummy gcc; ac_word=$2
1931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$ac_ct_CC"; then
1937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1946 ac_cv_prog_ac_ct_CC="gcc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6; }
1961 { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1965 if test "x$ac_ct_CC" = x; then
1968 case $cross_compiling:$ac_tool_warned in
1970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1971 whose name does not start with the host triplet. If you think this
1972 configuration is useful to you, please write to autoconf@gnu.org." >&5
1973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1974 whose name does not start with the host triplet. If you think this
1975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1976 ac_tool_warned=yes ;;
1984 if test -z "$CC"; then
1985 if test -n "$ac_tool_prefix"; then
1986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1987 set dummy ${ac_tool_prefix}cc; ac_word=$2
1988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 ac_cv_prog_CC="${ac_tool_prefix}cc"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test -n "$CC"; then
2015 { echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6; }
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2025 if test -z "$CC"; then
2026 # Extract the first word of "cc", so it can be a program name with args.
2027 set dummy cc; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2045 ac_prog_rejected=yes
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test $ac_prog_rejected = yes; then
2057 # We found a bogon in the path, so make sure we never use it.
2058 set dummy $ac_cv_prog_CC
2060 if test $# != 0; then
2061 # We chose a different compiler from the bogus one.
2062 # However, it has the same basename, so the bogon will be chosen
2063 # first if we set CC to just the basename; use the full file name.
2065 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2071 if test -n "$CC"; then
2072 { echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6; }
2075 { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2081 if test -z "$CC"; then
2082 if test -n "$ac_tool_prefix"; then
2083 for ac_prog in cl.exe
2085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089 if test "${ac_cv_prog_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 if test -n "$CC"; then
2093 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2102 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 if test -n "$CC"; then
2114 { echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6; }
2117 { echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6; }
2122 test -n "$CC" && break
2125 if test -z "$CC"; then
2127 for ac_prog in cl.exe
2129 # Extract the first word of "$ac_prog", so it can be a program name with args.
2130 set dummy $ac_prog; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_ac_ct_CC="$ac_prog"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2166 test -n "$ac_ct_CC" && break
2169 if test "x$ac_ct_CC" = x; then
2172 case $cross_compiling:$ac_tool_warned in
2174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&5
2177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet. If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2180 ac_tool_warned=yes ;;
2189 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: no acceptable C compiler found in \$PATH
2192 See \`config.log' for more details." >&2;}
2193 { (exit 1); exit 1; }; }
2195 # Provide some information about the compiler.
2196 echo "$as_me:$LINENO: checking for C compiler version" >&5
2197 ac_compiler=`set X $ac_compile; echo $2`
2198 { (ac_try="$ac_compiler --version >&5"
2200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201 *) ac_try_echo=$ac_try;;
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204 (eval "$ac_compiler --version >&5") 2>&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }
2208 { (ac_try="$ac_compiler -v >&5"
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2214 (eval "$ac_compiler -v >&5") 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }
2218 { (ac_try="$ac_compiler -V >&5"
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_compiler -V >&5") 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }
2229 cat >conftest.$ac_ext <<_ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h. */
2244 ac_clean_files_save=$ac_clean_files
2245 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2246 # Try to create an executable without -o first, disregard a.out.
2247 # It will help us diagnose broken compilers, and finding out an intuition
2249 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2250 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2251 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2253 # List of possible output files, starting from the most likely.
2254 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2255 # only as a last resort. b.out is created by i960 compilers.
2256 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2258 # The IRIX 6 linker writes into existing files which may not be
2259 # executable, retaining their permissions. Remove them first so a
2260 # subsequent execution test works.
2262 for ac_file in $ac_files
2265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2271 if { (ac_try="$ac_link_default"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277 (eval "$ac_link_default") 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2282 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2283 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2284 # so that the user can short-circuit this test for compilers unknown to
2286 for ac_file in $ac_files ''
2288 test -f "$ac_file" || continue
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2293 # We found the default executable, but exeext='' is most
2297 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2299 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2301 # We set ac_cv_exeext here because the later test for it is not
2302 # safe: cross compilers may not add the suffix if given an `-o'
2303 # argument, so we may need to know it at that point already.
2304 # Even if this section looks crufty: it has the advantage of
2311 test "$ac_cv_exeext" = no && ac_cv_exeext=
2317 { echo "$as_me:$LINENO: result: $ac_file" >&5
2318 echo "${ECHO_T}$ac_file" >&6; }
2319 if test -z "$ac_file"; then
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2324 See \`config.log' for more details." >&5
2325 echo "$as_me: error: C compiler cannot create executables
2326 See \`config.log' for more details." >&2;}
2327 { (exit 77); exit 77; }; }
2330 ac_exeext=$ac_cv_exeext
2332 # Check that the compiler produces executables we can run. If not, either
2333 # the compiler is broken, or we cross compile.
2334 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337 # If not cross compiling, check that we can run a simple program.
2338 if test "$cross_compiling" != yes; then
2339 if { ac_try='./$ac_file'
2340 { (case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_try") 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2351 if test "$cross_compiling" = maybe; then
2354 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2355 If you meant to cross compile, use \`--host'.
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot run C compiled programs.
2358 If you meant to cross compile, use \`--host'.
2359 See \`config.log' for more details." >&2;}
2360 { (exit 1); exit 1; }; }
2364 { echo "$as_me:$LINENO: result: yes" >&5
2365 echo "${ECHO_T}yes" >&6; }
2367 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2368 ac_clean_files=$ac_clean_files_save
2369 # Check that the compiler produces executables we can run. If not, either
2370 # the compiler is broken, or we cross compile.
2371 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2372 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2373 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2374 echo "${ECHO_T}$cross_compiling" >&6; }
2376 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2377 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2378 if { (ac_try="$ac_link"
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_link") 2>&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2389 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2390 # work properly (i.e., refer to `conftest.exe'), while it won't with
2392 for ac_file in conftest.exe conftest conftest.*; do
2393 test -f "$ac_file" || continue
2395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2402 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2405 See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2409 rm -f conftest$ac_cv_exeext
2410 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2411 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2413 rm -f conftest.$ac_ext
2414 EXEEXT=$ac_cv_exeext
2416 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2417 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2418 if test "${ac_cv_objext+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 cat >conftest.$ac_ext <<_ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2436 rm -f conftest.o conftest.obj
2437 if { (ac_try="$ac_compile"
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compile") 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 for ac_file in conftest.o conftest.obj conftest.*; do
2448 test -f "$ac_file" || continue;
2450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2460 See \`config.log' for more details." >&5
2461 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log' for more details." >&2;}
2463 { (exit 1); exit 1; }; }
2466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2468 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2469 echo "${ECHO_T}$ac_cv_objext" >&6; }
2470 OBJEXT=$ac_cv_objext
2472 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2473 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2495 rm -f conftest.$ac_objext
2496 if { (ac_try="$ac_compile"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_compile") 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } && {
2509 test -z "$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest.$ac_objext; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2524 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2526 GCC=`test $ac_compiler_gnu = yes && echo yes`
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2530 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_cc_g+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 ac_save_c_werror_flag=$ac_c_werror_flag
2535 ac_c_werror_flag=yes
2538 cat >conftest.$ac_ext <<_ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2553 rm -f conftest.$ac_objext
2554 if { (ac_try="$ac_compile"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compile") 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } && {
2567 test -z "$ac_c_werror_flag" ||
2568 test ! -s conftest.err
2569 } && test -s conftest.$ac_objext; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } && {
2605 test -z "$ac_c_werror_flag" ||
2606 test ! -s conftest.err
2607 } && test -s conftest.$ac_objext; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 ac_c_werror_flag=$ac_save_c_werror_flag
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667 CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669 if test "$GCC" = yes; then
2675 if test "$GCC" = yes; then
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_cv_prog_cc_c89=no
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2712 s = g (p, va_arg (v,int));
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2718 function prototypes and stuff, but not '\xHH' hex character constants.
2719 These don't provoke an error unfortunately, instead are silently treated
2720 as 'x'. The following induces an error, until -std is added to get
2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2722 array size at least. It's necessary to write '\x00'==0 to get something
2723 that's true only with -std. */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727 inside strings and character constants. */
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2748 CC="$ac_save_CC $ac_arg"
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>conftest.er1
2758 grep -v '^ *+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } && {
2763 test -z "$ac_c_werror_flag" ||
2764 test ! -s conftest.err
2765 } && test -s conftest.$ac_objext; then
2766 ac_cv_prog_cc_c89=$ac_arg
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2774 rm -f core conftest.err conftest.$ac_objext
2775 test "x$ac_cv_prog_cc_c89" != "xno" && break
2777 rm -f conftest.$ac_ext
2782 case "x$ac_cv_prog_cc_c89" in
2784 { echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6; } ;;
2787 { echo "$as_me:$LINENO: result: unsupported" >&5
2788 echo "${ECHO_T}unsupported" >&6; } ;;
2790 CC="$CC $ac_cv_prog_cc_c89"
2791 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2792 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2847 if test -z "$ac_cv_prog_CC"; then
2849 # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$ac_ct_CC"; then
2857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_ac_ct_CC="gcc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2885 if test "x$ac_ct_CC" = x; then
2888 case $cross_compiling:$ac_tool_warned in
2890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2891 whose name does not start with the host triplet. If you think this
2892 configuration is useful to you, please write to autoconf@gnu.org." >&5
2893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet. If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2896 ac_tool_warned=yes ;;
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_CC="${ac_tool_prefix}cc"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2945 if test -z "$CC"; then
2946 # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965 ac_prog_rejected=yes
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test $ac_prog_rejected = yes; then
2977 # We found a bogon in the path, so make sure we never use it.
2978 set dummy $ac_cv_prog_CC
2980 if test $# != 0; then
2981 # We chose a different compiler from the bogus one.
2982 # However, it has the same basename, so the bogon will be chosen
2983 # first if we set CC to just the basename; use the full file name.
2985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2991 if test -n "$CC"; then
2992 { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 for ac_prog in cl.exe
3005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$CC"; then
3034 { echo "$as_me:$LINENO: result: $CC" >&5
3035 echo "${ECHO_T}$CC" >&6; }
3037 { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3042 test -n "$CC" && break
3045 if test -z "$CC"; then
3047 for ac_prog in cl.exe
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_ac_ct_CC="$ac_prog"
3067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3079 echo "${ECHO_T}$ac_ct_CC" >&6; }
3081 { echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6; }
3086 test -n "$ac_ct_CC" && break
3089 if test "x$ac_ct_CC" = x; then
3092 case $cross_compiling:$ac_tool_warned in
3094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3095 whose name does not start with the host triplet. If you think this
3096 configuration is useful to you, please write to autoconf@gnu.org." >&5
3097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet. If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3100 ac_tool_warned=yes ;;
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113 { (exit 1); exit 1; }; }
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO: checking for C compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (ac_try="$ac_compiler --version >&5"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compiler --version >&5") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }
3128 { (ac_try="$ac_compiler -v >&5"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compiler -v >&5") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
3138 { (ac_try="$ac_compiler -V >&5"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compiler -V >&5") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3149 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3201 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3203 GCC=`test $ac_compiler_gnu = yes && echo yes`
3204 ac_test_CFLAGS=${CFLAGS+set}
3205 ac_save_CFLAGS=$CFLAGS
3206 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_g+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_save_c_werror_flag=$ac_c_werror_flag
3212 ac_c_werror_flag=yes
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3253 cat >conftest.$ac_ext <<_ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_compile") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } && {
3282 test -z "$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3284 } && test -s conftest.$ac_objext; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3352 if test "$GCC" = yes; then
3358 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 ac_cv_prog_cc_c89=no
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3373 #include <sys/types.h>
3374 #include <sys/stat.h>
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3389 s = g (p, va_arg (v,int));
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3443 ac_cv_prog_cc_c89=$ac_arg
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3451 rm -f core conftest.err conftest.$ac_objext
3452 test "x$ac_cv_prog_cc_c89" != "xno" && break
3454 rm -f conftest.$ac_ext
3459 case "x$ac_cv_prog_cc_c89" in
3461 { echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6; } ;;
3464 { echo "$as_me:$LINENO: result: unsupported" >&5
3465 echo "${ECHO_T}unsupported" >&6; } ;;
3467 CC="$CC $ac_cv_prog_cc_c89"
3468 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3469 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3485 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
3486 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
3487 if test "${ac_cv_search_crypt+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_func_search_save_LIBS=$LIBS
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3498 /* Override any GCC internal prototype to avoid an error.
3499 Use char because int might match the return type of a GCC
3500 builtin and then its argument prototype would still apply. */
3513 for ac_lib in '' descrypt crypt; do
3514 if test -z "$ac_lib"; then
3515 ac_res="none required"
3518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3520 rm -f conftest.$ac_objext conftest$ac_exeext
3521 if { (ac_try="$ac_link"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_link") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest$ac_exeext &&
3537 $as_test_x conftest$ac_exeext; then
3538 ac_cv_search_crypt=$ac_res
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3548 if test "${ac_cv_search_crypt+set}" = set; then
3552 if test "${ac_cv_search_crypt+set}" = set; then
3555 ac_cv_search_crypt=no
3558 LIBS=$ac_func_search_save_LIBS
3560 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3561 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
3562 ac_res=$ac_cv_search_crypt
3563 if test "$ac_res" != no; then
3564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3567 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3568 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3569 { (exit 1); exit 1; }; }
3574 # Most operating systems have gethostbyname() in the default searched
3575 # libraries (i.e. libc):
3576 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
3577 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3578 if test "${ac_cv_func_gethostbyname+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3589 #define gethostbyname innocuous_gethostbyname
3591 /* System header to define __stub macros and hopefully few prototypes,
3592 which can conflict with char gethostbyname (); below.
3593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3594 <limits.h> exists even on freestanding compilers. */
3597 # include <limits.h>
3599 # include <assert.h>
3602 #undef gethostbyname
3604 /* Override any GCC internal prototype to avoid an error.
3605 Use char because int might match the return type of a GCC
3606 builtin and then its argument prototype would still apply. */
3610 char gethostbyname ();
3611 /* The GNU C library defines this for functions which it implements
3612 to always fail with ENOSYS. Some functions are actually named
3613 something starting with __ and the normal name is an alias. */
3614 #if defined __stub_gethostbyname || defined __stub___gethostbyname
3621 return gethostbyname ();
3626 rm -f conftest.$ac_objext conftest$ac_exeext
3627 if { (ac_try="$ac_link"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_link") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1 >conftest.err
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest$ac_exeext &&
3643 $as_test_x conftest$ac_exeext; then
3644 ac_cv_func_gethostbyname=yes
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_cv_func_gethostbyname=no
3652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3653 conftest$ac_exeext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3656 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3657 if test $ac_cv_func_gethostbyname = yes; then
3660 # Some OSes (eg. Solaris) place it in libnsl:
3662 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3663 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3664 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_check_lib_save_LIBS=$LIBS
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3676 /* Override any GCC internal prototype to avoid an error.
3677 Use char because int might match the return type of a GCC
3678 builtin and then its argument prototype would still apply. */
3682 char gethostbyname ();
3686 return gethostbyname ();
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (ac_try="$ac_link"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_link") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1 >conftest.err
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest$ac_exeext &&
3708 $as_test_x conftest$ac_exeext; then
3709 ac_cv_lib_nsl_gethostbyname=yes
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 ac_cv_lib_nsl_gethostbyname=no
3717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3718 conftest$ac_exeext conftest.$ac_ext
3719 LIBS=$ac_check_lib_save_LIBS
3721 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3722 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3723 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3724 cat >>confdefs.h <<_ACEOF
3725 #define HAVE_LIBNSL 1
3731 # Some strange OSes (SINIX) have it in libsocket:
3733 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3734 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3735 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lsocket $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3747 /* Override any GCC internal prototype to avoid an error.
3748 Use char because int might match the return type of a GCC
3749 builtin and then its argument prototype would still apply. */
3753 char gethostbyname ();
3757 return gethostbyname ();
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (ac_try="$ac_link"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_link") 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest$ac_exeext &&
3779 $as_test_x conftest$ac_exeext; then
3780 ac_cv_lib_socket_gethostbyname=yes
3782 echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 ac_cv_lib_socket_gethostbyname=no
3788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3789 conftest$ac_exeext conftest.$ac_ext
3790 LIBS=$ac_check_lib_save_LIBS
3792 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3793 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3794 if test $ac_cv_lib_socket_gethostbyname = yes; then
3795 cat >>confdefs.h <<_ACEOF
3796 #define HAVE_LIBSOCKET 1
3799 LIBS="-lsocket $LIBS"
3802 # Unfortunately libsocket sometimes depends on libnsl.
3803 # AC_CHECK_LIB's API is essentially broken so the following
3804 # ugliness is necessary:
3805 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3806 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3807 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_check_lib_save_LIBS=$LIBS
3811 LIBS="-lsocket -lnsl $LIBS"
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 /* Override any GCC internal prototype to avoid an error.
3820 Use char because int might match the return type of a GCC
3821 builtin and then its argument prototype would still apply. */
3825 char gethostbyname ();
3829 return gethostbyname ();
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (ac_try="$ac_link"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_link") 2>conftest.er1
3843 grep -v '^ *+' conftest.er1 >conftest.err
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } && {
3848 test -z "$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3850 } && test -s conftest$ac_exeext &&
3851 $as_test_x conftest$ac_exeext; then
3852 ac_cv_lib_socket_gethostbyname=yes
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_cv_lib_socket_gethostbyname=no
3860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3861 conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3864 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3866 if test $ac_cv_lib_socket_gethostbyname = yes; then
3867 LIBS="-lsocket -lnsl $LIBS"
3870 { echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3871 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6; }
3872 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 ac_check_lib_save_LIBS=$LIBS
3876 LIBS="-lresolv $LIBS"
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 /* Override any GCC internal prototype to avoid an error.
3885 Use char because int might match the return type of a GCC
3886 builtin and then its argument prototype would still apply. */
3890 char gethostbyname ();
3894 return gethostbyname ();
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (ac_try="$ac_link"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_link") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest$ac_exeext &&
3916 $as_test_x conftest$ac_exeext; then
3917 ac_cv_lib_resolv_gethostbyname=yes
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 ac_cv_lib_resolv_gethostbyname=no
3925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3926 conftest$ac_exeext conftest.$ac_ext
3927 LIBS=$ac_check_lib_save_LIBS
3929 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3930 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6; }
3931 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3932 cat >>confdefs.h <<_ACEOF
3933 #define HAVE_LIBRESOLV 1
3936 LIBS="-lresolv $LIBS"
3951 { echo "$as_me:$LINENO: checking for socket" >&5
3952 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
3953 if test "${ac_cv_func_socket+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3964 #define socket innocuous_socket
3966 /* System header to define __stub macros and hopefully few prototypes,
3967 which can conflict with char socket (); below.
3968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 <limits.h> exists even on freestanding compilers. */
3972 # include <limits.h>
3974 # include <assert.h>
3979 /* Override any GCC internal prototype to avoid an error.
3980 Use char because int might match the return type of a GCC
3981 builtin and then its argument prototype would still apply. */
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined __stub_socket || defined __stub___socket
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (ac_try="$ac_link"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_link") 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest$ac_exeext &&
4018 $as_test_x conftest$ac_exeext; then
4019 ac_cv_func_socket=yes
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ac_cv_func_socket=no
4027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4028 conftest$ac_exeext conftest.$ac_ext
4030 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4031 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4032 if test $ac_cv_func_socket = yes; then
4036 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4037 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4038 if test "${ac_cv_lib_socket_socket+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 ac_check_lib_save_LIBS=$LIBS
4042 LIBS="-lsocket $LIBS"
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4050 /* Override any GCC internal prototype to avoid an error.
4051 Use char because int might match the return type of a GCC
4052 builtin and then its argument prototype would still apply. */
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (ac_try="$ac_link"
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_link") 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } && {
4079 test -z "$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4081 } && test -s conftest$ac_exeext &&
4082 $as_test_x conftest$ac_exeext; then
4083 ac_cv_lib_socket_socket=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_lib_socket_socket=no
4091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4092 conftest$ac_exeext conftest.$ac_ext
4093 LIBS=$ac_check_lib_save_LIBS
4095 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4096 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4097 if test $ac_cv_lib_socket_socket = yes; then
4098 cat >>confdefs.h <<_ACEOF
4099 #define HAVE_LIBSOCKET 1
4102 LIBS="-lsocket $LIBS"
4105 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4106 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4107 if test "${ac_cv_lib_socket_socket+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 ac_check_lib_save_LIBS=$LIBS
4111 LIBS="-lsocket -lnsl $LIBS"
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 /* Override any GCC internal prototype to avoid an error.
4120 Use char because int might match the return type of a GCC
4121 builtin and then its argument prototype would still apply. */
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (ac_try="$ac_link"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_link") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest$ac_exeext &&
4151 $as_test_x conftest$ac_exeext; then
4152 ac_cv_lib_socket_socket=yes
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 ac_cv_lib_socket_socket=no
4160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4161 conftest$ac_exeext conftest.$ac_ext
4162 LIBS=$ac_check_lib_save_LIBS
4164 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4165 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4166 if test $ac_cv_lib_socket_socket = yes; then
4167 LIBS="-lsocket -lnsl $LIBS"
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4187 if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4210 # include <limits.h>
4212 # include <assert.h>
4216 if { (ac_try="$ac_cpp conftest.$ac_ext"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1 >conftest.err
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null && {
4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4253 if { (ac_try="$ac_cpp conftest.$ac_ext"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } >/dev/null && {
4266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4269 # Broken: success on invalid input.
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 # Passes both tests.
4280 rm -f conftest.err conftest.$ac_ext
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4297 { echo "$as_me:$LINENO: result: $CPP" >&5
4298 echo "${ECHO_T}$CPP" >&6; }
4300 for ac_c_preproc_warn_flag in '' yes
4302 # Use a header file that comes with gcc, so configuring glibc
4303 # with a fresh cross-compiler works.
4304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305 # <limits.h> exists even on freestanding compilers.
4306 # On the NeXT, cc -E runs the code through the compiler's parser,
4307 # not just through cpp. "Syntax error" is here to catch this case.
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4315 # include <limits.h>
4317 # include <assert.h>
4321 if { (ac_try="$ac_cpp conftest.$ac_ext"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } >/dev/null && {
4334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 # Broken: fails on valid input.
4346 rm -f conftest.err conftest.$ac_ext
4348 # OK, works on sane cases. Now check whether nonexistent headers
4349 # can be detected and how.
4350 cat >conftest.$ac_ext <<_ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4358 if { (ac_try="$ac_cpp conftest.$ac_ext"
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4366 grep -v '^ *+' conftest.er1 >conftest.err
4368 cat conftest.err >&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } >/dev/null && {
4371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4372 test ! -s conftest.err
4374 # Broken: success on invalid input.
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 # Passes both tests.
4385 rm -f conftest.err conftest.$ac_ext
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then
4393 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4394 See \`config.log' for more details." >&5
4395 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4396 See \`config.log' for more details." >&2;}
4397 { (exit 1); exit 1; }; }
4401 ac_cpp='$CPP $CPPFLAGS'
4402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4408 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4409 if test "${ac_cv_path_GREP+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 # Extract the first word of "grep ggrep" to use in msg output
4413 if test -z "$GREP"; then
4414 set dummy grep ggrep; ac_prog_name=$2
4415 if test "${ac_cv_path_GREP+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 ac_path_GREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in grep ggrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4428 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4429 # Check for GNU ac_path_GREP and select it if it is found.
4430 # Check for GNU $ac_path_GREP
4431 case `"$ac_path_GREP" --version 2>&1` in
4433 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4436 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 echo 'GREP' >> "conftest.nl"
4443 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 ac_count=`expr $ac_count + 1`
4446 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_GREP="$ac_path_GREP"
4449 ac_path_GREP_max=$ac_count
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458 $ac_path_GREP_found && break 3
4468 GREP="$ac_cv_path_GREP"
4469 if test -z "$GREP"; then
4470 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4471 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4472 { (exit 1); exit 1; }; }
4476 ac_cv_path_GREP=$GREP
4481 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4482 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4483 GREP="$ac_cv_path_GREP"
4486 { echo "$as_me:$LINENO: checking for egrep" >&5
4487 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_EGREP+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4492 then ac_cv_path_EGREP="$GREP -E"
4494 # Extract the first word of "egrep" to use in msg output
4495 if test -z "$EGREP"; then
4496 set dummy egrep; ac_prog_name=$2
4497 if test "${ac_cv_path_EGREP+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_path_EGREP_found=false
4501 # Loop through the user's path and test for each of PROGNAME-LIST
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4506 test -z "$as_dir" && as_dir=.
4507 for ac_prog in egrep; do
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4510 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4511 # Check for GNU ac_path_EGREP and select it if it is found.
4512 # Check for GNU $ac_path_EGREP
4513 case `"$ac_path_EGREP" --version 2>&1` in
4515 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4518 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4521 cat "conftest.in" "conftest.in" >"conftest.tmp"
4522 mv "conftest.tmp" "conftest.in"
4523 cp "conftest.in" "conftest.nl"
4524 echo 'EGREP' >> "conftest.nl"
4525 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527 ac_count=`expr $ac_count + 1`
4528 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4529 # Best one so far, save it but keep looking for a better one
4530 ac_cv_path_EGREP="$ac_path_EGREP"
4531 ac_path_EGREP_max=$ac_count
4533 # 10*(2^10) chars as input seems more than enough
4534 test $ac_count -gt 10 && break
4536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540 $ac_path_EGREP_found && break 3
4550 EGREP="$ac_cv_path_EGREP"
4551 if test -z "$EGREP"; then
4552 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4553 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4554 { (exit 1); exit 1; }; }
4558 ac_cv_path_EGREP=$EGREP
4564 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4565 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4566 EGREP="$ac_cv_path_EGREP"
4569 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4571 if test "${ac_cv_header_stdc+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 ac_cv_header_stdc=yes
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 ac_cv_header_stdc=no
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "memchr" >/dev/null 2>&1; then
4635 ac_cv_header_stdc=no
4641 if test $ac_cv_header_stdc = yes; then
4642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "free" >/dev/null 2>&1; then
4656 ac_cv_header_stdc=no
4662 if test $ac_cv_header_stdc = yes; then
4663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4664 if test "$cross_compiling" = yes; then
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4675 #if ((' ' & 0x0FF) == 0x020)
4676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4679 # define ISLOWER(c) \
4680 (('a' <= (c) && (c) <= 'i') \
4681 || ('j' <= (c) && (c) <= 'r') \
4682 || ('s' <= (c) && (c) <= 'z'))
4683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691 for (i = 0; i < 256; i++)
4692 if (XOR (islower (i), ISLOWER (i))
4693 || toupper (i) != TOUPPER (i))
4698 rm -f conftest$ac_exeext
4699 if { (ac_try="$ac_link"
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_link") 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4709 { (case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_try") 2>&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4720 echo "$as_me: program exited with status $ac_status" >&5
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4725 ac_cv_header_stdc=no
4727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4733 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4734 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4735 if test $ac_cv_header_stdc = yes; then
4737 cat >>confdefs.h <<\_ACEOF
4738 #define STDC_HEADERS 1
4743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4754 inttypes.h stdint.h unistd.h
4756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4770 #include <$ac_header>
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_compile") 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } && {
4786 test -z "$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4788 } && test -s conftest.$ac_objext; then
4789 eval "$as_ac_Header=yes"
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 eval "$as_ac_Header=no"
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_res=`eval echo '${'$as_ac_Header'}'`
4800 { echo "$as_me:$LINENO: result: $ac_res" >&5
4801 echo "${ECHO_T}$ac_res" >&6; }
4802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4822 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_res=`eval echo '${'$as_ac_Header'}'`
4832 { echo "$as_me:$LINENO: result: $ac_res" >&5
4833 echo "${ECHO_T}$ac_res" >&6; }
4835 # Is the header compilable?
4836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4838 cat >conftest.$ac_ext <<_ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 $ac_includes_default
4845 #include <$ac_header>
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 ac_header_compiler=yes
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_header_compiler=no
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4874 echo "${ECHO_T}$ac_header_compiler" >&6; }
4876 # Is the header present?
4877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <$ac_header>
4887 if { (ac_try="$ac_cpp conftest.$ac_ext"
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4903 ac_header_preproc=yes
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_header_preproc=no
4911 rm -f conftest.err conftest.$ac_ext
4912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4913 echo "${ECHO_T}$ac_header_preproc" >&6; }
4915 # So? What about this header?
4916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4922 ac_header_preproc=yes
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 eval "$as_ac_Header=\$ac_header_preproc"
4947 ac_res=`eval echo '${'$as_ac_Header'}'`
4948 { echo "$as_me:$LINENO: result: $ac_res" >&5
4949 echo "${ECHO_T}$ac_res" >&6; }
4952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953 cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4962 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4963 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4964 if test "${ac_cv_c_bigendian+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 # See if sys/param.h defines the BYTE_ORDER macro.
4968 cat >conftest.$ac_ext <<_ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 #include <sys/types.h>
4975 #include <sys/param.h>
4980 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4981 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4989 rm -f conftest.$ac_objext
4990 if { (ac_try="$ac_compile"
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_compile") 2>conftest.er1
4998 grep -v '^ *+' conftest.er1 >conftest.err
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } && {
5003 test -z "$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 } && test -s conftest.$ac_objext; then
5006 # It does; now see whether it defined to BIG_ENDIAN or not.
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 #include <sys/types.h>
5014 #include <sys/param.h>
5019 #if BYTE_ORDER != BIG_ENDIAN
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_compile") 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && {
5041 test -z "$ac_c_werror_flag" ||
5042 test ! -s conftest.err
5043 } && test -s conftest.$ac_objext; then
5044 ac_cv_c_bigendian=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_cv_c_bigendian=no
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # It does not; compile a test program.
5058 if test "$cross_compiling" = yes; then
5059 # try to guess the endianness by grepping values into an object file
5060 ac_cv_c_bigendian=unknown
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5068 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5069 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5070 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5071 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5072 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5076 _ascii (); _ebcdic ();
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5098 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5099 ac_cv_c_bigendian=yes
5101 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5102 if test "$ac_cv_c_bigendian" = unknown; then
5103 ac_cv_c_bigendian=no
5105 # finding both strings is unlikely to happen, but who knows?
5106 ac_cv_c_bigendian=unknown
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 cat >conftest.$ac_ext <<_ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 $ac_includes_default
5129 /* Are we little or big endian? From Harbison&Steele. */
5133 char c[sizeof (long int)];
5136 return u.c[sizeof (long int) - 1] == 1;
5142 rm -f conftest$ac_exeext
5143 if { (ac_try="$ac_link"
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_link") 2>&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5153 { (case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_try") 2>&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_cv_c_bigendian=no
5164 echo "$as_me: program exited with status $ac_status" >&5
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5169 ac_cv_c_bigendian=yes
5171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5181 case $ac_cv_c_bigendian in
5184 cat >>confdefs.h <<\_ACEOF
5185 #define WORDS_BIGENDIAN 1
5191 { { echo "$as_me:$LINENO: error: unknown endianness
5192 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5193 echo "$as_me: error: unknown endianness
5194 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 { echo "$as_me:$LINENO: checking for size_t" >&5
5199 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5200 if test "${ac_cv_type_size_t+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 $ac_includes_default
5210 typedef size_t ac__type_new_;
5214 if ((ac__type_new_ *) 0)
5216 if (sizeof (ac__type_new_))
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compile") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1 >conftest.err
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
5239 ac_cv_type_size_t=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_cv_type_size_t=no
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5250 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5251 if test $ac_cv_type_size_t = yes; then
5255 cat >>confdefs.h <<_ACEOF
5256 #define size_t unsigned int
5261 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5262 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5263 if test "${ac_cv_header_time+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 cat >conftest.$ac_ext <<_ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <sys/types.h>
5273 #include <sys/time.h>
5279 if ((struct tm *) 0)
5285 rm -f conftest.$ac_objext
5286 if { (ac_try="$ac_compile"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compile") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } && {
5299 test -z "$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5301 } && test -s conftest.$ac_objext; then
5302 ac_cv_header_time=yes
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 ac_cv_header_time=no
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5313 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5314 if test $ac_cv_header_time = yes; then
5316 cat >>confdefs.h <<\_ACEOF
5317 #define TIME_WITH_SYS_TIME 1
5322 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5324 if test "${ac_cv_struct_tm+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 #include <sys/types.h>
5340 int *p = &tm.tm_sec;
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 ac_cv_struct_tm=time.h
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 ac_cv_struct_tm=sys/time.h
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5374 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5375 if test $ac_cv_struct_tm = sys/time.h; then
5377 cat >>confdefs.h <<\_ACEOF
5378 #define TM_IN_SYS_TIME 1
5383 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5384 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5385 if test "${ac_cv_type_uid_t+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <sys/types.h>
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "uid_t" >/dev/null 2>&1; then
5399 ac_cv_type_uid_t=yes
5406 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5407 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5408 if test $ac_cv_type_uid_t = no; then
5410 cat >>confdefs.h <<\_ACEOF
5415 cat >>confdefs.h <<\_ACEOF
5421 { echo "$as_me:$LINENO: checking for short" >&5
5422 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5423 if test "${ac_cv_type_short+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5433 typedef short ac__type_new_;
5437 if ((ac__type_new_ *) 0)
5439 if (sizeof (ac__type_new_))
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_type_short=yes
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5473 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5475 # The cast to long int works around a bug in the HP C Compiler
5476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5478 # This bug is HP SR number 8606223364.
5479 { echo "$as_me:$LINENO: checking size of short" >&5
5480 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5481 if test "${ac_cv_sizeof_short+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 if test "$cross_compiling" = yes; then
5485 # Depending upon the size, compute the lo and hi bounds.
5486 cat >conftest.$ac_ext <<_ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5493 typedef short ac__type_sizeof_;
5497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5513 grep -v '^ *+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
5523 cat >conftest.$ac_ext <<_ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 $ac_includes_default
5530 typedef short ac__type_sizeof_;
5534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
5558 ac_hi=$ac_mid; break
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_lo=`expr $ac_mid + 1`
5564 if test $ac_lo -le $ac_mid; then
5568 ac_mid=`expr 2 '*' $ac_mid + 1`
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 typedef short ac__type_sizeof_;
5588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_compile") 2>conftest.er1
5604 grep -v '^ *+' conftest.er1 >conftest.err
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } && {
5609 test -z "$ac_c_werror_flag" ||
5610 test ! -s conftest.err
5611 } && test -s conftest.$ac_objext; then
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 typedef short ac__type_sizeof_;
5625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.$ac_objext; then
5649 ac_lo=$ac_mid; break
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ac_hi=`expr '(' $ac_mid ')' - 1`
5655 if test $ac_mid -le $ac_hi; then
5659 ac_mid=`expr 2 '*' $ac_mid`
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 # Binary search between lo and hi bounds.
5676 while test "x$ac_lo" != "x$ac_hi"; do
5677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 $ac_includes_default
5685 typedef short ac__type_sizeof_;
5689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 ac_lo=`expr '(' $ac_mid ')' + 1`
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 ?*) ac_cv_sizeof_short=$ac_lo;;
5725 '') if test "$ac_cv_type_short" = yes; then
5726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5727 See \`config.log' for more details." >&5
5728 echo "$as_me: error: cannot compute sizeof (short)
5729 See \`config.log' for more details." >&2;}
5730 { (exit 77); exit 77; }; }
5732 ac_cv_sizeof_short=0
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5743 typedef short ac__type_sizeof_;
5744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5752 FILE *f = fopen ("conftest.val", "w");
5755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5757 long int i = longval ();
5758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5760 fprintf (f, "%ld\n", i);
5764 unsigned long int i = ulongval ();
5765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5767 fprintf (f, "%lu\n", i);
5769 return ferror (f) || fclose (f) != 0;
5775 rm -f conftest$ac_exeext
5776 if { (ac_try="$ac_link"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_link") 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5786 { (case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_try") 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_cv_sizeof_short=`cat conftest.val`
5797 echo "$as_me: program exited with status $ac_status" >&5
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5802 if test "$ac_cv_type_short" = yes; then
5803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5804 See \`config.log' for more details." >&5
5805 echo "$as_me: error: cannot compute sizeof (short)
5806 See \`config.log' for more details." >&2;}
5807 { (exit 77); exit 77; }; }
5809 ac_cv_sizeof_short=0
5812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5817 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5821 cat >>confdefs.h <<_ACEOF
5822 #define SIZEOF_SHORT $ac_cv_sizeof_short
5826 { echo "$as_me:$LINENO: checking for int" >&5
5827 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5828 if test "${ac_cv_type_int+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat >conftest.$ac_ext <<_ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5837 $ac_includes_default
5838 typedef int ac__type_new_;
5842 if ((ac__type_new_ *) 0)
5844 if (sizeof (ac__type_new_))
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5859 grep -v '^ *+' conftest.er1 >conftest.err
5861 cat conftest.err >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && {
5864 test -z "$ac_c_werror_flag" ||
5865 test ! -s conftest.err
5866 } && test -s conftest.$ac_objext; then
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5878 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5880 # The cast to long int works around a bug in the HP C Compiler
5881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5883 # This bug is HP SR number 8606223364.
5884 { echo "$as_me:$LINENO: checking size of int" >&5
5885 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5886 if test "${ac_cv_sizeof_int+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test "$cross_compiling" = yes; then
5890 # Depending upon the size, compute the lo and hi bounds.
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5898 typedef int ac__type_sizeof_;
5902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5909 rm -f conftest.$ac_objext
5910 if { (ac_try="$ac_compile"
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest.$ac_objext; then
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5935 typedef int ac__type_sizeof_;
5939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_hi=$ac_mid; break
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_lo=`expr $ac_mid + 1`
5969 if test $ac_lo -le $ac_mid; then
5973 ac_mid=`expr 2 '*' $ac_mid + 1`
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5989 typedef int ac__type_sizeof_;
5993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6000 rm -f conftest.$ac_objext
6001 if { (ac_try="$ac_compile"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 $ac_includes_default
6026 typedef int ac__type_sizeof_;
6030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_lo=$ac_mid; break
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_hi=`expr '(' $ac_mid ')' - 1`
6060 if test $ac_mid -le $ac_hi; then
6064 ac_mid=`expr 2 '*' $ac_mid`
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 # Binary search between lo and hi bounds.
6081 while test "x$ac_lo" != "x$ac_hi"; do
6082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 $ac_includes_default
6090 typedef int ac__type_sizeof_;
6094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_compile") 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest.$ac_objext; then
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_lo=`expr '(' $ac_mid ')' + 1`
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 ?*) ac_cv_sizeof_int=$ac_lo;;
6130 '') if test "$ac_cv_type_int" = yes; then
6131 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6132 See \`config.log' for more details." >&5
6133 echo "$as_me: error: cannot compute sizeof (int)
6134 See \`config.log' for more details." >&2;}
6135 { (exit 77); exit 77; }; }
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 $ac_includes_default
6148 typedef int ac__type_sizeof_;
6149 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6150 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6157 FILE *f = fopen ("conftest.val", "w");
6160 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6162 long int i = longval ();
6163 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6165 fprintf (f, "%ld\n", i);
6169 unsigned long int i = ulongval ();
6170 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6172 fprintf (f, "%lu\n", i);
6174 return ferror (f) || fclose (f) != 0;
6180 rm -f conftest$ac_exeext
6181 if { (ac_try="$ac_link"
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_link") 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_sizeof_int=`cat conftest.val`
6202 echo "$as_me: program exited with status $ac_status" >&5
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6207 if test "$ac_cv_type_int" = yes; then
6208 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6209 See \`config.log' for more details." >&5
6210 echo "$as_me: error: cannot compute sizeof (int)
6211 See \`config.log' for more details." >&2;}
6212 { (exit 77); exit 77; }; }
6217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6221 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6222 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6226 cat >>confdefs.h <<_ACEOF
6227 #define SIZEOF_INT $ac_cv_sizeof_int
6231 { echo "$as_me:$LINENO: checking for long" >&5
6232 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6233 if test "${ac_cv_type_long+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6243 typedef long ac__type_new_;
6247 if ((ac__type_new_ *) 0)
6249 if (sizeof (ac__type_new_))
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6283 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6285 # The cast to long int works around a bug in the HP C Compiler
6286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6288 # This bug is HP SR number 8606223364.
6289 { echo "$as_me:$LINENO: checking size of long" >&5
6290 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6291 if test "${ac_cv_sizeof_long+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 if test "$cross_compiling" = yes; then
6295 # Depending upon the size, compute the lo and hi bounds.
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 typedef long ac__type_sizeof_;
6307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 $ac_includes_default
6340 typedef long ac__type_sizeof_;
6344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 ac_hi=$ac_mid; break
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_lo=`expr $ac_mid + 1`
6374 if test $ac_lo -le $ac_mid; then
6378 ac_mid=`expr 2 '*' $ac_mid + 1`
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 typedef long ac__type_sizeof_;
6398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest.$ac_objext; then
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 $ac_includes_default
6431 typedef long ac__type_sizeof_;
6435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_compile") 2>conftest.er1
6451 grep -v '^ *+' conftest.er1 >conftest.err
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } && {
6456 test -z "$ac_c_werror_flag" ||
6457 test ! -s conftest.err
6458 } && test -s conftest.$ac_objext; then
6459 ac_lo=$ac_mid; break
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 ac_hi=`expr '(' $ac_mid ')' - 1`
6465 if test $ac_mid -le $ac_hi; then
6469 ac_mid=`expr 2 '*' $ac_mid`
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 # Binary search between lo and hi bounds.
6486 while test "x$ac_lo" != "x$ac_hi"; do
6487 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 $ac_includes_default
6495 typedef long ac__type_sizeof_;
6499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest.$ac_objext; then
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_lo=`expr '(' $ac_mid ')' + 1`
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ?*) ac_cv_sizeof_long=$ac_lo;;
6535 '') if test "$ac_cv_type_long" = yes; then
6536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6537 See \`config.log' for more details." >&5
6538 echo "$as_me: error: cannot compute sizeof (long)
6539 See \`config.log' for more details." >&2;}
6540 { (exit 77); exit 77; }; }
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6553 typedef long ac__type_sizeof_;
6554 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6555 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6562 FILE *f = fopen ("conftest.val", "w");
6565 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6567 long int i = longval ();
6568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6570 fprintf (f, "%ld\n", i);
6574 unsigned long int i = ulongval ();
6575 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6577 fprintf (f, "%lu\n", i);
6579 return ferror (f) || fclose (f) != 0;
6585 rm -f conftest$ac_exeext
6586 if { (ac_try="$ac_link"
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_link") 2>&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6596 { (case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601 (eval "$ac_try") 2>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_sizeof_long=`cat conftest.val`
6607 echo "$as_me: program exited with status $ac_status" >&5
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6612 if test "$ac_cv_type_long" = yes; then
6613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6614 See \`config.log' for more details." >&5
6615 echo "$as_me: error: cannot compute sizeof (long)
6616 See \`config.log' for more details." >&2;}
6617 { (exit 77); exit 77; }; }
6622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6627 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6631 cat >>confdefs.h <<_ACEOF
6632 #define SIZEOF_LONG $ac_cv_sizeof_long
6636 { echo "$as_me:$LINENO: checking for void *" >&5
6637 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6638 if test "${ac_cv_type_void_p+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 typedef void * ac__type_new_;
6652 if ((ac__type_new_ *) 0)
6654 if (sizeof (ac__type_new_))
6660 rm -f conftest.$ac_objext
6661 if { (ac_try="$ac_compile"
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6669 grep -v '^ *+' conftest.er1 >conftest.err
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
6677 ac_cv_type_void_p=yes
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 ac_cv_type_void_p=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6688 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
6690 # The cast to long int works around a bug in the HP C Compiler
6691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6693 # This bug is HP SR number 8606223364.
6694 { echo "$as_me:$LINENO: checking size of void *" >&5
6695 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
6696 if test "${ac_cv_sizeof_void_p+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 if test "$cross_compiling" = yes; then
6700 # Depending upon the size, compute the lo and hi bounds.
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 typedef void * ac__type_sizeof_;
6712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_c_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest.$ac_objext; then
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 typedef void * ac__type_sizeof_;
6749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_compile") 2>conftest.er1
6765 grep -v '^ *+' conftest.er1 >conftest.err
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest.$ac_objext; then
6773 ac_hi=$ac_mid; break
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_lo=`expr $ac_mid + 1`
6779 if test $ac_lo -le $ac_mid; then
6783 ac_mid=`expr 2 '*' $ac_mid + 1`
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 typedef void * ac__type_sizeof_;
6803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6810 rm -f conftest.$ac_objext
6811 if { (ac_try="$ac_compile"
6813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_compile") 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_c_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest.$ac_objext; then
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6836 typedef void * ac__type_sizeof_;
6840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6847 rm -f conftest.$ac_objext
6848 if { (ac_try="$ac_compile"
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854 (eval "$ac_compile") 2>conftest.er1
6856 grep -v '^ *+' conftest.er1 >conftest.err
6858 cat conftest.err >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } && {
6861 test -z "$ac_c_werror_flag" ||
6862 test ! -s conftest.err
6863 } && test -s conftest.$ac_objext; then
6864 ac_lo=$ac_mid; break
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6869 ac_hi=`expr '(' $ac_mid ')' - 1`
6870 if test $ac_mid -le $ac_hi; then
6874 ac_mid=`expr 2 '*' $ac_mid`
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 # Binary search between lo and hi bounds.
6891 while test "x$ac_lo" != "x$ac_hi"; do
6892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6900 typedef void * ac__type_sizeof_;
6904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6911 rm -f conftest.$ac_objext
6912 if { (ac_try="$ac_compile"
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_compile") 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.$ac_objext; then
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_lo=`expr '(' $ac_mid ')' + 1`
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6940 '') if test "$ac_cv_type_void_p" = yes; then
6941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6942 See \`config.log' for more details." >&5
6943 echo "$as_me: error: cannot compute sizeof (void *)
6944 See \`config.log' for more details." >&2;}
6945 { (exit 77); exit 77; }; }
6947 ac_cv_sizeof_void_p=0
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 $ac_includes_default
6958 typedef void * ac__type_sizeof_;
6959 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6960 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6967 FILE *f = fopen ("conftest.val", "w");
6970 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6972 long int i = longval ();
6973 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6975 fprintf (f, "%ld\n", i);
6979 unsigned long int i = ulongval ();
6980 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6982 fprintf (f, "%lu\n", i);
6984 return ferror (f) || fclose (f) != 0;
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_link") 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001 { (case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006 (eval "$ac_try") 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_cv_sizeof_void_p=`cat conftest.val`
7012 echo "$as_me: program exited with status $ac_status" >&5
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 if test "$ac_cv_type_void_p" = yes; then
7018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: cannot compute sizeof (void *)
7021 See \`config.log' for more details." >&2;}
7022 { (exit 77); exit 77; }; }
7024 ac_cv_sizeof_void_p=0
7027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7031 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7032 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7036 cat >>confdefs.h <<_ACEOF
7037 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7041 { echo "$as_me:$LINENO: checking for int64_t" >&5
7042 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7043 if test "${ac_cv_type_int64_t+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7053 typedef int64_t ac__type_new_;
7057 if ((ac__type_new_ *) 0)
7059 if (sizeof (ac__type_new_))
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_type_int64_t=yes
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_type_int64_t=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7093 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7095 # The cast to long int works around a bug in the HP C Compiler
7096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7098 # This bug is HP SR number 8606223364.
7099 { echo "$as_me:$LINENO: checking size of int64_t" >&5
7100 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
7101 if test "${ac_cv_sizeof_int64_t+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 if test "$cross_compiling" = yes; then
7105 # Depending upon the size, compute the lo and hi bounds.
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 typedef int64_t ac__type_sizeof_;
7117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7150 typedef int64_t ac__type_sizeof_;
7154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7161 rm -f conftest.$ac_objext
7162 if { (ac_try="$ac_compile"
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_compile") 2>conftest.er1
7170 grep -v '^ *+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest.$ac_objext; then
7178 ac_hi=$ac_mid; break
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_lo=`expr $ac_mid + 1`
7184 if test $ac_lo -le $ac_mid; then
7188 ac_mid=`expr 2 '*' $ac_mid + 1`
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 cat >conftest.$ac_ext <<_ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7204 typedef int64_t ac__type_sizeof_;
7208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 typedef int64_t ac__type_sizeof_;
7245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_lo=$ac_mid; break
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_hi=`expr '(' $ac_mid ')' - 1`
7275 if test $ac_mid -le $ac_hi; then
7279 ac_mid=`expr 2 '*' $ac_mid`
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 # Binary search between lo and hi bounds.
7296 while test "x$ac_lo" != "x$ac_hi"; do
7297 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7305 typedef int64_t ac__type_sizeof_;
7309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_lo=`expr '(' $ac_mid ')' + 1`
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7345 '') if test "$ac_cv_type_int64_t" = yes; then
7346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7347 See \`config.log' for more details." >&5
7348 echo "$as_me: error: cannot compute sizeof (int64_t)
7349 See \`config.log' for more details." >&2;}
7350 { (exit 77); exit 77; }; }
7352 ac_cv_sizeof_int64_t=0
7356 cat >conftest.$ac_ext <<_ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7363 typedef int64_t ac__type_sizeof_;
7364 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7365 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7372 FILE *f = fopen ("conftest.val", "w");
7375 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7377 long int i = longval ();
7378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7380 fprintf (f, "%ld\n", i);
7384 unsigned long int i = ulongval ();
7385 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7387 fprintf (f, "%lu\n", i);
7389 return ferror (f) || fclose (f) != 0;
7395 rm -f conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_link") 2>&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7406 { (case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_try") 2>&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_sizeof_int64_t=`cat conftest.val`
7417 echo "$as_me: program exited with status $ac_status" >&5
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7422 if test "$ac_cv_type_int64_t" = yes; then
7423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7424 See \`config.log' for more details." >&5
7425 echo "$as_me: error: cannot compute sizeof (int64_t)
7426 See \`config.log' for more details." >&2;}
7427 { (exit 77); exit 77; }; }
7429 ac_cv_sizeof_int64_t=0
7432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7436 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7437 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
7441 cat >>confdefs.h <<_ACEOF
7442 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7446 { echo "$as_me:$LINENO: checking for long long" >&5
7447 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7448 if test "${ac_cv_type_long_long+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7458 typedef long long ac__type_new_;
7462 if ((ac__type_new_ *) 0)
7464 if (sizeof (ac__type_new_))
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 ac_cv_type_long_long=yes
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_cv_type_long_long=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7498 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7500 # The cast to long int works around a bug in the HP C Compiler
7501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7503 # This bug is HP SR number 8606223364.
7504 { echo "$as_me:$LINENO: checking size of long long" >&5
7505 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7506 if test "${ac_cv_sizeof_long_long+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 if test "$cross_compiling" = yes; then
7510 # Depending upon the size, compute the lo and hi bounds.
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7518 typedef long long ac__type_sizeof_;
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 $ac_includes_default
7555 typedef long long ac__type_sizeof_;
7559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 ac_hi=$ac_mid; break
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_lo=`expr $ac_mid + 1`
7589 if test $ac_lo -le $ac_mid; then
7593 ac_mid=`expr 2 '*' $ac_mid + 1`
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 $ac_includes_default
7609 typedef long long ac__type_sizeof_;
7613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_c_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest.$ac_objext; then
7639 cat >conftest.$ac_ext <<_ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 typedef long long ac__type_sizeof_;
7650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_lo=$ac_mid; break
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_hi=`expr '(' $ac_mid ')' - 1`
7680 if test $ac_mid -le $ac_hi; then
7684 ac_mid=`expr 2 '*' $ac_mid`
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 # Binary search between lo and hi bounds.
7701 while test "x$ac_lo" != "x$ac_hi"; do
7702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7709 $ac_includes_default
7710 typedef long long ac__type_sizeof_;
7714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1 >conftest.err
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_lo=`expr '(' $ac_mid ')' + 1`
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7750 '') if test "$ac_cv_type_long_long" = yes; then
7751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7752 See \`config.log' for more details." >&5
7753 echo "$as_me: error: cannot compute sizeof (long long)
7754 See \`config.log' for more details." >&2;}
7755 { (exit 77); exit 77; }; }
7757 ac_cv_sizeof_long_long=0
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 $ac_includes_default
7768 typedef long long ac__type_sizeof_;
7769 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7770 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7777 FILE *f = fopen ("conftest.val", "w");
7780 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7782 long int i = longval ();
7783 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7785 fprintf (f, "%ld\n", i);
7789 unsigned long int i = ulongval ();
7790 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7792 fprintf (f, "%lu\n", i);
7794 return ferror (f) || fclose (f) != 0;
7800 rm -f conftest$ac_exeext
7801 if { (ac_try="$ac_link"
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_link") 2>&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7811 { (case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_try") 2>&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 ac_cv_sizeof_long_long=`cat conftest.val`
7822 echo "$as_me: program exited with status $ac_status" >&5
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7827 if test "$ac_cv_type_long_long" = yes; then
7828 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7829 See \`config.log' for more details." >&5
7830 echo "$as_me: error: cannot compute sizeof (long long)
7831 See \`config.log' for more details." >&2;}
7832 { (exit 77); exit 77; }; }
7834 ac_cv_sizeof_long_long=0
7837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7842 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7846 cat >>confdefs.h <<_ACEOF
7847 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7851 if test "$ac_cv_sizeof_int" = 2 ; then
7852 { echo "$as_me:$LINENO: checking for int16_t" >&5
7853 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7854 if test "${ac_cv_type_int16_t+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7864 typedef int16_t ac__type_new_;
7868 if ((ac__type_new_ *) 0)
7870 if (sizeof (ac__type_new_))
7876 rm -f conftest.$ac_objext
7877 if { (ac_try="$ac_compile"
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_compile") 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && {
7890 test -z "$ac_c_werror_flag" ||
7891 test ! -s conftest.err
7892 } && test -s conftest.$ac_objext; then
7893 ac_cv_type_int16_t=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_type_int16_t=no
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7904 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
7905 if test $ac_cv_type_int16_t = yes; then
7909 cat >>confdefs.h <<_ACEOF
7915 { echo "$as_me:$LINENO: checking for uint16_t" >&5
7916 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7917 if test "${ac_cv_type_uint16_t+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 $ac_includes_default
7927 typedef uint16_t ac__type_new_;
7931 if ((ac__type_new_ *) 0)
7933 if (sizeof (ac__type_new_))
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7956 ac_cv_type_uint16_t=yes
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_cv_type_uint16_t=no
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7967 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
7968 if test $ac_cv_type_uint16_t = yes; then
7972 cat >>confdefs.h <<_ACEOF
7973 #define uint16_t unsigned int
7978 elif test "$ac_cv_sizeof_short" = 2 ; then
7979 { echo "$as_me:$LINENO: checking for int16_t" >&5
7980 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7981 if test "${ac_cv_type_int16_t+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990 $ac_includes_default
7991 typedef int16_t ac__type_new_;
7995 if ((ac__type_new_ *) 0)
7997 if (sizeof (ac__type_new_))
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_cv_type_int16_t=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_cv_type_int16_t=no
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8031 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
8032 if test $ac_cv_type_int16_t = yes; then
8036 cat >>confdefs.h <<_ACEOF
8037 #define int16_t short
8042 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8043 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8044 if test "${ac_cv_type_uint16_t+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 typedef uint16_t ac__type_new_;
8058 if ((ac__type_new_ *) 0)
8060 if (sizeof (ac__type_new_))
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_compile") 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && {
8080 test -z "$ac_c_werror_flag" ||
8081 test ! -s conftest.err
8082 } && test -s conftest.$ac_objext; then
8083 ac_cv_type_uint16_t=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_type_uint16_t=no
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8094 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8095 if test $ac_cv_type_uint16_t = yes; then
8099 cat >>confdefs.h <<_ACEOF
8100 #define uint16_t unsigned short
8106 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
8107 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
8108 { (exit 1); exit 1; }; }
8110 if test "$ac_cv_sizeof_int" = 4 ; then
8111 { echo "$as_me:$LINENO: checking for int32_t" >&5
8112 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8113 if test "${ac_cv_type_int32_t+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 $ac_includes_default
8123 typedef int32_t ac__type_new_;
8127 if ((ac__type_new_ *) 0)
8129 if (sizeof (ac__type_new_))
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_cv_type_int32_t=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_cv_type_int32_t=no
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8163 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8164 if test $ac_cv_type_int32_t = yes; then
8168 cat >>confdefs.h <<_ACEOF
8174 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8175 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8176 if test "${ac_cv_type_uint32_t+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 $ac_includes_default
8186 typedef uint32_t ac__type_new_;
8190 if ((ac__type_new_ *) 0)
8192 if (sizeof (ac__type_new_))
8198 rm -f conftest.$ac_objext
8199 if { (ac_try="$ac_compile"
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_compile") 2>conftest.er1
8207 grep -v '^ *+' conftest.er1 >conftest.err
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } && {
8212 test -z "$ac_c_werror_flag" ||
8213 test ! -s conftest.err
8214 } && test -s conftest.$ac_objext; then
8215 ac_cv_type_uint32_t=yes
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8220 ac_cv_type_uint32_t=no
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8226 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8227 if test $ac_cv_type_uint32_t = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define uint32_t unsigned int
8237 elif test "$ac_cv_sizeof_short" = 4 ; then
8238 { echo "$as_me:$LINENO: checking for int32_t" >&5
8239 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8240 if test "${ac_cv_type_int32_t+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 $ac_includes_default
8250 typedef int32_t ac__type_new_;
8254 if ((ac__type_new_ *) 0)
8256 if (sizeof (ac__type_new_))
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_cv_type_int32_t=yes
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_cv_type_int32_t=no
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8290 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8291 if test $ac_cv_type_int32_t = yes; then
8295 cat >>confdefs.h <<_ACEOF
8296 #define int32_t short
8301 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8302 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8303 if test "${ac_cv_type_uint32_t+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 typedef uint32_t ac__type_new_;
8317 if ((ac__type_new_ *) 0)
8319 if (sizeof (ac__type_new_))
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_type_uint32_t=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_cv_type_uint32_t=no
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8353 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8354 if test $ac_cv_type_uint32_t = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define uint32_t unsigned short
8364 elif test "$ac_cv_sizeof_long" = 4 ; then
8365 { echo "$as_me:$LINENO: checking for int32_t" >&5
8366 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8367 if test "${ac_cv_type_int32_t+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 typedef int32_t ac__type_new_;
8381 if ((ac__type_new_ *) 0)
8383 if (sizeof (ac__type_new_))
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_type_int32_t=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_type_int32_t=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8417 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8418 if test $ac_cv_type_int32_t = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define int32_t long
8428 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8429 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8430 if test "${ac_cv_type_uint32_t+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 typedef uint32_t ac__type_new_;
8444 if ((ac__type_new_ *) 0)
8446 if (sizeof (ac__type_new_))
8452 rm -f conftest.$ac_objext
8453 if { (ac_try="$ac_compile"
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_compile") 2>conftest.er1
8461 grep -v '^ *+' conftest.er1 >conftest.err
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } && {
8466 test -z "$ac_c_werror_flag" ||
8467 test ! -s conftest.err
8468 } && test -s conftest.$ac_objext; then
8469 ac_cv_type_uint32_t=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_type_uint32_t=no
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8480 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8481 if test $ac_cv_type_uint32_t = yes; then
8485 cat >>confdefs.h <<_ACEOF
8486 #define uint32_t unsigned long
8492 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8493 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8494 { (exit 1); exit 1; }; }
8496 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8497 { echo "$as_me:$LINENO: checking for int64_t" >&5
8498 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8499 if test "${ac_cv_type_int64_t+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 typedef int64_t ac__type_new_;
8513 if ((ac__type_new_ *) 0)
8515 if (sizeof (ac__type_new_))
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_type_int64_t=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_type_int64_t=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8549 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8551 { echo "$as_me:$LINENO: checking for uint64_t" >&5
8552 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8553 if test "${ac_cv_type_uint64_t+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562 $ac_includes_default
8563 typedef uint64_t ac__type_new_;
8567 if ((ac__type_new_ *) 0)
8569 if (sizeof (ac__type_new_))
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 ac_cv_type_uint64_t=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_cv_type_uint64_t=no
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8603 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8605 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8606 { echo "$as_me:$LINENO: checking for int64_t" >&5
8607 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8608 if test "${ac_cv_type_int64_t+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 typedef int64_t ac__type_new_;
8622 if ((ac__type_new_ *) 0)
8624 if (sizeof (ac__type_new_))
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8639 grep -v '^ *+' conftest.er1 >conftest.err
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_c_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8647 ac_cv_type_int64_t=yes
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 ac_cv_type_int64_t=no
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8658 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8659 if test $ac_cv_type_int64_t = yes; then
8663 cat >>confdefs.h <<_ACEOF
8664 #define int64_t long long
8669 { echo "$as_me:$LINENO: checking for uint64_t" >&5
8670 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8671 if test "${ac_cv_type_uint64_t+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 $ac_includes_default
8681 typedef uint64_t ac__type_new_;
8685 if ((ac__type_new_ *) 0)
8687 if (sizeof (ac__type_new_))
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_type_uint64_t=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_type_uint64_t=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8721 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8722 if test $ac_cv_type_uint64_t = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define uint64_t unsigned long long
8733 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8734 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8735 { (exit 1); exit 1; }; }
8737 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8738 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 #include <sys/types.h>
8749 #include <netinet/in.h>
8751 typedef struct sockaddr_in6 ac__type_new_;
8755 if ((ac__type_new_ *) 0)
8757 if (sizeof (ac__type_new_))
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_type_struct_sockaddr_in6=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 ac_cv_type_struct_sockaddr_in6=no
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8791 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
8792 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8793 unet_have_sockaddr_in6="yes"
8795 unet_have_sockaddr_in6="no"
8799 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8800 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8801 if test "${ac_cv_type_socklen_t+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 #include <sys/types.h>
8811 #include<sys/socket.h>
8813 typedef socklen_t ac__type_new_;
8817 if ((ac__type_new_ *) 0)
8819 if (sizeof (ac__type_new_))
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_cv_type_socklen_t=yes
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 ac_cv_type_socklen_t=no
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8853 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8854 if test $ac_cv_type_socklen_t = yes; then
8858 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8859 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8860 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 curl_cv_socklen_t_equiv=
8865 for arg2 in "struct sockaddr" void ; do
8866 for t in int size_t unsigned long "unsigned long" ; do
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 #include <sys/types.h>
8874 #include <sys/socket.h>
8875 int getpeername (int $arg2 *, $t *);
8880 getpeername(0, 0, &len);
8885 rm -f conftest.$ac_objext
8886 if { (ac_try="$ac_compile"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_compile") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && {
8899 test -z "$ac_c_werror_flag" ||
8900 test ! -s conftest.err
8901 } && test -s conftest.$ac_objext; then
8902 curl_cv_socklen_t_equiv="$t"
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8918 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
8920 cat >>confdefs.h <<_ACEOF
8921 #define socklen_t $curl_cv_socklen_t_equiv
8931 for ac_func in kqueue setrlimit getrusage times
8933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8947 #define $ac_func innocuous_$ac_func
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char $ac_func (); below.
8951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952 <limits.h> exists even on freestanding compilers. */
8955 # include <limits.h>
8957 # include <assert.h>
8962 /* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8969 /* The GNU C library defines this for functions which it implements
8970 to always fail with ENOSYS. Some functions are actually named
8971 something starting with __ and the normal name is an alias. */
8972 #if defined __stub_$ac_func || defined __stub___$ac_func
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (ac_try="$ac_link"
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_link") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest$ac_exeext &&
9001 $as_test_x conftest$ac_exeext; then
9002 eval "$as_ac_var=yes"
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 eval "$as_ac_var=no"
9010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9011 conftest$ac_exeext conftest.$ac_ext
9013 ac_res=`eval echo '${'$as_ac_var'}'`
9014 { echo "$as_me:$LINENO: result: $ac_res" >&5
9015 echo "${ECHO_T}$ac_res" >&6; }
9016 if test `eval echo '${'$as_ac_var'}'` = yes; then
9017 cat >>confdefs.h <<_ACEOF
9018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9025 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9026 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9027 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9036 #include <sys/types.h>
9037 #include <sys/wait.h>
9039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9050 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9055 rm -f conftest.$ac_objext
9056 if { (ac_try="$ac_compile"
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_compile") 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest.$ac_objext; then
9072 ac_cv_header_sys_wait_h=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_header_sys_wait_h=no
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9084 if test $ac_cv_header_sys_wait_h = yes; then
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_SYS_WAIT_H 1
9092 { echo "$as_me:$LINENO: checking for restartable system calls" >&5
9093 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6; }
9094 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 if test "$cross_compiling" = yes; then
9098 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9099 See \`config.log' for more details." >&5
9100 echo "$as_me: error: cannot run test program while cross compiling
9101 See \`config.log' for more details." >&2;}
9102 { (exit 1); exit 1; }; }
9104 cat >conftest.$ac_ext <<_ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 /* Exit 0 (true) if wait returns something other than -1,
9111 i.e. the pid of the child, which means that wait was restarted
9112 after getting the signal. */
9114 $ac_includes_default
9116 #ifdef HAVE_SYS_WAIT_H
9117 # include <sys/wait.h>
9120 /* Some platforms explicitly require an extern "C" signal handler
9123 extern "C" void ucatch (int dummy) { }
9125 void ucatch (dummy) int dummy; { }
9131 int i = fork (), status;
9136 kill (getppid (), SIGINT);
9141 signal (SIGINT, ucatch);
9147 return status == -1;
9150 rm -f conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_link") 2>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_sys_restartable_syscalls=yes
9172 echo "$as_me: program exited with status $ac_status" >&5
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_cv_sys_restartable_syscalls=no
9179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9184 { echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
9185 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6; }
9186 if test $ac_cv_sys_restartable_syscalls = yes; then
9188 cat >>confdefs.h <<\_ACEOF
9189 #define HAVE_RESTARTABLE_SYSCALLS 1
9195 { echo "$as_me:$LINENO: checking for donuts" >&5
9196 echo $ECHO_N "checking for donuts... $ECHO_C" >&6; }
9197 { echo "$as_me:$LINENO: result: yes" >&5
9198 echo "${ECHO_T}yes" >&6; }
9200 for ac_prog in gawk mawk nawk awk
9202 # Extract the first word of "$ac_prog", so it can be a program name with args.
9203 set dummy $ac_prog; ac_word=$2
9204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9206 if test "${ac_cv_prog_AWK+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 if test -n "$AWK"; then
9210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 test -z "$as_dir" && as_dir=.
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9219 ac_cv_prog_AWK="$ac_prog"
9220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 if test -n "$AWK"; then
9231 { echo "$as_me:$LINENO: result: $AWK" >&5
9232 echo "${ECHO_T}$AWK" >&6; }
9234 { echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6; }
9239 test -n "$AWK" && break
9242 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9243 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9244 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9245 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 cat >conftest.make <<\_ACEOF
9251 @echo '@@@%%%=$(MAKE)=@@@%%%'
9253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9254 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9256 eval ac_cv_prog_make_${ac_make}_set=yes;;
9258 eval ac_cv_prog_make_${ac_make}_set=no;;
9262 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9263 { echo "$as_me:$LINENO: result: yes" >&5
9264 echo "${ECHO_T}yes" >&6; }
9267 { echo "$as_me:$LINENO: result: no" >&5
9268 echo "${ECHO_T}no" >&6; }
9269 SET_MAKE="MAKE=${MAKE-make}"
9272 # Find a good install program. We prefer a C program (faster),
9273 # so one script is as good as another. But avoid the broken or
9274 # incompatible versions:
9275 # SysV /etc/install, /usr/sbin/install
9276 # SunOS /usr/etc/install
9277 # IRIX /sbin/install
9279 # AmigaOS /C/install, which installs bootblocks on floppy discs
9280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9283 # OS/2's system install, which has a completely different semantic
9284 # ./install, which can be erroneously created by make from ./install.sh.
9285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9287 if test -z "$INSTALL"; then
9288 if test "${ac_cv_path_install+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 test -z "$as_dir" && as_dir=.
9296 # Account for people who put trailing slashes in PATH elements.
9298 ./ | .// | /cC/* | \
9299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9303 # OSF1 and SCO ODT 3.0 have their own names for install.
9304 # Don't use installbsd from OSF since it installs stuff as root
9306 for ac_prog in ginstall scoinst install; do
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9309 if test $ac_prog = install &&
9310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9311 # AIX install. It has an incompatible calling convention.
9313 elif test $ac_prog = install &&
9314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9315 # program-specific install script used by HP pwplus--don't use.
9318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9331 if test "${ac_cv_path_install+set}" = set; then
9332 INSTALL=$ac_cv_path_install
9334 # As a last resort, use the slow shell script. Don't cache a
9335 # value for INSTALL within a source directory, because that will
9336 # break other packages using the cache if that directory is
9337 # removed, or if the value is a relative name.
9338 INSTALL=$ac_install_sh
9341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9342 echo "${ECHO_T}$INSTALL" >&6; }
9344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9345 # It thinks the first close brace ends the variable substitution.
9346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9352 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
9353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
9355 if test "$LN_S" = "ln -s"; then
9356 { echo "$as_me:$LINENO: result: yes" >&5
9357 echo "${ECHO_T}yes" >&6; }
9359 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9360 echo "${ECHO_T}no, using $LN_S" >&6; }
9365 # Extract the first word of "$ac_prog", so it can be a program name with args.
9366 set dummy $ac_prog; ac_word=$2
9367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9369 if test "${ac_cv_path_RMPROG+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9395 RMPROG=$ac_cv_path_RMPROG
9396 if test -n "$RMPROG"; then
9397 { echo "$as_me:$LINENO: result: $RMPROG" >&5
9398 echo "${ECHO_T}$RMPROG" >&6; }
9400 { echo "$as_me:$LINENO: result: no" >&5
9401 echo "${ECHO_T}no" >&6; }
9405 test -n "$RMPROG" && break
9407 test -n "$RMPROG" || RMPROG="/bin/rm"
9411 # Extract the first word of "$ac_prog", so it can be a program name with args.
9412 set dummy $ac_prog; ac_word=$2
9413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9415 if test "${ac_cv_path_SHPROG+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 SHPROG=$ac_cv_path_SHPROG
9442 if test -n "$SHPROG"; then
9443 { echo "$as_me:$LINENO: result: $SHPROG" >&5
9444 echo "${ECHO_T}$SHPROG" >&6; }
9446 { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9451 test -n "$SHPROG" && break
9453 test -n "$SHPROG" || SHPROG="/bin/sh"
9456 for ac_prog in flex lex
9458 # Extract the first word of "$ac_prog", so it can be a program name with args.
9459 set dummy $ac_prog; ac_word=$2
9460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9462 if test "${ac_cv_prog_LEX+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 if test -n "$LEX"; then
9466 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_LEX="$ac_prog"
9476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 if test -n "$LEX"; then
9487 { echo "$as_me:$LINENO: result: $LEX" >&5
9488 echo "${ECHO_T}$LEX" >&6; }
9490 { echo "$as_me:$LINENO: result: no" >&5
9491 echo "${ECHO_T}no" >&6; }
9495 test -n "$LEX" && break
9497 test -n "$LEX" || LEX=":"
9499 if test "x$LEX" != "x:"; then
9500 cat >conftest.l <<_ACEOF
9506 e { yyless (input () != 0); }
9507 f { unput (yytext[0]); }
9508 . { BEGIN INITIAL; }
9510 #ifdef YYTEXT_POINTER
9511 extern char *yytext;
9516 return ! yylex () + ! yywrap ();
9519 { (ac_try="$LEX conftest.l"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$LEX conftest.l") 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }
9529 { echo "$as_me:$LINENO: checking lex output file root" >&5
9530 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9531 if test "${ac_cv_prog_lex_root+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 if test -f lex.yy.c; then
9536 ac_cv_prog_lex_root=lex.yy
9537 elif test -f lexyy.c; then
9538 ac_cv_prog_lex_root=lexyy
9540 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9541 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9542 { (exit 1); exit 1; }; }
9545 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9546 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9547 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9549 if test -z "${LEXLIB+set}"; then
9550 { echo "$as_me:$LINENO: checking lex library" >&5
9551 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9552 if test "${ac_cv_lib_lex+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 ac_cv_lib_lex='none needed'
9558 for ac_lib in '' -lfl -ll; do
9559 LIBS="$ac_lib $ac_save_LIBS"
9560 cat >conftest.$ac_ext <<_ACEOF
9561 `cat $LEX_OUTPUT_ROOT.c`
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_link") 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext &&
9580 $as_test_x conftest$ac_exeext; then
9581 ac_cv_lib_lex=$ac_lib
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591 test "$ac_cv_lib_lex" != 'none needed' && break
9596 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9597 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9598 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9602 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9603 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9604 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 # POSIX says lex can declare yytext either as a pointer or an array; the
9608 # default is implementation-dependent. Figure out which it is, since
9609 # not all implementations provide the %pointer and %array declarations.
9610 ac_cv_prog_lex_yytext_pointer=no
9612 LIBS="$LEXLIB $ac_save_LIBS"
9613 cat >conftest.$ac_ext <<_ACEOF
9614 #define YYTEXT_POINTER 1
9615 `cat $LEX_OUTPUT_ROOT.c`
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext &&
9634 $as_test_x conftest$ac_exeext; then
9635 ac_cv_prog_lex_yytext_pointer=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9648 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9649 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9650 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9652 cat >>confdefs.h <<\_ACEOF
9653 #define YYTEXT_POINTER 1
9657 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9660 if test "$LEX" = ":" ; then
9661 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9662 echo "$as_me: error: Cannot find flex." >&2;}
9663 { (exit 1); exit 1; }; }
9664 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9667 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9668 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9669 { (exit 1); exit 1; }; }
9672 if test -z "$LEXLIB" ; then
9673 { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9674 It's possible the compiler you're using ($CC) is incompatible with the
9676 See \`config.log' for more details." >&5
9677 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9678 It's possible the compiler you're using ($CC) is incompatible with the
9680 See \`config.log' for more details." >&2;}
9681 { (exit 1); exit 1; }; }
9684 LIBS="$LEXLIB $LIBS"
9686 for ac_prog in 'bison -y' byacc
9688 # Extract the first word of "$ac_prog", so it can be a program name with args.
9689 set dummy $ac_prog; ac_word=$2
9690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9692 if test "${ac_cv_prog_YACC+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 if test -n "$YACC"; then
9696 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 test -z "$as_dir" && as_dir=.
9703 for ac_exec_ext in '' $ac_executable_extensions; do
9704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705 ac_cv_prog_YACC="$ac_prog"
9706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 YACC=$ac_cv_prog_YACC
9716 if test -n "$YACC"; then
9717 { echo "$as_me:$LINENO: result: $YACC" >&5
9718 echo "${ECHO_T}$YACC" >&6; }
9720 { echo "$as_me:$LINENO: result: no" >&5
9721 echo "${ECHO_T}no" >&6; }
9725 test -n "$YACC" && break
9727 test -n "$YACC" || YACC="yacc"
9729 if test "$YACC" = ":" ; then
9730 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9731 echo "$as_me: error: Cannot find yacc." >&2;}
9732 { (exit 1); exit 1; }; }
9733 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9736 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9737 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9740 { echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9741 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6; }
9742 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 if test "$cross_compiling" = yes; then
9746 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9747 See \`config.log' for more details." >&5
9748 echo "$as_me: error: cannot run test program while cross compiling
9749 See \`config.log' for more details." >&2;}
9750 { (exit 1); exit 1; }; }
9752 cat >conftest.$ac_ext <<_ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 #include <sys/types.h>
9759 #include <sys/socket.h>
9761 #include <sys/ioctl.h>
9762 #include <sys/file.h>
9764 $ac_cv_type_signal alarmed() { exit(1); }
9769 size_t l = sizeof(x);
9770 int f = socket(AF_INET, SOCK_DGRAM, 0);
9771 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9773 signal(SIGALRM, alarmed);
9775 recvfrom(f, b, 12, 0, &x, &l);
9782 rm -f conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 unet_cv_sys_nonblocking_posix=yes
9804 echo "$as_me: program exited with status $ac_status" >&5
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9809 unet_cv_sys_nonblocking_posix=no
9811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9816 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9817 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6; }
9818 if test $unet_cv_sys_nonblocking_posix = yes; then
9820 cat >>confdefs.h <<\_ACEOF
9821 #define NBLOCK_POSIX
9825 { echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9826 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6; }
9827 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 if test "$cross_compiling" = yes; then
9831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9832 See \`config.log' for more details." >&5
9833 echo "$as_me: error: cannot run test program while cross compiling
9834 See \`config.log' for more details." >&2;}
9835 { (exit 1); exit 1; }; }
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <sys/types.h>
9844 #include <sys/socket.h>
9846 #include <sys/ioctl.h>
9847 #include <sys/file.h>
9849 $ac_cv_type_signal alarmed() { exit(1); }
9854 size_t l = sizeof(x);
9855 int f = socket(AF_INET, SOCK_DGRAM, 0);
9856 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9858 signal(SIGALRM, alarmed);
9860 recvfrom(f, b, 12, 0, &x, &l);
9867 rm -f conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 unet_cv_sys_nonblocking_bsd=yes
9889 echo "$as_me: program exited with status $ac_status" >&5
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9894 unet_cv_sys_nonblocking_bsd=no
9896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9901 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9902 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6; }
9903 if test $unet_cv_sys_nonblocking_bsd = yes; then
9905 cat >>confdefs.h <<\_ACEOF
9911 cat >>confdefs.h <<\_ACEOF
9917 { echo "$as_me:$LINENO: checking for posix signals" >&5
9918 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6; }
9919 if test "${unet_cv_sys_signal_posix+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9932 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_compile") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest.$ac_objext; then
9954 unet_cv_sys_signal_posix=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 unet_cv_sys_signal_posix=no
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9965 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6; }
9966 if test $unet_cv_sys_signal_posix = yes; then
9968 cat >>confdefs.h <<\_ACEOF
9969 #define POSIX_SIGNALS
9973 { echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9974 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6; }
9975 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 if test "$cross_compiling" = yes; then
9979 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9980 See \`config.log' for more details." >&5
9981 echo "$as_me: error: cannot run test program while cross compiling
9982 See \`config.log' for more details." >&2;}
9983 { (exit 1); exit 1; }; }
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9993 $ac_cv_type_signal handler()
9997 kill(getpid(), SIGTERM);
10002 signal(SIGTERM, handler);
10003 kill(getpid(), SIGTERM);
10007 rm -f conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_link") 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 unet_cv_sys_signal_bsd=yes
10029 echo "$as_me: program exited with status $ac_status" >&5
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ( exit $ac_status )
10034 unet_cv_sys_signal_bsd=no
10036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10041 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
10042 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6; }
10043 if test $unet_cv_sys_signal_bsd = yes; then
10045 cat >>confdefs.h <<\_ACEOF
10046 #define BSD_RELIABLE_SIGNALS
10051 cat >>confdefs.h <<\_ACEOF
10052 #define SYSV_UNRELIABLE_SIGNALS
10058 { echo "$as_me:$LINENO: checking for OS-dependent information" >&5
10059 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6; }
10062 { echo "$as_me:$LINENO: result: Linux ($host) found." >&5
10063 echo "${ECHO_T}Linux ($host) found." >&6; }
10064 unet_poll_syscall=yes
10068 { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10069 echo "${ECHO_T}Solaris ($host) found." >&6; }
10070 if test x"$ac_cv_header_poll_h" = xyes; then
10071 unet_poll_syscall=yes
10073 unet_poll_syscall=no
10076 cat >>confdefs.h <<\_ACEOF
10077 #define IRCU_SOLARIS 1
10083 { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10084 echo "${ECHO_T}Solaris ($host) found." >&6; }
10085 unet_poll_syscall=no
10089 { echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
10090 echo "${ECHO_T}OpenBSD ($host) found." >&6; }
10091 if test x"$ac_cv_header_poll_h" = xyes; then
10092 unet_poll_syscall=yes
10094 unet_poll_syscall=no
10099 { echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
10100 echo "${ECHO_T}Generic BSD ($host) found." >&6; }
10101 if test x"$ac_cv_header_poll_h" = xyes; then
10102 unet_poll_syscall=yes
10104 unet_poll_syscall=no
10109 { echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
10110 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6; }
10111 unet_poll_syscall=no
10115 { echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
10116 echo "${ECHO_T}Unknown system type $host found." >&6; }
10117 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
10118 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
10119 unet_poll_syscall=no
10123 { echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
10124 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6; }
10125 # Check whether --enable-poll was given.
10126 if test "${enable_poll+set}" = set; then
10127 enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
10129 if test "${unet_cv_enable_poll+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 unet_cv_enable_poll=$unet_poll_syscall
10138 # Force poll to be disabled if there is no poll.h
10139 if test x"$ac_cv_header_poll_h" != xyes; then
10140 unet_cv_enable_poll=no
10143 { echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
10144 echo "${ECHO_T}$unet_cv_enable_poll" >&6; }
10146 if test x"$unet_cv_enable_poll" = xyes; then
10148 cat >>confdefs.h <<\_ACEOF
10152 ENGINE_C=engine_poll.c
10154 ENGINE_C=engine_select.c
10158 { echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
10159 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6; }
10160 # Check whether --enable-debug was given.
10161 if test "${enable_debug+set}" = set; then
10162 enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
10164 if test "${unet_cv_enable_debug+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 unet_cv_enable_debug=no
10172 { echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10173 echo "${ECHO_T}$unet_cv_enable_debug" >&6; }
10175 if test x"$unet_cv_enable_debug" = xyes; then
10177 cat >>confdefs.h <<\_ACEOF
10178 #define DEBUGMODE 1
10183 { echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10184 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6; }
10186 # Check whether --with-leak-detect was given.
10187 if test "${with_leak_detect+set}" = set; then
10188 withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
10190 if test "${unet_cv_with_leak_detect+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 unet_cv_with_leak_detect=no
10198 { echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10199 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6; }
10201 if test x"$unet_cv_with_leak_detect" != xno; then
10203 CFLAGS="-DMDEBUG $CFLAGS"
10204 if test x"$unet_cv_with_leak_detect" != xyes; then
10205 LIBS="-L$unet_cv_with_leak_detect $LIBS"
10210 # Check whether --with-ipv6 was given.
10211 if test "${with_ipv6+set}" = set; then
10212 withval=$with_ipv6; ac_cv_use_ipv6=$withval
10214 ac_cv_use_ipv6=$unet_have_sockaddr_in6
10217 { echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10218 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6; }
10219 if test "${ac_cv_use_ipv6+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 { echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10225 echo "${ECHO_T}$ac_cv_use_ipv6" >&6; }
10226 if test x"$ac_cv_use_ipv6" != "xno" ; then
10228 cat >>confdefs.h <<\_ACEOF
10234 { echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10235 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6; }
10236 # Check whether --enable-asserts was given.
10237 if test "${enable_asserts+set}" = set; then
10238 enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
10240 if test "${unet_cv_enable_asserts+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 unet_cv_enable_asserts=yes
10248 { echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10249 echo "${ECHO_T}$unet_cv_enable_asserts" >&6; }
10251 if test x"$unet_cv_enable_asserts" = xno; then
10253 cat >>confdefs.h <<\_ACEOF
10259 { echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10260 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6; }
10261 # Check whether --enable-profile was given.
10262 if test "${enable_profile+set}" = set; then
10263 enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
10265 if test "${unet_cv_enable_profile+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 unet_cv_enable_profile=no
10273 { echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10274 echo "${ECHO_T}$unet_cv_enable_profile" >&6; }
10276 if test x"$unet_cv_enable_profile" = xyes; then
10277 CFLAGS="-pg $CFLAGS"
10278 LDFLAGS="-pg $LDFLAGS"
10281 { echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10282 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6; }
10283 # Check whether --enable-pedantic was given.
10284 if test "${enable_pedantic+set}" = set; then
10285 enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
10287 if test "${unet_cv_enable_pedantic+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 unet_cv_enable_pedantic=no
10295 { echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10296 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6; }
10298 if test x"$unet_cv_enable_pedantic" = xyes; then
10299 CFLAGS="-pedantic $CFLAGS"
10302 { echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10303 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6; }
10304 # Check whether --enable-warnings was given.
10305 if test "${enable_warnings+set}" = set; then
10306 enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
10308 if test "${unet_cv_enable_warnings+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 unet_cv_enable_warnings=no
10316 { echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10317 echo "${ECHO_T}$unet_cv_enable_warnings" >&6; }
10319 if test x"$unet_cv_enable_warnings" = xyes; then
10320 CFLAGS="-Wall $CFLAGS"
10323 { echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10324 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6; }
10325 # Check whether --enable-inlines was given.
10326 if test "${enable_inlines+set}" = set; then
10327 enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
10329 if test "${unet_cv_enable_inlines+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 unet_cv_enable_inlines=yes
10337 { echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10338 echo "${ECHO_T}$unet_cv_enable_inlines" >&6; }
10340 if test x"$unet_cv_enable_inlines" = xyes; then
10342 cat >>confdefs.h <<\_ACEOF
10343 #define FORCEINLINE 1
10348 { echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10349 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6; }
10350 # Check whether --enable-devpoll was given.
10351 if test "${enable_devpoll+set}" = set; then
10352 enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
10354 if test "${unet_cv_enable_devpoll+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 unet_cv_enable_devpoll=yes
10363 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10364 unet_cv_enable_devpoll=no
10367 { echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10368 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6; }
10370 if test x"$unet_cv_enable_devpoll" != xno; then
10372 cat >>confdefs.h <<\_ACEOF
10373 #define USE_DEVPOLL 1
10376 ENGINE_C="engine_devpoll.c $ENGINE_C"
10379 { echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10380 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6; }
10381 # Check whether --enable-kqueue was given.
10382 if test "${enable_kqueue+set}" = set; then
10383 enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
10385 if test "${unet_cv_enable_kqueue+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 unet_cv_enable_kqueue=yes
10394 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10395 unet_cv_enable_kqueue=no
10398 { echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10399 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6; }
10401 if test x"$unet_cv_enable_kqueue" != xno; then
10403 cat >>confdefs.h <<\_ACEOF
10404 #define USE_KQUEUE 1
10407 ENGINE_C="engine_kqueue.c $ENGINE_C"
10410 { echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10411 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6; }
10412 # Check whether --enable-epoll was given.
10413 if test "${enable_epoll+set}" = set; then
10414 enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
10416 if test "${unet_cv_enable_epoll+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 unet_cv_enable_epoll=yes
10425 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10426 unet_cv_enable_epoll=no
10429 { echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10430 echo "${ECHO_T}$unet_cv_enable_epoll" >&6; }
10432 if test x"$unet_cv_enable_epoll" != xno; then
10433 { echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10434 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/epoll.h>
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_link") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest$ac_exeext &&
10467 $as_test_x conftest$ac_exeext; then
10468 { echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6; }
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 { echo "$as_me:$LINENO: result: no" >&5
10475 echo "${ECHO_T}no" >&6; }
10477 cat >>confdefs.h <<\_ACEOF
10478 #define EPOLL_NEED_BODY 1
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484 conftest$ac_exeext conftest.$ac_ext
10486 cat >>confdefs.h <<\_ACEOF
10487 #define USE_EPOLL 1
10490 ENGINE_C="engine_epoll.c $ENGINE_C"
10493 { echo "$as_me:$LINENO: checking for va_copy" >&5
10494 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
10495 if test "${unet_cv_c_va_copy+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 #include <stdarg.h>
10508 va_list ap1, ap2; va_copy(ap1, ap2);
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10531 unet_cv_c_va_copy="yes"
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 unet_cv_c_va_copy="no"
10540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10541 conftest$ac_exeext conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10544 echo "${ECHO_T}$unet_cv_c_va_copy" >&6; }
10545 if test "$unet_cv_c_va_copy" = "yes" ; then
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_VA_COPY 1
10553 { echo "$as_me:$LINENO: checking for __va_copy" >&5
10554 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
10555 if test "${unet_cv_c___va_copy+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 #include <stdarg.h>
10568 va_list ap1, ap2; __va_copy(ap1, ap2);
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext &&
10590 $as_test_x conftest$ac_exeext; then
10591 unet_cv_c___va_copy="yes"
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 unet_cv_c___va_copy="no"
10600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10601 conftest$ac_exeext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10604 echo "${ECHO_T}$unet_cv_c___va_copy" >&6; }
10605 if test "$unet_cv_c___va_copy" = "yes" ; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE___VA_COPY 1
10613 { echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10614 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6; }
10616 # Check whether --with-symlink was given.
10617 if test "${with_symlink+set}" = set; then
10618 withval=$with_symlink; unet_cv_with_symlink=$with_symlink
10620 if test "${unet_cv_with_symlink+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 unet_cv_with_symlink="ircd"
10629 if test x"$unet_cv_with_symlink" = xyes; then
10630 unet_cv_with_symlink="ircd"
10633 { echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10634 echo "${ECHO_T}$unet_cv_with_symlink" >&6; }
10636 if test x"$unet_cv_with_symlink" = xno; then
10637 INSTALL_RULE=install-no-symlink
10640 INSTALL_RULE=install-with-symlink
10641 SYMLINK=$unet_cv_with_symlink
10646 { echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10647 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6; }
10649 # Check whether --with-mode was given.
10650 if test "${with_mode+set}" = set; then
10651 withval=$with_mode; unet_cv_with_mode=$with_mode
10653 if test "${unet_cv_with_mode+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 unet_cv_with_mode=711
10662 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10663 unet_cv_with_mode=711
10666 { echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10667 echo "${ECHO_T}$unet_cv_with_mode" >&6; }
10669 IRCDMODE=$unet_cv_with_mode
10672 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10673 { echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10674 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6; }
10676 # Check whether --with-owner was given.
10677 if test "${with_owner+set}" = set; then
10678 withval=$with_owner; unet_cv_with_owner=$with_owner
10680 if test "${unet_cv_with_owner+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 unet_cv_with_owner=$unet_uid
10689 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10690 unet_cv_with_owner=$unet_uid
10693 { echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10694 echo "${ECHO_T}$unet_cv_with_owner" >&6; }
10696 IRCDOWN=$unet_cv_with_owner
10699 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10700 { echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10701 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6; }
10703 # Check whether --with-group was given.
10704 if test "${with_group+set}" = set; then
10705 withval=$with_group; unet_cv_with_group=$with_group
10707 if test "${unet_cv_with_group+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 unet_cv_with_group=$unet_gid
10716 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10717 unet_cv_with_group=$unet_gid
10720 { echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10721 echo "${ECHO_T}$unet_cv_with_group" >&6; }
10723 IRCDGRP=$unet_cv_with_group
10727 if test -f /etc/resolv.conf; then
10728 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10729 if test x"$unet_domain" = x; then
10730 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10733 { echo "$as_me:$LINENO: checking for site domain name" >&5
10734 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6; }
10736 # Check whether --with-domain was given.
10737 if test "${with_domain+set}" = set; then
10738 withval=$with_domain; unet_cv_with_domain=$with_domain
10740 if test "${unet_cv_with_domain+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 unet_cv_with_domain=$unet_domain
10749 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10750 unet_cv_with_domain=$unet_domain
10752 if test x"$unet_cv_with_domain" = xno; then
10753 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10754 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10755 { (exit 1); exit 1; }; }
10758 { echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10759 echo "${ECHO_T}$unet_cv_with_domain" >&6; }
10762 cat >>confdefs.h <<_ACEOF
10763 #define DOMAINNAME "*$unet_cv_with_domain"
10767 { echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10768 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6; }
10770 # Check whether --with-chroot was given.
10771 if test "${with_chroot+set}" = set; then
10772 withval=$with_chroot; unet_cv_with_chroot=$with_chroot
10774 if test "${unet_cv_with_chroot+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 unet_cv_with_chroot=no
10783 if test x"$unet_cv_with_chroot" = xyes; then
10784 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10785 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10786 { (exit 1); exit 1; }; }
10789 # Ensure there are no trailing /'s to mess us up
10790 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10792 { echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10793 echo "${ECHO_T}$unet_cv_with_chroot" >&6; }
10795 # Deal with the annoying value "NONE" here
10796 unet_save_prefix=$prefix
10797 if test x"$prefix" = xNONE; then
10798 prefix=$ac_default_prefix
10803 unet_save_exec_prefix=$exec_prefix
10804 if test x"$exec_prefix" = xNONE; then
10805 exec_prefix=$prefix
10807 exec_prefix=$exec_prefix
10810 # Obtain the actual interesting directories
10811 unet_bindir=`eval echo "$bindir"`
10812 unet_libdir=`eval echo "$libdir"`
10814 # Restore the original settings of $prefix and $exec_prefix
10815 prefix=$unet_save_prefix
10816 exec_prefix=$unet_save_exec_prefix
10818 { echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10819 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6; }
10820 if test x"$unet_cv_with_symlink" = xno; then
10821 unet_spath="$unet_bindir/ircd"
10823 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10825 { echo "$as_me:$LINENO: result: $unet_spath" >&5
10826 echo "${ECHO_T}$unet_spath" >&6; }
10828 if test x"$unet_cv_with_chroot" != xno; then
10829 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10830 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10832 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10833 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10838 cat >>confdefs.h <<_ACEOF
10839 #define SPATH "$unet_spath"
10843 { echo "$as_me:$LINENO: checking what the data directory should be" >&5
10844 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6; }
10846 # Check whether --with-dpath was given.
10847 if test "${with_dpath+set}" = set; then
10848 withval=$with_dpath; unet_cv_with_dpath=$with_dpath
10850 if test "${unet_cv_with_dpath+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 unet_cv_with_dpath=$unet_libdir
10859 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10860 unet_cv_with_dpath=$unet_libdir
10863 # Ensure there are no trailing /'s to mess us up
10864 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10866 { echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10867 echo "${ECHO_T}$unet_cv_with_dpath" >&6; }
10869 if test x"$unet_cv_with_chroot" != xno; then
10870 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10871 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10873 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10874 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10875 { (exit 1); exit 1; }; }
10878 unet_dpath=$unet_cv_with_dpath
10882 cat >>confdefs.h <<_ACEOF
10883 #define DPATH "$unet_dpath"
10887 DPATH=$unet_cv_with_dpath
10890 { echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10891 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6; }
10893 # Check whether --with-cpath was given.
10894 if test "${with_cpath+set}" = set; then
10895 withval=$with_cpath; unet_cv_with_cpath=$with_cpath
10897 if test "${unet_cv_with_cpath+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 unet_cv_with_cpath="ircd.conf"
10906 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10907 unet_cv_with_cpath="ircd.conf"
10910 { echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10911 echo "${ECHO_T}$unet_cv_with_cpath" >&6; }
10913 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10914 # Absolute path; check against chroot stuff
10915 if test x"$unet_cv_with_chroot" != xno; then
10916 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10917 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10919 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10920 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10921 { (exit 1); exit 1; }; }
10924 unet_cpath=$unet_cv_with_cpath
10927 unet_cpath=$unet_cv_with_cpath
10931 cat >>confdefs.h <<_ACEOF
10932 #define CPATH "$unet_cpath"
10936 { echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10937 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6; }
10939 # Check whether --with-lpath was given.
10940 if test "${with_lpath+set}" = set; then
10941 withval=$with_lpath; unet_cv_with_lpath=$with_lpath
10943 if test "${unet_cv_with_lpath+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 unet_cv_with_lpath="ircd.log"
10952 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10953 unet_cv_with_lpath="ircd.log"
10956 { echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10957 echo "${ECHO_T}$unet_cv_with_lpath" >&6; }
10959 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10960 # Absolute path; check against chroot stuff
10961 if test x"$unet_cv_with_chroot" != xno; then
10962 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10963 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10965 { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
10966 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
10967 unet_cv_with_lpath="ircd.log"
10968 unet_lpath="ircd.log"
10971 unet_lpath=$unet_cv_with_lpath
10974 unet_lpath=$unet_cv_with_lpath
10978 cat >>confdefs.h <<_ACEOF
10979 #define LPATH "$unet_lpath"
10983 unet_maxcon=`ulimit -Hn`
10984 if test x"$unet_maxcon" = xunlimited; then
10985 unet_maxcon=`ulimit -Sn`
10987 unet_maxcon=`expr $unet_maxcon - 4`
10988 { echo "$as_me:$LINENO: checking max connections" >&5
10989 echo $ECHO_N "checking max connections... $ECHO_C" >&6; }
10991 # Check whether --with-maxcon was given.
10992 if test "${with_maxcon+set}" = set; then
10993 withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
10995 if test "${unet_cv_with_maxcon+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 unet_cv_with_maxcon=$unet_maxcon
11004 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
11005 if test "$unet_maxcon" -lt 32; then
11006 { { echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
11007 echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
11008 { (exit 1); exit 1; }; }
11010 unet_cv_with_maxcon=$unet_maxcon
11011 elif test "$unet_cv_with_maxcon" -lt 32; then
11012 { { echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
11013 echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
11014 { (exit 1); exit 1; }; }
11017 { echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
11018 echo "${ECHO_T}$unet_cv_with_maxcon" >&6; }
11021 cat >>confdefs.h <<_ACEOF
11022 #define MAXCONNECTIONS $unet_cv_with_maxcon
11026 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
11028 ac_config_commands="$ac_config_commands default"
11030 cat >confcache <<\_ACEOF
11031 # This file is a shell script that caches the results of configure
11032 # tests run on this system so they can be shared between configure
11033 # scripts and configure runs, see configure's option --config-cache.
11034 # It is not useful on other systems. If it contains results you don't
11035 # want to keep, you may remove or edit it.
11037 # config.status only pays attention to the cache file if you give it
11038 # the --recheck option to rerun configure.
11040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11042 # following values.
11046 # The following way of writing the cache mishandles newlines in values,
11047 # but we know of no workaround that is simple, portable, and efficient.
11048 # So, we kill variables containing newlines.
11049 # Ultrix sh set writes to stderr and can't be redirected directly,
11050 # and sets the high bit in the cache file unless we assign to the vars.
11052 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11053 eval ac_val=\$$ac_var
11057 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11058 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11061 _ | IFS | as_nl) ;; #(
11062 *) $as_unset $ac_var ;;
11068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11069 *${as_nl}ac_space=\ *)
11070 # `set' does not quote correctly, so add quotes (double-quote
11071 # substitution turns \\\\ into \\, and sed turns \\ into \).
11074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11077 # `set' quotes correctly as required by POSIX, so do not add quotes.
11078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11092 if test -w "$cache_file"; then
11093 test "x$cache_file" != "x/dev/null" &&
11094 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11095 echo "$as_me: updating cache $cache_file" >&6;}
11096 cat confcache >$cache_file
11098 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11099 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11105 # Let make expand exec_prefix.
11106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11108 DEFS=-DHAVE_CONFIG_H
11112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11113 # 1. Remove the extension, and $U if already installed.
11114 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11115 ac_i=`echo "$ac_i" | sed "$ac_script"`
11116 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11117 # will be set to the directory where LIBOBJS objects are built.
11118 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11119 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11121 LIBOBJS=$ac_libobjs
11123 LTLIBOBJS=$ac_ltlibobjs
11127 : ${CONFIG_STATUS=./config.status}
11128 ac_clean_files_save=$ac_clean_files
11129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11130 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11131 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11132 cat >$CONFIG_STATUS <<_ACEOF
11134 # Generated by $as_me.
11135 # Run this file to recreate the current configuration.
11136 # Compiler output produced by configure, useful for debugging
11137 # configure, is in config.log if it exists.
11140 ac_cs_recheck=false
11142 SHELL=\${CONFIG_SHELL-$SHELL}
11145 cat >>$CONFIG_STATUS <<\_ACEOF
11146 ## --------------------- ##
11147 ## M4sh Initialization. ##
11148 ## --------------------- ##
11150 # Be more Bourne compatible
11151 DUALCASE=1; export DUALCASE # for MKS sh
11152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11156 # is contrary to our usage. Disable this feature.
11157 alias -g '${1+"$@"}'='"$@"'
11158 setopt NO_GLOB_SUBST
11160 case `(set -o) 2>/dev/null` in
11161 *posix*) set -o posix ;;
11170 # Avoid depending upon Character Ranges.
11171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11174 as_cr_digits='0123456789'
11175 as_cr_alnum=$as_cr_Letters$as_cr_digits
11177 # The user is always right.
11178 if test "${PATH_SEPARATOR+set}" != set; then
11179 echo "#! /bin/sh" >conf$$.sh
11180 echo "exit 0" >>conf$$.sh
11182 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11190 # Support unset when possible.
11191 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11199 # We need space, tab and new line, in precisely that order. Quoting is
11200 # there to prevent editors from complaining about space-tab.
11201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11202 # splitting by setting IFS to empty value.)
11207 # Find who we are. Look in the path if we contain no directory separator.
11209 *[\\/]* ) as_myself=$0 ;;
11210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11214 test -z "$as_dir" && as_dir=.
11215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11221 # We did not find ourselves, most probably we were run as `sh COMMAND'
11222 # in which case we are not to be found in the path.
11223 if test "x$as_myself" = x; then
11226 if test ! -f "$as_myself"; then
11227 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11228 { (exit 1); exit 1; }
11231 # Work around bugs in pre-3.0 UWIN ksh.
11232 for as_var in ENV MAIL MAILPATH
11233 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11241 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11242 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11243 LC_TELEPHONE LC_TIME
11245 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11246 eval $as_var=C; export $as_var
11248 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11252 # Required to use basename.
11253 if expr a : '\(a\)' >/dev/null 2>&1 &&
11254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11261 as_basename=basename
11267 # Name of the executable.
11268 as_me=`$as_basename -- "$0" ||
11269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11270 X"$0" : 'X\(//\)$' \| \
11271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11273 sed '/^.*\/\([^/][^/]*\)\/*$/{
11292 as_lineno_1=$LINENO
11293 as_lineno_2=$LINENO
11294 test "x$as_lineno_1" != "x$as_lineno_2" &&
11295 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11297 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11298 # uniformly replaced by the line number. The first 'sed' inserts a
11299 # line-number line after each line using $LINENO; the second 'sed'
11300 # does the real work. The second script uses 'N' to pair each
11301 # line-number line with the line containing $LINENO, and appends
11302 # trailing '-' during substitution so that $LINENO is not a special
11303 # case at line end.
11304 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11305 # scripts with optimization help from Paolo Bonzini. Blame Lee
11306 # E. McMahon (1931-1989) for sed's syntax. :-)
11318 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11321 ' >$as_me.lineno &&
11322 chmod +x "$as_me.lineno" ||
11323 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11324 { (exit 1); exit 1; }; }
11326 # Don't try to exec as it changes $[0], causing all sort of problems
11327 # (the dirname of $[0] is not the place where we might find the
11328 # original and so on. Autoconf is especially sensitive to this).
11329 . "./$as_me.lineno"
11330 # Exit status is that of the last command.
11335 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11341 ECHO_C= ECHO_N= ECHO_T=
11342 case `echo -n x` in
11344 case `echo 'x\c'` in
11345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11352 if expr a : '\(a\)' >/dev/null 2>&1 &&
11353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11359 rm -f conf$$ conf$$.exe conf$$.file
11360 if test -d conf$$.dir; then
11361 rm -f conf$$.dir/conf$$.file
11367 if ln -s conf$$.file conf$$ 2>/dev/null; then
11369 # ... but there are two gotchas:
11370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11372 # In both cases, we have to default to `cp -p'.
11373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11375 elif ln conf$$.file conf$$ 2>/dev/null; then
11380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11381 rmdir conf$$.dir 2>/dev/null
11383 if mkdir -p . 2>/dev/null; then
11386 test -d ./-p && rmdir ./-p
11390 if test -x / >/dev/null 2>&1; then
11391 as_test_x='test -x'
11393 if ls -dL / >/dev/null 2>&1; then
11400 if test -d "$1"; then
11406 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11407 ???[sx]*):;;*)false;;esac;fi
11411 as_executable_p=$as_test_x
11413 # Sed expression to map a string onto a valid CPP name.
11414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11416 # Sed expression to map a string onto a valid variable name.
11417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11422 # Save the log message, to keep $[0] and so on meaningful, and to
11423 # report actual input values of CONFIG_FILES etc. instead of their
11424 # values after options handling.
11426 This file was extended by $as_me, which was
11427 generated by GNU Autoconf 2.61. Invocation command line was
11429 CONFIG_FILES = $CONFIG_FILES
11430 CONFIG_HEADERS = $CONFIG_HEADERS
11431 CONFIG_LINKS = $CONFIG_LINKS
11432 CONFIG_COMMANDS = $CONFIG_COMMANDS
11435 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11440 cat >>$CONFIG_STATUS <<_ACEOF
11441 # Files that config.status was made for.
11442 config_files="$ac_config_files"
11443 config_headers="$ac_config_headers"
11444 config_commands="$ac_config_commands"
11448 cat >>$CONFIG_STATUS <<\_ACEOF
11450 \`$as_me' instantiates files from templates according to the
11451 current configuration.
11453 Usage: $0 [OPTIONS] [FILE]...
11455 -h, --help print this help, then exit
11456 -V, --version print version number and configuration settings, then exit
11457 -q, --quiet do not print progress messages
11458 -d, --debug don't remove temporary files
11459 --recheck update $as_me by reconfiguring in the same conditions
11460 --file=FILE[:TEMPLATE]
11461 instantiate the configuration file FILE
11462 --header=FILE[:TEMPLATE]
11463 instantiate the configuration header FILE
11465 Configuration files:
11468 Configuration headers:
11471 Configuration commands:
11474 Report bugs to <bug-autoconf@gnu.org>."
11477 cat >>$CONFIG_STATUS <<_ACEOF
11480 configured by $0, generated by GNU Autoconf 2.61,
11481 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11483 Copyright (C) 2006 Free Software Foundation, Inc.
11484 This config.status script is free software; the Free Software Foundation
11485 gives unlimited permission to copy, distribute and modify it."
11492 cat >>$CONFIG_STATUS <<\_ACEOF
11493 # If no file are specified by the user, then we need to provide default
11494 # value. By we need to know if files were specified by the user.
11500 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11501 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11512 # Handling of the options.
11513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11516 echo "$ac_cs_version"; exit ;;
11517 --debug | --debu | --deb | --de | --d | -d )
11519 --file | --fil | --fi | --f )
11521 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11522 ac_need_defaults=false;;
11523 --header | --heade | --head | --hea )
11525 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11526 ac_need_defaults=false;;
11528 # Conflict between --help and --header
11529 { echo "$as_me: error: ambiguous option: $1
11530 Try \`$0 --help' for more information." >&2
11531 { (exit 1); exit 1; }; };;
11532 --help | --hel | -h )
11533 echo "$ac_cs_usage"; exit ;;
11534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11538 # This is an error.
11539 -*) { echo "$as_me: error: unrecognized option: $1
11540 Try \`$0 --help' for more information." >&2
11541 { (exit 1); exit 1; }; } ;;
11543 *) ac_config_targets="$ac_config_targets $1"
11544 ac_need_defaults=false ;;
11550 ac_configure_extra_args=
11552 if $ac_cs_silent; then
11554 ac_configure_extra_args="$ac_configure_extra_args --silent"
11558 cat >>$CONFIG_STATUS <<_ACEOF
11559 if \$ac_cs_recheck; then
11560 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11561 CONFIG_SHELL=$SHELL
11562 export CONFIG_SHELL
11563 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11567 cat >>$CONFIG_STATUS <<\_ACEOF
11571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11572 ## Running $as_me. ##
11578 cat >>$CONFIG_STATUS <<_ACEOF
11581 cat >>$CONFIG_STATUS <<\_ACEOF
11583 # Handling of arguments.
11584 for ac_config_target in $ac_config_targets
11586 case $ac_config_target in
11587 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11589 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11590 "ircd/test/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11591 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11592 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11596 { (exit 1); exit 1; }; };;
11601 # If the user did not use the arguments to specify the items to instantiate,
11602 # then the envvar interface is used. Set only those that are not.
11603 # We use the long form for the default assignment because of an extremely
11604 # bizarre bug on SunOS 4.1.3.
11605 if $ac_need_defaults; then
11606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11611 # Have a temporary directory for convenience. Make it in the build tree
11612 # simply because there is no reason against having it here, and in addition,
11613 # creating and moving files from /tmp can sometimes cause problems.
11614 # Hook for its removal unless debugging.
11615 # Note that there is a small window in which the directory will not be cleaned:
11616 # after its creation but before its name has been assigned to `$tmp'.
11620 trap 'exit_status=$?
11621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11623 trap '{ (exit 1); exit 1; }' 1 2 13 15
11625 # Create a (secure) tmp directory for tmp files.
11628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11629 test -n "$tmp" && test -d "$tmp"
11632 tmp=./conf$$-$RANDOM
11633 (umask 077 && mkdir "$tmp")
11636 echo "$me: cannot create a temporary directory in ." >&2
11637 { (exit 1); exit 1; }
11641 # Set up the sed scripts for CONFIG_FILES section.
11644 # No need to generate the scripts if there are no CONFIG_FILES.
11645 # This happens for instance when ./config.status config.h
11646 if test -n "$CONFIG_FILES"; then
11653 for ac_last_try in false false false false false :; do
11654 cat >conf$$subs.sed <<_ACEOF
11655 SHELL!$SHELL$ac_delim
11656 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11657 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11658 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11659 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11660 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11661 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11662 exec_prefix!$exec_prefix$ac_delim
11663 prefix!$prefix$ac_delim
11664 program_transform_name!$program_transform_name$ac_delim
11665 bindir!$bindir$ac_delim
11666 sbindir!$sbindir$ac_delim
11667 libexecdir!$libexecdir$ac_delim
11668 datarootdir!$datarootdir$ac_delim
11669 datadir!$datadir$ac_delim
11670 sysconfdir!$sysconfdir$ac_delim
11671 sharedstatedir!$sharedstatedir$ac_delim
11672 localstatedir!$localstatedir$ac_delim
11673 includedir!$includedir$ac_delim
11674 oldincludedir!$oldincludedir$ac_delim
11675 docdir!$docdir$ac_delim
11676 infodir!$infodir$ac_delim
11677 htmldir!$htmldir$ac_delim
11678 dvidir!$dvidir$ac_delim
11679 pdfdir!$pdfdir$ac_delim
11680 psdir!$psdir$ac_delim
11681 libdir!$libdir$ac_delim
11682 localedir!$localedir$ac_delim
11683 mandir!$mandir$ac_delim
11684 DEFS!$DEFS$ac_delim
11685 ECHO_C!$ECHO_C$ac_delim
11686 ECHO_N!$ECHO_N$ac_delim
11687 ECHO_T!$ECHO_T$ac_delim
11688 LIBS!$LIBS$ac_delim
11689 build_alias!$build_alias$ac_delim
11690 host_alias!$host_alias$ac_delim
11691 target_alias!$target_alias$ac_delim
11692 build!$build$ac_delim
11693 build_cpu!$build_cpu$ac_delim
11694 build_vendor!$build_vendor$ac_delim
11695 build_os!$build_os$ac_delim
11696 host!$host$ac_delim
11697 host_cpu!$host_cpu$ac_delim
11698 host_vendor!$host_vendor$ac_delim
11699 host_os!$host_os$ac_delim
11701 CFLAGS!$CFLAGS$ac_delim
11702 LDFLAGS!$LDFLAGS$ac_delim
11703 CPPFLAGS!$CPPFLAGS$ac_delim
11704 ac_ct_CC!$ac_ct_CC$ac_delim
11705 EXEEXT!$EXEEXT$ac_delim
11706 OBJEXT!$OBJEXT$ac_delim
11708 GREP!$GREP$ac_delim
11709 EGREP!$EGREP$ac_delim
11711 SET_MAKE!$SET_MAKE$ac_delim
11712 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11713 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11714 INSTALL_DATA!$INSTALL_DATA$ac_delim
11715 LN_S!$LN_S$ac_delim
11716 RMPROG!$RMPROG$ac_delim
11717 SHPROG!$SHPROG$ac_delim
11719 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
11720 LEXLIB!$LEXLIB$ac_delim
11721 YACC!$YACC$ac_delim
11722 YFLAGS!$YFLAGS$ac_delim
11723 ENGINE_C!$ENGINE_C$ac_delim
11724 INSTALL_RULE!$INSTALL_RULE$ac_delim
11725 SYMLINK!$SYMLINK$ac_delim
11726 IRCDMODE!$IRCDMODE$ac_delim
11727 IRCDOWN!$IRCDOWN$ac_delim
11728 IRCDGRP!$IRCDGRP$ac_delim
11729 DPATH!$DPATH$ac_delim
11730 LIBOBJS!$LIBOBJS$ac_delim
11731 LTLIBOBJS!$LTLIBOBJS$ac_delim
11734 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
11736 elif $ac_last_try; then
11737 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11738 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11739 { (exit 1); exit 1; }; }
11741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11745 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11746 if test -n "$ac_eof"; then
11747 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11748 ac_eof=`expr $ac_eof + 1`
11751 cat >>$CONFIG_STATUS <<_ACEOF
11752 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11756 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11757 s/^/s,@/; s/!/@,|#_!!_#|/
11760 s/'"$ac_delim"'$/,g/; t
11762 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11763 ' >>$CONFIG_STATUS <conf$$subs.sed
11764 rm -f conf$$subs.sed
11765 cat >>$CONFIG_STATUS <<_ACEOF
11772 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11773 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11774 # trailing colons and then remove the whole line if VPATH becomes empty
11775 # (actually we leave an empty line to preserve line numbers).
11776 if test "x$srcdir" = x.; then
11777 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11778 s/:*\$(srcdir):*/:/
11779 s/:*\${srcdir}:*/:/
11781 s/^\([^=]*=[ ]*\):*/\1/
11787 cat >>$CONFIG_STATUS <<\_ACEOF
11788 fi # test -n "$CONFIG_FILES"
11791 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11794 :[FHLC]) ac_mode=$ac_tag; continue;;
11796 case $ac_mode$ac_tag in
11798 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11799 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11800 { (exit 1); exit 1; }; };;
11801 :[FH]-) ac_tag=-:-;;
11802 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11819 -) ac_f="$tmp/stdin";;
11820 *) # Look for the file first in the build tree, then in the source tree
11821 # (if the path is not absolute). The absolute path cannot be DOS-style,
11822 # because $ac_f cannot contain `:'.
11826 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11828 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11829 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11830 { (exit 1); exit 1; }; };;
11832 ac_file_inputs="$ac_file_inputs $ac_f"
11835 # Let's still pretend it is `configure' which instantiates (i.e., don't
11836 # use $as_me), people would be surprised to read:
11837 # /* config.h. Generated by config.status. */
11838 configure_input="Generated from "`IFS=:
11839 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11840 if test x"$ac_file" != x-; then
11841 configure_input="$ac_file. $configure_input"
11842 { echo "$as_me:$LINENO: creating $ac_file" >&5
11843 echo "$as_me: creating $ac_file" >&6;}
11847 *:-:* | *:-) cat >"$tmp/stdin";;
11852 ac_dir=`$as_dirname -- "$ac_file" ||
11853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11854 X"$ac_file" : 'X\(//\)[^/]' \| \
11855 X"$ac_file" : 'X\(//\)$' \| \
11856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11862 /^X\(\/\/\)[^/].*/{
11877 -*) as_dir=./$as_dir;;
11879 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11883 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11884 *) as_qdir=$as_dir;;
11886 as_dirs="'$as_qdir' $as_dirs"
11887 as_dir=`$as_dirname -- "$as_dir" ||
11888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11889 X"$as_dir" : 'X\(//\)[^/]' \| \
11890 X"$as_dir" : 'X\(//\)$' \| \
11891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11897 /^X\(\/\/\)[^/].*/{
11910 test -d "$as_dir" && break
11912 test -z "$as_dirs" || eval "mkdir $as_dirs"
11913 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11914 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11915 { (exit 1); exit 1; }; }; }
11919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11922 # A ".." for each directory in $ac_dir_suffix.
11923 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11924 case $ac_top_builddir_sub in
11925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11929 ac_abs_top_builddir=$ac_pwd
11930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11931 # for backward compatibility:
11932 ac_top_builddir=$ac_top_build_prefix
11935 .) # We are building in place.
11937 ac_top_srcdir=$ac_top_builddir_sub
11938 ac_abs_top_srcdir=$ac_pwd ;;
11939 [\\/]* | ?:[\\/]* ) # Absolute name.
11940 ac_srcdir=$srcdir$ac_dir_suffix;
11941 ac_top_srcdir=$srcdir
11942 ac_abs_top_srcdir=$srcdir ;;
11943 *) # Relative name.
11944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11945 ac_top_srcdir=$ac_top_build_prefix$srcdir
11946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 # If the template does not know about datarootdir, expand it.
11965 # FIXME: This hack should be removed a few years after 2.60.
11966 ac_datarootdir_hack=; ac_datarootdir_seen=
11968 case `sed -n '/datarootdir/ {
11977 ' $ac_file_inputs` in
11978 *datarootdir*) ac_datarootdir_seen=yes;;
11979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11980 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11981 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11983 cat >>$CONFIG_STATUS <<_ACEOF
11984 ac_datarootdir_hack='
11985 s&@datadir@&$datadir&g
11986 s&@docdir@&$docdir&g
11987 s&@infodir@&$infodir&g
11988 s&@localedir@&$localedir&g
11989 s&@mandir@&$mandir&g
11990 s&\\\${datarootdir}&$datarootdir&g' ;;
11994 # Neutralize VPATH when `$srcdir' = `.'.
11995 # Shell code in configure.ac might set extrasub.
11996 # FIXME: do we really want to maintain this feature?
11997 cat >>$CONFIG_STATUS <<_ACEOF
12001 cat >>$CONFIG_STATUS <<\_ACEOF
12003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12004 s&@configure_input@&$configure_input&;t t
12005 s&@top_builddir@&$ac_top_builddir_sub&;t t
12006 s&@srcdir@&$ac_srcdir&;t t
12007 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12008 s&@top_srcdir@&$ac_top_srcdir&;t t
12009 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12010 s&@builddir@&$ac_builddir&;t t
12011 s&@abs_builddir@&$ac_abs_builddir&;t t
12012 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12013 s&@INSTALL@&$ac_INSTALL&;t t
12014 $ac_datarootdir_hack
12015 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12020 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12021 which seems to be undefined. Please make sure it is defined." >&5
12022 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12023 which seems to be undefined. Please make sure it is defined." >&2;}
12027 -) cat "$tmp/out"; rm -f "$tmp/out";;
12028 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12037 # Transform confdefs.h into a sed script `conftest.defines', that
12038 # substitutes the proper values into config.h.in to produce config.h.
12039 rm -f conftest.defines conftest.tail
12040 # First, append a space to every undef/define line, to ease matching.
12041 echo 's/$/ /' >conftest.defines
12042 # Then, protect against being on the right side of a sed subst, or in
12043 # an unquoted here document, in config.status. If some macros were
12044 # called several times there might be several #defines for the same
12045 # symbol, which is useless. But do not sort them, since the last
12046 # AC_DEFINE must be honored.
12047 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12048 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12049 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12050 # PARAMS is the parameter list in the macro definition--in most cases, it's
12051 # just an empty string.
12052 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12053 ac_dB='\\)[ (].*,\\1define\\2'
12061 s/^[ ]*#[ ]*define[ ][ ]*//
12066 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12067 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12068 ' >>conftest.defines
12070 # Remove the space that was appended to ease matching.
12071 # Then replace #undef with comments. This is necessary, for
12072 # example, in the case of _POSIX_SOURCE, which is predefined and required
12073 # on some systems where configure will not decide to define it.
12074 # (The regexp can be short, since the line contains either #define or #undef.)
12076 s,^[ #]*u.*,/* & */,' >>conftest.defines
12078 # Break up conftest.defines:
12079 ac_max_sed_lines=50
12081 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12082 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12083 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12085 ac_in='$ac_file_inputs'
12086 ac_out='"$tmp/out1"'
12087 ac_nxt='"$tmp/out2"'
12091 # Write a here document:
12092 cat >>$CONFIG_STATUS <<_ACEOF
12093 # First, check the format of the line:
12094 cat >"\$tmp/defines.sed" <<\\CEOF
12095 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12096 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12100 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12102 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12103 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12104 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12105 grep . conftest.tail >/dev/null || break
12106 rm -f conftest.defines
12107 mv conftest.tail conftest.defines
12109 rm -f conftest.defines conftest.tail
12111 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12112 cat >>$CONFIG_STATUS <<\_ACEOF
12113 if test x"$ac_file" != x-; then
12114 echo "/* $configure_input */" >"$tmp/config.h"
12115 cat "$ac_result" >>"$tmp/config.h"
12116 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12117 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12118 echo "$as_me: $ac_file is unchanged" >&6;}
12121 mv "$tmp/config.h" $ac_file
12124 echo "/* $configure_input */"
12130 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12131 echo "$as_me: executing $ac_file commands" >&6;}
12136 case $ac_file$ac_mode in
12137 "default":C) echo timestamp > stamp-h ;;
12143 { (exit 0); exit 0; }
12145 chmod +x $CONFIG_STATUS
12146 ac_clean_files=$ac_clean_files_save
12149 # configure is writing to config.log, and then calls config.status.
12150 # config.status does its own redirection, appending to config.log.
12151 # Unfortunately, on DOS this fails, as config.log is still kept open
12152 # by configure, so config.status won't be able to write to it; its
12153 # output is simply discarded. So we exec the FD to /dev/null,
12154 # effectively closing config.log, so it can be properly (re)opened and
12155 # appended to by config.status. When coming back to configure, we
12156 # need to make the FD available again.
12157 if test "$no_create" != yes; then
12159 ac_config_status_args=
12160 test "$silent" = yes &&
12161 ac_config_status_args="$ac_config_status_args --quiet"
12163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12166 # would make configure fail if this is the last instruction.
12167 $ac_cs_success || { (exit 1); exit 1; }
12171 ac_config_commands="$ac_config_commands default-1"