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
1289 --enable-compat Enables OGN-compat mode.
1290 --enable-unstable Enables unstable features.
1291 --enable-gnutls Enables GnuTLS ssl backend.
1292 --enable-openssl Enables OpenSSL ssl backend.
1295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1297 --with-leak-detect Turn on the leak detector(requires patched boehm)
1298 --without-ipv6 disable IPv6 support (default is autodetect)
1299 --with-symlink=name Name to give the symlink; if name is "no," no
1300 symlink will be created.
1301 --with-mode=mode Permissions (in octal) to give the binary
1302 --with-owner=owner Specify owner of the installed binary
1303 --with-group=group Specify group owner of the installed binary
1304 --with-domain=domain Domain name to use in local statistics gathering
1305 --with-chroot=dir Specify that the server will be operated under
1306 a different root directory given by dir. See
1307 doc/readme.chroot for more information.
1308 --with-dpath=dir Directory for all server data files
1309 --with-cpath=file Set server configuration file
1310 --with-lpath=file Set the debugging log file
1311 --with-maxcon=maxcon Maximum number of connections server will accept
1313 Some influential environment variables:
1314 CC C compiler command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1317 nonstandard directory <lib dir>
1318 LIBS libraries to pass to the linker, e.g. -l<library>
1319 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1320 you have headers in a nonstandard directory <include dir>
1322 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1323 the first program found out of: `bison -y', `byacc', `yacc'.
1324 YFLAGS The list of arguments that will be passed by default to $YACC.
1325 This script will default YFLAGS to the empty string to avoid a
1326 default value of `-d' given by some make applications.
1328 Use these variables to override the choices made by `configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1335 if test "$ac_init_help" = "recursive"; then
1336 # If there are subdirs, report their specific --help.
1337 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1338 test -d "$ac_dir" || continue
1342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1345 # A ".." for each directory in $ac_dir_suffix.
1346 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1347 case $ac_top_builddir_sub in
1348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1352 ac_abs_top_builddir=$ac_pwd
1353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1354 # for backward compatibility:
1355 ac_top_builddir=$ac_top_build_prefix
1358 .) # We are building in place.
1360 ac_top_srcdir=$ac_top_builddir_sub
1361 ac_abs_top_srcdir=$ac_pwd ;;
1362 [\\/]* | ?:[\\/]* ) # Absolute name.
1363 ac_srcdir=$srcdir$ac_dir_suffix;
1364 ac_top_srcdir=$srcdir
1365 ac_abs_top_srcdir=$srcdir ;;
1367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1368 ac_top_srcdir=$ac_top_build_prefix$srcdir
1369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373 cd "$ac_dir" || { ac_status=$?; continue; }
1374 # Check for guested configure.
1375 if test -f "$ac_srcdir/configure.gnu"; then
1377 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1378 elif test -f "$ac_srcdir/configure"; then
1380 $SHELL "$ac_srcdir/configure" --help=recursive
1382 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384 cd "$ac_pwd" || { ac_status=$?; break; }
1388 test -n "$ac_init_help" && exit $ac_status
1389 if $ac_init_version; then
1392 generated by GNU Autoconf 2.61
1394 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1395 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1396 This configure script is free software; the Free Software Foundation
1397 gives unlimited permission to copy, distribute and modify it.
1401 cat >config.log <<_ACEOF
1402 This file contains any messages produced by compilers while
1403 running configure, to aid debugging if configure makes a mistake.
1405 It was created by $as_me, which was
1406 generated by GNU Autoconf 2.61. Invocation command line was
1414 @%:@@%:@ --------- @%:@@%:@
1415 @%:@@%:@ Platform. @%:@@%:@
1416 @%:@@%:@ --------- @%:@@%:@
1418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1425 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1428 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1430 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1431 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1432 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1433 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 echo "PATH: $as_dir"
1451 @%:@@%:@ ----------- @%:@@%:@
1452 @%:@@%:@ Core tests. @%:@@%:@
1453 @%:@@%:@ ----------- @%:@@%:@
1458 # Keep a trace of the command line.
1459 # Strip out --no-create and --no-recursion so they do not pile up.
1460 # Strip out --silent because we don't want to record it for future runs.
1461 # Also quote any args containing shell meta-characters.
1462 # Make two passes to allow for proper duplicate-argument suppression.
1466 ac_must_keep_next=false
1472 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1474 | -silent | --silent | --silen | --sile | --sil)
1477 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1480 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1483 if test $ac_must_keep_next = true; then
1484 ac_must_keep_next=false # Got value, back to normal.
1487 *=* | --config-cache | -C | -disable-* | --disable-* \
1488 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1489 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1490 | -with-* | --with-* | -without-* | --without-* | --x)
1491 case "$ac_configure_args0 " in
1492 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1495 -* ) ac_must_keep_next=true ;;
1498 ac_configure_args="$ac_configure_args '$ac_arg'"
1503 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1504 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506 # When interrupted or exit'd, cleanup temporary files, and complete
1507 # config.log. We remove comments because anyway the quotes in there
1508 # would cause problems or look ugly.
1509 # WARNING: Use '\'' to represent an apostrophe within the trap.
1510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1511 trap 'exit_status=$?
1512 # Save into config.log some information that might help in debugging.
1517 @%:@@%:@ ---------------- @%:@@%:@
1518 @%:@@%:@ Cache variables. @%:@@%:@
1519 @%:@@%:@ ---------------- @%:@@%:@
1522 # The following way of writing the cache mishandles newlines in values,
1524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1525 eval ac_val=\$$ac_var
1529 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1530 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1533 _ | IFS | as_nl) ;; #(
1534 *) $as_unset $ac_var ;;
1539 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1540 *${as_nl}ac_space=\ *)
1542 "s/'\''/'\''\\\\'\'''\''/g;
1543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1554 @%:@@%:@ ----------------- @%:@@%:@
1555 @%:@@%:@ Output variables. @%:@@%:@
1556 @%:@@%:@ ----------------- @%:@@%:@
1559 for ac_var in $ac_subst_vars
1561 eval ac_val=\$$ac_var
1563 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 echo "$ac_var='\''$ac_val'\''"
1569 if test -n "$ac_subst_files"; then
1571 @%:@@%:@ ------------------- @%:@@%:@
1572 @%:@@%:@ File substitutions. @%:@@%:@
1573 @%:@@%:@ ------------------- @%:@@%:@
1576 for ac_var in $ac_subst_files
1578 eval ac_val=\$$ac_var
1580 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 echo "$ac_var='\''$ac_val'\''"
1587 if test -s confdefs.h; then
1589 @%:@@%:@ ----------- @%:@@%:@
1590 @%:@@%:@ confdefs.h. @%:@@%:@
1591 @%:@@%:@ ----------- @%:@@%:@
1597 test "$ac_signal" != 0 &&
1598 echo "$as_me: caught signal $ac_signal"
1599 echo "$as_me: exit $exit_status"
1601 rm -f core *.core core.conftest.* &&
1602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1605 for ac_signal in 1 2 13 15; do
1606 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1611 rm -f -r conftest* confdefs.h
1613 # Predefined preprocessor variables.
1615 cat >>confdefs.h <<_ACEOF
1616 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1620 cat >>confdefs.h <<_ACEOF
1621 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1625 cat >>confdefs.h <<_ACEOF
1626 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1630 cat >>confdefs.h <<_ACEOF
1631 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1635 cat >>confdefs.h <<_ACEOF
1636 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1640 # Let the site file select an alternate cache file if it wants to.
1641 # Prefer explicitly selected file to automatically selected ones.
1642 if test -n "$CONFIG_SITE"; then
1643 set x "$CONFIG_SITE"
1644 elif test "x$prefix" != xNONE; then
1645 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647 set x "$ac_default_prefix/share/config.site" \
1648 "$ac_default_prefix/etc/config.site"
1653 if test -r "$ac_site_file"; then
1654 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1655 echo "$as_me: loading site script $ac_site_file" >&6;}
1656 sed 's/^/| /' "$ac_site_file" >&5
1661 if test -r "$cache_file"; then
1662 # Some versions of bash will fail to source /dev/null (special
1663 # files actually), so we avoid doing that.
1664 if test -f "$cache_file"; then
1665 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1666 echo "$as_me: loading cache $cache_file" >&6;}
1668 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1669 *) . "./$cache_file";;
1673 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1674 echo "$as_me: creating cache $cache_file" >&6;}
1678 # Check that the precious variables saved in the cache have kept the same
1680 ac_cache_corrupted=false
1681 for ac_var in $ac_precious_vars; do
1682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1683 eval ac_new_set=\$ac_env_${ac_var}_set
1684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1685 eval ac_new_val=\$ac_env_${ac_var}_value
1686 case $ac_old_set,$ac_new_set in
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1692 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1693 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1694 ac_cache_corrupted=: ;;
1697 if test "x$ac_old_val" != "x$ac_new_val"; then
1698 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1699 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1700 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1701 echo "$as_me: former value: $ac_old_val" >&2;}
1702 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1703 echo "$as_me: current value: $ac_new_val" >&2;}
1704 ac_cache_corrupted=:
1707 # Pass precious variables to config.status.
1708 if test "$ac_new_set" = set; then
1710 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 *) ac_arg=$ac_var=$ac_new_val ;;
1713 case " $ac_configure_args " in
1714 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1715 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1719 if $ac_cache_corrupted; then
1720 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1721 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1722 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1723 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1724 { (exit 1); exit 1; }; }
1744 ac_cpp='$CPP $CPPFLAGS'
1745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1752 { echo "$as_me:$LINENO: checking for installation prefix" >&5
1753 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6; }
1754 if test "${unet_cv_prefix+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 unet_cv_prefix=$HOME
1760 if test x"$prefix" != xNONE; then
1761 unet_cv_prefix=$prefix
1763 { echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1764 echo "${ECHO_T}$unet_cv_prefix" >&6; }
1765 ac_default_prefix=$unet_cv_prefix
1767 ac_config_headers="$ac_config_headers config.h"
1773 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1774 if test -f "$ac_dir/install-sh"; then
1776 ac_install_sh="$ac_aux_dir/install-sh -c"
1778 elif test -f "$ac_dir/install.sh"; then
1780 ac_install_sh="$ac_aux_dir/install.sh -c"
1782 elif test -f "$ac_dir/shtool"; then
1784 ac_install_sh="$ac_aux_dir/shtool install -c"
1788 if test -z "$ac_aux_dir"; then
1789 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1790 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1791 { (exit 1); exit 1; }; }
1794 # These three variables are undocumented and unsupported,
1795 # and are intended to be withdrawn in a future Autoconf release.
1796 # They can cause serious problems if a builder's source tree is in a directory
1797 # whose full name contains unusual characters.
1798 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1799 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1800 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1803 # Make sure we can run config.sub.
1804 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1805 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1806 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1807 { (exit 1); exit 1; }; }
1809 { echo "$as_me:$LINENO: checking build system type" >&5
1810 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1811 if test "${ac_cv_build+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 ac_build_alias=$build_alias
1815 test "x$ac_build_alias" = x &&
1816 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1817 test "x$ac_build_alias" = x &&
1818 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1819 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1820 { (exit 1); exit 1; }; }
1821 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1822 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1824 { (exit 1); exit 1; }; }
1827 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1828 echo "${ECHO_T}$ac_cv_build" >&6; }
1829 case $ac_cv_build in
1831 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1832 echo "$as_me: error: invalid value of canonical build" >&2;}
1833 { (exit 1); exit 1; }; };;
1836 ac_save_IFS=$IFS; IFS='-'
1842 # Remember, the first character of IFS is used to create $*,
1843 # except with old shells:
1846 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1849 { echo "$as_me:$LINENO: checking host system type" >&5
1850 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1851 if test "${ac_cv_host+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 if test "x$host_alias" = x; then
1855 ac_cv_host=$ac_cv_build
1857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1858 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1859 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1860 { (exit 1); exit 1; }; }
1864 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1865 echo "${ECHO_T}$ac_cv_host" >&6; }
1868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1869 echo "$as_me: error: invalid value of canonical host" >&2;}
1870 { (exit 1); exit 1; }; };;
1873 ac_save_IFS=$IFS; IFS='-'
1879 # Remember, the first character of IFS is used to create $*,
1880 # except with old shells:
1883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1888 ac_cpp='$CPP $CPPFLAGS'
1889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 if test -n "$CC"; then
1922 { echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6; }
1925 { echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6; }
1931 if test -z "$ac_cv_prog_CC"; then
1933 # Extract the first word of "gcc", so it can be a program name with args.
1934 set dummy gcc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$ac_ct_CC"; then
1941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950 ac_cv_prog_ac_ct_CC="gcc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6; }
1965 { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1969 if test "x$ac_ct_CC" = x; then
1972 case $cross_compiling:$ac_tool_warned in
1974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1975 whose name does not start with the host triplet. If you think this
1976 configuration is useful to you, please write to autoconf@gnu.org." >&5
1977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1978 whose name does not start with the host triplet. If you think this
1979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1980 ac_tool_warned=yes ;;
1988 if test -z "$CC"; then
1989 if test -n "$ac_tool_prefix"; then
1990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1991 set dummy ${ac_tool_prefix}cc; ac_word=$2
1992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007 ac_cv_prog_CC="${ac_tool_prefix}cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 if test -n "$CC"; then
2019 { echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6; }
2022 { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2029 if test -z "$CC"; then
2030 # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2049 ac_prog_rejected=yes
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test $ac_prog_rejected = yes; then
2061 # We found a bogon in the path, so make sure we never use it.
2062 set dummy $ac_cv_prog_CC
2064 if test $@%:@ != 0; then
2065 # We chose a different compiler from the bogus one.
2066 # However, it has the same basename, so the bogon will be chosen
2067 # first if we set CC to just the basename; use the full file name.
2069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2075 if test -n "$CC"; then
2076 { echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6; }
2079 { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2085 if test -z "$CC"; then
2086 if test -n "$ac_tool_prefix"; then
2087 for ac_prog in cl.exe
2089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 if test -n "$CC"; then
2118 { echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6; }
2121 { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2126 test -n "$CC" && break
2129 if test -z "$CC"; then
2131 for ac_prog in cl.exe
2133 # Extract the first word of "$ac_prog", so it can be a program name with args.
2134 set dummy $ac_prog; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$ac_ct_CC"; then
2141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_ac_ct_CC="$ac_prog"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6; }
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2170 test -n "$ac_ct_CC" && break
2173 if test "x$ac_ct_CC" = x; then
2176 case $cross_compiling:$ac_tool_warned in
2178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet. If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&5
2181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet. If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2184 ac_tool_warned=yes ;;
2193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: no acceptable C compiler found in \$PATH
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2199 # Provide some information about the compiler.
2200 echo "$as_me:$LINENO: checking for C compiler version" >&5
2201 ac_compiler=`set X $ac_compile; echo $2`
2202 { (ac_try="$ac_compiler --version >&5"
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_compiler --version >&5") 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }
2212 { (ac_try="$ac_compiler -v >&5"
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2218 (eval "$ac_compiler -v >&5") 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }
2222 { (ac_try="$ac_compiler -V >&5"
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler -V >&5") 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2233 cat >conftest.$ac_ext <<_ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h. */
2248 ac_clean_files_save=$ac_clean_files
2249 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2250 # Try to create an executable without -o first, disregard a.out.
2251 # It will help us diagnose broken compilers, and finding out an intuition
2253 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2254 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2255 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257 # List of possible output files, starting from the most likely.
2258 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2259 # only as a last resort. b.out is created by i960 compilers.
2260 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2262 # The IRIX 6 linker writes into existing files which may not be
2263 # executable, retaining their permissions. Remove them first so a
2264 # subsequent execution test works.
2266 for ac_file in $ac_files
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2270 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2275 if { (ac_try="$ac_link_default"
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_link_default") 2>&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; then
2285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2287 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2288 # so that the user can short-circuit this test for compilers unknown to
2290 for ac_file in $ac_files ''
2292 test -f "$ac_file" || continue
2294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2297 # We found the default executable, but exeext='' is most
2301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305 # We set ac_cv_exeext here because the later test for it is not
2306 # safe: cross compilers may not add the suffix if given an `-o'
2307 # argument, so we may need to know it at that point already.
2308 # Even if this section looks crufty: it has the advantage of
2315 test "$ac_cv_exeext" = no && ac_cv_exeext=
2321 { echo "$as_me:$LINENO: result: $ac_file" >&5
2322 echo "${ECHO_T}$ac_file" >&6; }
2323 if test -z "$ac_file"; then
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: C compiler cannot create executables
2330 See \`config.log' for more details." >&2;}
2331 { (exit 77); exit 77; }; }
2334 ac_exeext=$ac_cv_exeext
2336 # Check that the compiler produces executables we can run. If not, either
2337 # the compiler is broken, or we cross compile.
2338 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2339 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2340 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2341 # If not cross compiling, check that we can run a simple program.
2342 if test "$cross_compiling" != yes; then
2343 if { ac_try='./$ac_file'
2344 { (case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_try") 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 if test "$cross_compiling" = maybe; then
2358 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot run C compiled programs.
2362 If you meant to cross compile, use \`--host'.
2363 See \`config.log' for more details." >&2;}
2364 { (exit 1); exit 1; }; }
2368 { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2371 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2372 ac_clean_files=$ac_clean_files_save
2373 # Check that the compiler produces executables we can run. If not, either
2374 # the compiler is broken, or we cross compile.
2375 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2376 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2377 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2378 echo "${ECHO_T}$cross_compiling" >&6; }
2380 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2381 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2382 if { (ac_try="$ac_link"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_link") 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; then
2392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2394 # work properly (i.e., refer to `conftest.exe'), while it won't with
2396 for ac_file in conftest.exe conftest conftest.*; do
2397 test -f "$ac_file" || continue
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2413 rm -f conftest$ac_cv_exeext
2414 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2417 rm -f conftest.$ac_ext
2418 EXEEXT=$ac_cv_exeext
2420 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2422 if test "${ac_cv_objext+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cat >conftest.$ac_ext <<_ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2440 rm -f conftest.o conftest.obj
2441 if { (ac_try="$ac_compile"
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_compile") 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 for ac_file in conftest.o conftest.obj conftest.*; do
2452 test -f "$ac_file" || continue;
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2472 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2473 echo "${ECHO_T}$ac_cv_objext" >&6; }
2474 OBJEXT=$ac_cv_objext
2476 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_compile") 2>conftest.er1
2508 grep -v '^ *+' conftest.er1 >conftest.err
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } && {
2513 test -z "$ac_c_werror_flag" ||
2514 test ! -s conftest.err
2515 } && test -s conftest.$ac_objext; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2528 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2529 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2530 GCC=`test $ac_compiler_gnu = yes && echo yes`
2531 ac_test_CFLAGS=${CFLAGS+set}
2532 ac_save_CFLAGS=$CFLAGS
2533 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2534 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_cc_g+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 ac_save_c_werror_flag=$ac_c_werror_flag
2539 ac_c_werror_flag=yes
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } && {
2571 test -z "$ac_c_werror_flag" ||
2572 test ! -s conftest.err
2573 } && test -s conftest.$ac_objext; then
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_compile") 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } && {
2609 test -z "$ac_c_werror_flag" ||
2610 test ! -s conftest.err
2611 } && test -s conftest.$ac_objext; then
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 cat >conftest.$ac_ext <<_ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compile") 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } && {
2648 test -z "$ac_c_werror_flag" ||
2649 test ! -s conftest.err
2650 } && test -s conftest.$ac_objext; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_c_werror_flag=$ac_save_c_werror_flag
2668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2670 if test "$ac_test_CFLAGS" = set; then
2671 CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673 if test "$GCC" = yes; then
2679 if test "$GCC" = yes; then
2685 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2686 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_cc_c89+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 ac_cv_prog_cc_c89=no
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2700 #include <sys/types.h>
2701 #include <sys/stat.h>
2702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2703 struct buf { int x; };
2704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2705 static char *e (p, i)
2711 static char *f (char * (*g) (char **, int), char **p, ...)
2716 s = g (p, va_arg (v,int));
2721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2722 function prototypes and stuff, but not '\xHH' hex character constants.
2723 These don't provoke an error unfortunately, instead are silently treated
2724 as 'x'. The following induces an error, until -std is added to get
2725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2726 array size at least. It's necessary to write '\x00'==0 to get something
2727 that's true only with -std. */
2728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2731 inside strings and character constants. */
2733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2735 int test (int i, double x);
2736 struct s1 {int (*f) (int a);};
2737 struct s2 {int (*f) (double a);};
2738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2752 CC="$ac_save_CC $ac_arg"
2753 rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760 (eval "$ac_compile") 2>conftest.er1
2762 grep -v '^ *+' conftest.er1 >conftest.err
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } && {
2767 test -z "$ac_c_werror_flag" ||
2768 test ! -s conftest.err
2769 } && test -s conftest.$ac_objext; then
2770 ac_cv_prog_cc_c89=$ac_arg
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2778 rm -f core conftest.err conftest.$ac_objext
2779 test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 rm -f conftest.$ac_ext
2786 case "x$ac_cv_prog_cc_c89" in
2788 { echo "$as_me:$LINENO: result: none needed" >&5
2789 echo "${ECHO_T}none needed" >&6; } ;;
2791 { echo "$as_me:$LINENO: result: unsupported" >&5
2792 echo "${ECHO_T}unsupported" >&6; } ;;
2794 CC="$CC $ac_cv_prog_cc_c89"
2795 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 if test -n "$ac_tool_prefix"; then
2813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CC"; then
2842 { echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6; }
2845 { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2851 if test -z "$ac_cv_prog_CC"; then
2853 # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CC="gcc"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883 echo "${ECHO_T}$ac_ct_CC" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2889 if test "x$ac_ct_CC" = x; then
2892 case $cross_compiling:$ac_tool_warned in
2894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet. If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&5
2897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2898 whose name does not start with the host triplet. If you think this
2899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2900 ac_tool_warned=yes ;;
2908 if test -z "$CC"; then
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}cc; ac_word=$2
2912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_CC="${ac_tool_prefix}cc"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 { echo "$as_me:$LINENO: result: $CC" >&5
2940 echo "${ECHO_T}$CC" >&6; }
2942 { echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6; }
2949 if test -z "$CC"; then
2950 # Extract the first word of "cc", so it can be a program name with args.
2951 set dummy cc; ac_word=$2
2952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2969 ac_prog_rejected=yes
2973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test $ac_prog_rejected = yes; then
2981 # We found a bogon in the path, so make sure we never use it.
2982 set dummy $ac_cv_prog_CC
2984 if test $@%:@ != 0; then
2985 # We chose a different compiler from the bogus one.
2986 # However, it has the same basename, so the bogon will be chosen
2987 # first if we set CC to just the basename; use the full file name.
2989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2995 if test -n "$CC"; then
2996 { echo "$as_me:$LINENO: result: $CC" >&5
2997 echo "${ECHO_T}$CC" >&6; }
2999 { echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6; }
3005 if test -z "$CC"; then
3006 if test -n "$ac_tool_prefix"; then
3007 for ac_prog in cl.exe
3009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3046 test -n "$CC" && break
3049 if test -z "$CC"; then
3051 for ac_prog in cl.exe
3053 # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy $ac_prog; ac_word=$2
3055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_ac_ct_CC="$ac_prog"
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3083 echo "${ECHO_T}$ac_ct_CC" >&6; }
3085 { echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6; }
3090 test -n "$ac_ct_CC" && break
3093 if test "x$ac_ct_CC" = x; then
3096 case $cross_compiling:$ac_tool_warned in
3098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3099 whose name does not start with the host triplet. If you think this
3100 configuration is useful to you, please write to autoconf@gnu.org." >&5
3101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3104 ac_tool_warned=yes ;;
3113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&2;}
3117 { (exit 1); exit 1; }; }
3119 # Provide some information about the compiler.
3120 echo "$as_me:$LINENO: checking for C compiler version" >&5
3121 ac_compiler=`set X $ac_compile; echo $2`
3122 { (ac_try="$ac_compiler --version >&5"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compiler --version >&5") 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }
3132 { (ac_try="$ac_compiler -v >&5"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compiler -v >&5") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }
3142 { (ac_try="$ac_compiler -V >&5"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compiler -V >&5") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 ac_save_c_werror_flag=$ac_c_werror_flag
3216 ac_c_werror_flag=yes
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348 CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350 if test "$GCC" = yes; then
3356 if test "$GCC" = yes; then
3362 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 ac_cv_prog_cc_c89=no
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3393 s = g (p, va_arg (v,int));
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not '\xHH' hex character constants.
3400 These don't provoke an error unfortunately, instead are silently treated
3401 as 'x'. The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403 array size at least. It's necessary to write '\x00'==0 to get something
3404 that's true only with -std. */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429 CC="$ac_save_CC $ac_arg"
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_prog_cc_c89=$ac_arg
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3455 rm -f core conftest.err conftest.$ac_objext
3456 test "x$ac_cv_prog_cc_c89" != "xno" && break
3458 rm -f conftest.$ac_ext
3463 case "x$ac_cv_prog_cc_c89" in
3465 { echo "$as_me:$LINENO: result: none needed" >&5
3466 echo "${ECHO_T}none needed" >&6; } ;;
3468 { echo "$as_me:$LINENO: result: unsupported" >&5
3469 echo "${ECHO_T}unsupported" >&6; } ;;
3471 CC="$CC $ac_cv_prog_cc_c89"
3472 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3489 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
3490 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
3491 if test "${ac_cv_search_crypt+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 ac_func_search_save_LIBS=$LIBS
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3502 /* Override any GCC internal prototype to avoid an error.
3503 Use char because int might match the return type of a GCC
3504 builtin and then its argument prototype would still apply. */
3517 for ac_lib in '' descrypt crypt; do
3518 if test -z "$ac_lib"; then
3519 ac_res="none required"
3522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (ac_try="$ac_link"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_link") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest$ac_exeext &&
3541 $as_test_x conftest$ac_exeext; then
3542 ac_cv_search_crypt=$ac_res
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3552 if test "${ac_cv_search_crypt+set}" = set; then
3556 if test "${ac_cv_search_crypt+set}" = set; then
3559 ac_cv_search_crypt=no
3562 LIBS=$ac_func_search_save_LIBS
3564 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3565 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
3566 ac_res=$ac_cv_search_crypt
3567 if test "$ac_res" != no; then
3568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3571 { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3572 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3573 { (exit 1); exit 1; }; }
3578 # Most operating systems have gethostbyname() in the default searched
3579 # libraries (i.e. libc):
3580 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
3581 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3582 if test "${ac_cv_func_gethostbyname+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3593 #define gethostbyname innocuous_gethostbyname
3595 /* System header to define __stub macros and hopefully few prototypes,
3596 which can conflict with char gethostbyname (); below.
3597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 <limits.h> exists even on freestanding compilers. */
3601 # include <limits.h>
3603 # include <assert.h>
3606 #undef gethostbyname
3608 /* Override any GCC internal prototype to avoid an error.
3609 Use char because int might match the return type of a GCC
3610 builtin and then its argument prototype would still apply. */
3614 char gethostbyname ();
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined __stub_gethostbyname || defined __stub___gethostbyname
3625 return gethostbyname ();
3630 rm -f conftest.$ac_objext conftest$ac_exeext
3631 if { (ac_try="$ac_link"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_link") 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } && {
3644 test -z "$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 } && test -s conftest$ac_exeext &&
3647 $as_test_x conftest$ac_exeext; then
3648 ac_cv_func_gethostbyname=yes
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 ac_cv_func_gethostbyname=no
3656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3657 conftest$ac_exeext conftest.$ac_ext
3659 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3660 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3661 if test $ac_cv_func_gethostbyname = yes; then
3664 # Some OSes (eg. Solaris) place it in libnsl:
3666 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3667 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3668 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_check_lib_save_LIBS=$LIBS
3673 cat >conftest.$ac_ext <<_ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3680 /* Override any GCC internal prototype to avoid an error.
3681 Use char because int might match the return type of a GCC
3682 builtin and then its argument prototype would still apply. */
3686 char gethostbyname ();
3690 return gethostbyname ();
3695 rm -f conftest.$ac_objext conftest$ac_exeext
3696 if { (ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest$ac_exeext &&
3712 $as_test_x conftest$ac_exeext; then
3713 ac_cv_lib_nsl_gethostbyname=yes
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ac_cv_lib_nsl_gethostbyname=no
3721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3722 conftest$ac_exeext conftest.$ac_ext
3723 LIBS=$ac_check_lib_save_LIBS
3725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3727 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3728 cat >>confdefs.h <<_ACEOF
3729 @%:@define HAVE_LIBNSL 1
3735 # Some strange OSes (SINIX) have it in libsocket:
3737 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3738 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3739 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 ac_check_lib_save_LIBS=$LIBS
3743 LIBS="-lsocket $LIBS"
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3751 /* Override any GCC internal prototype to avoid an error.
3752 Use char because int might match the return type of a GCC
3753 builtin and then its argument prototype would still apply. */
3757 char gethostbyname ();
3761 return gethostbyname ();
3766 rm -f conftest.$ac_objext conftest$ac_exeext
3767 if { (ac_try="$ac_link"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_link") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest$ac_exeext &&
3783 $as_test_x conftest$ac_exeext; then
3784 ac_cv_lib_socket_gethostbyname=yes
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 ac_cv_lib_socket_gethostbyname=no
3792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3793 conftest$ac_exeext conftest.$ac_ext
3794 LIBS=$ac_check_lib_save_LIBS
3796 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3797 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3798 if test $ac_cv_lib_socket_gethostbyname = yes; then
3799 cat >>confdefs.h <<_ACEOF
3800 @%:@define HAVE_LIBSOCKET 1
3803 LIBS="-lsocket $LIBS"
3806 # Unfortunately libsocket sometimes depends on libnsl.
3807 # AC_CHECK_LIB's API is essentially broken so the following
3808 # ugliness is necessary:
3809 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3810 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3811 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 ac_check_lib_save_LIBS=$LIBS
3815 LIBS="-lsocket -lnsl $LIBS"
3816 cat >conftest.$ac_ext <<_ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 /* Override any GCC internal prototype to avoid an error.
3824 Use char because int might match the return type of a GCC
3825 builtin and then its argument prototype would still apply. */
3829 char gethostbyname ();
3833 return gethostbyname ();
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (ac_try="$ac_link"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_link") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest$ac_exeext &&
3855 $as_test_x conftest$ac_exeext; then
3856 ac_cv_lib_socket_gethostbyname=yes
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 ac_cv_lib_socket_gethostbyname=no
3864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3865 conftest$ac_exeext conftest.$ac_ext
3866 LIBS=$ac_check_lib_save_LIBS
3868 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3869 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3870 if test $ac_cv_lib_socket_gethostbyname = yes; then
3871 LIBS="-lsocket -lnsl $LIBS"
3874 { echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3875 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6; }
3876 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 ac_check_lib_save_LIBS=$LIBS
3880 LIBS="-lresolv $LIBS"
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3888 /* Override any GCC internal prototype to avoid an error.
3889 Use char because int might match the return type of a GCC
3890 builtin and then its argument prototype would still apply. */
3894 char gethostbyname ();
3898 return gethostbyname ();
3903 rm -f conftest.$ac_objext conftest$ac_exeext
3904 if { (ac_try="$ac_link"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_link") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } && {
3917 test -z "$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3919 } && test -s conftest$ac_exeext &&
3920 $as_test_x conftest$ac_exeext; then
3921 ac_cv_lib_resolv_gethostbyname=yes
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_lib_resolv_gethostbyname=no
3929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3930 conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_check_lib_save_LIBS
3933 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3934 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6; }
3935 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3936 cat >>confdefs.h <<_ACEOF
3937 @%:@define HAVE_LIBRESOLV 1
3940 LIBS="-lresolv $LIBS"
3955 { echo "$as_me:$LINENO: checking for socket" >&5
3956 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
3957 if test "${ac_cv_func_socket+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3968 #define socket innocuous_socket
3970 /* System header to define __stub macros and hopefully few prototypes,
3971 which can conflict with char socket (); below.
3972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 <limits.h> exists even on freestanding compilers. */
3976 # include <limits.h>
3978 # include <assert.h>
3983 /* Override any GCC internal prototype to avoid an error.
3984 Use char because int might match the return type of a GCC
3985 builtin and then its argument prototype would still apply. */
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined __stub_socket || defined __stub___socket
4005 rm -f conftest.$ac_objext conftest$ac_exeext
4006 if { (ac_try="$ac_link"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_link") 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest$ac_exeext &&
4022 $as_test_x conftest$ac_exeext; then
4023 ac_cv_func_socket=yes
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_cv_func_socket=no
4031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4032 conftest$ac_exeext conftest.$ac_ext
4034 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4035 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4036 if test $ac_cv_func_socket = yes; then
4040 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4041 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4042 if test "${ac_cv_lib_socket_socket+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 ac_check_lib_save_LIBS=$LIBS
4046 LIBS="-lsocket $LIBS"
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4054 /* Override any GCC internal prototype to avoid an error.
4055 Use char because int might match the return type of a GCC
4056 builtin and then its argument prototype would still apply. */
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (ac_try="$ac_link"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_link") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest$ac_exeext &&
4086 $as_test_x conftest$ac_exeext; then
4087 ac_cv_lib_socket_socket=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_lib_socket_socket=no
4095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4096 conftest$ac_exeext conftest.$ac_ext
4097 LIBS=$ac_check_lib_save_LIBS
4099 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4100 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4101 if test $ac_cv_lib_socket_socket = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103 @%:@define HAVE_LIBSOCKET 1
4106 LIBS="-lsocket $LIBS"
4109 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4110 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4111 if test "${ac_cv_lib_socket_socket+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 ac_check_lib_save_LIBS=$LIBS
4115 LIBS="-lsocket -lnsl $LIBS"
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4123 /* Override any GCC internal prototype to avoid an error.
4124 Use char because int might match the return type of a GCC
4125 builtin and then its argument prototype would still apply. */
4138 rm -f conftest.$ac_objext conftest$ac_exeext
4139 if { (ac_try="$ac_link"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_link") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest$ac_exeext &&
4155 $as_test_x conftest$ac_exeext; then
4156 ac_cv_lib_socket_socket=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_lib_socket_socket=no
4164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4165 conftest$ac_exeext conftest.$ac_ext
4166 LIBS=$ac_check_lib_save_LIBS
4168 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4169 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4170 if test $ac_cv_lib_socket_socket = yes; then
4171 LIBS="-lsocket -lnsl $LIBS"
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4191 if test -z "$CPP"; then
4192 if test "${ac_cv_prog_CPP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 # Double quotes because CPP needs to be expanded
4196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4199 for ac_c_preproc_warn_flag in '' yes
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 # <limits.h> exists even on freestanding compilers.
4205 # On the NeXT, cc -E runs the code through the compiler's parser,
4206 # not just through cpp. "Syntax error" is here to catch this case.
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 @%:@ include <limits.h>
4216 @%:@ include <assert.h>
4220 if { (ac_try="$ac_cpp conftest.$ac_ext"
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev/null && {
4233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 # Broken: fails on valid input.
4245 rm -f conftest.err conftest.$ac_ext
4247 # OK, works on sane cases. Now check whether nonexistent headers
4248 # can be detected and how.
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 @%:@include <ac_nonexistent.h>
4257 if { (ac_try="$ac_cpp conftest.$ac_ext"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null && {
4270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4271 test ! -s conftest.err
4273 # Broken: success on invalid input.
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 # Passes both tests.
4284 rm -f conftest.err conftest.$ac_ext
4287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288 rm -f conftest.err conftest.$ac_ext
4289 if $ac_preproc_ok; then
4301 { echo "$as_me:$LINENO: result: $CPP" >&5
4302 echo "${ECHO_T}$CPP" >&6; }
4304 for ac_c_preproc_warn_flag in '' yes
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4319 @%:@ include <limits.h>
4321 @%:@ include <assert.h>
4325 if { (ac_try="$ac_cpp conftest.$ac_ext"
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4333 grep -v '^ *+' conftest.er1 >conftest.err
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } >/dev/null && {
4338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 # Broken: fails on valid input.
4350 rm -f conftest.err conftest.$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 @%:@include <ac_nonexistent.h>
4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4378 # Broken: success on invalid input.
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 # Passes both tests.
4389 rm -f conftest.err conftest.$ac_ext
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4397 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4412 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_GREP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 # Extract the first word of "grep ggrep" to use in msg output
4417 if test -z "$GREP"; then
4418 set dummy grep ggrep; ac_prog_name=$2
4419 if test "${ac_cv_path_GREP+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 ac_path_GREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in grep ggrep; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4432 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4433 # Check for GNU ac_path_GREP and select it if it is found.
4434 # Check for GNU $ac_path_GREP
4435 case `"$ac_path_GREP" --version 2>&1` in
4437 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4440 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 echo 'GREP' >> "conftest.nl"
4447 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449 ac_count=`expr $ac_count + 1`
4450 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_GREP="$ac_path_GREP"
4453 ac_path_GREP_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462 $ac_path_GREP_found && break 3
4472 GREP="$ac_cv_path_GREP"
4473 if test -z "$GREP"; then
4474 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4475 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4476 { (exit 1); exit 1; }; }
4480 ac_cv_path_GREP=$GREP
4485 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4486 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4487 GREP="$ac_cv_path_GREP"
4490 { echo "$as_me:$LINENO: checking for egrep" >&5
4491 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_EGREP+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4496 then ac_cv_path_EGREP="$GREP -E"
4498 # Extract the first word of "egrep" to use in msg output
4499 if test -z "$EGREP"; then
4500 set dummy egrep; ac_prog_name=$2
4501 if test "${ac_cv_path_EGREP+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_path_EGREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in egrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4515 # Check for GNU ac_path_EGREP and select it if it is found.
4516 # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4522 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 echo 'EGREP' >> "conftest.nl"
4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 ac_count=`expr $ac_count + 1`
4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_EGREP="$ac_path_EGREP"
4535 ac_path_EGREP_max=$ac_count
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 $ac_path_EGREP_found && break 3
4554 EGREP="$ac_cv_path_EGREP"
4555 if test -z "$EGREP"; then
4556 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4557 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4558 { (exit 1); exit 1; }; }
4562 ac_cv_path_EGREP=$EGREP
4568 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4569 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4570 EGREP="$ac_cv_path_EGREP"
4573 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4574 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4575 if test "${ac_cv_header_stdc+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.$ac_ext <<_ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest.$ac_objext; then
4614 ac_cv_header_stdc=yes
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_cv_header_stdc=no
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636 $EGREP "memchr" >/dev/null 2>&1; then
4639 ac_cv_header_stdc=no
4645 if test $ac_cv_header_stdc = yes; then
4646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657 $EGREP "free" >/dev/null 2>&1; then
4660 ac_cv_header_stdc=no
4666 if test $ac_cv_header_stdc = yes; then
4667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4668 if test "$cross_compiling" = yes; then
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4679 #if ((' ' & 0x0FF) == 0x020)
4680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683 # define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
4685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4702 rm -f conftest$ac_exeext
4703 if { (ac_try="$ac_link"
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_link") 2>&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4713 { (case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_try") 2>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4724 echo "$as_me: program exited with status $ac_status" >&5
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_cv_header_stdc=no
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4737 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4738 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4739 if test $ac_cv_header_stdc = yes; then
4741 cat >>confdefs.h <<\_ACEOF
4742 @%:@define STDC_HEADERS 1
4747 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4757 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4758 inttypes.h stdint.h unistd.h
4760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4774 @%:@include <$ac_header>
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793 eval "$as_ac_Header=yes"
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 eval "$as_ac_Header=no"
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 ac_res=`eval echo '${'$as_ac_Header'}'`
4804 { echo "$as_me:$LINENO: result: $ac_res" >&5
4805 echo "${ECHO_T}$ac_res" >&6; }
4806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4807 cat >>confdefs.h <<_ACEOF
4808 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4826 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
4828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 ac_res=`eval echo '${'$as_ac_Header'}'`
4836 { echo "$as_me:$LINENO: result: $ac_res" >&5
4837 echo "${ECHO_T}$ac_res" >&6; }
4839 # Is the header compilable?
4840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4849 @%:@include <$ac_header>
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && {
4865 test -z "$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 } && test -s conftest.$ac_objext; then
4868 ac_header_compiler=yes
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4873 ac_header_compiler=no
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6; }
4880 # Is the header present?
4881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 @%:@include <$ac_header>
4891 if { (ac_try="$ac_cpp conftest.$ac_ext"
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev/null && {
4904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4907 ac_header_preproc=yes
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ac_header_preproc=no
4915 rm -f conftest.err conftest.$ac_ext
4916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 echo "${ECHO_T}$ac_header_preproc" >&6; }
4919 # So? What about this header?
4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4926 ac_header_preproc=yes
4929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 eval "$as_ac_Header=\$ac_header_preproc"
4951 ac_res=`eval echo '${'$as_ac_Header'}'`
4952 { echo "$as_me:$LINENO: result: $ac_res" >&5
4953 echo "${ECHO_T}$ac_res" >&6; }
4956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4957 cat >>confdefs.h <<_ACEOF
4958 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4966 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4967 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4968 if test "${ac_cv_c_bigendian+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 # See if sys/param.h defines the BYTE_ORDER macro.
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 #include <sys/types.h>
4979 #include <sys/param.h>
4984 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4985 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_compile") 2>conftest.er1
5002 grep -v '^ *+' conftest.er1 >conftest.err
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } && {
5007 test -z "$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5009 } && test -s conftest.$ac_objext; then
5010 # It does; now see whether it defined to BIG_ENDIAN or not.
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #include <sys/types.h>
5018 #include <sys/param.h>
5023 #if BYTE_ORDER != BIG_ENDIAN
5031 rm -f conftest.$ac_objext
5032 if { (ac_try="$ac_compile"
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_compile") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest.$ac_objext; then
5048 ac_cv_c_bigendian=yes
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 ac_cv_c_bigendian=no
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 # It does not; compile a test program.
5062 if test "$cross_compiling" = yes; then
5063 # try to guess the endianness by grepping values into an object file
5064 ac_cv_c_bigendian=unknown
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5072 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5073 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5074 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5075 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5076 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5080 _ascii (); _ebcdic ();
5085 rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5103 ac_cv_c_bigendian=yes
5105 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5106 if test "$ac_cv_c_bigendian" = unknown; then
5107 ac_cv_c_bigendian=no
5109 # finding both strings is unlikely to happen, but who knows?
5110 ac_cv_c_bigendian=unknown
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 cat >conftest.$ac_ext <<_ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5133 /* Are we little or big endian? From Harbison&Steele. */
5137 char c[sizeof (long int)];
5140 return u.c[sizeof (long int) - 1] == 1;
5146 rm -f conftest$ac_exeext
5147 if { (ac_try="$ac_link"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_link") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5157 { (case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_try") 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_c_bigendian=no
5168 echo "$as_me: program exited with status $ac_status" >&5
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_cv_c_bigendian=yes
5175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5184 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5185 case $ac_cv_c_bigendian in
5188 cat >>confdefs.h <<\_ACEOF
5189 @%:@define WORDS_BIGENDIAN 1
5195 { { echo "$as_me:$LINENO: error: unknown endianness
5196 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5197 echo "$as_me: error: unknown endianness
5198 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5202 { echo "$as_me:$LINENO: checking for size_t" >&5
5203 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5204 if test "${ac_cv_type_size_t+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5214 typedef size_t ac__type_new_;
5218 if ((ac__type_new_ *) 0)
5220 if (sizeof (ac__type_new_))
5226 rm -f conftest.$ac_objext
5227 if { (ac_try="$ac_compile"
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233 (eval "$ac_compile") 2>conftest.er1
5235 grep -v '^ *+' conftest.er1 >conftest.err
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } && {
5240 test -z "$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 } && test -s conftest.$ac_objext; then
5243 ac_cv_type_size_t=yes
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 ac_cv_type_size_t=no
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5254 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5255 if test $ac_cv_type_size_t = yes; then
5259 cat >>confdefs.h <<_ACEOF
5260 @%:@define size_t unsigned int
5265 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5266 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5267 if test "${ac_cv_header_time+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 cat >conftest.$ac_ext <<_ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 #include <sys/types.h>
5277 #include <sys/time.h>
5283 if ((struct tm *) 0)
5289 rm -f conftest.$ac_objext
5290 if { (ac_try="$ac_compile"
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 ac_cv_header_time=yes
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_cv_header_time=no
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5317 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5318 if test $ac_cv_header_time = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 @%:@define TIME_WITH_SYS_TIME 1
5326 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5327 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5328 if test "${ac_cv_struct_tm+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <sys/types.h>
5344 int *p = &tm.tm_sec;
5350 rm -f conftest.$ac_objext
5351 if { (ac_try="$ac_compile"
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357 (eval "$ac_compile") 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && {
5364 test -z "$ac_c_werror_flag" ||
5365 test ! -s conftest.err
5366 } && test -s conftest.$ac_objext; then
5367 ac_cv_struct_tm=time.h
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 ac_cv_struct_tm=sys/time.h
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5378 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5379 if test $ac_cv_struct_tm = sys/time.h; then
5381 cat >>confdefs.h <<\_ACEOF
5382 @%:@define TM_IN_SYS_TIME 1
5387 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5388 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5389 if test "${ac_cv_type_uid_t+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "uid_t" >/dev/null 2>&1; then
5403 ac_cv_type_uid_t=yes
5410 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5411 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5412 if test $ac_cv_type_uid_t = no; then
5414 cat >>confdefs.h <<\_ACEOF
5415 @%:@define uid_t int
5419 cat >>confdefs.h <<\_ACEOF
5420 @%:@define gid_t int
5425 { echo "$as_me:$LINENO: checking for short" >&5
5426 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5427 if test "${ac_cv_type_short+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 typedef short ac__type_new_;
5441 if ((ac__type_new_ *) 0)
5443 if (sizeof (ac__type_new_))
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compile") 2>conftest.er1
5458 grep -v '^ *+' conftest.er1 >conftest.err
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } && {
5463 test -z "$ac_c_werror_flag" ||
5464 test ! -s conftest.err
5465 } && test -s conftest.$ac_objext; then
5466 ac_cv_type_short=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5477 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5479 # The cast to long int works around a bug in the HP C Compiler
5480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5482 # This bug is HP SR number 8606223364.
5483 { echo "$as_me:$LINENO: checking size of short" >&5
5484 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5485 if test "${ac_cv_sizeof_short+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 if test "$cross_compiling" = yes; then
5489 # Depending upon the size, compute the lo and hi bounds.
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5497 typedef short ac__type_sizeof_;
5501 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
5502 test_array @<:@0@:>@ = 0
5508 rm -f conftest.$ac_objext
5509 if { (ac_try="$ac_compile"
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compile") 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.$ac_objext; then
5527 cat >conftest.$ac_ext <<_ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5534 typedef short ac__type_sizeof_;
5538 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5539 test_array @<:@0@:>@ = 0
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5562 ac_hi=$ac_mid; break
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 ac_lo=`expr $ac_mid + 1`
5568 if test $ac_lo -le $ac_mid; then
5572 ac_mid=`expr 2 '*' $ac_mid + 1`
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 $ac_includes_default
5588 typedef short ac__type_sizeof_;
5592 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
5593 test_array @<:@0@:>@ = 0
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5618 cat >conftest.$ac_ext <<_ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 $ac_includes_default
5625 typedef short ac__type_sizeof_;
5629 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
5630 test_array @<:@0@:>@ = 0
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compile") 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && {
5650 test -z "$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5652 } && test -s conftest.$ac_objext; then
5653 ac_lo=$ac_mid; break
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_hi=`expr '(' $ac_mid ')' - 1`
5659 if test $ac_mid -le $ac_hi; then
5663 ac_mid=`expr 2 '*' $ac_mid`
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 # Binary search between lo and hi bounds.
5680 while test "x$ac_lo" != "x$ac_hi"; do
5681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 $ac_includes_default
5689 typedef short ac__type_sizeof_;
5693 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5694 test_array @<:@0@:>@ = 0
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5709 grep -v '^ *+' conftest.er1 >conftest.err
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } && {
5714 test -z "$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 } && test -s conftest.$ac_objext; then
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 ac_lo=`expr '(' $ac_mid ')' + 1`
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 ?*) ac_cv_sizeof_short=$ac_lo;;
5729 '') if test "$ac_cv_type_short" = yes; then
5730 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5731 See \`config.log' for more details." >&5
5732 echo "$as_me: error: cannot compute sizeof (short)
5733 See \`config.log' for more details." >&2;}
5734 { (exit 77); exit 77; }; }
5736 ac_cv_sizeof_short=0
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5747 typedef short ac__type_sizeof_;
5748 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5749 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5750 @%:@include <stdio.h>
5751 @%:@include <stdlib.h>
5756 FILE *f = fopen ("conftest.val", "w");
5759 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5761 long int i = longval ();
5762 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5764 fprintf (f, "%ld\n", i);
5768 unsigned long int i = ulongval ();
5769 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5771 fprintf (f, "%lu\n", i);
5773 return ferror (f) || fclose (f) != 0;
5779 rm -f conftest$ac_exeext
5780 if { (ac_try="$ac_link"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_link") 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5790 { (case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_try") 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_sizeof_short=`cat conftest.val`
5801 echo "$as_me: program exited with status $ac_status" >&5
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5806 if test "$ac_cv_type_short" = yes; then
5807 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5808 See \`config.log' for more details." >&5
5809 echo "$as_me: error: cannot compute sizeof (short)
5810 See \`config.log' for more details." >&2;}
5811 { (exit 77); exit 77; }; }
5813 ac_cv_sizeof_short=0
5816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5820 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5821 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5825 cat >>confdefs.h <<_ACEOF
5826 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
5830 { echo "$as_me:$LINENO: checking for int" >&5
5831 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5832 if test "${ac_cv_type_int+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5842 typedef int ac__type_new_;
5846 if ((ac__type_new_ *) 0)
5848 if (sizeof (ac__type_new_))
5854 rm -f conftest.$ac_objext
5855 if { (ac_try="$ac_compile"
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_compile") 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } && {
5868 test -z "$ac_c_werror_flag" ||
5869 test ! -s conftest.err
5870 } && test -s conftest.$ac_objext; then
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5882 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5884 # The cast to long int works around a bug in the HP C Compiler
5885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5887 # This bug is HP SR number 8606223364.
5888 { echo "$as_me:$LINENO: checking size of int" >&5
5889 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5890 if test "${ac_cv_sizeof_int+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 if test "$cross_compiling" = yes; then
5894 # Depending upon the size, compute the lo and hi bounds.
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 $ac_includes_default
5902 typedef int ac__type_sizeof_;
5906 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
5907 test_array @<:@0@:>@ = 0
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1 >conftest.err
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && {
5927 test -z "$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 } && test -s conftest.$ac_objext; then
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 $ac_includes_default
5939 typedef int ac__type_sizeof_;
5943 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5944 test_array @<:@0@:>@ = 0
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 ac_hi=$ac_mid; break
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_lo=`expr $ac_mid + 1`
5973 if test $ac_lo -le $ac_mid; then
5977 ac_mid=`expr 2 '*' $ac_mid + 1`
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 $ac_includes_default
5993 typedef int ac__type_sizeof_;
5997 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
5998 test_array @<:@0@:>@ = 0
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest.$ac_objext; then
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 $ac_includes_default
6030 typedef int ac__type_sizeof_;
6034 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
6035 test_array @<:@0@:>@ = 0
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest.$ac_objext; then
6058 ac_lo=$ac_mid; break
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 ac_hi=`expr '(' $ac_mid ')' - 1`
6064 if test $ac_mid -le $ac_hi; then
6068 ac_mid=`expr 2 '*' $ac_mid`
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 # Binary search between lo and hi bounds.
6085 while test "x$ac_lo" != "x$ac_hi"; do
6086 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 $ac_includes_default
6094 typedef int ac__type_sizeof_;
6098 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6099 test_array @<:@0@:>@ = 0
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && {
6119 test -z "$ac_c_werror_flag" ||
6120 test ! -s conftest.err
6121 } && test -s conftest.$ac_objext; then
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6127 ac_lo=`expr '(' $ac_mid ')' + 1`
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 ?*) ac_cv_sizeof_int=$ac_lo;;
6134 '') if test "$ac_cv_type_int" = yes; then
6135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6136 See \`config.log' for more details." >&5
6137 echo "$as_me: error: cannot compute sizeof (int)
6138 See \`config.log' for more details." >&2;}
6139 { (exit 77); exit 77; }; }
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 $ac_includes_default
6152 typedef int ac__type_sizeof_;
6153 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6154 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6155 @%:@include <stdio.h>
6156 @%:@include <stdlib.h>
6161 FILE *f = fopen ("conftest.val", "w");
6164 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6166 long int i = longval ();
6167 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6169 fprintf (f, "%ld\n", i);
6173 unsigned long int i = ulongval ();
6174 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6176 fprintf (f, "%lu\n", i);
6178 return ferror (f) || fclose (f) != 0;
6184 rm -f conftest$ac_exeext
6185 if { (ac_try="$ac_link"
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_link") 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6195 { (case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_try") 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_sizeof_int=`cat conftest.val`
6206 echo "$as_me: program exited with status $ac_status" >&5
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6211 if test "$ac_cv_type_int" = yes; then
6212 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6213 See \`config.log' for more details." >&5
6214 echo "$as_me: error: cannot compute sizeof (int)
6215 See \`config.log' for more details." >&2;}
6216 { (exit 77); exit 77; }; }
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6225 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6226 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6230 cat >>confdefs.h <<_ACEOF
6231 @%:@define SIZEOF_INT $ac_cv_sizeof_int
6235 { echo "$as_me:$LINENO: checking for long" >&5
6236 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6237 if test "${ac_cv_type_long+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 $ac_includes_default
6247 typedef long ac__type_new_;
6251 if ((ac__type_new_ *) 0)
6253 if (sizeof (ac__type_new_))
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
6275 } && test -s conftest.$ac_objext; then
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6287 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6289 # The cast to long int works around a bug in the HP C Compiler
6290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6292 # This bug is HP SR number 8606223364.
6293 { echo "$as_me:$LINENO: checking size of long" >&5
6294 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6295 if test "${ac_cv_sizeof_long+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 if test "$cross_compiling" = yes; then
6299 # Depending upon the size, compute the lo and hi bounds.
6300 cat >conftest.$ac_ext <<_ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6307 typedef long ac__type_sizeof_;
6311 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
6312 test_array @<:@0@:>@ = 0
6318 rm -f conftest.$ac_objext
6319 if { (ac_try="$ac_compile"
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_compile") 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } && {
6332 test -z "$ac_c_werror_flag" ||
6333 test ! -s conftest.err
6334 } && test -s conftest.$ac_objext; then
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 $ac_includes_default
6344 typedef long ac__type_sizeof_;
6348 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6349 test_array @<:@0@:>@ = 0
6355 rm -f conftest.$ac_objext
6356 if { (ac_try="$ac_compile"
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_compile") 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && {
6369 test -z "$ac_c_werror_flag" ||
6370 test ! -s conftest.err
6371 } && test -s conftest.$ac_objext; then
6372 ac_hi=$ac_mid; break
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6377 ac_lo=`expr $ac_mid + 1`
6378 if test $ac_lo -le $ac_mid; then
6382 ac_mid=`expr 2 '*' $ac_mid + 1`
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6398 typedef long ac__type_sizeof_;
6402 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
6403 test_array @<:@0@:>@ = 0
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest.$ac_objext; then
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 $ac_includes_default
6435 typedef long ac__type_sizeof_;
6439 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
6440 test_array @<:@0@:>@ = 0
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest.$ac_objext; then
6463 ac_lo=$ac_mid; break
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_hi=`expr '(' $ac_mid ')' - 1`
6469 if test $ac_mid -le $ac_hi; then
6473 ac_mid=`expr 2 '*' $ac_mid`
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 # Binary search between lo and hi bounds.
6490 while test "x$ac_lo" != "x$ac_hi"; do
6491 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 $ac_includes_default
6499 typedef long ac__type_sizeof_;
6503 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6504 test_array @<:@0@:>@ = 0
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && {
6524 test -z "$ac_c_werror_flag" ||
6525 test ! -s conftest.err
6526 } && test -s conftest.$ac_objext; then
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_lo=`expr '(' $ac_mid ')' + 1`
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 ?*) ac_cv_sizeof_long=$ac_lo;;
6539 '') if test "$ac_cv_type_long" = yes; then
6540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6541 See \`config.log' for more details." >&5
6542 echo "$as_me: error: cannot compute sizeof (long)
6543 See \`config.log' for more details." >&2;}
6544 { (exit 77); exit 77; }; }
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6557 typedef long ac__type_sizeof_;
6558 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6559 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6560 @%:@include <stdio.h>
6561 @%:@include <stdlib.h>
6566 FILE *f = fopen ("conftest.val", "w");
6569 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6571 long int i = longval ();
6572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6574 fprintf (f, "%ld\n", i);
6578 unsigned long int i = ulongval ();
6579 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6581 fprintf (f, "%lu\n", i);
6583 return ferror (f) || fclose (f) != 0;
6589 rm -f conftest$ac_exeext
6590 if { (ac_try="$ac_link"
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_link") 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6600 { (case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_try") 2>&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_cv_sizeof_long=`cat conftest.val`
6611 echo "$as_me: program exited with status $ac_status" >&5
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6616 if test "$ac_cv_type_long" = yes; then
6617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6618 See \`config.log' for more details." >&5
6619 echo "$as_me: error: cannot compute sizeof (long)
6620 See \`config.log' for more details." >&2;}
6621 { (exit 77); exit 77; }; }
6626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6630 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6631 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6635 cat >>confdefs.h <<_ACEOF
6636 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
6640 { echo "$as_me:$LINENO: checking for void *" >&5
6641 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6642 if test "${ac_cv_type_void_p+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 cat >conftest.$ac_ext <<_ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6651 $ac_includes_default
6652 typedef void * ac__type_new_;
6656 if ((ac__type_new_ *) 0)
6658 if (sizeof (ac__type_new_))
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_compile") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest.$ac_objext; then
6681 ac_cv_type_void_p=yes
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_cv_type_void_p=no
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6692 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
6694 # The cast to long int works around a bug in the HP C Compiler
6695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6697 # This bug is HP SR number 8606223364.
6698 { echo "$as_me:$LINENO: checking size of void *" >&5
6699 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
6700 if test "${ac_cv_sizeof_void_p+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 if test "$cross_compiling" = yes; then
6704 # Depending upon the size, compute the lo and hi bounds.
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 $ac_includes_default
6712 typedef void * ac__type_sizeof_;
6716 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
6717 test_array @<:@0@:>@ = 0
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 typedef void * ac__type_sizeof_;
6753 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6754 test_array @<:@0@:>@ = 0
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_hi=$ac_mid; break
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_lo=`expr $ac_mid + 1`
6783 if test $ac_lo -le $ac_mid; then
6787 ac_mid=`expr 2 '*' $ac_mid + 1`
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 $ac_includes_default
6803 typedef void * ac__type_sizeof_;
6807 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
6808 test_array @<:@0@:>@ = 0
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840 typedef void * ac__type_sizeof_;
6844 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
6845 test_array @<:@0@:>@ = 0
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6860 grep -v '^ *+' conftest.er1 >conftest.err
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_lo=$ac_mid; break
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_hi=`expr '(' $ac_mid ')' - 1`
6874 if test $ac_mid -le $ac_hi; then
6878 ac_mid=`expr 2 '*' $ac_mid`
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 # Binary search between lo and hi bounds.
6895 while test "x$ac_lo" != "x$ac_hi"; do
6896 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 $ac_includes_default
6904 typedef void * ac__type_sizeof_;
6908 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6909 test_array @<:@0@:>@ = 0
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_compile") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && {
6929 test -z "$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6931 } && test -s conftest.$ac_objext; then
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_lo=`expr '(' $ac_mid ')' + 1`
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6944 '') if test "$ac_cv_type_void_p" = yes; then
6945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6946 See \`config.log' for more details." >&5
6947 echo "$as_me: error: cannot compute sizeof (void *)
6948 See \`config.log' for more details." >&2;}
6949 { (exit 77); exit 77; }; }
6951 ac_cv_sizeof_void_p=0
6955 cat >conftest.$ac_ext <<_ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 $ac_includes_default
6962 typedef void * ac__type_sizeof_;
6963 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6964 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6965 @%:@include <stdio.h>
6966 @%:@include <stdlib.h>
6971 FILE *f = fopen ("conftest.val", "w");
6974 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6976 long int i = longval ();
6977 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6979 fprintf (f, "%ld\n", i);
6983 unsigned long int i = ulongval ();
6984 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6986 fprintf (f, "%lu\n", i);
6988 return ferror (f) || fclose (f) != 0;
6994 rm -f conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_link") 2>&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7005 { (case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_try") 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 ac_cv_sizeof_void_p=`cat conftest.val`
7016 echo "$as_me: program exited with status $ac_status" >&5
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7021 if test "$ac_cv_type_void_p" = yes; then
7022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7023 See \`config.log' for more details." >&5
7024 echo "$as_me: error: cannot compute sizeof (void *)
7025 See \`config.log' for more details." >&2;}
7026 { (exit 77); exit 77; }; }
7028 ac_cv_sizeof_void_p=0
7031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7036 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7040 cat >>confdefs.h <<_ACEOF
7041 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7045 { echo "$as_me:$LINENO: checking for int64_t" >&5
7046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_int64_t+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 $ac_includes_default
7057 typedef int64_t ac__type_new_;
7061 if ((ac__type_new_ *) 0)
7063 if (sizeof (ac__type_new_))
7069 rm -f conftest.$ac_objext
7070 if { (ac_try="$ac_compile"
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_compile") 2>conftest.er1
7078 grep -v '^ *+' conftest.er1 >conftest.err
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } && {
7083 test -z "$ac_c_werror_flag" ||
7084 test ! -s conftest.err
7085 } && test -s conftest.$ac_objext; then
7086 ac_cv_type_int64_t=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 ac_cv_type_int64_t=no
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7097 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7099 # The cast to long int works around a bug in the HP C Compiler
7100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7102 # This bug is HP SR number 8606223364.
7103 { echo "$as_me:$LINENO: checking size of int64_t" >&5
7104 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
7105 if test "${ac_cv_sizeof_int64_t+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 if test "$cross_compiling" = yes; then
7109 # Depending upon the size, compute the lo and hi bounds.
7110 cat >conftest.$ac_ext <<_ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7117 typedef int64_t ac__type_sizeof_;
7121 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
7122 test_array @<:@0@:>@ = 0
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 $ac_includes_default
7154 typedef int64_t ac__type_sizeof_;
7158 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7159 test_array @<:@0@:>@ = 0
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 ac_hi=$ac_mid; break
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 ac_lo=`expr $ac_mid + 1`
7188 if test $ac_lo -le $ac_mid; then
7192 ac_mid=`expr 2 '*' $ac_mid + 1`
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 cat >conftest.$ac_ext <<_ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 typedef int64_t ac__type_sizeof_;
7212 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
7213 test_array @<:@0@:>@ = 0
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7228 grep -v '^ *+' conftest.er1 >conftest.err
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 typedef int64_t ac__type_sizeof_;
7249 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
7250 test_array @<:@0@:>@ = 0
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_compile") 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest.$ac_objext; then
7273 ac_lo=$ac_mid; break
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7278 ac_hi=`expr '(' $ac_mid ')' - 1`
7279 if test $ac_mid -le $ac_hi; then
7283 ac_mid=`expr 2 '*' $ac_mid`
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 # Binary search between lo and hi bounds.
7300 while test "x$ac_lo" != "x$ac_hi"; do
7301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 typedef int64_t ac__type_sizeof_;
7313 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7314 test_array @<:@0@:>@ = 0
7320 rm -f conftest.$ac_objext
7321 if { (ac_try="$ac_compile"
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_compile") 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest.$ac_objext; then
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_lo=`expr '(' $ac_mid ')' + 1`
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7349 '') if test "$ac_cv_type_int64_t" = yes; then
7350 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7351 See \`config.log' for more details." >&5
7352 echo "$as_me: error: cannot compute sizeof (int64_t)
7353 See \`config.log' for more details." >&2;}
7354 { (exit 77); exit 77; }; }
7356 ac_cv_sizeof_int64_t=0
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7367 typedef int64_t ac__type_sizeof_;
7368 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7369 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7370 @%:@include <stdio.h>
7371 @%:@include <stdlib.h>
7376 FILE *f = fopen ("conftest.val", "w");
7379 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7381 long int i = longval ();
7382 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7384 fprintf (f, "%ld\n", i);
7388 unsigned long int i = ulongval ();
7389 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7391 fprintf (f, "%lu\n", i);
7393 return ferror (f) || fclose (f) != 0;
7399 rm -f conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_try") 2>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; }; then
7419 ac_cv_sizeof_int64_t=`cat conftest.val`
7421 echo "$as_me: program exited with status $ac_status" >&5
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7426 if test "$ac_cv_type_int64_t" = yes; then
7427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7428 See \`config.log' for more details." >&5
7429 echo "$as_me: error: cannot compute sizeof (int64_t)
7430 See \`config.log' for more details." >&2;}
7431 { (exit 77); exit 77; }; }
7433 ac_cv_sizeof_int64_t=0
7436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7441 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
7445 cat >>confdefs.h <<_ACEOF
7446 @%:@define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7450 { echo "$as_me:$LINENO: checking for long long" >&5
7451 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7452 if test "${ac_cv_type_long_long+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7462 typedef long long ac__type_new_;
7466 if ((ac__type_new_ *) 0)
7468 if (sizeof (ac__type_new_))
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7481 (eval "$ac_compile") 2>conftest.er1
7483 grep -v '^ *+' conftest.er1 >conftest.err
7485 cat conftest.err >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && {
7488 test -z "$ac_c_werror_flag" ||
7489 test ! -s conftest.err
7490 } && test -s conftest.$ac_objext; then
7491 ac_cv_type_long_long=yes
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7496 ac_cv_type_long_long=no
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7502 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7504 # The cast to long int works around a bug in the HP C Compiler
7505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7507 # This bug is HP SR number 8606223364.
7508 { echo "$as_me:$LINENO: checking size of long long" >&5
7509 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7510 if test "${ac_cv_sizeof_long_long+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 if test "$cross_compiling" = yes; then
7514 # Depending upon the size, compute the lo and hi bounds.
7515 cat >conftest.$ac_ext <<_ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 typedef long long ac__type_sizeof_;
7526 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
7527 test_array @<:@0@:>@ = 0
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7552 cat >conftest.$ac_ext <<_ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7559 typedef long long ac__type_sizeof_;
7563 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7564 test_array @<:@0@:>@ = 0
7570 rm -f conftest.$ac_objext
7571 if { (ac_try="$ac_compile"
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_compile") 2>conftest.er1
7579 grep -v '^ *+' conftest.er1 >conftest.err
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } && {
7584 test -z "$ac_c_werror_flag" ||
7585 test ! -s conftest.err
7586 } && test -s conftest.$ac_objext; then
7587 ac_hi=$ac_mid; break
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_lo=`expr $ac_mid + 1`
7593 if test $ac_lo -le $ac_mid; then
7597 ac_mid=`expr 2 '*' $ac_mid + 1`
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7613 typedef long long ac__type_sizeof_;
7617 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
7618 test_array @<:@0@:>@ = 0
7624 rm -f conftest.$ac_objext
7625 if { (ac_try="$ac_compile"
7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631 (eval "$ac_compile") 2>conftest.er1
7633 grep -v '^ *+' conftest.er1 >conftest.err
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && {
7638 test -z "$ac_c_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 typedef long long ac__type_sizeof_;
7654 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
7655 test_array @<:@0@:>@ = 0
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7670 grep -v '^ *+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678 ac_lo=$ac_mid; break
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_hi=`expr '(' $ac_mid ')' - 1`
7684 if test $ac_mid -le $ac_hi; then
7688 ac_mid=`expr 2 '*' $ac_mid`
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 # Binary search between lo and hi bounds.
7705 while test "x$ac_lo" != "x$ac_hi"; do
7706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 typedef long long ac__type_sizeof_;
7718 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7719 test_array @<:@0@:>@ = 0
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_compile") 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest.$ac_objext; then
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 ac_lo=`expr '(' $ac_mid ')' + 1`
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7754 '') if test "$ac_cv_type_long_long" = yes; then
7755 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7756 See \`config.log' for more details." >&5
7757 echo "$as_me: error: cannot compute sizeof (long long)
7758 See \`config.log' for more details." >&2;}
7759 { (exit 77); exit 77; }; }
7761 ac_cv_sizeof_long_long=0
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 $ac_includes_default
7772 typedef long long ac__type_sizeof_;
7773 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7774 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7775 @%:@include <stdio.h>
7776 @%:@include <stdlib.h>
7781 FILE *f = fopen ("conftest.val", "w");
7784 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7786 long int i = longval ();
7787 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7789 fprintf (f, "%ld\n", i);
7793 unsigned long int i = ulongval ();
7794 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7796 fprintf (f, "%lu\n", i);
7798 return ferror (f) || fclose (f) != 0;
7804 rm -f conftest$ac_exeext
7805 if { (ac_try="$ac_link"
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_link") 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7815 { (case "(($ac_try" in
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7820 (eval "$ac_try") 2>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_sizeof_long_long=`cat conftest.val`
7826 echo "$as_me: program exited with status $ac_status" >&5
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7831 if test "$ac_cv_type_long_long" = yes; then
7832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7833 See \`config.log' for more details." >&5
7834 echo "$as_me: error: cannot compute sizeof (long long)
7835 See \`config.log' for more details." >&2;}
7836 { (exit 77); exit 77; }; }
7838 ac_cv_sizeof_long_long=0
7841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7845 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7846 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7850 cat >>confdefs.h <<_ACEOF
7851 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7855 if test "$ac_cv_sizeof_int" = 2 ; then
7856 { echo "$as_me:$LINENO: checking for int16_t" >&5
7857 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7858 if test "${ac_cv_type_int16_t+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7868 typedef int16_t ac__type_new_;
7872 if ((ac__type_new_ *) 0)
7874 if (sizeof (ac__type_new_))
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 ac_cv_type_int16_t=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 ac_cv_type_int16_t=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7908 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
7909 if test $ac_cv_type_int16_t = yes; then
7913 cat >>confdefs.h <<_ACEOF
7914 @%:@define int16_t int
7919 { echo "$as_me:$LINENO: checking for uint16_t" >&5
7920 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7921 if test "${ac_cv_type_uint16_t+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 $ac_includes_default
7931 typedef uint16_t ac__type_new_;
7935 if ((ac__type_new_ *) 0)
7937 if (sizeof (ac__type_new_))
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_type_uint16_t=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_type_uint16_t=no
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7971 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
7972 if test $ac_cv_type_uint16_t = yes; then
7976 cat >>confdefs.h <<_ACEOF
7977 @%:@define uint16_t unsigned int
7982 elif test "$ac_cv_sizeof_short" = 2 ; then
7983 { echo "$as_me:$LINENO: checking for int16_t" >&5
7984 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7985 if test "${ac_cv_type_int16_t+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 $ac_includes_default
7995 typedef int16_t ac__type_new_;
7999 if ((ac__type_new_ *) 0)
8001 if (sizeof (ac__type_new_))
8007 rm -f conftest.$ac_objext
8008 if { (ac_try="$ac_compile"
8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011 *) ac_try_echo=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_compile") 2>conftest.er1
8016 grep -v '^ *+' conftest.er1 >conftest.err
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest.$ac_objext; then
8024 ac_cv_type_int16_t=yes
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_type_int16_t=no
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8035 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
8036 if test $ac_cv_type_int16_t = yes; then
8040 cat >>confdefs.h <<_ACEOF
8041 @%:@define int16_t short
8046 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8047 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8048 if test "${ac_cv_type_uint16_t+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 typedef uint16_t ac__type_new_;
8062 if ((ac__type_new_ *) 0)
8064 if (sizeof (ac__type_new_))
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 ac_cv_type_uint16_t=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_cv_type_uint16_t=no
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8098 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8099 if test $ac_cv_type_uint16_t = yes; then
8103 cat >>confdefs.h <<_ACEOF
8104 @%:@define uint16_t unsigned short
8110 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
8111 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
8112 { (exit 1); exit 1; }; }
8114 if test "$ac_cv_sizeof_int" = 4 ; then
8115 { echo "$as_me:$LINENO: checking for int32_t" >&5
8116 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8117 if test "${ac_cv_type_int32_t+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 typedef int32_t ac__type_new_;
8131 if ((ac__type_new_ *) 0)
8133 if (sizeof (ac__type_new_))
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_compile") 2>conftest.er1
8148 grep -v '^ *+' conftest.er1 >conftest.err
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } && {
8153 test -z "$ac_c_werror_flag" ||
8154 test ! -s conftest.err
8155 } && test -s conftest.$ac_objext; then
8156 ac_cv_type_int32_t=yes
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8161 ac_cv_type_int32_t=no
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8167 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8168 if test $ac_cv_type_int32_t = yes; then
8172 cat >>confdefs.h <<_ACEOF
8173 @%:@define int32_t int
8178 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8179 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8180 if test "${ac_cv_type_uint32_t+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 $ac_includes_default
8190 typedef uint32_t ac__type_new_;
8194 if ((ac__type_new_ *) 0)
8196 if (sizeof (ac__type_new_))
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 ac_cv_type_uint32_t=yes
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_cv_type_uint32_t=no
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8230 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8231 if test $ac_cv_type_uint32_t = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236 @%:@define uint32_t unsigned int
8241 elif test "$ac_cv_sizeof_short" = 4 ; then
8242 { echo "$as_me:$LINENO: checking for int32_t" >&5
8243 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8244 if test "${ac_cv_type_int32_t+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 $ac_includes_default
8254 typedef int32_t ac__type_new_;
8258 if ((ac__type_new_ *) 0)
8260 if (sizeof (ac__type_new_))
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8275 grep -v '^ *+' conftest.er1 >conftest.err
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_cv_type_int32_t=yes
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 ac_cv_type_int32_t=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8294 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8295 if test $ac_cv_type_int32_t = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 @%:@define int32_t short
8305 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8306 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8307 if test "${ac_cv_type_uint32_t+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8317 typedef uint32_t ac__type_new_;
8321 if ((ac__type_new_ *) 0)
8323 if (sizeof (ac__type_new_))
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_type_uint32_t=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_type_uint32_t=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8357 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8358 if test $ac_cv_type_uint32_t = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363 @%:@define uint32_t unsigned short
8368 elif test "$ac_cv_sizeof_long" = 4 ; then
8369 { echo "$as_me:$LINENO: checking for int32_t" >&5
8370 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8371 if test "${ac_cv_type_int32_t+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 typedef int32_t ac__type_new_;
8385 if ((ac__type_new_ *) 0)
8387 if (sizeof (ac__type_new_))
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.$ac_objext; then
8410 ac_cv_type_int32_t=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_type_int32_t=no
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8421 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8422 if test $ac_cv_type_int32_t = yes; then
8426 cat >>confdefs.h <<_ACEOF
8427 @%:@define int32_t long
8432 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8433 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8434 if test "${ac_cv_type_uint32_t+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443 $ac_includes_default
8444 typedef uint32_t ac__type_new_;
8448 if ((ac__type_new_ *) 0)
8450 if (sizeof (ac__type_new_))
8456 rm -f conftest.$ac_objext
8457 if { (ac_try="$ac_compile"
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compile") 2>conftest.er1
8465 grep -v '^ *+' conftest.er1 >conftest.err
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest.$ac_objext; then
8473 ac_cv_type_uint32_t=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_cv_type_uint32_t=no
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8484 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8485 if test $ac_cv_type_uint32_t = yes; then
8489 cat >>confdefs.h <<_ACEOF
8490 @%:@define uint32_t unsigned long
8496 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8497 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8498 { (exit 1); exit 1; }; }
8500 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8501 { echo "$as_me:$LINENO: checking for int64_t" >&5
8502 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8503 if test "${ac_cv_type_int64_t+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 cat >conftest.$ac_ext <<_ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 typedef int64_t ac__type_new_;
8517 if ((ac__type_new_ *) 0)
8519 if (sizeof (ac__type_new_))
8525 rm -f conftest.$ac_objext
8526 if { (ac_try="$ac_compile"
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_compile") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest.$ac_objext; then
8542 ac_cv_type_int64_t=yes
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 ac_cv_type_int64_t=no
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8553 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8555 { echo "$as_me:$LINENO: checking for uint64_t" >&5
8556 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8557 if test "${ac_cv_type_uint64_t+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8567 typedef uint64_t ac__type_new_;
8571 if ((ac__type_new_ *) 0)
8573 if (sizeof (ac__type_new_))
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_compile") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest.$ac_objext; then
8596 ac_cv_type_uint64_t=yes
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 ac_cv_type_uint64_t=no
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8607 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8609 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8610 { echo "$as_me:$LINENO: checking for int64_t" >&5
8611 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8612 if test "${ac_cv_type_int64_t+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 typedef int64_t ac__type_new_;
8626 if ((ac__type_new_ *) 0)
8628 if (sizeof (ac__type_new_))
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
8651 ac_cv_type_int64_t=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_type_int64_t=no
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8662 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8663 if test $ac_cv_type_int64_t = yes; then
8667 cat >>confdefs.h <<_ACEOF
8668 @%:@define int64_t long long
8673 { echo "$as_me:$LINENO: checking for uint64_t" >&5
8674 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8675 if test "${ac_cv_type_uint64_t+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 typedef uint64_t ac__type_new_;
8689 if ((ac__type_new_ *) 0)
8691 if (sizeof (ac__type_new_))
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_cv_type_uint64_t=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_cv_type_uint64_t=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8725 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8726 if test $ac_cv_type_uint64_t = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731 @%:@define uint64_t unsigned long long
8737 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8738 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8739 { (exit 1); exit 1; }; }
8741 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8742 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
8743 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 #include <sys/types.h>
8753 #include <netinet/in.h>
8755 typedef struct sockaddr_in6 ac__type_new_;
8759 if ((ac__type_new_ *) 0)
8761 if (sizeof (ac__type_new_))
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_type_struct_sockaddr_in6=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_cv_type_struct_sockaddr_in6=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8795 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
8796 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8797 unet_have_sockaddr_in6="yes"
8799 unet_have_sockaddr_in6="no"
8803 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8804 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8805 if test "${ac_cv_type_socklen_t+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 cat >conftest.$ac_ext <<_ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 #include <sys/types.h>
8815 #include<sys/socket.h>
8817 typedef socklen_t ac__type_new_;
8821 if ((ac__type_new_ *) 0)
8823 if (sizeof (ac__type_new_))
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_compile") 2>conftest.er1
8838 grep -v '^ *+' conftest.er1 >conftest.err
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest.$ac_objext; then
8846 ac_cv_type_socklen_t=yes
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_cv_type_socklen_t=no
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8857 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8858 if test $ac_cv_type_socklen_t = yes; then
8862 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8863 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8864 if test "${curl_cv_socklen_t_equiv+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 curl_cv_socklen_t_equiv=
8869 for arg2 in "struct sockaddr" void ; do
8870 for t in int size_t unsigned long "unsigned long" ; do
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 #include <sys/types.h>
8878 #include <sys/socket.h>
8879 int getpeername (int $arg2 *, $t *);
8884 getpeername(0, 0, &len);
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 curl_cv_socklen_t_equiv="$t"
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8922 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
8924 cat >>confdefs.h <<_ACEOF
8925 @%:@define socklen_t $curl_cv_socklen_t_equiv
8935 for ac_func in kqueue setrlimit getrusage times
8937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8951 #define $ac_func innocuous_$ac_func
8953 /* System header to define __stub macros and hopefully few prototypes,
8954 which can conflict with char $ac_func (); below.
8955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956 <limits.h> exists even on freestanding compilers. */
8959 # include <limits.h>
8961 # include <assert.h>
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined __stub_$ac_func || defined __stub___$ac_func
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } && {
9002 test -z "$ac_c_werror_flag" ||
9003 test ! -s conftest.err
9004 } && test -s conftest$ac_exeext &&
9005 $as_test_x conftest$ac_exeext; then
9006 eval "$as_ac_var=yes"
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 eval "$as_ac_var=no"
9014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9015 conftest$ac_exeext conftest.$ac_ext
9017 ac_res=`eval echo '${'$as_ac_var'}'`
9018 { echo "$as_me:$LINENO: result: $ac_res" >&5
9019 echo "${ECHO_T}$ac_res" >&6; }
9020 if test `eval echo '${'$as_ac_var'}'` = yes; then
9021 cat >>confdefs.h <<_ACEOF
9022 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9029 { echo "$as_me:$LINENO: checking for donuts" >&5
9030 echo $ECHO_N "checking for donuts... $ECHO_C" >&6; }
9031 { echo "$as_me:$LINENO: result: yes" >&5
9032 echo "${ECHO_T}yes" >&6; }
9034 for ac_prog in gawk mawk nawk awk
9036 # Extract the first word of "$ac_prog", so it can be a program name with args.
9037 set dummy $ac_prog; ac_word=$2
9038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9040 if test "${ac_cv_prog_AWK+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 if test -n "$AWK"; then
9044 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_prog_AWK="$ac_prog"
9054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 if test -n "$AWK"; then
9065 { echo "$as_me:$LINENO: result: $AWK" >&5
9066 echo "${ECHO_T}$AWK" >&6; }
9068 { echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6; }
9073 test -n "$AWK" && break
9076 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9077 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9078 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9079 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 cat >conftest.make <<\_ACEOF
9085 @echo '@@@%%%=$(MAKE)=@@@%%%'
9087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9088 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9090 eval ac_cv_prog_make_${ac_make}_set=yes;;
9092 eval ac_cv_prog_make_${ac_make}_set=no;;
9096 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9097 { echo "$as_me:$LINENO: result: yes" >&5
9098 echo "${ECHO_T}yes" >&6; }
9101 { echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6; }
9103 SET_MAKE="MAKE=${MAKE-make}"
9106 # Find a good install program. We prefer a C program (faster),
9107 # so one script is as good as another. But avoid the broken or
9108 # incompatible versions:
9109 # SysV /etc/install, /usr/sbin/install
9110 # SunOS /usr/etc/install
9111 # IRIX /sbin/install
9113 # AmigaOS /C/install, which installs bootblocks on floppy discs
9114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9117 # OS/2's system install, which has a completely different semantic
9118 # ./install, which can be erroneously created by make from ./install.sh.
9119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9121 if test -z "$INSTALL"; then
9122 if test "${ac_cv_path_install+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 test -z "$as_dir" && as_dir=.
9130 # Account for people who put trailing slashes in PATH elements.
9132 ./ | .// | /cC/* | \
9133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9134 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9137 # OSF1 and SCO ODT 3.0 have their own names for install.
9138 # Don't use installbsd from OSF since it installs stuff as root
9140 for ac_prog in ginstall scoinst install; do
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9143 if test $ac_prog = install &&
9144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9145 # AIX install. It has an incompatible calling convention.
9147 elif test $ac_prog = install &&
9148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9149 # program-specific install script used by HP pwplus--don't use.
9152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9165 if test "${ac_cv_path_install+set}" = set; then
9166 INSTALL=$ac_cv_path_install
9168 # As a last resort, use the slow shell script. Don't cache a
9169 # value for INSTALL within a source directory, because that will
9170 # break other packages using the cache if that directory is
9171 # removed, or if the value is a relative name.
9172 INSTALL=$ac_install_sh
9175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9176 echo "${ECHO_T}$INSTALL" >&6; }
9178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9179 # It thinks the first close brace ends the variable substitution.
9180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9186 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
9187 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
9189 if test "$LN_S" = "ln -s"; then
9190 { echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6; }
9193 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9194 echo "${ECHO_T}no, using $LN_S" >&6; }
9199 # Extract the first word of "$ac_prog", so it can be a program name with args.
9200 set dummy $ac_prog; ac_word=$2
9201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9203 if test "${ac_cv_path_RMPROG+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 test -z "$as_dir" && as_dir=.
9216 for ac_exec_ext in '' $ac_executable_extensions; do
9217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 RMPROG=$ac_cv_path_RMPROG
9230 if test -n "$RMPROG"; then
9231 { echo "$as_me:$LINENO: result: $RMPROG" >&5
9232 echo "${ECHO_T}$RMPROG" >&6; }
9234 { echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6; }
9239 test -n "$RMPROG" && break
9241 test -n "$RMPROG" || RMPROG="/bin/rm"
9245 # Extract the first word of "$ac_prog", so it can be a program name with args.
9246 set dummy $ac_prog; ac_word=$2
9247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9249 if test "${ac_cv_path_SHPROG+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 SHPROG=$ac_cv_path_SHPROG
9276 if test -n "$SHPROG"; then
9277 { echo "$as_me:$LINENO: result: $SHPROG" >&5
9278 echo "${ECHO_T}$SHPROG" >&6; }
9280 { echo "$as_me:$LINENO: result: no" >&5
9281 echo "${ECHO_T}no" >&6; }
9285 test -n "$SHPROG" && break
9287 test -n "$SHPROG" || SHPROG="/bin/sh"
9290 for ac_prog in flex lex
9292 # Extract the first word of "$ac_prog", so it can be a program name with args.
9293 set dummy $ac_prog; ac_word=$2
9294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9296 if test "${ac_cv_prog_LEX+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 if test -n "$LEX"; then
9300 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_prog_LEX="$ac_prog"
9310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 if test -n "$LEX"; then
9321 { echo "$as_me:$LINENO: result: $LEX" >&5
9322 echo "${ECHO_T}$LEX" >&6; }
9324 { echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6; }
9329 test -n "$LEX" && break
9331 test -n "$LEX" || LEX=":"
9333 if test "x$LEX" != "x:"; then
9334 cat >conftest.l <<_ACEOF
9340 e { yyless (input () != 0); }
9341 f { unput (yytext[0]); }
9342 . { BEGIN INITIAL; }
9344 #ifdef YYTEXT_POINTER
9345 extern char *yytext;
9350 return ! yylex () + ! yywrap ();
9353 { (ac_try="$LEX conftest.l"
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$LEX conftest.l") 2>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }
9363 { echo "$as_me:$LINENO: checking lex output file root" >&5
9364 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9365 if test "${ac_cv_prog_lex_root+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 if test -f lex.yy.c; then
9370 ac_cv_prog_lex_root=lex.yy
9371 elif test -f lexyy.c; then
9372 ac_cv_prog_lex_root=lexyy
9374 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9375 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9376 { (exit 1); exit 1; }; }
9379 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9380 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9381 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9383 if test -z "${LEXLIB+set}"; then
9384 { echo "$as_me:$LINENO: checking lex library" >&5
9385 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9386 if test "${ac_cv_lib_lex+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 ac_cv_lib_lex='none needed'
9392 for ac_lib in '' -lfl -ll; do
9393 LIBS="$ac_lib $ac_save_LIBS"
9394 cat >conftest.$ac_ext <<_ACEOF
9395 `cat $LEX_OUTPUT_ROOT.c`
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (ac_try="$ac_link"
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_link") 2>conftest.er1
9406 grep -v '^ *+' conftest.er1 >conftest.err
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest$ac_exeext &&
9414 $as_test_x conftest$ac_exeext; then
9415 ac_cv_lib_lex=$ac_lib
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424 conftest$ac_exeext conftest.$ac_ext
9425 test "$ac_cv_lib_lex" != 'none needed' && break
9430 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9431 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9432 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9436 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9437 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9438 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 # POSIX says lex can declare yytext either as a pointer or an array; the
9442 # default is implementation-dependent. Figure out which it is, since
9443 # not all implementations provide the %pointer and %array declarations.
9444 ac_cv_prog_lex_yytext_pointer=no
9446 LIBS="$LEXLIB $ac_save_LIBS"
9447 cat >conftest.$ac_ext <<_ACEOF
9448 #define YYTEXT_POINTER 1
9449 `cat $LEX_OUTPUT_ROOT.c`
9451 rm -f conftest.$ac_objext conftest$ac_exeext
9452 if { (ac_try="$ac_link"
9454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455 *) ac_try_echo=$ac_try;;
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458 (eval "$ac_link") 2>conftest.er1
9460 grep -v '^ *+' conftest.er1 >conftest.err
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && {
9465 test -z "$ac_c_werror_flag" ||
9466 test ! -s conftest.err
9467 } && test -s conftest$ac_exeext &&
9468 $as_test_x conftest$ac_exeext; then
9469 ac_cv_prog_lex_yytext_pointer=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9478 conftest$ac_exeext conftest.$ac_ext
9482 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9483 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9484 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9486 cat >>confdefs.h <<\_ACEOF
9487 @%:@define YYTEXT_POINTER 1
9491 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9494 if test "$LEX" = ":" ; then
9495 { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9496 echo "$as_me: error: Cannot find flex." >&2;}
9497 { (exit 1); exit 1; }; }
9498 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9501 { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9502 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9503 { (exit 1); exit 1; }; }
9506 for ac_prog in 'bison -y' byacc
9508 # Extract the first word of "$ac_prog", so it can be a program name with args.
9509 set dummy $ac_prog; ac_word=$2
9510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9512 if test "${ac_cv_prog_YACC+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 if test -n "$YACC"; then
9516 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_prog_YACC="$ac_prog"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9535 YACC=$ac_cv_prog_YACC
9536 if test -n "$YACC"; then
9537 { echo "$as_me:$LINENO: result: $YACC" >&5
9538 echo "${ECHO_T}$YACC" >&6; }
9540 { echo "$as_me:$LINENO: result: no" >&5
9541 echo "${ECHO_T}no" >&6; }
9545 test -n "$YACC" && break
9547 test -n "$YACC" || YACC="yacc"
9549 if test "$YACC" = ":" ; then
9550 { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9551 echo "$as_me: error: Cannot find yacc." >&2;}
9552 { (exit 1); exit 1; }; }
9553 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9556 { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9557 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9560 { echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9561 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6; }
9562 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 if test "$cross_compiling" = yes; then
9566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9567 See \`config.log' for more details." >&5
9568 echo "$as_me: error: cannot run test program while cross compiling
9569 See \`config.log' for more details." >&2;}
9570 { (exit 1); exit 1; }; }
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 #include <sys/types.h>
9579 #include <sys/socket.h>
9581 #include <sys/ioctl.h>
9582 #include <sys/file.h>
9584 $ac_cv_type_signal alarmed() { exit(1); }
9589 size_t l = sizeof(x);
9590 int f = socket(AF_INET, SOCK_DGRAM, 0);
9591 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9593 signal(SIGALRM, alarmed);
9595 recvfrom(f, b, 12, 0, &x, &l);
9602 rm -f conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609 (eval "$ac_link") 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9613 { (case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_try") 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 unet_cv_sys_nonblocking_posix=yes
9624 echo "$as_me: program exited with status $ac_status" >&5
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9629 unet_cv_sys_nonblocking_posix=no
9631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9636 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9637 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6; }
9638 if test $unet_cv_sys_nonblocking_posix = yes; then
9640 cat >>confdefs.h <<\_ACEOF
9641 @%:@define NBLOCK_POSIX
9645 { echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9646 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6; }
9647 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 if test "$cross_compiling" = yes; then
9651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9652 See \`config.log' for more details." >&5
9653 echo "$as_me: error: cannot run test program while cross compiling
9654 See \`config.log' for more details." >&2;}
9655 { (exit 1); exit 1; }; }
9657 cat >conftest.$ac_ext <<_ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 #include <sys/types.h>
9664 #include <sys/socket.h>
9666 #include <sys/ioctl.h>
9667 #include <sys/file.h>
9669 $ac_cv_type_signal alarmed() { exit(1); }
9674 size_t l = sizeof(x);
9675 int f = socket(AF_INET, SOCK_DGRAM, 0);
9676 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9678 signal(SIGALRM, alarmed);
9680 recvfrom(f, b, 12, 0, &x, &l);
9687 rm -f conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 unet_cv_sys_nonblocking_bsd=yes
9709 echo "$as_me: program exited with status $ac_status" >&5
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9714 unet_cv_sys_nonblocking_bsd=no
9716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9721 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9722 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6; }
9723 if test $unet_cv_sys_nonblocking_bsd = yes; then
9725 cat >>confdefs.h <<\_ACEOF
9726 @%:@define NBLOCK_BSD
9731 cat >>confdefs.h <<\_ACEOF
9732 @%:@define NBLOCK_SYSV
9737 { echo "$as_me:$LINENO: checking for posix signals" >&5
9738 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6; }
9739 if test "${unet_cv_sys_signal_posix+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9752 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_compile") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest.$ac_objext; then
9774 unet_cv_sys_signal_posix=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 unet_cv_sys_signal_posix=no
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9785 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6; }
9786 if test $unet_cv_sys_signal_posix = yes; then
9788 cat >>confdefs.h <<\_ACEOF
9789 @%:@define POSIX_SIGNALS
9793 { echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9794 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6; }
9795 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 if test "$cross_compiling" = yes; then
9799 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9800 See \`config.log' for more details." >&5
9801 echo "$as_me: error: cannot run test program while cross compiling
9802 See \`config.log' for more details." >&2;}
9803 { (exit 1); exit 1; }; }
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9813 $ac_cv_type_signal handler()
9817 kill(getpid(), SIGTERM);
9822 signal(SIGTERM, handler);
9823 kill(getpid(), SIGTERM);
9827 rm -f conftest$ac_exeext
9828 if { (ac_try="$ac_link"
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_link") 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 unet_cv_sys_signal_bsd=yes
9849 echo "$as_me: program exited with status $ac_status" >&5
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9854 unet_cv_sys_signal_bsd=no
9856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9862 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6; }
9863 if test $unet_cv_sys_signal_bsd = yes; then
9865 cat >>confdefs.h <<\_ACEOF
9866 @%:@define BSD_RELIABLE_SIGNALS
9871 cat >>confdefs.h <<\_ACEOF
9872 @%:@define SYSV_UNRELIABLE_SIGNALS
9878 { echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9879 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6; }
9882 { echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9883 echo "${ECHO_T}Linux ($host) found." >&6; }
9884 unet_poll_syscall=yes
9888 { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9889 echo "${ECHO_T}Solaris ($host) found." >&6; }
9890 if test x"$ac_cv_header_poll_h" = xyes; then
9891 unet_poll_syscall=yes
9893 unet_poll_syscall=no
9896 cat >>confdefs.h <<\_ACEOF
9897 @%:@define IRCU_SOLARIS 1
9903 { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9904 echo "${ECHO_T}Solaris ($host) found." >&6; }
9905 unet_poll_syscall=no
9909 { echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9910 echo "${ECHO_T}OpenBSD ($host) found." >&6; }
9911 if test x"$ac_cv_header_poll_h" = xyes; then
9912 unet_poll_syscall=yes
9914 unet_poll_syscall=no
9919 { echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9920 echo "${ECHO_T}Generic BSD ($host) found." >&6; }
9921 if test x"$ac_cv_header_poll_h" = xyes; then
9922 unet_poll_syscall=yes
9924 unet_poll_syscall=no
9929 { echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9930 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6; }
9931 unet_poll_syscall=no
9933 cat >>confdefs.h <<\_ACEOF
9934 @%:@define _DARWIN_C_SOURCE 1
9940 { echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9941 echo "${ECHO_T}Unknown system type $host found." >&6; }
9942 { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9943 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9944 unet_poll_syscall=no
9948 { echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9949 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6; }
9950 # Check whether --enable-poll was given.
9951 if test "${enable_poll+set}" = set; then
9952 enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
9954 if test "${unet_cv_enable_poll+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 unet_cv_enable_poll=$unet_poll_syscall
9963 # Force poll to be disabled if there is no poll.h
9964 if test x"$ac_cv_header_poll_h" != xyes; then
9965 unet_cv_enable_poll=no
9968 { echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9969 echo "${ECHO_T}$unet_cv_enable_poll" >&6; }
9971 if test x"$unet_cv_enable_poll" = xyes; then
9973 cat >>confdefs.h <<\_ACEOF
9974 @%:@define USE_POLL 1
9977 ENGINE_C=engine_poll.c
9979 ENGINE_C=engine_select.c
9983 { echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9984 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6; }
9985 # Check whether --enable-debug was given.
9986 if test "${enable_debug+set}" = set; then
9987 enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
9989 if test "${unet_cv_enable_debug+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 unet_cv_enable_debug=no
9997 { echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9998 echo "${ECHO_T}$unet_cv_enable_debug" >&6; }
10000 if test x"$unet_cv_enable_debug" = xyes; then
10002 cat >>confdefs.h <<\_ACEOF
10003 @%:@define DEBUGMODE 1
10006 CFLAGS="$CFLAGS -O0 -g"
10009 { echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10010 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6; }
10012 # Check whether --with-leak-detect was given.
10013 if test "${with_leak_detect+set}" = set; then
10014 withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
10016 if test "${unet_cv_with_leak_detect+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 unet_cv_with_leak_detect=no
10024 { echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10025 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6; }
10027 if test x"$unet_cv_with_leak_detect" != xno; then
10029 CFLAGS="-DMDEBUG $CFLAGS"
10030 if test x"$unet_cv_with_leak_detect" != xyes; then
10031 LIBS="-L$unet_cv_with_leak_detect $LIBS"
10036 # Check whether --with-ipv6 was given.
10037 if test "${with_ipv6+set}" = set; then
10038 withval=$with_ipv6; ac_cv_use_ipv6=$withval
10040 ac_cv_use_ipv6=$unet_have_sockaddr_in6
10043 { echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10044 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6; }
10045 if test "${ac_cv_use_ipv6+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 { echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10051 echo "${ECHO_T}$ac_cv_use_ipv6" >&6; }
10052 if test x"$ac_cv_use_ipv6" != "xno" ; then
10054 cat >>confdefs.h <<\_ACEOF
10060 { echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10061 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6; }
10062 # Check whether --enable-asserts was given.
10063 if test "${enable_asserts+set}" = set; then
10064 enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
10066 if test "${unet_cv_enable_asserts+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 unet_cv_enable_asserts=yes
10074 { echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10075 echo "${ECHO_T}$unet_cv_enable_asserts" >&6; }
10077 if test x"$unet_cv_enable_asserts" = xno; then
10079 cat >>confdefs.h <<\_ACEOF
10080 @%:@define NDEBUG 1
10085 { echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10086 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6; }
10087 # Check whether --enable-profile was given.
10088 if test "${enable_profile+set}" = set; then
10089 enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
10091 if test "${unet_cv_enable_profile+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 unet_cv_enable_profile=no
10099 { echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10100 echo "${ECHO_T}$unet_cv_enable_profile" >&6; }
10102 if test x"$unet_cv_enable_profile" = xyes; then
10103 CFLAGS="-pg $CFLAGS"
10104 LDFLAGS="-pg $LDFLAGS"
10107 { echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10108 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6; }
10109 # Check whether --enable-pedantic was given.
10110 if test "${enable_pedantic+set}" = set; then
10111 enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
10113 if test "${unet_cv_enable_pedantic+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 unet_cv_enable_pedantic=no
10121 { echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10122 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6; }
10124 if test x"$unet_cv_enable_pedantic" = xyes; then
10125 CFLAGS="-pedantic $CFLAGS"
10128 { echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10129 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6; }
10130 # Check whether --enable-warnings was given.
10131 if test "${enable_warnings+set}" = set; then
10132 enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
10134 if test "${unet_cv_enable_warnings+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 unet_cv_enable_warnings=no
10142 { echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10143 echo "${ECHO_T}$unet_cv_enable_warnings" >&6; }
10145 if test x"$unet_cv_enable_warnings" = xyes; then
10146 CFLAGS="-Wall $CFLAGS"
10149 { echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10150 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6; }
10151 # Check whether --enable-inlines was given.
10152 if test "${enable_inlines+set}" = set; then
10153 enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
10155 if test "${unet_cv_enable_inlines+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 unet_cv_enable_inlines=yes
10163 { echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10164 echo "${ECHO_T}$unet_cv_enable_inlines" >&6; }
10166 if test x"$unet_cv_enable_inlines" = xyes; then
10168 cat >>confdefs.h <<\_ACEOF
10169 @%:@define FORCEINLINE 1
10174 { echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10175 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6; }
10176 # Check whether --enable-devpoll was given.
10177 if test "${enable_devpoll+set}" = set; then
10178 enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
10180 if test "${unet_cv_enable_devpoll+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 unet_cv_enable_devpoll=yes
10189 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10190 unet_cv_enable_devpoll=no
10193 { echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10194 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6; }
10196 if test x"$unet_cv_enable_devpoll" != xno; then
10198 cat >>confdefs.h <<\_ACEOF
10199 @%:@define USE_DEVPOLL 1
10202 ENGINE_C="engine_devpoll.c $ENGINE_C"
10205 { echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10206 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6; }
10207 # Check whether --enable-kqueue was given.
10208 if test "${enable_kqueue+set}" = set; then
10209 enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
10211 if test "${unet_cv_enable_kqueue+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 unet_cv_enable_kqueue=yes
10220 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10221 unet_cv_enable_kqueue=no
10224 { echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10225 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6; }
10227 if test x"$unet_cv_enable_kqueue" != xno; then
10229 cat >>confdefs.h <<\_ACEOF
10230 @%:@define USE_KQUEUE 1
10233 ENGINE_C="engine_kqueue.c $ENGINE_C"
10236 { echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10237 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6; }
10238 # Check whether --enable-epoll was given.
10239 if test "${enable_epoll+set}" = set; then
10240 enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
10242 if test "${unet_cv_enable_epoll+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 unet_cv_enable_epoll=yes
10251 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10252 unet_cv_enable_epoll=no
10255 { echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10256 echo "${ECHO_T}$unet_cv_enable_epoll" >&6; }
10258 if test x"$unet_cv_enable_epoll" != xno; then
10259 { echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10260 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6; }
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 #include <sys/epoll.h>
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_link") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && {
10290 test -z "$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10292 } && test -s conftest$ac_exeext &&
10293 $as_test_x conftest$ac_exeext; then
10294 { echo "$as_me:$LINENO: result: yes" >&5
10295 echo "${ECHO_T}yes" >&6; }
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 { echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6; }
10303 cat >>confdefs.h <<\_ACEOF
10304 @%:@define EPOLL_NEED_BODY 1
10309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310 conftest$ac_exeext conftest.$ac_ext
10312 cat >>confdefs.h <<\_ACEOF
10313 @%:@define USE_EPOLL 1
10316 ENGINE_C="engine_epoll.c $ENGINE_C"
10319 { echo "$as_me:$LINENO: checking for va_copy" >&5
10320 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
10321 if test "${unet_cv_c_va_copy+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 cat >conftest.$ac_ext <<_ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 #include <stdarg.h>
10334 va_list ap1, ap2; va_copy(ap1, ap2);
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_link") 2>conftest.er1
10348 grep -v '^ *+' conftest.er1 >conftest.err
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest$ac_exeext &&
10356 $as_test_x conftest$ac_exeext; then
10357 unet_cv_c_va_copy="yes"
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 unet_cv_c_va_copy="no"
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367 conftest$ac_exeext conftest.$ac_ext
10369 { echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10370 echo "${ECHO_T}$unet_cv_c_va_copy" >&6; }
10371 if test "$unet_cv_c_va_copy" = "yes" ; then
10373 cat >>confdefs.h <<\_ACEOF
10374 @%:@define HAVE_VA_COPY 1
10379 { echo "$as_me:$LINENO: checking for __va_copy" >&5
10380 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
10381 if test "${unet_cv_c___va_copy+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 #include <stdarg.h>
10394 va_list ap1, ap2; __va_copy(ap1, ap2);
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (ac_try="$ac_link"
10401 case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_link") 2>conftest.er1
10408 grep -v '^ *+' conftest.er1 >conftest.err
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && {
10413 test -z "$ac_c_werror_flag" ||
10414 test ! -s conftest.err
10415 } && test -s conftest$ac_exeext &&
10416 $as_test_x conftest$ac_exeext; then
10417 unet_cv_c___va_copy="yes"
10419 echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10422 unet_cv_c___va_copy="no"
10426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10427 conftest$ac_exeext conftest.$ac_ext
10429 { echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10430 echo "${ECHO_T}$unet_cv_c___va_copy" >&6; }
10431 if test "$unet_cv_c___va_copy" = "yes" ; then
10433 cat >>confdefs.h <<\_ACEOF
10434 @%:@define HAVE___VA_COPY 1
10439 { echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10440 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6; }
10442 # Check whether --with-symlink was given.
10443 if test "${with_symlink+set}" = set; then
10444 withval=$with_symlink; unet_cv_with_symlink=$with_symlink
10446 if test "${unet_cv_with_symlink+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 unet_cv_with_symlink="ircd"
10455 if test x"$unet_cv_with_symlink" = xyes; then
10456 unet_cv_with_symlink="ircd"
10459 { echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10460 echo "${ECHO_T}$unet_cv_with_symlink" >&6; }
10462 if test x"$unet_cv_with_symlink" = xno; then
10463 INSTALL_RULE=install-no-symlink
10466 INSTALL_RULE=install-with-symlink
10467 SYMLINK=$unet_cv_with_symlink
10472 { echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10473 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6; }
10475 # Check whether --with-mode was given.
10476 if test "${with_mode+set}" = set; then
10477 withval=$with_mode; unet_cv_with_mode=$with_mode
10479 if test "${unet_cv_with_mode+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 unet_cv_with_mode=711
10488 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10489 unet_cv_with_mode=711
10492 { echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10493 echo "${ECHO_T}$unet_cv_with_mode" >&6; }
10495 IRCDMODE=$unet_cv_with_mode
10498 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10499 { echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10500 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6; }
10502 # Check whether --with-owner was given.
10503 if test "${with_owner+set}" = set; then
10504 withval=$with_owner; unet_cv_with_owner=$with_owner
10506 if test "${unet_cv_with_owner+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 unet_cv_with_owner=$unet_uid
10515 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10516 unet_cv_with_owner=$unet_uid
10519 { echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10520 echo "${ECHO_T}$unet_cv_with_owner" >&6; }
10522 IRCDOWN=$unet_cv_with_owner
10525 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10526 { echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10527 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6; }
10529 # Check whether --with-group was given.
10530 if test "${with_group+set}" = set; then
10531 withval=$with_group; unet_cv_with_group=$with_group
10533 if test "${unet_cv_with_group+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 unet_cv_with_group=$unet_gid
10542 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10543 unet_cv_with_group=$unet_gid
10546 { echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10547 echo "${ECHO_T}$unet_cv_with_group" >&6; }
10549 IRCDGRP=$unet_cv_with_group
10553 if test -f /etc/resolv.conf; then
10554 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10555 if test x"$unet_domain" = x; then
10556 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10559 { echo "$as_me:$LINENO: checking for site domain name" >&5
10560 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6; }
10562 # Check whether --with-domain was given.
10563 if test "${with_domain+set}" = set; then
10564 withval=$with_domain; unet_cv_with_domain=$with_domain
10566 if test "${unet_cv_with_domain+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 unet_cv_with_domain=$unet_domain
10575 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10576 unet_cv_with_domain=$unet_domain
10578 if test x"$unet_cv_with_domain" = xno; then
10579 { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10580 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10581 { (exit 1); exit 1; }; }
10584 { echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10585 echo "${ECHO_T}$unet_cv_with_domain" >&6; }
10588 cat >>confdefs.h <<_ACEOF
10589 @%:@define DOMAINNAME "*$unet_cv_with_domain"
10593 { echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10594 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6; }
10596 # Check whether --with-chroot was given.
10597 if test "${with_chroot+set}" = set; then
10598 withval=$with_chroot; unet_cv_with_chroot=$with_chroot
10600 if test "${unet_cv_with_chroot+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 unet_cv_with_chroot=no
10609 if test x"$unet_cv_with_chroot" = xyes; then
10610 { { echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
10611 echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
10612 { (exit 1); exit 1; }; }
10615 # Ensure there are no trailing /'s to mess us up
10616 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10618 { echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10619 echo "${ECHO_T}$unet_cv_with_chroot" >&6; }
10621 # Deal with the annoying value "NONE" here
10622 unet_save_prefix=$prefix
10623 if test x"$prefix" = xNONE; then
10624 prefix=$ac_default_prefix
10629 unet_save_exec_prefix=$exec_prefix
10630 if test x"$exec_prefix" = xNONE; then
10631 exec_prefix=$prefix
10633 exec_prefix=$exec_prefix
10636 # Obtain the actual interesting directories
10637 unet_bindir=`eval echo "$bindir"`
10638 unet_libdir=`eval echo "$libdir"`
10640 # Restore the original settings of $prefix and $exec_prefix
10641 prefix=$unet_save_prefix
10642 exec_prefix=$unet_save_exec_prefix
10644 { echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10645 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6; }
10646 if test x"$unet_cv_with_symlink" = xno; then
10647 unet_spath="$unet_bindir/ircd"
10649 unet_spath="$unet_bindir/$unet_cv_with_symlink"
10651 { echo "$as_me:$LINENO: result: $unet_spath" >&5
10652 echo "${ECHO_T}$unet_spath" >&6; }
10654 if test x"$unet_cv_with_chroot" != xno; then
10655 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10656 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10658 { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10659 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10664 cat >>confdefs.h <<_ACEOF
10665 @%:@define SPATH "$unet_spath"
10669 { echo "$as_me:$LINENO: checking what the data directory should be" >&5
10670 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6; }
10672 # Check whether --with-dpath was given.
10673 if test "${with_dpath+set}" = set; then
10674 withval=$with_dpath; unet_cv_with_dpath=$with_dpath
10676 if test "${unet_cv_with_dpath+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 unet_cv_with_dpath=$unet_libdir
10685 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10686 unet_cv_with_dpath=$unet_libdir
10689 # Ensure there are no trailing /'s to mess us up
10690 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10692 { echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10693 echo "${ECHO_T}$unet_cv_with_dpath" >&6; }
10695 if test x"$unet_cv_with_chroot" != xno; then
10696 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10697 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10699 { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10700 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10701 { (exit 1); exit 1; }; }
10704 unet_dpath=$unet_cv_with_dpath
10708 cat >>confdefs.h <<_ACEOF
10709 @%:@define DPATH "$unet_dpath"
10713 DPATH=$unet_cv_with_dpath
10716 { echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10717 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6; }
10719 # Check whether --with-cpath was given.
10720 if test "${with_cpath+set}" = set; then
10721 withval=$with_cpath; unet_cv_with_cpath=$with_cpath
10723 if test "${unet_cv_with_cpath+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 unet_cv_with_cpath="ircd.conf"
10732 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10733 unet_cv_with_cpath="ircd.conf"
10736 { echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10737 echo "${ECHO_T}$unet_cv_with_cpath" >&6; }
10739 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10740 # Absolute path; check against chroot stuff
10741 if test x"$unet_cv_with_chroot" != xno; then
10742 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10743 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10745 { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10746 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10747 { (exit 1); exit 1; }; }
10750 unet_cpath=$unet_cv_with_cpath
10753 unet_cpath=$unet_cv_with_cpath
10757 cat >>confdefs.h <<_ACEOF
10758 @%:@define CPATH "$unet_cpath"
10762 { echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10763 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6; }
10765 # Check whether --with-lpath was given.
10766 if test "${with_lpath+set}" = set; then
10767 withval=$with_lpath; unet_cv_with_lpath=$with_lpath
10769 if test "${unet_cv_with_lpath+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 unet_cv_with_lpath="ircd.log"
10778 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10779 unet_cv_with_lpath="ircd.log"
10782 { echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10783 echo "${ECHO_T}$unet_cv_with_lpath" >&6; }
10785 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10786 # Absolute path; check against chroot stuff
10787 if test x"$unet_cv_with_chroot" != xno; then
10788 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10789 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10791 { 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
10792 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;}
10793 unet_cv_with_lpath="ircd.log"
10794 unet_lpath="ircd.log"
10797 unet_lpath=$unet_cv_with_lpath
10800 unet_lpath=$unet_cv_with_lpath
10804 cat >>confdefs.h <<_ACEOF
10805 @%:@define LPATH "$unet_lpath"
10809 unet_maxcon=`ulimit -Hn`
10810 if test x"$unet_maxcon" = xunlimited; then
10811 unet_maxcon=`ulimit -Sn`
10813 unet_maxcon=`expr $unet_maxcon - 4`
10814 { echo "$as_me:$LINENO: checking max connections" >&5
10815 echo $ECHO_N "checking max connections... $ECHO_C" >&6; }
10817 # Check whether --with-maxcon was given.
10818 if test "${with_maxcon+set}" = set; then
10819 withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
10821 if test "${unet_cv_with_maxcon+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 unet_cv_with_maxcon=$unet_maxcon
10830 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10831 if test "$unet_maxcon" -lt 32; then
10832 { { echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
10833 echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
10834 { (exit 1); exit 1; }; }
10836 unet_cv_with_maxcon=$unet_maxcon
10837 elif test "$unet_cv_with_maxcon" -lt 32; then
10838 { { echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
10839 echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
10840 { (exit 1); exit 1; }; }
10843 { echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10844 echo "${ECHO_T}$unet_cv_with_maxcon" >&6; }
10847 cat >>confdefs.h <<_ACEOF
10848 @%:@define MAXCONNECTIONS $unet_cv_with_maxcon
10852 unet_cv_enable_compat="yes"
10853 { echo "$as_me:$LINENO: checking whether to enable OGN-compat mode" >&5
10854 echo $ECHO_N "checking whether to enable OGN-compat mode... $ECHO_C" >&6; }
10855 # Check whether --enable-compat was given.
10856 if test "${enable_compat+set}" = set; then
10857 enableval=$enable_compat; unet_cv_enable_compat=$enable_compat
10860 { echo "$as_me:$LINENO: result: $unet_cv_enable_compat" >&5
10861 echo "${ECHO_T}$unet_cv_enable_compat" >&6; }
10863 if test $unet_cv_enable_compat = "no" ; then
10865 unet_cv_enable_compat="no"
10868 cat >>confdefs.h <<\_ACEOF
10869 @%:@define OLD_OGN_IRCU_COMPAT 1
10874 unet_cv_enable_unstable="no"
10875 { echo "$as_me:$LINENO: checking whether to enable unstable features" >&5
10876 echo $ECHO_N "checking whether to enable unstable features... $ECHO_C" >&6; }
10877 # Check whether --enable-unstable was given.
10878 if test "${enable_unstable+set}" = set; then
10879 enableval=$enable_unstable; unet_cv_enable_unstable=$enable_unstable
10882 { echo "$as_me:$LINENO: result: $unet_cv_enable_unstable" >&5
10883 echo "${ECHO_T}$unet_cv_enable_unstable" >&6; }
10885 if test $unet_cv_enable_unstable = "yes" ; then
10887 cat >>confdefs.h <<\_ACEOF
10888 @%:@define WITH_UNSTABLE_FEAT 1
10894 unet_cv_enable_gnutls="no"
10895 unet_cv_enable_openssl="yes"
10897 { echo "$as_me:$LINENO: checking for GnuTLS" >&5
10898 echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; }
10899 # Check whether --enable-gnutls was given.
10900 if test "${enable_gnutls+set}" = set; then
10901 enableval=$enable_gnutls; unet_cv_enable_gnutls=$enable_gnutls
10904 { echo "$as_me:$LINENO: result: $unet_cv_enable_gnutls" >&5
10905 echo "${ECHO_T}$unet_cv_enable_gnutls" >&6; }
10907 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
10908 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
10909 # Check whether --enable-openssl was given.
10910 if test "${enable_openssl+set}" = set; then
10911 enableval=$enable_openssl; unet_cv_enable_openssl=$enable_openssl
10914 { echo "$as_me:$LINENO: result: $unet_cv_enable_openssl" >&5
10915 echo "${ECHO_T}$unet_cv_enable_openssl" >&6; }
10917 if test x"$unet_cv_enable_gnutls" = xyes; then
10918 unet_cv_enable_gnutls="no";
10919 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10920 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
10921 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-lgnutls $LIBS"
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10939 char gnutls_init ();
10943 return gnutls_init ();
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_link") 2>conftest.er1
10957 grep -v '^ *+' conftest.er1 >conftest.err
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } && {
10962 test -z "$ac_c_werror_flag" ||
10963 test ! -s conftest.err
10964 } && test -s conftest$ac_exeext &&
10965 $as_test_x conftest$ac_exeext; then
10966 ac_cv_lib_gnutls_gnutls_init=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_cv_lib_gnutls_gnutls_init=no
10974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10979 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
10980 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10983 for ac_header in gnutls/gnutls.h
10985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 ac_res=`eval echo '${'$as_ac_Header'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10996 # Is the header compilable?
10997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10999 cat >conftest.$ac_ext <<_ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11005 $ac_includes_default
11006 @%:@include <$ac_header>
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_compile") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest.$ac_objext; then
11025 ac_header_compiler=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_header_compiler=no
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035 echo "${ECHO_T}$ac_header_compiler" >&6; }
11037 # Is the header present?
11038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 @%:@include <$ac_header>
11048 if { (ac_try="$ac_cpp conftest.$ac_ext"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null && {
11061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11062 test ! -s conftest.err
11064 ac_header_preproc=yes
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_header_preproc=no
11072 rm -f conftest.err conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6; }
11076 # So? What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083 ac_header_preproc=yes
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 eval "$as_ac_Header=\$ac_header_preproc"
11108 ac_res=`eval echo '${'$as_ac_Header'}'`
11109 { echo "$as_me:$LINENO: result: $ac_res" >&5
11110 echo "${ECHO_T}$ac_res" >&6; }
11113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11118 unet_cv_enable_gnutls="yes";
11129 if test x"$unet_cv_enable_openssl" = xyes; then
11130 unet_cv_enable_openssl="no";
11131 { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
11132 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
11133 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 ac_check_lib_save_LIBS=$LIBS
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11145 /* Override any GCC internal prototype to avoid an error.
11146 Use char because int might match the return type of a GCC
11147 builtin and then its argument prototype would still apply. */
11155 return SSL_read ();
11160 rm -f conftest.$ac_objext conftest$ac_exeext
11161 if { (ac_try="$ac_link"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_link") 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } && {
11174 test -z "$ac_c_werror_flag" ||
11175 test ! -s conftest.err
11176 } && test -s conftest$ac_exeext &&
11177 $as_test_x conftest$ac_exeext; then
11178 ac_cv_lib_ssl_SSL_read=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_cv_lib_ssl_SSL_read=no
11186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11187 conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11190 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
11191 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
11192 if test $ac_cv_lib_ssl_SSL_read = yes; then
11194 { echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11195 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6; }
11196 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-lcrypto $LIBS"
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11218 return X509_new ();
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 ac_cv_lib_crypto_X509_new=yes
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 ac_cv_lib_crypto_X509_new=no
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11253 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11254 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6; }
11255 if test $ac_cv_lib_crypto_X509_new = yes; then
11259 for ac_header in openssl/ssl.h openssl/err.h
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11272 # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 @%:@include <$ac_header>
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_compile") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest.$ac_objext; then
11301 ac_header_compiler=yes
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_header_compiler=no
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 @%:@include <$ac_header>
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } >/dev/null && {
11337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11340 ac_header_preproc=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_preproc=no
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11352 # So? What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 eval "$as_ac_Header=\$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11394 unet_cv_enable_openssl="yes";
11408 if test x"$unet_cv_enable_gnutls" = xyes; then
11409 LIBS="$LIBS -lgnutls"
11411 cat >>confdefs.h <<\_ACEOF
11412 @%:@define HAVE_GNUTLS 1
11417 if test x"$unet_cv_enable_openssl" = xyes ; then
11418 LIBS="$LIBS -lssl -lcrypto"
11420 cat >>confdefs.h <<\_ACEOF
11421 @%:@define HAVE_OPENSSL 1
11426 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
11428 ac_config_commands="$ac_config_commands default"
11430 cat >confcache <<\_ACEOF
11431 # This file is a shell script that caches the results of configure
11432 # tests run on this system so they can be shared between configure
11433 # scripts and configure runs, see configure's option --config-cache.
11434 # It is not useful on other systems. If it contains results you don't
11435 # want to keep, you may remove or edit it.
11437 # config.status only pays attention to the cache file if you give it
11438 # the --recheck option to rerun configure.
11440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11442 # following values.
11446 # The following way of writing the cache mishandles newlines in values,
11447 # but we know of no workaround that is simple, portable, and efficient.
11448 # So, we kill variables containing newlines.
11449 # Ultrix sh set writes to stderr and can't be redirected directly,
11450 # and sets the high bit in the cache file unless we assign to the vars.
11452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11453 eval ac_val=\$$ac_var
11457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11461 _ | IFS | as_nl) ;; #(
11462 *) $as_unset $ac_var ;;
11468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11469 *${as_nl}ac_space=\ *)
11470 # `set' does not quote correctly, so add quotes (double-quote
11471 # substitution turns \\\\ into \\, and sed turns \\ into \).
11474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11477 # `set' quotes correctly as required by POSIX, so do not add quotes.
11478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11492 if test -w "$cache_file"; then
11493 test "x$cache_file" != "x/dev/null" &&
11494 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11495 echo "$as_me: updating cache $cache_file" >&6;}
11496 cat confcache >$cache_file
11498 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11499 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11505 # Let make expand exec_prefix.
11506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11508 DEFS=-DHAVE_CONFIG_H
11512 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
11513 # 1. Remove the extension, and $U if already installed.
11514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11515 ac_i=`echo "$ac_i" | sed "$ac_script"`
11516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11517 # will be set to the directory where LIBOBJS objects are built.
11518 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11519 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11521 LIB@&t@OBJS=$ac_libobjs
11523 LTLIBOBJS=$ac_ltlibobjs
11527 : ${CONFIG_STATUS=./config.status}
11528 ac_clean_files_save=$ac_clean_files
11529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11530 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11531 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11532 cat >$CONFIG_STATUS <<_ACEOF
11534 # Generated by $as_me.
11535 # Run this file to recreate the current configuration.
11536 # Compiler output produced by configure, useful for debugging
11537 # configure, is in config.log if it exists.
11540 ac_cs_recheck=false
11542 SHELL=\${CONFIG_SHELL-$SHELL}
11545 cat >>$CONFIG_STATUS <<\_ACEOF
11546 ## --------------------- ##
11547 ## M4sh Initialization. ##
11548 ## --------------------- ##
11550 # Be more Bourne compatible
11551 DUALCASE=1; export DUALCASE # for MKS sh
11552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11555 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11556 # is contrary to our usage. Disable this feature.
11557 alias -g '${1+"$@"}'='"$@"'
11558 setopt NO_GLOB_SUBST
11560 case `(set -o) 2>/dev/null` in
11561 *posix*) set -o posix ;;
11570 # Avoid depending upon Character Ranges.
11571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11574 as_cr_digits='0123456789'
11575 as_cr_alnum=$as_cr_Letters$as_cr_digits
11577 # The user is always right.
11578 if test "${PATH_SEPARATOR+set}" != set; then
11579 echo "#! /bin/sh" >conf$$.sh
11580 echo "exit 0" >>conf$$.sh
11582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11590 # Support unset when possible.
11591 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11599 # We need space, tab and new line, in precisely that order. Quoting is
11600 # there to prevent editors from complaining about space-tab.
11601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11602 # splitting by setting IFS to empty value.)
11607 # Find who we are. Look in the path if we contain no directory separator.
11609 *[\\/]* ) as_myself=$0 ;;
11610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11614 test -z "$as_dir" && as_dir=.
11615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11621 # We did not find ourselves, most probably we were run as `sh COMMAND'
11622 # in which case we are not to be found in the path.
11623 if test "x$as_myself" = x; then
11626 if test ! -f "$as_myself"; then
11627 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11628 { (exit 1); exit 1; }
11631 # Work around bugs in pre-3.0 UWIN ksh.
11632 for as_var in ENV MAIL MAILPATH
11633 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11641 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11642 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11643 LC_TELEPHONE LC_TIME
11645 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11646 eval $as_var=C; export $as_var
11648 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11652 # Required to use basename.
11653 if expr a : '\(a\)' >/dev/null 2>&1 &&
11654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11660 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11661 as_basename=basename
11667 # Name of the executable.
11668 as_me=`$as_basename -- "$0" ||
11669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11670 X"$0" : 'X\(//\)$' \| \
11671 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11673 sed '/^.*\/\([^/][^/]*\)\/*$/{
11692 as_lineno_1=$LINENO
11693 as_lineno_2=$LINENO
11694 test "x$as_lineno_1" != "x$as_lineno_2" &&
11695 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11697 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11698 # uniformly replaced by the line number. The first 'sed' inserts a
11699 # line-number line after each line using $LINENO; the second 'sed'
11700 # does the real work. The second script uses 'N' to pair each
11701 # line-number line with the line containing $LINENO, and appends
11702 # trailing '-' during substitution so that $LINENO is not a special
11703 # case at line end.
11704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11705 # scripts with optimization help from Paolo Bonzini. Blame Lee
11706 # E. McMahon (1931-1989) for sed's syntax. :-)
11718 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11721 ' >$as_me.lineno &&
11722 chmod +x "$as_me.lineno" ||
11723 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11724 { (exit 1); exit 1; }; }
11726 # Don't try to exec as it changes $[0], causing all sort of problems
11727 # (the dirname of $[0] is not the place where we might find the
11728 # original and so on. Autoconf is especially sensitive to this).
11729 . "./$as_me.lineno"
11730 # Exit status is that of the last command.
11735 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11741 ECHO_C= ECHO_N= ECHO_T=
11742 case `echo -n x` in
11744 case `echo 'x\c'` in
11745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11752 if expr a : '\(a\)' >/dev/null 2>&1 &&
11753 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11759 rm -f conf$$ conf$$.exe conf$$.file
11760 if test -d conf$$.dir; then
11761 rm -f conf$$.dir/conf$$.file
11767 if ln -s conf$$.file conf$$ 2>/dev/null; then
11769 # ... but there are two gotchas:
11770 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11771 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11772 # In both cases, we have to default to `cp -p'.
11773 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11775 elif ln conf$$.file conf$$ 2>/dev/null; then
11780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11781 rmdir conf$$.dir 2>/dev/null
11783 if mkdir -p . 2>/dev/null; then
11786 test -d ./-p && rmdir ./-p
11790 if test -x / >/dev/null 2>&1; then
11791 as_test_x='test -x'
11793 if ls -dL / >/dev/null 2>&1; then
11800 if test -d "$1"; then
11806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11807 ???[sx]*):;;*)false;;esac;fi
11811 as_executable_p=$as_test_x
11813 # Sed expression to map a string onto a valid CPP name.
11814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11816 # Sed expression to map a string onto a valid variable name.
11817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11822 # Save the log message, to keep $[0] and so on meaningful, and to
11823 # report actual input values of CONFIG_FILES etc. instead of their
11824 # values after options handling.
11826 This file was extended by $as_me, which was
11827 generated by GNU Autoconf 2.61. Invocation command line was
11829 CONFIG_FILES = $CONFIG_FILES
11830 CONFIG_HEADERS = $CONFIG_HEADERS
11831 CONFIG_LINKS = $CONFIG_LINKS
11832 CONFIG_COMMANDS = $CONFIG_COMMANDS
11835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11840 cat >>$CONFIG_STATUS <<_ACEOF
11841 # Files that config.status was made for.
11842 config_files="$ac_config_files"
11843 config_headers="$ac_config_headers"
11844 config_commands="$ac_config_commands"
11848 cat >>$CONFIG_STATUS <<\_ACEOF
11850 \`$as_me' instantiates files from templates according to the
11851 current configuration.
11853 Usage: $0 [OPTIONS] [FILE]...
11855 -h, --help print this help, then exit
11856 -V, --version print version number and configuration settings, then exit
11857 -q, --quiet do not print progress messages
11858 -d, --debug don't remove temporary files
11859 --recheck update $as_me by reconfiguring in the same conditions
11860 --file=FILE[:TEMPLATE]
11861 instantiate the configuration file FILE
11862 --header=FILE[:TEMPLATE]
11863 instantiate the configuration header FILE
11865 Configuration files:
11868 Configuration headers:
11871 Configuration commands:
11874 Report bugs to <bug-autoconf@gnu.org>."
11877 cat >>$CONFIG_STATUS <<_ACEOF
11880 configured by $0, generated by GNU Autoconf 2.61,
11881 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11883 Copyright (C) 2006 Free Software Foundation, Inc.
11884 This config.status script is free software; the Free Software Foundation
11885 gives unlimited permission to copy, distribute and modify it."
11892 cat >>$CONFIG_STATUS <<\_ACEOF
11893 # If no file are specified by the user, then we need to provide default
11894 # value. By we need to know if files were specified by the user.
11900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11901 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11912 # Handling of the options.
11913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11916 echo "$ac_cs_version"; exit ;;
11917 --debug | --debu | --deb | --de | --d | -d )
11919 --file | --fil | --fi | --f )
11921 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11922 ac_need_defaults=false;;
11923 --header | --heade | --head | --hea )
11925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11926 ac_need_defaults=false;;
11928 # Conflict between --help and --header
11929 { echo "$as_me: error: ambiguous option: $1
11930 Try \`$0 --help' for more information." >&2
11931 { (exit 1); exit 1; }; };;
11932 --help | --hel | -h )
11933 echo "$ac_cs_usage"; exit ;;
11934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11938 # This is an error.
11939 -*) { echo "$as_me: error: unrecognized option: $1
11940 Try \`$0 --help' for more information." >&2
11941 { (exit 1); exit 1; }; } ;;
11943 *) ac_config_targets="$ac_config_targets $1"
11944 ac_need_defaults=false ;;
11950 ac_configure_extra_args=
11952 if $ac_cs_silent; then
11954 ac_configure_extra_args="$ac_configure_extra_args --silent"
11958 cat >>$CONFIG_STATUS <<_ACEOF
11959 if \$ac_cs_recheck; then
11960 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11961 CONFIG_SHELL=$SHELL
11962 export CONFIG_SHELL
11963 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11967 cat >>$CONFIG_STATUS <<\_ACEOF
11971 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
11972 @%:@@%:@ Running $as_me. @%:@@%:@
11978 cat >>$CONFIG_STATUS <<_ACEOF
11981 cat >>$CONFIG_STATUS <<\_ACEOF
11983 # Handling of arguments.
11984 for ac_config_target in $ac_config_targets
11986 case $ac_config_target in
11987 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11988 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11989 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11990 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11991 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11995 { (exit 1); exit 1; }; };;
12000 # If the user did not use the arguments to specify the items to instantiate,
12001 # then the envvar interface is used. Set only those that are not.
12002 # We use the long form for the default assignment because of an extremely
12003 # bizarre bug on SunOS 4.1.3.
12004 if $ac_need_defaults; then
12005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12010 # Have a temporary directory for convenience. Make it in the build tree
12011 # simply because there is no reason against having it here, and in addition,
12012 # creating and moving files from /tmp can sometimes cause problems.
12013 # Hook for its removal unless debugging.
12014 # Note that there is a small window in which the directory will not be cleaned:
12015 # after its creation but before its name has been assigned to `$tmp'.
12019 trap 'exit_status=$?
12020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12022 trap '{ (exit 1); exit 1; }' 1 2 13 15
12024 # Create a (secure) tmp directory for tmp files.
12027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12028 test -n "$tmp" && test -d "$tmp"
12031 tmp=./conf$$-$RANDOM
12032 (umask 077 && mkdir "$tmp")
12035 echo "$me: cannot create a temporary directory in ." >&2
12036 { (exit 1); exit 1; }
12040 # Set up the sed scripts for CONFIG_FILES section.
12043 # No need to generate the scripts if there are no CONFIG_FILES.
12044 # This happens for instance when ./config.status config.h
12045 if test -n "$CONFIG_FILES"; then
12052 for ac_last_try in false false false false false :; do
12053 cat >conf$$subs.sed <<_ACEOF
12054 SHELL!$SHELL$ac_delim
12055 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12056 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12057 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12058 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12059 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12060 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12061 exec_prefix!$exec_prefix$ac_delim
12062 prefix!$prefix$ac_delim
12063 program_transform_name!$program_transform_name$ac_delim
12064 bindir!$bindir$ac_delim
12065 sbindir!$sbindir$ac_delim
12066 libexecdir!$libexecdir$ac_delim
12067 datarootdir!$datarootdir$ac_delim
12068 datadir!$datadir$ac_delim
12069 sysconfdir!$sysconfdir$ac_delim
12070 sharedstatedir!$sharedstatedir$ac_delim
12071 localstatedir!$localstatedir$ac_delim
12072 includedir!$includedir$ac_delim
12073 oldincludedir!$oldincludedir$ac_delim
12074 docdir!$docdir$ac_delim
12075 infodir!$infodir$ac_delim
12076 htmldir!$htmldir$ac_delim
12077 dvidir!$dvidir$ac_delim
12078 pdfdir!$pdfdir$ac_delim
12079 psdir!$psdir$ac_delim
12080 libdir!$libdir$ac_delim
12081 localedir!$localedir$ac_delim
12082 mandir!$mandir$ac_delim
12083 DEFS!$DEFS$ac_delim
12084 ECHO_C!$ECHO_C$ac_delim
12085 ECHO_N!$ECHO_N$ac_delim
12086 ECHO_T!$ECHO_T$ac_delim
12087 LIBS!$LIBS$ac_delim
12088 build_alias!$build_alias$ac_delim
12089 host_alias!$host_alias$ac_delim
12090 target_alias!$target_alias$ac_delim
12091 build!$build$ac_delim
12092 build_cpu!$build_cpu$ac_delim
12093 build_vendor!$build_vendor$ac_delim
12094 build_os!$build_os$ac_delim
12095 host!$host$ac_delim
12096 host_cpu!$host_cpu$ac_delim
12097 host_vendor!$host_vendor$ac_delim
12098 host_os!$host_os$ac_delim
12100 CFLAGS!$CFLAGS$ac_delim
12101 LDFLAGS!$LDFLAGS$ac_delim
12102 CPPFLAGS!$CPPFLAGS$ac_delim
12103 ac_ct_CC!$ac_ct_CC$ac_delim
12104 EXEEXT!$EXEEXT$ac_delim
12105 OBJEXT!$OBJEXT$ac_delim
12107 GREP!$GREP$ac_delim
12108 EGREP!$EGREP$ac_delim
12110 SET_MAKE!$SET_MAKE$ac_delim
12111 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12112 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12113 INSTALL_DATA!$INSTALL_DATA$ac_delim
12114 LN_S!$LN_S$ac_delim
12115 RMPROG!$RMPROG$ac_delim
12116 SHPROG!$SHPROG$ac_delim
12118 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
12119 LEXLIB!$LEXLIB$ac_delim
12120 YACC!$YACC$ac_delim
12121 YFLAGS!$YFLAGS$ac_delim
12122 ENGINE_C!$ENGINE_C$ac_delim
12123 INSTALL_RULE!$INSTALL_RULE$ac_delim
12124 SYMLINK!$SYMLINK$ac_delim
12125 IRCDMODE!$IRCDMODE$ac_delim
12126 IRCDOWN!$IRCDOWN$ac_delim
12127 IRCDGRP!$IRCDGRP$ac_delim
12128 DPATH!$DPATH$ac_delim
12129 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
12130 LTLIBOBJS!$LTLIBOBJS$ac_delim
12133 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
12135 elif $ac_last_try; then
12136 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12138 { (exit 1); exit 1; }; }
12140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12145 if test -n "$ac_eof"; then
12146 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12147 ac_eof=`expr $ac_eof + 1`
12150 cat >>$CONFIG_STATUS <<_ACEOF
12151 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12156 s/^/s,@/; s/!/@,|#_!!_#|/
12159 s/'"$ac_delim"'$/,g/; t
12161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12162 ' >>$CONFIG_STATUS <conf$$subs.sed
12163 rm -f conf$$subs.sed
12164 cat >>$CONFIG_STATUS <<_ACEOF
12171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12173 # trailing colons and then remove the whole line if VPATH becomes empty
12174 # (actually we leave an empty line to preserve line numbers).
12175 if test "x$srcdir" = x.; then
12176 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12177 s/:*\$(srcdir):*/:/
12178 s/:*\${srcdir}:*/:/
12180 s/^\([^=]*=[ ]*\):*/\1/
12186 cat >>$CONFIG_STATUS <<\_ACEOF
12187 fi # test -n "$CONFIG_FILES"
12190 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12193 :[FHLC]) ac_mode=$ac_tag; continue;;
12195 case $ac_mode$ac_tag in
12197 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12199 { (exit 1); exit 1; }; };;
12200 :[FH]-) ac_tag=-:-;;
12201 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12218 -) ac_f="$tmp/stdin";;
12219 *) # Look for the file first in the build tree, then in the source tree
12220 # (if the path is not absolute). The absolute path cannot be DOS-style,
12221 # because $ac_f cannot contain `:'.
12225 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12227 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12229 { (exit 1); exit 1; }; };;
12231 ac_file_inputs="$ac_file_inputs $ac_f"
12234 # Let's still pretend it is `configure' which instantiates (i.e., don't
12235 # use $as_me), people would be surprised to read:
12236 # /* config.h. Generated by config.status. */
12237 configure_input="Generated from "`IFS=:
12238 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12239 if test x"$ac_file" != x-; then
12240 configure_input="$ac_file. $configure_input"
12241 { echo "$as_me:$LINENO: creating $ac_file" >&5
12242 echo "$as_me: creating $ac_file" >&6;}
12246 *:-:* | *:-) cat >"$tmp/stdin";;
12251 ac_dir=`$as_dirname -- "$ac_file" ||
12252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253 X"$ac_file" : 'X\(//\)[^/]' \| \
12254 X"$ac_file" : 'X\(//\)$' \| \
12255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12261 /^X\(\/\/\)[^/].*/{
12276 -*) as_dir=./$as_dir;;
12278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12282 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12283 *) as_qdir=$as_dir;;
12285 as_dirs="'$as_qdir' $as_dirs"
12286 as_dir=`$as_dirname -- "$as_dir" ||
12287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12288 X"$as_dir" : 'X\(//\)[^/]' \| \
12289 X"$as_dir" : 'X\(//\)$' \| \
12290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12296 /^X\(\/\/\)[^/].*/{
12309 test -d "$as_dir" && break
12311 test -z "$as_dirs" || eval "mkdir $as_dirs"
12312 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12314 { (exit 1); exit 1; }; }; }
12318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12321 # A ".." for each directory in $ac_dir_suffix.
12322 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12323 case $ac_top_builddir_sub in
12324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12328 ac_abs_top_builddir=$ac_pwd
12329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12330 # for backward compatibility:
12331 ac_top_builddir=$ac_top_build_prefix
12334 .) # We are building in place.
12336 ac_top_srcdir=$ac_top_builddir_sub
12337 ac_abs_top_srcdir=$ac_pwd ;;
12338 [\\/]* | ?:[\\/]* ) # Absolute name.
12339 ac_srcdir=$srcdir$ac_dir_suffix;
12340 ac_top_srcdir=$srcdir
12341 ac_abs_top_srcdir=$srcdir ;;
12342 *) # Relative name.
12343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12344 ac_top_srcdir=$ac_top_build_prefix$srcdir
12345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12362 cat >>$CONFIG_STATUS <<\_ACEOF
12363 # If the template does not know about datarootdir, expand it.
12364 # FIXME: This hack should be removed a few years after 2.60.
12365 ac_datarootdir_hack=; ac_datarootdir_seen=
12367 case `sed -n '/datarootdir/ {
12376 ' $ac_file_inputs` in
12377 *datarootdir*) ac_datarootdir_seen=yes;;
12378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12379 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12382 cat >>$CONFIG_STATUS <<_ACEOF
12383 ac_datarootdir_hack='
12384 s&@datadir@&$datadir&g
12385 s&@docdir@&$docdir&g
12386 s&@infodir@&$infodir&g
12387 s&@localedir@&$localedir&g
12388 s&@mandir@&$mandir&g
12389 s&\\\${datarootdir}&$datarootdir&g' ;;
12393 # Neutralize VPATH when `$srcdir' = `.'.
12394 # Shell code in configure.ac might set extrasub.
12395 # FIXME: do we really want to maintain this feature?
12396 cat >>$CONFIG_STATUS <<_ACEOF
12400 cat >>$CONFIG_STATUS <<\_ACEOF
12402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12403 s&@configure_input@&$configure_input&;t t
12404 s&@top_builddir@&$ac_top_builddir_sub&;t t
12405 s&@srcdir@&$ac_srcdir&;t t
12406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12407 s&@top_srcdir@&$ac_top_srcdir&;t t
12408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12409 s&@builddir@&$ac_builddir&;t t
12410 s&@abs_builddir@&$ac_abs_builddir&;t t
12411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12412 s&@INSTALL@&$ac_INSTALL&;t t
12413 $ac_datarootdir_hack
12414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12417 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12419 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12420 which seems to be undefined. Please make sure it is defined." >&5
12421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12422 which seems to be undefined. Please make sure it is defined." >&2;}
12426 -) cat "$tmp/out"; rm -f "$tmp/out";;
12427 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12436 # Transform confdefs.h into a sed script `conftest.defines', that
12437 # substitutes the proper values into config.h.in to produce config.h.
12438 rm -f conftest.defines conftest.tail
12439 # First, append a space to every undef/define line, to ease matching.
12440 echo 's/$/ /' >conftest.defines
12441 # Then, protect against being on the right side of a sed subst, or in
12442 # an unquoted here document, in config.status. If some macros were
12443 # called several times there might be several #defines for the same
12444 # symbol, which is useless. But do not sort them, since the last
12445 # AC_DEFINE must be honored.
12446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12449 # PARAMS is the parameter list in the macro definition--in most cases, it's
12450 # just an empty string.
12451 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12452 ac_dB='\\)[ (].*,\\1define\\2'
12460 s/^[ ]*#[ ]*define[ ][ ]*//
12465 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12466 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12467 ' >>conftest.defines
12469 # Remove the space that was appended to ease matching.
12470 # Then replace #undef with comments. This is necessary, for
12471 # example, in the case of _POSIX_SOURCE, which is predefined and required
12472 # on some systems where configure will not decide to define it.
12473 # (The regexp can be short, since the line contains either #define or #undef.)
12475 s,^[ #]*u.*,/* & */,' >>conftest.defines
12477 # Break up conftest.defines:
12478 ac_max_sed_lines=50
12480 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12481 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12482 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12484 ac_in='$ac_file_inputs'
12485 ac_out='"$tmp/out1"'
12486 ac_nxt='"$tmp/out2"'
12490 # Write a here document:
12491 cat >>$CONFIG_STATUS <<_ACEOF
12492 # First, check the format of the line:
12493 cat >"\$tmp/defines.sed" <<\\CEOF
12494 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12495 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12499 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12501 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12502 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12503 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12504 grep . conftest.tail >/dev/null || break
12505 rm -f conftest.defines
12506 mv conftest.tail conftest.defines
12508 rm -f conftest.defines conftest.tail
12510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12511 cat >>$CONFIG_STATUS <<\_ACEOF
12512 if test x"$ac_file" != x-; then
12513 echo "/* $configure_input */" >"$tmp/config.h"
12514 cat "$ac_result" >>"$tmp/config.h"
12515 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12516 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12517 echo "$as_me: $ac_file is unchanged" >&6;}
12520 mv "$tmp/config.h" $ac_file
12523 echo "/* $configure_input */"
12529 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12530 echo "$as_me: executing $ac_file commands" >&6;}
12535 case $ac_file$ac_mode in
12536 "default":C) echo timestamp > stamp-h ;;
12542 { (exit 0); exit 0; }
12544 chmod +x $CONFIG_STATUS
12545 ac_clean_files=$ac_clean_files_save
12548 # configure is writing to config.log, and then calls config.status.
12549 # config.status does its own redirection, appending to config.log.
12550 # Unfortunately, on DOS this fails, as config.log is still kept open
12551 # by configure, so config.status won't be able to write to it; its
12552 # output is simply discarded. So we exec the FD to /dev/null,
12553 # effectively closing config.log, so it can be properly (re)opened and
12554 # appended to by config.status. When coming back to configure, we
12555 # need to make the FD available again.
12556 if test "$no_create" != yes; then
12558 ac_config_status_args=
12559 test "$silent" = yes &&
12560 ac_config_status_args="$ac_config_status_args --quiet"
12562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12565 # would make configure fail if this is the last instruction.
12566 $ac_cs_success || { (exit 1); exit 1; }
12570 { echo "$as_me:$LINENO: result:
12571 ircu is now hopefully configured for your system.
12573 Host system: $host_os
12575 Asserts: $unet_cv_enable_asserts
12576 Warnings: $unet_cv_enable_warnings
12577 Debug: $unet_cv_enable_debug
12578 Profile: $unet_cv_enable_profile
12579 Owner/mode: $unet_cv_with_owner.$unet_cv_with_group ($unet_cv_with_mode)
12580 Chroot: $unet_cv_with_chroot
12581 OpenSSL: $unet_cv_enable_openssl
12582 GnuTLS: $unet_cv_enable_gnutls
12583 Compatibility mode: $unet_cv_enable_compat
12584 Unstable features: $unet_cv_enable_unstable
12586 Domain: $unet_cv_with_domain
12587 DPath: $unet_cv_with_dpath
12588 CPath: $unet_cv_with_cpath
12589 LPath: $unet_cv_with_lpath
12590 Maximum connections: $unet_cv_with_maxcon
12592 poll() engine: $unet_cv_enable_poll
12593 kqueue() engine: $unet_cv_enable_kqueue
12594 /dev/poll engine: $unet_cv_enable_devpoll
12595 epoll() engine: $unet_cv_enable_epoll
12598 ircu is now hopefully configured for your system.
12600 Host system: $host_os
12602 Asserts: $unet_cv_enable_asserts
12603 Warnings: $unet_cv_enable_warnings
12604 Debug: $unet_cv_enable_debug
12605 Profile: $unet_cv_enable_profile
12606 Owner/mode: $unet_cv_with_owner.$unet_cv_with_group ($unet_cv_with_mode)
12607 Chroot: $unet_cv_with_chroot
12608 OpenSSL: $unet_cv_enable_openssl
12609 GnuTLS: $unet_cv_enable_gnutls
12610 Compatibility mode: $unet_cv_enable_compat
12611 Unstable features: $unet_cv_enable_unstable
12613 Domain: $unet_cv_with_domain
12614 DPath: $unet_cv_with_dpath
12615 CPath: $unet_cv_with_cpath
12616 LPath: $unet_cv_with_lpath
12617 Maximum connections: $unet_cv_with_maxcon
12619 poll() engine: $unet_cv_enable_poll
12620 kqueue() engine: $unet_cv_enable_kqueue
12621 /dev/poll engine: $unet_cv_enable_devpoll
12622 epoll() engine: $unet_cv_enable_epoll