2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for nbd 2.9.13.
5 # Report bugs to <wouter@debian.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
598 PACKAGE_TARNAME='nbd'
599 PACKAGE_VERSION='2.9.13'
600 PACKAGE_STRING='nbd 2.9.13'
601 PACKAGE_BUGREPORT='wouter@debian.org'
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
677 MAINTAINER_MODE_FALSE
687 INSTALL_STRIP_PROGRAM
729 program_transform_name
741 enable_option_checking
742 enable_maintainer_mode
747 enable_dependency_tracking
750 ac_precious_vars='build_alias
762 # Initialize some variables set by options.
764 ac_init_version=false
765 ac_unrecognized_opts=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name=s,x,x,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
869 { (exit 1); exit 1; }; }
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
896 { (exit 1); exit 1; }; }
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=\$ac_optarg ;;
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
915 exec_prefix=$ac_optarg ;;
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
921 -help | --help | --hel | --he | -h)
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
928 -host | --host | --hos | --ho)
929 ac_prev=host_alias ;;
930 -host=* | --host=* | --hos=* | --ho=*)
931 host_alias=$ac_optarg ;;
933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 htmldir=$ac_optarg ;;
939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
944 includedir=$ac_optarg ;;
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
949 infodir=$ac_optarg ;;
951 -libdir | --libdir | --libdi | --libd)
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
961 libexecdir=$ac_optarg ;;
963 -localedir | --localedir | --localedi | --localed | --locale)
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
968 -localstatedir | --localstatedir | --localstatedi | --localstated \
969 | --localstate | --localstat | --localsta | --localst | --locals)
970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
973 localstatedir=$ac_optarg ;;
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 # Obsolete; use --without-fp.
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
985 | --no-cr | --no-c | -n)
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
999 oldincludedir=$ac_optarg ;;
1001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1004 prefix=$ac_optarg ;;
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1011 program_prefix=$ac_optarg ;;
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1018 program_suffix=$ac_optarg ;;
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
1035 program_transform_name=$ac_optarg ;;
1037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1042 -psdir | --psdir | --psdi | --psd | --ps)
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 sbindir=$ac_optarg ;;
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 sharedstatedir=$ac_optarg ;;
1068 -site | --site | --sit)
1070 -site=* | --site=* | --sit=*)
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1076 srcdir=$ac_optarg ;;
1078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1083 sysconfdir=$ac_optarg ;;
1085 -target | --target | --targe | --targ | --tar | --ta | --t)
1086 ac_prev=target_alias ;;
1087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1088 target_alias=$ac_optarg ;;
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
1097 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=no ;;
1131 # Obsolete; use --with-x.
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1148 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1149 Try \`$0 --help' for more information." >&2
1150 { (exit 1); exit 1; }; }
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1157 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1158 { (exit 1); exit 1; }; }
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1176 { (exit 1); exit 1; }; }
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1183 { (exit 1); exit 1; }; } ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207 { (exit 1); exit 1; }; }
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231 test "$silent" = yes && exec 6>/dev/null
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1238 { (exit 1); exit 1; }; }
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1241 { (exit 1); exit 1; }; }
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281 { (exit 1); exit 1; }; }
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1286 { (exit 1); exit 1; }; }
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures nbd 2.9.13 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of nbd 2.9.13:";;
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-maintainer-mode enable make rules and dependencies not useful
1391 (and sometimes confusing) to the casual installer
1392 --disable-lfs Disable Large File Support (default on)
1393 --enable-syslog Enable Syslog logging
1394 --enable-debug Build a debugging version of the server
1395 --enable-sdp Build a version of nbd-server with support for the
1396 Socket Direct Protocol (SDP). Requires you to build
1397 and install a kernel with the InfiniBand patches
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --disable-glibtest do not try to compile and run a test GLIB program
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1412 PKG_CONFIG path to pkg-config utility
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to <wouter@debian.org>.
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1447 .) # We are building in place.
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
1452 ac_srcdir=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 cd "$ac_pwd" || { ac_status=$?; break; }
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1480 nbd configure 2.9.13
1481 generated by GNU Autoconf 2.63
1483 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1484 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1490 cat >config.log <<_ACEOF
1491 This file contains any messages produced by compilers while
1492 running configure, to aid debugging if configure makes a mistake.
1494 It was created by nbd $as_me 2.9.13, which was
1495 generated by GNU Autoconf 2.63. Invocation command line was
1507 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1508 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1509 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1510 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1511 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1513 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1514 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1516 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1517 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1518 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1519 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1520 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1521 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1522 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 $as_echo "PATH: $as_dir"
1547 # Keep a trace of the command line.
1548 # Strip out --no-create and --no-recursion so they do not pile up.
1549 # Strip out --silent because we don't want to record it for future runs.
1550 # Also quote any args containing shell meta-characters.
1551 # Make two passes to allow for proper duplicate-argument suppression.
1555 ac_must_keep_next=false
1561 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1563 | -silent | --silent | --silen | --sile | --sil)
1566 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1569 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1571 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1572 if test $ac_must_keep_next = true; then
1573 ac_must_keep_next=false # Got value, back to normal.
1576 *=* | --config-cache | -C | -disable-* | --disable-* \
1577 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1578 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1579 | -with-* | --with-* | -without-* | --without-* | --x)
1580 case "$ac_configure_args0 " in
1581 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1584 -* ) ac_must_keep_next=true ;;
1587 ac_configure_args="$ac_configure_args '$ac_arg'"
1592 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1593 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1595 # When interrupted or exit'd, cleanup temporary files, and complete
1596 # config.log. We remove comments because anyway the quotes in there
1597 # would cause problems or look ugly.
1598 # WARNING: Use '\'' to represent an apostrophe within the trap.
1599 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1600 trap 'exit_status=$?
1601 # Save into config.log some information that might help in debugging.
1606 ## ---------------- ##
1607 ## Cache variables. ##
1608 ## ---------------- ##
1611 # The following way of writing the cache mishandles newlines in values,
1613 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1614 eval ac_val=\$$ac_var
1618 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1619 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1622 _ | IFS | as_nl) ;; #(
1623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1624 *) $as_unset $ac_var ;;
1629 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1630 *${as_nl}ac_space=\ *)
1632 "s/'\''/'\''\\\\'\'''\''/g;
1633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1644 ## ----------------- ##
1645 ## Output variables. ##
1646 ## ----------------- ##
1649 for ac_var in $ac_subst_vars
1651 eval ac_val=\$$ac_var
1653 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 $as_echo "$ac_var='\''$ac_val'\''"
1659 if test -n "$ac_subst_files"; then
1661 ## ------------------- ##
1662 ## File substitutions. ##
1663 ## ------------------- ##
1666 for ac_var in $ac_subst_files
1668 eval ac_val=\$$ac_var
1670 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 $as_echo "$ac_var='\''$ac_val'\''"
1677 if test -s confdefs.h; then
1687 test "$ac_signal" != 0 &&
1688 $as_echo "$as_me: caught signal $ac_signal"
1689 $as_echo "$as_me: exit $exit_status"
1691 rm -f core *.core core.conftest.* &&
1692 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1695 for ac_signal in 1 2 13 15; do
1696 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1700 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1701 rm -f -r conftest* confdefs.h
1703 # Predefined preprocessor variables.
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_NAME "$PACKAGE_NAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_STRING "$PACKAGE_STRING"
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1730 # Let the site file select an alternate cache file if it wants to.
1731 # Prefer an explicitly selected file to automatically selected ones.
1734 if test -n "$CONFIG_SITE"; then
1735 ac_site_file1=$CONFIG_SITE
1736 elif test "x$prefix" != xNONE; then
1737 ac_site_file1=$prefix/share/config.site
1738 ac_site_file2=$prefix/etc/config.site
1740 ac_site_file1=$ac_default_prefix/share/config.site
1741 ac_site_file2=$ac_default_prefix/etc/config.site
1743 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1745 test "x$ac_site_file" = xNONE && continue
1746 if test -r "$ac_site_file"; then
1747 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1748 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1749 sed 's/^/| /' "$ac_site_file" >&5
1754 if test -r "$cache_file"; then
1755 # Some versions of bash will fail to source /dev/null (special
1756 # files actually), so we avoid doing that.
1757 if test -f "$cache_file"; then
1758 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1759 $as_echo "$as_me: loading cache $cache_file" >&6;}
1761 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1762 *) . "./$cache_file";;
1766 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1767 $as_echo "$as_me: creating cache $cache_file" >&6;}
1771 # Check that the precious variables saved in the cache have kept the same
1773 ac_cache_corrupted=false
1774 for ac_var in $ac_precious_vars; do
1775 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1776 eval ac_new_set=\$ac_env_${ac_var}_set
1777 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1778 eval ac_new_val=\$ac_env_${ac_var}_value
1779 case $ac_old_set,$ac_new_set in
1781 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1782 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1783 ac_cache_corrupted=: ;;
1785 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1790 if test "x$ac_old_val" != "x$ac_new_val"; then
1791 # differences in whitespace do not lead to failure.
1792 ac_old_val_w=`echo x $ac_old_val`
1793 ac_new_val_w=`echo x $ac_new_val`
1794 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1795 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1796 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1797 ac_cache_corrupted=:
1799 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1800 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1801 eval $ac_var=\$ac_old_val
1803 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1804 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1805 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1806 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1809 # Pass precious variables to config.status.
1810 if test "$ac_new_set" = set; then
1812 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1813 *) ac_arg=$ac_var=$ac_new_val ;;
1815 case " $ac_configure_args " in
1816 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1817 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1821 if $ac_cache_corrupted; then
1822 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1824 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1825 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1826 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1828 { (exit 1); exit 1; }; }
1856 ac_cpp='$CPP $CPPFLAGS'
1857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 am__api_version='1.10'
1865 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1866 if test -f "$ac_dir/install-sh"; then
1868 ac_install_sh="$ac_aux_dir/install-sh -c"
1870 elif test -f "$ac_dir/install.sh"; then
1872 ac_install_sh="$ac_aux_dir/install.sh -c"
1874 elif test -f "$ac_dir/shtool"; then
1876 ac_install_sh="$ac_aux_dir/shtool install -c"
1880 if test -z "$ac_aux_dir"; then
1881 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1882 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1883 { (exit 1); exit 1; }; }
1886 # These three variables are undocumented and unsupported,
1887 # and are intended to be withdrawn in a future Autoconf release.
1888 # They can cause serious problems if a builder's source tree is in a directory
1889 # whose full name contains unusual characters.
1890 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1891 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1892 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1895 # Find a good install program. We prefer a C program (faster),
1896 # so one script is as good as another. But avoid the broken or
1897 # incompatible versions:
1898 # SysV /etc/install, /usr/sbin/install
1899 # SunOS /usr/etc/install
1900 # IRIX /sbin/install
1902 # AmigaOS /C/install, which installs bootblocks on floppy discs
1903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1906 # OS/2's system install, which has a completely different semantic
1907 # ./install, which can be erroneously created by make from ./install.sh.
1908 # Reject install programs that cannot install multiple files.
1909 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1910 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1911 if test -z "$INSTALL"; then
1912 if test "${ac_cv_path_install+set}" = set; then
1913 $as_echo_n "(cached) " >&6
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 # Account for people who put trailing slashes in PATH elements.
1922 ./ | .// | /cC/* | \
1923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1924 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1927 # OSF1 and SCO ODT 3.0 have their own names for install.
1928 # Don't use installbsd from OSF since it installs stuff as root
1930 for ac_prog in ginstall scoinst install; do
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1933 if test $ac_prog = install &&
1934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1935 # AIX install. It has an incompatible calling convention.
1937 elif test $ac_prog = install &&
1938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1939 # program-specific install script used by HP pwplus--don't use.
1942 rm -rf conftest.one conftest.two conftest.dir
1943 echo one > conftest.one
1944 echo two > conftest.two
1946 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1947 test -s conftest.one && test -s conftest.two &&
1948 test -s conftest.dir/conftest.one &&
1949 test -s conftest.dir/conftest.two
1951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1964 rm -rf conftest.one conftest.two conftest.dir
1967 if test "${ac_cv_path_install+set}" = set; then
1968 INSTALL=$ac_cv_path_install
1970 # As a last resort, use the slow shell script. Don't cache a
1971 # value for INSTALL within a source directory, because that will
1972 # break other packages using the cache if that directory is
1973 # removed, or if the value is a relative name.
1974 INSTALL=$ac_install_sh
1977 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1978 $as_echo "$INSTALL" >&6; }
1980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1981 # It thinks the first close brace ends the variable substitution.
1982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1988 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1989 $as_echo_n "checking whether build environment is sane... " >&6; }
1992 echo timestamp > conftest.file
1993 # Do `set' in a subshell so we don't clobber the current shell's
1994 # arguments. Must try -L first in case configure is actually a
1995 # symlink; some systems play weird games with the mod time of symlinks
1996 # (eg FreeBSD returns the mod time of the symlink's containing
1999 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2000 if test "$*" = "X"; then
2002 set X `ls -t $srcdir/configure conftest.file`
2005 if test "$*" != "X $srcdir/configure conftest.file" \
2006 && test "$*" != "X conftest.file $srcdir/configure"; then
2008 # If neither matched, then we have a broken ls. This can happen
2009 # if, for instance, CONFIG_SHELL is bash and it inherits a
2010 # broken ls alias from the environment. This has actually
2011 # happened. Such a system could not be considered "sane".
2012 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2013 alias in your environment" >&5
2014 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2015 alias in your environment" >&2;}
2016 { (exit 1); exit 1; }; }
2019 test "$2" = conftest.file
2025 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2026 Check your system clock" >&5
2027 $as_echo "$as_me: error: newly created file is older than distributed files!
2028 Check your system clock" >&2;}
2029 { (exit 1); exit 1; }; }
2031 { $as_echo "$as_me:$LINENO: result: yes" >&5
2032 $as_echo "yes" >&6; }
2033 test "$program_prefix" != NONE &&
2034 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2035 # Use a double $ so make ignores it.
2036 test "$program_suffix" != NONE &&
2037 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2038 # Double any \ or $.
2039 # By default was `s,x,x', remove it if useless.
2040 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2041 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2043 # expand $ac_aux_dir to an absolute path
2044 am_aux_dir=`cd $ac_aux_dir && pwd`
2046 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2047 # Use eval to expand $SHELL
2048 if eval "$MISSING --run true"; then
2049 am_missing_run="$MISSING --run "
2052 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2053 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2056 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2057 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2058 if test -z "$MKDIR_P"; then
2059 if test "${ac_cv_path_mkdir+set}" = set; then
2060 $as_echo_n "(cached) " >&6
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2066 test -z "$as_dir" && as_dir=.
2067 for ac_prog in mkdir gmkdir; do
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2070 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2071 'mkdir (GNU coreutils) '* | \
2072 'mkdir (coreutils) '* | \
2073 'mkdir (fileutils) '4.1*)
2074 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2084 if test "${ac_cv_path_mkdir+set}" = set; then
2085 MKDIR_P="$ac_cv_path_mkdir -p"
2087 # As a last resort, use the slow shell script. Don't cache a
2088 # value for MKDIR_P within a source directory, because that will
2089 # break other packages using the cache if that directory is
2090 # removed, or if the value is a relative name.
2091 test -d ./--version && rmdir ./--version
2092 MKDIR_P="$ac_install_sh -d"
2095 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2096 $as_echo "$MKDIR_P" >&6; }
2100 [\\/$]* | ?:[\\/]*) ;;
2101 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2104 for ac_prog in gawk mawk nawk awk
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 $as_echo_n "checking for $ac_word... " >&6; }
2110 if test "${ac_cv_prog_AWK+set}" = set; then
2111 $as_echo_n "(cached) " >&6
2113 if test -n "$AWK"; then
2114 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_AWK="$ac_prog"
2124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 if test -n "$AWK"; then
2135 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2136 $as_echo "$AWK" >&6; }
2138 { $as_echo "$as_me:$LINENO: result: no" >&5
2139 $as_echo "no" >&6; }
2143 test -n "$AWK" && break
2146 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2147 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2149 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2150 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2151 $as_echo_n "(cached) " >&6
2153 cat >conftest.make <<\_ACEOF
2156 @echo '@@@%%%=$(MAKE)=@@@%%%'
2158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2159 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2161 eval ac_cv_prog_make_${ac_make}_set=yes;;
2163 eval ac_cv_prog_make_${ac_make}_set=no;;
2167 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2168 { $as_echo "$as_me:$LINENO: result: yes" >&5
2169 $as_echo "yes" >&6; }
2172 { $as_echo "$as_me:$LINENO: result: no" >&5
2173 $as_echo "no" >&6; }
2174 SET_MAKE="MAKE=${MAKE-make}"
2177 rm -rf .tst 2>/dev/null
2178 mkdir .tst 2>/dev/null
2179 if test -d .tst; then
2184 rmdir .tst 2>/dev/null
2186 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2187 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2188 # is not polluted with repeated "-I."
2189 am__isrc=' -I$(srcdir)'
2190 # test to see if srcdir already configured
2191 if test -f $srcdir/config.status; then
2192 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2193 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2194 { (exit 1); exit 1; }; }
2198 # test whether we have cygpath
2199 if test -z "$CYGPATH_W"; then
2200 if (cygpath --version) >/dev/null 2>/dev/null; then
2201 CYGPATH_W='cygpath -w'
2208 # Define the identity of the package.
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE "$PACKAGE"
2218 cat >>confdefs.h <<_ACEOF
2219 #define VERSION "$VERSION"
2222 # Some tools Automake needs.
2224 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2227 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2230 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2233 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2236 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2238 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2240 # Installed binaries are usually stripped using `strip' when the user
2241 # run `make install-strip'. However `strip' might not be the right
2242 # tool to use in cross-compilation environments, therefore Automake
2243 # will honor the `STRIP' environment variable to overrule this program.
2244 if test "$cross_compiling" != no; then
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}strip; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_STRIP+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2253 if test -n "$STRIP"; then
2254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 STRIP=$ac_cv_prog_STRIP
2274 if test -n "$STRIP"; then
2275 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2276 $as_echo "$STRIP" >&6; }
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2284 if test -z "$ac_cv_prog_STRIP"; then
2286 # Extract the first word of "strip", so it can be a program name with args.
2287 set dummy strip; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2291 $as_echo_n "(cached) " >&6
2293 if test -n "$ac_ct_STRIP"; then
2294 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_ac_ct_STRIP="strip"
2304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2314 if test -n "$ac_ct_STRIP"; then
2315 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2316 $as_echo "$ac_ct_STRIP" >&6; }
2318 { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2322 if test "x$ac_ct_STRIP" = x; then
2325 case $cross_compiling:$ac_tool_warned in
2327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329 ac_tool_warned=yes ;;
2334 STRIP="$ac_cv_prog_STRIP"
2338 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2340 # We need awk for the "check" target. The system "awk" is bad on
2342 # Always define AMTAR for backward compatibility.
2344 AMTAR=${AMTAR-"${am_missing_run}tar"}
2346 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2352 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2353 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2354 # Check whether --enable-maintainer-mode was given.
2355 if test "${enable_maintainer_mode+set}" = set; then
2356 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2358 USE_MAINTAINER_MODE=no
2361 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2362 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2363 if test $USE_MAINTAINER_MODE = yes; then
2364 MAINTAINER_MODE_TRUE=
2365 MAINTAINER_MODE_FALSE='#'
2367 MAINTAINER_MODE_TRUE='#'
2368 MAINTAINER_MODE_FALSE=
2371 MAINT=$MAINTAINER_MODE_TRUE
2375 # Check whether --enable-lfs was given.
2376 if test "${enable_lfs+set}" = set; then
2377 enableval=$enable_lfs;
2378 if test "x$enableval" = "xyes" ; then
2389 { $as_echo "$as_me:$LINENO: checking whether Large File Support should be enabled" >&5
2390 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2391 if test $NBD_LFS -eq 1; then
2393 cat >>confdefs.h <<\_ACEOF
2397 { $as_echo "$as_me:$LINENO: result: yes" >&5
2398 $as_echo "yes" >&6; }
2400 cat >>confdefs.h <<\_ACEOF
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2408 # Check whether --enable-syslog was given.
2409 if test "${enable_syslog+set}" = set; then
2410 enableval=$enable_syslog;
2411 if test "x$enableval" = "xyes" ; then
2423 { $as_echo "$as_me:$LINENO: checking whether syslog logging is requested" >&5
2424 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2425 if test $ISSERVER -eq 1; then
2427 cat >>confdefs.h <<\_ACEOF
2431 { $as_echo "$as_me:$LINENO: result: yes" >&5
2432 $as_echo "yes" >&6; }
2434 { $as_echo "$as_me:$LINENO: result: no" >&5
2435 $as_echo "no" >&6; }
2438 # Check whether --enable-debug was given.
2439 if test "${enable_debug+set}" = set; then
2440 enableval=$enable_debug;
2441 if test "x$enableval" = "xyes"; then
2453 { $as_echo "$as_me:$LINENO: checking whether a debugging version is requested" >&5
2454 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2455 if test $DODBG -eq 1; then
2456 { $as_echo "$as_me:$LINENO: result: yes" >&5
2457 $as_echo "yes" >&6; }
2458 if test $ISSERVER -eq 1; then
2459 { { $as_echo "$as_me:$LINENO: error: You requested both syslog logging and a debugging version of the server. Bad idea!" >&5
2460 $as_echo "$as_me: error: You requested both syslog logging and a debugging version of the server. Bad idea!" >&2;}
2461 { (exit 1); exit 1; }; }
2464 cat >>confdefs.h <<\_ACEOF
2469 cat >>confdefs.h <<\_ACEOF
2474 { $as_echo "$as_me:$LINENO: result: no" >&5
2475 $as_echo "no" >&6; }
2478 # Check whether --enable-sdp was given.
2479 if test "${enable_sdp+set}" = set; then
2480 enableval=$enable_sdp;
2481 if test "x$enableval" = "xyes"; then
2483 cat >>confdefs.h <<\_ACEOF
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 $as_echo_n "(cached) " >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test -n "$CC"; then
2528 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2529 $as_echo "$CC" >&6; }
2531 { $as_echo "$as_me:$LINENO: result: no" >&5
2532 $as_echo "no" >&6; }
2537 if test -z "$ac_cv_prog_CC"; then
2539 # Extract the first word of "gcc", so it can be a program name with args.
2540 set dummy gcc; ac_word=$2
2541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2546 if test -n "$ac_ct_CC"; then
2547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_ac_ct_CC="gcc"
2557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567 if test -n "$ac_ct_CC"; then
2568 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2569 $as_echo "$ac_ct_CC" >&6; }
2571 { $as_echo "$as_me:$LINENO: result: no" >&5
2572 $as_echo "no" >&6; }
2575 if test "x$ac_ct_CC" = x; then
2578 case $cross_compiling:$ac_tool_warned in
2580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582 ac_tool_warned=yes ;;
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597 $as_echo_n "(cached) " >&6
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CC"; then
2621 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2624 { $as_echo "$as_me:$LINENO: result: no" >&5
2625 $as_echo "no" >&6; }
2631 if test -z "$CC"; then
2632 # Extract the first word of "cc", so it can be a program name with args.
2633 set dummy cc; ac_word=$2
2634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651 ac_prog_rejected=yes
2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test $ac_prog_rejected = yes; then
2663 # We found a bogon in the path, so make sure we never use it.
2664 set dummy $ac_cv_prog_CC
2666 if test $# != 0; then
2667 # We chose a different compiler from the bogus one.
2668 # However, it has the same basename, so the bogon will be chosen
2669 # first if we set CC to just the basename; use the full file name.
2671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 for ac_prog in cl.exe
2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$CC"; then
2720 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2723 { $as_echo "$as_me:$LINENO: result: no" >&5
2724 $as_echo "no" >&6; }
2728 test -n "$CC" && break
2731 if test -z "$CC"; then
2733 for ac_prog in cl.exe
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_ac_ct_CC="$ac_prog"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2765 $as_echo "$ac_ct_CC" >&6; }
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$ac_ct_CC" && break
2775 if test "x$ac_ct_CC" = x; then
2778 case $cross_compiling:$ac_tool_warned in
2780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2791 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2794 See \`config.log' for more details." >&5
2795 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2796 See \`config.log' for more details." >&2;}
2797 { (exit 1); exit 1; }; }; }
2799 # Provide some information about the compiler.
2800 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2803 { (ac_try="$ac_compiler --version >&5"
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809 $as_echo "$ac_try_echo") >&5
2810 (eval "$ac_compiler --version >&5") 2>&5
2812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }
2814 { (ac_try="$ac_compiler -v >&5"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820 $as_echo "$ac_try_echo") >&5
2821 (eval "$ac_compiler -v >&5") 2>&5
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
2825 { (ac_try="$ac_compiler -V >&5"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831 $as_echo "$ac_try_echo") >&5
2832 (eval "$ac_compiler -V >&5") 2>&5
2834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 ac_clean_files_save=$ac_clean_files
2853 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2854 # Try to create an executable without -o first, disregard a.out.
2855 # It will help us diagnose broken compilers, and finding out an intuition
2857 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2858 $as_echo_n "checking for C compiler default output file name... " >&6; }
2859 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2861 # The possible output files:
2862 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2865 for ac_file in $ac_files
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2869 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2874 if { (ac_try="$ac_link_default"
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_link_default") 2>&5
2883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; then
2885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2887 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2888 # so that the user can short-circuit this test for compilers unknown to
2890 for ac_file in $ac_files ''
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2897 # We found the default executable, but exeext='' is most
2901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905 # We set ac_cv_exeext here because the later test for it is not
2906 # safe: cross compilers may not add the suffix if given an `-o'
2907 # argument, so we may need to know it at that point already.
2908 # Even if this section looks crufty: it has the advantage of
2915 test "$ac_cv_exeext" = no && ac_cv_exeext=
2921 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2922 $as_echo "$ac_file" >&6; }
2923 if test -z "$ac_file"; then
2924 $as_echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2930 See \`config.log' for more details." >&5
2931 $as_echo "$as_me: error: C compiler cannot create executables
2932 See \`config.log' for more details." >&2;}
2933 { (exit 77); exit 77; }; }; }
2936 ac_exeext=$ac_cv_exeext
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2941 $as_echo_n "checking whether the C compiler works... " >&6; }
2942 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2943 # If not cross compiling, check that we can run a simple program.
2944 if test "$cross_compiling" != yes; then
2945 if { ac_try='./$ac_file'
2946 { (case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951 $as_echo "$ac_try_echo") >&5
2952 (eval "$ac_try") 2>&5
2954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 if test "$cross_compiling" = maybe; then
2961 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'.
2965 See \`config.log' for more details." >&5
2966 $as_echo "$as_me: error: cannot run C compiled programs.
2967 If you meant to cross compile, use \`--host'.
2968 See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }; }
2973 { $as_echo "$as_me:$LINENO: result: yes" >&5
2974 $as_echo "yes" >&6; }
2976 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2977 ac_clean_files=$ac_clean_files_save
2978 # Check that the compiler produces executables we can run. If not, either
2979 # the compiler is broken, or we cross compile.
2980 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981 $as_echo_n "checking whether we are cross compiling... " >&6; }
2982 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983 $as_echo "$cross_compiling" >&6; }
2985 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986 $as_echo_n "checking for suffix of executables... " >&6; }
2987 if { (ac_try="$ac_link"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2993 $as_echo "$ac_try_echo") >&5
2994 (eval "$ac_link") 2>&5
2996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; then
2998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3000 # work properly (i.e., refer to `conftest.exe'), while it won't with
3002 for ac_file in conftest.exe conftest conftest.*; do
3003 test -f "$ac_file" || continue
3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3015 See \`config.log' for more details." >&5
3016 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }; }
3021 rm -f conftest$ac_cv_exeext
3022 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3023 $as_echo "$ac_cv_exeext" >&6; }
3025 rm -f conftest.$ac_ext
3026 EXEEXT=$ac_cv_exeext
3028 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3029 $as_echo_n "checking for suffix of object files... " >&6; }
3030 if test "${ac_cv_objext+set}" = set; then
3031 $as_echo_n "(cached) " >&6
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3048 rm -f conftest.o conftest.obj
3049 if { (ac_try="$ac_compile"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055 $as_echo "$ac_try_echo") >&5
3056 (eval "$ac_compile") 2>&5
3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 for ac_file in conftest.o conftest.obj conftest.*; do
3061 test -f "$ac_file" || continue;
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3064 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3069 $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3075 See \`config.log' for more details." >&5
3076 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3077 See \`config.log' for more details." >&2;}
3078 { (exit 1); exit 1; }; }; }
3081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3084 $as_echo "$ac_cv_objext" >&6; }
3085 OBJEXT=$ac_cv_objext
3087 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3089 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_compile") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } && {
3125 test -z "$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3127 } && test -s conftest.$ac_objext; then
3130 $as_echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142 if test $ac_compiler_gnu = yes; then
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3151 if test "${ac_cv_prog_cc_g+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3154 ac_save_c_werror_flag=$ac_c_werror_flag
3155 ac_c_werror_flag=yes
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3212 rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3219 $as_echo "$ac_try_echo") >&5
3220 (eval "$ac_compile") 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && {
3227 test -z "$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 } && test -s conftest.$ac_objext; then
3232 $as_echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3288 $as_echo "$ac_cv_prog_cc_g" >&6; }
3289 if test "$ac_test_CFLAGS" = set; then
3290 CFLAGS=$ac_save_CFLAGS
3291 elif test $ac_cv_prog_cc_g = yes; then
3292 if test "$GCC" = yes; then
3298 if test "$GCC" = yes; then
3304 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3305 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3306 if test "${ac_cv_prog_cc_c89+set}" = set; then
3307 $as_echo_n "(cached) " >&6
3309 ac_cv_prog_cc_c89=no
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3319 #include <sys/types.h>
3320 #include <sys/stat.h>
3321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3322 struct buf { int x; };
3323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3324 static char *e (p, i)
3330 static char *f (char * (*g) (char **, int), char **p, ...)
3335 s = g (p, va_arg (v,int));
3340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3341 function prototypes and stuff, but not '\xHH' hex character constants.
3342 These don't provoke an error unfortunately, instead are silently treated
3343 as 'x'. The following induces an error, until -std is added to get
3344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3345 array size at least. It's necessary to write '\x00'==0 to get something
3346 that's true only with -std. */
3347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3350 inside strings and character constants. */
3352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354 int test (int i, double x);
3355 struct s1 {int (*f) (int a);};
3356 struct s2 {int (*f) (double a);};
3357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371 CC="$ac_save_CC $ac_arg"
3372 rm -f conftest.$ac_objext
3373 if { (ac_try="$ac_compile"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_prog_cc_c89=$ac_arg
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 rm -f conftest.$ac_ext
3406 case "x$ac_cv_prog_cc_c89" in
3408 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3411 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 DEPDIR="${am__leading_dot}deps"
3427 ac_config_commands="$ac_config_commands depfiles"
3430 am_make=${MAKE-make}
3431 cat > confinc << 'END'
3436 # If we don't find an include directive, just comment out the code.
3437 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3438 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3442 # First try GNU make style include.
3443 echo "include confinc" > confmf
3444 # We grep out `Entering directory' and `Leaving directory'
3445 # messages which can occur if `w' ends up in MAKEFLAGS.
3446 # In particular we don't look at `^make:' because GNU make might
3447 # be invoked under some other name (usually "gmake"), in which
3448 # case it prints its new name instead of `make'.
3449 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3454 # Now try BSD make style include.
3455 if test "$am__include" = "#"; then
3456 echo '.include "confinc"' > confmf
3457 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3458 am__include=.include
3465 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3466 $as_echo "$_am_result" >&6; }
3467 rm -f confinc confmf
3469 # Check whether --enable-dependency-tracking was given.
3470 if test "${enable_dependency_tracking+set}" = set; then
3471 enableval=$enable_dependency_tracking;
3474 if test "x$enable_dependency_tracking" != xno; then
3475 am_depcomp="$ac_aux_dir/depcomp"
3478 if test "x$enable_dependency_tracking" != xno; then
3488 depcc="$CC" am_compiler_list=
3490 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3491 $as_echo_n "checking dependency style of $depcc... " >&6; }
3492 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496 # We make a subdir and do the tests there. Otherwise we can end up
3497 # making bogus files that we don't know about and never remove. For
3498 # instance it was reported that on HP-UX the gcc test will end up
3499 # making a dummy file named `D' -- because `-MD' means `put the output
3502 # Copy depcomp to subdir because otherwise we won't find it if we're
3503 # using a relative directory.
3504 cp "$am_depcomp" conftest.dir
3506 # We will build objects and dependencies in a subdirectory because
3507 # it helps to detect inapplicable dependency modes. For instance
3508 # both Tru64's cc and ICC support -MD to output dependencies as a
3509 # side effect of compilation, but ICC will put the dependencies in
3510 # the current directory while Tru64 will put them in the object
3514 am_cv_CC_dependencies_compiler_type=none
3515 if test "$am_compiler_list" = ""; then
3516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3518 for depmode in $am_compiler_list; do
3519 # Setup a source with many dependencies, because some compilers
3520 # like to wrap large dependency lists on column 80 (with \), and
3521 # we should not choose a depcomp mode which is confused by this.
3523 # We need to recreate these files for each test, as the compiler may
3524 # overwrite some of them when testing with obscure command lines.
3525 # This happens at least with the AIX C compiler.
3527 for i in 1 2 3 4 5 6; do
3528 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3529 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3530 # Solaris 8's {/usr,}/bin/sh.
3531 touch sub/conftst$i.h
3533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3537 # after this tag, mechanisms are not by side-effect, so they'll
3538 # only be used when explicitly requested
3539 if test "x$enable_dependency_tracking" = xyes; then
3547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3548 # mode. It turns out that the SunPro C++ compiler does not properly
3549 # handle `-M -o', and we need to detect this.
3550 if depmode=$depmode \
3551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3554 >/dev/null 2>conftest.err &&
3555 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3557 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3559 # icc doesn't choke on unknown options, it will just issue warnings
3560 # or remarks (even with -Werror). So we grep stderr for any message
3561 # that says an option was ignored or not supported.
3562 # When given -MP, icc 7.0 and 7.1 complain thusly:
3563 # icc: Command line warning: ignoring option '-M'; no argument required
3564 # The diagnosis changed in icc 8.0:
3565 # icc: Command line remark: option '-MP' not supported
3566 if (grep 'ignoring option' conftest.err ||
3567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3568 am_cv_CC_dependencies_compiler_type=$depmode
3577 am_cv_CC_dependencies_compiler_type=none
3581 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3582 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3586 test "x$enable_dependency_tracking" != xno \
3587 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3589 am__fastdepCC_FALSE='#'
3591 am__fastdepCC_TRUE='#'
3592 am__fastdepCC_FALSE=
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3602 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3603 # On Suns, sometimes $CPP names a directory.
3604 if test -n "$CPP" && test -d "$CPP"; then
3607 if test -z "$CPP"; then
3608 if test "${ac_cv_prog_CPP+set}" = set; then
3609 $as_echo_n "(cached) " >&6
3611 # Double quotes because CPP needs to be expanded
3612 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3615 for ac_c_preproc_warn_flag in '' yes
3617 # Use a header file that comes with gcc, so configuring glibc
3618 # with a fresh cross-compiler works.
3619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3620 # <limits.h> exists even on freestanding compilers.
3621 # On the NeXT, cc -E runs the code through the compiler's parser,
3622 # not just through cpp. "Syntax error" is here to catch this case.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3630 # include <limits.h>
3632 # include <assert.h>
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } >/dev/null && {
3650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 # Broken: fails on valid input.
3662 rm -f conftest.err conftest.$ac_ext
3664 # OK, works on sane cases. Now check whether nonexistent headers
3665 # can be detected and how.
3666 cat >conftest.$ac_ext <<_ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #include <ac_nonexistent.h>
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3680 $as_echo "$ac_try_echo") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null && {
3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3691 # Broken: success on invalid input.
3694 $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 # Passes both tests.
3702 rm -f conftest.err conftest.$ac_ext
3705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706 rm -f conftest.err conftest.$ac_ext
3707 if $ac_preproc_ok; then
3719 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3720 $as_echo "$CPP" >&6; }
3722 for ac_c_preproc_warn_flag in '' yes
3724 # Use a header file that comes with gcc, so configuring glibc
3725 # with a fresh cross-compiler works.
3726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727 # <limits.h> exists even on freestanding compilers.
3728 # On the NeXT, cc -E runs the code through the compiler's parser,
3729 # not just through cpp. "Syntax error" is here to catch this case.
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3737 # include <limits.h>
3739 # include <assert.h>
3743 if { (ac_try="$ac_cpp conftest.$ac_ext"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3749 $as_echo "$ac_try_echo") >&5
3750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752 grep -v '^ *+' conftest.er1 >conftest.err
3754 cat conftest.err >&5
3755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev/null && {
3757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3758 test ! -s conftest.err
3762 $as_echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 # Broken: fails on valid input.
3769 rm -f conftest.err conftest.$ac_ext
3771 # OK, works on sane cases. Now check whether nonexistent headers
3772 # can be detected and how.
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3779 #include <ac_nonexistent.h>
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null && {
3795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3798 # Broken: success on invalid input.
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 # Passes both tests.
3809 rm -f conftest.err conftest.$ac_ext
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then
3817 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3820 See \`config.log' for more details." >&5
3821 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3822 See \`config.log' for more details." >&2;}
3823 { (exit 1); exit 1; }; }; }
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 # Find a good install program. We prefer a C program (faster),
3833 # so one script is as good as another. But avoid the broken or
3834 # incompatible versions:
3835 # SysV /etc/install, /usr/sbin/install
3836 # SunOS /usr/etc/install
3837 # IRIX /sbin/install
3839 # AmigaOS /C/install, which installs bootblocks on floppy discs
3840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3843 # OS/2's system install, which has a completely different semantic
3844 # ./install, which can be erroneously created by make from ./install.sh.
3845 # Reject install programs that cannot install multiple files.
3846 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3848 if test -z "$INSTALL"; then
3849 if test "${ac_cv_path_install+set}" = set; then
3850 $as_echo_n "(cached) " >&6
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 # Account for people who put trailing slashes in PATH elements.
3859 ./ | .// | /cC/* | \
3860 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3861 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3864 # OSF1 and SCO ODT 3.0 have their own names for install.
3865 # Don't use installbsd from OSF since it installs stuff as root
3867 for ac_prog in ginstall scoinst install; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3870 if test $ac_prog = install &&
3871 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3872 # AIX install. It has an incompatible calling convention.
3874 elif test $ac_prog = install &&
3875 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3876 # program-specific install script used by HP pwplus--don't use.
3879 rm -rf conftest.one conftest.two conftest.dir
3880 echo one > conftest.one
3881 echo two > conftest.two
3883 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3884 test -s conftest.one && test -s conftest.two &&
3885 test -s conftest.dir/conftest.one &&
3886 test -s conftest.dir/conftest.two
3888 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3901 rm -rf conftest.one conftest.two conftest.dir
3904 if test "${ac_cv_path_install+set}" = set; then
3905 INSTALL=$ac_cv_path_install
3907 # As a last resort, use the slow shell script. Don't cache a
3908 # value for INSTALL within a source directory, because that will
3909 # break other packages using the cache if that directory is
3910 # removed, or if the value is a relative name.
3911 INSTALL=$ac_install_sh
3914 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3915 $as_echo "$INSTALL" >&6; }
3917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3918 # It thinks the first close brace ends the variable substitution.
3919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3925 # Make sure we can run config.sub.
3926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3927 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3928 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3929 { (exit 1); exit 1; }; }
3931 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3932 $as_echo_n "checking build system type... " >&6; }
3933 if test "${ac_cv_build+set}" = set; then
3934 $as_echo_n "(cached) " >&6
3936 ac_build_alias=$build_alias
3937 test "x$ac_build_alias" = x &&
3938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3939 test "x$ac_build_alias" = x &&
3940 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3941 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3942 { (exit 1); exit 1; }; }
3943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3944 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3945 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3946 { (exit 1); exit 1; }; }
3949 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3950 $as_echo "$ac_cv_build" >&6; }
3951 case $ac_cv_build in
3953 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3954 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3955 { (exit 1); exit 1; }; };;
3958 ac_save_IFS=$IFS; IFS='-'
3964 # Remember, the first character of IFS is used to create $*,
3965 # except with old shells:
3968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3971 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3972 $as_echo_n "checking host system type... " >&6; }
3973 if test "${ac_cv_host+set}" = set; then
3974 $as_echo_n "(cached) " >&6
3976 if test "x$host_alias" = x; then
3977 ac_cv_host=$ac_cv_build
3979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3980 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3981 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3982 { (exit 1); exit 1; }; }
3986 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3990 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3991 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3992 { (exit 1); exit 1; }; };;
3995 ac_save_IFS=$IFS; IFS='-'
4001 # Remember, the first character of IFS is used to create $*,
4002 # except with old shells:
4005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4010 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4011 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4012 if test "${ac_cv_path_GREP+set}" = set; then
4013 $as_echo_n "(cached) " >&6
4015 if test -z "$GREP"; then
4016 ac_path_GREP_found=false
4017 # Loop through the user's path and test for each of PROGNAME-LIST
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 test -z "$as_dir" && as_dir=.
4023 for ac_prog in grep ggrep; do
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027 # Check for GNU ac_path_GREP and select it if it is found.
4028 # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4031 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4034 $as_echo_n 0123456789 >"conftest.in"
4037 cat "conftest.in" "conftest.in" >"conftest.tmp"
4038 mv "conftest.tmp" "conftest.in"
4039 cp "conftest.in" "conftest.nl"
4040 $as_echo 'GREP' >> "conftest.nl"
4041 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043 ac_count=`expr $ac_count + 1`
4044 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045 # Best one so far, save it but keep looking for a better one
4046 ac_cv_path_GREP="$ac_path_GREP"
4047 ac_path_GREP_max=$ac_count
4049 # 10*(2^10) chars as input seems more than enough
4050 test $ac_count -gt 10 && break
4052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 $ac_path_GREP_found && break 3
4060 if test -z "$ac_cv_path_GREP"; then
4061 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4062 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4063 { (exit 1); exit 1; }; }
4066 ac_cv_path_GREP=$GREP
4070 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4071 $as_echo "$ac_cv_path_GREP" >&6; }
4072 GREP="$ac_cv_path_GREP"
4075 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4076 $as_echo_n "checking for egrep... " >&6; }
4077 if test "${ac_cv_path_EGREP+set}" = set; then
4078 $as_echo_n "(cached) " >&6
4080 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4081 then ac_cv_path_EGREP="$GREP -E"
4083 if test -z "$EGREP"; then
4084 ac_path_EGREP_found=false
4085 # Loop through the user's path and test for each of PROGNAME-LIST
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 test -z "$as_dir" && as_dir=.
4091 for ac_prog in egrep; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4094 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4095 # Check for GNU ac_path_EGREP and select it if it is found.
4096 # Check for GNU $ac_path_EGREP
4097 case `"$ac_path_EGREP" --version 2>&1` in
4099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4102 $as_echo_n 0123456789 >"conftest.in"
4105 cat "conftest.in" "conftest.in" >"conftest.tmp"
4106 mv "conftest.tmp" "conftest.in"
4107 cp "conftest.in" "conftest.nl"
4108 $as_echo 'EGREP' >> "conftest.nl"
4109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111 ac_count=`expr $ac_count + 1`
4112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4113 # Best one so far, save it but keep looking for a better one
4114 ac_cv_path_EGREP="$ac_path_EGREP"
4115 ac_path_EGREP_max=$ac_count
4117 # 10*(2^10) chars as input seems more than enough
4118 test $ac_count -gt 10 && break
4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 $ac_path_EGREP_found && break 3
4128 if test -z "$ac_cv_path_EGREP"; then
4129 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4130 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4131 { (exit 1); exit 1; }; }
4134 ac_cv_path_EGREP=$EGREP
4139 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4140 $as_echo "$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4144 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4145 $as_echo_n "checking for ANSI C header files... " >&6; }
4146 if test "${ac_cv_header_stdc+set}" = set; then
4147 $as_echo_n "(cached) " >&6
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4168 rm -f conftest.$ac_objext
4169 if { (ac_try="$ac_compile"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4175 $as_echo "$ac_try_echo") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && {
4183 test -z "$ac_c_werror_flag" ||
4184 test ! -s conftest.err
4185 } && test -s conftest.$ac_objext; then
4186 ac_cv_header_stdc=yes
4188 $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_cv_header_stdc=no
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 if test $ac_cv_header_stdc = yes; then
4197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4198 cat >conftest.$ac_ext <<_ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "memchr" >/dev/null 2>&1; then
4211 ac_cv_header_stdc=no
4217 if test $ac_cv_header_stdc = yes; then
4218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4219 cat >conftest.$ac_ext <<_ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 $EGREP "free" >/dev/null 2>&1; then
4232 ac_cv_header_stdc=no
4238 if test $ac_cv_header_stdc = yes; then
4239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4240 if test "$cross_compiling" = yes; then
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4251 #if ((' ' & 0x0FF) == 0x020)
4252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4255 # define ISLOWER(c) \
4256 (('a' <= (c) && (c) <= 'i') \
4257 || ('j' <= (c) && (c) <= 'r') \
4258 || ('s' <= (c) && (c) <= 'z'))
4259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4267 for (i = 0; i < 256; i++)
4268 if (XOR (islower (i), ISLOWER (i))
4269 || toupper (i) != TOUPPER (i))
4274 rm -f conftest$ac_exeext
4275 if { (ac_try="$ac_link"
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_link") 2>&5
4284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4291 $as_echo "$ac_try_echo") >&5
4292 (eval "$ac_try") 2>&5
4294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4298 $as_echo "$as_me: program exited with status $ac_status" >&5
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4303 ac_cv_header_stdc=no
4305 rm -rf conftest.dSYM
4306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4313 $as_echo "$ac_cv_header_stdc" >&6; }
4314 if test $ac_cv_header_stdc = yes; then
4316 cat >>confdefs.h <<\_ACEOF
4317 #define STDC_HEADERS 1
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4333 inttypes.h stdint.h unistd.h
4335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 $as_echo_n "checking for $ac_header... " >&6; }
4338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4339 $as_echo_n "(cached) " >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4349 #include <$ac_header>
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4358 $as_echo "$ac_try_echo") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.$ac_objext; then
4369 eval "$as_ac_Header=yes"
4371 $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 eval "$as_ac_Header=no"
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_res=`eval 'as_val=${'$as_ac_Header'}
4380 $as_echo "$as_val"'`
4381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4382 $as_echo "$ac_res" >&6; }
4383 as_val=`eval 'as_val=${'$as_ac_Header'}
4384 $as_echo "$as_val"'`
4385 if test "x$as_val" = x""yes; then
4386 cat >>confdefs.h <<_ACEOF
4387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4398 if test "${ac_cv_c_bigendian+set}" = set; then
4399 $as_echo_n "(cached) " >&6
4401 ac_cv_c_bigendian=unknown
4402 # See if we're dealing with a universal compiler.
4403 cat >conftest.$ac_ext <<_ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4409 #ifndef __APPLE_CC__
4410 not a universal capable compiler
4415 rm -f conftest.$ac_objext
4416 if { (ac_try="$ac_compile"
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4422 $as_echo "$ac_try_echo") >&5
4423 (eval "$ac_compile") 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && {
4430 test -z "$ac_c_werror_flag" ||
4431 test ! -s conftest.err
4432 } && test -s conftest.$ac_objext; then
4434 # Check for potential -arch flags. It is not universal unless
4435 # there are some -arch flags. Note that *ppc* also matches
4436 # ppc64. This check is also rather less than ideal.
4437 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
4438 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 if test $ac_cv_c_bigendian = unknown; then
4449 # See if sys/param.h defines the BYTE_ORDER macro.
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <sys/types.h>
4457 #include <sys/param.h>
4462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4463 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480 (eval "$ac_compile") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && {
4487 test -z "$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 } && test -s conftest.$ac_objext; then
4490 # It does; now see whether it defined to BIG_ENDIAN or not.
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 #include <sys/types.h>
4498 #include <sys/param.h>
4503 #if BYTE_ORDER != BIG_ENDIAN
4511 rm -f conftest.$ac_objext
4512 if { (ac_try="$ac_compile"
4514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515 *) ac_try_echo=$ac_try;;
4517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4518 $as_echo "$ac_try_echo") >&5
4519 (eval "$ac_compile") 2>conftest.er1
4521 grep -v '^ *+' conftest.er1 >conftest.err
4523 cat conftest.err >&5
4524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && {
4526 test -z "$ac_c_werror_flag" ||
4527 test ! -s conftest.err
4528 } && test -s conftest.$ac_objext; then
4529 ac_cv_c_bigendian=yes
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_cv_c_bigendian=no
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 $as_echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 if test $ac_cv_c_bigendian = unknown; then
4548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4549 cat >conftest.$ac_ext <<_ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4560 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4568 rm -f conftest.$ac_objext
4569 if { (ac_try="$ac_compile"
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4575 $as_echo "$ac_try_echo") >&5
4576 (eval "$ac_compile") 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } && {
4583 test -z "$ac_c_werror_flag" ||
4584 test ! -s conftest.err
4585 } && test -s conftest.$ac_objext; then
4586 # It does; now see whether it defined to _BIG_ENDIAN or not.
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 $as_echo "$ac_try_echo") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
4624 ac_cv_c_bigendian=yes
4626 $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_cv_c_bigendian=no
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 $as_echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 if test $ac_cv_c_bigendian = unknown; then
4643 # Compile a test program.
4644 if test "$cross_compiling" = yes; then
4645 # Try to guess by grepping values from an object file.
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 short int ascii_mm[] =
4653 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4654 short int ascii_ii[] =
4655 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4656 int use_ascii (int i) {
4657 return ascii_mm[i] + ascii_ii[i];
4659 short int ebcdic_ii[] =
4660 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4661 short int ebcdic_mm[] =
4662 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4663 int use_ebcdic (int i) {
4664 return ebcdic_mm[i] + ebcdic_ii[i];
4671 return use_ascii (foo) == use_ebcdic (foo);
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683 $as_echo "$ac_try_echo") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && {
4691 test -z "$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 } && test -s conftest.$ac_objext; then
4694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4695 ac_cv_c_bigendian=yes
4697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4698 if test "$ac_cv_c_bigendian" = unknown; then
4699 ac_cv_c_bigendian=no
4701 # finding both strings is unlikely to happen, but who knows?
4702 ac_cv_c_bigendian=unknown
4706 $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 $ac_includes_default
4725 /* Are we little or big endian? From Harbison&Steele. */
4729 char c[sizeof (long int)];
4732 return u.c[sizeof (long int) - 1] == 1;
4738 rm -f conftest$ac_exeext
4739 if { (ac_try="$ac_link"
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746 (eval "$ac_link") 2>&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756 (eval "$ac_try") 2>&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_c_bigendian=no
4762 $as_echo "$as_me: program exited with status $ac_status" >&5
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4767 ac_cv_c_bigendian=yes
4769 rm -rf conftest.dSYM
4770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4777 $as_echo "$ac_cv_c_bigendian" >&6; }
4778 case $ac_cv_c_bigendian in #(
4780 cat >>confdefs.h <<\_ACEOF
4781 #define WORDS_BIGENDIAN 1
4788 cat >>confdefs.h <<\_ACEOF
4789 #define AC_APPLE_UNIVERSAL_BUILD 1
4794 { { $as_echo "$as_me:$LINENO: error: unknown endianness
4795 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4796 $as_echo "$as_me: error: unknown endianness
4797 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4798 { (exit 1); exit 1; }; } ;;
4801 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4802 $as_echo_n "checking for inline... " >&6; }
4803 if test "${ac_cv_c_inline+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4807 for ac_kw in inline __inline__ __inline; do
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4816 static $ac_kw foo_t static_foo () {return 0; }
4817 $ac_kw foo_t foo () {return 0; }
4821 rm -f conftest.$ac_objext
4822 if { (ac_try="$ac_compile"
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4828 $as_echo "$ac_try_echo") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
4839 ac_cv_c_inline=$ac_kw
4841 $as_echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 test "$ac_cv_c_inline" != no && break
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4853 $as_echo "$ac_cv_c_inline" >&6; }
4856 case $ac_cv_c_inline in
4859 case $ac_cv_c_inline in
4861 *) ac_val=$ac_cv_c_inline;;
4863 cat >>confdefs.h <<_ACEOF
4865 #define inline $ac_val
4871 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4872 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4873 if test "${ac_cv_c_const+set}" = set; then
4874 $as_echo_n "(cached) " >&6
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4886 /* FIXME: Include the comments suggested by Paul. */
4888 /* Ultrix mips cc rejects this. */
4889 typedef int charset[2];
4891 /* SunOS 4.1.1 cc rejects this. */
4892 char const *const *pcpcc;
4894 /* NEC SVR4.0.2 mips cc rejects this. */
4895 struct point {int x, y;};
4896 static struct point const zero = {0,0};
4897 /* AIX XL C 1.02.0.0 rejects this.
4898 It does not let you subtract one const X* pointer from another in
4899 an arm of an if-expression whose if-part is not a constant
4901 const char *g = "string";
4902 pcpcc = &g + (g ? g-g : 0);
4903 /* HPUX 7.0 cc rejects these. */
4905 ppc = (char**) pcpcc;
4906 pcpcc = (char const *const *) ppc;
4907 { /* SCO 3.2v4 cc rejects this. */
4909 char const *s = 0 ? (char *) 0 : (char const *) 0;
4914 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4916 const int *foo = &x[0];
4919 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4920 typedef const int *iptr;
4924 { /* AIX XL C 1.02.0.0 rejects this saying
4925 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4926 struct s { int j; const int *ap[3]; };
4927 struct s *b; b->j = 5;
4929 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4933 return !cs[0] && !zero.x;
4940 rm -f conftest.$ac_objext
4941 if { (ac_try="$ac_compile"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4947 $as_echo "$ac_try_echo") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4960 $as_echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4969 $as_echo "$ac_cv_c_const" >&6; }
4970 if test $ac_cv_c_const = no; then
4972 cat >>confdefs.h <<\_ACEOF
4978 # The cast to long int works around a bug in the HP C Compiler
4979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4981 # This bug is HP SR number 8606223364.
4982 { $as_echo "$as_me:$LINENO: checking size of unsigned short int" >&5
4983 $as_echo_n "checking size of unsigned short int... " >&6; }
4984 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
4985 $as_echo_n "(cached) " >&6
4987 if test "$cross_compiling" = yes; then
4988 # Depending upon the size, compute the lo and hi bounds.
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4999 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) >= 0)];
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
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5036 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) <= $ac_mid)];
5043 rm -f conftest.$ac_objext
5044 if { (ac_try="$ac_compile"
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5050 $as_echo "$ac_try_echo") >&5
5051 (eval "$ac_compile") 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } && {
5058 test -z "$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 } && test -s conftest.$ac_objext; then
5061 ac_hi=$ac_mid; break
5063 $as_echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 ac_lo=`expr $ac_mid + 1`
5067 if test $ac_lo -le $ac_mid; then
5071 ac_mid=`expr 2 '*' $ac_mid + 1`
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 $as_echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5090 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) < 0)];
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 $ac_includes_default
5127 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) >= $ac_mid)];
5134 rm -f conftest.$ac_objext
5135 if { (ac_try="$ac_compile"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5141 $as_echo "$ac_try_echo") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_lo=$ac_mid; break
5154 $as_echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5157 ac_hi=`expr '(' $ac_mid ')' - 1`
5158 if test $ac_mid -le $ac_hi; then
5162 ac_mid=`expr 2 '*' $ac_mid`
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 $as_echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 # Binary search between lo and hi bounds.
5179 while test "x$ac_lo" != "x$ac_hi"; do
5180 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_includes_default
5191 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short int))) <= $ac_mid)];
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5218 $as_echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_lo=`expr '(' $ac_mid ')' + 1`
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
5228 '') if test "$ac_cv_type_unsigned_short_int" = yes; then
5229 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5231 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
5232 See \`config.log' for more details." >&5
5233 $as_echo "$as_me: error: cannot compute sizeof (unsigned short int)
5234 See \`config.log' for more details." >&2;}
5235 { (exit 77); exit 77; }; }; }
5237 ac_cv_sizeof_unsigned_short_int=0
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 $ac_includes_default
5248 static long int longval () { return (long int) (sizeof (unsigned short int)); }
5249 static unsigned long int ulongval () { return (long int) (sizeof (unsigned short int)); }
5256 FILE *f = fopen ("conftest.val", "w");
5259 if (((long int) (sizeof (unsigned short int))) < 0)
5261 long int i = longval ();
5262 if (i != ((long int) (sizeof (unsigned short int))))
5264 fprintf (f, "%ld", i);
5268 unsigned long int i = ulongval ();
5269 if (i != ((long int) (sizeof (unsigned short int))))
5271 fprintf (f, "%lu", i);
5273 /* Do not output a trailing newline, as this causes \r\n confusion
5274 on some platforms. */
5275 return ferror (f) || fclose (f) != 0;
5281 rm -f conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5288 $as_echo "$ac_try_echo") >&5
5289 (eval "$ac_link") 2>&5
5291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5293 { (case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5298 $as_echo "$ac_try_echo") >&5
5299 (eval "$ac_try") 2>&5
5301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
5305 $as_echo "$as_me: program exited with status $ac_status" >&5
5306 $as_echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5310 if test "$ac_cv_type_unsigned_short_int" = yes; then
5311 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
5314 See \`config.log' for more details." >&5
5315 $as_echo "$as_me: error: cannot compute sizeof (unsigned short int)
5316 See \`config.log' for more details." >&2;}
5317 { (exit 77); exit 77; }; }; }
5319 ac_cv_sizeof_unsigned_short_int=0
5322 rm -rf conftest.dSYM
5323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5327 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
5328 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
5332 cat >>confdefs.h <<_ACEOF
5333 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
5337 # The cast to long int works around a bug in the HP C Compiler
5338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5340 # This bug is HP SR number 8606223364.
5341 { $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
5342 $as_echo_n "checking size of unsigned int... " >&6; }
5343 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
5344 $as_echo_n "(cached) " >&6
5346 if test "$cross_compiling" = yes; then
5347 # Depending upon the size, compute the lo and hi bounds.
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5358 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
5365 rm -f conftest.$ac_objext
5366 if { (ac_try="$ac_compile"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5372 $as_echo "$ac_try_echo") >&5
5373 (eval "$ac_compile") 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } && {
5380 test -z "$ac_c_werror_flag" ||
5381 test ! -s conftest.err
5382 } && test -s conftest.$ac_objext; then
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 $ac_includes_default
5395 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5409 $as_echo "$ac_try_echo") >&5
5410 (eval "$ac_compile") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
5420 ac_hi=$ac_mid; break
5422 $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_lo=`expr $ac_mid + 1`
5426 if test $ac_lo -le $ac_mid; then
5430 ac_mid=`expr 2 '*' $ac_mid + 1`
5433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 $as_echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 $ac_includes_default
5449 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.$ac_objext; then
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5486 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500 $as_echo "$ac_try_echo") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5511 ac_lo=$ac_mid; break
5513 $as_echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_hi=`expr '(' $ac_mid ')' - 1`
5517 if test $ac_mid -le $ac_hi; then
5521 ac_mid=`expr 2 '*' $ac_mid`
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 $as_echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 # Binary search between lo and hi bounds.
5538 while test "x$ac_lo" != "x$ac_hi"; do
5539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5550 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564 $as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5567 grep -v '^ *+' conftest.er1 >conftest.err
5569 cat conftest.err >&5
5570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
5577 $as_echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_lo=`expr '(' $ac_mid ')' + 1`
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
5587 '') if test "$ac_cv_type_unsigned_int" = yes; then
5588 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5590 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5591 See \`config.log' for more details." >&5
5592 $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
5593 See \`config.log' for more details." >&2;}
5594 { (exit 77); exit 77; }; }; }
5596 ac_cv_sizeof_unsigned_int=0
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 static long int longval () { return (long int) (sizeof (unsigned int)); }
5608 static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
5615 FILE *f = fopen ("conftest.val", "w");
5618 if (((long int) (sizeof (unsigned int))) < 0)
5620 long int i = longval ();
5621 if (i != ((long int) (sizeof (unsigned int))))
5623 fprintf (f, "%ld", i);
5627 unsigned long int i = ulongval ();
5628 if (i != ((long int) (sizeof (unsigned int))))
5630 fprintf (f, "%lu", i);
5632 /* Do not output a trailing newline, as this causes \r\n confusion
5633 on some platforms. */
5634 return ferror (f) || fclose (f) != 0;
5640 rm -f conftest$ac_exeext
5641 if { (ac_try="$ac_link"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5647 $as_echo "$ac_try_echo") >&5
5648 (eval "$ac_link") 2>&5
5650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5652 { (case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5657 $as_echo "$ac_try_echo") >&5
5658 (eval "$ac_try") 2>&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 ac_cv_sizeof_unsigned_int=`cat conftest.val`
5664 $as_echo "$as_me: program exited with status $ac_status" >&5
5665 $as_echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5669 if test "$ac_cv_type_unsigned_int" = yes; then
5670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5673 See \`config.log' for more details." >&5
5674 $as_echo "$as_me: error: cannot compute sizeof (unsigned int)
5675 See \`config.log' for more details." >&2;}
5676 { (exit 77); exit 77; }; }; }
5678 ac_cv_sizeof_unsigned_int=0
5681 rm -rf conftest.dSYM
5682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5686 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
5687 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
5691 cat >>confdefs.h <<_ACEOF
5692 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
5696 # The cast to long int works around a bug in the HP C Compiler
5697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5699 # This bug is HP SR number 8606223364.
5700 { $as_echo "$as_me:$LINENO: checking size of unsigned long int" >&5
5701 $as_echo_n "checking size of unsigned long int... " >&6; }
5702 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
5703 $as_echo_n "(cached) " >&6
5705 if test "$cross_compiling" = yes; then
5706 # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5717 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) >= 0)];
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5731 $as_echo "$ac_try_echo") >&5
5732 (eval "$ac_compile") 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && {
5739 test -z "$ac_c_werror_flag" ||
5740 test ! -s conftest.err
5741 } && test -s conftest.$ac_objext; then
5744 cat >conftest.$ac_ext <<_ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5754 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) <= $ac_mid)];
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5768 $as_echo "$ac_try_echo") >&5
5769 (eval "$ac_compile") 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest.$ac_objext; then
5779 ac_hi=$ac_mid; break
5781 $as_echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 ac_lo=`expr $ac_mid + 1`
5785 if test $ac_lo -le $ac_mid; then
5789 ac_mid=`expr 2 '*' $ac_mid + 1`
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 $as_echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5808 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) < 0)];
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 $ac_includes_default
5845 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) >= $ac_mid)];
5852 rm -f conftest.$ac_objext
5853 if { (ac_try="$ac_compile"
5855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859 $as_echo "$ac_try_echo") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } && {
5867 test -z "$ac_c_werror_flag" ||
5868 test ! -s conftest.err
5869 } && test -s conftest.$ac_objext; then
5870 ac_lo=$ac_mid; break
5872 $as_echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ac_hi=`expr '(' $ac_mid ')' - 1`
5876 if test $ac_mid -le $ac_hi; then
5880 ac_mid=`expr 2 '*' $ac_mid`
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 $as_echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 # Binary search between lo and hi bounds.
5897 while test "x$ac_lo" != "x$ac_hi"; do
5898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long int))) <= $ac_mid)];
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5936 $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_lo=`expr '(' $ac_mid ')' + 1`
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
5946 '') if test "$ac_cv_type_unsigned_long_int" = yes; then
5947 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5949 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
5950 See \`config.log' for more details." >&5
5951 $as_echo "$as_me: error: cannot compute sizeof (unsigned long int)
5952 See \`config.log' for more details." >&2;}
5953 { (exit 77); exit 77; }; }; }
5955 ac_cv_sizeof_unsigned_long_int=0
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5966 static long int longval () { return (long int) (sizeof (unsigned long int)); }
5967 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long int)); }
5974 FILE *f = fopen ("conftest.val", "w");
5977 if (((long int) (sizeof (unsigned long int))) < 0)
5979 long int i = longval ();
5980 if (i != ((long int) (sizeof (unsigned long int))))
5982 fprintf (f, "%ld", i);
5986 unsigned long int i = ulongval ();
5987 if (i != ((long int) (sizeof (unsigned long int))))
5989 fprintf (f, "%lu", i);
5991 /* Do not output a trailing newline, as this causes \r\n confusion
5992 on some platforms. */
5993 return ferror (f) || fclose (f) != 0;
5999 rm -f conftest$ac_exeext
6000 if { (ac_try="$ac_link"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_link") 2>&5
6009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011 { (case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016 $as_echo "$ac_try_echo") >&5
6017 (eval "$ac_try") 2>&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
6023 $as_echo "$as_me: program exited with status $ac_status" >&5
6024 $as_echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6028 if test "$ac_cv_type_unsigned_long_int" = yes; then
6029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
6032 See \`config.log' for more details." >&5
6033 $as_echo "$as_me: error: cannot compute sizeof (unsigned long int)
6034 See \`config.log' for more details." >&2;}
6035 { (exit 77); exit 77; }; }; }
6037 ac_cv_sizeof_unsigned_long_int=0
6040 rm -rf conftest.dSYM
6041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6045 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
6046 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
6050 cat >>confdefs.h <<_ACEOF
6051 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
6055 # The cast to long int works around a bug in the HP C Compiler
6056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6058 # This bug is HP SR number 8606223364.
6059 { $as_echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
6060 $as_echo_n "checking size of unsigned long long int... " >&6; }
6061 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
6062 $as_echo_n "(cached) " >&6
6064 if test "$cross_compiling" = yes; then
6065 # Depending upon the size, compute the lo and hi bounds.
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6076 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) >= 0)];
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6090 $as_echo "$ac_try_echo") >&5
6091 (eval "$ac_compile") 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } && {
6098 test -z "$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6100 } && test -s conftest.$ac_objext; then
6103 cat >conftest.$ac_ext <<_ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6113 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) <= $ac_mid)];
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6138 ac_hi=$ac_mid; break
6140 $as_echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_lo=`expr $ac_mid + 1`
6144 if test $ac_lo -le $ac_mid; then
6148 ac_mid=`expr 2 '*' $ac_mid + 1`
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 $as_echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 $ac_includes_default
6167 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) < 0)];
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6181 $as_echo "$ac_try_echo") >&5
6182 (eval "$ac_compile") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } && {
6189 test -z "$ac_c_werror_flag" ||
6190 test ! -s conftest.err
6191 } && test -s conftest.$ac_objext; then
6194 cat >conftest.$ac_ext <<_ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6204 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) >= $ac_mid)];
6211 rm -f conftest.$ac_objext
6212 if { (ac_try="$ac_compile"
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
6229 ac_lo=$ac_mid; break
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_hi=`expr '(' $ac_mid ')' - 1`
6235 if test $ac_mid -le $ac_hi; then
6239 ac_mid=`expr 2 '*' $ac_mid`
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 # Binary search between lo and hi bounds.
6256 while test "x$ac_lo" != "x$ac_hi"; do
6257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6268 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long int))) <= $ac_mid)];
6275 rm -f conftest.$ac_objext
6276 if { (ac_try="$ac_compile"
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6282 $as_echo "$ac_try_echo") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest.$ac_objext; then
6295 $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_lo=`expr '(' $ac_mid ')' + 1`
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 ?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
6305 '') if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6306 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6308 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6309 See \`config.log' for more details." >&5
6310 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6311 See \`config.log' for more details." >&2;}
6312 { (exit 77); exit 77; }; }; }
6314 ac_cv_sizeof_unsigned_long_long_int=0
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6325 static long int longval () { return (long int) (sizeof (unsigned long long int)); }
6326 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long int)); }
6333 FILE *f = fopen ("conftest.val", "w");
6336 if (((long int) (sizeof (unsigned long long int))) < 0)
6338 long int i = longval ();
6339 if (i != ((long int) (sizeof (unsigned long long int))))
6341 fprintf (f, "%ld", i);
6345 unsigned long int i = ulongval ();
6346 if (i != ((long int) (sizeof (unsigned long long int))))
6348 fprintf (f, "%lu", i);
6350 /* Do not output a trailing newline, as this causes \r\n confusion
6351 on some platforms. */
6352 return ferror (f) || fclose (f) != 0;
6358 rm -f conftest$ac_exeext
6359 if { (ac_try="$ac_link"
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_link") 2>&5
6368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6370 { (case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376 (eval "$ac_try") 2>&5
6378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
6382 $as_echo "$as_me: program exited with status $ac_status" >&5
6383 $as_echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6387 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6388 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6391 See \`config.log' for more details." >&5
6392 $as_echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6393 See \`config.log' for more details." >&2;}
6394 { (exit 77); exit 77; }; }; }
6396 ac_cv_sizeof_unsigned_long_long_int=0
6399 rm -rf conftest.dSYM
6400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6404 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
6405 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
6409 cat >>confdefs.h <<_ACEOF
6410 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
6422 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
6424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6426 $as_echo_n "checking for $ac_func... " >&6; }
6427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6428 $as_echo_n "(cached) " >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6438 #define $ac_func innocuous_$ac_func
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char $ac_func (); below.
6442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6443 <limits.h> exists even on freestanding compilers. */
6446 # include <limits.h>
6448 # include <assert.h>
6453 /* Override any GCC internal prototype to avoid an error.
6454 Use char because int might match the return type of a GCC
6455 builtin and then its argument prototype would still apply. */
6460 /* The GNU C library defines this for functions which it implements
6461 to always fail with ENOSYS. Some functions are actually named
6462 something starting with __ and the normal name is an alias. */
6463 #if defined __stub_$ac_func || defined __stub___$ac_func
6475 rm -f conftest.$ac_objext conftest$ac_exeext
6476 if { (ac_try="$ac_link"
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6482 $as_echo "$ac_try_echo") >&5
6483 (eval "$ac_link") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest$ac_exeext && {
6493 test "$cross_compiling" = yes ||
6494 $as_test_x conftest$ac_exeext
6496 eval "$as_ac_var=yes"
6498 $as_echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 eval "$as_ac_var=no"
6504 rm -rf conftest.dSYM
6505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6506 conftest$ac_exeext conftest.$ac_ext
6508 ac_res=`eval 'as_val=${'$as_ac_var'}
6509 $as_echo "$as_val"'`
6510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 as_val=`eval 'as_val=${'$as_ac_var'}
6513 $as_echo "$as_val"'`
6514 if test "x$as_val" = x""yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6522 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6523 $as_echo_n "checking for pid_t... " >&6; }
6524 if test "${ac_cv_type_pid_t+set}" = set; then
6525 $as_echo_n "(cached) " >&6
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
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
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 $ac_includes_default
6572 if (sizeof ((pid_t)))
6578 rm -f conftest.$ac_objext
6579 if { (ac_try="$ac_compile"
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6585 $as_echo "$ac_try_echo") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6598 $as_echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 ac_cv_type_pid_t=yes
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 $as_echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6615 $as_echo "$ac_cv_type_pid_t" >&6; }
6616 if test "x$ac_cv_type_pid_t" = x""yes; then
6620 cat >>confdefs.h <<_ACEOF
6627 for ac_header in vfork.h
6629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 $as_echo_n "checking for $ac_header... " >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634 $as_echo_n "(cached) " >&6
6636 ac_res=`eval 'as_val=${'$as_ac_Header'}
6637 $as_echo "$as_val"'`
6638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6639 $as_echo "$ac_res" >&6; }
6641 # Is the header compilable?
6642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6643 $as_echo_n "checking $ac_header usability... " >&6; }
6644 cat >conftest.$ac_ext <<_ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 $ac_includes_default
6651 #include <$ac_header>
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1 >conftest.err
6665 cat conftest.err >&5
6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_header_compiler=yes
6673 $as_echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_header_compiler=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 $as_echo "$ac_header_compiler" >&6; }
6683 # Is the header present?
6684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6685 $as_echo_n "checking $ac_header presence... " >&6; }
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <$ac_header>
6694 if { (ac_try="$ac_cpp conftest.$ac_ext"
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6700 $as_echo "$ac_try_echo") >&5
6701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } >/dev/null && {
6708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6709 test ! -s conftest.err
6711 ac_header_preproc=yes
6713 $as_echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_header_preproc=no
6719 rm -f conftest.err conftest.$ac_ext
6720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 $as_echo "$ac_header_preproc" >&6; }
6723 # So? What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6730 ac_header_preproc=yes
6733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6736 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6740 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6746 ## -------------------------------- ##
6747 ## Report this to wouter@debian.org ##
6748 ## -------------------------------- ##
6750 ) | sed "s/^/$as_me: WARNING: /" >&2
6753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6754 $as_echo_n "checking for $ac_header... " >&6; }
6755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6756 $as_echo_n "(cached) " >&6
6758 eval "$as_ac_Header=\$ac_header_preproc"
6760 ac_res=`eval 'as_val=${'$as_ac_Header'}
6761 $as_echo "$as_val"'`
6762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6763 $as_echo "$ac_res" >&6; }
6766 as_val=`eval 'as_val=${'$as_ac_Header'}
6767 $as_echo "$as_val"'`
6768 if test "x$as_val" = x""yes; then
6769 cat >>confdefs.h <<_ACEOF
6770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779 for ac_func in fork vfork
6781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6783 $as_echo_n "checking for $ac_func... " >&6; }
6784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6785 $as_echo_n "(cached) " >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6795 #define $ac_func innocuous_$ac_func
6797 /* System header to define __stub macros and hopefully few prototypes,
6798 which can conflict with char $ac_func (); below.
6799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800 <limits.h> exists even on freestanding compilers. */
6803 # include <limits.h>
6805 # include <assert.h>
6810 /* Override any GCC internal prototype to avoid an error.
6811 Use char because int might match the return type of a GCC
6812 builtin and then its argument prototype would still apply. */
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined __stub_$ac_func || defined __stub___$ac_func
6832 rm -f conftest.$ac_objext conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6839 $as_echo "$ac_try_echo") >&5
6840 (eval "$ac_link") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest$ac_exeext && {
6850 test "$cross_compiling" = yes ||
6851 $as_test_x conftest$ac_exeext
6853 eval "$as_ac_var=yes"
6855 $as_echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 eval "$as_ac_var=no"
6861 rm -rf conftest.dSYM
6862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6863 conftest$ac_exeext conftest.$ac_ext
6865 ac_res=`eval 'as_val=${'$as_ac_var'}
6866 $as_echo "$as_val"'`
6867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 as_val=`eval 'as_val=${'$as_ac_var'}
6870 $as_echo "$as_val"'`
6871 if test "x$as_val" = x""yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6879 if test "x$ac_cv_func_fork" = xyes; then
6880 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
6881 $as_echo_n "checking for working fork... " >&6; }
6882 if test "${ac_cv_func_fork_works+set}" = set; then
6883 $as_echo_n "(cached) " >&6
6885 if test "$cross_compiling" = yes; then
6886 ac_cv_func_fork_works=cross
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 $ac_includes_default
6899 /* By Ruediger Kuhlmann. */
6906 rm -f conftest$ac_exeext
6907 if { (ac_try="$ac_link"
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6913 $as_echo "$ac_try_echo") >&5
6914 (eval "$ac_link") 2>&5
6916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6918 { (case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6923 $as_echo "$ac_try_echo") >&5
6924 (eval "$ac_try") 2>&5
6926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6928 ac_cv_func_fork_works=yes
6930 $as_echo "$as_me: program exited with status $ac_status" >&5
6931 $as_echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6935 ac_cv_func_fork_works=no
6937 rm -rf conftest.dSYM
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6944 $as_echo "$ac_cv_func_fork_works" >&6; }
6947 ac_cv_func_fork_works=$ac_cv_func_fork
6949 if test "x$ac_cv_func_fork_works" = xcross; then
6951 *-*-amigaos* | *-*-msdosdjgpp*)
6952 # Override, as these systems have only a dummy fork() stub
6953 ac_cv_func_fork_works=no
6956 ac_cv_func_fork_works=yes
6959 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6960 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6962 ac_cv_func_vfork_works=$ac_cv_func_vfork
6963 if test "x$ac_cv_func_vfork" = xyes; then
6964 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
6965 $as_echo_n "checking for working vfork... " >&6; }
6966 if test "${ac_cv_func_vfork_works+set}" = set; then
6967 $as_echo_n "(cached) " >&6
6969 if test "$cross_compiling" = yes; then
6970 ac_cv_func_vfork_works=cross
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 /* Thanks to Paul Eggert for this test. */
6979 $ac_includes_default
6980 #include <sys/wait.h>
6984 /* On some sparc systems, changes by the child to local and incoming
6985 argument registers are propagated back to the parent. The compiler
6986 is told about this with #include <vfork.h>, but some compilers
6987 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6988 static variable whose address is put into a register that is
6989 clobbered by the vfork. */
6992 sparc_address_test (int arg)
6994 sparc_address_test (arg) int arg;
7015 pid_t parent = getpid ();
7018 sparc_address_test (0);
7023 /* Here is another test for sparc vfork register problems. This
7024 test uses lots of local variables, at least as many local
7025 variables as main has allocated so far including compiler
7026 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7027 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7028 reuse the register of parent for one of the local variables,
7029 since it will think that parent can't possibly be used any more
7030 in this routine. Assigning to the local variable will thus
7031 munge parent in the parent process. */
7033 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7034 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7035 /* Convince the compiler that p..p7 are live; otherwise, it might
7036 use the same hardware register for all 8 local variables. */
7037 if (p != p1 || p != p2 || p != p3 || p != p4
7038 || p != p5 || p != p6 || p != p7)
7041 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7042 from child file descriptors. If the child closes a descriptor
7043 before it execs or exits, this munges the parent's descriptor
7044 as well. Test for this by closing stdout in the child. */
7045 _exit(close(fileno(stdout)) != 0);
7050 while (wait(&status) != child)
7053 /* Was there some problem with vforking? */
7056 /* Did the child fail? (This shouldn't happen.) */
7059 /* Did the vfork/compiler bug occur? */
7060 || parent != getpid()
7062 /* Did the file descriptor bug occur? */
7063 || fstat(fileno(stdout), &st) != 0
7068 rm -f conftest$ac_exeext
7069 if { (ac_try="$ac_link"
7071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7075 $as_echo "$ac_try_echo") >&5
7076 (eval "$ac_link") 2>&5
7078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7080 { (case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7085 $as_echo "$ac_try_echo") >&5
7086 (eval "$ac_try") 2>&5
7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_func_vfork_works=yes
7092 $as_echo "$as_me: program exited with status $ac_status" >&5
7093 $as_echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_cv_func_vfork_works=no
7099 rm -rf conftest.dSYM
7100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7106 $as_echo "$ac_cv_func_vfork_works" >&6; }
7109 if test "x$ac_cv_func_fork_works" = xcross; then
7110 ac_cv_func_vfork_works=$ac_cv_func_vfork
7111 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7112 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7115 if test "x$ac_cv_func_vfork_works" = xyes; then
7117 cat >>confdefs.h <<\_ACEOF
7118 #define HAVE_WORKING_VFORK 1
7123 cat >>confdefs.h <<\_ACEOF
7128 if test "x$ac_cv_func_fork_works" = xyes; then
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_WORKING_FORK 1
7136 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
7137 $as_echo_n "(cached) " >&6
7139 ac_cv_func_setvbuf_reversed=no
7143 { $as_echo "$as_me:$LINENO: checking whether client should be built" >&5
7144 $as_echo_n "checking whether client should be built... " >&6; }
7146 linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
7147 { $as_echo "$as_me:$LINENO: result: yes" >&5
7148 $as_echo "yes" >&6; }
7150 *) { $as_echo "$as_me:$LINENO: result: no" >&5
7151 $as_echo "no" >&6; } ;;
7153 { $as_echo "$as_me:$LINENO: checking where to find a working nbd.h" >&5
7154 $as_echo_n "checking where to find a working nbd.h... " >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7167 #define UNUSED __attribute__((__unused__))
7175 int UNUSED foo=NBD_CMD_DISC
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_compile") 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest.$ac_objext; then
7199 cat >>confdefs.h <<\_ACEOF
7200 #define NBD_H_LOCAL 1
7205 $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 cat >conftest.$ac_ext <<_ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7218 #include <linux/nbd.h>
7220 #define UNUSED __attribute__((__unused__))
7228 int UNUSED foo=NBD_CMD_DISC
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7240 $as_echo "$ac_try_echo") >&5
7241 (eval "$ac_compile") 2>conftest.er1
7243 grep -v '^ *+' conftest.er1 >conftest.err
7245 cat conftest.err >&5
7246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && {
7248 test -z "$ac_c_werror_flag" ||
7249 test ! -s conftest.err
7250 } && test -s conftest.$ac_objext; then
7252 cat >>confdefs.h <<\_ACEOF
7253 #define NBD_H_LINUX 1
7256 NBD_H='<linux/nbd.h>'
7258 $as_echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 cat >conftest.$ac_ext <<_ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #include <linux/nbd.h>
7269 #define UNUSED __attribute__((__unused__))
7277 int UNUSED foo=NBD_CMD_DISC
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7289 $as_echo "$ac_try_echo") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
7301 cat >>confdefs.h <<\_ACEOF
7302 #define NBD_H_LINUX 1
7305 NBD_H='<linux/nbd.h>'
7307 $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 { { $as_echo "$as_me:$LINENO: error: Could not find an nbd.h from 2.6 or above." >&5
7311 $as_echo "$as_me: error: Could not find an nbd.h from 2.6 or above." >&2;}
7312 { (exit 1); exit 1; }; }
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 if test "$NBD_H" = '<linux/nbd.h>'
7329 { $as_echo "$as_me:$LINENO: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&5
7330 $as_echo "$as_me: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&2;}
7333 { $as_echo "$as_me:$LINENO: result: $NBD_H" >&5
7334 $as_echo "$NBD_H" >&6; }
7335 { $as_echo "$as_me:$LINENO: checking for library containing bind" >&5
7336 $as_echo_n "checking for library containing bind... " >&6; }
7337 if test "${ac_cv_search_bind+set}" = set; then
7338 $as_echo_n "(cached) " >&6
7340 ac_func_search_save_LIBS=$LIBS
7341 cat >conftest.$ac_ext <<_ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7348 /* Override any GCC internal prototype to avoid an error.
7349 Use char because int might match the return type of a GCC
7350 builtin and then its argument prototype would still apply. */
7363 for ac_lib in '' socket; do
7364 if test -z "$ac_lib"; then
7365 ac_res="none required"
7368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378 (eval "$ac_link") 2>conftest.er1
7380 grep -v '^ *+' conftest.er1 >conftest.err
7382 cat conftest.err >&5
7383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } && {
7385 test -z "$ac_c_werror_flag" ||
7386 test ! -s conftest.err
7387 } && test -s conftest$ac_exeext && {
7388 test "$cross_compiling" = yes ||
7389 $as_test_x conftest$ac_exeext
7391 ac_cv_search_bind=$ac_res
7393 $as_echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7399 rm -rf conftest.dSYM
7400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7402 if test "${ac_cv_search_bind+set}" = set; then
7406 if test "${ac_cv_search_bind+set}" = set; then
7409 ac_cv_search_bind=no
7412 LIBS=$ac_func_search_save_LIBS
7414 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind" >&5
7415 $as_echo "$ac_cv_search_bind" >&6; }
7416 ac_res=$ac_cv_search_bind
7417 if test "$ac_res" != no; then
7418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7421 { { $as_echo "$as_me:$LINENO: error: Could not find an implementation of the bind() system call" >&5
7422 $as_echo "$as_me: error: Could not find an implementation of the bind() system call" >&2;}
7423 { (exit 1); exit 1; }; }
7426 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7427 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
7428 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7429 $as_echo_n "(cached) " >&6
7431 ac_func_search_save_LIBS=$LIBS
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply. */
7449 return inet_ntoa ();
7454 for ac_lib in '' nsl; do
7455 if test -z "$ac_lib"; then
7456 ac_res="none required"
7459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (ac_try="$ac_link"
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7468 $as_echo "$ac_try_echo") >&5
7469 (eval "$ac_link") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest$ac_exeext && {
7479 test "$cross_compiling" = yes ||
7480 $as_test_x conftest$ac_exeext
7482 ac_cv_search_inet_ntoa=$ac_res
7484 $as_echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7490 rm -rf conftest.dSYM
7491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7493 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7497 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7500 ac_cv_search_inet_ntoa=no
7503 LIBS=$ac_func_search_save_LIBS
7505 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7506 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
7507 ac_res=$ac_cv_search_inet_ntoa
7508 if test "$ac_res" != no; then
7509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7512 { { $as_echo "$as_me:$LINENO: error: Could not find an implementation of the inet_ntoa() system call" >&5
7513 $as_echo "$as_me: error: Could not find an implementation of the inet_ntoa() system call" >&2;}
7514 { (exit 1); exit 1; }; }
7517 { $as_echo "$as_me:$LINENO: checking for library containing daemon" >&5
7518 $as_echo_n "checking for library containing daemon... " >&6; }
7519 if test "${ac_cv_search_daemon+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7522 ac_func_search_save_LIBS=$LIBS
7523 cat >conftest.$ac_ext <<_ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7530 /* Override any GCC internal prototype to avoid an error.
7531 Use char because int might match the return type of a GCC
7532 builtin and then its argument prototype would still apply. */
7545 for ac_lib in '' resolv; do
7546 if test -z "$ac_lib"; then
7547 ac_res="none required"
7550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7559 $as_echo "$ac_try_echo") >&5
7560 (eval "$ac_link") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest$ac_exeext && {
7570 test "$cross_compiling" = yes ||
7571 $as_test_x conftest$ac_exeext
7573 ac_cv_search_daemon=$ac_res
7575 $as_echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7581 rm -rf conftest.dSYM
7582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7584 if test "${ac_cv_search_daemon+set}" = set; then
7588 if test "${ac_cv_search_daemon+set}" = set; then
7591 ac_cv_search_daemon=no
7594 LIBS=$ac_func_search_save_LIBS
7596 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_daemon" >&5
7597 $as_echo "$ac_cv_search_daemon" >&6; }
7598 ac_res=$ac_cv_search_daemon
7599 if test "$ac_res" != no; then
7600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7603 { { $as_echo "$as_me:$LINENO: error: Could not find an implementation of the daemon() system call" >&5
7604 $as_echo "$as_me: error: Could not find an implementation of the daemon() system call" >&2;}
7605 { (exit 1); exit 1; }; }
7609 for ac_header in sys/mount.h
7611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 $as_echo_n "checking for $ac_header... " >&6; }
7614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615 $as_echo_n "(cached) " >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 #include <sys/param.h>
7626 #include <$ac_header>
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7635 $as_echo "$ac_try_echo") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 eval "$as_ac_Header=yes"
7648 $as_echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 eval "$as_ac_Header=no"
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 ac_res=`eval 'as_val=${'$as_ac_Header'}
7657 $as_echo "$as_val"'`
7658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7659 $as_echo "$ac_res" >&6; }
7660 as_val=`eval 'as_val=${'$as_ac_Header'}
7661 $as_echo "$as_val"'`
7662 if test "x$as_val" = x""yes; then
7663 cat >>confdefs.h <<_ACEOF
7664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7679 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h linux/types.h
7681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7683 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7684 $as_echo_n "checking for $ac_header... " >&6; }
7685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7686 $as_echo_n "(cached) " >&6
7688 ac_res=`eval 'as_val=${'$as_ac_Header'}
7689 $as_echo "$as_val"'`
7690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7691 $as_echo "$ac_res" >&6; }
7693 # Is the header compilable?
7694 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695 $as_echo_n "checking $ac_header usability... " >&6; }
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 $ac_includes_default
7703 #include <$ac_header>
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7712 $as_echo "$ac_try_echo") >&5
7713 (eval "$ac_compile") 2>conftest.er1
7715 grep -v '^ *+' conftest.er1 >conftest.err
7717 cat conftest.err >&5
7718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && {
7720 test -z "$ac_c_werror_flag" ||
7721 test ! -s conftest.err
7722 } && test -s conftest.$ac_objext; then
7723 ac_header_compiler=yes
7725 $as_echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 ac_header_compiler=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7733 $as_echo "$ac_header_compiler" >&6; }
7735 # Is the header present?
7736 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7737 $as_echo_n "checking $ac_header presence... " >&6; }
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <$ac_header>
7746 if { (ac_try="$ac_cpp conftest.$ac_ext"
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7752 $as_echo "$ac_try_echo") >&5
7753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } >/dev/null && {
7760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7763 ac_header_preproc=yes
7765 $as_echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_header_preproc=no
7771 rm -f conftest.err conftest.$ac_ext
7772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7773 $as_echo "$ac_header_preproc" >&6; }
7775 # So? What about this header?
7776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7779 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7782 ac_header_preproc=yes
7785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7786 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7788 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7790 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7792 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7796 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7798 ## -------------------------------- ##
7799 ## Report this to wouter@debian.org ##
7800 ## -------------------------------- ##
7802 ) | sed "s/^/$as_me: WARNING: /" >&2
7805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7806 $as_echo_n "checking for $ac_header... " >&6; }
7807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7808 $as_echo_n "(cached) " >&6
7810 eval "$as_ac_Header=\$ac_header_preproc"
7812 ac_res=`eval 'as_val=${'$as_ac_Header'}
7813 $as_echo "$as_val"'`
7814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7815 $as_echo "$ac_res" >&6; }
7818 as_val=`eval 'as_val=${'$as_ac_Header'}
7819 $as_echo "$as_val"'`
7820 if test "x$as_val" = x""yes; then
7821 cat >>confdefs.h <<_ACEOF
7822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7829 # Check whether --enable-glibtest was given.
7830 if test "${enable_glibtest+set}" = set; then
7831 enableval=$enable_glibtest;
7837 pkg_config_args=glib-2.0
7842 pkg_config_args="$pkg_config_args gmodule-2.0"
7845 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7848 pkg_config_args="$pkg_config_args gobject-2.0"
7851 pkg_config_args="$pkg_config_args gthread-2.0"
7854 pkg_config_args="$pkg_config_args $module-2.0"
7861 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7862 if test -n "$ac_tool_prefix"; then
7863 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7864 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7868 $as_echo_n "(cached) " >&6
7872 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7894 if test -n "$PKG_CONFIG"; then
7895 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7896 $as_echo "$PKG_CONFIG" >&6; }
7898 { $as_echo "$as_me:$LINENO: result: no" >&5
7899 $as_echo "no" >&6; }
7904 if test -z "$ac_cv_path_PKG_CONFIG"; then
7905 ac_pt_PKG_CONFIG=$PKG_CONFIG
7906 # Extract the first word of "pkg-config", so it can be a program name with args.
7907 set dummy pkg-config; ac_word=$2
7908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7911 $as_echo_n "(cached) " >&6
7913 case $ac_pt_PKG_CONFIG in
7915 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7937 if test -n "$ac_pt_PKG_CONFIG"; then
7938 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7939 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7941 { $as_echo "$as_me:$LINENO: result: no" >&5
7942 $as_echo "no" >&6; }
7945 if test "x$ac_pt_PKG_CONFIG" = x; then
7948 case $cross_compiling:$ac_tool_warned in
7950 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952 ac_tool_warned=yes ;;
7954 PKG_CONFIG=$ac_pt_PKG_CONFIG
7957 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7961 if test -n "$PKG_CONFIG"; then
7962 _pkg_min_version=0.16
7963 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7964 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7965 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7966 { $as_echo "$as_me:$LINENO: result: yes" >&5
7967 $as_echo "yes" >&6; }
7969 { $as_echo "$as_me:$LINENO: result: no" >&5
7970 $as_echo "no" >&6; }
7978 if test "x$PKG_CONFIG" = x ; then
7983 min_glib_version=2.6.0
7984 { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7985 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7987 if test x$PKG_CONFIG != xno ; then
7988 ## don't try to run the test against uninstalled libtool libs
7989 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7990 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7994 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
8001 if test x"$no_glib" = x ; then
8002 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
8003 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
8004 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
8006 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
8007 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
8008 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
8009 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8010 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
8011 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8012 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
8013 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8014 if test "x$enable_glibtest" = "xyes" ; then
8015 ac_save_CFLAGS="$CFLAGS"
8016 ac_save_LIBS="$LIBS"
8017 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8018 LIBS="$GLIB_LIBS $LIBS"
8020 if test "$cross_compiling" = yes; then
8021 echo $ac_n "cross compiling; assumed OK... $ac_c"
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8037 int major, minor, micro;
8041 ignored = system ("touch conf.glibtest");
8043 /* HP/UX 9 (%@#!) writes to sscanf strings */
8044 tmp_version = g_strdup("$min_glib_version");
8045 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8046 printf("%s, bad version string\n", "$min_glib_version");
8050 if ((glib_major_version != $glib_config_major_version) ||
8051 (glib_minor_version != $glib_config_minor_version) ||
8052 (glib_micro_version != $glib_config_micro_version))
8054 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
8055 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8056 glib_major_version, glib_minor_version, glib_micro_version);
8057 printf ("*** was found! If pkg-config was correct, then it is best\n");
8058 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
8059 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8060 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8061 printf("*** required on your system.\n");
8062 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
8063 printf("*** to point to the correct configuration files\n");
8065 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8066 (glib_minor_version != GLIB_MINOR_VERSION) ||
8067 (glib_micro_version != GLIB_MICRO_VERSION))
8069 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8070 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8071 printf("*** library (version %d.%d.%d)\n",
8072 glib_major_version, glib_minor_version, glib_micro_version);
8076 if ((glib_major_version > major) ||
8077 ((glib_major_version == major) && (glib_minor_version > minor)) ||
8078 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8084 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8085 glib_major_version, glib_minor_version, glib_micro_version);
8086 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8087 major, minor, micro);
8088 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8090 printf("*** If you have already installed a sufficiently new version, this error\n");
8091 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
8092 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8093 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
8094 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
8095 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8096 printf("*** so that the correct libraries are found at run-time))\n");
8103 rm -f conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111 (eval "$ac_link") 2>&5
8113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115 { (case "(($ac_try" in
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_try") 2>&5
8123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8127 $as_echo "$as_me: program exited with status $ac_status" >&5
8128 $as_echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8134 rm -rf conftest.dSYM
8135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8139 CFLAGS="$ac_save_CFLAGS"
8140 LIBS="$ac_save_LIBS"
8143 if test "x$no_glib" = x ; then
8144 { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
8145 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
8148 { $as_echo "$as_me:$LINENO: result: no" >&5
8149 $as_echo "no" >&6; }
8150 if test "$PKG_CONFIG" = "no" ; then
8151 echo "*** A new enough version of pkg-config was not found."
8152 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
8154 if test -f conf.glibtest ; then
8157 echo "*** Could not run GLIB test program, checking why..."
8158 ac_save_CFLAGS="$CFLAGS"
8159 ac_save_LIBS="$LIBS"
8160 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8161 LIBS="$LIBS $GLIB_LIBS"
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8175 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
8180 rm -f conftest.$ac_objext conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188 (eval "$ac_link") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest$ac_exeext && {
8198 test "$cross_compiling" = yes ||
8199 $as_test_x conftest$ac_exeext
8201 echo "*** The test program compiled, but did not run. This usually means"
8202 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8203 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8204 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8205 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8206 echo "*** is required on your system"
8208 echo "*** If you have an old version installed, it is best to remove it, although"
8209 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8211 $as_echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 echo "*** The test program failed to compile or link. See the file config.log for the"
8215 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
8218 rm -rf conftest.dSYM
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220 conftest$ac_exeext conftest.$ac_ext
8221 CFLAGS="$ac_save_CFLAGS"
8222 LIBS="$ac_save_LIBS"
8230 { { $as_echo "$as_me:$LINENO: error: Missing glib" >&5
8231 $as_echo "$as_me: error: Missing glib" >&2;}
8232 { (exit 1); exit 1; }; }
8241 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8242 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8243 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8244 $as_echo_n "(cached) " >&6
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 #include <sys/types.h>
8253 #include <sys/wait.h>
8255 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8258 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8266 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 ac_cv_header_sys_wait_h=yes
8291 $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 ac_cv_header_sys_wait_h=no
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8300 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8301 if test $ac_cv_header_sys_wait_h = yes; then
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_SYS_WAIT_H 1
8309 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8310 $as_echo_n "checking for off_t... " >&6; }
8311 if test "${ac_cv_type_off_t+set}" = set; then
8312 $as_echo_n "(cached) " >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 $ac_includes_default
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8338 $as_echo "$ac_try_echo") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8359 if (sizeof ((off_t)))
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372 $as_echo "$ac_try_echo") >&5
8373 (eval "$ac_compile") 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && {
8380 test -z "$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 } && test -s conftest.$ac_objext; then
8385 $as_echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_cv_type_off_t=yes
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 $as_echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8402 $as_echo "$ac_cv_type_off_t" >&6; }
8403 if test "x$ac_cv_type_off_t" = x""yes; then
8407 cat >>confdefs.h <<_ACEOF
8408 #define off_t long int
8413 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8414 $as_echo_n "checking for pid_t... " >&6; }
8415 if test "${ac_cv_type_pid_t+set}" = set; then
8416 $as_echo_n "(cached) " >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest.$ac_objext; then
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8463 if (sizeof ((pid_t)))
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8489 $as_echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 ac_cv_type_pid_t=yes
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8506 $as_echo "$ac_cv_type_pid_t" >&6; }
8507 if test "x$ac_cv_type_pid_t" = x""yes; then
8511 cat >>confdefs.h <<_ACEOF
8518 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
8520 ac_config_headers="$ac_config_headers config.h"
8522 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
8524 cat >confcache <<\_ACEOF
8525 # This file is a shell script that caches the results of configure
8526 # tests run on this system so they can be shared between configure
8527 # scripts and configure runs, see configure's option --config-cache.
8528 # It is not useful on other systems. If it contains results you don't
8529 # want to keep, you may remove or edit it.
8531 # config.status only pays attention to the cache file if you give it
8532 # the --recheck option to rerun configure.
8534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8540 # The following way of writing the cache mishandles newlines in values,
8541 # but we know of no workaround that is simple, portable, and efficient.
8542 # So, we kill variables containing newlines.
8543 # Ultrix sh set writes to stderr and can't be redirected directly,
8544 # and sets the high bit in the cache file unless we assign to the vars.
8546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8547 eval ac_val=\$$ac_var
8551 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8555 _ | IFS | as_nl) ;; #(
8556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8557 *) $as_unset $ac_var ;;
8563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8564 *${as_nl}ac_space=\ *)
8565 # `set' does not quote correctly, so add quotes (double-quote
8566 # substitution turns \\\\ into \\, and sed turns \\ into \).
8569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8572 # `set' quotes correctly as required by POSIX, so do not add quotes.
8573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8587 if test -w "$cache_file"; then
8588 test "x$cache_file" != "x/dev/null" &&
8589 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8590 $as_echo "$as_me: updating cache $cache_file" >&6;}
8591 cat confcache >$cache_file
8593 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8600 # Let make expand exec_prefix.
8601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8603 DEFS=-DHAVE_CONFIG_H
8607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8608 # 1. Remove the extension, and $U if already installed.
8609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8612 # will be set to the directory where LIBOBJS objects are built.
8613 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8614 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8618 LTLIBOBJS=$ac_ltlibobjs
8621 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8622 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8623 Usually this means the macro was only invoked conditionally." >&5
8624 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8625 Usually this means the macro was only invoked conditionally." >&2;}
8626 { (exit 1); exit 1; }; }
8628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8629 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8630 Usually this means the macro was only invoked conditionally." >&5
8631 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
8632 Usually this means the macro was only invoked conditionally." >&2;}
8633 { (exit 1); exit 1; }; }
8635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8636 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8637 Usually this means the macro was only invoked conditionally." >&5
8638 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8639 Usually this means the macro was only invoked conditionally." >&2;}
8640 { (exit 1); exit 1; }; }
8644 : ${CONFIG_STATUS=./config.status}
8646 ac_clean_files_save=$ac_clean_files
8647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8648 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8649 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8650 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8652 # Generated by $as_me.
8653 # Run this file to recreate the current configuration.
8654 # Compiler output produced by configure, useful for debugging
8655 # configure, is in config.log if it exists.
8660 SHELL=\${CONFIG_SHELL-$SHELL}
8663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8664 ## --------------------- ##
8665 ## M4sh Initialization. ##
8666 ## --------------------- ##
8668 # Be more Bourne compatible
8669 DUALCASE=1; export DUALCASE # for MKS sh
8670 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8673 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8674 # is contrary to our usage. Disable this feature.
8675 alias -g '${1+"$@"}'='"$@"'
8676 setopt NO_GLOB_SUBST
8678 case `(set -o) 2>/dev/null` in
8679 *posix*) set -o posix ;;
8688 # Avoid depending upon Character Ranges.
8689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8692 as_cr_digits='0123456789'
8693 as_cr_alnum=$as_cr_Letters$as_cr_digits
8698 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8699 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8700 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8702 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8703 as_echo='printf %s\n'
8704 as_echo_n='printf %s'
8706 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8707 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8708 as_echo_n='/usr/ucb/echo -n'
8710 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8711 as_echo_n_body='eval
8715 expr "X$arg" : "X\\(.*\\)$as_nl";
8716 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8718 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8720 export as_echo_n_body
8721 as_echo_n='sh -c $as_echo_n_body as_echo'
8724 as_echo='sh -c $as_echo_body as_echo'
8727 # The user is always right.
8728 if test "${PATH_SEPARATOR+set}" != set; then
8730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8736 # Support unset when possible.
8737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8745 # We need space, tab and new line, in precisely that order. Quoting is
8746 # there to prevent editors from complaining about space-tab.
8747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8748 # splitting by setting IFS to empty value.)
8751 # Find who we are. Look in the path if we contain no directory separator.
8753 *[\\/]* ) as_myself=$0 ;;
8754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 test -z "$as_dir" && as_dir=.
8759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8765 # We did not find ourselves, most probably we were run as `sh COMMAND'
8766 # in which case we are not to be found in the path.
8767 if test "x$as_myself" = x; then
8770 if test ! -f "$as_myself"; then
8771 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8772 { (exit 1); exit 1; }
8775 # Work around bugs in pre-3.0 UWIN ksh.
8776 for as_var in ENV MAIL MAILPATH
8777 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8789 # Required to use basename.
8790 if expr a : '\(a\)' >/dev/null 2>&1 &&
8791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8798 as_basename=basename
8804 # Name of the executable.
8805 as_me=`$as_basename -- "$0" ||
8806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8807 X"$0" : 'X\(//\)$' \| \
8808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8810 sed '/^.*\/\([^/][^/]*\)\/*$/{
8831 test "x$as_lineno_1" != "x$as_lineno_2" &&
8832 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8835 # uniformly replaced by the line number. The first 'sed' inserts a
8836 # line-number line after each line using $LINENO; the second 'sed'
8837 # does the real work. The second script uses 'N' to pair each
8838 # line-number line with the line containing $LINENO, and appends
8839 # trailing '-' during substitution so that $LINENO is not a special
8841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8842 # scripts with optimization help from Paolo Bonzini. Blame Lee
8843 # E. McMahon (1931-1989) for sed's syntax. :-)
8855 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8859 chmod +x "$as_me.lineno" ||
8860 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8861 { (exit 1); exit 1; }; }
8863 # Don't try to exec as it changes $[0], causing all sort of problems
8864 # (the dirname of $[0] is not the place where we might find the
8865 # original and so on. Autoconf is especially sensitive to this).
8867 # Exit status is that of the last command.
8872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8878 ECHO_C= ECHO_N= ECHO_T=
8881 case `echo 'x\c'` in
8882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8888 if expr a : '\(a\)' >/dev/null 2>&1 &&
8889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8895 rm -f conf$$ conf$$.exe conf$$.file
8896 if test -d conf$$.dir; then
8897 rm -f conf$$.dir/conf$$.file
8900 mkdir conf$$.dir 2>/dev/null
8902 if (echo >conf$$.file) 2>/dev/null; then
8903 if ln -s conf$$.file conf$$ 2>/dev/null; then
8905 # ... but there are two gotchas:
8906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8908 # In both cases, we have to default to `cp -p'.
8909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8911 elif ln conf$$.file conf$$ 2>/dev/null; then
8919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8920 rmdir conf$$.dir 2>/dev/null
8922 if mkdir -p . 2>/dev/null; then
8925 test -d ./-p && rmdir ./-p
8929 if test -x / >/dev/null 2>&1; then
8932 if ls -dL / >/dev/null 2>&1; then
8939 if test -d "$1"; then
8945 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8946 ???[sx]*):;;*)false;;esac;fi
8950 as_executable_p=$as_test_x
8952 # Sed expression to map a string onto a valid CPP name.
8953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8955 # Sed expression to map a string onto a valid variable name.
8956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8961 # Save the log message, to keep $[0] and so on meaningful, and to
8962 # report actual input values of CONFIG_FILES etc. instead of their
8963 # values after options handling.
8965 This file was extended by nbd $as_me 2.9.13, which was
8966 generated by GNU Autoconf 2.63. Invocation command line was
8968 CONFIG_FILES = $CONFIG_FILES
8969 CONFIG_HEADERS = $CONFIG_HEADERS
8970 CONFIG_LINKS = $CONFIG_LINKS
8971 CONFIG_COMMANDS = $CONFIG_COMMANDS
8974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8979 case $ac_config_files in *"
8980 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8983 case $ac_config_headers in *"
8984 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8989 # Files that config.status was made for.
8990 config_files="$ac_config_files"
8991 config_headers="$ac_config_headers"
8992 config_commands="$ac_config_commands"
8996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8998 \`$as_me' instantiates files from templates according to the
8999 current configuration.
9001 Usage: $0 [OPTION]... [FILE]...
9003 -h, --help print this help, then exit
9004 -V, --version print version number and configuration settings, then exit
9005 -q, --quiet, --silent
9006 do not print progress messages
9007 -d, --debug don't remove temporary files
9008 --recheck update $as_me by reconfiguring in the same conditions
9009 --file=FILE[:TEMPLATE]
9010 instantiate the configuration file FILE
9011 --header=FILE[:TEMPLATE]
9012 instantiate the configuration header FILE
9014 Configuration files:
9017 Configuration headers:
9020 Configuration commands:
9023 Report bugs to <bug-autoconf@gnu.org>."
9026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9028 nbd config.status 2.9.13
9029 configured by $0, generated by GNU Autoconf 2.63,
9030 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9032 Copyright (C) 2008 Free Software Foundation, Inc.
9033 This config.status script is free software; the Free Software Foundation
9034 gives unlimited permission to copy, distribute and modify it."
9041 test -n "\$AWK" || AWK=awk
9044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9045 # The default lists apply if the user does not specify any file.
9051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9063 # Handling of the options.
9064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9067 $as_echo "$ac_cs_version"; exit ;;
9068 --debug | --debu | --deb | --de | --d | -d )
9070 --file | --fil | --fi | --f )
9073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9075 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9076 ac_need_defaults=false;;
9077 --header | --heade | --head | --hea )
9080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9082 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9083 ac_need_defaults=false;;
9085 # Conflict between --help and --header
9086 { $as_echo "$as_me: error: ambiguous option: $1
9087 Try \`$0 --help' for more information." >&2
9088 { (exit 1); exit 1; }; };;
9089 --help | --hel | -h )
9090 $as_echo "$ac_cs_usage"; exit ;;
9091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9096 -*) { $as_echo "$as_me: error: unrecognized option: $1
9097 Try \`$0 --help' for more information." >&2
9098 { (exit 1); exit 1; }; } ;;
9100 *) ac_config_targets="$ac_config_targets $1"
9101 ac_need_defaults=false ;;
9107 ac_configure_extra_args=
9109 if $ac_cs_silent; then
9111 ac_configure_extra_args="$ac_configure_extra_args --silent"
9115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9116 if \$ac_cs_recheck; then
9117 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9119 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9120 CONFIG_SHELL='$SHELL'
9126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9131 ## Running $as_me. ##
9137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9147 # Handling of arguments.
9148 for ac_config_target in $ac_config_targets
9150 case $ac_config_target in
9151 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9152 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9153 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9154 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
9155 "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
9156 "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
9157 "nbd-client.8") CONFIG_FILES="$CONFIG_FILES nbd-client.8" ;;
9159 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9160 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9161 { (exit 1); exit 1; }; };;
9166 # If the user did not use the arguments to specify the items to instantiate,
9167 # then the envvar interface is used. Set only those that are not.
9168 # We use the long form for the default assignment because of an extremely
9169 # bizarre bug on SunOS 4.1.3.
9170 if $ac_need_defaults; then
9171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9176 # Have a temporary directory for convenience. Make it in the build tree
9177 # simply because there is no reason against having it here, and in addition,
9178 # creating and moving files from /tmp can sometimes cause problems.
9179 # Hook for its removal unless debugging.
9180 # Note that there is a small window in which the directory will not be cleaned:
9181 # after its creation but before its name has been assigned to `$tmp'.
9185 trap 'exit_status=$?
9186 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9188 trap '{ (exit 1); exit 1; }' 1 2 13 15
9190 # Create a (secure) tmp directory for tmp files.
9193 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9194 test -n "$tmp" && test -d "$tmp"
9197 tmp=./conf$$-$RANDOM
9198 (umask 077 && mkdir "$tmp")
9201 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9202 { (exit 1); exit 1; }
9205 # Set up the scripts for CONFIG_FILES section.
9206 # No need to generate them if there are no CONFIG_FILES.
9207 # This happens for instance with `./config.status config.h'.
9208 if test -n "$CONFIG_FILES"; then
9212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9219 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9224 echo "cat >conf$$subs.awk <<_ACEOF" &&
9225 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9228 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9229 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9230 { (exit 1); exit 1; }; }
9231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9233 for ac_last_try in false false false false false :; do
9234 . ./conf$$subs.sh ||
9235 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9236 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9237 { (exit 1); exit 1; }; }
9239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9240 if test $ac_delim_n = $ac_delim_num; then
9242 elif $ac_last_try; then
9243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9244 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9245 { (exit 1); exit 1; }; }
9247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9253 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9257 s/^/S["/; s/!.*/"]=/
9267 s/\(.\{148\}\).*/\1/
9269 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9281 s/\(.\{148\}\).*/\1/
9283 s/["\\]/\\&/g; s/^/"/; s/$/"/
9287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9292 ' <conf$$subs.awk | sed '
9297 ' >>$CONFIG_STATUS || ac_write_fail=1
9298 rm -f conf$$subs.awk
9299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9301 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9302 for (key in S) S_is_set[key] = 1
9308 nfields = split(line, field, "@")
9310 len = length(field[1])
9311 for (i = 2; i < nfields; i++) {
9313 keylen = length(key)
9314 if (S_is_set[key]) {
9316 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9317 len += length(value) + length(field[++i])
9328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9329 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9330 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9333 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9334 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9335 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9336 { (exit 1); exit 1; }; }
9339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9341 # trailing colons and then remove the whole line if VPATH becomes empty
9342 # (actually we leave an empty line to preserve line numbers).
9343 if test "x$srcdir" = x.; then
9344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9348 s/^\([^=]*=[ ]*\):*/\1/
9354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9355 fi # test -n "$CONFIG_FILES"
9357 # Set up the scripts for CONFIG_HEADERS section.
9358 # No need to generate them if there are no CONFIG_HEADERS.
9359 # This happens for instance with `./config.status Makefile'.
9360 if test -n "$CONFIG_HEADERS"; then
9361 cat >"$tmp/defines.awk" <<\_ACAWK ||
9365 # Transform confdefs.h into an awk script `defines.awk', embedded as
9366 # here-document in config.status, that substitutes the proper values into
9367 # config.h.in to produce config.h.
9369 # Create a delimiter string that does not exist in confdefs.h, to ease
9370 # handling of long lines.
9372 for ac_last_try in false false :; do
9373 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9374 if test -z "$ac_t"; then
9376 elif $ac_last_try; then
9377 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9378 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9379 { (exit 1); exit 1; }; }
9381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9385 # For the awk script, D is an array of macro values keyed by name,
9386 # likewise P contains macro parameters if any. Preserve backslash
9387 # newline sequences.
9389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9391 s/.\{148\}/&'"$ac_delim"'/g
9394 s/^[ ]*#[ ]*define[ ][ ]*/ /
9401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9403 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9408 D["\1"]=" \3\\\\\\n"\\/p
9410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9415 s/.\{148\}/&'"$ac_delim"'/g
9420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9425 ' <confdefs.h | sed '
9426 s/'"$ac_delim"'/"\\\
9427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9430 for (key in D) D_is_set[key] = 1
9433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9435 split(line, arg, " ")
9436 if (arg[1] == "#") {
9440 defundef = substr(arg[1], 2)
9443 split(mac1, mac2, "(") #)
9445 prefix = substr(line, 1, index(line, defundef) - 1)
9446 if (D_is_set[macro]) {
9447 # Preserve the white space surrounding the "#".
9448 print prefix "define", macro P[macro] D[macro]
9451 # Replace #undef with comments. This is necessary, for example,
9452 # in the case of _POSIX_SOURCE, which is predefined and required
9453 # on some systems where configure will not decide to define it.
9454 if (defundef == "undef") {
9455 print "/*", prefix defundef, macro, "*/"
9463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9464 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9465 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9466 { (exit 1); exit 1; }; }
9467 fi # test -n "$CONFIG_HEADERS"
9470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9475 :[FHLC]) ac_mode=$ac_tag; continue;;
9477 case $ac_mode$ac_tag in
9479 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9480 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9481 { (exit 1); exit 1; }; };;
9482 :[FH]-) ac_tag=-:-;;
9483 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9500 -) ac_f="$tmp/stdin";;
9501 *) # Look for the file first in the build tree, then in the source tree
9502 # (if the path is not absolute). The absolute path cannot be DOS-style,
9503 # because $ac_f cannot contain `:'.
9507 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9509 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9510 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9511 { (exit 1); exit 1; }; };;
9513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9514 ac_file_inputs="$ac_file_inputs '$ac_f'"
9517 # Let's still pretend it is `configure' which instantiates (i.e., don't
9518 # use $as_me), people would be surprised to read:
9519 # /* config.h. Generated by config.status. */
9520 configure_input='Generated from '`
9521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9523 if test x"$ac_file" != x-; then
9524 configure_input="$ac_file. $configure_input"
9525 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9526 $as_echo "$as_me: creating $ac_file" >&6;}
9528 # Neutralize special characters interpreted by sed in replacement strings.
9529 case $configure_input in #(
9530 *\&* | *\|* | *\\* )
9531 ac_sed_conf_input=`$as_echo "$configure_input" |
9532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9533 *) ac_sed_conf_input=$configure_input;;
9537 *:-:* | *:-) cat >"$tmp/stdin" \
9538 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9539 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9540 { (exit 1); exit 1; }; } ;;
9545 ac_dir=`$as_dirname -- "$ac_file" ||
9546 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9547 X"$ac_file" : 'X\(//\)[^/]' \| \
9548 X"$ac_file" : 'X\(//\)$' \| \
9549 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9550 $as_echo X"$ac_file" |
9551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9570 -*) as_dir=./$as_dir;;
9572 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9576 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9577 *) as_qdir=$as_dir;;
9579 as_dirs="'$as_qdir' $as_dirs"
9580 as_dir=`$as_dirname -- "$as_dir" ||
9581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9582 X"$as_dir" : 'X\(//\)[^/]' \| \
9583 X"$as_dir" : 'X\(//\)$' \| \
9584 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9585 $as_echo X"$as_dir" |
9586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9603 test -d "$as_dir" && break
9605 test -z "$as_dirs" || eval "mkdir $as_dirs"
9606 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9607 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9608 { (exit 1); exit 1; }; }; }
9612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9615 # A ".." for each directory in $ac_dir_suffix.
9616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9617 case $ac_top_builddir_sub in
9618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9622 ac_abs_top_builddir=$ac_pwd
9623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9624 # for backward compatibility:
9625 ac_top_builddir=$ac_top_build_prefix
9628 .) # We are building in place.
9630 ac_top_srcdir=$ac_top_builddir_sub
9631 ac_abs_top_srcdir=$ac_pwd ;;
9632 [\\/]* | ?:[\\/]* ) # Absolute name.
9633 ac_srcdir=$srcdir$ac_dir_suffix;
9634 ac_top_srcdir=$srcdir
9635 ac_abs_top_srcdir=$srcdir ;;
9637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9638 ac_top_srcdir=$ac_top_build_prefix$srcdir
9639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9656 [\\/$]* | ?:[\\/]* ) ;;
9657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9662 # If the template does not know about datarootdir, expand it.
9663 # FIXME: This hack should be removed a few years after 2.60.
9664 ac_datarootdir_hack=; ac_datarootdir_seen=
9677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9678 *datarootdir*) ac_datarootdir_seen=yes;;
9679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9684 ac_datarootdir_hack='
9685 s&@datadir@&$datadir&g
9686 s&@docdir@&$docdir&g
9687 s&@infodir@&$infodir&g
9688 s&@localedir@&$localedir&g
9689 s&@mandir@&$mandir&g
9690 s&\\\${datarootdir}&$datarootdir&g' ;;
9694 # Neutralize VPATH when `$srcdir' = `.'.
9695 # Shell code in configure.ac might set extrasub.
9696 # FIXME: do we really want to maintain this feature?
9697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9698 ac_sed_extra="$ac_vpsub
9701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9704 s|@configure_input@|$ac_sed_conf_input|;t t
9705 s&@top_builddir@&$ac_top_builddir_sub&;t t
9706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9707 s&@srcdir@&$ac_srcdir&;t t
9708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9709 s&@top_srcdir@&$ac_top_srcdir&;t t
9710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9711 s&@builddir@&$ac_builddir&;t t
9712 s&@abs_builddir@&$ac_abs_builddir&;t t
9713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9714 s&@INSTALL@&$ac_INSTALL&;t t
9715 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9716 $ac_datarootdir_hack
9718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9719 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9720 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9721 { (exit 1); exit 1; }; }
9723 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9724 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9725 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9726 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9727 which seems to be undefined. Please make sure it is defined." >&5
9728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9729 which seems to be undefined. Please make sure it is defined." >&2;}
9733 -) cat "$tmp/out" && rm -f "$tmp/out";;
9734 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9736 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9737 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9738 { (exit 1); exit 1; }; }
9744 if test x"$ac_file" != x-; then
9746 $as_echo "/* $configure_input */" \
9747 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9748 } >"$tmp/config.h" \
9749 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9750 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9751 { (exit 1); exit 1; }; }
9752 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9753 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9757 mv "$tmp/config.h" "$ac_file" \
9758 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9759 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9760 { (exit 1); exit 1; }; }
9763 $as_echo "/* $configure_input */" \
9764 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9765 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
9766 $as_echo "$as_me: error: could not create -" >&2;}
9767 { (exit 1); exit 1; }; }
9769 # Compute "$ac_file"'s index in $config_headers.
9772 for _am_header in $config_headers :; do
9774 $_am_arg | $_am_arg:* )
9777 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9780 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9781 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9782 X"$_am_arg" : 'X\(//\)[^/]' \| \
9783 X"$_am_arg" : 'X\(//\)$' \| \
9784 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9785 $as_echo X"$_am_arg" |
9786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9802 s/.*/./; q'`/stamp-h$_am_stamp_count
9805 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
9806 $as_echo "$as_me: executing $ac_file commands" >&6;}
9811 case $ac_file$ac_mode in
9812 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
9813 # are listed without --file. Let's play safe and only enable the eval
9814 # if we detect the quoting.
9815 case $CONFIG_FILES in
9816 *\'*) eval set x "$CONFIG_FILES" ;;
9817 *) set x $CONFIG_FILES ;;
9822 # Strip MF so we end up with the name of the file.
9823 mf=`echo "$mf" | sed -e 's/:.*$//'`
9824 # Check whether this is an Automake generated Makefile or not.
9825 # We used to match only the files named `Makefile.in', but
9826 # some people rename them; so instead we look at the file content.
9827 # Grep'ing the first line is not enough: some people post-process
9828 # each Makefile.in and add a new line on top of each file to say so.
9829 # Grep'ing the whole file is not good either: AIX grep has a line
9830 # limit of 2048, but all sed's we know have understand at least 4000.
9831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9832 dirpart=`$as_dirname -- "$mf" ||
9833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9834 X"$mf" : 'X\(//\)[^/]' \| \
9835 X"$mf" : 'X\(//\)$' \| \
9836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9858 # Extract the definition of DEPDIR, am__include, and am__quote
9859 # from the Makefile without running `make'.
9860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9861 test -z "$DEPDIR" && continue
9862 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9863 test -z "am__include" && continue
9864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9865 # When using ansi2knr, U may be empty or an underscore; expand it
9866 U=`sed -n 's/^U = //p' < "$mf"`
9867 # Find all dependency output files, they are included files with
9868 # $(DEPDIR) in their names. We invoke sed twice because it is the
9869 # simplest approach to changing $(DEPDIR) to its actual value in the
9871 for file in `sed -n "
9872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9874 # Make sure the directory exists.
9875 test -f "$dirpart/$file" && continue
9876 fdir=`$as_dirname -- "$file" ||
9877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878 X"$file" : 'X\(//\)[^/]' \| \
9879 X"$file" : 'X\(//\)$' \| \
9880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9899 { as_dir=$dirpart/$fdir
9901 -*) as_dir=./$as_dir;;
9903 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9908 *) as_qdir=$as_dir;;
9910 as_dirs="'$as_qdir' $as_dirs"
9911 as_dir=`$as_dirname -- "$as_dir" ||
9912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9913 X"$as_dir" : 'X\(//\)[^/]' \| \
9914 X"$as_dir" : 'X\(//\)$' \| \
9915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9916 $as_echo X"$as_dir" |
9917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9934 test -d "$as_dir" && break
9936 test -z "$as_dirs" || eval "mkdir $as_dirs"
9937 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9938 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9939 { (exit 1); exit 1; }; }; }
9940 # echo "creating $dirpart/$file"
9941 echo '# dummy' > "$dirpart/$file"
9950 { (exit 0); exit 0; }
9952 chmod +x $CONFIG_STATUS
9953 ac_clean_files=$ac_clean_files_save
9955 test $ac_write_fail = 0 ||
9956 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
9957 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
9958 { (exit 1); exit 1; }; }
9961 # configure is writing to config.log, and then calls config.status.
9962 # config.status does its own redirection, appending to config.log.
9963 # Unfortunately, on DOS this fails, as config.log is still kept open
9964 # by configure, so config.status won't be able to write to it; its
9965 # output is simply discarded. So we exec the FD to /dev/null,
9966 # effectively closing config.log, so it can be properly (re)opened and
9967 # appended to by config.status. When coming back to configure, we
9968 # need to make the FD available again.
9969 if test "$no_create" != yes; then
9971 ac_config_status_args=
9972 test "$silent" = yes &&
9973 ac_config_status_args="$ac_config_status_args --quiet"
9975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9978 # would make configure fail if this is the last instruction.
9979 $ac_cs_success || { (exit 1); exit 1; }
9981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9982 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}