2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nbd SVN.
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 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 # Zsh 3.x and 4.x performs 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
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='nbd'
577 PACKAGE_VERSION='SVN'
578 PACKAGE_STRING='nbd SVN'
579 PACKAGE_BUGREPORT='wouter@debian.org'
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
668 INSTALL_STRIP_PROGRAM
677 MAINTAINER_MODE_FALSE
717 ac_precious_vars='build_alias
729 # Initialize some variables set by options.
731 ac_init_version=false
732 # The variables have the same names as the options, with
733 # dashes changed to underlines.
741 program_transform_name=s,x,x,
749 # Installation directory options.
750 # These are left unexpanded so users can "make install exec_prefix=/foo"
751 # and all the variables that are supposed to be based on exec_prefix
752 # by default will actually change.
753 # Use braces instead of parens because sh, perl, etc. also accept them.
754 # (The list follows the same order as the GNU Coding Standards.)
755 bindir='${exec_prefix}/bin'
756 sbindir='${exec_prefix}/sbin'
757 libexecdir='${exec_prefix}/libexec'
758 datarootdir='${prefix}/share'
759 datadir='${datarootdir}'
760 sysconfdir='${prefix}/etc'
761 sharedstatedir='${prefix}/com'
762 localstatedir='${prefix}/var'
763 includedir='${prefix}/include'
764 oldincludedir='/usr/include'
765 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
766 infodir='${datarootdir}/info'
771 libdir='${exec_prefix}/lib'
772 localedir='${datarootdir}/locale'
773 mandir='${datarootdir}/man'
779 # If the previous option needs an argument, assign it.
780 if test -n "$ac_prev"; then
781 eval $ac_prev=\$ac_option
787 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 # Accept the important Cygnus configure options, so we can diagnose typos.
793 case $ac_dashdash$ac_option in
797 -bindir | --bindir | --bindi | --bind | --bin | --bi)
799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 -build | --build | --buil | --bui | --bu)
803 ac_prev=build_alias ;;
804 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805 build_alias=$ac_optarg ;;
807 -cache-file | --cache-file | --cache-fil | --cache-fi \
808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809 ac_prev=cache_file ;;
810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812 cache_file=$ac_optarg ;;
815 cache_file=config.cache ;;
817 -datadir | --datadir | --datadi | --datad)
819 -datadir=* | --datadir=* | --datadi=* | --datad=*)
820 datadir=$ac_optarg ;;
822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823 | --dataroo | --dataro | --datar)
824 ac_prev=datarootdir ;;
825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827 datarootdir=$ac_optarg ;;
829 -disable-* | --disable-*)
830 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831 # Reject names that are not valid shell variable names.
832 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
833 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
834 { (exit 1); exit 1; }; }
835 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
836 eval enable_$ac_feature=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 -enable-* | --enable-*)
849 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_$ac_feature=\$ac_optarg ;;
857 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
858 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
859 | --exec | --exe | --ex)
860 ac_prev=exec_prefix ;;
861 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
862 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
863 | --exec=* | --exe=* | --ex=*)
864 exec_prefix=$ac_optarg ;;
866 -gas | --gas | --ga | --g)
867 # Obsolete; use --with-gas.
870 -help | --help | --hel | --he | -h)
872 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
873 ac_init_help=recursive ;;
874 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
875 ac_init_help=short ;;
877 -host | --host | --hos | --ho)
878 ac_prev=host_alias ;;
879 -host=* | --host=* | --hos=* | --ho=*)
880 host_alias=$ac_optarg ;;
882 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 htmldir=$ac_optarg ;;
888 -includedir | --includedir | --includedi | --included | --include \
889 | --includ | --inclu | --incl | --inc)
890 ac_prev=includedir ;;
891 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
892 | --includ=* | --inclu=* | --incl=* | --inc=*)
893 includedir=$ac_optarg ;;
895 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
898 infodir=$ac_optarg ;;
900 -libdir | --libdir | --libdi | --libd)
902 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
906 | --libexe | --libex | --libe)
907 ac_prev=libexecdir ;;
908 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
909 | --libexe=* | --libex=* | --libe=*)
910 libexecdir=$ac_optarg ;;
912 -localedir | --localedir | --localedi | --localed | --locale)
914 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
915 localedir=$ac_optarg ;;
917 -localstatedir | --localstatedir | --localstatedi | --localstated \
918 | --localstate | --localstat | --localsta | --localst | --locals)
919 ac_prev=localstatedir ;;
920 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
921 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
922 localstatedir=$ac_optarg ;;
924 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
930 # Obsolete; use --without-fp.
933 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
934 | --no-cr | --no-c | -n)
937 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
938 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
942 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
943 | --oldin | --oldi | --old | --ol | --o)
944 ac_prev=oldincludedir ;;
945 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
946 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
947 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
948 oldincludedir=$ac_optarg ;;
950 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 -program-prefix | --program-prefix | --program-prefi | --program-pref \
956 | --program-pre | --program-pr | --program-p)
957 ac_prev=program_prefix ;;
958 -program-prefix=* | --program-prefix=* | --program-prefi=* \
959 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
960 program_prefix=$ac_optarg ;;
962 -program-suffix | --program-suffix | --program-suffi | --program-suff \
963 | --program-suf | --program-su | --program-s)
964 ac_prev=program_suffix ;;
965 -program-suffix=* | --program-suffix=* | --program-suffi=* \
966 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
967 program_suffix=$ac_optarg ;;
969 -program-transform-name | --program-transform-name \
970 | --program-transform-nam | --program-transform-na \
971 | --program-transform-n | --program-transform- \
972 | --program-transform | --program-transfor \
973 | --program-transfo | --program-transf \
974 | --program-trans | --program-tran \
975 | --progr-tra | --program-tr | --program-t)
976 ac_prev=program_transform_name ;;
977 -program-transform-name=* | --program-transform-name=* \
978 | --program-transform-nam=* | --program-transform-na=* \
979 | --program-transform-n=* | --program-transform-=* \
980 | --program-transform=* | --program-transfor=* \
981 | --program-transfo=* | --program-transf=* \
982 | --program-trans=* | --program-tran=* \
983 | --progr-tra=* | --program-tr=* | --program-t=*)
984 program_transform_name=$ac_optarg ;;
986 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 -psdir | --psdir | --psdi | --psd | --ps)
993 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
1000 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004 sbindir=$ac_optarg ;;
1006 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1007 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1008 | --sharedst | --shareds | --shared | --share | --shar \
1010 ac_prev=sharedstatedir ;;
1011 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1012 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1013 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015 sharedstatedir=$ac_optarg ;;
1017 -site | --site | --sit)
1019 -site=* | --site=* | --sit=*)
1022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1025 srcdir=$ac_optarg ;;
1027 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1028 | --syscon | --sysco | --sysc | --sys | --sy)
1029 ac_prev=sysconfdir ;;
1030 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1031 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1032 sysconfdir=$ac_optarg ;;
1034 -target | --target | --targe | --targ | --tar | --ta | --t)
1035 ac_prev=target_alias ;;
1036 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1037 target_alias=$ac_optarg ;;
1039 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 -version | --version | --versio | --versi | --vers | -V)
1043 ac_init_version=: ;;
1046 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=\$ac_optarg ;;
1054 -without-* | --without-*)
1055 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=no ;;
1064 # Obsolete; use --with-x.
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1081 -*) { echo "$as_me: error: unrecognized option: $ac_option
1082 Try \`$0 --help' for more information." >&2
1083 { (exit 1); exit 1; }; }
1087 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1090 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1091 { (exit 1); exit 1; }; }
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 { echo "$as_me: error: missing argument to $ac_option" >&2
1109 { (exit 1); exit 1; }; }
1112 # Be sure to have absolute directory names.
1113 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114 datadir sysconfdir sharedstatedir localstatedir includedir \
1115 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116 libdir localedir mandir
1118 eval ac_val=\$$ac_var
1120 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1124 { (exit 1); exit 1; }; }
1127 # There might be people who depend on the old broken behavior: `$host'
1128 # used to hold the argument of --host etc.
1129 # FIXME: To remove some day.
1132 target=$target_alias
1134 # FIXME: To remove some day.
1135 if test "x$host_alias" != x; then
1136 if test "x$build_alias" = x; then
1137 cross_compiling=maybe
1138 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1139 If a cross compiler is detected then cross compile mode will be used." >&2
1140 elif test "x$build_alias" != "x$host_alias"; then
1146 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1148 test "$silent" = yes && exec 6>/dev/null
1151 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152 ac_ls_di=`ls -di .` &&
1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154 { echo "$as_me: error: Working directory cannot be determined" >&2
1155 { (exit 1); exit 1; }; }
1156 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1157 { echo "$as_me: error: pwd does not report name of working directory" >&2
1158 { (exit 1); exit 1; }; }
1161 # Find the source files, if location was not specified.
1162 if test -z "$srcdir"; then
1163 ac_srcdir_defaulted=yes
1164 # Try the directory containing this script, then the parent directory.
1165 ac_confdir=`$as_dirname -- "$0" ||
1166 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167 X"$0" : 'X\(//\)[^/]' \| \
1168 X"$0" : 'X\(//\)$' \| \
1169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1193 ac_srcdir_defaulted=no
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1198 { (exit 1); exit 1; }; }
1200 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1202 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1203 { (exit 1); exit 1; }; }
1205 # When building in place, set srcdir=.
1206 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209 # Remove unnecessary trailing slashes from srcdir.
1210 # Double slashes in file names in object file debugging info
1211 # mess up M-x gdb in Emacs.
1213 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215 for ac_var in $ac_precious_vars; do
1216 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_env_${ac_var}_value=\$${ac_var}
1218 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 # Report the --help message.
1225 if test "$ac_init_help" = "long"; then
1226 # Omit some internal or obsolete options to make the list less imposing.
1227 # This message is too long to be a string in the A/UX 3.1 sh.
1229 \`configure' configures nbd SVN to adapt to many kinds of systems.
1231 Usage: $0 [OPTION]... [VAR=VALUE]...
1233 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1234 VAR=VALUE. See below for descriptions of some of the useful variables.
1236 Defaults for the options are specified in brackets.
1239 -h, --help display this help and exit
1240 --help=short display options specific to this package
1241 --help=recursive display the short help of all the included packages
1242 -V, --version display version information and exit
1243 -q, --quiet, --silent do not print \`checking...' messages
1244 --cache-file=FILE cache test results in FILE [disabled]
1245 -C, --config-cache alias for \`--cache-file=config.cache'
1246 -n, --no-create do not create output files
1247 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1249 Installation directories:
1250 --prefix=PREFIX install architecture-independent files in PREFIX
1251 [$ac_default_prefix]
1252 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1255 By default, \`make install' will install all the files in
1256 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1257 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1258 for instance \`--prefix=\$HOME'.
1260 For better control, use the options below.
1262 Fine tuning of the installation directories:
1263 --bindir=DIR user executables [EPREFIX/bin]
1264 --sbindir=DIR system admin executables [EPREFIX/sbin]
1265 --libexecdir=DIR program executables [EPREFIX/libexec]
1266 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1267 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1268 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1269 --libdir=DIR object code libraries [EPREFIX/lib]
1270 --includedir=DIR C header files [PREFIX/include]
1271 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1272 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1273 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1274 --infodir=DIR info documentation [DATAROOTDIR/info]
1275 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1276 --mandir=DIR man documentation [DATAROOTDIR/man]
1277 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1278 --htmldir=DIR html documentation [DOCDIR]
1279 --dvidir=DIR dvi documentation [DOCDIR]
1280 --pdfdir=DIR pdf documentation [DOCDIR]
1281 --psdir=DIR ps documentation [DOCDIR]
1287 --program-prefix=PREFIX prepend PREFIX to installed program names
1288 --program-suffix=SUFFIX append SUFFIX to installed program names
1289 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1292 --build=BUILD configure for building on BUILD [guessed]
1293 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1297 if test -n "$ac_init_help"; then
1298 case $ac_init_help in
1299 short | recursive ) echo "Configuration of nbd SVN:";;
1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1306 --enable-maintainer-mode enable make rules and dependencies not useful
1307 (and sometimes confusing) to the casual installer
1308 --disable-lfs Disable Large File Support (default on)
1309 --enable-syslog Enable Syslog logging
1310 --enable-debug Build a debugging version of the server
1311 --enable-sdp Build a version of nbd-server with support for the
1312 Socket Direct Protocol (SDP). Requires you to build
1313 and install a kernel with the InfiniBand patches
1315 --disable-dependency-tracking speeds up one-time build
1316 --enable-dependency-tracking do not reject slow dependency extractors
1317 --disable-glibtest do not try to compile and run a test GLIB program
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1328 PKG_CONFIG path to pkg-config utility
1330 Use these variables to override the choices made by `configure' or to help
1331 it to find libraries and programs with nonstandard names/locations.
1333 Report bugs to <wouter@debian.org>.
1338 if test "$ac_init_help" = "recursive"; then
1339 # If there are subdirs, report their specific --help.
1340 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341 test -d "$ac_dir" || continue
1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 ac_abs_top_builddir=$ac_pwd
1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357 # for backward compatibility:
1358 ac_top_builddir=$ac_top_build_prefix
1361 .) # We are building in place.
1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
1366 ac_srcdir=$srcdir$ac_dir_suffix;
1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1383 $SHELL "$ac_srcdir/configure" --help=recursive
1385 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 cd "$ac_pwd" || { ac_status=$?; break; }
1391 test -n "$ac_init_help" && exit $ac_status
1392 if $ac_init_version; then
1395 generated by GNU Autoconf 2.61
1397 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1398 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1399 This configure script is free software; the Free Software Foundation
1400 gives unlimited permission to copy, distribute and modify it.
1404 cat >config.log <<_ACEOF
1405 This file contains any messages produced by compilers while
1406 running configure, to aid debugging if configure makes a mistake.
1408 It was created by nbd $as_me SVN, which was
1409 generated by GNU Autoconf 2.61. Invocation command line was
1421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 test -z "$as_dir" && as_dir=.
1445 echo "PATH: $as_dir"
1461 # Keep a trace of the command line.
1462 # Strip out --no-create and --no-recursion so they do not pile up.
1463 # Strip out --silent because we don't want to record it for future runs.
1464 # Also quote any args containing shell meta-characters.
1465 # Make two passes to allow for proper duplicate-argument suppression.
1469 ac_must_keep_next=false
1475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477 | -silent | --silent | --silen | --sile | --sil)
1480 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1485 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1486 if test $ac_must_keep_next = true; then
1487 ac_must_keep_next=false # Got value, back to normal.
1490 *=* | --config-cache | -C | -disable-* | --disable-* \
1491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1493 | -with-* | --with-* | -without-* | --without-* | --x)
1494 case "$ac_configure_args0 " in
1495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1498 -* ) ac_must_keep_next=true ;;
1501 ac_configure_args="$ac_configure_args '$ac_arg'"
1506 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1507 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1509 # When interrupted or exit'd, cleanup temporary files, and complete
1510 # config.log. We remove comments because anyway the quotes in there
1511 # would cause problems or look ugly.
1512 # WARNING: Use '\'' to represent an apostrophe within the trap.
1513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1514 trap 'exit_status=$?
1515 # Save into config.log some information that might help in debugging.
1520 ## ---------------- ##
1521 ## Cache variables. ##
1522 ## ---------------- ##
1525 # The following way of writing the cache mishandles newlines in values,
1527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1528 eval ac_val=\$$ac_var
1532 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1533 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1536 _ | IFS | as_nl) ;; #(
1537 *) $as_unset $ac_var ;;
1542 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1543 *${as_nl}ac_space=\ *)
1545 "s/'\''/'\''\\\\'\'''\''/g;
1546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557 ## ----------------- ##
1558 ## Output variables. ##
1559 ## ----------------- ##
1562 for ac_var in $ac_subst_vars
1564 eval ac_val=\$$ac_var
1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 echo "$ac_var='\''$ac_val'\''"
1572 if test -n "$ac_subst_files"; then
1574 ## ------------------- ##
1575 ## File substitutions. ##
1576 ## ------------------- ##
1579 for ac_var in $ac_subst_files
1581 eval ac_val=\$$ac_var
1583 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1585 echo "$ac_var='\''$ac_val'\''"
1590 if test -s confdefs.h; then
1600 test "$ac_signal" != 0 &&
1601 echo "$as_me: caught signal $ac_signal"
1602 echo "$as_me: exit $exit_status"
1604 rm -f core *.core core.conftest.* &&
1605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1608 for ac_signal in 1 2 13 15; do
1609 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1614 rm -f -r conftest* confdefs.h
1616 # Predefined preprocessor variables.
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_NAME "$PACKAGE_NAME"
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_STRING "$PACKAGE_STRING"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1643 # Let the site file select an alternate cache file if it wants to.
1644 # Prefer explicitly selected file to automatically selected ones.
1645 if test -n "$CONFIG_SITE"; then
1646 set x "$CONFIG_SITE"
1647 elif test "x$prefix" != xNONE; then
1648 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1650 set x "$ac_default_prefix/share/config.site" \
1651 "$ac_default_prefix/etc/config.site"
1656 if test -r "$ac_site_file"; then
1657 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1658 echo "$as_me: loading site script $ac_site_file" >&6;}
1659 sed 's/^/| /' "$ac_site_file" >&5
1664 if test -r "$cache_file"; then
1665 # Some versions of bash will fail to source /dev/null (special
1666 # files actually), so we avoid doing that.
1667 if test -f "$cache_file"; then
1668 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1669 echo "$as_me: loading cache $cache_file" >&6;}
1671 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1672 *) . "./$cache_file";;
1676 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1677 echo "$as_me: creating cache $cache_file" >&6;}
1681 # Check that the precious variables saved in the cache have kept the same
1683 ac_cache_corrupted=false
1684 for ac_var in $ac_precious_vars; do
1685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1686 eval ac_new_set=\$ac_env_${ac_var}_set
1687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1688 eval ac_new_val=\$ac_env_${ac_var}_value
1689 case $ac_old_set,$ac_new_set in
1691 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1692 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1693 ac_cache_corrupted=: ;;
1695 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1696 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1697 ac_cache_corrupted=: ;;
1700 if test "x$ac_old_val" != "x$ac_new_val"; then
1701 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1702 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1704 echo "$as_me: former value: $ac_old_val" >&2;}
1705 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1706 echo "$as_me: current value: $ac_new_val" >&2;}
1707 ac_cache_corrupted=:
1710 # Pass precious variables to config.status.
1711 if test "$ac_new_set" = set; then
1713 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1714 *) ac_arg=$ac_var=$ac_new_val ;;
1716 case " $ac_configure_args " in
1717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1718 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1722 if $ac_cache_corrupted; then
1723 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1724 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1725 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1726 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1727 { (exit 1); exit 1; }; }
1755 ac_cpp='$CPP $CPPFLAGS'
1756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1761 am__api_version='1.10'
1764 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1765 if test -f "$ac_dir/install-sh"; then
1767 ac_install_sh="$ac_aux_dir/install-sh -c"
1769 elif test -f "$ac_dir/install.sh"; then
1771 ac_install_sh="$ac_aux_dir/install.sh -c"
1773 elif test -f "$ac_dir/shtool"; then
1775 ac_install_sh="$ac_aux_dir/shtool install -c"
1779 if test -z "$ac_aux_dir"; then
1780 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1781 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1782 { (exit 1); exit 1; }; }
1785 # These three variables are undocumented and unsupported,
1786 # and are intended to be withdrawn in a future Autoconf release.
1787 # They can cause serious problems if a builder's source tree is in a directory
1788 # whose full name contains unusual characters.
1789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1794 # Find a good install program. We prefer a C program (faster),
1795 # so one script is as good as another. But avoid the broken or
1796 # incompatible versions:
1797 # SysV /etc/install, /usr/sbin/install
1798 # SunOS /usr/etc/install
1799 # IRIX /sbin/install
1801 # AmigaOS /C/install, which installs bootblocks on floppy discs
1802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1805 # OS/2's system install, which has a completely different semantic
1806 # ./install, which can be erroneously created by make from ./install.sh.
1807 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1808 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1809 if test -z "$INSTALL"; then
1810 if test "${ac_cv_path_install+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 test -z "$as_dir" && as_dir=.
1818 # Account for people who put trailing slashes in PATH elements.
1820 ./ | .// | /cC/* | \
1821 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1822 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1825 # OSF1 and SCO ODT 3.0 have their own names for install.
1826 # Don't use installbsd from OSF since it installs stuff as root
1828 for ac_prog in ginstall scoinst install; do
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1831 if test $ac_prog = install &&
1832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1833 # AIX install. It has an incompatible calling convention.
1835 elif test $ac_prog = install &&
1836 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1837 # program-specific install script used by HP pwplus--don't use.
1840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1853 if test "${ac_cv_path_install+set}" = set; then
1854 INSTALL=$ac_cv_path_install
1856 # As a last resort, use the slow shell script. Don't cache a
1857 # value for INSTALL within a source directory, because that will
1858 # break other packages using the cache if that directory is
1859 # removed, or if the value is a relative name.
1860 INSTALL=$ac_install_sh
1863 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1864 echo "${ECHO_T}$INSTALL" >&6; }
1866 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1867 # It thinks the first close brace ends the variable substitution.
1868 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1870 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1872 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1874 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1875 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1878 echo timestamp > conftest.file
1879 # Do `set' in a subshell so we don't clobber the current shell's
1880 # arguments. Must try -L first in case configure is actually a
1881 # symlink; some systems play weird games with the mod time of symlinks
1882 # (eg FreeBSD returns the mod time of the symlink's containing
1885 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1886 if test "$*" = "X"; then
1888 set X `ls -t $srcdir/configure conftest.file`
1891 if test "$*" != "X $srcdir/configure conftest.file" \
1892 && test "$*" != "X conftest.file $srcdir/configure"; then
1894 # If neither matched, then we have a broken ls. This can happen
1895 # if, for instance, CONFIG_SHELL is bash and it inherits a
1896 # broken ls alias from the environment. This has actually
1897 # happened. Such a system could not be considered "sane".
1898 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1899 alias in your environment" >&5
1900 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1901 alias in your environment" >&2;}
1902 { (exit 1); exit 1; }; }
1905 test "$2" = conftest.file
1911 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1912 Check your system clock" >&5
1913 echo "$as_me: error: newly created file is older than distributed files!
1914 Check your system clock" >&2;}
1915 { (exit 1); exit 1; }; }
1917 { echo "$as_me:$LINENO: result: yes" >&5
1918 echo "${ECHO_T}yes" >&6; }
1919 test "$program_prefix" != NONE &&
1920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1921 # Use a double $ so make ignores it.
1922 test "$program_suffix" != NONE &&
1923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1924 # Double any \ or $. echo might interpret backslashes.
1925 # By default was `s,x,x', remove it if useless.
1926 cat <<\_ACEOF >conftest.sed
1927 s/[\\$]/&&/g;s/;s,x,x,$//
1929 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1932 # expand $ac_aux_dir to an absolute path
1933 am_aux_dir=`cd $ac_aux_dir && pwd`
1935 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1936 # Use eval to expand $SHELL
1937 if eval "$MISSING --run true"; then
1938 am_missing_run="$MISSING --run "
1941 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1942 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1945 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1946 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1947 if test -z "$MKDIR_P"; then
1948 if test "${ac_cv_path_mkdir+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1955 test -z "$as_dir" && as_dir=.
1956 for ac_prog in mkdir gmkdir; do
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1959 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1960 'mkdir (GNU coreutils) '* | \
1961 'mkdir (coreutils) '* | \
1962 'mkdir (fileutils) '4.1*)
1963 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1973 if test "${ac_cv_path_mkdir+set}" = set; then
1974 MKDIR_P="$ac_cv_path_mkdir -p"
1976 # As a last resort, use the slow shell script. Don't cache a
1977 # value for MKDIR_P within a source directory, because that will
1978 # break other packages using the cache if that directory is
1979 # removed, or if the value is a relative name.
1980 test -d ./--version && rmdir ./--version
1981 MKDIR_P="$ac_install_sh -d"
1984 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1985 echo "${ECHO_T}$MKDIR_P" >&6; }
1989 [\\/$]* | ?:[\\/]*) ;;
1990 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1993 for ac_prog in gawk mawk nawk awk
1995 # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_AWK+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$AWK"; then
2003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012 ac_cv_prog_AWK="$ac_prog"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 if test -n "$AWK"; then
2024 { echo "$as_me:$LINENO: result: $AWK" >&5
2025 echo "${ECHO_T}$AWK" >&6; }
2027 { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2032 test -n "$AWK" && break
2035 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2036 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2037 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2038 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 cat >conftest.make <<\_ACEOF
2044 @echo '@@@%%%=$(MAKE)=@@@%%%'
2046 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2047 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2049 eval ac_cv_prog_make_${ac_make}_set=yes;;
2051 eval ac_cv_prog_make_${ac_make}_set=no;;
2055 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2056 { echo "$as_me:$LINENO: result: yes" >&5
2057 echo "${ECHO_T}yes" >&6; }
2060 { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 SET_MAKE="MAKE=${MAKE-make}"
2065 rm -rf .tst 2>/dev/null
2066 mkdir .tst 2>/dev/null
2067 if test -d .tst; then
2072 rmdir .tst 2>/dev/null
2074 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2075 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2076 # is not polluted with repeated "-I."
2077 am__isrc=' -I$(srcdir)'
2078 # test to see if srcdir already configured
2079 if test -f $srcdir/config.status; then
2080 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2081 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2082 { (exit 1); exit 1; }; }
2086 # test whether we have cygpath
2087 if test -z "$CYGPATH_W"; then
2088 if (cygpath --version) >/dev/null 2>/dev/null; then
2089 CYGPATH_W='cygpath -w'
2096 # Define the identity of the package.
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE "$PACKAGE"
2106 cat >>confdefs.h <<_ACEOF
2107 #define VERSION "$VERSION"
2110 # Some tools Automake needs.
2112 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2115 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2118 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2121 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2124 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2126 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2128 # Installed binaries are usually stripped using `strip' when the user
2129 # run `make install-strip'. However `strip' might not be the right
2130 # tool to use in cross-compilation environments, therefore Automake
2131 # will honor the `STRIP' environment variable to overrule this program.
2132 if test "$cross_compiling" != no; then
2133 if test -n "$ac_tool_prefix"; then
2134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2135 set dummy ${ac_tool_prefix}strip; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_STRIP+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test -n "$STRIP"; then
2142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 STRIP=$ac_cv_prog_STRIP
2162 if test -n "$STRIP"; then
2163 { echo "$as_me:$LINENO: result: $STRIP" >&5
2164 echo "${ECHO_T}$STRIP" >&6; }
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2172 if test -z "$ac_cv_prog_STRIP"; then
2174 # Extract the first word of "strip", so it can be a program name with args.
2175 set dummy strip; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$ac_ct_STRIP"; then
2182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_ac_ct_STRIP="strip"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2202 if test -n "$ac_ct_STRIP"; then
2203 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2204 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2210 if test "x$ac_ct_STRIP" = x; then
2213 case $cross_compiling:$ac_tool_warned in
2215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2216 whose name does not start with the host triplet. If you think this
2217 configuration is useful to you, please write to autoconf@gnu.org." >&5
2218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet. If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2221 ac_tool_warned=yes ;;
2226 STRIP="$ac_cv_prog_STRIP"
2230 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2232 # We need awk for the "check" target. The system "awk" is bad on
2234 # Always define AMTAR for backward compatibility.
2236 AMTAR=${AMTAR-"${am_missing_run}tar"}
2238 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2244 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2245 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2246 # Check whether --enable-maintainer-mode was given.
2247 if test "${enable_maintainer_mode+set}" = set; then
2248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2250 USE_MAINTAINER_MODE=no
2253 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2254 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2255 if test $USE_MAINTAINER_MODE = yes; then
2256 MAINTAINER_MODE_TRUE=
2257 MAINTAINER_MODE_FALSE='#'
2259 MAINTAINER_MODE_TRUE='#'
2260 MAINTAINER_MODE_FALSE=
2263 MAINT=$MAINTAINER_MODE_TRUE
2267 # Check whether --enable-lfs was given.
2268 if test "${enable_lfs+set}" = set; then
2269 enableval=$enable_lfs;
2270 if test "x$enableval" = "xyes" ; then
2281 { echo "$as_me:$LINENO: checking whether Large File Support should be enabled" >&5
2282 echo $ECHO_N "checking whether Large File Support should be enabled... $ECHO_C" >&6; }
2283 if test $NBD_LFS -eq 1; then
2285 cat >>confdefs.h <<\_ACEOF
2289 { echo "$as_me:$LINENO: result: yes" >&5
2290 echo "${ECHO_T}yes" >&6; }
2292 cat >>confdefs.h <<\_ACEOF
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2300 # Check whether --enable-syslog was given.
2301 if test "${enable_syslog+set}" = set; then
2302 enableval=$enable_syslog;
2303 if test "x$enableval" = "xyes" ; then
2315 { echo "$as_me:$LINENO: checking whether syslog logging is requested" >&5
2316 echo $ECHO_N "checking whether syslog logging is requested... $ECHO_C" >&6; }
2317 if test $ISSERVER -eq 1; then
2319 cat >>confdefs.h <<\_ACEOF
2323 { echo "$as_me:$LINENO: result: yes" >&5
2324 echo "${ECHO_T}yes" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2330 # Check whether --enable-debug was given.
2331 if test "${enable_debug+set}" = set; then
2332 enableval=$enable_debug;
2333 if test "x$enableval" = "xyes"; then
2345 { echo "$as_me:$LINENO: checking whether a debugging version is requested" >&5
2346 echo $ECHO_N "checking whether a debugging version is requested... $ECHO_C" >&6; }
2347 if test $DODBG -eq 1; then
2348 { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2350 if test $ISSERVER -eq 1; then
2351 { { echo "$as_me:$LINENO: error: You requested both syslog logging and a debugging version of the server. Bad idea!" >&5
2352 echo "$as_me: error: You requested both syslog logging and a debugging version of the server. Bad idea!" >&2;}
2353 { (exit 1); exit 1; }; }
2356 cat >>confdefs.h <<\_ACEOF
2361 cat >>confdefs.h <<\_ACEOF
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2370 # Check whether --enable-sdp was given.
2371 if test "${enable_sdp+set}" = set; then
2372 enableval=$enable_sdp;
2373 if test "x$enableval" = "xyes"; then
2375 cat >>confdefs.h <<\_ACEOF
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned=yes ;;
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}cc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2627 if test -z "$CC"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2671 if test "x$ac_ct_CC" = x; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (ac_try="$ac_compiler --version >&5"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2764 for ac_file in $ac_files
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 if { (ac_try="$ac_link_default"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2788 for ac_file in $ac_files ''
2790 test -f "$ac_file" || continue
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 # We found the default executable, but exeext='' is most
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2813 test "$ac_cv_exeext" = no && ac_cv_exeext=
2819 { echo "$as_me:$LINENO: result: $ac_file" >&5
2820 echo "${ECHO_T}$ac_file" >&6; }
2821 if test -z "$ac_file"; then
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 if test "$cross_compiling" = maybe; then
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_link") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2911 rm -f conftest$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
2949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3026 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3028 GCC=`test $ac_compiler_gnu = yes && echo yes`
3029 ac_test_CFLAGS=${CFLAGS+set}
3030 ac_save_CFLAGS=$CFLAGS
3031 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_cc_g+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 ac_save_c_werror_flag=$ac_c_werror_flag
3037 ac_c_werror_flag=yes
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_c_werror_flag=$ac_save_c_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3168 if test "$ac_test_CFLAGS" = set; then
3169 CFLAGS=$ac_save_CFLAGS
3170 elif test $ac_cv_prog_cc_g = yes; then
3171 if test "$GCC" = yes; then
3177 if test "$GCC" = yes; then
3183 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3184 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_cc_c89+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 ac_cv_prog_cc_c89=no
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3198 #include <sys/types.h>
3199 #include <sys/stat.h>
3200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3201 struct buf { int x; };
3202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3203 static char *e (p, i)
3209 static char *f (char * (*g) (char **, int), char **p, ...)
3214 s = g (p, va_arg (v,int));
3219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3220 function prototypes and stuff, but not '\xHH' hex character constants.
3221 These don't provoke an error unfortunately, instead are silently treated
3222 as 'x'. The following induces an error, until -std is added to get
3223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3224 array size at least. It's necessary to write '\x00'==0 to get something
3225 that's true only with -std. */
3226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3229 inside strings and character constants. */
3231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3233 int test (int i, double x);
3234 struct s1 {int (*f) (int a);};
3235 struct s2 {int (*f) (double a);};
3236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3250 CC="$ac_save_CC $ac_arg"
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3268 ac_cv_prog_cc_c89=$ac_arg
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3276 rm -f core conftest.err conftest.$ac_objext
3277 test "x$ac_cv_prog_cc_c89" != "xno" && break
3279 rm -f conftest.$ac_ext
3284 case "x$ac_cv_prog_cc_c89" in
3286 { echo "$as_me:$LINENO: result: none needed" >&5
3287 echo "${ECHO_T}none needed" >&6; } ;;
3289 { echo "$as_me:$LINENO: result: unsupported" >&5
3290 echo "${ECHO_T}unsupported" >&6; } ;;
3292 CC="$CC $ac_cv_prog_cc_c89"
3293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 DEPDIR="${am__leading_dot}deps"
3305 ac_config_commands="$ac_config_commands depfiles"
3308 am_make=${MAKE-make}
3309 cat > confinc << 'END'
3314 # If we don't find an include directive, just comment out the code.
3315 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3316 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3320 # First try GNU make style include.
3321 echo "include confinc" > confmf
3322 # We grep out `Entering directory' and `Leaving directory'
3323 # messages which can occur if `w' ends up in MAKEFLAGS.
3324 # In particular we don't look at `^make:' because GNU make might
3325 # be invoked under some other name (usually "gmake"), in which
3326 # case it prints its new name instead of `make'.
3327 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3332 # Now try BSD make style include.
3333 if test "$am__include" = "#"; then
3334 echo '.include "confinc"' > confmf
3335 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3336 am__include=.include
3343 { echo "$as_me:$LINENO: result: $_am_result" >&5
3344 echo "${ECHO_T}$_am_result" >&6; }
3345 rm -f confinc confmf
3347 # Check whether --enable-dependency-tracking was given.
3348 if test "${enable_dependency_tracking+set}" = set; then
3349 enableval=$enable_dependency_tracking;
3352 if test "x$enable_dependency_tracking" != xno; then
3353 am_depcomp="$ac_aux_dir/depcomp"
3356 if test "x$enable_dependency_tracking" != xno; then
3366 depcc="$CC" am_compiler_list=
3368 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3369 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3370 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3374 # We make a subdir and do the tests there. Otherwise we can end up
3375 # making bogus files that we don't know about and never remove. For
3376 # instance it was reported that on HP-UX the gcc test will end up
3377 # making a dummy file named `D' -- because `-MD' means `put the output
3380 # Copy depcomp to subdir because otherwise we won't find it if we're
3381 # using a relative directory.
3382 cp "$am_depcomp" conftest.dir
3384 # We will build objects and dependencies in a subdirectory because
3385 # it helps to detect inapplicable dependency modes. For instance
3386 # both Tru64's cc and ICC support -MD to output dependencies as a
3387 # side effect of compilation, but ICC will put the dependencies in
3388 # the current directory while Tru64 will put them in the object
3392 am_cv_CC_dependencies_compiler_type=none
3393 if test "$am_compiler_list" = ""; then
3394 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3396 for depmode in $am_compiler_list; do
3397 # Setup a source with many dependencies, because some compilers
3398 # like to wrap large dependency lists on column 80 (with \), and
3399 # we should not choose a depcomp mode which is confused by this.
3401 # We need to recreate these files for each test, as the compiler may
3402 # overwrite some of them when testing with obscure command lines.
3403 # This happens at least with the AIX C compiler.
3405 for i in 1 2 3 4 5 6; do
3406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3407 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3408 # Solaris 8's {/usr,}/bin/sh.
3409 touch sub/conftst$i.h
3411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3415 # after this tag, mechanisms are not by side-effect, so they'll
3416 # only be used when explicitly requested
3417 if test "x$enable_dependency_tracking" = xyes; then
3425 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3426 # mode. It turns out that the SunPro C++ compiler does not properly
3427 # handle `-M -o', and we need to detect this.
3428 if depmode=$depmode \
3429 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3431 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3432 >/dev/null 2>conftest.err &&
3433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3435 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3437 # icc doesn't choke on unknown options, it will just issue warnings
3438 # or remarks (even with -Werror). So we grep stderr for any message
3439 # that says an option was ignored or not supported.
3440 # When given -MP, icc 7.0 and 7.1 complain thusly:
3441 # icc: Command line warning: ignoring option '-M'; no argument required
3442 # The diagnosis changed in icc 8.0:
3443 # icc: Command line remark: option '-MP' not supported
3444 if (grep 'ignoring option' conftest.err ||
3445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3446 am_cv_CC_dependencies_compiler_type=$depmode
3455 am_cv_CC_dependencies_compiler_type=none
3459 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3460 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3464 test "x$enable_dependency_tracking" != xno \
3465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3467 am__fastdepCC_FALSE='#'
3469 am__fastdepCC_TRUE='#'
3470 am__fastdepCC_FALSE=
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3480 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3481 # On Suns, sometimes $CPP names a directory.
3482 if test -n "$CPP" && test -d "$CPP"; then
3485 if test -z "$CPP"; then
3486 if test "${ac_cv_prog_CPP+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 # Double quotes because CPP needs to be expanded
3490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3493 for ac_c_preproc_warn_flag in '' yes
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3508 # include <limits.h>
3510 # include <assert.h>
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null && {
3527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 # Broken: fails on valid input.
3539 rm -f conftest.err conftest.$ac_ext
3541 # OK, works on sane cases. Now check whether nonexistent headers
3542 # can be detected and how.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null && {
3564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3567 # Broken: success on invalid input.
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Passes both tests.
3578 rm -f conftest.err conftest.$ac_ext
3581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3582 rm -f conftest.err conftest.$ac_ext
3583 if $ac_preproc_ok; then
3595 { echo "$as_me:$LINENO: result: $CPP" >&5
3596 echo "${ECHO_T}$CPP" >&6; }
3598 for ac_c_preproc_warn_flag in '' yes
3600 # Use a header file that comes with gcc, so configuring glibc
3601 # with a fresh cross-compiler works.
3602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3603 # <limits.h> exists even on freestanding compilers.
3604 # On the NeXT, cc -E runs the code through the compiler's parser,
3605 # not just through cpp. "Syntax error" is here to catch this case.
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3613 # include <limits.h>
3615 # include <assert.h>
3619 if { (ac_try="$ac_cpp conftest.$ac_ext"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null && {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 # Broken: fails on valid input.
3644 rm -f conftest.err conftest.$ac_ext
3646 # OK, works on sane cases. Now check whether nonexistent headers
3647 # can be detected and how.
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <ac_nonexistent.h>
3656 if { (ac_try="$ac_cpp conftest.$ac_ext"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } >/dev/null && {
3669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3672 # Broken: success on invalid input.
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 # Passes both tests.
3683 rm -f conftest.err conftest.$ac_ext
3686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3687 rm -f conftest.err conftest.$ac_ext
3688 if $ac_preproc_ok; then
3691 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3692 See \`config.log' for more details." >&5
3693 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3694 See \`config.log' for more details." >&2;}
3695 { (exit 1); exit 1; }; }
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 # Find a good install program. We prefer a C program (faster),
3705 # so one script is as good as another. But avoid the broken or
3706 # incompatible versions:
3707 # SysV /etc/install, /usr/sbin/install
3708 # SunOS /usr/etc/install
3709 # IRIX /sbin/install
3711 # AmigaOS /C/install, which installs bootblocks on floppy discs
3712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3715 # OS/2's system install, which has a completely different semantic
3716 # ./install, which can be erroneously created by make from ./install.sh.
3717 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3718 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3719 if test -z "$INSTALL"; then
3720 if test "${ac_cv_path_install+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 # Account for people who put trailing slashes in PATH elements.
3730 ./ | .// | /cC/* | \
3731 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3732 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3735 # OSF1 and SCO ODT 3.0 have their own names for install.
3736 # Don't use installbsd from OSF since it installs stuff as root
3738 for ac_prog in ginstall scoinst install; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3741 if test $ac_prog = install &&
3742 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3743 # AIX install. It has an incompatible calling convention.
3745 elif test $ac_prog = install &&
3746 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3747 # program-specific install script used by HP pwplus--don't use.
3750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3763 if test "${ac_cv_path_install+set}" = set; then
3764 INSTALL=$ac_cv_path_install
3766 # As a last resort, use the slow shell script. Don't cache a
3767 # value for INSTALL within a source directory, because that will
3768 # break other packages using the cache if that directory is
3769 # removed, or if the value is a relative name.
3770 INSTALL=$ac_install_sh
3773 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3774 echo "${ECHO_T}$INSTALL" >&6; }
3776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3777 # It thinks the first close brace ends the variable substitution.
3778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801 { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814 { (exit 1); exit 1; }; };;
3817 ac_save_IFS=$IFS; IFS='-'
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851 { (exit 1); exit 1; }; };;
3854 ac_save_IFS=$IFS; IFS='-'
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3869 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3870 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3871 if test "${ac_cv_path_GREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 # Extract the first word of "grep ggrep" to use in msg output
3875 if test -z "$GREP"; then
3876 set dummy grep ggrep; ac_prog_name=$2
3877 if test "${ac_cv_path_GREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 ac_path_GREP_found=false
3881 # Loop through the user's path and test for each of PROGNAME-LIST
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in grep ggrep; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3891 # Check for GNU ac_path_GREP and select it if it is found.
3892 # Check for GNU $ac_path_GREP
3893 case `"$ac_path_GREP" --version 2>&1` in
3895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 echo 'GREP' >> "conftest.nl"
3905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907 ac_count=`expr $ac_count + 1`
3908 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_GREP="$ac_path_GREP"
3911 ac_path_GREP_max=$ac_count
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 $ac_path_GREP_found && break 3
3930 GREP="$ac_cv_path_GREP"
3931 if test -z "$GREP"; then
3932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3934 { (exit 1); exit 1; }; }
3938 ac_cv_path_GREP=$GREP
3943 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3944 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3945 GREP="$ac_cv_path_GREP"
3948 { echo "$as_me:$LINENO: checking for egrep" >&5
3949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3950 if test "${ac_cv_path_EGREP+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3954 then ac_cv_path_EGREP="$GREP -E"
3956 # Extract the first word of "egrep" to use in msg output
3957 if test -z "$EGREP"; then
3958 set dummy egrep; ac_prog_name=$2
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 ac_path_EGREP_found=false
3963 # Loop through the user's path and test for each of PROGNAME-LIST
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3968 test -z "$as_dir" && as_dir=.
3969 for ac_prog in egrep; do
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3972 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3973 # Check for GNU ac_path_EGREP and select it if it is found.
3974 # Check for GNU $ac_path_EGREP
3975 case `"$ac_path_EGREP" --version 2>&1` in
3977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3980 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3983 cat "conftest.in" "conftest.in" >"conftest.tmp"
3984 mv "conftest.tmp" "conftest.in"
3985 cp "conftest.in" "conftest.nl"
3986 echo 'EGREP' >> "conftest.nl"
3987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3989 ac_count=`expr $ac_count + 1`
3990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3991 # Best one so far, save it but keep looking for a better one
3992 ac_cv_path_EGREP="$ac_path_EGREP"
3993 ac_path_EGREP_max=$ac_count
3995 # 10*(2^10) chars as input seems more than enough
3996 test $ac_count -gt 10 && break
3998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002 $ac_path_EGREP_found && break 3
4012 EGREP="$ac_cv_path_EGREP"
4013 if test -z "$EGREP"; then
4014 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4015 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4016 { (exit 1); exit 1; }; }
4020 ac_cv_path_EGREP=$EGREP
4026 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4027 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4028 EGREP="$ac_cv_path_EGREP"
4031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4033 if test "${ac_cv_header_stdc+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4072 ac_cv_header_stdc=yes
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 ac_cv_header_stdc=no
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 if test $ac_cv_header_stdc = yes; then
4083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094 $EGREP "memchr" >/dev/null 2>&1; then
4097 ac_cv_header_stdc=no
4103 if test $ac_cv_header_stdc = yes; then
4104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "free" >/dev/null 2>&1; then
4118 ac_cv_header_stdc=no
4124 if test $ac_cv_header_stdc = yes; then
4125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4126 if test "$cross_compiling" = yes; then
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4137 #if ((' ' & 0x0FF) == 0x020)
4138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141 # define ISLOWER(c) \
4142 (('a' <= (c) && (c) <= 'i') \
4143 || ('j' <= (c) && (c) <= 'r') \
4144 || ('s' <= (c) && (c) <= 'z'))
4145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4153 for (i = 0; i < 256; i++)
4154 if (XOR (islower (i), ISLOWER (i))
4155 || toupper (i) != TOUPPER (i))
4160 rm -f conftest$ac_exeext
4161 if { (ac_try="$ac_link"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_link") 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4182 echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_cv_header_stdc=no
4189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4197 if test $ac_cv_header_stdc = yes; then
4199 cat >>confdefs.h <<\_ACEOF
4200 #define STDC_HEADERS 1
4205 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4215 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4216 inttypes.h stdint.h unistd.h
4218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 $ac_includes_default
4232 #include <$ac_header>
4234 rm -f conftest.$ac_objext
4235 if { (ac_try="$ac_compile"
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_compile") 2>conftest.er1
4243 grep -v '^ *+' conftest.er1 >conftest.err
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && {
4248 test -z "$ac_c_werror_flag" ||
4249 test ! -s conftest.err
4250 } && test -s conftest.$ac_objext; then
4251 eval "$as_ac_Header=yes"
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 eval "$as_ac_Header=no"
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 ac_res=`eval echo '${'$as_ac_Header'}'`
4262 { echo "$as_me:$LINENO: result: $ac_res" >&5
4263 echo "${ECHO_T}$ac_res" >&6; }
4264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4265 cat >>confdefs.h <<_ACEOF
4266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4274 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4275 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4276 if test "${ac_cv_c_bigendian+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 # See if sys/param.h defines the BYTE_ORDER macro.
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <sys/types.h>
4287 #include <sys/param.h>
4292 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4293 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 # It does; now see whether it defined to BIG_ENDIAN or not.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <sys/types.h>
4326 #include <sys/param.h>
4331 #if BYTE_ORDER != BIG_ENDIAN
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } && {
4353 test -z "$ac_c_werror_flag" ||
4354 test ! -s conftest.err
4355 } && test -s conftest.$ac_objext; then
4356 ac_cv_c_bigendian=yes
4358 echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 ac_cv_c_bigendian=no
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 # It does not; compile a test program.
4370 if test "$cross_compiling" = yes; then
4371 # try to guess the endianness by grepping values into an object file
4372 ac_cv_c_bigendian=unknown
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4380 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4381 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4382 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4383 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4384 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4388 _ascii (); _ebcdic ();
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } && {
4407 test -z "$ac_c_werror_flag" ||
4408 test ! -s conftest.err
4409 } && test -s conftest.$ac_objext; then
4410 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4411 ac_cv_c_bigendian=yes
4413 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4414 if test "$ac_cv_c_bigendian" = unknown; then
4415 ac_cv_c_bigendian=no
4417 # finding both strings is unlikely to happen, but who knows?
4418 ac_cv_c_bigendian=unknown
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 $ac_includes_default
4441 /* Are we little or big endian? From Harbison&Steele. */
4445 char c[sizeof (long int)];
4448 return u.c[sizeof (long int) - 1] == 1;
4454 rm -f conftest$ac_exeext
4455 if { (ac_try="$ac_link"
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_link") 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4465 { (case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_try") 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_c_bigendian=no
4476 echo "$as_me: program exited with status $ac_status" >&5
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4481 ac_cv_c_bigendian=yes
4483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4492 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4493 case $ac_cv_c_bigendian in
4496 cat >>confdefs.h <<\_ACEOF
4497 #define WORDS_BIGENDIAN 1
4503 { { echo "$as_me:$LINENO: error: unknown endianness
4504 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4505 echo "$as_me: error: unknown endianness
4506 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4507 { (exit 1); exit 1; }; } ;;
4510 { echo "$as_me:$LINENO: checking for inline" >&5
4511 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4512 if test "${ac_cv_c_inline+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 for ac_kw in inline __inline__ __inline; do
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4525 static $ac_kw foo_t static_foo () {return 0; }
4526 $ac_kw foo_t foo () {return 0; }
4530 rm -f conftest.$ac_objext
4531 if { (ac_try="$ac_compile"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
4547 ac_cv_c_inline=$ac_kw
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 test "$ac_cv_c_inline" != no && break
4560 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4561 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4564 case $ac_cv_c_inline in
4567 case $ac_cv_c_inline in
4569 *) ac_val=$ac_cv_c_inline;;
4571 cat >>confdefs.h <<_ACEOF
4573 #define inline $ac_val
4579 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4580 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4581 if test "${ac_cv_c_const+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 cat >conftest.$ac_ext <<_ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4594 /* FIXME: Include the comments suggested by Paul. */
4596 /* Ultrix mips cc rejects this. */
4597 typedef int charset[2];
4599 /* SunOS 4.1.1 cc rejects this. */
4600 char const *const *pcpcc;
4602 /* NEC SVR4.0.2 mips cc rejects this. */
4603 struct point {int x, y;};
4604 static struct point const zero = {0,0};
4605 /* AIX XL C 1.02.0.0 rejects this.
4606 It does not let you subtract one const X* pointer from another in
4607 an arm of an if-expression whose if-part is not a constant
4609 const char *g = "string";
4610 pcpcc = &g + (g ? g-g : 0);
4611 /* HPUX 7.0 cc rejects these. */
4613 ppc = (char**) pcpcc;
4614 pcpcc = (char const *const *) ppc;
4615 { /* SCO 3.2v4 cc rejects this. */
4617 char const *s = 0 ? (char *) 0 : (char const *) 0;
4622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4624 const int *foo = &x[0];
4627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4628 typedef const int *iptr;
4632 { /* AIX XL C 1.02.0.0 rejects this saying
4633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4634 struct s { int j; const int *ap[3]; };
4635 struct s *b; b->j = 5;
4637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4641 return !cs[0] && !zero.x;
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_compile") 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && {
4662 test -z "$ac_c_werror_flag" ||
4663 test ! -s conftest.err
4664 } && test -s conftest.$ac_objext; then
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4676 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4677 if test $ac_cv_c_const = no; then
4679 cat >>confdefs.h <<\_ACEOF
4685 { echo "$as_me:$LINENO: checking for unsigned short int" >&5
4686 echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6; }
4687 if test "${ac_cv_type_unsigned_short_int+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 typedef unsigned short int ac__type_new_;
4701 if ((ac__type_new_ *) 0)
4703 if (sizeof (ac__type_new_))
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716 (eval "$ac_compile") 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && {
4723 test -z "$ac_c_werror_flag" ||
4724 test ! -s conftest.err
4725 } && test -s conftest.$ac_objext; then
4726 ac_cv_type_unsigned_short_int=yes
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 ac_cv_type_unsigned_short_int=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
4737 echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6; }
4739 # The cast to long int works around a bug in the HP C Compiler
4740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4742 # This bug is HP SR number 8606223364.
4743 { echo "$as_me:$LINENO: checking size of unsigned short int" >&5
4744 echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6; }
4745 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test "$cross_compiling" = yes; then
4749 # Depending upon the size, compute the lo and hi bounds.
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4757 typedef unsigned short int ac__type_sizeof_;
4761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4768 rm -f conftest.$ac_objext
4769 if { (ac_try="$ac_compile"
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4777 grep -v '^ *+' conftest.er1 >conftest.err
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 typedef unsigned short int ac__type_sizeof_;
4798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4805 rm -f conftest.$ac_objext
4806 if { (ac_try="$ac_compile"
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4822 ac_hi=$ac_mid; break
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_lo=`expr $ac_mid + 1`
4828 if test $ac_lo -le $ac_mid; then
4832 ac_mid=`expr 2 '*' $ac_mid + 1`
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_includes_default
4848 typedef unsigned short int ac__type_sizeof_;
4852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 $ac_includes_default
4885 typedef unsigned short int ac__type_sizeof_;
4889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4913 ac_lo=$ac_mid; break
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ac_hi=`expr '(' $ac_mid ')' - 1`
4919 if test $ac_mid -le $ac_hi; then
4923 ac_mid=`expr 2 '*' $ac_mid`
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 # Binary search between lo and hi bounds.
4940 while test "x$ac_lo" != "x$ac_hi"; do
4941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4949 typedef unsigned short int ac__type_sizeof_;
4953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_compile") 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest.$ac_objext; then
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_lo=`expr '(' $ac_mid ')' + 1`
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
4989 '') if test "$ac_cv_type_unsigned_short_int" = yes; then
4990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
4991 See \`config.log' for more details." >&5
4992 echo "$as_me: error: cannot compute sizeof (unsigned short int)
4993 See \`config.log' for more details." >&2;}
4994 { (exit 77); exit 77; }; }
4996 ac_cv_sizeof_unsigned_short_int=0
5000 cat >conftest.$ac_ext <<_ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5007 typedef unsigned short int ac__type_sizeof_;
5008 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5009 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5016 FILE *f = fopen ("conftest.val", "w");
5019 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5021 long int i = longval ();
5022 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5024 fprintf (f, "%ld\n", i);
5028 unsigned long int i = ulongval ();
5029 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5031 fprintf (f, "%lu\n", i);
5033 return ferror (f) || fclose (f) != 0;
5039 rm -f conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_link") 2>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5050 { (case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_try") 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5059 ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
5061 echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5066 if test "$ac_cv_type_unsigned_short_int" = yes; then
5067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int)
5068 See \`config.log' for more details." >&5
5069 echo "$as_me: error: cannot compute sizeof (unsigned short int)
5070 See \`config.log' for more details." >&2;}
5071 { (exit 77); exit 77; }; }
5073 ac_cv_sizeof_unsigned_short_int=0
5076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5080 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
5081 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
5085 cat >>confdefs.h <<_ACEOF
5086 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
5090 { echo "$as_me:$LINENO: checking for unsigned int" >&5
5091 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
5092 if test "${ac_cv_type_unsigned_int+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 $ac_includes_default
5102 typedef unsigned int ac__type_new_;
5106 if ((ac__type_new_ *) 0)
5108 if (sizeof (ac__type_new_))
5114 rm -f conftest.$ac_objext
5115 if { (ac_try="$ac_compile"
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
5131 ac_cv_type_unsigned_int=yes
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5136 ac_cv_type_unsigned_int=no
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
5142 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
5144 # The cast to long int works around a bug in the HP C Compiler
5145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5147 # This bug is HP SR number 8606223364.
5148 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
5149 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
5150 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 if test "$cross_compiling" = yes; then
5154 # Depending upon the size, compute the lo and hi bounds.
5155 cat >conftest.$ac_ext <<_ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 $ac_includes_default
5162 typedef unsigned int ac__type_sizeof_;
5166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5173 rm -f conftest.$ac_objext
5174 if { (ac_try="$ac_compile"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_compile") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest.$ac_objext; then
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 $ac_includes_default
5199 typedef unsigned int ac__type_sizeof_;
5203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5210 rm -f conftest.$ac_objext
5211 if { (ac_try="$ac_compile"
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217 (eval "$ac_compile") 2>conftest.er1
5219 grep -v '^ *+' conftest.er1 >conftest.err
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } && {
5224 test -z "$ac_c_werror_flag" ||
5225 test ! -s conftest.err
5226 } && test -s conftest.$ac_objext; then
5227 ac_hi=$ac_mid; break
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 ac_lo=`expr $ac_mid + 1`
5233 if test $ac_lo -le $ac_mid; then
5237 ac_mid=`expr 2 '*' $ac_mid + 1`
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 $ac_includes_default
5253 typedef unsigned int ac__type_sizeof_;
5257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5264 rm -f conftest.$ac_objext
5265 if { (ac_try="$ac_compile"
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_compile") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && {
5278 test -z "$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 } && test -s conftest.$ac_objext; then
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 $ac_includes_default
5290 typedef unsigned int ac__type_sizeof_;
5294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5301 rm -f conftest.$ac_objext
5302 if { (ac_try="$ac_compile"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compile") 2>conftest.er1
5310 grep -v '^ *+' conftest.er1 >conftest.err
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && {
5315 test -z "$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5317 } && test -s conftest.$ac_objext; then
5318 ac_lo=$ac_mid; break
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_hi=`expr '(' $ac_mid ')' - 1`
5324 if test $ac_mid -le $ac_hi; then
5328 ac_mid=`expr 2 '*' $ac_mid`
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 # Binary search between lo and hi bounds.
5345 while test "x$ac_lo" != "x$ac_hi"; do
5346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 $ac_includes_default
5354 typedef unsigned int ac__type_sizeof_;
5358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5387 ac_lo=`expr '(' $ac_mid ')' + 1`
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
5394 '') if test "$ac_cv_type_unsigned_int" = yes; then
5395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5396 See \`config.log' for more details." >&5
5397 echo "$as_me: error: cannot compute sizeof (unsigned int)
5398 See \`config.log' for more details." >&2;}
5399 { (exit 77); exit 77; }; }
5401 ac_cv_sizeof_unsigned_int=0
5405 cat >conftest.$ac_ext <<_ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 $ac_includes_default
5412 typedef unsigned int ac__type_sizeof_;
5413 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5414 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5421 FILE *f = fopen ("conftest.val", "w");
5424 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5426 long int i = longval ();
5427 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5429 fprintf (f, "%ld\n", i);
5433 unsigned long int i = ulongval ();
5434 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5436 fprintf (f, "%lu\n", i);
5438 return ferror (f) || fclose (f) != 0;
5444 rm -f conftest$ac_exeext
5445 if { (ac_try="$ac_link"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_link") 2>&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5455 { (case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_try") 2>&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_cv_sizeof_unsigned_int=`cat conftest.val`
5466 echo "$as_me: program exited with status $ac_status" >&5
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5471 if test "$ac_cv_type_unsigned_int" = yes; then
5472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
5473 See \`config.log' for more details." >&5
5474 echo "$as_me: error: cannot compute sizeof (unsigned int)
5475 See \`config.log' for more details." >&2;}
5476 { (exit 77); exit 77; }; }
5478 ac_cv_sizeof_unsigned_int=0
5481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5485 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
5486 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
5490 cat >>confdefs.h <<_ACEOF
5491 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
5495 { echo "$as_me:$LINENO: checking for unsigned long int" >&5
5496 echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6; }
5497 if test "${ac_cv_type_unsigned_long_int+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5507 typedef unsigned long int ac__type_new_;
5511 if ((ac__type_new_ *) 0)
5513 if (sizeof (ac__type_new_))
5519 rm -f conftest.$ac_objext
5520 if { (ac_try="$ac_compile"
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_compile") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest.$ac_objext; then
5536 ac_cv_type_unsigned_long_int=yes
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_cv_type_unsigned_long_int=no
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
5547 echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6; }
5549 # The cast to long int works around a bug in the HP C Compiler
5550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5552 # This bug is HP SR number 8606223364.
5553 { echo "$as_me:$LINENO: checking size of unsigned long int" >&5
5554 echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6; }
5555 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 if test "$cross_compiling" = yes; then
5559 # Depending upon the size, compute the lo and hi bounds.
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 $ac_includes_default
5567 typedef unsigned long int ac__type_sizeof_;
5571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && {
5592 test -z "$ac_c_werror_flag" ||
5593 test ! -s conftest.err
5594 } && test -s conftest.$ac_objext; then
5597 cat >conftest.$ac_ext <<_ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 $ac_includes_default
5604 typedef unsigned long int ac__type_sizeof_;
5608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_hi=$ac_mid; break
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5637 ac_lo=`expr $ac_mid + 1`
5638 if test $ac_lo -le $ac_mid; then
5642 ac_mid=`expr 2 '*' $ac_mid + 1`
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5658 typedef unsigned long int ac__type_sizeof_;
5662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 $ac_includes_default
5695 typedef unsigned long int ac__type_sizeof_;
5699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5706 rm -f conftest.$ac_objext
5707 if { (ac_try="$ac_compile"
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compile") 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } && {
5720 test -z "$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 } && test -s conftest.$ac_objext; then
5723 ac_lo=$ac_mid; break
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_hi=`expr '(' $ac_mid ')' - 1`
5729 if test $ac_mid -le $ac_hi; then
5733 ac_mid=`expr 2 '*' $ac_mid`
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 # Binary search between lo and hi bounds.
5750 while test "x$ac_lo" != "x$ac_hi"; do
5751 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 $ac_includes_default
5759 typedef unsigned long int ac__type_sizeof_;
5763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5770 rm -f conftest.$ac_objext
5771 if { (ac_try="$ac_compile"
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compile") 2>conftest.er1
5779 grep -v '^ *+' conftest.er1 >conftest.err
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && {
5784 test -z "$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5786 } && test -s conftest.$ac_objext; then
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 ac_lo=`expr '(' $ac_mid ')' + 1`
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
5799 '') if test "$ac_cv_type_unsigned_long_int" = yes; then
5800 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
5801 See \`config.log' for more details." >&5
5802 echo "$as_me: error: cannot compute sizeof (unsigned long int)
5803 See \`config.log' for more details." >&2;}
5804 { (exit 77); exit 77; }; }
5806 ac_cv_sizeof_unsigned_long_int=0
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 $ac_includes_default
5817 typedef unsigned long int ac__type_sizeof_;
5818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5826 FILE *f = fopen ("conftest.val", "w");
5829 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5831 long int i = longval ();
5832 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5834 fprintf (f, "%ld\n", i);
5838 unsigned long int i = ulongval ();
5839 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5841 fprintf (f, "%lu\n", i);
5843 return ferror (f) || fclose (f) != 0;
5849 rm -f conftest$ac_exeext
5850 if { (ac_try="$ac_link"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_link") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
5871 echo "$as_me: program exited with status $ac_status" >&5
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5876 if test "$ac_cv_type_unsigned_long_int" = yes; then
5877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int)
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: cannot compute sizeof (unsigned long int)
5880 See \`config.log' for more details." >&2;}
5881 { (exit 77); exit 77; }; }
5883 ac_cv_sizeof_unsigned_long_int=0
5886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5890 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
5891 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
5895 cat >>confdefs.h <<_ACEOF
5896 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
5900 { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
5901 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
5902 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 $ac_includes_default
5912 typedef unsigned long long int ac__type_new_;
5916 if ((ac__type_new_ *) 0)
5918 if (sizeof (ac__type_new_))
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.$ac_objext; then
5941 ac_cv_type_unsigned_long_long_int=yes
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_type_unsigned_long_long_int=no
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
5952 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
5954 # The cast to long int works around a bug in the HP C Compiler
5955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5957 # This bug is HP SR number 8606223364.
5958 { echo "$as_me:$LINENO: checking size of unsigned long long int" >&5
5959 echo $ECHO_N "checking size of unsigned long long int... $ECHO_C" >&6; }
5960 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 if test "$cross_compiling" = yes; then
5964 # Depending upon the size, compute the lo and hi bounds.
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 typedef unsigned long long int ac__type_sizeof_;
5976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5983 rm -f conftest.$ac_objext
5984 if { (ac_try="$ac_compile"
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_compile") 2>conftest.er1
5992 grep -v '^ *+' conftest.er1 >conftest.err
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } && {
5997 test -z "$ac_c_werror_flag" ||
5998 test ! -s conftest.err
5999 } && test -s conftest.$ac_objext; then
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 $ac_includes_default
6009 typedef unsigned long long int ac__type_sizeof_;
6013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6020 rm -f conftest.$ac_objext
6021 if { (ac_try="$ac_compile"
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compile") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.$ac_objext; then
6037 ac_hi=$ac_mid; break
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6042 ac_lo=`expr $ac_mid + 1`
6043 if test $ac_lo -le $ac_mid; then
6047 ac_mid=`expr 2 '*' $ac_mid + 1`
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 $ac_includes_default
6063 typedef unsigned long long int ac__type_sizeof_;
6067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6100 typedef unsigned long long int ac__type_sizeof_;
6104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.$ac_objext; then
6128 ac_lo=$ac_mid; break
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 ac_hi=`expr '(' $ac_mid ')' - 1`
6134 if test $ac_mid -le $ac_hi; then
6138 ac_mid=`expr 2 '*' $ac_mid`
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 # Binary search between lo and hi bounds.
6155 while test "x$ac_lo" != "x$ac_hi"; do
6156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
6164 typedef unsigned long long int ac__type_sizeof_;
6168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compile") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 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 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 ac_lo=`expr '(' $ac_mid ')' + 1`
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 ?*) ac_cv_sizeof_unsigned_long_long_int=$ac_lo;;
6204 '') if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6205 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6206 See \`config.log' for more details." >&5
6207 echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6208 See \`config.log' for more details." >&2;}
6209 { (exit 77); exit 77; }; }
6211 ac_cv_sizeof_unsigned_long_long_int=0
6215 cat >conftest.$ac_ext <<_ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6222 typedef unsigned long long int ac__type_sizeof_;
6223 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6224 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6231 FILE *f = fopen ("conftest.val", "w");
6234 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6236 long int i = longval ();
6237 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6239 fprintf (f, "%ld\n", i);
6243 unsigned long int i = ulongval ();
6244 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6246 fprintf (f, "%lu\n", i);
6248 return ferror (f) || fclose (f) != 0;
6254 rm -f conftest$ac_exeext
6255 if { (ac_try="$ac_link"
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_link") 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_sizeof_unsigned_long_long_int=`cat conftest.val`
6276 echo "$as_me: program exited with status $ac_status" >&5
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6281 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
6282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long int)
6283 See \`config.log' for more details." >&5
6284 echo "$as_me: error: cannot compute sizeof (unsigned long long int)
6285 See \`config.log' for more details." >&2;}
6286 { (exit 77); exit 77; }; }
6288 ac_cv_sizeof_unsigned_long_long_int=0
6291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6295 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
6296 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
6300 cat >>confdefs.h <<_ACEOF
6301 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
6313 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
6315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6329 #define $ac_func innocuous_$ac_func
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below.
6333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 <limits.h> exists even on freestanding compilers. */
6337 # include <limits.h>
6339 # include <assert.h>
6344 /* Override any GCC internal prototype to avoid an error.
6345 Use char because int might match the return type of a GCC
6346 builtin and then its argument prototype would still apply. */
6351 /* The GNU C library defines this for functions which it implements
6352 to always fail with ENOSYS. Some functions are actually named
6353 something starting with __ and the normal name is an alias. */
6354 #if defined __stub_$ac_func || defined __stub___$ac_func
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_link") 2>conftest.er1
6375 grep -v '^ *+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && {
6380 test -z "$ac_c_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest$ac_exeext &&
6383 $as_test_x conftest$ac_exeext; then
6384 eval "$as_ac_var=yes"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 eval "$as_ac_var=no"
6392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6393 conftest$ac_exeext conftest.$ac_ext
6395 ac_res=`eval echo '${'$as_ac_var'}'`
6396 { echo "$as_me:$LINENO: result: $ac_res" >&5
6397 echo "${ECHO_T}$ac_res" >&6; }
6398 if test `eval echo '${'$as_ac_var'}'` = yes; then
6399 cat >>confdefs.h <<_ACEOF
6400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6406 { echo "$as_me:$LINENO: checking for pid_t" >&5
6407 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6408 if test "${ac_cv_type_pid_t+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 cat >conftest.$ac_ext <<_ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6418 typedef pid_t ac__type_new_;
6422 if ((ac__type_new_ *) 0)
6424 if (sizeof (ac__type_new_))
6430 rm -f conftest.$ac_objext
6431 if { (ac_try="$ac_compile"
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_compile") 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && {
6444 test -z "$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6446 } && test -s conftest.$ac_objext; then
6447 ac_cv_type_pid_t=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6458 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6459 if test $ac_cv_type_pid_t = yes; then
6463 cat >>confdefs.h <<_ACEOF
6470 for ac_header in vfork.h
6472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 ac_res=`eval echo '${'$as_ac_Header'}'`
6480 { echo "$as_me:$LINENO: result: $ac_res" >&5
6481 echo "${ECHO_T}$ac_res" >&6; }
6483 # Is the header compilable?
6484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 $ac_includes_default
6493 #include <$ac_header>
6495 rm -f conftest.$ac_objext
6496 if { (ac_try="$ac_compile"
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_compile") 2>conftest.er1
6504 grep -v '^ *+' conftest.er1 >conftest.err
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest.$ac_objext; then
6512 ac_header_compiler=yes
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_header_compiler=no
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6522 echo "${ECHO_T}$ac_header_compiler" >&6; }
6524 # Is the header present?
6525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <$ac_header>
6535 if { (ac_try="$ac_cpp conftest.$ac_ext"
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } >/dev/null && {
6548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6549 test ! -s conftest.err
6551 ac_header_preproc=yes
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_header_preproc=no
6559 rm -f conftest.err conftest.$ac_ext
6560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6561 echo "${ECHO_T}$ac_header_preproc" >&6; }
6563 # So? What about this header?
6564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6570 ac_header_preproc=yes
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6586 ## -------------------------------- ##
6587 ## Report this to wouter@debian.org ##
6588 ## -------------------------------- ##
6590 ) | sed "s/^/$as_me: WARNING: /" >&2
6593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 eval "$as_ac_Header=\$ac_header_preproc"
6600 ac_res=`eval echo '${'$as_ac_Header'}'`
6601 { echo "$as_me:$LINENO: result: $ac_res" >&5
6602 echo "${ECHO_T}$ac_res" >&6; }
6605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 for ac_func in fork vfork
6618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6632 #define $ac_func innocuous_$ac_func
6634 /* System header to define __stub macros and hopefully few prototypes,
6635 which can conflict with char $ac_func (); below.
6636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637 <limits.h> exists even on freestanding compilers. */
6640 # include <limits.h>
6642 # include <assert.h>
6647 /* Override any GCC internal prototype to avoid an error.
6648 Use char because int might match the return type of a GCC
6649 builtin and then its argument prototype would still apply. */
6654 /* The GNU C library defines this for functions which it implements
6655 to always fail with ENOSYS. Some functions are actually named
6656 something starting with __ and the normal name is an alias. */
6657 #if defined __stub_$ac_func || defined __stub___$ac_func
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (ac_try="$ac_link"
6672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6673 *) ac_try_echo=$ac_try;;
6675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6676 (eval "$ac_link") 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest$ac_exeext &&
6686 $as_test_x conftest$ac_exeext; then
6687 eval "$as_ac_var=yes"
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 eval "$as_ac_var=no"
6695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6696 conftest$ac_exeext conftest.$ac_ext
6698 ac_res=`eval echo '${'$as_ac_var'}'`
6699 { echo "$as_me:$LINENO: result: $ac_res" >&5
6700 echo "${ECHO_T}$ac_res" >&6; }
6701 if test `eval echo '${'$as_ac_var'}'` = yes; then
6702 cat >>confdefs.h <<_ACEOF
6703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6709 if test "x$ac_cv_func_fork" = xyes; then
6710 { echo "$as_me:$LINENO: checking for working fork" >&5
6711 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6712 if test "${ac_cv_func_fork_works+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 if test "$cross_compiling" = yes; then
6716 ac_cv_func_fork_works=cross
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 $ac_includes_default
6729 /* By Ruediger Kuhlmann. */
6736 rm -f conftest$ac_exeext
6737 if { (ac_try="$ac_link"
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_link") 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6747 { (case "(($ac_try" in
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_try") 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_cv_func_fork_works=yes
6758 echo "$as_me: program exited with status $ac_status" >&5
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_func_fork_works=no
6765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6770 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6771 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6774 ac_cv_func_fork_works=$ac_cv_func_fork
6776 if test "x$ac_cv_func_fork_works" = xcross; then
6778 *-*-amigaos* | *-*-msdosdjgpp*)
6779 # Override, as these systems have only a dummy fork() stub
6780 ac_cv_func_fork_works=no
6783 ac_cv_func_fork_works=yes
6786 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6787 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6789 ac_cv_func_vfork_works=$ac_cv_func_vfork
6790 if test "x$ac_cv_func_vfork" = xyes; then
6791 { echo "$as_me:$LINENO: checking for working vfork" >&5
6792 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6793 if test "${ac_cv_func_vfork_works+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 if test "$cross_compiling" = yes; then
6797 ac_cv_func_vfork_works=cross
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 /* Thanks to Paul Eggert for this test. */
6806 $ac_includes_default
6807 #include <sys/wait.h>
6811 /* On some sparc systems, changes by the child to local and incoming
6812 argument registers are propagated back to the parent. The compiler
6813 is told about this with #include <vfork.h>, but some compilers
6814 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6815 static variable whose address is put into a register that is
6816 clobbered by the vfork. */
6819 sparc_address_test (int arg)
6821 sparc_address_test (arg) int arg;
6842 pid_t parent = getpid ();
6845 sparc_address_test (0);
6850 /* Here is another test for sparc vfork register problems. This
6851 test uses lots of local variables, at least as many local
6852 variables as main has allocated so far including compiler
6853 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6854 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6855 reuse the register of parent for one of the local variables,
6856 since it will think that parent can't possibly be used any more
6857 in this routine. Assigning to the local variable will thus
6858 munge parent in the parent process. */
6860 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6861 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6862 /* Convince the compiler that p..p7 are live; otherwise, it might
6863 use the same hardware register for all 8 local variables. */
6864 if (p != p1 || p != p2 || p != p3 || p != p4
6865 || p != p5 || p != p6 || p != p7)
6868 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6869 from child file descriptors. If the child closes a descriptor
6870 before it execs or exits, this munges the parent's descriptor
6871 as well. Test for this by closing stdout in the child. */
6872 _exit(close(fileno(stdout)) != 0);
6877 while (wait(&status) != child)
6880 /* Was there some problem with vforking? */
6883 /* Did the child fail? (This shouldn't happen.) */
6886 /* Did the vfork/compiler bug occur? */
6887 || parent != getpid()
6889 /* Did the file descriptor bug occur? */
6890 || fstat(fileno(stdout), &st) != 0
6895 rm -f conftest$ac_exeext
6896 if { (ac_try="$ac_link"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_link") 2>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6906 { (case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_try") 2>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_func_vfork_works=yes
6917 echo "$as_me: program exited with status $ac_status" >&5
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_func_vfork_works=no
6924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6930 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6933 if test "x$ac_cv_func_fork_works" = xcross; then
6934 ac_cv_func_vfork_works=$ac_cv_func_vfork
6935 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6936 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6939 if test "x$ac_cv_func_vfork_works" = xyes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_WORKING_VFORK 1
6947 cat >>confdefs.h <<\_ACEOF
6952 if test "x$ac_cv_func_fork_works" = xyes; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_WORKING_FORK 1
6960 { echo "$as_me:$LINENO: checking for function prototypes" >&5
6961 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
6962 if test "$ac_cv_prog_cc_c89" != no; then
6963 { echo "$as_me:$LINENO: result: yes" >&5
6964 echo "${ECHO_T}yes" >&6; }
6966 cat >>confdefs.h <<\_ACEOF
6967 #define PROTOTYPES 1
6971 cat >>confdefs.h <<\_ACEOF
6972 #define __PROTOTYPES 1
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6980 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
6981 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
6982 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_cv_func_setvbuf_reversed=no
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6994 int (setvbuf) (FILE *, int, char *, size_t);
6999 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (ac_try="$ac_link"
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_link") 2>conftest.er1
7013 grep -v '^ *+' conftest.er1 >conftest.err
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest$ac_exeext &&
7021 $as_test_x conftest$ac_exeext; then
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7030 int (setvbuf) (FILE *, int, char *, size_t);
7035 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (ac_try="$ac_link"
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_link") 2>conftest.er1
7049 grep -v '^ *+' conftest.er1 >conftest.err
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest$ac_exeext &&
7057 $as_test_x conftest$ac_exeext; then
7058 # It compiles and links either way, so it must not be declared
7059 # with a prototype and most likely this is a K&R C compiler.
7061 if test "$cross_compiling" = yes; then
7062 : # Assume setvbuf is not reversed when cross-compiling.
7064 cat >conftest.$ac_ext <<_ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7074 /* This call has the arguments reversed.
7075 A reversed system may check and see that the address of buf
7076 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
7078 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
7081 return 0; /* Non-reversed systems SEGV here. */
7086 rm -f conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7097 { (case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_try") 2>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_cv_func_setvbuf_reversed=yes
7108 echo "$as_me: program exited with status $ac_status" >&5
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7117 ac_cv_func_setvbuf_reversed=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7126 conftest$ac_exeext conftest.$ac_ext
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7135 conftest$ac_exeext conftest.$ac_ext
7137 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
7138 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
7139 if test $ac_cv_func_setvbuf_reversed = yes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define SETVBUF_REVERSED 1
7147 { echo "$as_me:$LINENO: checking whether client should be built" >&5
7148 echo $ECHO_N "checking whether client should be built... $ECHO_C" >&6; }
7150 linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
7151 { echo "$as_me:$LINENO: result: yes" >&5
7152 echo "${ECHO_T}yes" >&6; }
7154 *) { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; } ;;
7157 { echo "$as_me:$LINENO: checking where to find a working nbd.h" >&5
7158 echo $ECHO_N "checking where to find a working nbd.h... $ECHO_C" >&6; }
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7171 #define UNUSED __attribute__((__unused__))
7179 int UNUSED foo=NBD_CMD_DISC
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7202 cat >>confdefs.h <<\_ACEOF
7203 #define NBD_H_LOCAL 1
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7221 #include <linux/nbd.h>
7223 #define UNUSED __attribute__((__unused__))
7231 int UNUSED foo=NBD_CMD_DISC
7236 rm -f conftest.$ac_objext
7237 if { (ac_try="$ac_compile"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_compile") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest.$ac_objext; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define NBD_H_LINUX 1
7258 NBD_H='<linux/nbd.h>'
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 #include <linux/nbd.h>
7271 #define UNUSED __attribute__((__unused__))
7279 int UNUSED foo=NBD_CMD_DISC
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define NBD_H_LINUX 1
7306 NBD_H='<linux/nbd.h>'
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7311 { { echo "$as_me:$LINENO: error: Could not find an nbd.h from 2.6 or above." >&5
7312 echo "$as_me: error: Could not find an nbd.h from 2.6 or above." >&2;}
7313 { (exit 1); exit 1; }; }
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 if test "$NBD_H" = '<linux/nbd.h>'
7330 { 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
7331 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;}
7334 { echo "$as_me:$LINENO: result: $NBD_H" >&5
7335 echo "${ECHO_T}$NBD_H" >&6; }
7336 { echo "$as_me:$LINENO: checking for library containing bind" >&5
7337 echo $ECHO_N "checking for library containing bind... $ECHO_C" >&6; }
7338 if test "${ac_cv_search_bind+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 ac_func_search_save_LIBS=$LIBS
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7349 /* Override any GCC internal prototype to avoid an error.
7350 Use char because int might match the return type of a GCC
7351 builtin and then its argument prototype would still apply. */
7364 for ac_lib in '' socket; do
7365 if test -z "$ac_lib"; then
7366 ac_res="none required"
7369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_link") 2>conftest.er1
7380 grep -v '^ *+' conftest.er1 >conftest.err
7382 cat conftest.err >&5
7383 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 $as_test_x conftest$ac_exeext; then
7389 ac_cv_search_bind=$ac_res
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7399 if test "${ac_cv_search_bind+set}" = set; then
7403 if test "${ac_cv_search_bind+set}" = set; then
7406 ac_cv_search_bind=no
7409 LIBS=$ac_func_search_save_LIBS
7411 { echo "$as_me:$LINENO: result: $ac_cv_search_bind" >&5
7412 echo "${ECHO_T}$ac_cv_search_bind" >&6; }
7413 ac_res=$ac_cv_search_bind
7414 if test "$ac_res" != no; then
7415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7418 { { echo "$as_me:$LINENO: error: Could not find an implementation of the bind() system call" >&5
7419 echo "$as_me: error: Could not find an implementation of the bind() system call" >&2;}
7420 { (exit 1); exit 1; }; }
7423 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7424 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7425 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_func_search_save_LIBS=$LIBS
7429 cat >conftest.$ac_ext <<_ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7436 /* Override any GCC internal prototype to avoid an error.
7437 Use char because int might match the return type of a GCC
7438 builtin and then its argument prototype would still apply. */
7446 return inet_ntoa ();
7451 for ac_lib in '' nsl; do
7452 if test -z "$ac_lib"; then
7453 ac_res="none required"
7456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7458 rm -f conftest.$ac_objext conftest$ac_exeext
7459 if { (ac_try="$ac_link"
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_link") 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && {
7472 test -z "$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7474 } && test -s conftest$ac_exeext &&
7475 $as_test_x conftest$ac_exeext; then
7476 ac_cv_search_inet_ntoa=$ac_res
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7486 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7490 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7493 ac_cv_search_inet_ntoa=no
7496 LIBS=$ac_func_search_save_LIBS
7498 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7499 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7500 ac_res=$ac_cv_search_inet_ntoa
7501 if test "$ac_res" != no; then
7502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7505 { { echo "$as_me:$LINENO: error: Could not find an implementation of the inet_ntoa() system call" >&5
7506 echo "$as_me: error: Could not find an implementation of the inet_ntoa() system call" >&2;}
7507 { (exit 1); exit 1; }; }
7510 { echo "$as_me:$LINENO: checking for library containing daemon" >&5
7511 echo $ECHO_N "checking for library containing daemon... $ECHO_C" >&6; }
7512 if test "${ac_cv_search_daemon+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_func_search_save_LIBS=$LIBS
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7523 /* Override any GCC internal prototype to avoid an error.
7524 Use char because int might match the return type of a GCC
7525 builtin and then its argument prototype would still apply. */
7538 for ac_lib in '' resolv; do
7539 if test -z "$ac_lib"; then
7540 ac_res="none required"
7543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7545 rm -f conftest.$ac_objext conftest$ac_exeext
7546 if { (ac_try="$ac_link"
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_link") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest$ac_exeext &&
7562 $as_test_x conftest$ac_exeext; then
7563 ac_cv_search_daemon=$ac_res
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7573 if test "${ac_cv_search_daemon+set}" = set; then
7577 if test "${ac_cv_search_daemon+set}" = set; then
7580 ac_cv_search_daemon=no
7583 LIBS=$ac_func_search_save_LIBS
7585 { echo "$as_me:$LINENO: result: $ac_cv_search_daemon" >&5
7586 echo "${ECHO_T}$ac_cv_search_daemon" >&6; }
7587 ac_res=$ac_cv_search_daemon
7588 if test "$ac_res" != no; then
7589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7592 { { echo "$as_me:$LINENO: error: Could not find an implementation of the daemon() system call" >&5
7593 echo "$as_me: error: Could not find an implementation of the daemon() system call" >&2;}
7594 { (exit 1); exit 1; }; }
7598 for ac_header in sys/mount.h
7600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <sys/param.h>
7615 #include <$ac_header>
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 eval "$as_ac_Header=yes"
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 eval "$as_ac_Header=no"
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 ac_res=`eval echo '${'$as_ac_Header'}'`
7645 { echo "$as_me:$LINENO: result: $ac_res" >&5
7646 echo "${ECHO_T}$ac_res" >&6; }
7647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7648 cat >>confdefs.h <<_ACEOF
7649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7664 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
7666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_res=`eval echo '${'$as_ac_Header'}'`
7674 { echo "$as_me:$LINENO: result: $ac_res" >&5
7675 echo "${ECHO_T}$ac_res" >&6; }
7677 # Is the header compilable?
7678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7687 #include <$ac_header>
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 ac_header_compiler=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_header_compiler=no
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7716 echo "${ECHO_T}$ac_header_compiler" >&6; }
7718 # Is the header present?
7719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 #include <$ac_header>
7729 if { (ac_try="$ac_cpp conftest.$ac_ext"
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } >/dev/null && {
7742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7745 ac_header_preproc=yes
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_header_preproc=no
7753 rm -f conftest.err conftest.$ac_ext
7754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7755 echo "${ECHO_T}$ac_header_preproc" >&6; }
7757 # So? What about this header?
7758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7764 ac_header_preproc=yes
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7780 ## -------------------------------- ##
7781 ## Report this to wouter@debian.org ##
7782 ## -------------------------------- ##
7784 ) | sed "s/^/$as_me: WARNING: /" >&2
7787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 eval "$as_ac_Header=\$ac_header_preproc"
7794 ac_res=`eval echo '${'$as_ac_Header'}'`
7795 { echo "$as_me:$LINENO: result: $ac_res" >&5
7796 echo "${ECHO_T}$ac_res" >&6; }
7799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7800 cat >>confdefs.h <<_ACEOF
7801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7808 # Check whether --enable-glibtest was given.
7809 if test "${enable_glibtest+set}" = set; then
7810 enableval=$enable_glibtest;
7816 pkg_config_args=glib-2.0
7821 pkg_config_args="$pkg_config_args gmodule-2.0"
7824 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7827 pkg_config_args="$pkg_config_args gobject-2.0"
7830 pkg_config_args="$pkg_config_args gthread-2.0"
7833 pkg_config_args="$pkg_config_args $module-2.0"
7840 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7841 if test -n "$ac_tool_prefix"; then
7842 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7843 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7873 if test -n "$PKG_CONFIG"; then
7874 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7875 echo "${ECHO_T}$PKG_CONFIG" >&6; }
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7883 if test -z "$ac_cv_path_PKG_CONFIG"; then
7884 ac_pt_PKG_CONFIG=$PKG_CONFIG
7885 # Extract the first word of "pkg-config", so it can be a program name with args.
7886 set dummy pkg-config; ac_word=$2
7887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7889 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 case $ac_pt_PKG_CONFIG in
7894 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7916 if test -n "$ac_pt_PKG_CONFIG"; then
7917 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
7918 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
7920 { echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6; }
7924 if test "x$ac_pt_PKG_CONFIG" = x; then
7927 case $cross_compiling:$ac_tool_warned in
7929 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7930 whose name does not start with the host triplet. If you think this
7931 configuration is useful to you, please write to autoconf@gnu.org." >&5
7932 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7933 whose name does not start with the host triplet. If you think this
7934 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7935 ac_tool_warned=yes ;;
7937 PKG_CONFIG=$ac_pt_PKG_CONFIG
7940 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7944 if test -n "$PKG_CONFIG"; then
7945 _pkg_min_version=0.16
7946 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
7947 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
7948 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7949 { echo "$as_me:$LINENO: result: yes" >&5
7950 echo "${ECHO_T}yes" >&6; }
7952 { echo "$as_me:$LINENO: result: no" >&5
7953 echo "${ECHO_T}no" >&6; }
7961 if test "x$PKG_CONFIG" = x ; then
7966 min_glib_version=2.6.0
7967 { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7968 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
7970 if test x$PKG_CONFIG != xno ; then
7971 ## don't try to run the test against uninstalled libtool libs
7972 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7973 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7977 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7984 if test x"$no_glib" = x ; then
7985 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7986 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7987 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7989 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7990 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7991 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7993 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7995 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7997 if test "x$enable_glibtest" = "xyes" ; then
7998 ac_save_CFLAGS="$CFLAGS"
7999 ac_save_LIBS="$LIBS"
8000 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8001 LIBS="$GLIB_LIBS $LIBS"
8003 if test "$cross_compiling" = yes; then
8004 echo $ac_n "cross compiling; assumed OK... $ac_c"
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8020 int major, minor, micro;
8023 system ("touch conf.glibtest");
8025 /* HP/UX 9 (%@#!) writes to sscanf strings */
8026 tmp_version = g_strdup("$min_glib_version");
8027 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8028 printf("%s, bad version string\n", "$min_glib_version");
8032 if ((glib_major_version != $glib_config_major_version) ||
8033 (glib_minor_version != $glib_config_minor_version) ||
8034 (glib_micro_version != $glib_config_micro_version))
8036 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
8037 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8038 glib_major_version, glib_minor_version, glib_micro_version);
8039 printf ("*** was found! If pkg-config was correct, then it is best\n");
8040 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
8041 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8042 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8043 printf("*** required on your system.\n");
8044 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
8045 printf("*** to point to the correct configuration files\n");
8047 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8048 (glib_minor_version != GLIB_MINOR_VERSION) ||
8049 (glib_micro_version != GLIB_MICRO_VERSION))
8051 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8052 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8053 printf("*** library (version %d.%d.%d)\n",
8054 glib_major_version, glib_minor_version, glib_micro_version);
8058 if ((glib_major_version > major) ||
8059 ((glib_major_version == major) && (glib_minor_version > minor)) ||
8060 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8066 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8067 glib_major_version, glib_minor_version, glib_micro_version);
8068 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8069 major, minor, micro);
8070 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8072 printf("*** If you have already installed a sufficiently new version, this error\n");
8073 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
8074 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8075 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
8076 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
8077 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8078 printf("*** so that the correct libraries are found at run-time))\n");
8085 rm -f conftest$ac_exeext
8086 if { (ac_try="$ac_link"
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_link") 2>&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8107 echo "$as_me: program exited with status $ac_status" >&5
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8118 CFLAGS="$ac_save_CFLAGS"
8119 LIBS="$ac_save_LIBS"
8122 if test "x$no_glib" = x ; then
8123 { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
8124 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
8127 { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8129 if test "$PKG_CONFIG" = "no" ; then
8130 echo "*** A new enough version of pkg-config was not found."
8131 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
8133 if test -f conf.glibtest ; then
8136 echo "*** Could not run GLIB test program, checking why..."
8137 ac_save_CFLAGS="$CFLAGS"
8138 ac_save_LIBS="$LIBS"
8139 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8140 LIBS="$LIBS $GLIB_LIBS"
8141 cat >conftest.$ac_ext <<_ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8154 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_link") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest$ac_exeext &&
8176 $as_test_x conftest$ac_exeext; then
8177 echo "*** The test program compiled, but did not run. This usually means"
8178 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8179 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8180 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8181 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8182 echo "*** is required on your system"
8184 echo "*** If you have an old version installed, it is best to remove it, although"
8185 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 echo "*** The test program failed to compile or link. See the file config.log for the"
8191 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext conftest.$ac_ext
8196 CFLAGS="$ac_save_CFLAGS"
8197 LIBS="$ac_save_LIBS"
8205 { { echo "$as_me:$LINENO: error: Missing glib" >&5
8206 echo "$as_me: error: Missing glib" >&2;}
8207 { (exit 1); exit 1; }; }
8216 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8217 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
8218 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 #include <sys/types.h>
8228 #include <sys/wait.h>
8230 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8233 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8241 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8255 grep -v '^ *+' conftest.er1 >conftest.err
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.$ac_objext; then
8263 ac_cv_header_sys_wait_h=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 ac_cv_header_sys_wait_h=no
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8274 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
8275 if test $ac_cv_header_sys_wait_h = yes; then
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_SYS_WAIT_H 1
8283 { echo "$as_me:$LINENO: checking for off_t" >&5
8284 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8285 if test "${ac_cv_type_off_t+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 $ac_includes_default
8295 typedef off_t ac__type_new_;
8299 if ((ac__type_new_ *) 0)
8301 if (sizeof (ac__type_new_))
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_cv_type_off_t=yes
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8335 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8336 if test $ac_cv_type_off_t = yes; then
8340 cat >>confdefs.h <<_ACEOF
8341 #define off_t long int
8346 { echo "$as_me:$LINENO: checking for pid_t" >&5
8347 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8348 if test "${ac_cv_type_pid_t+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 typedef pid_t ac__type_new_;
8362 if ((ac__type_new_ *) 0)
8364 if (sizeof (ac__type_new_))
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1 >conftest.err
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.$ac_objext; then
8387 ac_cv_type_pid_t=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8398 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8399 if test $ac_cv_type_pid_t = yes; then
8403 cat >>confdefs.h <<_ACEOF
8410 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
8412 ac_config_headers="$ac_config_headers config.h"
8414 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5"
8416 cat >confcache <<\_ACEOF
8417 # This file is a shell script that caches the results of configure
8418 # tests run on this system so they can be shared between configure
8419 # scripts and configure runs, see configure's option --config-cache.
8420 # It is not useful on other systems. If it contains results you don't
8421 # want to keep, you may remove or edit it.
8423 # config.status only pays attention to the cache file if you give it
8424 # the --recheck option to rerun configure.
8426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8432 # The following way of writing the cache mishandles newlines in values,
8433 # but we know of no workaround that is simple, portable, and efficient.
8434 # So, we kill variables containing newlines.
8435 # Ultrix sh set writes to stderr and can't be redirected directly,
8436 # and sets the high bit in the cache file unless we assign to the vars.
8438 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8439 eval ac_val=\$$ac_var
8443 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8444 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8447 _ | IFS | as_nl) ;; #(
8448 *) $as_unset $ac_var ;;
8454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8455 *${as_nl}ac_space=\ *)
8456 # `set' does not quote correctly, so add quotes (double-quote
8457 # substitution turns \\\\ into \\, and sed turns \\ into \).
8460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8463 # `set' quotes correctly as required by POSIX, so do not add quotes.
8464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8477 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8478 if test -w "$cache_file"; then
8479 test "x$cache_file" != "x/dev/null" &&
8480 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8481 echo "$as_me: updating cache $cache_file" >&6;}
8482 cat confcache >$cache_file
8484 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8485 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8491 # Let make expand exec_prefix.
8492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8494 DEFS=-DHAVE_CONFIG_H
8498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8499 # 1. Remove the extension, and $U if already installed.
8500 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8501 ac_i=`echo "$ac_i" | sed "$ac_script"`
8502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8503 # will be set to the directory where LIBOBJS objects are built.
8504 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8505 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8509 LTLIBOBJS=$ac_ltlibobjs
8512 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8513 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8514 Usually this means the macro was only invoked conditionally." >&5
8515 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8516 Usually this means the macro was only invoked conditionally." >&2;}
8517 { (exit 1); exit 1; }; }
8519 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8520 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8521 Usually this means the macro was only invoked conditionally." >&5
8522 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8523 Usually this means the macro was only invoked conditionally." >&2;}
8524 { (exit 1); exit 1; }; }
8526 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8527 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8528 Usually this means the macro was only invoked conditionally." >&5
8529 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8530 Usually this means the macro was only invoked conditionally." >&2;}
8531 { (exit 1); exit 1; }; }
8534 : ${CONFIG_STATUS=./config.status}
8535 ac_clean_files_save=$ac_clean_files
8536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8537 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8538 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8539 cat >$CONFIG_STATUS <<_ACEOF
8541 # Generated by $as_me.
8542 # Run this file to recreate the current configuration.
8543 # Compiler output produced by configure, useful for debugging
8544 # configure, is in config.log if it exists.
8549 SHELL=\${CONFIG_SHELL-$SHELL}
8552 cat >>$CONFIG_STATUS <<\_ACEOF
8553 ## --------------------- ##
8554 ## M4sh Initialization. ##
8555 ## --------------------- ##
8557 # Be more Bourne compatible
8558 DUALCASE=1; export DUALCASE # for MKS sh
8559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8562 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8563 # is contrary to our usage. Disable this feature.
8564 alias -g '${1+"$@"}'='"$@"'
8565 setopt NO_GLOB_SUBST
8567 case `(set -o) 2>/dev/null` in
8568 *posix*) set -o posix ;;
8577 # Avoid depending upon Character Ranges.
8578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8581 as_cr_digits='0123456789'
8582 as_cr_alnum=$as_cr_Letters$as_cr_digits
8584 # The user is always right.
8585 if test "${PATH_SEPARATOR+set}" != set; then
8586 echo "#! /bin/sh" >conf$$.sh
8587 echo "exit 0" >>conf$$.sh
8589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8597 # Support unset when possible.
8598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8606 # We need space, tab and new line, in precisely that order. Quoting is
8607 # there to prevent editors from complaining about space-tab.
8608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8609 # splitting by setting IFS to empty value.)
8614 # Find who we are. Look in the path if we contain no directory separator.
8616 *[\\/]* ) as_myself=$0 ;;
8617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 test -z "$as_dir" && as_dir=.
8622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8628 # We did not find ourselves, most probably we were run as `sh COMMAND'
8629 # in which case we are not to be found in the path.
8630 if test "x$as_myself" = x; then
8633 if test ! -f "$as_myself"; then
8634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8635 { (exit 1); exit 1; }
8638 # Work around bugs in pre-3.0 UWIN ksh.
8639 for as_var in ENV MAIL MAILPATH
8640 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8650 LC_TELEPHONE LC_TIME
8652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8653 eval $as_var=C; export $as_var
8655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8659 # Required to use basename.
8660 if expr a : '\(a\)' >/dev/null 2>&1 &&
8661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8668 as_basename=basename
8674 # Name of the executable.
8675 as_me=`$as_basename -- "$0" ||
8676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8677 X"$0" : 'X\(//\)$' \| \
8678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8680 sed '/^.*\/\([^/][^/]*\)\/*$/{
8701 test "x$as_lineno_1" != "x$as_lineno_2" &&
8702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8705 # uniformly replaced by the line number. The first 'sed' inserts a
8706 # line-number line after each line using $LINENO; the second 'sed'
8707 # does the real work. The second script uses 'N' to pair each
8708 # line-number line with the line containing $LINENO, and appends
8709 # trailing '-' during substitution so that $LINENO is not a special
8711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8712 # scripts with optimization help from Paolo Bonzini. Blame Lee
8713 # E. McMahon (1931-1989) for sed's syntax. :-)
8725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8729 chmod +x "$as_me.lineno" ||
8730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8731 { (exit 1); exit 1; }; }
8733 # Don't try to exec as it changes $[0], causing all sort of problems
8734 # (the dirname of $[0] is not the place where we might find the
8735 # original and so on. Autoconf is especially sensitive to this).
8737 # Exit status is that of the last command.
8742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8748 ECHO_C= ECHO_N= ECHO_T=
8751 case `echo 'x\c'` in
8752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8759 if expr a : '\(a\)' >/dev/null 2>&1 &&
8760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8766 rm -f conf$$ conf$$.exe conf$$.file
8767 if test -d conf$$.dir; then
8768 rm -f conf$$.dir/conf$$.file
8774 if ln -s conf$$.file conf$$ 2>/dev/null; then
8776 # ... but there are two gotchas:
8777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8779 # In both cases, we have to default to `cp -p'.
8780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8782 elif ln conf$$.file conf$$ 2>/dev/null; then
8787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8788 rmdir conf$$.dir 2>/dev/null
8790 if mkdir -p . 2>/dev/null; then
8793 test -d ./-p && rmdir ./-p
8797 if test -x / >/dev/null 2>&1; then
8800 if ls -dL / >/dev/null 2>&1; then
8807 if test -d "$1"; then
8813 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8814 ???[sx]*):;;*)false;;esac;fi
8818 as_executable_p=$as_test_x
8820 # Sed expression to map a string onto a valid CPP name.
8821 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8823 # Sed expression to map a string onto a valid variable name.
8824 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8829 # Save the log message, to keep $[0] and so on meaningful, and to
8830 # report actual input values of CONFIG_FILES etc. instead of their
8831 # values after options handling.
8833 This file was extended by nbd $as_me SVN, which was
8834 generated by GNU Autoconf 2.61. Invocation command line was
8836 CONFIG_FILES = $CONFIG_FILES
8837 CONFIG_HEADERS = $CONFIG_HEADERS
8838 CONFIG_LINKS = $CONFIG_LINKS
8839 CONFIG_COMMANDS = $CONFIG_COMMANDS
8842 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8847 cat >>$CONFIG_STATUS <<_ACEOF
8848 # Files that config.status was made for.
8849 config_files="$ac_config_files"
8850 config_headers="$ac_config_headers"
8851 config_commands="$ac_config_commands"
8855 cat >>$CONFIG_STATUS <<\_ACEOF
8857 \`$as_me' instantiates files from templates according to the
8858 current configuration.
8860 Usage: $0 [OPTIONS] [FILE]...
8862 -h, --help print this help, then exit
8863 -V, --version print version number and configuration settings, then exit
8864 -q, --quiet do not print progress messages
8865 -d, --debug don't remove temporary files
8866 --recheck update $as_me by reconfiguring in the same conditions
8867 --file=FILE[:TEMPLATE]
8868 instantiate the configuration file FILE
8869 --header=FILE[:TEMPLATE]
8870 instantiate the configuration header FILE
8872 Configuration files:
8875 Configuration headers:
8878 Configuration commands:
8881 Report bugs to <bug-autoconf@gnu.org>."
8884 cat >>$CONFIG_STATUS <<_ACEOF
8886 nbd config.status SVN
8887 configured by $0, generated by GNU Autoconf 2.61,
8888 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8890 Copyright (C) 2006 Free Software Foundation, Inc.
8891 This config.status script is free software; the Free Software Foundation
8892 gives unlimited permission to copy, distribute and modify it."
8900 cat >>$CONFIG_STATUS <<\_ACEOF
8901 # If no file are specified by the user, then we need to provide default
8902 # value. By we need to know if files were specified by the user.
8908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8920 # Handling of the options.
8921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8924 echo "$ac_cs_version"; exit ;;
8925 --debug | --debu | --deb | --de | --d | -d )
8927 --file | --fil | --fi | --f )
8929 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8930 ac_need_defaults=false;;
8931 --header | --heade | --head | --hea )
8933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8934 ac_need_defaults=false;;
8936 # Conflict between --help and --header
8937 { echo "$as_me: error: ambiguous option: $1
8938 Try \`$0 --help' for more information." >&2
8939 { (exit 1); exit 1; }; };;
8940 --help | --hel | -h )
8941 echo "$ac_cs_usage"; exit ;;
8942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8947 -*) { echo "$as_me: error: unrecognized option: $1
8948 Try \`$0 --help' for more information." >&2
8949 { (exit 1); exit 1; }; } ;;
8951 *) ac_config_targets="$ac_config_targets $1"
8952 ac_need_defaults=false ;;
8958 ac_configure_extra_args=
8960 if $ac_cs_silent; then
8962 ac_configure_extra_args="$ac_configure_extra_args --silent"
8966 cat >>$CONFIG_STATUS <<_ACEOF
8967 if \$ac_cs_recheck; then
8968 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8971 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8975 cat >>$CONFIG_STATUS <<\_ACEOF
8979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8980 ## Running $as_me. ##
8986 cat >>$CONFIG_STATUS <<_ACEOF
8990 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8994 cat >>$CONFIG_STATUS <<\_ACEOF
8996 # Handling of arguments.
8997 for ac_config_target in $ac_config_targets
8999 case $ac_config_target in
9000 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9001 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9003 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
9004 "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
9005 "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
9007 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9008 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9009 { (exit 1); exit 1; }; };;
9014 # If the user did not use the arguments to specify the items to instantiate,
9015 # then the envvar interface is used. Set only those that are not.
9016 # We use the long form for the default assignment because of an extremely
9017 # bizarre bug on SunOS 4.1.3.
9018 if $ac_need_defaults; then
9019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9024 # Have a temporary directory for convenience. Make it in the build tree
9025 # simply because there is no reason against having it here, and in addition,
9026 # creating and moving files from /tmp can sometimes cause problems.
9027 # Hook for its removal unless debugging.
9028 # Note that there is a small window in which the directory will not be cleaned:
9029 # after its creation but before its name has been assigned to `$tmp'.
9033 trap 'exit_status=$?
9034 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9036 trap '{ (exit 1); exit 1; }' 1 2 13 15
9038 # Create a (secure) tmp directory for tmp files.
9041 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9042 test -n "$tmp" && test -d "$tmp"
9045 tmp=./conf$$-$RANDOM
9046 (umask 077 && mkdir "$tmp")
9049 echo "$me: cannot create a temporary directory in ." >&2
9050 { (exit 1); exit 1; }
9054 # Set up the sed scripts for CONFIG_FILES section.
9057 # No need to generate the scripts if there are no CONFIG_FILES.
9058 # This happens for instance when ./config.status config.h
9059 if test -n "$CONFIG_FILES"; then
9066 for ac_last_try in false false false false false :; do
9067 cat >conf$$subs.sed <<_ACEOF
9068 SHELL!$SHELL$ac_delim
9069 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9070 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9071 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9072 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9073 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9074 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9075 exec_prefix!$exec_prefix$ac_delim
9076 prefix!$prefix$ac_delim
9077 program_transform_name!$program_transform_name$ac_delim
9078 bindir!$bindir$ac_delim
9079 sbindir!$sbindir$ac_delim
9080 libexecdir!$libexecdir$ac_delim
9081 datarootdir!$datarootdir$ac_delim
9082 datadir!$datadir$ac_delim
9083 sysconfdir!$sysconfdir$ac_delim
9084 sharedstatedir!$sharedstatedir$ac_delim
9085 localstatedir!$localstatedir$ac_delim
9086 includedir!$includedir$ac_delim
9087 oldincludedir!$oldincludedir$ac_delim
9088 docdir!$docdir$ac_delim
9089 infodir!$infodir$ac_delim
9090 htmldir!$htmldir$ac_delim
9091 dvidir!$dvidir$ac_delim
9092 pdfdir!$pdfdir$ac_delim
9093 psdir!$psdir$ac_delim
9094 libdir!$libdir$ac_delim
9095 localedir!$localedir$ac_delim
9096 mandir!$mandir$ac_delim
9098 ECHO_C!$ECHO_C$ac_delim
9099 ECHO_N!$ECHO_N$ac_delim
9100 ECHO_T!$ECHO_T$ac_delim
9102 build_alias!$build_alias$ac_delim
9103 host_alias!$host_alias$ac_delim
9104 target_alias!$target_alias$ac_delim
9105 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9106 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9107 INSTALL_DATA!$INSTALL_DATA$ac_delim
9108 am__isrc!$am__isrc$ac_delim
9109 CYGPATH_W!$CYGPATH_W$ac_delim
9110 PACKAGE!$PACKAGE$ac_delim
9111 VERSION!$VERSION$ac_delim
9112 ACLOCAL!$ACLOCAL$ac_delim
9113 AUTOCONF!$AUTOCONF$ac_delim
9114 AUTOMAKE!$AUTOMAKE$ac_delim
9115 AUTOHEADER!$AUTOHEADER$ac_delim
9116 MAKEINFO!$MAKEINFO$ac_delim
9117 install_sh!$install_sh$ac_delim
9118 STRIP!$STRIP$ac_delim
9119 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9120 mkdir_p!$mkdir_p$ac_delim
9122 SET_MAKE!$SET_MAKE$ac_delim
9123 am__leading_dot!$am__leading_dot$ac_delim
9124 AMTAR!$AMTAR$ac_delim
9125 am__tar!$am__tar$ac_delim
9126 am__untar!$am__untar$ac_delim
9127 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
9128 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
9129 MAINT!$MAINT$ac_delim
9131 CFLAGS!$CFLAGS$ac_delim
9132 LDFLAGS!$LDFLAGS$ac_delim
9133 CPPFLAGS!$CPPFLAGS$ac_delim
9134 ac_ct_CC!$ac_ct_CC$ac_delim
9135 EXEEXT!$EXEEXT$ac_delim
9136 OBJEXT!$OBJEXT$ac_delim
9137 DEPDIR!$DEPDIR$ac_delim
9138 am__include!$am__include$ac_delim
9139 am__quote!$am__quote$ac_delim
9140 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9141 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9142 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9143 CCDEPMODE!$CCDEPMODE$ac_delim
9144 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9145 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9147 build!$build$ac_delim
9148 build_cpu!$build_cpu$ac_delim
9149 build_vendor!$build_vendor$ac_delim
9150 build_os!$build_os$ac_delim
9152 host_cpu!$host_cpu$ac_delim
9153 host_vendor!$host_vendor$ac_delim
9154 host_os!$host_os$ac_delim
9156 EGREP!$EGREP$ac_delim
9157 PKG_CONFIG!$PKG_CONFIG$ac_delim
9158 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
9159 GLIB_LIBS!$GLIB_LIBS$ac_delim
9160 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
9161 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
9162 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
9163 sbin_PROGRAMS!$sbin_PROGRAMS$ac_delim
9164 nbd_server_CPPFLAGS!$nbd_server_CPPFLAGS$ac_delim
9167 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9169 elif $ac_last_try; then
9170 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9171 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9172 { (exit 1); exit 1; }; }
9174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9178 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9179 if test -n "$ac_eof"; then
9180 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9181 ac_eof=`expr $ac_eof + 1`
9184 cat >>$CONFIG_STATUS <<_ACEOF
9185 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9190 s/^/s,@/; s/!/@,|#_!!_#|/
9193 s/'"$ac_delim"'$/,g/; t
9195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9196 ' >>$CONFIG_STATUS <conf$$subs.sed
9197 rm -f conf$$subs.sed
9198 cat >>$CONFIG_STATUS <<_ACEOF
9204 for ac_last_try in false false false false false :; do
9205 cat >conf$$subs.sed <<_ACEOF
9206 LIBOBJS!$LIBOBJS$ac_delim
9207 LTLIBOBJS!$LTLIBOBJS$ac_delim
9210 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
9212 elif $ac_last_try; then
9213 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9214 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9215 { (exit 1); exit 1; }; }
9217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9221 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9222 if test -n "$ac_eof"; then
9223 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9224 ac_eof=`expr $ac_eof + 1`
9227 cat >>$CONFIG_STATUS <<_ACEOF
9228 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9232 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9233 s/^/s,@/; s/!/@,|#_!!_#|/
9236 s/'"$ac_delim"'$/,g/; t
9238 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9239 ' >>$CONFIG_STATUS <conf$$subs.sed
9240 rm -f conf$$subs.sed
9241 cat >>$CONFIG_STATUS <<_ACEOF
9248 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9249 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9250 # trailing colons and then remove the whole line if VPATH becomes empty
9251 # (actually we leave an empty line to preserve line numbers).
9252 if test "x$srcdir" = x.; then
9253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9257 s/^\([^=]*=[ ]*\):*/\1/
9263 cat >>$CONFIG_STATUS <<\_ACEOF
9264 fi # test -n "$CONFIG_FILES"
9267 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9270 :[FHLC]) ac_mode=$ac_tag; continue;;
9272 case $ac_mode$ac_tag in
9274 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9275 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9276 { (exit 1); exit 1; }; };;
9277 :[FH]-) ac_tag=-:-;;
9278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9295 -) ac_f="$tmp/stdin";;
9296 *) # Look for the file first in the build tree, then in the source tree
9297 # (if the path is not absolute). The absolute path cannot be DOS-style,
9298 # because $ac_f cannot contain `:'.
9302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9304 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9305 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9306 { (exit 1); exit 1; }; };;
9308 ac_file_inputs="$ac_file_inputs $ac_f"
9311 # Let's still pretend it is `configure' which instantiates (i.e., don't
9312 # use $as_me), people would be surprised to read:
9313 # /* config.h. Generated by config.status. */
9314 configure_input="Generated from "`IFS=:
9315 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9316 if test x"$ac_file" != x-; then
9317 configure_input="$ac_file. $configure_input"
9318 { echo "$as_me:$LINENO: creating $ac_file" >&5
9319 echo "$as_me: creating $ac_file" >&6;}
9323 *:-:* | *:-) cat >"$tmp/stdin";;
9328 ac_dir=`$as_dirname -- "$ac_file" ||
9329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9330 X"$ac_file" : 'X\(//\)[^/]' \| \
9331 X"$ac_file" : 'X\(//\)$' \| \
9332 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9353 -*) as_dir=./$as_dir;;
9355 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9359 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9360 *) as_qdir=$as_dir;;
9362 as_dirs="'$as_qdir' $as_dirs"
9363 as_dir=`$as_dirname -- "$as_dir" ||
9364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9365 X"$as_dir" : 'X\(//\)[^/]' \| \
9366 X"$as_dir" : 'X\(//\)$' \| \
9367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9386 test -d "$as_dir" && break
9388 test -z "$as_dirs" || eval "mkdir $as_dirs"
9389 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9390 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9391 { (exit 1); exit 1; }; }; }
9395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9398 # A ".." for each directory in $ac_dir_suffix.
9399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9400 case $ac_top_builddir_sub in
9401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9405 ac_abs_top_builddir=$ac_pwd
9406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9407 # for backward compatibility:
9408 ac_top_builddir=$ac_top_build_prefix
9411 .) # We are building in place.
9413 ac_top_srcdir=$ac_top_builddir_sub
9414 ac_abs_top_srcdir=$ac_pwd ;;
9415 [\\/]* | ?:[\\/]* ) # Absolute name.
9416 ac_srcdir=$srcdir$ac_dir_suffix;
9417 ac_top_srcdir=$srcdir
9418 ac_abs_top_srcdir=$srcdir ;;
9420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9421 ac_top_srcdir=$ac_top_build_prefix$srcdir
9422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9434 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9435 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9439 [\\/$]* | ?:[\\/]* ) ;;
9440 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9444 cat >>$CONFIG_STATUS <<\_ACEOF
9445 # If the template does not know about datarootdir, expand it.
9446 # FIXME: This hack should be removed a few years after 2.60.
9447 ac_datarootdir_hack=; ac_datarootdir_seen=
9449 case `sed -n '/datarootdir/ {
9458 ' $ac_file_inputs` in
9459 *datarootdir*) ac_datarootdir_seen=yes;;
9460 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9461 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9462 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9464 cat >>$CONFIG_STATUS <<_ACEOF
9465 ac_datarootdir_hack='
9466 s&@datadir@&$datadir&g
9467 s&@docdir@&$docdir&g
9468 s&@infodir@&$infodir&g
9469 s&@localedir@&$localedir&g
9470 s&@mandir@&$mandir&g
9471 s&\\\${datarootdir}&$datarootdir&g' ;;
9475 # Neutralize VPATH when `$srcdir' = `.'.
9476 # Shell code in configure.ac might set extrasub.
9477 # FIXME: do we really want to maintain this feature?
9478 cat >>$CONFIG_STATUS <<_ACEOF
9482 cat >>$CONFIG_STATUS <<\_ACEOF
9484 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9485 s&@configure_input@&$configure_input&;t t
9486 s&@top_builddir@&$ac_top_builddir_sub&;t t
9487 s&@srcdir@&$ac_srcdir&;t t
9488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9489 s&@top_srcdir@&$ac_top_srcdir&;t t
9490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9491 s&@builddir@&$ac_builddir&;t t
9492 s&@abs_builddir@&$ac_abs_builddir&;t t
9493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9494 s&@INSTALL@&$ac_INSTALL&;t t
9495 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9496 $ac_datarootdir_hack
9497 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9499 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9500 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9501 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9502 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9503 which seems to be undefined. Please make sure it is defined." >&5
9504 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9505 which seems to be undefined. Please make sure it is defined." >&2;}
9509 -) cat "$tmp/out"; rm -f "$tmp/out";;
9510 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9519 # Transform confdefs.h into a sed script `conftest.defines', that
9520 # substitutes the proper values into config.h.in to produce config.h.
9521 rm -f conftest.defines conftest.tail
9522 # First, append a space to every undef/define line, to ease matching.
9523 echo 's/$/ /' >conftest.defines
9524 # Then, protect against being on the right side of a sed subst, or in
9525 # an unquoted here document, in config.status. If some macros were
9526 # called several times there might be several #defines for the same
9527 # symbol, which is useless. But do not sort them, since the last
9528 # AC_DEFINE must be honored.
9529 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9530 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9531 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9532 # PARAMS is the parameter list in the macro definition--in most cases, it's
9533 # just an empty string.
9534 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9535 ac_dB='\\)[ (].*,\\1define\\2'
9543 s/^[ ]*#[ ]*define[ ][ ]*//
9548 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9549 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9550 ' >>conftest.defines
9552 # Remove the space that was appended to ease matching.
9553 # Then replace #undef with comments. This is necessary, for
9554 # example, in the case of _POSIX_SOURCE, which is predefined and required
9555 # on some systems where configure will not decide to define it.
9556 # (The regexp can be short, since the line contains either #define or #undef.)
9558 s,^[ #]*u.*,/* & */,' >>conftest.defines
9560 # Break up conftest.defines:
9563 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9564 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9565 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9567 ac_in='$ac_file_inputs'
9568 ac_out='"$tmp/out1"'
9569 ac_nxt='"$tmp/out2"'
9573 # Write a here document:
9574 cat >>$CONFIG_STATUS <<_ACEOF
9575 # First, check the format of the line:
9576 cat >"\$tmp/defines.sed" <<\\CEOF
9577 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9578 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9582 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9584 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9585 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9586 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9587 grep . conftest.tail >/dev/null || break
9588 rm -f conftest.defines
9589 mv conftest.tail conftest.defines
9591 rm -f conftest.defines conftest.tail
9593 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9594 cat >>$CONFIG_STATUS <<\_ACEOF
9595 if test x"$ac_file" != x-; then
9596 echo "/* $configure_input */" >"$tmp/config.h"
9597 cat "$ac_result" >>"$tmp/config.h"
9598 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9599 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9600 echo "$as_me: $ac_file is unchanged" >&6;}
9603 mv "$tmp/config.h" $ac_file
9606 echo "/* $configure_input */"
9610 # Compute $ac_file's index in $config_headers.
9613 for _am_header in $config_headers :; do
9615 $_am_arg | $_am_arg:* )
9618 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9621 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9622 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9623 X"$_am_arg" : 'X\(//\)[^/]' \| \
9624 X"$_am_arg" : 'X\(//\)$' \| \
9625 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9643 s/.*/./; q'`/stamp-h$_am_stamp_count
9646 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9647 echo "$as_me: executing $ac_file commands" >&6;}
9652 case $ac_file$ac_mode in
9653 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9654 # Strip MF so we end up with the name of the file.
9655 mf=`echo "$mf" | sed -e 's/:.*$//'`
9656 # Check whether this is an Automake generated Makefile or not.
9657 # We used to match only the files named `Makefile.in', but
9658 # some people rename them; so instead we look at the file content.
9659 # Grep'ing the first line is not enough: some people post-process
9660 # each Makefile.in and add a new line on top of each file to say so.
9661 # Grep'ing the whole file is not good either: AIX grep has a line
9662 # limit of 2048, but all sed's we know have understand at least 4000.
9663 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9664 dirpart=`$as_dirname -- "$mf" ||
9665 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9666 X"$mf" : 'X\(//\)[^/]' \| \
9667 X"$mf" : 'X\(//\)$' \| \
9668 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9690 # Extract the definition of DEPDIR, am__include, and am__quote
9691 # from the Makefile without running `make'.
9692 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9693 test -z "$DEPDIR" && continue
9694 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9695 test -z "am__include" && continue
9696 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9697 # When using ansi2knr, U may be empty or an underscore; expand it
9698 U=`sed -n 's/^U = //p' < "$mf"`
9699 # Find all dependency output files, they are included files with
9700 # $(DEPDIR) in their names. We invoke sed twice because it is the
9701 # simplest approach to changing $(DEPDIR) to its actual value in the
9703 for file in `sed -n "
9704 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9705 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9706 # Make sure the directory exists.
9707 test -f "$dirpart/$file" && continue
9708 fdir=`$as_dirname -- "$file" ||
9709 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9710 X"$file" : 'X\(//\)[^/]' \| \
9711 X"$file" : 'X\(//\)$' \| \
9712 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9731 { as_dir=$dirpart/$fdir
9733 -*) as_dir=./$as_dir;;
9735 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9739 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9740 *) as_qdir=$as_dir;;
9742 as_dirs="'$as_qdir' $as_dirs"
9743 as_dir=`$as_dirname -- "$as_dir" ||
9744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9745 X"$as_dir" : 'X\(//\)[^/]' \| \
9746 X"$as_dir" : 'X\(//\)$' \| \
9747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9766 test -d "$as_dir" && break
9768 test -z "$as_dirs" || eval "mkdir $as_dirs"
9769 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9770 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9771 { (exit 1); exit 1; }; }; }
9772 # echo "creating $dirpart/$file"
9773 echo '# dummy' > "$dirpart/$file"
9782 { (exit 0); exit 0; }
9784 chmod +x $CONFIG_STATUS
9785 ac_clean_files=$ac_clean_files_save
9788 # configure is writing to config.log, and then calls config.status.
9789 # config.status does its own redirection, appending to config.log.
9790 # Unfortunately, on DOS this fails, as config.log is still kept open
9791 # by configure, so config.status won't be able to write to it; its
9792 # output is simply discarded. So we exec the FD to /dev/null,
9793 # effectively closing config.log, so it can be properly (re)opened and
9794 # appended to by config.status. When coming back to configure, we
9795 # need to make the FD available again.
9796 if test "$no_create" != yes; then
9798 ac_config_status_args=
9799 test "$silent" = yes &&
9800 ac_config_status_args="$ac_config_status_args --quiet"
9802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9805 # would make configure fail if this is the last instruction.
9806 $ac_cs_success || { (exit 1); exit 1; }