2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="ircd/ircd.c"
602 ac_default_prefix=$HOME
603 # Factoring default headers for most tests.
604 ac_includes_default="\
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
616 # ifdef HAVE_STDLIB_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
639 ac_subst_vars='LTLIBOBJS
706 program_transform_name
718 enable_option_checking
742 ac_precious_vars='build_alias
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
843 cache_file=config.cache ;;
845 -datadir | --datadir | --datadi | --datad)
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
857 -disable-* | --disable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
862 { (exit 1); exit 1; }; }
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
889 { (exit 1); exit 1; }; }
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
899 eval enable_$ac_useropt=\$ac_optarg ;;
901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903 | --exec | --exe | --ex)
904 ac_prev=exec_prefix ;;
905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907 | --exec=* | --exe=* | --ex=*)
908 exec_prefix=$ac_optarg ;;
910 -gas | --gas | --ga | --g)
911 # Obsolete; use --with-gas.
914 -help | --help | --hel | --he | -h)
916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917 ac_init_help=recursive ;;
918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919 ac_init_help=short ;;
921 -host | --host | --hos | --ho)
922 ac_prev=host_alias ;;
923 -host=* | --host=* | --hos=* | --ho=*)
924 host_alias=$ac_optarg ;;
926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 htmldir=$ac_optarg ;;
932 -includedir | --includedir | --includedi | --included | --include \
933 | --includ | --inclu | --incl | --inc)
934 ac_prev=includedir ;;
935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936 | --includ=* | --inclu=* | --incl=* | --inc=*)
937 includedir=$ac_optarg ;;
939 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942 infodir=$ac_optarg ;;
944 -libdir | --libdir | --libdi | --libd)
946 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950 | --libexe | --libex | --libe)
951 ac_prev=libexecdir ;;
952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953 | --libexe=* | --libex=* | --libe=*)
954 libexecdir=$ac_optarg ;;
956 -localedir | --localedir | --localedi | --localed | --locale)
958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959 localedir=$ac_optarg ;;
961 -localstatedir | --localstatedir | --localstatedi | --localstated \
962 | --localstate | --localstat | --localsta | --localst | --locals)
963 ac_prev=localstatedir ;;
964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966 localstatedir=$ac_optarg ;;
968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 # Obsolete; use --without-fp.
977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978 | --no-cr | --no-c | -n)
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987 | --oldin | --oldi | --old | --ol | --o)
988 ac_prev=oldincludedir ;;
989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992 oldincludedir=$ac_optarg ;;
994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000 | --program-pre | --program-pr | --program-p)
1001 ac_prev=program_prefix ;;
1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004 program_prefix=$ac_optarg ;;
1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007 | --program-suf | --program-su | --program-s)
1008 ac_prev=program_suffix ;;
1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011 program_suffix=$ac_optarg ;;
1013 -program-transform-name | --program-transform-name \
1014 | --program-transform-nam | --program-transform-na \
1015 | --program-transform-n | --program-transform- \
1016 | --program-transform | --program-transfor \
1017 | --program-transfo | --program-transf \
1018 | --program-trans | --program-tran \
1019 | --progr-tra | --program-tr | --program-t)
1020 ac_prev=program_transform_name ;;
1021 -program-transform-name=* | --program-transform-name=* \
1022 | --program-transform-nam=* | --program-transform-na=* \
1023 | --program-transform-n=* | --program-transform-=* \
1024 | --program-transform=* | --program-transfor=* \
1025 | --program-transfo=* | --program-transf=* \
1026 | --program-trans=* | --program-tran=* \
1027 | --progr-tra=* | --program-tr=* | --program-t=*)
1028 program_transform_name=$ac_optarg ;;
1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033 pdfdir=$ac_optarg ;;
1035 -psdir | --psdir | --psdi | --psd | --ps)
1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 sbindir=$ac_optarg ;;
1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052 | --sharedst | --shareds | --shared | --share | --shar \
1054 ac_prev=sharedstatedir ;;
1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 sharedstatedir=$ac_optarg ;;
1061 -site | --site | --sit)
1063 -site=* | --site=* | --sit=*)
1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069 srcdir=$ac_optarg ;;
1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072 | --syscon | --sysco | --sysc | --sys | --sy)
1073 ac_prev=sysconfdir ;;
1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076 sysconfdir=$ac_optarg ;;
1078 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 target_alias=$ac_optarg ;;
1083 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 -version | --version | --versio | --versi | --vers | -V)
1087 ac_init_version=: ;;
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1094 { (exit 1); exit 1; }; }
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=no ;;
1124 # Obsolete; use --with-x.
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1142 Try \`$0 --help' for more information." >&2
1143 { (exit 1); exit 1; }; }
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1150 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1151 { (exit 1); exit 1; }; }
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1169 { (exit 1); exit 1; }; }
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1175 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1176 { (exit 1); exit 1; }; } ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1194 # Be sure to have absolute directory names.
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$as_myself" : 'X\(//\)[^/]' \| \
1244 X"$as_myself" : 'X\(//\)$' \| \
1245 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274 { (exit 1); exit 1; }; }
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1279 { (exit 1); exit 1; }; }
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1305 \`configure' configures this package to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 if test -n "$ac_init_help"; then
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-poll Force poll to be used regardless of whether or not
1378 --enable-debug Turn on debugging mode
1379 --disable-asserts Disable assertion checking
1380 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
1381 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
1382 --enable-warnings Enable warnings (add -Wall to CFLAGS)
1383 --disable-inlines Disable inlining for a few critical functions
1384 --disable-devpoll Disable the /dev/poll-based engine
1385 --disable-kqueue Disable the kqueue-based engine
1386 --disable-epoll Disable the epoll-based engine
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-leak-detect Turn on the leak detector(requires patched boehm)
1392 --without-ipv6 disable IPv6 support (default is autodetect)
1393 --with-symlink=name Name to give the symlink; if name is "no," no
1394 symlink will be created.
1395 --with-mode=mode Permissions (in octal) to give the binary
1396 --with-owner=owner Specify owner of the installed binary
1397 --with-group=group Specify group owner of the installed binary
1398 --with-domain=domain Domain name to use in local statistics gathering
1399 --with-chroot=dir Specify that the server will be operated under
1400 a different root directory given by dir. See
1401 doc/readme.chroot for more information.
1402 --with-dpath=dir Directory for all server data files
1403 --with-cpath=file Set server configuration file
1404 --with-lpath=file Set the debugging log file
1405 --with-maxcon=maxcon Maximum number of connections server will accept
1407 Some influential environment variables:
1408 CC C compiler command
1409 CFLAGS C compiler flags
1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411 nonstandard directory <lib dir>
1412 LIBS libraries to pass to the linker, e.g. -l<library>
1413 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414 you have headers in a nonstandard directory <include dir>
1416 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1417 the first program found out of: `bison -y', `byacc', `yacc'.
1418 YFLAGS The list of arguments that will be passed by default to $YACC.
1419 This script will default YFLAGS to the empty string to avoid a
1420 default value of `-d' given by some make applications.
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1454 .) # We are building in place.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1488 generated by GNU Autoconf 2.63
1490 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1491 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1497 cat >config.log <<_ACEOF
1498 This file contains any messages produced by compilers while
1499 running configure, to aid debugging if configure makes a mistake.
1501 It was created by $as_me, which was
1502 generated by GNU Autoconf 2.63. Invocation command line was
1514 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1515 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1516 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1517 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1518 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1520 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1521 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1523 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1524 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1525 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1526 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1527 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1528 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1529 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 test -z "$as_dir" && as_dir=.
1538 $as_echo "PATH: $as_dir"
1554 # Keep a trace of the command line.
1555 # Strip out --no-create and --no-recursion so they do not pile up.
1556 # Strip out --silent because we don't want to record it for future runs.
1557 # Also quote any args containing shell meta-characters.
1558 # Make two passes to allow for proper duplicate-argument suppression.
1562 ac_must_keep_next=false
1568 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1570 | -silent | --silent | --silen | --sile | --sil)
1573 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1576 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1578 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1579 if test $ac_must_keep_next = true; then
1580 ac_must_keep_next=false # Got value, back to normal.
1583 *=* | --config-cache | -C | -disable-* | --disable-* \
1584 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1585 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1586 | -with-* | --with-* | -without-* | --without-* | --x)
1587 case "$ac_configure_args0 " in
1588 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1591 -* ) ac_must_keep_next=true ;;
1594 ac_configure_args="$ac_configure_args '$ac_arg'"
1599 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1600 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1602 # When interrupted or exit'd, cleanup temporary files, and complete
1603 # config.log. We remove comments because anyway the quotes in there
1604 # would cause problems or look ugly.
1605 # WARNING: Use '\'' to represent an apostrophe within the trap.
1606 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1607 trap 'exit_status=$?
1608 # Save into config.log some information that might help in debugging.
1613 ## ---------------- ##
1614 ## Cache variables. ##
1615 ## ---------------- ##
1618 # The following way of writing the cache mishandles newlines in values,
1620 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1621 eval ac_val=\$$ac_var
1625 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1629 _ | IFS | as_nl) ;; #(
1630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1631 *) $as_unset $ac_var ;;
1636 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1637 *${as_nl}ac_space=\ *)
1639 "s/'\''/'\''\\\\'\'''\''/g;
1640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1651 ## ----------------- ##
1652 ## Output variables. ##
1653 ## ----------------- ##
1656 for ac_var in $ac_subst_vars
1658 eval ac_val=\$$ac_var
1660 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1662 $as_echo "$ac_var='\''$ac_val'\''"
1666 if test -n "$ac_subst_files"; then
1668 ## ------------------- ##
1669 ## File substitutions. ##
1670 ## ------------------- ##
1673 for ac_var in $ac_subst_files
1675 eval ac_val=\$$ac_var
1677 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1679 $as_echo "$ac_var='\''$ac_val'\''"
1684 if test -s confdefs.h; then
1694 test "$ac_signal" != 0 &&
1695 $as_echo "$as_me: caught signal $ac_signal"
1696 $as_echo "$as_me: exit $exit_status"
1698 rm -f core *.core core.conftest.* &&
1699 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1702 for ac_signal in 1 2 13 15; do
1703 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1707 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1708 rm -f -r conftest* confdefs.h
1710 # Predefined preprocessor variables.
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_NAME "$PACKAGE_NAME"
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_STRING "$PACKAGE_STRING"
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1737 # Let the site file select an alternate cache file if it wants to.
1738 # Prefer an explicitly selected file to automatically selected ones.
1741 if test -n "$CONFIG_SITE"; then
1742 ac_site_file1=$CONFIG_SITE
1743 elif test "x$prefix" != xNONE; then
1744 ac_site_file1=$prefix/share/config.site
1745 ac_site_file2=$prefix/etc/config.site
1747 ac_site_file1=$ac_default_prefix/share/config.site
1748 ac_site_file2=$ac_default_prefix/etc/config.site
1750 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1752 test "x$ac_site_file" = xNONE && continue
1753 if test -r "$ac_site_file"; then
1754 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1755 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1756 sed 's/^/| /' "$ac_site_file" >&5
1761 if test -r "$cache_file"; then
1762 # Some versions of bash will fail to source /dev/null (special
1763 # files actually), so we avoid doing that.
1764 if test -f "$cache_file"; then
1765 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1766 $as_echo "$as_me: loading cache $cache_file" >&6;}
1768 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1769 *) . "./$cache_file";;
1773 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1774 $as_echo "$as_me: creating cache $cache_file" >&6;}
1778 # Check that the precious variables saved in the cache have kept the same
1780 ac_cache_corrupted=false
1781 for ac_var in $ac_precious_vars; do
1782 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1783 eval ac_new_set=\$ac_env_${ac_var}_set
1784 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1785 eval ac_new_val=\$ac_env_${ac_var}_value
1786 case $ac_old_set,$ac_new_set in
1788 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1789 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1790 ac_cache_corrupted=: ;;
1792 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1793 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1794 ac_cache_corrupted=: ;;
1797 if test "x$ac_old_val" != "x$ac_new_val"; then
1798 # differences in whitespace do not lead to failure.
1799 ac_old_val_w=`echo x $ac_old_val`
1800 ac_new_val_w=`echo x $ac_new_val`
1801 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1802 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1803 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1804 ac_cache_corrupted=:
1806 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1807 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1808 eval $ac_var=\$ac_old_val
1810 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1811 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1812 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1813 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1816 # Pass precious variables to config.status.
1817 if test "$ac_new_set" = set; then
1819 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 *) ac_arg=$ac_var=$ac_new_val ;;
1822 case " $ac_configure_args " in
1823 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1824 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1828 if $ac_cache_corrupted; then
1829 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1832 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1833 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1834 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1835 { (exit 1); exit 1; }; }
1855 ac_cpp='$CPP $CPPFLAGS'
1856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863 { $as_echo "$as_me:$LINENO: checking for installation prefix" >&5
1864 $as_echo_n "checking for installation prefix... " >&6; }
1865 if test "${unet_cv_prefix+set}" = set; then
1866 $as_echo_n "(cached) " >&6
1868 unet_cv_prefix=$HOME
1871 if test x"$prefix" != xNONE; then
1872 unet_cv_prefix=$prefix
1874 { $as_echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1875 $as_echo "$unet_cv_prefix" >&6; }
1876 ac_default_prefix=$unet_cv_prefix
1878 ac_config_headers="$ac_config_headers config.h"
1884 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1885 if test -f "$ac_dir/install-sh"; then
1887 ac_install_sh="$ac_aux_dir/install-sh -c"
1889 elif test -f "$ac_dir/install.sh"; then
1891 ac_install_sh="$ac_aux_dir/install.sh -c"
1893 elif test -f "$ac_dir/shtool"; then
1895 ac_install_sh="$ac_aux_dir/shtool install -c"
1899 if test -z "$ac_aux_dir"; then
1900 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1901 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1902 { (exit 1); exit 1; }; }
1905 # These three variables are undocumented and unsupported,
1906 # and are intended to be withdrawn in a future Autoconf release.
1907 # They can cause serious problems if a builder's source tree is in a directory
1908 # whose full name contains unusual characters.
1909 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1910 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1911 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1914 # Make sure we can run config.sub.
1915 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1916 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1917 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1918 { (exit 1); exit 1; }; }
1920 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1921 $as_echo_n "checking build system type... " >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923 $as_echo_n "(cached) " >&6
1925 ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1928 test "x$ac_build_alias" = x &&
1929 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931 { (exit 1); exit 1; }; }
1932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1933 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1934 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1935 { (exit 1); exit 1; }; }
1938 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 $as_echo "$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1942 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1944 { (exit 1); exit 1; }; };;
1947 ac_save_IFS=$IFS; IFS='-'
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1957 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1960 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1961 $as_echo_n "checking host system type... " >&6; }
1962 if test "${ac_cv_host+set}" = set; then
1963 $as_echo_n "(cached) " >&6
1965 if test "x$host_alias" = x; then
1966 ac_cv_host=$ac_cv_build
1968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1969 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1970 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1971 { (exit 1); exit 1; }; }
1975 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1976 $as_echo "$ac_cv_host" >&6; }
1979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1980 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1981 { (exit 1); exit 1; }; };;
1984 ac_save_IFS=$IFS; IFS='-'
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 $as_echo_n "checking for $ac_word... " >&6; }
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009 $as_echo_n "(cached) " >&6
2011 if test -n "$CC"; then
2012 ac_cv_prog_CC="$CC" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 if test -n "$CC"; then
2033 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2034 $as_echo "$CC" >&6; }
2036 { $as_echo "$as_me:$LINENO: result: no" >&5
2037 $as_echo "no" >&6; }
2042 if test -z "$ac_cv_prog_CC"; then
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 $as_echo_n "checking for $ac_word... " >&6; }
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 $as_echo_n "(cached) " >&6
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 $as_echo "$ac_ct_CC" >&6; }
2076 { $as_echo "$as_me:$LINENO: result: no" >&5
2077 $as_echo "no" >&6; }
2080 if test "x$ac_ct_CC" = x; then
2083 case $cross_compiling:$ac_tool_warned in
2085 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2087 ac_tool_warned=yes ;;
2095 if test -z "$CC"; then
2096 if test -n "$ac_tool_prefix"; then
2097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}cc; ac_word=$2
2099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 $as_echo_n "checking for $ac_word... " >&6; }
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102 $as_echo_n "(cached) " >&6
2104 if test -n "$CC"; then
2105 ac_cv_prog_CC="$CC" # Let the user override the test.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114 ac_cv_prog_CC="${ac_tool_prefix}cc"
2115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 if test -n "$CC"; then
2126 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2127 $as_echo "$CC" >&6; }
2129 { $as_echo "$as_me:$LINENO: result: no" >&5
2130 $as_echo "no" >&6; }
2136 if test -z "$CC"; then
2137 # Extract the first word of "cc", so it can be a program name with args.
2138 set dummy cc; ac_word=$2
2139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 $as_echo_n "checking for $ac_word... " >&6; }
2141 if test "${ac_cv_prog_CC+set}" = set; then
2142 $as_echo_n "(cached) " >&6
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2156 ac_prog_rejected=yes
2160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 if test $ac_prog_rejected = yes; then
2168 # We found a bogon in the path, so make sure we never use it.
2169 set dummy $ac_cv_prog_CC
2171 if test $# != 0; then
2172 # We chose a different compiler from the bogus one.
2173 # However, it has the same basename, so the bogon will be chosen
2174 # first if we set CC to just the basename; use the full file name.
2176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2182 if test -n "$CC"; then
2183 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2184 $as_echo "$CC" >&6; }
2186 { $as_echo "$as_me:$LINENO: result: no" >&5
2187 $as_echo "no" >&6; }
2192 if test -z "$CC"; then
2193 if test -n "$ac_tool_prefix"; then
2194 for ac_prog in cl.exe
2196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 $as_echo_n "checking for $ac_word... " >&6; }
2200 if test "${ac_cv_prog_CC+set}" = set; then
2201 $as_echo_n "(cached) " >&6
2203 if test -n "$CC"; then
2204 ac_cv_prog_CC="$CC" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test -n "$CC"; then
2225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2226 $as_echo "$CC" >&6; }
2228 { $as_echo "$as_me:$LINENO: result: no" >&5
2229 $as_echo "no" >&6; }
2233 test -n "$CC" && break
2236 if test -z "$CC"; then
2238 for ac_prog in cl.exe
2240 # Extract the first word of "$ac_prog", so it can be a program name with args.
2241 set dummy $ac_prog; ac_word=$2
2242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 $as_echo_n "checking for $ac_word... " >&6; }
2244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2245 $as_echo_n "(cached) " >&6
2247 if test -n "$ac_ct_CC"; then
2248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_ac_ct_CC="$ac_prog"
2258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 $as_echo "$ac_ct_CC" >&6; }
2272 { $as_echo "$as_me:$LINENO: result: no" >&5
2273 $as_echo "no" >&6; }
2277 test -n "$ac_ct_CC" && break
2280 if test "x$ac_ct_CC" = x; then
2283 case $cross_compiling:$ac_tool_warned in
2285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2287 ac_tool_warned=yes ;;
2296 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }; }
2304 # Provide some information about the compiler.
2305 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2308 { (ac_try="$ac_compiler --version >&5"
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2314 $as_echo "$ac_try_echo") >&5
2315 (eval "$ac_compiler --version >&5") 2>&5
2317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319 { (ac_try="$ac_compiler -v >&5"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2325 $as_echo "$ac_try_echo") >&5
2326 (eval "$ac_compiler -v >&5") 2>&5
2328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2330 { (ac_try="$ac_compiler -V >&5"
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2336 $as_echo "$ac_try_echo") >&5
2337 (eval "$ac_compiler -V >&5") 2>&5
2339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2342 cat >conftest.$ac_ext <<_ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2357 ac_clean_files_save=$ac_clean_files
2358 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2362 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363 $as_echo_n "checking for C compiler default output file name... " >&6; }
2364 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2366 # The possible output files:
2367 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2370 for ac_file in $ac_files
2373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2374 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2379 if { (ac_try="$ac_link_default"
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2385 $as_echo "$ac_try_echo") >&5
2386 (eval "$ac_link_default") 2>&5
2388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2392 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2393 # so that the user can short-circuit this test for compilers unknown to
2395 for ac_file in $ac_files ''
2397 test -f "$ac_file" || continue
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2402 # We found the default executable, but exeext='' is most
2406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 # We set ac_cv_exeext here because the later test for it is not
2411 # safe: cross compilers may not add the suffix if given an `-o'
2412 # argument, so we may need to know it at that point already.
2413 # Even if this section looks crufty: it has the advantage of
2420 test "$ac_cv_exeext" = no && ac_cv_exeext=
2426 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2427 $as_echo "$ac_file" >&6; }
2428 if test -z "$ac_file"; then
2429 $as_echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2432 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 $as_echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }; }
2441 ac_exeext=$ac_cv_exeext
2443 # Check that the compiler produces executables we can run. If not, either
2444 # the compiler is broken, or we cross compile.
2445 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2446 $as_echo_n "checking whether the C compiler works... " >&6; }
2447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448 # If not cross compiling, check that we can run a simple program.
2449 if test "$cross_compiling" != yes; then
2450 if { ac_try='./$ac_file'
2451 { (case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2456 $as_echo "$ac_try_echo") >&5
2457 (eval "$ac_try") 2>&5
2459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2463 if test "$cross_compiling" = maybe; then
2466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&5
2471 $as_echo "$as_me: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }; }
2478 { $as_echo "$as_me:$LINENO: result: yes" >&5
2479 $as_echo "yes" >&6; }
2481 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2482 ac_clean_files=$ac_clean_files_save
2483 # Check that the compiler produces executables we can run. If not, either
2484 # the compiler is broken, or we cross compile.
2485 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2486 $as_echo_n "checking whether we are cross compiling... " >&6; }
2487 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2488 $as_echo "$cross_compiling" >&6; }
2490 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2491 $as_echo_n "checking for suffix of executables... " >&6; }
2492 if { (ac_try="$ac_link"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499 (eval "$ac_link") 2>&5
2501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then
2503 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2505 # work properly (i.e., refer to `conftest.exe'), while it won't with
2507 for ac_file in conftest.exe conftest conftest.*; do
2508 test -f "$ac_file" || continue
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2511 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&5
2521 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }; }
2526 rm -f conftest$ac_cv_exeext
2527 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2528 $as_echo "$ac_cv_exeext" >&6; }
2530 rm -f conftest.$ac_ext
2531 EXEEXT=$ac_cv_exeext
2533 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2534 $as_echo_n "checking for suffix of object files... " >&6; }
2535 if test "${ac_cv_objext+set}" = set; then
2536 $as_echo_n "(cached) " >&6
2538 cat >conftest.$ac_ext <<_ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2553 rm -f conftest.o conftest.obj
2554 if { (ac_try="$ac_compile"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2560 $as_echo "$ac_try_echo") >&5
2561 (eval "$ac_compile") 2>&5
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 for ac_file in conftest.o conftest.obj conftest.*; do
2566 test -f "$ac_file" || continue;
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574 $as_echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&5
2581 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }; }
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2588 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 $as_echo "$ac_cv_objext" >&6; }
2590 OBJEXT=$ac_cv_objext
2592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595 $as_echo_n "(cached) " >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647 if test $ac_compiler_gnu = yes; then
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 ac_save_c_werror_flag=$ac_c_werror_flag
2660 ac_c_werror_flag=yes
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685 $as_echo "$ac_try_echo") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && {
2732 test -z "$ac_c_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest.$ac_objext; then
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2740 ac_c_werror_flag=$ac_save_c_werror_flag
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793 $as_echo "$ac_cv_prog_cc_g" >&6; }
2794 if test "$ac_test_CFLAGS" = set; then
2795 CFLAGS=$ac_save_CFLAGS
2796 elif test $ac_cv_prog_cc_g = yes; then
2797 if test "$GCC" = yes; then
2803 if test "$GCC" = yes; then
2809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811 if test "${ac_cv_prog_cc_c89+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 ac_cv_prog_cc_c89=no
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2824 #include <sys/types.h>
2825 #include <sys/stat.h>
2826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2827 struct buf { int x; };
2828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829 static char *e (p, i)
2835 static char *f (char * (*g) (char **, int), char **p, ...)
2840 s = g (p, va_arg (v,int));
2845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2846 function prototypes and stuff, but not '\xHH' hex character constants.
2847 These don't provoke an error unfortunately, instead are silently treated
2848 as 'x'. The following induces an error, until -std is added to get
2849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2850 array size at least. It's necessary to write '\x00'==0 to get something
2851 that's true only with -std. */
2852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855 inside strings and character constants. */
2857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2859 int test (int i, double x);
2860 struct s1 {int (*f) (int a);};
2861 struct s2 {int (*f) (double a);};
2862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2876 CC="$ac_save_CC $ac_arg"
2877 rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2887 grep -v '^ *+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.$ac_objext; then
2895 ac_cv_prog_cc_c89=$ac_arg
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2903 rm -f core conftest.err conftest.$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2906 rm -f conftest.$ac_ext
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2916 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:$LINENO: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$ac_cv_prog_CC"; then
2978 # Extract the first word of "gcc", so it can be a program name with args.
2979 set dummy gcc; ac_word=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$ac_ct_CC"; then
2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_ac_ct_CC="gcc"
2996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3010 { $as_echo "$as_me:$LINENO: result: no" >&5
3011 $as_echo "no" >&6; }
3014 if test "x$ac_ct_CC" = x; then
3017 case $cross_compiling:$ac_tool_warned in
3019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}cc; ac_word=$2
3033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="${ac_tool_prefix}cc"
3049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:$LINENO: result: no" >&5
3064 $as_echo "no" >&6; }
3070 if test -z "$CC"; then
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090 ac_prog_rejected=yes
3094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test $ac_prog_rejected = yes; then
3102 # We found a bogon in the path, so make sure we never use it.
3103 set dummy $ac_cv_prog_CC
3105 if test $# != 0; then
3106 # We chose a different compiler from the bogus one.
3107 # However, it has the same basename, so the bogon will be chosen
3108 # first if we set CC to just the basename; use the full file name.
3110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3120 { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in cl.exe
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$CC" && break
3170 if test -z "$CC"; then
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC="$ac_prog"
3192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3206 { $as_echo "$as_me:$LINENO: result: no" >&5
3207 $as_echo "no" >&6; }
3211 test -n "$ac_ct_CC" && break
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3230 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&5
3234 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }; }
3238 # Provide some information about the compiler.
3239 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3242 { (ac_try="$ac_compiler --version >&5"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249 (eval "$ac_compiler --version >&5") 2>&5
3251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260 (eval "$ac_compiler -v >&5") 2>&5
3262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }
3264 { (ac_try="$ac_compiler -V >&5"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_compiler -V >&5") 2>&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
3276 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3277 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3278 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3279 $as_echo_n "(cached) " >&6
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3306 $as_echo "$ac_try_echo") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3309 grep -v '^ *+' conftest.er1 >conftest.err
3311 cat conftest.err >&5
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } && {
3314 test -z "$ac_c_werror_flag" ||
3315 test ! -s conftest.err
3316 } && test -s conftest.$ac_objext; then
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if test "${ac_cv_prog_cc_g+set}" = set; then
3341 $as_echo_n "(cached) " >&6
3343 ac_save_c_werror_flag=$ac_c_werror_flag
3344 ac_c_werror_flag=yes
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369 $as_echo "$ac_try_echo") >&5
3370 (eval "$ac_compile") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } && {
3377 test -z "$ac_c_werror_flag" ||
3378 test ! -s conftest.err
3379 } && test -s conftest.$ac_objext; then
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3477 $as_echo "$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3487 if test "$GCC" = yes; then
3493 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3494 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495 if test "${ac_cv_prog_cc_c89+set}" = set; then
3496 $as_echo_n "(cached) " >&6
3498 ac_cv_prog_cc_c89=no
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3524 s = g (p, va_arg (v,int));
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not '\xHH' hex character constants.
3531 These don't provoke an error unfortunately, instead are silently treated
3532 as 'x'. The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3534 array size at least. It's necessary to write '\x00'==0 to get something
3535 that's true only with -std. */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3560 CC="$ac_save_CC $ac_arg"
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3568 $as_echo "$ac_try_echo") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 ac_cv_prog_cc_c89=$ac_arg
3581 $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f core conftest.err conftest.$ac_objext
3588 test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 rm -f conftest.$ac_ext
3595 case "x$ac_cv_prog_cc_c89" in
3597 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3598 $as_echo "none needed" >&6; } ;;
3600 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3601 $as_echo "unsupported" >&6; } ;;
3603 CC="$CC $ac_cv_prog_cc_c89"
3604 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3605 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3621 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
3622 $as_echo_n "checking for library containing crypt... " >&6; }
3623 if test "${ac_cv_search_crypt+set}" = set; then
3624 $as_echo_n "(cached) " >&6
3626 ac_func_search_save_LIBS=$LIBS
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3649 for ac_lib in '' descrypt crypt; do
3650 if test -z "$ac_lib"; then
3651 ac_res="none required"
3654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_link") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest$ac_exeext && {
3674 test "$cross_compiling" = yes ||
3675 $as_test_x conftest$ac_exeext
3677 ac_cv_search_crypt=$ac_res
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -rf conftest.dSYM
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3688 if test "${ac_cv_search_crypt+set}" = set; then
3692 if test "${ac_cv_search_crypt+set}" = set; then
3695 ac_cv_search_crypt=no
3698 LIBS=$ac_func_search_save_LIBS
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3701 $as_echo "$ac_cv_search_crypt" >&6; }
3702 ac_res=$ac_cv_search_crypt
3703 if test "$ac_res" != no; then
3704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3707 { { $as_echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3708 $as_echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3709 { (exit 1); exit 1; }; }
3714 # Most operating systems have gethostbyname() in the default searched
3715 # libraries (i.e. libc):
3716 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
3717 $as_echo_n "checking for gethostbyname... " >&6; }
3718 if test "${ac_cv_func_gethostbyname+set}" = set; then
3719 $as_echo_n "(cached) " >&6
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3729 #define gethostbyname innocuous_gethostbyname
3731 /* System header to define __stub macros and hopefully few prototypes,
3732 which can conflict with char gethostbyname (); below.
3733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734 <limits.h> exists even on freestanding compilers. */
3737 # include <limits.h>
3739 # include <assert.h>
3742 #undef gethostbyname
3744 /* Override any GCC internal prototype to avoid an error.
3745 Use char because int might match the return type of a GCC
3746 builtin and then its argument prototype would still apply. */
3750 char gethostbyname ();
3751 /* The GNU C library defines this for functions which it implements
3752 to always fail with ENOSYS. Some functions are actually named
3753 something starting with __ and the normal name is an alias. */
3754 #if defined __stub_gethostbyname || defined __stub___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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773 $as_echo "$ac_try_echo") >&5
3774 (eval "$ac_link") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest$ac_exeext && {
3784 test "$cross_compiling" = yes ||
3785 $as_test_x conftest$ac_exeext
3787 ac_cv_func_gethostbyname=yes
3789 $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 ac_cv_func_gethostbyname=no
3795 rm -rf conftest.dSYM
3796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3797 conftest$ac_exeext conftest.$ac_ext
3799 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 $as_echo "$ac_cv_func_gethostbyname" >&6; }
3801 if test "x$ac_cv_func_gethostbyname" = x""yes; then
3804 # Some OSes (eg. Solaris) place it in libnsl:
3806 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3807 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3808 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3809 $as_echo_n "(cached) " >&6
3811 ac_check_lib_save_LIBS=$LIBS
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3820 /* Override any GCC internal prototype to avoid an error.
3821 Use char because int might match the return type of a GCC
3822 builtin and then its argument prototype would still apply. */
3826 char gethostbyname ();
3830 return gethostbyname ();
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (ac_try="$ac_link"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842 $as_echo "$ac_try_echo") >&5
3843 (eval "$ac_link") 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && {
3850 test -z "$ac_c_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest$ac_exeext && {
3853 test "$cross_compiling" = yes ||
3854 $as_test_x conftest$ac_exeext
3856 ac_cv_lib_nsl_gethostbyname=yes
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 ac_cv_lib_nsl_gethostbyname=no
3864 rm -rf conftest.dSYM
3865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3866 conftest$ac_exeext conftest.$ac_ext
3867 LIBS=$ac_check_lib_save_LIBS
3869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3870 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3871 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
3872 cat >>confdefs.h <<_ACEOF
3873 #define HAVE_LIBNSL 1
3879 # Some strange OSes (SINIX) have it in libsocket:
3881 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3882 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3883 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3884 $as_echo_n "(cached) " >&6
3886 ac_check_lib_save_LIBS=$LIBS
3887 LIBS="-lsocket $LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3895 /* Override any GCC internal prototype to avoid an error.
3896 Use char because int might match the return type of a GCC
3897 builtin and then its argument prototype would still apply. */
3901 char gethostbyname ();
3905 return gethostbyname ();
3910 rm -f conftest.$ac_objext conftest$ac_exeext
3911 if { (ac_try="$ac_link"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3917 $as_echo "$ac_try_echo") >&5
3918 (eval "$ac_link") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest$ac_exeext && {
3928 test "$cross_compiling" = yes ||
3929 $as_test_x conftest$ac_exeext
3931 ac_cv_lib_socket_gethostbyname=yes
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 ac_cv_lib_socket_gethostbyname=no
3939 rm -rf conftest.dSYM
3940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3941 conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3945 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
3946 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then
3947 cat >>confdefs.h <<_ACEOF
3948 #define HAVE_LIBSOCKET 1
3951 LIBS="-lsocket $LIBS"
3954 # Unfortunately libsocket sometimes depends on libnsl.
3955 # AC_CHECK_LIB's API is essentially broken so the following
3956 # ugliness is necessary:
3957 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3958 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3959 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3960 $as_echo_n "(cached) " >&6
3962 ac_check_lib_save_LIBS=$LIBS
3963 LIBS="-lsocket -lnsl $LIBS"
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3971 /* Override any GCC internal prototype to avoid an error.
3972 Use char because int might match the return type of a GCC
3973 builtin and then its argument prototype would still apply. */
3977 char gethostbyname ();
3981 return gethostbyname ();
3986 rm -f conftest.$ac_objext conftest$ac_exeext
3987 if { (ac_try="$ac_link"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3993 $as_echo "$ac_try_echo") >&5
3994 (eval "$ac_link") 2>conftest.er1
3996 grep -v '^ *+' conftest.er1 >conftest.err
3998 cat conftest.err >&5
3999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } && {
4001 test -z "$ac_c_werror_flag" ||
4002 test ! -s conftest.err
4003 } && test -s conftest$ac_exeext && {
4004 test "$cross_compiling" = yes ||
4005 $as_test_x conftest$ac_exeext
4007 ac_cv_lib_socket_gethostbyname=yes
4009 $as_echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ac_cv_lib_socket_gethostbyname=no
4015 rm -rf conftest.dSYM
4016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4017 conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4021 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4022 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then
4023 LIBS="-lsocket -lnsl $LIBS"
4026 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
4027 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
4028 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
4029 $as_echo_n "(cached) " >&6
4031 ac_check_lib_save_LIBS=$LIBS
4032 LIBS="-lresolv $LIBS"
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4040 /* Override any GCC internal prototype to avoid an error.
4041 Use char because int might match the return type of a GCC
4042 builtin and then its argument prototype would still apply. */
4046 char gethostbyname ();
4050 return gethostbyname ();
4055 rm -f conftest.$ac_objext conftest$ac_exeext
4056 if { (ac_try="$ac_link"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063 (eval "$ac_link") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest$ac_exeext && {
4073 test "$cross_compiling" = yes ||
4074 $as_test_x conftest$ac_exeext
4076 ac_cv_lib_resolv_gethostbyname=yes
4078 $as_echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_cv_lib_resolv_gethostbyname=no
4084 rm -rf conftest.dSYM
4085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4086 conftest$ac_exeext conftest.$ac_ext
4087 LIBS=$ac_check_lib_save_LIBS
4089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
4090 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
4091 if test "x$ac_cv_lib_resolv_gethostbyname" = x""yes; then
4092 cat >>confdefs.h <<_ACEOF
4093 #define HAVE_LIBRESOLV 1
4096 LIBS="-lresolv $LIBS"
4111 { $as_echo "$as_me:$LINENO: checking for socket" >&5
4112 $as_echo_n "checking for socket... " >&6; }
4113 if test "${ac_cv_func_socket+set}" = set; then
4114 $as_echo_n "(cached) " >&6
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
4123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4124 #define socket innocuous_socket
4126 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char socket (); below.
4128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129 <limits.h> exists even on freestanding compilers. */
4132 # include <limits.h>
4134 # include <assert.h>
4139 /* Override any GCC internal prototype to avoid an error.
4140 Use char because int might match the return type of a GCC
4141 builtin and then its argument prototype would still apply. */
4146 /* The GNU C library defines this for functions which it implements
4147 to always fail with ENOSYS. Some functions are actually named
4148 something starting with __ and the normal name is an alias. */
4149 #if defined __stub_socket || defined __stub___socket
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162 if { (ac_try="$ac_link"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_link") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest$ac_exeext && {
4179 test "$cross_compiling" = yes ||
4180 $as_test_x conftest$ac_exeext
4182 ac_cv_func_socket=yes
4184 $as_echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_func_socket=no
4190 rm -rf conftest.dSYM
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192 conftest$ac_exeext conftest.$ac_ext
4194 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4195 $as_echo "$ac_cv_func_socket" >&6; }
4196 if test "x$ac_cv_func_socket" = x""yes; then
4200 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4201 $as_echo_n "checking for socket in -lsocket... " >&6; }
4202 if test "${ac_cv_lib_socket_socket+set}" = set; then
4203 $as_echo_n "(cached) " >&6
4205 ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lsocket $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any GCC internal prototype to avoid an error.
4215 Use char because int might match the return type of a GCC
4216 builtin and then its argument prototype would still apply. */
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (ac_try="$ac_link"
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4236 $as_echo "$ac_try_echo") >&5
4237 (eval "$ac_link") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest$ac_exeext && {
4247 test "$cross_compiling" = yes ||
4248 $as_test_x conftest$ac_exeext
4250 ac_cv_lib_socket_socket=yes
4252 $as_echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_lib_socket_socket=no
4258 rm -rf conftest.dSYM
4259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4260 conftest$ac_exeext conftest.$ac_ext
4261 LIBS=$ac_check_lib_save_LIBS
4263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4264 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4265 if test "x$ac_cv_lib_socket_socket" = x""yes; then
4266 cat >>confdefs.h <<_ACEOF
4267 #define HAVE_LIBSOCKET 1
4270 LIBS="-lsocket $LIBS"
4273 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4274 $as_echo_n "checking for socket in -lsocket... " >&6; }
4275 if test "${ac_cv_lib_socket_socket+set}" = set; then
4276 $as_echo_n "(cached) " >&6
4278 ac_check_lib_save_LIBS=$LIBS
4279 LIBS="-lsocket -lnsl $LIBS"
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4287 /* Override any GCC internal prototype to avoid an error.
4288 Use char because int might match the return type of a GCC
4289 builtin and then its argument prototype would still apply. */
4302 rm -f conftest.$ac_objext conftest$ac_exeext
4303 if { (ac_try="$ac_link"
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4309 $as_echo "$ac_try_echo") >&5
4310 (eval "$ac_link") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest$ac_exeext && {
4320 test "$cross_compiling" = yes ||
4321 $as_test_x conftest$ac_exeext
4323 ac_cv_lib_socket_socket=yes
4325 $as_echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 ac_cv_lib_socket_socket=no
4331 rm -rf conftest.dSYM
4332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4333 conftest$ac_exeext conftest.$ac_ext
4334 LIBS=$ac_check_lib_save_LIBS
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4337 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4338 if test "x$ac_cv_lib_socket_socket" = x""yes; then
4339 LIBS="-lsocket -lnsl $LIBS"
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4355 # On Suns, sometimes $CPP names a directory.
4356 if test -n "$CPP" && test -d "$CPP"; then
4359 if test -z "$CPP"; then
4360 if test "${ac_cv_prog_CPP+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4363 # Double quotes because CPP needs to be expanded
4364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4367 for ac_c_preproc_warn_flag in '' yes
4369 # Use a header file that comes with gcc, so configuring glibc
4370 # with a fresh cross-compiler works.
4371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372 # <limits.h> exists even on freestanding compilers.
4373 # On the NeXT, cc -E runs the code through the compiler's parser,
4374 # not just through cpp. "Syntax error" is here to catch this case.
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4382 # include <limits.h>
4384 # include <assert.h>
4388 if { (ac_try="$ac_cpp conftest.$ac_ext"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } >/dev/null && {
4402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 # Broken: fails on valid input.
4414 rm -f conftest.err conftest.$ac_ext
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <ac_nonexistent.h>
4426 if { (ac_try="$ac_cpp conftest.$ac_ext"
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4432 $as_echo "$ac_try_echo") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null && {
4440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441 test ! -s conftest.err
4443 # Broken: success on invalid input.
4446 $as_echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 # Passes both tests.
4454 rm -f conftest.err conftest.$ac_ext
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then
4471 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4472 $as_echo "$CPP" >&6; }
4474 for ac_c_preproc_warn_flag in '' yes
4476 # Use a header file that comes with gcc, so configuring glibc
4477 # with a fresh cross-compiler works.
4478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479 # <limits.h> exists even on freestanding compilers.
4480 # On the NeXT, cc -E runs the code through the compiler's parser,
4481 # not just through cpp. "Syntax error" is here to catch this case.
4482 cat >conftest.$ac_ext <<_ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4489 # include <limits.h>
4491 # include <assert.h>
4495 if { (ac_try="$ac_cpp conftest.$ac_ext"
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4501 $as_echo "$ac_try_echo") >&5
4502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null && {
4509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4514 $as_echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Broken: fails on valid input.
4521 rm -f conftest.err conftest.$ac_ext
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null && {
4547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4550 # Broken: success on invalid input.
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 # Passes both tests.
4561 rm -f conftest.err conftest.$ac_ext
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then
4569 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4571 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details." >&5
4573 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4574 See \`config.log' for more details." >&2;}
4575 { (exit 1); exit 1; }; }; }
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if test "${ac_cv_path_GREP+set}" = set; then
4588 $as_echo_n "(cached) " >&6
4590 if test -z "$GREP"; then
4591 ac_path_GREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in grep ggrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603 # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 $as_echo_n 0123456789 >"conftest.in"
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'GREP' >> "conftest.nl"
4616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 ac_count=`expr $ac_count + 1`
4619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_GREP="$ac_path_GREP"
4622 ac_path_GREP_max=$ac_count
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 $ac_path_GREP_found && break 3
4635 if test -z "$ac_cv_path_GREP"; then
4636 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4637 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4638 { (exit 1); exit 1; }; }
4641 ac_cv_path_GREP=$GREP
4645 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
4650 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if test "${ac_cv_path_EGREP+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 $as_echo_n 0123456789 >"conftest.in"
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 ac_count=`expr $ac_count + 1`
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 $ac_path_EGREP_found && break 3
4703 if test -z "$ac_cv_path_EGREP"; then
4704 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4705 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4706 { (exit 1); exit 1; }; }
4709 ac_cv_path_EGREP=$EGREP
4714 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716 EGREP="$ac_cv_path_EGREP"
4719 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4720 $as_echo_n "checking for ANSI C header files... " >&6; }
4721 if test "${ac_cv_header_stdc+set}" = set; then
4722 $as_echo_n "(cached) " >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751 (eval "$ac_compile") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && {
4758 test -z "$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 } && test -s conftest.$ac_objext; then
4761 ac_cv_header_stdc=yes
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 ac_cv_header_stdc=no
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "memchr" >/dev/null 2>&1; then
4786 ac_cv_header_stdc=no
4792 if test $ac_cv_header_stdc = yes; then
4793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 $EGREP "free" >/dev/null 2>&1; then
4807 ac_cv_header_stdc=no
4813 if test $ac_cv_header_stdc = yes; then
4814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4815 if test "$cross_compiling" = yes; then
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4826 #if ((' ' & 0x0FF) == 0x020)
4827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4830 # define ISLOWER(c) \
4831 (('a' <= (c) && (c) <= 'i') \
4832 || ('j' <= (c) && (c) <= 'r') \
4833 || ('s' <= (c) && (c) <= 'z'))
4834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4842 for (i = 0; i < 256; i++)
4843 if (XOR (islower (i), ISLOWER (i))
4844 || toupper (i) != TOUPPER (i))
4849 rm -f conftest$ac_exeext
4850 if { (ac_try="$ac_link"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_link") 2>&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4861 { (case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867 (eval "$ac_try") 2>&5
4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4873 $as_echo "$as_me: program exited with status $ac_status" >&5
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cv_header_stdc=no
4880 rm -rf conftest.dSYM
4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4888 $as_echo "$ac_cv_header_stdc" >&6; }
4889 if test $ac_cv_header_stdc = yes; then
4891 cat >>confdefs.h <<\_ACEOF
4892 #define STDC_HEADERS 1
4897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4907 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4908 inttypes.h stdint.h unistd.h
4910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4912 $as_echo_n "checking for $ac_header... " >&6; }
4913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4914 $as_echo_n "(cached) " >&6
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4924 #include <$ac_header>
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4933 $as_echo "$ac_try_echo") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4944 eval "$as_ac_Header=yes"
4946 $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 eval "$as_ac_Header=no"
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ac_res=`eval 'as_val=${'$as_ac_Header'}
4955 $as_echo "$as_val"'`
4956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4957 $as_echo "$ac_res" >&6; }
4958 as_val=`eval 'as_val=${'$as_ac_Header'}
4959 $as_echo "$as_val"'`
4960 if test "x$as_val" = x""yes; then
4961 cat >>confdefs.h <<_ACEOF
4962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4980 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
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4985 $as_echo_n "checking for $ac_header... " >&6; }
4986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4987 $as_echo_n "(cached) " >&6
4989 ac_res=`eval 'as_val=${'$as_ac_Header'}
4990 $as_echo "$as_val"'`
4991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4992 $as_echo "$ac_res" >&6; }
4994 # Is the header compilable?
4995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4996 $as_echo_n "checking $ac_header usability... " >&6; }
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5004 #include <$ac_header>
5006 rm -f conftest.$ac_objext
5007 if { (ac_try="$ac_compile"
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5013 $as_echo "$ac_try_echo") >&5
5014 (eval "$ac_compile") 2>conftest.er1
5016 grep -v '^ *+' conftest.er1 >conftest.err
5018 cat conftest.err >&5
5019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.$ac_objext; then
5024 ac_header_compiler=yes
5026 $as_echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_header_compiler=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5034 $as_echo "$ac_header_compiler" >&6; }
5036 # Is the header present?
5037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5038 $as_echo_n "checking $ac_header presence... " >&6; }
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #include <$ac_header>
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5064 ac_header_preproc=yes
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 ac_header_preproc=no
5072 rm -f conftest.err conftest.$ac_ext
5073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5074 $as_echo "$ac_header_preproc" >&6; }
5076 # So? What about this header?
5077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5083 ac_header_preproc=yes
5086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5102 $as_echo_n "checking for $ac_header... " >&6; }
5103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5104 $as_echo_n "(cached) " >&6
5106 eval "$as_ac_Header=\$ac_header_preproc"
5108 ac_res=`eval 'as_val=${'$as_ac_Header'}
5109 $as_echo "$as_val"'`
5110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5111 $as_echo "$ac_res" >&6; }
5114 as_val=`eval 'as_val=${'$as_ac_Header'}
5115 $as_echo "$as_val"'`
5116 if test "x$as_val" = x""yes; then
5117 cat >>confdefs.h <<_ACEOF
5118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5128 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5129 if test "${ac_cv_c_bigendian+set}" = set; then
5130 $as_echo_n "(cached) " >&6
5132 ac_cv_c_bigendian=unknown
5133 # See if we're dealing with a universal compiler.
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #ifndef __APPLE_CC__
5141 not a universal capable compiler
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5153 $as_echo "$ac_try_echo") >&5
5154 (eval "$ac_compile") 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } && {
5161 test -z "$ac_c_werror_flag" ||
5162 test ! -s conftest.err
5163 } && test -s conftest.$ac_objext; then
5165 # Check for potential -arch flags. It is not universal unless
5166 # there are some -arch flags. Note that *ppc* also matches
5167 # ppc64. This check is also rather less than ideal.
5168 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
5169 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
5172 $as_echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 if test $ac_cv_c_bigendian = unknown; then
5180 # See if sys/param.h defines the BYTE_ORDER macro.
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <sys/types.h>
5188 #include <sys/param.h>
5193 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5194 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5203 rm -f conftest.$ac_objext
5204 if { (ac_try="$ac_compile"
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5210 $as_echo "$ac_try_echo") >&5
5211 (eval "$ac_compile") 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && {
5218 test -z "$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5220 } && test -s conftest.$ac_objext; then
5221 # It does; now see whether it defined to BIG_ENDIAN or not.
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5228 #include <sys/types.h>
5229 #include <sys/param.h>
5234 #if BYTE_ORDER != BIG_ENDIAN
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5260 ac_cv_c_bigendian=yes
5262 $as_echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 ac_cv_c_bigendian=no
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 $as_echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 if test $ac_cv_c_bigendian = unknown; then
5279 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5291 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5299 rm -f conftest.$ac_objext
5300 if { (ac_try="$ac_compile"
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$ac_try_echo") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 # It does; now see whether it defined to _BIG_ENDIAN or not.
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5337 rm -f conftest.$ac_objext
5338 if { (ac_try="$ac_compile"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5344 $as_echo "$ac_try_echo") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 ac_cv_c_bigendian=yes
5357 $as_echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_cv_c_bigendian=no
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 $as_echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 if test $ac_cv_c_bigendian = unknown; then
5374 # Compile a test program.
5375 if test "$cross_compiling" = yes; then
5376 # Try to guess by grepping values from an object file.
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 short int ascii_mm[] =
5384 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5385 short int ascii_ii[] =
5386 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5387 int use_ascii (int i) {
5388 return ascii_mm[i] + ascii_ii[i];
5390 short int ebcdic_ii[] =
5391 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5392 short int ebcdic_mm[] =
5393 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5394 int use_ebcdic (int i) {
5395 return ebcdic_mm[i] + ebcdic_ii[i];
5402 return use_ascii (foo) == use_ebcdic (foo);
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5414 $as_echo "$ac_try_echo") >&5
5415 (eval "$ac_compile") 2>conftest.er1
5417 grep -v '^ *+' conftest.er1 >conftest.err
5419 cat conftest.err >&5
5420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && {
5422 test -z "$ac_c_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.$ac_objext; then
5425 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5426 ac_cv_c_bigendian=yes
5428 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5429 if test "$ac_cv_c_bigendian" = unknown; then
5430 ac_cv_c_bigendian=no
5432 # finding both strings is unlikely to happen, but who knows?
5433 ac_cv_c_bigendian=unknown
5437 $as_echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5456 /* Are we little or big endian? From Harbison&Steele. */
5460 char c[sizeof (long int)];
5463 return u.c[sizeof (long int) - 1] == 1;
5469 rm -f conftest$ac_exeext
5470 if { (ac_try="$ac_link"
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5476 $as_echo "$ac_try_echo") >&5
5477 (eval "$ac_link") 2>&5
5479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5481 { (case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5486 $as_echo "$ac_try_echo") >&5
5487 (eval "$ac_try") 2>&5
5489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_c_bigendian=no
5493 $as_echo "$as_me: program exited with status $ac_status" >&5
5494 $as_echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_cv_c_bigendian=yes
5500 rm -rf conftest.dSYM
5501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5507 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5508 $as_echo "$ac_cv_c_bigendian" >&6; }
5509 case $ac_cv_c_bigendian in #(
5511 cat >>confdefs.h <<\_ACEOF
5512 #define WORDS_BIGENDIAN 1
5519 cat >>confdefs.h <<\_ACEOF
5520 #define AC_APPLE_UNIVERSAL_BUILD 1
5525 { { $as_echo "$as_me:$LINENO: error: unknown endianness
5526 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5527 $as_echo "$as_me: error: unknown endianness
5528 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5532 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5533 $as_echo_n "checking for size_t... " >&6; }
5534 if test "${ac_cv_type_size_t+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5537 ac_cv_type_size_t=no
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5548 if (sizeof (size_t))
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5561 $as_echo "$ac_try_echo") >&5
5562 (eval "$ac_compile") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5582 if (sizeof ((size_t)))
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595 $as_echo "$ac_try_echo") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && {
5603 test -z "$ac_c_werror_flag" ||
5604 test ! -s conftest.err
5605 } && test -s conftest.$ac_objext; then
5608 $as_echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 ac_cv_type_size_t=yes
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 $as_echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5625 $as_echo "$ac_cv_type_size_t" >&6; }
5626 if test "x$ac_cv_type_size_t" = x""yes; then
5630 cat >>confdefs.h <<_ACEOF
5631 #define size_t unsigned int
5636 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5637 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5638 if test "${ac_cv_header_time+set}" = set; then
5639 $as_echo_n "(cached) " >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 #include <sys/time.h>
5654 if ((struct tm *) 0)
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5667 $as_echo "$ac_try_echo") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5678 ac_cv_header_time=yes
5680 $as_echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_cv_header_time=no
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5689 $as_echo "$ac_cv_header_time" >&6; }
5690 if test $ac_cv_header_time = yes; then
5692 cat >>confdefs.h <<\_ACEOF
5693 #define TIME_WITH_SYS_TIME 1
5698 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5699 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5700 if test "${ac_cv_struct_tm+set}" = set; then
5701 $as_echo_n "(cached) " >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5716 int *p = &tm.tm_sec;
5722 rm -f conftest.$ac_objext
5723 if { (ac_try="$ac_compile"
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5732 grep -v '^ *+' conftest.er1 >conftest.err
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_struct_tm=time.h
5742 $as_echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_cv_struct_tm=sys/time.h
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5751 $as_echo "$ac_cv_struct_tm" >&6; }
5752 if test $ac_cv_struct_tm = sys/time.h; then
5754 cat >>confdefs.h <<\_ACEOF
5755 #define TM_IN_SYS_TIME 1
5760 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5761 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5762 if test "${ac_cv_type_uid_t+set}" = set; then
5763 $as_echo_n "(cached) " >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5775 $EGREP "uid_t" >/dev/null 2>&1; then
5776 ac_cv_type_uid_t=yes
5783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5784 $as_echo "$ac_cv_type_uid_t" >&6; }
5785 if test $ac_cv_type_uid_t = no; then
5787 cat >>confdefs.h <<\_ACEOF
5792 cat >>confdefs.h <<\_ACEOF
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:$LINENO: checking size of short" >&5
5803 $as_echo_n "checking size of short... " >&6; }
5804 if test "${ac_cv_sizeof_short+set}" = set; then
5805 $as_echo_n "(cached) " >&6
5807 if test "$cross_compiling" = yes; then
5808 # Depending upon the size, compute the lo and hi bounds.
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 $ac_includes_default
5819 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833 $as_echo "$ac_try_echo") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5856 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870 $as_echo "$ac_try_echo") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.$ac_objext; then
5881 ac_hi=$ac_mid; break
5883 $as_echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_lo=`expr $ac_mid + 1`
5887 if test $ac_lo -le $ac_mid; then
5891 ac_mid=`expr 2 '*' $ac_mid + 1`
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 $as_echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 $ac_includes_default
5910 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5924 $as_echo "$ac_try_echo") >&5
5925 (eval "$ac_compile") 2>conftest.er1
5927 grep -v '^ *+' conftest.er1 >conftest.err
5929 cat conftest.err >&5
5930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest.$ac_objext; then
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5947 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5961 $as_echo "$ac_try_echo") >&5
5962 (eval "$ac_compile") 2>conftest.er1
5964 grep -v '^ *+' conftest.er1 >conftest.err
5966 cat conftest.err >&5
5967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } && {
5969 test -z "$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 } && test -s conftest.$ac_objext; then
5972 ac_lo=$ac_mid; break
5974 $as_echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 ac_hi=`expr '(' $ac_mid ')' - 1`
5978 if test $ac_mid -le $ac_hi; then
5982 ac_mid=`expr 2 '*' $ac_mid`
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 $as_echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 # Binary search between lo and hi bounds.
5999 while test "x$ac_lo" != "x$ac_hi"; do
6000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6011 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest.$ac_objext; then
6038 $as_echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_lo=`expr '(' $ac_mid ')' + 1`
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 ?*) ac_cv_sizeof_short=$ac_lo;;
6048 '') if test "$ac_cv_type_short" = yes; then
6049 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6051 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6052 See \`config.log' for more details." >&5
6053 $as_echo "$as_me: error: cannot compute sizeof (short)
6054 See \`config.log' for more details." >&2;}
6055 { (exit 77); exit 77; }; }; }
6057 ac_cv_sizeof_short=0
6061 cat >conftest.$ac_ext <<_ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 $ac_includes_default
6068 static long int longval () { return (long int) (sizeof (short)); }
6069 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
6076 FILE *f = fopen ("conftest.val", "w");
6079 if (((long int) (sizeof (short))) < 0)
6081 long int i = longval ();
6082 if (i != ((long int) (sizeof (short))))
6084 fprintf (f, "%ld", i);
6088 unsigned long int i = ulongval ();
6089 if (i != ((long int) (sizeof (short))))
6091 fprintf (f, "%lu", i);
6093 /* Do not output a trailing newline, as this causes \r\n confusion
6094 on some platforms. */
6095 return ferror (f) || fclose (f) != 0;
6101 rm -f conftest$ac_exeext
6102 if { (ac_try="$ac_link"
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108 $as_echo "$ac_try_echo") >&5
6109 (eval "$ac_link") 2>&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113 { (case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118 $as_echo "$ac_try_echo") >&5
6119 (eval "$ac_try") 2>&5
6121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_sizeof_short=`cat conftest.val`
6125 $as_echo "$as_me: program exited with status $ac_status" >&5
6126 $as_echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6130 if test "$ac_cv_type_short" = yes; then
6131 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6133 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6134 See \`config.log' for more details." >&5
6135 $as_echo "$as_me: error: cannot compute sizeof (short)
6136 See \`config.log' for more details." >&2;}
6137 { (exit 77); exit 77; }; }; }
6139 ac_cv_sizeof_short=0
6142 rm -rf conftest.dSYM
6143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6147 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6148 $as_echo "$ac_cv_sizeof_short" >&6; }
6152 cat >>confdefs.h <<_ACEOF
6153 #define SIZEOF_SHORT $ac_cv_sizeof_short
6157 # The cast to long int works around a bug in the HP C Compiler
6158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6160 # This bug is HP SR number 8606223364.
6161 { $as_echo "$as_me:$LINENO: checking size of int" >&5
6162 $as_echo_n "checking size of int... " >&6; }
6163 if test "${ac_cv_sizeof_int+set}" = set; then
6164 $as_echo_n "(cached) " >&6
6166 if test "$cross_compiling" = yes; then
6167 # Depending upon the size, compute the lo and hi bounds.
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 $ac_includes_default
6178 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192 $as_echo "$ac_try_echo") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6215 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_hi=$ac_mid; break
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_lo=`expr $ac_mid + 1`
6246 if test $ac_lo -le $ac_mid; then
6250 ac_mid=`expr 2 '*' $ac_mid + 1`
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 $as_echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6269 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6306 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6320 $as_echo "$ac_try_echo") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_lo=$ac_mid; break
6333 $as_echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_hi=`expr '(' $ac_mid ')' - 1`
6337 if test $ac_mid -le $ac_hi; then
6341 ac_mid=`expr 2 '*' $ac_mid`
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 # Binary search between lo and hi bounds.
6358 while test "x$ac_lo" != "x$ac_hi"; do
6359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6370 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6397 $as_echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_lo=`expr '(' $ac_mid ')' + 1`
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ?*) ac_cv_sizeof_int=$ac_lo;;
6407 '') if test "$ac_cv_type_int" = yes; then
6408 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6410 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6411 See \`config.log' for more details." >&5
6412 $as_echo "$as_me: error: cannot compute sizeof (int)
6413 See \`config.log' for more details." >&2;}
6414 { (exit 77); exit 77; }; }; }
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 $ac_includes_default
6427 static long int longval () { return (long int) (sizeof (int)); }
6428 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
6435 FILE *f = fopen ("conftest.val", "w");
6438 if (((long int) (sizeof (int))) < 0)
6440 long int i = longval ();
6441 if (i != ((long int) (sizeof (int))))
6443 fprintf (f, "%ld", i);
6447 unsigned long int i = ulongval ();
6448 if (i != ((long int) (sizeof (int))))
6450 fprintf (f, "%lu", i);
6452 /* Do not output a trailing newline, as this causes \r\n confusion
6453 on some platforms. */
6454 return ferror (f) || fclose (f) != 0;
6460 rm -f conftest$ac_exeext
6461 if { (ac_try="$ac_link"
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6467 $as_echo "$ac_try_echo") >&5
6468 (eval "$ac_link") 2>&5
6470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478 (eval "$ac_try") 2>&5
6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_sizeof_int=`cat conftest.val`
6484 $as_echo "$as_me: program exited with status $ac_status" >&5
6485 $as_echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6489 if test "$ac_cv_type_int" = yes; then
6490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6492 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6493 See \`config.log' for more details." >&5
6494 $as_echo "$as_me: error: cannot compute sizeof (int)
6495 See \`config.log' for more details." >&2;}
6496 { (exit 77); exit 77; }; }; }
6501 rm -rf conftest.dSYM
6502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6506 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6507 $as_echo "$ac_cv_sizeof_int" >&6; }
6511 cat >>confdefs.h <<_ACEOF
6512 #define SIZEOF_INT $ac_cv_sizeof_int
6516 # The cast to long int works around a bug in the HP C Compiler
6517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6519 # This bug is HP SR number 8606223364.
6520 { $as_echo "$as_me:$LINENO: checking size of long" >&5
6521 $as_echo_n "checking size of long... " >&6; }
6522 if test "${ac_cv_sizeof_long+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6525 if test "$cross_compiling" = yes; then
6526 # Depending upon the size, compute the lo and hi bounds.
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6537 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6554 grep -v '^ *+' conftest.er1 >conftest.err
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6574 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6581 rm -f conftest.$ac_objext
6582 if { (ac_try="$ac_compile"
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6588 $as_echo "$ac_try_echo") >&5
6589 (eval "$ac_compile") 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_objext; then
6599 ac_hi=$ac_mid; break
6601 $as_echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_lo=`expr $ac_mid + 1`
6605 if test $ac_lo -le $ac_mid; then
6609 ac_mid=`expr 2 '*' $ac_mid + 1`
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 cat >conftest.$ac_ext <<_ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6628 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6645 grep -v '^ *+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6655 cat >conftest.$ac_ext <<_ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6661 $ac_includes_default
6665 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679 $as_echo "$ac_try_echo") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6682 grep -v '^ *+' conftest.er1 >conftest.err
6684 cat conftest.err >&5
6685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 ac_lo=$ac_mid; break
6692 $as_echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 ac_hi=`expr '(' $ac_mid ')' - 1`
6696 if test $ac_mid -le $ac_hi; then
6700 ac_mid=`expr 2 '*' $ac_mid`
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 $as_echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 # Binary search between lo and hi bounds.
6717 while test "x$ac_lo" != "x$ac_hi"; do
6718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 $ac_includes_default
6729 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6743 $as_echo "$ac_try_echo") >&5
6744 (eval "$ac_compile") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && {
6751 test -z "$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 } && test -s conftest.$ac_objext; then
6756 $as_echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6759 ac_lo=`expr '(' $ac_mid ')' + 1`
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 ?*) ac_cv_sizeof_long=$ac_lo;;
6766 '') if test "$ac_cv_type_long" = yes; then
6767 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6769 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6770 See \`config.log' for more details." >&5
6771 $as_echo "$as_me: error: cannot compute sizeof (long)
6772 See \`config.log' for more details." >&2;}
6773 { (exit 77); exit 77; }; }; }
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6786 static long int longval () { return (long int) (sizeof (long)); }
6787 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
6794 FILE *f = fopen ("conftest.val", "w");
6797 if (((long int) (sizeof (long))) < 0)
6799 long int i = longval ();
6800 if (i != ((long int) (sizeof (long))))
6802 fprintf (f, "%ld", i);
6806 unsigned long int i = ulongval ();
6807 if (i != ((long int) (sizeof (long))))
6809 fprintf (f, "%lu", i);
6811 /* Do not output a trailing newline, as this causes \r\n confusion
6812 on some platforms. */
6813 return ferror (f) || fclose (f) != 0;
6819 rm -f conftest$ac_exeext
6820 if { (ac_try="$ac_link"
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826 $as_echo "$ac_try_echo") >&5
6827 (eval "$ac_link") 2>&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6831 { (case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6836 $as_echo "$ac_try_echo") >&5
6837 (eval "$ac_try") 2>&5
6839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_cv_sizeof_long=`cat conftest.val`
6843 $as_echo "$as_me: program exited with status $ac_status" >&5
6844 $as_echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6848 if test "$ac_cv_type_long" = yes; then
6849 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6851 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6852 See \`config.log' for more details." >&5
6853 $as_echo "$as_me: error: cannot compute sizeof (long)
6854 See \`config.log' for more details." >&2;}
6855 { (exit 77); exit 77; }; }; }
6860 rm -rf conftest.dSYM
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6865 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6866 $as_echo "$ac_cv_sizeof_long" >&6; }
6870 cat >>confdefs.h <<_ACEOF
6871 #define SIZEOF_LONG $ac_cv_sizeof_long
6875 # The cast to long int works around a bug in the HP C Compiler
6876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6878 # This bug is HP SR number 8606223364.
6879 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6880 $as_echo_n "checking size of void *... " >&6; }
6881 if test "${ac_cv_sizeof_void_p+set}" = set; then
6882 $as_echo_n "(cached) " >&6
6884 if test "$cross_compiling" = yes; then
6885 # Depending upon the size, compute the lo and hi bounds.
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6896 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6903 rm -f conftest.$ac_objext
6904 if { (ac_try="$ac_compile"
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6910 $as_echo "$ac_try_echo") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.$ac_objext; then
6923 cat >conftest.$ac_ext <<_ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 $ac_includes_default
6933 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6947 $as_echo "$ac_try_echo") >&5
6948 (eval "$ac_compile") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } && {
6955 test -z "$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6957 } && test -s conftest.$ac_objext; then
6958 ac_hi=$ac_mid; break
6960 $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_lo=`expr $ac_mid + 1`
6964 if test $ac_lo -le $ac_mid; then
6968 ac_mid=`expr 2 '*' $ac_mid + 1`
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6987 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6994 rm -f conftest.$ac_objext
6995 if { (ac_try="$ac_compile"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7001 $as_echo "$ac_try_echo") >&5
7002 (eval "$ac_compile") 2>conftest.er1
7004 grep -v '^ *+' conftest.er1 >conftest.err
7006 cat conftest.err >&5
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } && {
7009 test -z "$ac_c_werror_flag" ||
7010 test ! -s conftest.err
7011 } && test -s conftest.$ac_objext; then
7014 cat >conftest.$ac_ext <<_ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 $ac_includes_default
7024 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_compile") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1 >conftest.err
7043 cat conftest.err >&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } && {
7046 test -z "$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 } && test -s conftest.$ac_objext; then
7049 ac_lo=$ac_mid; break
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_hi=`expr '(' $ac_mid ')' - 1`
7055 if test $ac_mid -le $ac_hi; then
7059 ac_mid=`expr 2 '*' $ac_mid`
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 $as_echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 # Binary search between lo and hi bounds.
7076 while test "x$ac_lo" != "x$ac_hi"; do
7077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 $ac_includes_default
7088 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7102 $as_echo "$ac_try_echo") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7105 grep -v '^ *+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7115 $as_echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_lo=`expr '(' $ac_mid ')' + 1`
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7125 '') if test "$ac_cv_type_void_p" = yes; then
7126 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7128 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7129 See \`config.log' for more details." >&5
7130 $as_echo "$as_me: error: cannot compute sizeof (void *)
7131 See \`config.log' for more details." >&2;}
7132 { (exit 77); exit 77; }; }; }
7134 ac_cv_sizeof_void_p=0
7138 cat >conftest.$ac_ext <<_ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 $ac_includes_default
7145 static long int longval () { return (long int) (sizeof (void *)); }
7146 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
7153 FILE *f = fopen ("conftest.val", "w");
7156 if (((long int) (sizeof (void *))) < 0)
7158 long int i = longval ();
7159 if (i != ((long int) (sizeof (void *))))
7161 fprintf (f, "%ld", i);
7165 unsigned long int i = ulongval ();
7166 if (i != ((long int) (sizeof (void *))))
7168 fprintf (f, "%lu", i);
7170 /* Do not output a trailing newline, as this causes \r\n confusion
7171 on some platforms. */
7172 return ferror (f) || fclose (f) != 0;
7178 rm -f conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186 (eval "$ac_link") 2>&5
7188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7190 { (case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7195 $as_echo "$ac_try_echo") >&5
7196 (eval "$ac_try") 2>&5
7198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_sizeof_void_p=`cat conftest.val`
7202 $as_echo "$as_me: program exited with status $ac_status" >&5
7203 $as_echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7207 if test "$ac_cv_type_void_p" = yes; then
7208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7211 See \`config.log' for more details." >&5
7212 $as_echo "$as_me: error: cannot compute sizeof (void *)
7213 See \`config.log' for more details." >&2;}
7214 { (exit 77); exit 77; }; }; }
7216 ac_cv_sizeof_void_p=0
7219 rm -rf conftest.dSYM
7220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7225 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7229 cat >>confdefs.h <<_ACEOF
7230 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7234 # The cast to long int works around a bug in the HP C Compiler
7235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7237 # This bug is HP SR number 8606223364.
7238 { $as_echo "$as_me:$LINENO: checking size of int64_t" >&5
7239 $as_echo_n "checking size of int64_t... " >&6; }
7240 if test "${ac_cv_sizeof_int64_t+set}" = set; then
7241 $as_echo_n "(cached) " >&6
7243 if test "$cross_compiling" = yes; then
7244 # Depending upon the size, compute the lo and hi bounds.
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7255 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) >= 0)];
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7292 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) <= $ac_mid)];
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1 >conftest.err
7311 cat conftest.err >&5
7312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.$ac_objext; then
7317 ac_hi=$ac_mid; break
7319 $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 ac_lo=`expr $ac_mid + 1`
7323 if test $ac_lo -le $ac_mid; then
7327 ac_mid=`expr 2 '*' $ac_mid + 1`
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7346 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) < 0)];
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7383 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) >= $ac_mid)];
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7397 $as_echo "$ac_try_echo") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7408 ac_lo=$ac_mid; break
7410 $as_echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 ac_hi=`expr '(' $ac_mid ')' - 1`
7414 if test $ac_mid -le $ac_hi; then
7418 ac_mid=`expr 2 '*' $ac_mid`
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 # Binary search between lo and hi bounds.
7435 while test "x$ac_lo" != "x$ac_hi"; do
7436 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7447 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) <= $ac_mid)];
7454 rm -f conftest.$ac_objext
7455 if { (ac_try="$ac_compile"
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461 $as_echo "$ac_try_echo") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7474 $as_echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_lo=`expr '(' $ac_mid ')' + 1`
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7484 '') if test "$ac_cv_type_int64_t" = yes; then
7485 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7487 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7488 See \`config.log' for more details." >&5
7489 $as_echo "$as_me: error: cannot compute sizeof (int64_t)
7490 See \`config.log' for more details." >&2;}
7491 { (exit 77); exit 77; }; }; }
7493 ac_cv_sizeof_int64_t=0
7497 cat >conftest.$ac_ext <<_ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 $ac_includes_default
7504 static long int longval () { return (long int) (sizeof (int64_t)); }
7505 static unsigned long int ulongval () { return (long int) (sizeof (int64_t)); }
7512 FILE *f = fopen ("conftest.val", "w");
7515 if (((long int) (sizeof (int64_t))) < 0)
7517 long int i = longval ();
7518 if (i != ((long int) (sizeof (int64_t))))
7520 fprintf (f, "%ld", i);
7524 unsigned long int i = ulongval ();
7525 if (i != ((long int) (sizeof (int64_t))))
7527 fprintf (f, "%lu", i);
7529 /* Do not output a trailing newline, as this causes \r\n confusion
7530 on some platforms. */
7531 return ferror (f) || fclose (f) != 0;
7537 rm -f conftest$ac_exeext
7538 if { (ac_try="$ac_link"
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7544 $as_echo "$ac_try_echo") >&5
7545 (eval "$ac_link") 2>&5
7547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7549 { (case "(($ac_try" in
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555 (eval "$ac_try") 2>&5
7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_sizeof_int64_t=`cat conftest.val`
7561 $as_echo "$as_me: program exited with status $ac_status" >&5
7562 $as_echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7566 if test "$ac_cv_type_int64_t" = yes; then
7567 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7569 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7570 See \`config.log' for more details." >&5
7571 $as_echo "$as_me: error: cannot compute sizeof (int64_t)
7572 See \`config.log' for more details." >&2;}
7573 { (exit 77); exit 77; }; }; }
7575 ac_cv_sizeof_int64_t=0
7578 rm -rf conftest.dSYM
7579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7583 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7584 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
7588 cat >>confdefs.h <<_ACEOF
7589 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7593 # The cast to long int works around a bug in the HP C Compiler
7594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7596 # This bug is HP SR number 8606223364.
7597 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
7598 $as_echo_n "checking size of long long... " >&6; }
7599 if test "${ac_cv_sizeof_long_long+set}" = set; then
7600 $as_echo_n "(cached) " >&6
7602 if test "$cross_compiling" = yes; then
7603 # Depending upon the size, compute the lo and hi bounds.
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 $ac_includes_default
7614 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628 $as_echo "$ac_try_echo") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1 >conftest.err
7633 cat conftest.err >&5
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7641 cat >conftest.$ac_ext <<_ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7647 $ac_includes_default
7651 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666 (eval "$ac_compile") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest.$ac_objext; then
7676 ac_hi=$ac_mid; break
7678 $as_echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_lo=`expr $ac_mid + 1`
7682 if test $ac_lo -le $ac_mid; then
7686 ac_mid=`expr 2 '*' $ac_mid + 1`
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 $as_echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 cat >conftest.$ac_ext <<_ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 $ac_includes_default
7705 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.$ac_objext; then
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 $ac_includes_default
7742 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_compile") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest.$ac_objext; then
7767 ac_lo=$ac_mid; break
7769 $as_echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7772 ac_hi=`expr '(' $ac_mid ')' - 1`
7773 if test $ac_mid -le $ac_hi; then
7777 ac_mid=`expr 2 '*' $ac_mid`
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 $as_echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 # Binary search between lo and hi bounds.
7794 while test "x$ac_lo" != "x$ac_hi"; do
7795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 $ac_includes_default
7806 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7813 rm -f conftest.$ac_objext
7814 if { (ac_try="$ac_compile"
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820 $as_echo "$ac_try_echo") >&5
7821 (eval "$ac_compile") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && {
7828 test -z "$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 } && test -s conftest.$ac_objext; then
7833 $as_echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_lo=`expr '(' $ac_mid ')' + 1`
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7843 '') if test "$ac_cv_type_long_long" = yes; then
7844 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7847 See \`config.log' for more details." >&5
7848 $as_echo "$as_me: error: cannot compute sizeof (long long)
7849 See \`config.log' for more details." >&2;}
7850 { (exit 77); exit 77; }; }; }
7852 ac_cv_sizeof_long_long=0
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 static long int longval () { return (long int) (sizeof (long long)); }
7864 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
7871 FILE *f = fopen ("conftest.val", "w");
7874 if (((long int) (sizeof (long long))) < 0)
7876 long int i = longval ();
7877 if (i != ((long int) (sizeof (long long))))
7879 fprintf (f, "%ld", i);
7883 unsigned long int i = ulongval ();
7884 if (i != ((long int) (sizeof (long long))))
7886 fprintf (f, "%lu", i);
7888 /* Do not output a trailing newline, as this causes \r\n confusion
7889 on some platforms. */
7890 return ferror (f) || fclose (f) != 0;
7896 rm -f conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_link") 2>&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7908 { (case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914 (eval "$ac_try") 2>&5
7916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_sizeof_long_long=`cat conftest.val`
7920 $as_echo "$as_me: program exited with status $ac_status" >&5
7921 $as_echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7925 if test "$ac_cv_type_long_long" = yes; then
7926 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7928 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7929 See \`config.log' for more details." >&5
7930 $as_echo "$as_me: error: cannot compute sizeof (long long)
7931 See \`config.log' for more details." >&2;}
7932 { (exit 77); exit 77; }; }; }
7934 ac_cv_sizeof_long_long=0
7937 rm -rf conftest.dSYM
7938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7943 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7947 cat >>confdefs.h <<_ACEOF
7948 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7952 if test "$ac_cv_sizeof_int" = 2 ; then
7953 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7954 $as_echo_n "checking for int16_t... " >&6; }
7955 if test "${ac_cv_type_int16_t+set}" = set; then
7956 $as_echo_n "(cached) " >&6
7958 ac_cv_type_int16_t=no
7959 cat >conftest.$ac_ext <<_ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 $ac_includes_default
7969 if (sizeof (int16_t))
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979 *) ac_try_echo=$ac_try;;
7981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7982 $as_echo "$ac_try_echo") >&5
7983 (eval "$ac_compile") 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && {
7990 test -z "$ac_c_werror_flag" ||
7991 test ! -s conftest.err
7992 } && test -s conftest.$ac_objext; then
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8003 if (sizeof ((int16_t)))
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8016 $as_echo "$ac_try_echo") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8029 $as_echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_cv_type_int16_t=yes
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 $as_echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8046 $as_echo "$ac_cv_type_int16_t" >&6; }
8047 if test "x$ac_cv_type_int16_t" = x""yes; then
8051 cat >>confdefs.h <<_ACEOF
8057 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8058 $as_echo_n "checking for uint16_t... " >&6; }
8059 if test "${ac_cv_type_uint16_t+set}" = set; then
8060 $as_echo_n "(cached) " >&6
8062 ac_cv_type_uint16_t=no
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 $ac_includes_default
8073 if (sizeof (uint16_t))
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8107 if (sizeof ((uint16_t)))
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then
8133 $as_echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_type_uint16_t=yes
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 $as_echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8150 $as_echo "$ac_cv_type_uint16_t" >&6; }
8151 if test "x$ac_cv_type_uint16_t" = x""yes; then
8155 cat >>confdefs.h <<_ACEOF
8156 #define uint16_t unsigned int
8161 elif test "$ac_cv_sizeof_short" = 2 ; then
8162 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
8163 $as_echo_n "checking for int16_t... " >&6; }
8164 if test "${ac_cv_type_int16_t+set}" = set; then
8165 $as_echo_n "(cached) " >&6
8167 ac_cv_type_int16_t=no
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8178 if (sizeof (int16_t))
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 $ac_includes_default
8212 if (sizeof ((int16_t)))
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8225 $as_echo "$ac_try_echo") >&5
8226 (eval "$ac_compile") 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && {
8233 test -z "$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 } && test -s conftest.$ac_objext; then
8238 $as_echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_type_int16_t=yes
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 $as_echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8255 $as_echo "$ac_cv_type_int16_t" >&6; }
8256 if test "x$ac_cv_type_int16_t" = x""yes; then
8260 cat >>confdefs.h <<_ACEOF
8261 #define int16_t short
8266 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8267 $as_echo_n "checking for uint16_t... " >&6; }
8268 if test "${ac_cv_type_uint16_t+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8271 ac_cv_type_uint16_t=no
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8282 if (sizeof (uint16_t))
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8316 if (sizeof ((uint16_t)))
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8342 $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_cv_type_uint16_t=yes
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8359 $as_echo "$ac_cv_type_uint16_t" >&6; }
8360 if test "x$ac_cv_type_uint16_t" = x""yes; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define uint16_t unsigned short
8371 { { $as_echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
8372 $as_echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
8373 { (exit 1); exit 1; }; }
8375 if test "$ac_cv_sizeof_int" = 4 ; then
8376 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8377 $as_echo_n "checking for int32_t... " >&6; }
8378 if test "${ac_cv_type_int32_t+set}" = set; then
8379 $as_echo_n "(cached) " >&6
8381 ac_cv_type_int32_t=no
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8392 if (sizeof (int32_t))
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8405 $as_echo "$ac_try_echo") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 cat >conftest.$ac_ext <<_ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8426 if (sizeof ((int32_t)))
8432 rm -f conftest.$ac_objext
8433 if { (ac_try="$ac_compile"
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8439 $as_echo "$ac_try_echo") >&5
8440 (eval "$ac_compile") 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } && {
8447 test -z "$ac_c_werror_flag" ||
8448 test ! -s conftest.err
8449 } && test -s conftest.$ac_objext; then
8452 $as_echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8455 ac_cv_type_int32_t=yes
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 $as_echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8469 $as_echo "$ac_cv_type_int32_t" >&6; }
8470 if test "x$ac_cv_type_int32_t" = x""yes; then
8474 cat >>confdefs.h <<_ACEOF
8480 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8481 $as_echo_n "checking for uint32_t... " >&6; }
8482 if test "${ac_cv_type_uint32_t+set}" = set; then
8483 $as_echo_n "(cached) " >&6
8485 ac_cv_type_uint32_t=no
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8496 if (sizeof (uint32_t))
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8509 $as_echo "$ac_try_echo") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest.$ac_objext; then
8520 cat >conftest.$ac_ext <<_ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 $ac_includes_default
8530 if (sizeof ((uint32_t)))
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8543 $as_echo "$ac_try_echo") >&5
8544 (eval "$ac_compile") 2>conftest.er1
8546 grep -v '^ *+' conftest.er1 >conftest.err
8548 cat conftest.err >&5
8549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } && {
8551 test -z "$ac_c_werror_flag" ||
8552 test ! -s conftest.err
8553 } && test -s conftest.$ac_objext; then
8556 $as_echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_type_uint32_t=yes
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8573 $as_echo "$ac_cv_type_uint32_t" >&6; }
8574 if test "x$ac_cv_type_uint32_t" = x""yes; then
8578 cat >>confdefs.h <<_ACEOF
8579 #define uint32_t unsigned int
8584 elif test "$ac_cv_sizeof_short" = 4 ; then
8585 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8586 $as_echo_n "checking for int32_t... " >&6; }
8587 if test "${ac_cv_type_int32_t+set}" = set; then
8588 $as_echo_n "(cached) " >&6
8590 ac_cv_type_int32_t=no
8591 cat >conftest.$ac_ext <<_ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8601 if (sizeof (int32_t))
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8614 $as_echo "$ac_try_echo") >&5
8615 (eval "$ac_compile") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest.$ac_objext; then
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8635 if (sizeof ((int32_t)))
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649 (eval "$ac_compile") 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest.$ac_objext; then
8661 $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ac_cv_type_int32_t=yes
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8678 $as_echo "$ac_cv_type_int32_t" >&6; }
8679 if test "x$ac_cv_type_int32_t" = x""yes; then
8683 cat >>confdefs.h <<_ACEOF
8684 #define int32_t short
8689 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8690 $as_echo_n "checking for uint32_t... " >&6; }
8691 if test "${ac_cv_type_uint32_t+set}" = set; then
8692 $as_echo_n "(cached) " >&6
8694 ac_cv_type_uint32_t=no
8695 cat >conftest.$ac_ext <<_ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 $ac_includes_default
8705 if (sizeof (uint32_t))
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8718 $as_echo "$ac_try_echo") >&5
8719 (eval "$ac_compile") 2>conftest.er1
8721 grep -v '^ *+' conftest.er1 >conftest.err
8723 cat conftest.err >&5
8724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && {
8726 test -z "$ac_c_werror_flag" ||
8727 test ! -s conftest.err
8728 } && test -s conftest.$ac_objext; then
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 $ac_includes_default
8739 if (sizeof ((uint32_t)))
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8765 $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_type_uint32_t=yes
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773 $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8782 $as_echo "$ac_cv_type_uint32_t" >&6; }
8783 if test "x$ac_cv_type_uint32_t" = x""yes; then
8787 cat >>confdefs.h <<_ACEOF
8788 #define uint32_t unsigned short
8793 elif test "$ac_cv_sizeof_long" = 4 ; then
8794 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8795 $as_echo_n "checking for int32_t... " >&6; }
8796 if test "${ac_cv_type_int32_t+set}" = set; then
8797 $as_echo_n "(cached) " >&6
8799 ac_cv_type_int32_t=no
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8810 if (sizeof (int32_t))
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8823 $as_echo "$ac_try_echo") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 $ac_includes_default
8844 if (sizeof ((int32_t)))
8850 rm -f conftest.$ac_objext
8851 if { (ac_try="$ac_compile"
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8857 $as_echo "$ac_try_echo") >&5
8858 (eval "$ac_compile") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } && {
8865 test -z "$ac_c_werror_flag" ||
8866 test ! -s conftest.err
8867 } && test -s conftest.$ac_objext; then
8870 $as_echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 ac_cv_type_int32_t=yes
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 $as_echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8887 $as_echo "$ac_cv_type_int32_t" >&6; }
8888 if test "x$ac_cv_type_int32_t" = x""yes; then
8892 cat >>confdefs.h <<_ACEOF
8893 #define int32_t long
8898 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8899 $as_echo_n "checking for uint32_t... " >&6; }
8900 if test "${ac_cv_type_uint32_t+set}" = set; then
8901 $as_echo_n "(cached) " >&6
8903 ac_cv_type_uint32_t=no
8904 cat >conftest.$ac_ext <<_ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8910 $ac_includes_default
8914 if (sizeof (uint32_t))
8920 rm -f conftest.$ac_objext
8921 if { (ac_try="$ac_compile"
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927 $as_echo "$ac_try_echo") >&5
8928 (eval "$ac_compile") 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } && {
8935 test -z "$ac_c_werror_flag" ||
8936 test ! -s conftest.err
8937 } && test -s conftest.$ac_objext; then
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 $ac_includes_default
8948 if (sizeof ((uint32_t)))
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8961 $as_echo "$ac_try_echo") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8974 $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_type_uint32_t=yes
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 $as_echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8991 $as_echo "$ac_cv_type_uint32_t" >&6; }
8992 if test "x$ac_cv_type_uint32_t" = x""yes; then
8996 cat >>confdefs.h <<_ACEOF
8997 #define uint32_t unsigned long
9003 { { $as_echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
9004 $as_echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
9005 { (exit 1); exit 1; }; }
9007 if test "$ac_cv_sizeof_int64_t" = 8 ; then
9008 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
9009 $as_echo_n "checking for int64_t... " >&6; }
9010 if test "${ac_cv_type_int64_t+set}" = set; then
9011 $as_echo_n "(cached) " >&6
9013 ac_cv_type_int64_t=no
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020 $ac_includes_default
9024 if (sizeof (int64_t))
9030 rm -f conftest.$ac_objext
9031 if { (ac_try="$ac_compile"
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038 (eval "$ac_compile") 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest.$ac_objext; then
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 $ac_includes_default
9058 if (sizeof ((int64_t)))
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9074 grep -v '^ *+' conftest.er1 >conftest.err
9076 cat conftest.err >&5
9077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && {
9079 test -z "$ac_c_werror_flag" ||
9080 test ! -s conftest.err
9081 } && test -s conftest.$ac_objext; then
9084 $as_echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_cv_type_int64_t=yes
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 $as_echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9101 $as_echo "$ac_cv_type_int64_t" >&6; }
9103 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
9104 $as_echo_n "checking for uint64_t... " >&6; }
9105 if test "${ac_cv_type_uint64_t+set}" = set; then
9106 $as_echo_n "(cached) " >&6
9108 ac_cv_type_uint64_t=no
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 $ac_includes_default
9119 if (sizeof (uint64_t))
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9132 $as_echo "$ac_try_echo") >&5
9133 (eval "$ac_compile") 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest.$ac_objext; then
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9153 if (sizeof ((uint64_t)))
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9166 $as_echo "$ac_try_echo") >&5
9167 (eval "$ac_compile") 2>conftest.er1
9169 grep -v '^ *+' conftest.er1 >conftest.err
9171 cat conftest.err >&5
9172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } && {
9174 test -z "$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 } && test -s conftest.$ac_objext; then
9179 $as_echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_cv_type_uint64_t=yes
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9196 $as_echo "$ac_cv_type_uint64_t" >&6; }
9198 elif test "$ac_cv_sizeof_long_long" = 8 ; then
9199 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
9200 $as_echo_n "checking for int64_t... " >&6; }
9201 if test "${ac_cv_type_int64_t+set}" = set; then
9202 $as_echo_n "(cached) " >&6
9204 ac_cv_type_int64_t=no
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9215 if (sizeof (int64_t))
9221 rm -f conftest.$ac_objext
9222 if { (ac_try="$ac_compile"
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9228 $as_echo "$ac_try_echo") >&5
9229 (eval "$ac_compile") 2>conftest.er1
9231 grep -v '^ *+' conftest.er1 >conftest.err
9233 cat conftest.err >&5
9234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && {
9236 test -z "$ac_c_werror_flag" ||
9237 test ! -s conftest.err
9238 } && test -s conftest.$ac_objext; then
9239 cat >conftest.$ac_ext <<_ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 $ac_includes_default
9249 if (sizeof ((int64_t)))
9255 rm -f conftest.$ac_objext
9256 if { (ac_try="$ac_compile"
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9262 $as_echo "$ac_try_echo") >&5
9263 (eval "$ac_compile") 2>conftest.er1
9265 grep -v '^ *+' conftest.er1 >conftest.err
9267 cat conftest.err >&5
9268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } && {
9270 test -z "$ac_c_werror_flag" ||
9271 test ! -s conftest.err
9272 } && test -s conftest.$ac_objext; then
9275 $as_echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 ac_cv_type_int64_t=yes
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9292 $as_echo "$ac_cv_type_int64_t" >&6; }
9293 if test "x$ac_cv_type_int64_t" = x""yes; then
9297 cat >>confdefs.h <<_ACEOF
9298 #define int64_t long long
9303 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
9304 $as_echo_n "checking for uint64_t... " >&6; }
9305 if test "${ac_cv_type_uint64_t+set}" = set; then
9306 $as_echo_n "(cached) " >&6
9308 ac_cv_type_uint64_t=no
9309 cat >conftest.$ac_ext <<_ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9315 $ac_includes_default
9319 if (sizeof (uint64_t))
9325 rm -f conftest.$ac_objext
9326 if { (ac_try="$ac_compile"
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9332 $as_echo "$ac_try_echo") >&5
9333 (eval "$ac_compile") 2>conftest.er1
9335 grep -v '^ *+' conftest.er1 >conftest.err
9337 cat conftest.err >&5
9338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } && {
9340 test -z "$ac_c_werror_flag" ||
9341 test ! -s conftest.err
9342 } && test -s conftest.$ac_objext; then
9343 cat >conftest.$ac_ext <<_ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349 $ac_includes_default
9353 if (sizeof ((uint64_t)))
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9366 $as_echo "$ac_try_echo") >&5
9367 (eval "$ac_compile") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest.$ac_objext; then
9379 $as_echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_cv_type_uint64_t=yes
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 $as_echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9396 $as_echo "$ac_cv_type_uint64_t" >&6; }
9397 if test "x$ac_cv_type_uint64_t" = x""yes; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define uint64_t unsigned long long
9408 { { $as_echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
9409 $as_echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
9410 { (exit 1); exit 1; }; }
9412 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
9413 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
9414 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
9415 $as_echo_n "(cached) " >&6
9417 ac_cv_type_struct_sockaddr_in6=no
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 #include <sys/types.h>
9425 #include <netinet/in.h>
9430 if (sizeof (struct sockaddr_in6))
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9443 $as_echo "$ac_try_echo") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9460 #include <sys/types.h>
9461 #include <netinet/in.h>
9466 if (sizeof ((struct sockaddr_in6)))
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9479 $as_echo "$ac_try_echo") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.$ac_objext; then
9492 $as_echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_type_struct_sockaddr_in6=yes
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500 $as_echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
9509 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
9510 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
9511 unet_have_sockaddr_in6="yes"
9513 unet_have_sockaddr_in6="no"
9517 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
9518 $as_echo_n "checking for socklen_t... " >&6; }
9519 if test "${ac_cv_type_socklen_t+set}" = set; then
9520 $as_echo_n "(cached) " >&6
9522 ac_cv_type_socklen_t=no
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 #include <sys/types.h>
9530 #include<sys/socket.h>
9535 if (sizeof (socklen_t))
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549 (eval "$ac_compile") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1 >conftest.err
9553 cat conftest.err >&5
9554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && {
9556 test -z "$ac_c_werror_flag" ||
9557 test ! -s conftest.err
9558 } && test -s conftest.$ac_objext; then
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 #include <sys/types.h>
9566 #include<sys/socket.h>
9571 if (sizeof ((socklen_t)))
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9597 $as_echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_type_socklen_t=yes
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 $as_echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
9614 $as_echo "$ac_cv_type_socklen_t" >&6; }
9615 if test "x$ac_cv_type_socklen_t" = x""yes; then
9619 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
9620 $as_echo_n "checking for socklen_t equivalent... " >&6; }
9621 if test "${curl_cv_socklen_t_equiv+set}" = set; then
9622 $as_echo_n "(cached) " >&6
9625 curl_cv_socklen_t_equiv=
9626 for arg2 in "struct sockaddr" void ; do
9627 for t in int size_t unsigned long "unsigned long" ; do
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9635 #include <sys/socket.h>
9636 int getpeername (int $arg2 *, $t *);
9641 getpeername(0, 0, &len);
9646 rm -f conftest.$ac_objext
9647 if { (ac_try="$ac_compile"
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654 (eval "$ac_compile") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest.$ac_objext; then
9664 curl_cv_socklen_t_equiv="$t"
9667 $as_echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 { $as_echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
9680 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
9682 cat >>confdefs.h <<_ACEOF
9683 #define socklen_t $curl_cv_socklen_t_equiv
9693 for ac_func in kqueue setrlimit getrusage times
9695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9696 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9697 $as_echo_n "checking for $ac_func... " >&6; }
9698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9699 $as_echo_n "(cached) " >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9709 #define $ac_func innocuous_$ac_func
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char $ac_func (); below.
9713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714 <limits.h> exists even on freestanding compilers. */
9717 # include <limits.h>
9719 # include <assert.h>
9724 /* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9731 /* The GNU C library defines this for functions which it implements
9732 to always fail with ENOSYS. Some functions are actually named
9733 something starting with __ and the normal name is an alias. */
9734 #if defined __stub_$ac_func || defined __stub___$ac_func
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753 $as_echo "$ac_try_echo") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext && {
9764 test "$cross_compiling" = yes ||
9765 $as_test_x conftest$ac_exeext
9767 eval "$as_ac_var=yes"
9769 $as_echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 eval "$as_ac_var=no"
9775 rm -rf conftest.dSYM
9776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9777 conftest$ac_exeext conftest.$ac_ext
9779 ac_res=`eval 'as_val=${'$as_ac_var'}
9780 $as_echo "$as_val"'`
9781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9782 $as_echo "$ac_res" >&6; }
9783 as_val=`eval 'as_val=${'$as_ac_var'}
9784 $as_echo "$as_val"'`
9785 if test "x$as_val" = x""yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9794 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9795 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9796 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9797 $as_echo_n "(cached) " >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #include <sys/types.h>
9806 #include <sys/wait.h>
9808 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9811 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9819 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831 $as_echo "$ac_try_echo") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_cv_header_sys_wait_h=yes
9844 $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_cv_header_sys_wait_h=no
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9853 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9854 if test $ac_cv_header_sys_wait_h = yes; then
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_SYS_WAIT_H 1
9862 { $as_echo "$as_me:$LINENO: checking for restartable system calls" >&5
9863 $as_echo_n "checking for restartable system calls... " >&6; }
9864 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
9865 $as_echo_n "(cached) " >&6
9867 if test "$cross_compiling" = yes; then
9868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9870 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9871 See \`config.log' for more details." >&5
9872 $as_echo "$as_me: error: cannot run test program while cross compiling
9873 See \`config.log' for more details." >&2;}
9874 { (exit 1); exit 1; }; }; }
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 /* Exit 0 (true) if wait returns something other than -1,
9883 i.e. the pid of the child, which means that wait was restarted
9884 after getting the signal. */
9886 $ac_includes_default
9888 #ifdef HAVE_SYS_WAIT_H
9889 # include <sys/wait.h>
9892 /* Some platforms explicitly require an extern "C" signal handler
9895 extern "C" void ucatch (int dummy) { }
9897 void ucatch (dummy) int dummy; { }
9903 int i = fork (), status;
9908 kill (getppid (), SIGINT);
9913 signal (SIGINT, ucatch);
9919 return status == -1;
9922 rm -f conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_link") 2>&5
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9934 { (case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9939 $as_echo "$ac_try_echo") >&5
9940 (eval "$ac_try") 2>&5
9942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_sys_restartable_syscalls=yes
9946 $as_echo "$as_me: program exited with status $ac_status" >&5
9947 $as_echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_sys_restartable_syscalls=no
9953 rm -rf conftest.dSYM
9954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9959 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
9960 $as_echo "$ac_cv_sys_restartable_syscalls" >&6; }
9961 if test $ac_cv_sys_restartable_syscalls = yes; then
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_RESTARTABLE_SYSCALLS 1
9970 { $as_echo "$as_me:$LINENO: checking for donuts" >&5
9971 $as_echo_n "checking for donuts... " >&6; }
9972 { $as_echo "$as_me:$LINENO: result: yes" >&5
9973 $as_echo "yes" >&6; }
9975 for ac_prog in gawk mawk nawk awk
9977 # Extract the first word of "$ac_prog", so it can be a program name with args.
9978 set dummy $ac_prog; ac_word=$2
9979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if test "${ac_cv_prog_AWK+set}" = set; then
9982 $as_echo_n "(cached) " >&6
9984 if test -n "$AWK"; then
9985 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_prog_AWK="$ac_prog"
9995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 AWK=$ac_cv_prog_AWK
10005 if test -n "$AWK"; then
10006 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10007 $as_echo "$AWK" >&6; }
10009 { $as_echo "$as_me:$LINENO: result: no" >&5
10010 $as_echo "no" >&6; }
10014 test -n "$AWK" && break
10017 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10018 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10020 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10021 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10022 $as_echo_n "(cached) " >&6
10024 cat >conftest.make <<\_ACEOF
10027 @echo '@@@%%%=$(MAKE)=@@@%%%'
10029 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10030 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10031 *@@@%%%=?*=@@@%%%*)
10032 eval ac_cv_prog_make_${ac_make}_set=yes;;
10034 eval ac_cv_prog_make_${ac_make}_set=no;;
10036 rm -f conftest.make
10038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10039 { $as_echo "$as_me:$LINENO: result: yes" >&5
10040 $as_echo "yes" >&6; }
10043 { $as_echo "$as_me:$LINENO: result: no" >&5
10044 $as_echo "no" >&6; }
10045 SET_MAKE="MAKE=${MAKE-make}"
10048 # Find a good install program. We prefer a C program (faster),
10049 # so one script is as good as another. But avoid the broken or
10050 # incompatible versions:
10051 # SysV /etc/install, /usr/sbin/install
10052 # SunOS /usr/etc/install
10053 # IRIX /sbin/install
10055 # AmigaOS /C/install, which installs bootblocks on floppy discs
10056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10059 # OS/2's system install, which has a completely different semantic
10060 # ./install, which can be erroneously created by make from ./install.sh.
10061 # Reject install programs that cannot install multiple files.
10062 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10063 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10064 if test -z "$INSTALL"; then
10065 if test "${ac_cv_path_install+set}" = set; then
10066 $as_echo_n "(cached) " >&6
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10072 test -z "$as_dir" && as_dir=.
10073 # Account for people who put trailing slashes in PATH elements.
10075 ./ | .// | /cC/* | \
10076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10080 # OSF1 and SCO ODT 3.0 have their own names for install.
10081 # Don't use installbsd from OSF since it installs stuff as root
10083 for ac_prog in ginstall scoinst install; do
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10086 if test $ac_prog = install &&
10087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10088 # AIX install. It has an incompatible calling convention.
10090 elif test $ac_prog = install &&
10091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10092 # program-specific install script used by HP pwplus--don't use.
10095 rm -rf conftest.one conftest.two conftest.dir
10096 echo one > conftest.one
10097 echo two > conftest.two
10099 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10100 test -s conftest.one && test -s conftest.two &&
10101 test -s conftest.dir/conftest.one &&
10102 test -s conftest.dir/conftest.two
10104 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10117 rm -rf conftest.one conftest.two conftest.dir
10120 if test "${ac_cv_path_install+set}" = set; then
10121 INSTALL=$ac_cv_path_install
10123 # As a last resort, use the slow shell script. Don't cache a
10124 # value for INSTALL within a source directory, because that will
10125 # break other packages using the cache if that directory is
10126 # removed, or if the value is a relative name.
10127 INSTALL=$ac_install_sh
10130 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10131 $as_echo "$INSTALL" >&6; }
10133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10134 # It thinks the first close brace ends the variable substitution.
10135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10141 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
10142 $as_echo_n "checking whether ln -s works... " >&6; }
10144 if test "$LN_S" = "ln -s"; then
10145 { $as_echo "$as_me:$LINENO: result: yes" >&5
10146 $as_echo "yes" >&6; }
10148 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10149 $as_echo "no, using $LN_S" >&6; }
10154 # Extract the first word of "$ac_prog", so it can be a program name with args.
10155 set dummy $ac_prog; ac_word=$2
10156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if test "${ac_cv_path_RMPROG+set}" = set; then
10159 $as_echo_n "(cached) " >&6
10163 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
10174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 RMPROG=$ac_cv_path_RMPROG
10185 if test -n "$RMPROG"; then
10186 { $as_echo "$as_me:$LINENO: result: $RMPROG" >&5
10187 $as_echo "$RMPROG" >&6; }
10189 { $as_echo "$as_me:$LINENO: result: no" >&5
10190 $as_echo "no" >&6; }
10194 test -n "$RMPROG" && break
10196 test -n "$RMPROG" || RMPROG="/bin/rm"
10200 # Extract the first word of "$ac_prog", so it can be a program name with args.
10201 set dummy $ac_prog; ac_word=$2
10202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if test "${ac_cv_path_SHPROG+set}" = set; then
10205 $as_echo_n "(cached) " >&6
10209 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10216 test -z "$as_dir" && as_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10219 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
10220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 SHPROG=$ac_cv_path_SHPROG
10231 if test -n "$SHPROG"; then
10232 { $as_echo "$as_me:$LINENO: result: $SHPROG" >&5
10233 $as_echo "$SHPROG" >&6; }
10235 { $as_echo "$as_me:$LINENO: result: no" >&5
10236 $as_echo "no" >&6; }
10240 test -n "$SHPROG" && break
10242 test -n "$SHPROG" || SHPROG="/bin/sh"
10245 for ac_prog in flex lex
10247 # Extract the first word of "$ac_prog", so it can be a program name with args.
10248 set dummy $ac_prog; ac_word=$2
10249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_LEX+set}" = set; then
10252 $as_echo_n "(cached) " >&6
10254 if test -n "$LEX"; then
10255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_LEX="$ac_prog"
10265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 LEX=$ac_cv_prog_LEX
10275 if test -n "$LEX"; then
10276 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
10277 $as_echo "$LEX" >&6; }
10279 { $as_echo "$as_me:$LINENO: result: no" >&5
10280 $as_echo "no" >&6; }
10284 test -n "$LEX" && break
10286 test -n "$LEX" || LEX=":"
10288 if test "x$LEX" != "x:"; then
10289 cat >conftest.l <<_ACEOF
10295 e { yyless (input () != 0); }
10296 f { unput (yytext[0]); }
10297 . { BEGIN INITIAL; }
10299 #ifdef YYTEXT_POINTER
10300 extern char *yytext;
10305 return ! yylex () + ! yywrap ();
10308 { (ac_try="$LEX conftest.l"
10309 case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10314 $as_echo "$ac_try_echo") >&5
10315 (eval "$LEX conftest.l") 2>&5
10317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }
10319 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
10320 $as_echo_n "checking lex output file root... " >&6; }
10321 if test "${ac_cv_prog_lex_root+set}" = set; then
10322 $as_echo_n "(cached) " >&6
10325 if test -f lex.yy.c; then
10326 ac_cv_prog_lex_root=lex.yy
10327 elif test -f lexyy.c; then
10328 ac_cv_prog_lex_root=lexyy
10330 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10331 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10332 { (exit 1); exit 1; }; }
10335 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10336 $as_echo "$ac_cv_prog_lex_root" >&6; }
10337 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10339 if test -z "${LEXLIB+set}"; then
10340 { $as_echo "$as_me:$LINENO: checking lex library" >&5
10341 $as_echo_n "checking lex library... " >&6; }
10342 if test "${ac_cv_lib_lex+set}" = set; then
10343 $as_echo_n "(cached) " >&6
10347 ac_cv_lib_lex='none needed'
10348 for ac_lib in '' -lfl -ll; do
10349 LIBS="$ac_lib $ac_save_LIBS"
10350 cat >conftest.$ac_ext <<_ACEOF
10351 `cat $LEX_OUTPUT_ROOT.c`
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10360 $as_echo "$ac_try_echo") >&5
10361 (eval "$ac_link") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest$ac_exeext && {
10371 test "$cross_compiling" = yes ||
10372 $as_test_x conftest$ac_exeext
10374 ac_cv_lib_lex=$ac_lib
10376 $as_echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10382 rm -rf conftest.dSYM
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384 conftest$ac_exeext conftest.$ac_ext
10385 test "$ac_cv_lib_lex" != 'none needed' && break
10390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
10391 $as_echo "$ac_cv_lib_lex" >&6; }
10392 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10396 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10397 $as_echo_n "checking whether yytext is a pointer... " >&6; }
10398 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10399 $as_echo_n "(cached) " >&6
10401 # POSIX says lex can declare yytext either as a pointer or an array; the
10402 # default is implementation-dependent. Figure out which it is, since
10403 # not all implementations provide the %pointer and %array declarations.
10404 ac_cv_prog_lex_yytext_pointer=no
10406 LIBS="$LEXLIB $ac_save_LIBS"
10407 cat >conftest.$ac_ext <<_ACEOF
10408 #define YYTEXT_POINTER 1
10409 `cat $LEX_OUTPUT_ROOT.c`
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419 (eval "$ac_link") 2>conftest.er1
10421 grep -v '^ *+' conftest.er1 >conftest.err
10423 cat conftest.err >&5
10424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest$ac_exeext && {
10429 test "$cross_compiling" = yes ||
10430 $as_test_x conftest$ac_exeext
10432 ac_cv_prog_lex_yytext_pointer=yes
10434 $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10440 rm -rf conftest.dSYM
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10447 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10448 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10450 cat >>confdefs.h <<\_ACEOF
10451 #define YYTEXT_POINTER 1
10455 rm -f conftest.l $LEX_OUTPUT_ROOT.c
10458 if test "$LEX" = ":" ; then
10459 { { $as_echo "$as_me:$LINENO: error: Cannot find flex." >&5
10460 $as_echo "$as_me: error: Cannot find flex." >&2;}
10461 { (exit 1); exit 1; }; }
10462 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
10465 { { $as_echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
10466 $as_echo "$as_me: error: Cannot use $LEX as flex." >&2;}
10467 { (exit 1); exit 1; }; }
10470 for ac_prog in 'bison -y' byacc
10472 # Extract the first word of "$ac_prog", so it can be a program name with args.
10473 set dummy $ac_prog; ac_word=$2
10474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if test "${ac_cv_prog_YACC+set}" = set; then
10477 $as_echo_n "(cached) " >&6
10479 if test -n "$YACC"; then
10480 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10489 ac_cv_prog_YACC="$ac_prog"
10490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 YACC=$ac_cv_prog_YACC
10500 if test -n "$YACC"; then
10501 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
10502 $as_echo "$YACC" >&6; }
10504 { $as_echo "$as_me:$LINENO: result: no" >&5
10505 $as_echo "no" >&6; }
10509 test -n "$YACC" && break
10511 test -n "$YACC" || YACC="yacc"
10513 if test "$YACC" = ":" ; then
10514 { { $as_echo "$as_me:$LINENO: error: Cannot find yacc." >&5
10515 $as_echo "$as_me: error: Cannot find yacc." >&2;}
10516 { (exit 1); exit 1; }; }
10517 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
10520 { $as_echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
10521 $as_echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
10524 { $as_echo "$as_me:$LINENO: checking for posix non-blocking" >&5
10525 $as_echo_n "checking for posix non-blocking... " >&6; }
10526 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
10527 $as_echo_n "(cached) " >&6
10529 if test "$cross_compiling" = yes; then
10530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10532 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10533 See \`config.log' for more details." >&5
10534 $as_echo "$as_me: error: cannot run test program while cross compiling
10535 See \`config.log' for more details." >&2;}
10536 { (exit 1); exit 1; }; }; }
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #include <sys/types.h>
10545 #include <sys/socket.h>
10547 #include <sys/ioctl.h>
10548 #include <sys/file.h>
10549 #include <signal.h>
10550 $ac_cv_type_signal alarmed() { exit(1); }
10555 size_t l = sizeof(x);
10556 int f = socket(AF_INET, SOCK_DGRAM, 0);
10557 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
10559 signal(SIGALRM, alarmed);
10561 recvfrom(f, b, 12, 0, &x, &l);
10568 rm -f conftest$ac_exeext
10569 if { (ac_try="$ac_link"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576 (eval "$ac_link") 2>&5
10578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580 { (case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10585 $as_echo "$ac_try_echo") >&5
10586 (eval "$ac_try") 2>&5
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 unet_cv_sys_nonblocking_posix=yes
10592 $as_echo "$as_me: program exited with status $ac_status" >&5
10593 $as_echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ( exit $ac_status )
10597 unet_cv_sys_nonblocking_posix=no
10599 rm -rf conftest.dSYM
10600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10605 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
10606 $as_echo "$unet_cv_sys_nonblocking_posix" >&6; }
10607 if test $unet_cv_sys_nonblocking_posix = yes; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define NBLOCK_POSIX /**/
10614 { $as_echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
10615 $as_echo_n "checking for bsd non-blocking... " >&6; }
10616 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
10617 $as_echo_n "(cached) " >&6
10619 if test "$cross_compiling" = yes; then
10620 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10622 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10623 See \`config.log' for more details." >&5
10624 $as_echo "$as_me: error: cannot run test program while cross compiling
10625 See \`config.log' for more details." >&2;}
10626 { (exit 1); exit 1; }; }; }
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 #include <sys/types.h>
10635 #include <sys/socket.h>
10637 #include <sys/ioctl.h>
10638 #include <sys/file.h>
10639 #include <signal.h>
10640 $ac_cv_type_signal alarmed() { exit(1); }
10645 size_t l = sizeof(x);
10646 int f = socket(AF_INET, SOCK_DGRAM, 0);
10647 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
10649 signal(SIGALRM, alarmed);
10651 recvfrom(f, b, 12, 0, &x, &l);
10658 rm -f conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10665 $as_echo "$ac_try_echo") >&5
10666 (eval "$ac_link") 2>&5
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10675 $as_echo "$ac_try_echo") >&5
10676 (eval "$ac_try") 2>&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; }; then
10680 unet_cv_sys_nonblocking_bsd=yes
10682 $as_echo "$as_me: program exited with status $ac_status" >&5
10683 $as_echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ( exit $ac_status )
10687 unet_cv_sys_nonblocking_bsd=no
10689 rm -rf conftest.dSYM
10690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10695 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
10696 $as_echo "$unet_cv_sys_nonblocking_bsd" >&6; }
10697 if test $unet_cv_sys_nonblocking_bsd = yes; then
10699 cat >>confdefs.h <<\_ACEOF
10700 #define NBLOCK_BSD /**/
10705 cat >>confdefs.h <<\_ACEOF
10706 #define NBLOCK_SYSV /**/
10711 { $as_echo "$as_me:$LINENO: checking for posix signals" >&5
10712 $as_echo_n "checking for posix signals... " >&6; }
10713 if test "${unet_cv_sys_signal_posix+set}" = set; then
10714 $as_echo_n "(cached) " >&6
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 #include <signal.h>
10726 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738 $as_echo "$ac_try_echo") >&5
10739 (eval "$ac_compile") 2>conftest.er1
10741 grep -v '^ *+' conftest.er1 >conftest.err
10743 cat conftest.err >&5
10744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest.$ac_objext; then
10749 unet_cv_sys_signal_posix=yes
10751 $as_echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 unet_cv_sys_signal_posix=no
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
10760 $as_echo "$unet_cv_sys_signal_posix" >&6; }
10761 if test $unet_cv_sys_signal_posix = yes; then
10763 cat >>confdefs.h <<\_ACEOF
10764 #define POSIX_SIGNALS /**/
10768 { $as_echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
10769 $as_echo_n "checking for bsd reliable signals... " >&6; }
10770 if test "${unet_cv_sys_signal_bsd+set}" = set; then
10771 $as_echo_n "(cached) " >&6
10773 if test "$cross_compiling" = yes; then
10774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10776 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10777 See \`config.log' for more details." >&5
10778 $as_echo "$as_me: error: cannot run test program while cross compiling
10779 See \`config.log' for more details." >&2;}
10780 { (exit 1); exit 1; }; }; }
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 #include <signal.h>
10790 $ac_cv_type_signal handler()
10794 kill(getpid(), SIGTERM);
10799 signal(SIGTERM, handler);
10800 kill(getpid(), SIGTERM);
10804 rm -f conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811 $as_echo "$ac_try_echo") >&5
10812 (eval "$ac_link") 2>&5
10814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822 (eval "$ac_try") 2>&5
10824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 unet_cv_sys_signal_bsd=yes
10828 $as_echo "$as_me: program exited with status $ac_status" >&5
10829 $as_echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ( exit $ac_status )
10833 unet_cv_sys_signal_bsd=no
10835 rm -rf conftest.dSYM
10836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10841 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
10842 $as_echo "$unet_cv_sys_signal_bsd" >&6; }
10843 if test $unet_cv_sys_signal_bsd = yes; then
10845 cat >>confdefs.h <<\_ACEOF
10846 #define BSD_RELIABLE_SIGNALS /**/
10851 cat >>confdefs.h <<\_ACEOF
10852 #define SYSV_UNRELIABLE_SIGNALS /**/
10858 { $as_echo "$as_me:$LINENO: checking for OS-dependent information" >&5
10859 $as_echo_n "checking for OS-dependent information... " >&6; }
10862 { $as_echo "$as_me:$LINENO: result: Linux ($host) found." >&5
10863 $as_echo "Linux ($host) found." >&6; }
10864 unet_poll_syscall=yes
10868 { $as_echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10869 $as_echo "Solaris ($host) found." >&6; }
10870 if test x"$ac_cv_header_poll_h" = xyes; then
10871 unet_poll_syscall=yes
10873 unet_poll_syscall=no
10876 cat >>confdefs.h <<\_ACEOF
10877 #define IRCU_SOLARIS 1
10883 { $as_echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10884 $as_echo "Solaris ($host) found." >&6; }
10885 unet_poll_syscall=no
10889 { $as_echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
10890 $as_echo "OpenBSD ($host) found." >&6; }
10891 if test x"$ac_cv_header_poll_h" = xyes; then
10892 unet_poll_syscall=yes
10894 unet_poll_syscall=no
10899 { $as_echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
10900 $as_echo "Generic BSD ($host) found." >&6; }
10901 if test x"$ac_cv_header_poll_h" = xyes; then
10902 unet_poll_syscall=yes
10904 unet_poll_syscall=no
10909 { $as_echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
10910 $as_echo "Darwin (Mac OS X) ($host) found." >&6; }
10911 unet_poll_syscall=no
10915 { $as_echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
10916 $as_echo "Unknown system type $host found." >&6; }
10917 { $as_echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
10918 $as_echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
10919 unet_poll_syscall=no
10923 { $as_echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
10924 $as_echo_n "checking whether to enable use of poll()... " >&6; }
10925 # Check whether --enable-poll was given.
10926 if test "${enable_poll+set}" = set; then
10927 enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
10929 if test "${unet_cv_enable_poll+set}" = set; then
10930 $as_echo_n "(cached) " >&6
10932 unet_cv_enable_poll=$unet_poll_syscall
10938 # Force poll to be disabled if there is no poll.h
10939 if test x"$ac_cv_header_poll_h" != xyes; then
10940 unet_cv_enable_poll=no
10943 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
10944 $as_echo "$unet_cv_enable_poll" >&6; }
10946 if test x"$unet_cv_enable_poll" = xyes; then
10948 cat >>confdefs.h <<\_ACEOF
10952 ENGINE_C=engine_poll.c
10954 ENGINE_C=engine_select.c
10958 { $as_echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
10959 $as_echo_n "checking whether to enable debug mode... " >&6; }
10960 # Check whether --enable-debug was given.
10961 if test "${enable_debug+set}" = set; then
10962 enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
10964 if test "${unet_cv_enable_debug+set}" = set; then
10965 $as_echo_n "(cached) " >&6
10967 unet_cv_enable_debug=no
10972 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10973 $as_echo "$unet_cv_enable_debug" >&6; }
10975 if test x"$unet_cv_enable_debug" = xyes; then
10977 cat >>confdefs.h <<\_ACEOF
10978 #define DEBUGMODE 1
10983 { $as_echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10984 $as_echo_n "checking whether to enable leak detection... " >&6; }
10986 # Check whether --with-leak-detect was given.
10987 if test "${with_leak_detect+set}" = set; then
10988 withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
10990 if test "${unet_cv_with_leak_detect+set}" = set; then
10991 $as_echo_n "(cached) " >&6
10993 unet_cv_with_leak_detect=no
10998 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10999 $as_echo "$unet_cv_enable_leak_detect" >&6; }
11001 if test x"$unet_cv_with_leak_detect" != xno; then
11003 CFLAGS="-DMDEBUG $CFLAGS"
11004 if test x"$unet_cv_with_leak_detect" != xyes; then
11005 LIBS="-L$unet_cv_with_leak_detect $LIBS"
11010 # Check whether --with-ipv6 was given.
11011 if test "${with_ipv6+set}" = set; then
11012 withval=$with_ipv6; ac_cv_use_ipv6=$withval
11014 ac_cv_use_ipv6=$unet_have_sockaddr_in6
11017 { $as_echo "$as_me:$LINENO: checking whether to use IPv6" >&5
11018 $as_echo_n "checking whether to use IPv6... " >&6; }
11019 if test "${ac_cv_use_ipv6+set}" = set; then
11020 $as_echo_n "(cached) " >&6
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
11025 $as_echo "$ac_cv_use_ipv6" >&6; }
11026 if test x"$ac_cv_use_ipv6" != "xno" ; then
11028 cat >>confdefs.h <<\_ACEOF
11034 { $as_echo "$as_me:$LINENO: checking whether to enable asserts" >&5
11035 $as_echo_n "checking whether to enable asserts... " >&6; }
11036 # Check whether --enable-asserts was given.
11037 if test "${enable_asserts+set}" = set; then
11038 enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
11040 if test "${unet_cv_enable_asserts+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11043 unet_cv_enable_asserts=yes
11048 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
11049 $as_echo "$unet_cv_enable_asserts" >&6; }
11051 if test x"$unet_cv_enable_asserts" = xno; then
11053 cat >>confdefs.h <<\_ACEOF
11059 { $as_echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
11060 $as_echo_n "checking whether to enable profiling support (gprof)... " >&6; }
11061 # Check whether --enable-profile was given.
11062 if test "${enable_profile+set}" = set; then
11063 enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
11065 if test "${unet_cv_enable_profile+set}" = set; then
11066 $as_echo_n "(cached) " >&6
11068 unet_cv_enable_profile=no
11073 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
11074 $as_echo "$unet_cv_enable_profile" >&6; }
11076 if test x"$unet_cv_enable_profile" = xyes; then
11077 CFLAGS="-pg $CFLAGS"
11078 LDFLAGS="-pg $LDFLAGS"
11081 { $as_echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
11082 $as_echo_n "checking whether to enable pedantic compiler warnings... " >&6; }
11083 # Check whether --enable-pedantic was given.
11084 if test "${enable_pedantic+set}" = set; then
11085 enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
11087 if test "${unet_cv_enable_pedantic+set}" = set; then
11088 $as_echo_n "(cached) " >&6
11090 unet_cv_enable_pedantic=no
11095 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
11096 $as_echo "$unet_cv_enable_pedantic" >&6; }
11098 if test x"$unet_cv_enable_pedantic" = xyes; then
11099 CFLAGS="-pedantic $CFLAGS"
11102 { $as_echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
11103 $as_echo_n "checking whether to enable compiler warnings... " >&6; }
11104 # Check whether --enable-warnings was given.
11105 if test "${enable_warnings+set}" = set; then
11106 enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
11108 if test "${unet_cv_enable_warnings+set}" = set; then
11109 $as_echo_n "(cached) " >&6
11111 unet_cv_enable_warnings=no
11116 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
11117 $as_echo "$unet_cv_enable_warnings" >&6; }
11119 if test x"$unet_cv_enable_warnings" = xyes; then
11120 CFLAGS="-Wall $CFLAGS"
11123 { $as_echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
11124 $as_echo_n "checking whether to enable inlining for a few critical functions... " >&6; }
11125 # Check whether --enable-inlines was given.
11126 if test "${enable_inlines+set}" = set; then
11127 enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
11129 if test "${unet_cv_enable_inlines+set}" = set; then
11130 $as_echo_n "(cached) " >&6
11132 unet_cv_enable_inlines=yes
11137 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
11138 $as_echo "$unet_cv_enable_inlines" >&6; }
11140 if test x"$unet_cv_enable_inlines" = xyes; then
11142 cat >>confdefs.h <<\_ACEOF
11143 #define FORCEINLINE 1
11148 { $as_echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
11149 $as_echo_n "checking whether to enable the /dev/poll event engine... " >&6; }
11150 # Check whether --enable-devpoll was given.
11151 if test "${enable_devpoll+set}" = set; then
11152 enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
11154 if test "${unet_cv_enable_devpoll+set}" = set; then
11155 $as_echo_n "(cached) " >&6
11157 unet_cv_enable_devpoll=yes
11163 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
11164 unet_cv_enable_devpoll=no
11167 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
11168 $as_echo "$unet_cv_enable_devpoll" >&6; }
11170 if test x"$unet_cv_enable_devpoll" != xno; then
11172 cat >>confdefs.h <<\_ACEOF
11173 #define USE_DEVPOLL 1
11176 ENGINE_C="engine_devpoll.c $ENGINE_C"
11179 { $as_echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
11180 $as_echo_n "checking whether to enable the kqueue event engine... " >&6; }
11181 # Check whether --enable-kqueue was given.
11182 if test "${enable_kqueue+set}" = set; then
11183 enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
11185 if test "${unet_cv_enable_kqueue+set}" = set; then
11186 $as_echo_n "(cached) " >&6
11188 unet_cv_enable_kqueue=yes
11194 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
11195 unet_cv_enable_kqueue=no
11198 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
11199 $as_echo "$unet_cv_enable_kqueue" >&6; }
11201 if test x"$unet_cv_enable_kqueue" != xno; then
11203 cat >>confdefs.h <<\_ACEOF
11204 #define USE_KQUEUE 1
11207 ENGINE_C="engine_kqueue.c $ENGINE_C"
11210 { $as_echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
11211 $as_echo_n "checking whether to enable the epoll event engine... " >&6; }
11212 # Check whether --enable-epoll was given.
11213 if test "${enable_epoll+set}" = set; then
11214 enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
11216 if test "${unet_cv_enable_epoll+set}" = set; then
11217 $as_echo_n "(cached) " >&6
11219 unet_cv_enable_epoll=yes
11225 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
11226 unet_cv_enable_epoll=no
11229 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
11230 $as_echo "$unet_cv_enable_epoll" >&6; }
11232 if test x"$unet_cv_enable_epoll" != xno; then
11233 { $as_echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
11234 $as_echo_n "checking whether epoll functions are properly defined... " >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <sys/epoll.h>
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (ac_try="$ac_link"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_link") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest$ac_exeext && {
11268 test "$cross_compiling" = yes ||
11269 $as_test_x conftest$ac_exeext
11271 { $as_echo "$as_me:$LINENO: result: yes" >&5
11272 $as_echo "yes" >&6; }
11274 $as_echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 { $as_echo "$as_me:$LINENO: result: no" >&5
11278 $as_echo "no" >&6; }
11280 cat >>confdefs.h <<\_ACEOF
11281 #define EPOLL_NEED_BODY 1
11286 rm -rf conftest.dSYM
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11290 cat >>confdefs.h <<\_ACEOF
11291 #define USE_EPOLL 1
11294 ENGINE_C="engine_epoll.c $ENGINE_C"
11297 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
11298 $as_echo_n "checking for va_copy... " >&6; }
11299 if test "${unet_cv_c_va_copy+set}" = set; then
11300 $as_echo_n "(cached) " >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <stdarg.h>
11312 va_list ap1, ap2; va_copy(ap1, ap2);
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11324 $as_echo "$ac_try_echo") >&5
11325 (eval "$ac_link") 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && {
11332 test -z "$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11334 } && test -s conftest$ac_exeext && {
11335 test "$cross_compiling" = yes ||
11336 $as_test_x conftest$ac_exeext
11338 unet_cv_c_va_copy="yes"
11340 $as_echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 unet_cv_c_va_copy="no"
11347 rm -rf conftest.dSYM
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349 conftest$ac_exeext conftest.$ac_ext
11351 { $as_echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
11352 $as_echo "$unet_cv_c_va_copy" >&6; }
11353 if test "$unet_cv_c_va_copy" = "yes" ; then
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_VA_COPY 1
11361 { $as_echo "$as_me:$LINENO: checking for __va_copy" >&5
11362 $as_echo_n "checking for __va_copy... " >&6; }
11363 if test "${unet_cv_c___va_copy+set}" = set; then
11364 $as_echo_n "(cached) " >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <stdarg.h>
11376 va_list ap1, ap2; __va_copy(ap1, ap2);
11381 rm -f conftest.$ac_objext conftest$ac_exeext
11382 if { (ac_try="$ac_link"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11388 $as_echo "$ac_try_echo") >&5
11389 (eval "$ac_link") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext && {
11399 test "$cross_compiling" = yes ||
11400 $as_test_x conftest$ac_exeext
11402 unet_cv_c___va_copy="yes"
11404 $as_echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 unet_cv_c___va_copy="no"
11411 rm -rf conftest.dSYM
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413 conftest$ac_exeext conftest.$ac_ext
11415 { $as_echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
11416 $as_echo "$unet_cv_c___va_copy" >&6; }
11417 if test "$unet_cv_c___va_copy" = "yes" ; then
11419 cat >>confdefs.h <<\_ACEOF
11420 #define HAVE___VA_COPY 1
11425 { $as_echo "$as_me:$LINENO: checking what name to give the symlink" >&5
11426 $as_echo_n "checking what name to give the symlink... " >&6; }
11428 # Check whether --with-symlink was given.
11429 if test "${with_symlink+set}" = set; then
11430 withval=$with_symlink; unet_cv_with_symlink=$with_symlink
11432 if test "${unet_cv_with_symlink+set}" = set; then
11433 $as_echo_n "(cached) " >&6
11435 unet_cv_with_symlink="ircd"
11441 if test x"$unet_cv_with_symlink" = xyes; then
11442 unet_cv_with_symlink="ircd"
11445 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
11446 $as_echo "$unet_cv_with_symlink" >&6; }
11448 if test x"$unet_cv_with_symlink" = xno; then
11449 INSTALL_RULE=install-no-symlink
11452 INSTALL_RULE=install-with-symlink
11453 SYMLINK=$unet_cv_with_symlink
11458 { $as_echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
11459 $as_echo_n "checking what permissions to set on the installed binary... " >&6; }
11461 # Check whether --with-mode was given.
11462 if test "${with_mode+set}" = set; then
11463 withval=$with_mode; unet_cv_with_mode=$with_mode
11465 if test "${unet_cv_with_mode+set}" = set; then
11466 $as_echo_n "(cached) " >&6
11468 unet_cv_with_mode=711
11474 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
11475 unet_cv_with_mode=711
11478 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
11479 $as_echo "$unet_cv_with_mode" >&6; }
11481 IRCDMODE=$unet_cv_with_mode
11484 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
11485 { $as_echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
11486 $as_echo_n "checking which user should own the installed binary... " >&6; }
11488 # Check whether --with-owner was given.
11489 if test "${with_owner+set}" = set; then
11490 withval=$with_owner; unet_cv_with_owner=$with_owner
11492 if test "${unet_cv_with_owner+set}" = set; then
11493 $as_echo_n "(cached) " >&6
11495 unet_cv_with_owner=$unet_uid
11501 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
11502 unet_cv_with_owner=$unet_uid
11505 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
11506 $as_echo "$unet_cv_with_owner" >&6; }
11508 IRCDOWN=$unet_cv_with_owner
11511 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
11512 { $as_echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
11513 $as_echo_n "checking which group should own the installed binary... " >&6; }
11515 # Check whether --with-group was given.
11516 if test "${with_group+set}" = set; then
11517 withval=$with_group; unet_cv_with_group=$with_group
11519 if test "${unet_cv_with_group+set}" = set; then
11520 $as_echo_n "(cached) " >&6
11522 unet_cv_with_group=$unet_gid
11528 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
11529 unet_cv_with_group=$unet_gid
11532 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
11533 $as_echo "$unet_cv_with_group" >&6; }
11535 IRCDGRP=$unet_cv_with_group
11539 if test -f /etc/resolv.conf; then
11540 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
11541 if test x"$unet_domain" = x; then
11542 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
11545 { $as_echo "$as_me:$LINENO: checking for site domain name" >&5
11546 $as_echo_n "checking for site domain name... " >&6; }
11548 # Check whether --with-domain was given.
11549 if test "${with_domain+set}" = set; then
11550 withval=$with_domain; unet_cv_with_domain=$with_domain
11552 if test "${unet_cv_with_domain+set}" = set; then
11553 $as_echo_n "(cached) " >&6
11555 unet_cv_with_domain=$unet_domain
11561 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
11562 unet_cv_with_domain=$unet_domain
11564 if test x"$unet_cv_with_domain" = xno; then
11565 { { $as_echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
11566 $as_echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
11567 { (exit 1); exit 1; }; }
11570 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
11571 $as_echo "$unet_cv_with_domain" >&6; }
11574 cat >>confdefs.h <<_ACEOF
11575 #define DOMAINNAME "*$unet_cv_with_domain"
11579 { $as_echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
11580 $as_echo_n "checking if chroot operation is desired... " >&6; }
11582 # Check whether --with-chroot was given.
11583 if test "${with_chroot+set}" = set; then
11584 withval=$with_chroot; unet_cv_with_chroot=$with_chroot
11586 if test "${unet_cv_with_chroot+set}" = set; then
11587 $as_echo_n "(cached) " >&6
11589 unet_cv_with_chroot=no
11595 if test x"$unet_cv_with_chroot" = xyes; then
11596 { { $as_echo "$as_me:$LINENO: error: --with-chroot given with no directory. See doc/readme.chroot." >&5
11597 $as_echo "$as_me: error: --with-chroot given with no directory. See doc/readme.chroot." >&2;}
11598 { (exit 1); exit 1; }; }
11601 # Ensure there are no trailing /'s to mess us up
11602 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
11604 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
11605 $as_echo "$unet_cv_with_chroot" >&6; }
11607 # Deal with the annoying value "NONE" here
11608 unet_save_prefix=$prefix
11609 if test x"$prefix" = xNONE; then
11610 prefix=$ac_default_prefix
11615 unet_save_exec_prefix=$exec_prefix
11616 if test x"$exec_prefix" = xNONE; then
11617 exec_prefix=$prefix
11619 exec_prefix=$exec_prefix
11622 # Obtain the actual interesting directories
11623 unet_bindir=`eval echo "$bindir"`
11624 unet_libdir=`eval echo "$libdir"`
11626 # Restore the original settings of $prefix and $exec_prefix
11627 prefix=$unet_save_prefix
11628 exec_prefix=$unet_save_exec_prefix
11630 { $as_echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
11631 $as_echo_n "checking where the binary will be for /restart... " >&6; }
11632 if test x"$unet_cv_with_symlink" = xno; then
11633 unet_spath="$unet_bindir/ircd"
11635 unet_spath="$unet_bindir/$unet_cv_with_symlink"
11637 { $as_echo "$as_me:$LINENO: result: $unet_spath" >&5
11638 $as_echo "$unet_spath" >&6; }
11640 if test x"$unet_cv_with_chroot" != xno; then
11641 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11642 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
11644 { $as_echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
11645 $as_echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
11650 cat >>confdefs.h <<_ACEOF
11651 #define SPATH "$unet_spath"
11655 { $as_echo "$as_me:$LINENO: checking what the data directory should be" >&5
11656 $as_echo_n "checking what the data directory should be... " >&6; }
11658 # Check whether --with-dpath was given.
11659 if test "${with_dpath+set}" = set; then
11660 withval=$with_dpath; unet_cv_with_dpath=$with_dpath
11662 if test "${unet_cv_with_dpath+set}" = set; then
11663 $as_echo_n "(cached) " >&6
11665 unet_cv_with_dpath=$unet_libdir
11671 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
11672 unet_cv_with_dpath=$unet_libdir
11675 # Ensure there are no trailing /'s to mess us up
11676 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
11678 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
11679 $as_echo "$unet_cv_with_dpath" >&6; }
11681 if test x"$unet_cv_with_chroot" != xno; then
11682 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11683 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
11685 { { $as_echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
11686 $as_echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
11687 { (exit 1); exit 1; }; }
11690 unet_dpath=$unet_cv_with_dpath
11694 cat >>confdefs.h <<_ACEOF
11695 #define DPATH "$unet_dpath"
11699 DPATH=$unet_cv_with_dpath
11702 { $as_echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
11703 $as_echo_n "checking where the default configuration file resides... " >&6; }
11705 # Check whether --with-cpath was given.
11706 if test "${with_cpath+set}" = set; then
11707 withval=$with_cpath; unet_cv_with_cpath=$with_cpath
11709 if test "${unet_cv_with_cpath+set}" = set; then
11710 $as_echo_n "(cached) " >&6
11712 unet_cv_with_cpath="ircd.conf"
11718 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
11719 unet_cv_with_cpath="ircd.conf"
11722 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
11723 $as_echo "$unet_cv_with_cpath" >&6; }
11725 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
11726 # Absolute path; check against chroot stuff
11727 if test x"$unet_cv_with_chroot" != xno; then
11728 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11729 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
11731 { { $as_echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
11732 $as_echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
11733 { (exit 1); exit 1; }; }
11736 unet_cpath=$unet_cv_with_cpath
11739 unet_cpath=$unet_cv_with_cpath
11743 cat >>confdefs.h <<_ACEOF
11744 #define CPATH "$unet_cpath"
11748 { $as_echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
11749 $as_echo_n "checking where to put the debugging log if debugging enabled... " >&6; }
11751 # Check whether --with-lpath was given.
11752 if test "${with_lpath+set}" = set; then
11753 withval=$with_lpath; unet_cv_with_lpath=$with_lpath
11755 if test "${unet_cv_with_lpath+set}" = set; then
11756 $as_echo_n "(cached) " >&6
11758 unet_cv_with_lpath="ircd.log"
11764 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
11765 unet_cv_with_lpath="ircd.log"
11768 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
11769 $as_echo "$unet_cv_with_lpath" >&6; }
11771 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
11772 # Absolute path; check against chroot stuff
11773 if test x"$unet_cv_with_chroot" != xno; then
11774 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11775 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
11777 { $as_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
11778 $as_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;}
11779 unet_cv_with_lpath="ircd.log"
11780 unet_lpath="ircd.log"
11783 unet_lpath=$unet_cv_with_lpath
11786 unet_lpath=$unet_cv_with_lpath
11790 cat >>confdefs.h <<_ACEOF
11791 #define LPATH "$unet_lpath"
11795 unet_maxcon=`ulimit -Hn`
11796 if test x"$unet_maxcon" = xunlimited; then
11797 unet_maxcon=`ulimit -Sn`
11799 unet_maxcon=`expr $unet_maxcon - 4`
11800 { $as_echo "$as_me:$LINENO: checking max connections" >&5
11801 $as_echo_n "checking max connections... " >&6; }
11803 # Check whether --with-maxcon was given.
11804 if test "${with_maxcon+set}" = set; then
11805 withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
11807 if test "${unet_cv_with_maxcon+set}" = set; then
11808 $as_echo_n "(cached) " >&6
11810 unet_cv_with_maxcon=$unet_maxcon
11816 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
11817 if test "$unet_maxcon" -lt 32; then
11818 { { $as_echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
11819 $as_echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
11820 { (exit 1); exit 1; }; }
11822 unet_cv_with_maxcon=$unet_maxcon
11823 elif test "$unet_cv_with_maxcon" -lt 32; then
11824 { { $as_echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
11825 $as_echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
11826 { (exit 1); exit 1; }; }
11829 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
11830 $as_echo "$unet_cv_with_maxcon" >&6; }
11833 cat >>confdefs.h <<_ACEOF
11834 #define MAXCONNECTIONS $unet_cv_with_maxcon
11838 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
11840 ac_config_commands="$ac_config_commands default"
11842 cat >confcache <<\_ACEOF
11843 # This file is a shell script that caches the results of configure
11844 # tests run on this system so they can be shared between configure
11845 # scripts and configure runs, see configure's option --config-cache.
11846 # It is not useful on other systems. If it contains results you don't
11847 # want to keep, you may remove or edit it.
11849 # config.status only pays attention to the cache file if you give it
11850 # the --recheck option to rerun configure.
11852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11854 # following values.
11858 # The following way of writing the cache mishandles newlines in values,
11859 # but we know of no workaround that is simple, portable, and efficient.
11860 # So, we kill variables containing newlines.
11861 # Ultrix sh set writes to stderr and can't be redirected directly,
11862 # and sets the high bit in the cache file unless we assign to the vars.
11864 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11865 eval ac_val=\$$ac_var
11869 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11873 _ | IFS | as_nl) ;; #(
11874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11875 *) $as_unset $ac_var ;;
11881 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11882 *${as_nl}ac_space=\ *)
11883 # `set' does not quote correctly, so add quotes (double-quote
11884 # substitution turns \\\\ into \\, and sed turns \\ into \).
11887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11890 # `set' quotes correctly as required by POSIX, so do not add quotes.
11891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11900 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11902 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11904 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11905 if test -w "$cache_file"; then
11906 test "x$cache_file" != "x/dev/null" &&
11907 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11908 $as_echo "$as_me: updating cache $cache_file" >&6;}
11909 cat confcache >$cache_file
11911 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11918 # Let make expand exec_prefix.
11919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11921 DEFS=-DHAVE_CONFIG_H
11925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11926 # 1. Remove the extension, and $U if already installed.
11927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11930 # will be set to the directory where LIBOBJS objects are built.
11931 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11932 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11934 LIBOBJS=$ac_libobjs
11936 LTLIBOBJS=$ac_ltlibobjs
11941 : ${CONFIG_STATUS=./config.status}
11943 ac_clean_files_save=$ac_clean_files
11944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11945 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11947 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11949 # Generated by $as_me.
11950 # Run this file to recreate the current configuration.
11951 # Compiler output produced by configure, useful for debugging
11952 # configure, is in config.log if it exists.
11955 ac_cs_recheck=false
11957 SHELL=\${CONFIG_SHELL-$SHELL}
11960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11961 ## --------------------- ##
11962 ## M4sh Initialization. ##
11963 ## --------------------- ##
11965 # Be more Bourne compatible
11966 DUALCASE=1; export DUALCASE # for MKS sh
11967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11971 # is contrary to our usage. Disable this feature.
11972 alias -g '${1+"$@"}'='"$@"'
11973 setopt NO_GLOB_SUBST
11975 case `(set -o) 2>/dev/null` in
11976 *posix*) set -o posix ;;
11985 # Avoid depending upon Character Ranges.
11986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11989 as_cr_digits='0123456789'
11990 as_cr_alnum=$as_cr_Letters$as_cr_digits
11995 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11996 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11999 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12000 as_echo='printf %s\n'
12001 as_echo_n='printf %s'
12003 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12004 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12005 as_echo_n='/usr/ucb/echo -n'
12007 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12008 as_echo_n_body='eval
12012 expr "X$arg" : "X\\(.*\\)$as_nl";
12013 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12015 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12017 export as_echo_n_body
12018 as_echo_n='sh -c $as_echo_n_body as_echo'
12020 export as_echo_body
12021 as_echo='sh -c $as_echo_body as_echo'
12024 # The user is always right.
12025 if test "${PATH_SEPARATOR+set}" != set; then
12027 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12028 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12033 # Support unset when possible.
12034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12042 # We need space, tab and new line, in precisely that order. Quoting is
12043 # there to prevent editors from complaining about space-tab.
12044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12045 # splitting by setting IFS to empty value.)
12048 # Find who we are. Look in the path if we contain no directory separator.
12050 *[\\/]* ) as_myself=$0 ;;
12051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12055 test -z "$as_dir" && as_dir=.
12056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12062 # We did not find ourselves, most probably we were run as `sh COMMAND'
12063 # in which case we are not to be found in the path.
12064 if test "x$as_myself" = x; then
12067 if test ! -f "$as_myself"; then
12068 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12069 { (exit 1); exit 1; }
12072 # Work around bugs in pre-3.0 UWIN ksh.
12073 for as_var in ENV MAIL MAILPATH
12074 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12086 # Required to use basename.
12087 if expr a : '\(a\)' >/dev/null 2>&1 &&
12088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12094 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12095 as_basename=basename
12101 # Name of the executable.
12102 as_me=`$as_basename -- "$0" ||
12103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12104 X"$0" : 'X\(//\)$' \| \
12105 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12107 sed '/^.*\/\([^/][^/]*\)\/*$/{
12126 as_lineno_1=$LINENO
12127 as_lineno_2=$LINENO
12128 test "x$as_lineno_1" != "x$as_lineno_2" &&
12129 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12132 # uniformly replaced by the line number. The first 'sed' inserts a
12133 # line-number line after each line using $LINENO; the second 'sed'
12134 # does the real work. The second script uses 'N' to pair each
12135 # line-number line with the line containing $LINENO, and appends
12136 # trailing '-' during substitution so that $LINENO is not a special
12137 # case at line end.
12138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12139 # scripts with optimization help from Paolo Bonzini. Blame Lee
12140 # E. McMahon (1931-1989) for sed's syntax. :-)
12152 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12155 ' >$as_me.lineno &&
12156 chmod +x "$as_me.lineno" ||
12157 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12158 { (exit 1); exit 1; }; }
12160 # Don't try to exec as it changes $[0], causing all sort of problems
12161 # (the dirname of $[0] is not the place where we might find the
12162 # original and so on. Autoconf is especially sensitive to this).
12163 . "./$as_me.lineno"
12164 # Exit status is that of the last command.
12169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12175 ECHO_C= ECHO_N= ECHO_T=
12176 case `echo -n x` in
12178 case `echo 'x\c'` in
12179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12185 if expr a : '\(a\)' >/dev/null 2>&1 &&
12186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12192 rm -f conf$$ conf$$.exe conf$$.file
12193 if test -d conf$$.dir; then
12194 rm -f conf$$.dir/conf$$.file
12197 mkdir conf$$.dir 2>/dev/null
12199 if (echo >conf$$.file) 2>/dev/null; then
12200 if ln -s conf$$.file conf$$ 2>/dev/null; then
12202 # ... but there are two gotchas:
12203 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12204 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12205 # In both cases, we have to default to `cp -p'.
12206 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12208 elif ln conf$$.file conf$$ 2>/dev/null; then
12216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12217 rmdir conf$$.dir 2>/dev/null
12219 if mkdir -p . 2>/dev/null; then
12222 test -d ./-p && rmdir ./-p
12226 if test -x / >/dev/null 2>&1; then
12227 as_test_x='test -x'
12229 if ls -dL / >/dev/null 2>&1; then
12236 if test -d "$1"; then
12242 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12243 ???[sx]*):;;*)false;;esac;fi
12247 as_executable_p=$as_test_x
12249 # Sed expression to map a string onto a valid CPP name.
12250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12252 # Sed expression to map a string onto a valid variable name.
12253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12258 # Save the log message, to keep $[0] and so on meaningful, and to
12259 # report actual input values of CONFIG_FILES etc. instead of their
12260 # values after options handling.
12262 This file was extended by $as_me, which was
12263 generated by GNU Autoconf 2.63. Invocation command line was
12265 CONFIG_FILES = $CONFIG_FILES
12266 CONFIG_HEADERS = $CONFIG_HEADERS
12267 CONFIG_LINKS = $CONFIG_LINKS
12268 CONFIG_COMMANDS = $CONFIG_COMMANDS
12271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12276 case $ac_config_files in *"
12277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12280 case $ac_config_headers in *"
12281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12286 # Files that config.status was made for.
12287 config_files="$ac_config_files"
12288 config_headers="$ac_config_headers"
12289 config_commands="$ac_config_commands"
12293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12295 \`$as_me' instantiates files from templates according to the
12296 current configuration.
12298 Usage: $0 [OPTION]... [FILE]...
12300 -h, --help print this help, then exit
12301 -V, --version print version number and configuration settings, then exit
12302 -q, --quiet, --silent
12303 do not print progress messages
12304 -d, --debug don't remove temporary files
12305 --recheck update $as_me by reconfiguring in the same conditions
12306 --file=FILE[:TEMPLATE]
12307 instantiate the configuration file FILE
12308 --header=FILE[:TEMPLATE]
12309 instantiate the configuration header FILE
12311 Configuration files:
12314 Configuration headers:
12317 Configuration commands:
12320 Report bugs to <bug-autoconf@gnu.org>."
12323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12326 configured by $0, generated by GNU Autoconf 2.63,
12327 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12329 Copyright (C) 2008 Free Software Foundation, Inc.
12330 This config.status script is free software; the Free Software Foundation
12331 gives unlimited permission to copy, distribute and modify it."
12337 test -n "\$AWK" || AWK=awk
12340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12341 # The default lists apply if the user does not specify any file.
12347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12359 # Handling of the options.
12360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12363 $as_echo "$ac_cs_version"; exit ;;
12364 --debug | --debu | --deb | --de | --d | -d )
12366 --file | --fil | --fi | --f )
12369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12371 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12372 ac_need_defaults=false;;
12373 --header | --heade | --head | --hea )
12376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12378 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12379 ac_need_defaults=false;;
12381 # Conflict between --help and --header
12382 { $as_echo "$as_me: error: ambiguous option: $1
12383 Try \`$0 --help' for more information." >&2
12384 { (exit 1); exit 1; }; };;
12385 --help | --hel | -h )
12386 $as_echo "$ac_cs_usage"; exit ;;
12387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12391 # This is an error.
12392 -*) { $as_echo "$as_me: error: unrecognized option: $1
12393 Try \`$0 --help' for more information." >&2
12394 { (exit 1); exit 1; }; } ;;
12396 *) ac_config_targets="$ac_config_targets $1"
12397 ac_need_defaults=false ;;
12403 ac_configure_extra_args=
12405 if $ac_cs_silent; then
12407 ac_configure_extra_args="$ac_configure_extra_args --silent"
12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 if \$ac_cs_recheck; then
12413 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12416 CONFIG_SHELL='$SHELL'
12417 export CONFIG_SHELL
12422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12427 ## Running $as_me. ##
12433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12438 # Handling of arguments.
12439 for ac_config_target in $ac_config_targets
12441 case $ac_config_target in
12442 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12444 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
12445 "ircd/test/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
12446 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12447 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12449 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12450 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12451 { (exit 1); exit 1; }; };;
12456 # If the user did not use the arguments to specify the items to instantiate,
12457 # then the envvar interface is used. Set only those that are not.
12458 # We use the long form for the default assignment because of an extremely
12459 # bizarre bug on SunOS 4.1.3.
12460 if $ac_need_defaults; then
12461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12466 # Have a temporary directory for convenience. Make it in the build tree
12467 # simply because there is no reason against having it here, and in addition,
12468 # creating and moving files from /tmp can sometimes cause problems.
12469 # Hook for its removal unless debugging.
12470 # Note that there is a small window in which the directory will not be cleaned:
12471 # after its creation but before its name has been assigned to `$tmp'.
12475 trap 'exit_status=$?
12476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12478 trap '{ (exit 1); exit 1; }' 1 2 13 15
12480 # Create a (secure) tmp directory for tmp files.
12483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12484 test -n "$tmp" && test -d "$tmp"
12487 tmp=./conf$$-$RANDOM
12488 (umask 077 && mkdir "$tmp")
12491 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12492 { (exit 1); exit 1; }
12495 # Set up the scripts for CONFIG_FILES section.
12496 # No need to generate them if there are no CONFIG_FILES.
12497 # This happens for instance with `./config.status config.h'.
12498 if test -n "$CONFIG_FILES"; then
12502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12506 ac_cs_awk_cr=$ac_cr
12509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12514 echo "cat >conf$$subs.awk <<_ACEOF" &&
12515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12517 } >conf$$subs.sh ||
12518 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12519 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12520 { (exit 1); exit 1; }; }
12521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12523 for ac_last_try in false false false false false :; do
12524 . ./conf$$subs.sh ||
12525 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12526 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12527 { (exit 1); exit 1; }; }
12529 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12530 if test $ac_delim_n = $ac_delim_num; then
12532 elif $ac_last_try; then
12533 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12534 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12535 { (exit 1); exit 1; }; }
12537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12540 rm -f conf$$subs.sh
12542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12543 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12547 s/^/S["/; s/!.*/"]=/
12557 s/\(.\{148\}\).*/\1/
12559 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12571 s/\(.\{148\}\).*/\1/
12573 s/["\\]/\\&/g; s/^/"/; s/$/"/
12577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12582 ' <conf$$subs.awk | sed '
12587 ' >>$CONFIG_STATUS || ac_write_fail=1
12588 rm -f conf$$subs.awk
12589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12591 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12592 for (key in S) S_is_set[key] = 1
12598 nfields = split(line, field, "@")
12600 len = length(field[1])
12601 for (i = 2; i < nfields; i++) {
12603 keylen = length(key)
12604 if (S_is_set[key]) {
12606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12607 len += length(value) + length(field[++i])
12618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12619 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12620 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12623 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12624 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12625 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12626 { (exit 1); exit 1; }; }
12629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12631 # trailing colons and then remove the whole line if VPATH becomes empty
12632 # (actually we leave an empty line to preserve line numbers).
12633 if test "x$srcdir" = x.; then
12634 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12635 s/:*\$(srcdir):*/:/
12636 s/:*\${srcdir}:*/:/
12638 s/^\([^=]*=[ ]*\):*/\1/
12644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12645 fi # test -n "$CONFIG_FILES"
12647 # Set up the scripts for CONFIG_HEADERS section.
12648 # No need to generate them if there are no CONFIG_HEADERS.
12649 # This happens for instance with `./config.status Makefile'.
12650 if test -n "$CONFIG_HEADERS"; then
12651 cat >"$tmp/defines.awk" <<\_ACAWK ||
12655 # Transform confdefs.h into an awk script `defines.awk', embedded as
12656 # here-document in config.status, that substitutes the proper values into
12657 # config.h.in to produce config.h.
12659 # Create a delimiter string that does not exist in confdefs.h, to ease
12660 # handling of long lines.
12662 for ac_last_try in false false :; do
12663 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12664 if test -z "$ac_t"; then
12666 elif $ac_last_try; then
12667 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12668 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12669 { (exit 1); exit 1; }; }
12671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12675 # For the awk script, D is an array of macro values keyed by name,
12676 # likewise P contains macro parameters if any. Preserve backslash
12677 # newline sequences.
12679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12681 s/.\{148\}/&'"$ac_delim"'/g
12684 s/^[ ]*#[ ]*define[ ][ ]*/ /
12691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12698 D["\1"]=" \3\\\\\\n"\\/p
12700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12705 s/.\{148\}/&'"$ac_delim"'/g
12710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12715 ' <confdefs.h | sed '
12716 s/'"$ac_delim"'/"\\\
12717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 for (key in D) D_is_set[key] = 1
12723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12725 split(line, arg, " ")
12726 if (arg[1] == "#") {
12730 defundef = substr(arg[1], 2)
12733 split(mac1, mac2, "(") #)
12735 prefix = substr(line, 1, index(line, defundef) - 1)
12736 if (D_is_set[macro]) {
12737 # Preserve the white space surrounding the "#".
12738 print prefix "define", macro P[macro] D[macro]
12741 # Replace #undef with comments. This is necessary, for example,
12742 # in the case of _POSIX_SOURCE, which is predefined and required
12743 # on some systems where configure will not decide to define it.
12744 if (defundef == "undef") {
12745 print "/*", prefix defundef, macro, "*/"
12753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12755 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12756 { (exit 1); exit 1; }; }
12757 fi # test -n "$CONFIG_HEADERS"
12760 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12765 :[FHLC]) ac_mode=$ac_tag; continue;;
12767 case $ac_mode$ac_tag in
12769 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12770 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12771 { (exit 1); exit 1; }; };;
12772 :[FH]-) ac_tag=-:-;;
12773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12790 -) ac_f="$tmp/stdin";;
12791 *) # Look for the file first in the build tree, then in the source tree
12792 # (if the path is not absolute). The absolute path cannot be DOS-style,
12793 # because $ac_f cannot contain `:'.
12797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12799 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12800 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12801 { (exit 1); exit 1; }; };;
12803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12804 ac_file_inputs="$ac_file_inputs '$ac_f'"
12807 # Let's still pretend it is `configure' which instantiates (i.e., don't
12808 # use $as_me), people would be surprised to read:
12809 # /* config.h. Generated by config.status. */
12810 configure_input='Generated from '`
12811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12813 if test x"$ac_file" != x-; then
12814 configure_input="$ac_file. $configure_input"
12815 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12816 $as_echo "$as_me: creating $ac_file" >&6;}
12818 # Neutralize special characters interpreted by sed in replacement strings.
12819 case $configure_input in #(
12820 *\&* | *\|* | *\\* )
12821 ac_sed_conf_input=`$as_echo "$configure_input" |
12822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12823 *) ac_sed_conf_input=$configure_input;;
12827 *:-:* | *:-) cat >"$tmp/stdin" \
12828 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12829 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12830 { (exit 1); exit 1; }; } ;;
12835 ac_dir=`$as_dirname -- "$ac_file" ||
12836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12837 X"$ac_file" : 'X\(//\)[^/]' \| \
12838 X"$ac_file" : 'X\(//\)$' \| \
12839 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12840 $as_echo X"$ac_file" |
12841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12845 /^X\(\/\/\)[^/].*/{
12860 -*) as_dir=./$as_dir;;
12862 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12866 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12867 *) as_qdir=$as_dir;;
12869 as_dirs="'$as_qdir' $as_dirs"
12870 as_dir=`$as_dirname -- "$as_dir" ||
12871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12872 X"$as_dir" : 'X\(//\)[^/]' \| \
12873 X"$as_dir" : 'X\(//\)$' \| \
12874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12875 $as_echo X"$as_dir" |
12876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12880 /^X\(\/\/\)[^/].*/{
12893 test -d "$as_dir" && break
12895 test -z "$as_dirs" || eval "mkdir $as_dirs"
12896 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12897 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12898 { (exit 1); exit 1; }; }; }
12902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12905 # A ".." for each directory in $ac_dir_suffix.
12906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12907 case $ac_top_builddir_sub in
12908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12912 ac_abs_top_builddir=$ac_pwd
12913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12914 # for backward compatibility:
12915 ac_top_builddir=$ac_top_build_prefix
12918 .) # We are building in place.
12920 ac_top_srcdir=$ac_top_builddir_sub
12921 ac_abs_top_srcdir=$ac_pwd ;;
12922 [\\/]* | ?:[\\/]* ) # Absolute name.
12923 ac_srcdir=$srcdir$ac_dir_suffix;
12924 ac_top_srcdir=$srcdir
12925 ac_abs_top_srcdir=$srcdir ;;
12926 *) # Relative name.
12927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12928 ac_top_srcdir=$ac_top_build_prefix$srcdir
12929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12941 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12942 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12947 # If the template does not know about datarootdir, expand it.
12948 # FIXME: This hack should be removed a few years after 2.60.
12949 ac_datarootdir_hack=; ac_datarootdir_seen=
12962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12963 *datarootdir*) ac_datarootdir_seen=yes;;
12964 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12965 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969 ac_datarootdir_hack='
12970 s&@datadir@&$datadir&g
12971 s&@docdir@&$docdir&g
12972 s&@infodir@&$infodir&g
12973 s&@localedir@&$localedir&g
12974 s&@mandir@&$mandir&g
12975 s&\\\${datarootdir}&$datarootdir&g' ;;
12979 # Neutralize VPATH when `$srcdir' = `.'.
12980 # Shell code in configure.ac might set extrasub.
12981 # FIXME: do we really want to maintain this feature?
12982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12983 ac_sed_extra="$ac_vpsub
12986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12989 s|@configure_input@|$ac_sed_conf_input|;t t
12990 s&@top_builddir@&$ac_top_builddir_sub&;t t
12991 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12992 s&@srcdir@&$ac_srcdir&;t t
12993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12994 s&@top_srcdir@&$ac_top_srcdir&;t t
12995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12996 s&@builddir@&$ac_builddir&;t t
12997 s&@abs_builddir@&$ac_abs_builddir&;t t
12998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12999 s&@INSTALL@&$ac_INSTALL&;t t
13000 $ac_datarootdir_hack
13002 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13003 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13004 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13005 { (exit 1); exit 1; }; }
13007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13010 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011 which seems to be undefined. Please make sure it is defined." >&5
13012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13013 which seems to be undefined. Please make sure it is defined." >&2;}
13017 -) cat "$tmp/out" && rm -f "$tmp/out";;
13018 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13020 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13022 { (exit 1); exit 1; }; }
13028 if test x"$ac_file" != x-; then
13030 $as_echo "/* $configure_input */" \
13031 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13032 } >"$tmp/config.h" \
13033 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13034 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13035 { (exit 1); exit 1; }; }
13036 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13037 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13038 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13041 mv "$tmp/config.h" "$ac_file" \
13042 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13043 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13044 { (exit 1); exit 1; }; }
13047 $as_echo "/* $configure_input */" \
13048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13049 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13050 $as_echo "$as_me: error: could not create -" >&2;}
13051 { (exit 1); exit 1; }; }
13055 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13056 $as_echo "$as_me: executing $ac_file commands" >&6;}
13061 case $ac_file$ac_mode in
13062 "default":C) echo timestamp > stamp-h ;;
13068 { (exit 0); exit 0; }
13070 chmod +x $CONFIG_STATUS
13071 ac_clean_files=$ac_clean_files_save
13073 test $ac_write_fail = 0 ||
13074 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13075 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13076 { (exit 1); exit 1; }; }
13079 # configure is writing to config.log, and then calls config.status.
13080 # config.status does its own redirection, appending to config.log.
13081 # Unfortunately, on DOS this fails, as config.log is still kept open
13082 # by configure, so config.status won't be able to write to it; its
13083 # output is simply discarded. So we exec the FD to /dev/null,
13084 # effectively closing config.log, so it can be properly (re)opened and
13085 # appended to by config.status. When coming back to configure, we
13086 # need to make the FD available again.
13087 if test "$no_create" != yes; then
13089 ac_config_status_args=
13090 test "$silent" = yes &&
13091 ac_config_status_args="$ac_config_status_args --quiet"
13093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13096 # would make configure fail if this is the last instruction.
13097 $ac_cs_success || { (exit 1); exit 1; }
13099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13100 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13101 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13105 ac_config_commands="$ac_config_commands default-1"