2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for nbd 2.9.13.
5 # Report bugs to <wouter@debian.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and wouter@debian.org
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
551 PACKAGE_TARNAME='nbd'
552 PACKAGE_VERSION='2.9.13'
553 PACKAGE_STRING='nbd 2.9.13'
554 PACKAGE_BUGREPORT='wouter@debian.org'
557 # Factoring default headers for most tests.
558 ac_includes_default="\
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
570 # ifdef HAVE_STDLIB_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
593 ac_subst_vars='LTLIBOBJS
631 MAINTAINER_MODE_FALSE
641 INSTALL_STRIP_PROGRAM
683 program_transform_name
696 enable_option_checking
697 enable_maintainer_mode
702 enable_dependency_tracking
705 ac_precious_vars='build_alias
717 # Initialize some variables set by options.
719 ac_init_version=false
720 ac_unrecognized_opts=
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
731 program_transform_name=s,x,x,
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756 infodir='${datarootdir}/info'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
805 cache_file=config.cache ;;
807 -datadir | --datadir | --datadi | --datad)
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
819 -disable-* | --disable-*)
820 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823 as_fn_error "invalid feature name: $ac_useropt"
824 ac_useropt_orig=$ac_useropt
825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
831 ac_unrecognized_sep=', ';;
833 eval enable_$ac_useropt=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 -enable-* | --enable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
859 eval enable_$ac_useropt=\$ac_optarg ;;
861 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863 | --exec | --exe | --ex)
864 ac_prev=exec_prefix ;;
865 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867 | --exec=* | --exe=* | --ex=*)
868 exec_prefix=$ac_optarg ;;
870 -gas | --gas | --ga | --g)
871 # Obsolete; use --with-gas.
874 -help | --help | --hel | --he | -h)
876 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877 ac_init_help=recursive ;;
878 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879 ac_init_help=short ;;
881 -host | --host | --hos | --ho)
882 ac_prev=host_alias ;;
883 -host=* | --host=* | --hos=* | --ho=*)
884 host_alias=$ac_optarg ;;
886 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890 htmldir=$ac_optarg ;;
892 -includedir | --includedir | --includedi | --included | --include \
893 | --includ | --inclu | --incl | --inc)
894 ac_prev=includedir ;;
895 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896 | --includ=* | --inclu=* | --incl=* | --inc=*)
897 includedir=$ac_optarg ;;
899 -infodir | --infodir | --infodi | --infod | --info | --inf)
901 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902 infodir=$ac_optarg ;;
904 -libdir | --libdir | --libdi | --libd)
906 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910 | --libexe | --libex | --libe)
911 ac_prev=libexecdir ;;
912 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913 | --libexe=* | --libex=* | --libe=*)
914 libexecdir=$ac_optarg ;;
916 -localedir | --localedir | --localedi | --localed | --locale)
918 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919 localedir=$ac_optarg ;;
921 -localstatedir | --localstatedir | --localstatedi | --localstated \
922 | --localstate | --localstat | --localsta | --localst | --locals)
923 ac_prev=localstatedir ;;
924 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926 localstatedir=$ac_optarg ;;
928 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 # Obsolete; use --without-fp.
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938 | --no-cr | --no-c | -n)
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947 | --oldin | --oldi | --old | --ol | --o)
948 ac_prev=oldincludedir ;;
949 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952 oldincludedir=$ac_optarg ;;
954 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 -program-prefix | --program-prefix | --program-prefi | --program-pref \
960 | --program-pre | --program-pr | --program-p)
961 ac_prev=program_prefix ;;
962 -program-prefix=* | --program-prefix=* | --program-prefi=* \
963 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964 program_prefix=$ac_optarg ;;
966 -program-suffix | --program-suffix | --program-suffi | --program-suff \
967 | --program-suf | --program-su | --program-s)
968 ac_prev=program_suffix ;;
969 -program-suffix=* | --program-suffix=* | --program-suffi=* \
970 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971 program_suffix=$ac_optarg ;;
973 -program-transform-name | --program-transform-name \
974 | --program-transform-nam | --program-transform-na \
975 | --program-transform-n | --program-transform- \
976 | --program-transform | --program-transfor \
977 | --program-transfo | --program-transf \
978 | --program-trans | --program-tran \
979 | --progr-tra | --program-tr | --program-t)
980 ac_prev=program_transform_name ;;
981 -program-transform-name=* | --program-transform-name=* \
982 | --program-transform-nam=* | --program-transform-na=* \
983 | --program-transform-n=* | --program-transform-=* \
984 | --program-transform=* | --program-transfor=* \
985 | --program-transfo=* | --program-transf=* \
986 | --program-trans=* | --program-tran=* \
987 | --progr-tra=* | --program-tr=* | --program-t=*)
988 program_transform_name=$ac_optarg ;;
990 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 -psdir | --psdir | --psdi | --psd | --ps)
997 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001 | -silent | --silent | --silen | --sile | --sil)
1004 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008 sbindir=$ac_optarg ;;
1010 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012 | --sharedst | --shareds | --shared | --share | --shar \
1014 ac_prev=sharedstatedir ;;
1015 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019 sharedstatedir=$ac_optarg ;;
1021 -site | --site | --sit)
1023 -site=* | --site=* | --sit=*)
1026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029 srcdir=$ac_optarg ;;
1031 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032 | --syscon | --sysco | --sysc | --sys | --sy)
1033 ac_prev=sysconfdir ;;
1034 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036 sysconfdir=$ac_optarg ;;
1038 -target | --target | --targe | --targ | --tar | --ta | --t)
1039 ac_prev=target_alias ;;
1040 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041 target_alias=$ac_optarg ;;
1043 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 -version | --version | --versio | --versi | --vers | -V)
1047 ac_init_version=: ;;
1050 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid package name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval with_$ac_useropt=\$ac_optarg ;;
1065 -without-* | --without-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid package name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval with_$ac_useropt=no ;;
1082 # Obsolete; use --with-x.
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) as_fn_error "unrecognized option: \`$ac_option'
1100 Try \`$0 --help' for more information."
1104 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1105 # Reject names that are not valid shell variable names.
1106 case $ac_envvar in #(
1107 '' | [0-9]* | *[!_$as_cr_alnum]* )
1108 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 as_fn_error "missing argument to $ac_option"
1129 if test -n "$ac_unrecognized_opts"; then
1130 case $enable_option_checking in
1132 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1133 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137 # Check all directory arguments for consistency.
1138 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
1143 eval ac_val=\$$ac_var
1144 # Remove trailing slashes.
1147 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1148 eval $ac_var=\$ac_val;;
1150 # Be sure to have absolute directory names.
1152 [\\/$]* | ?:[\\/]* ) continue;;
1153 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1155 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1158 # There might be people who depend on the old broken behavior: `$host'
1159 # used to hold the argument of --host etc.
1160 # FIXME: To remove some day.
1163 target=$target_alias
1165 # FIXME: To remove some day.
1166 if test "x$host_alias" != x; then
1167 if test "x$build_alias" = x; then
1168 cross_compiling=maybe
1169 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1170 If a cross compiler is detected then cross compile mode will be used." >&2
1171 elif test "x$build_alias" != "x$host_alias"; then
1177 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179 test "$silent" = yes && exec 6>/dev/null
1182 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183 ac_ls_di=`ls -di .` &&
1184 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185 as_fn_error "working directory cannot be determined"
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 as_fn_error "pwd does not report name of working directory"
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1195 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1197 X"$as_myself" : 'X\(//\)$' \| \
1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199 $as_echo X"$as_myself" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1222 ac_srcdir_defaulted=no
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1240 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242 for ac_var in $ac_precious_vars; do
1243 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_${ac_var}_value=\$${ac_var}
1245 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 # Report the --help message.
1252 if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1256 \`configure' configures nbd 2.9.13 to adapt to many kinds of systems.
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE. See below for descriptions of some of the useful variables.
1263 Defaults for the options are specified in brackets.
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
1270 -q, --quiet, --silent do not print \`checking...' messages
1271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276 Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
1278 [$ac_default_prefix]
1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1287 For better control, use the options below.
1289 Fine tuning of the installation directories:
1290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
1304 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
1314 --program-prefix=PREFIX prepend PREFIX to installed program names
1315 --program-suffix=SUFFIX append SUFFIX to installed program names
1316 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1319 --build=BUILD configure for building on BUILD [guessed]
1320 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of nbd 2.9.13:";;
1331 --disable-option-checking ignore unrecognized --enable/--with options
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --enable-maintainer-mode enable make rules and dependencies not useful
1335 (and sometimes confusing) to the casual installer
1336 --disable-lfs Disable Large File Support (default on)
1337 --enable-syslog Enable Syslog logging
1338 --enable-debug Build a debugging version of the server
1339 --enable-sdp Build a version of nbd-server with support for the
1340 Socket Direct Protocol (SDP). Requires you to build
1341 and install a kernel with the InfiniBand patches
1343 --disable-dependency-tracking speeds up one-time build
1344 --enable-dependency-tracking do not reject slow dependency extractors
1345 --disable-glibtest do not try to compile and run a test GLIB program
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1356 PKG_CONFIG path to pkg-config utility
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1361 Report bugs to <wouter@debian.org>.
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" ||
1370 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1391 .) # We are building in place.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1415 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1424 nbd configure 2.9.13
1425 generated by GNU Autoconf 2.64
1427 Copyright (C) 2009 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1434 ## ------------------------ ##
1435 ## Autoconf initialization. ##
1436 ## ------------------------ ##
1438 # ac_fn_c_try_compile LINENO
1439 # --------------------------
1440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_c_try_compile ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 rm -f conftest.$ac_objext
1445 if { { ac_try="$ac_compile"
1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448 *) ac_try_echo=$ac_try;;
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_compile") 2>conftest.err
1454 if test -s conftest.err; then
1455 grep -v '^ *+' conftest.err >conftest.er1
1456 cat conftest.er1 >&5
1457 mv -f conftest.er1 conftest.err
1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460 test $ac_status = 0; } && {
1461 test -z "$ac_c_werror_flag" ||
1462 test ! -s conftest.err
1463 } && test -s conftest.$ac_objext; then :
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1474 } # ac_fn_c_try_compile
1476 # ac_fn_c_try_cpp LINENO
1477 # ----------------------
1478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 if { { ac_try="$ac_cpp conftest.$ac_ext"
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } >/dev/null && {
1498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 # ac_fn_c_try_run LINENO
1514 # ----------------------
1515 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1516 # that executables *can* be run.
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 if { { ac_try="$ac_link"
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_link") 2>&5
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1531 { { case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_try") 2>&5
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; }; }; then :
1543 $as_echo "$as_me: program exited with status $ac_status" >&5
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1547 ac_retval=$ac_status
1549 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists and can be compiled using the include files in
1558 # INCLUDES, setting the cache variable VAR accordingly.
1559 ac_fn_c_check_header_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 $as_echo_n "(cached) " >&6
1567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h. */
1572 if ac_fn_c_try_compile "$LINENO"; then :
1577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581 $as_echo "$ac_res" >&6; }
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1584 } # ac_fn_c_check_header_compile
1586 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1587 # --------------------------------------------
1588 # Tries to find the compile-time value of EXPR in a program that includes
1589 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1591 ac_fn_c_compute_int ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if test "$cross_compiling" = yes; then
1595 # Depending upon the size, compute the lo and hi bounds.
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1602 static int test_array [1 - 2 * !(($2) >= 0)];
1609 if ac_fn_c_try_compile "$LINENO"; then :
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1618 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626 ac_hi=$ac_mid; break
1628 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1629 if test $ac_lo -le $ac_mid; then
1633 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1644 static int test_array [1 - 2 * !(($2) < 0)];
1651 if ac_fn_c_try_compile "$LINENO"; then :
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1660 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 ac_lo=$ac_mid; break
1670 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1671 if test $ac_mid -le $ac_hi; then
1675 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 # Binary search between lo and hi bounds.
1686 while test "x$ac_lo" != "x$ac_hi"; do
1687 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1694 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1701 if ac_fn_c_try_compile "$LINENO"; then :
1704 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1716 static long int longval () { return $2; }
1717 static unsigned long int ulongval () { return $2; }
1724 FILE *f = fopen ("conftest.val", "w");
1729 long int i = longval ();
1732 fprintf (f, "%ld", i);
1736 unsigned long int i = ulongval ();
1739 fprintf (f, "%lu", i);
1741 /* Do not output a trailing newline, as this causes \r\n confusion
1742 on some platforms. */
1743 return ferror (f) || fclose (f) != 0;
1749 if ac_fn_c_try_run "$LINENO"; then :
1750 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1755 conftest.$ac_objext conftest.beam conftest.$ac_ext
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 } # ac_fn_c_compute_int
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 $as_test_x conftest$ac_exeext
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 } # ac_fn_c_try_link
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1833 # include <limits.h>
1835 # include <assert.h>
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1862 if ac_fn_c_try_link "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_check_func
1877 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1878 # -------------------------------------------
1879 # Tests whether TYPE exists after having included INCLUDES, setting cache
1880 # variable VAR accordingly.
1881 ac_fn_c_check_type ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1915 if ac_fn_c_try_compile "$LINENO"; then :
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 } # ac_fn_c_check_type
1931 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1934 # the include files in INCLUDES and setting the cache variable VAR
1936 ac_fn_c_check_header_mongrel ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1943 $as_echo_n "(cached) " >&6
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 # Is the header compilable?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1951 $as_echo_n "checking $2 usability... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_header_compiler=yes
1960 ac_header_compiler=no
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1964 $as_echo "$ac_header_compiler" >&6; }
1966 # Is the header present?
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1968 $as_echo_n "checking $2 presence... " >&6; }
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 if ac_fn_c_try_cpp "$LINENO"; then :
1974 ac_header_preproc=yes
1976 ac_header_preproc=no
1978 rm -f conftest.err conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1980 $as_echo "$ac_header_preproc" >&6; }
1982 # So? What about this header?
1983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1994 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1998 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 ## -------------------------------- ##
2003 ## Report this to wouter@debian.org ##
2004 ## -------------------------------- ##
2006 ) | sed "s/^/$as_me: WARNING: /" >&2
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2014 eval "$3=\$ac_header_compiler"
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_c_check_header_mongrel
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2027 It was created by nbd $as_me 2.9.13, which was
2028 generated by GNU Autoconf 2.64. Invocation command line was
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 $as_echo "PATH: $as_dir"
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2088 ac_must_keep_next=false
2094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096 | -silent | --silent | --silen | --sile | --sil)
2099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2104 as_fn_append ac_configure_args1 " '$ac_arg'"
2105 if test $ac_must_keep_next = true; then
2106 ac_must_keep_next=false # Got value, back to normal.
2109 *=* | --config-cache | -C | -disable-* | --disable-* \
2110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112 | -with-* | --with-* | -without-* | --without-* | --x)
2113 case "$ac_configure_args0 " in
2114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2117 -* ) ac_must_keep_next=true ;;
2120 as_fn_append ac_configure_args " '$ac_arg'"
2125 { ac_configure_args0=; unset ac_configure_args0;}
2126 { ac_configure_args1=; unset ac_configure_args1;}
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log. We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134 # Save into config.log some information that might help in debugging.
2139 ## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##
2144 # The following way of writing the cache mishandles newlines in values,
2146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147 eval ac_val=\$$ac_var
2151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2155 _ | IFS | as_nl) ;; #(
2156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157 *) { eval $ac_var=; unset $ac_var;} ;;
2162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163 *${as_nl}ac_space=\ *)
2165 "s/'\''/'\''\\\\'\'''\''/g;
2166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 ## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##
2182 for ac_var in $ac_subst_vars
2184 eval ac_val=\$$ac_var
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 $as_echo "$ac_var='\''$ac_val'\''"
2192 if test -n "$ac_subst_files"; then
2194 ## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##
2199 for ac_var in $ac_subst_files
2201 eval ac_val=\$$ac_var
2203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 $as_echo "$ac_var='\''$ac_val'\''"
2210 if test -s confdefs.h; then
2220 test "$ac_signal" != 0 &&
2221 $as_echo "$as_me: caught signal $ac_signal"
2222 $as_echo "$as_me: exit $exit_status"
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2228 for ac_signal in 1 2 13 15; do
2229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2236 $as_echo "/* confdefs.h */" > confdefs.h
2238 # Predefined preprocessor variables.
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_NAME "$PACKAGE_NAME"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_STRING "$PACKAGE_STRING"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_URL "$PACKAGE_URL"
2265 # Let the site file select an alternate cache file if it wants to.
2266 # Prefer an explicitly selected file to automatically selected ones.
2269 if test -n "$CONFIG_SITE"; then
2270 ac_site_file1=$CONFIG_SITE
2271 elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2280 test "x$ac_site_file" = xNONE && continue
2281 if test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2289 if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special
2291 # files actually), so we avoid doing that.
2292 if test -f "$cache_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2306 # Check that the precious variables saved in the cache have kept the same
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2356 if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 am__api_version='1.10'
2377 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2378 for ac_t in install-sh install.sh shtool; do
2379 if test -f "$ac_dir/$ac_t"; then
2381 ac_install_sh="$ac_aux_dir/$ac_t -c"
2386 if test -z "$ac_aux_dir"; then
2387 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2390 # These three variables are undocumented and unsupported,
2391 # and are intended to be withdrawn in a future Autoconf release.
2392 # They can cause serious problems if a builder's source tree is in a directory
2393 # whose full name contains unusual characters.
2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2396 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2399 # Find a good install program. We prefer a C program (faster),
2400 # so one script is as good as another. But avoid the broken or
2401 # incompatible versions:
2402 # SysV /etc/install, /usr/sbin/install
2403 # SunOS /usr/etc/install
2404 # IRIX /sbin/install
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410 # OS/2's system install, which has a completely different semantic
2411 # ./install, which can be erroneously created by make from ./install.sh.
2412 # Reject install programs that cannot install multiple files.
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2415 if test -z "$INSTALL"; then
2416 if test "${ac_cv_path_install+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 # Account for people who put trailing slashes in PATH elements.
2425 case $as_dir/ in #((
2426 ./ | .// | /[cC]/* | \
2427 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2428 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2431 # OSF1 and SCO ODT 3.0 have their own names for install.
2432 # Don't use installbsd from OSF since it installs stuff as root
2434 for ac_prog in ginstall scoinst install; do
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2437 if test $ac_prog = install &&
2438 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439 # AIX install. It has an incompatible calling convention.
2441 elif test $ac_prog = install &&
2442 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # program-specific install script used by HP pwplus--don't use.
2446 rm -rf conftest.one conftest.two conftest.dir
2447 echo one > conftest.one
2448 echo two > conftest.two
2450 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2451 test -s conftest.one && test -s conftest.two &&
2452 test -s conftest.dir/conftest.one &&
2453 test -s conftest.dir/conftest.two
2455 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2468 rm -rf conftest.one conftest.two conftest.dir
2471 if test "${ac_cv_path_install+set}" = set; then
2472 INSTALL=$ac_cv_path_install
2474 # As a last resort, use the slow shell script. Don't cache a
2475 # value for INSTALL within a source directory, because that will
2476 # break other packages using the cache if that directory is
2477 # removed, or if the value is a relative name.
2478 INSTALL=$ac_install_sh
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2482 $as_echo "$INSTALL" >&6; }
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485 # It thinks the first close brace ends the variable substitution.
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2493 $as_echo_n "checking whether build environment is sane... " >&6; }
2496 echo timestamp > conftest.file
2497 # Do `set' in a subshell so we don't clobber the current shell's
2498 # arguments. Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2503 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2504 if test "$*" = "X"; then
2506 set X `ls -t $srcdir/configure conftest.file`
2509 if test "$*" != "X $srcdir/configure conftest.file" \
2510 && test "$*" != "X conftest.file $srcdir/configure"; then
2512 # If neither matched, then we have a broken ls. This can happen
2513 # if, for instance, CONFIG_SHELL is bash and it inherits a
2514 # broken ls alias from the environment. This has actually
2515 # happened. Such a system could not be considered "sane".
2516 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2517 alias in your environment" "$LINENO" 5
2520 test "$2" = conftest.file
2526 as_fn_error "newly created file is older than distributed files!
2527 Check your system clock" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2531 test "$program_prefix" != NONE &&
2532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.
2537 # By default was `s,x,x', remove it if useless.
2538 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541 # expand $ac_aux_dir to an absolute path
2542 am_aux_dir=`cd $ac_aux_dir && pwd`
2544 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2545 # Use eval to expand $SHELL
2546 if eval "$MISSING --run true"; then
2547 am_missing_run="$MISSING --run "
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2551 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2555 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2556 if test -z "$MKDIR_P"; then
2557 if test "${ac_cv_path_mkdir+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564 test -z "$as_dir" && as_dir=.
2565 for ac_prog in mkdir gmkdir; do
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2568 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2569 'mkdir (GNU coreutils) '* | \
2570 'mkdir (coreutils) '* | \
2571 'mkdir (fileutils) '4.1*)
2572 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2582 if test "${ac_cv_path_mkdir+set}" = set; then
2583 MKDIR_P="$ac_cv_path_mkdir -p"
2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for MKDIR_P within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
2589 test -d ./--version && rmdir ./--version
2590 MKDIR_P="$ac_install_sh -d"
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2594 $as_echo "$MKDIR_P" >&6; }
2598 [\\/$]* | ?:[\\/]*) ;;
2599 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2602 for ac_prog in gawk mawk nawk awk
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605 set dummy $ac_prog; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_AWK+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2611 if test -n "$AWK"; then
2612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_AWK="$ac_prog"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 if test -n "$AWK"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2634 $as_echo "$AWK" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2641 test -n "$AWK" && break
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2645 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2647 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2648 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2649 $as_echo_n "(cached) " >&6
2651 cat >conftest.make <<\_ACEOF
2654 @echo '@@@%%%=$(MAKE)=@@@%%%'
2656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2659 eval ac_cv_prog_make_${ac_make}_set=yes;;
2661 eval ac_cv_prog_make_${ac_make}_set=no;;
2665 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2667 $as_echo "yes" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 SET_MAKE="MAKE=${MAKE-make}"
2675 rm -rf .tst 2>/dev/null
2676 mkdir .tst 2>/dev/null
2677 if test -d .tst; then
2682 rmdir .tst 2>/dev/null
2684 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2685 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2686 # is not polluted with repeated "-I."
2687 am__isrc=' -I$(srcdir)'
2688 # test to see if srcdir already configured
2689 if test -f $srcdir/config.status; then
2690 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2694 # test whether we have cygpath
2695 if test -z "$CYGPATH_W"; then
2696 if (cygpath --version) >/dev/null 2>/dev/null; then
2697 CYGPATH_W='cygpath -w'
2704 # Define the identity of the package.
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE "$PACKAGE"
2714 cat >>confdefs.h <<_ACEOF
2715 #define VERSION "$VERSION"
2718 # Some tools Automake needs.
2720 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2723 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2726 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2729 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2732 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2734 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2736 # Installed binaries are usually stripped using `strip' when the user
2737 # run `make install-strip'. However `strip' might not be the right
2738 # tool to use in cross-compilation environments, therefore Automake
2739 # will honor the `STRIP' environment variable to overrule this program.
2740 if test "$cross_compiling" != no; then
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}strip; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_STRIP+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2749 if test -n "$STRIP"; then
2750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 STRIP=$ac_cv_prog_STRIP
2770 if test -n "$STRIP"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2772 $as_echo "$STRIP" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2780 if test -z "$ac_cv_prog_STRIP"; then
2782 # Extract the first word of "strip", so it can be a program name with args.
2783 set dummy strip; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$ac_ct_STRIP"; then
2790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_STRIP="strip"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2810 if test -n "$ac_ct_STRIP"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2812 $as_echo "$ac_ct_STRIP" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2818 if test "x$ac_ct_STRIP" = x; then
2821 case $cross_compiling:$ac_tool_warned in
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2830 STRIP="$ac_cv_prog_STRIP"
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2836 # We need awk for the "check" target. The system "awk" is bad on
2838 # Always define AMTAR for backward compatibility.
2840 AMTAR=${AMTAR-"${am_missing_run}tar"}
2842 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2849 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2850 # Check whether --enable-maintainer-mode was given.
2851 if test "${enable_maintainer_mode+set}" = set; then :
2852 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2854 USE_MAINTAINER_MODE=no
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2858 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2859 if test $USE_MAINTAINER_MODE = yes; then
2860 MAINTAINER_MODE_TRUE=
2861 MAINTAINER_MODE_FALSE='#'
2863 MAINTAINER_MODE_TRUE='#'
2864 MAINTAINER_MODE_FALSE=
2867 MAINT=$MAINTAINER_MODE_TRUE
2871 # Check whether --enable-lfs was given.
2872 if test "${enable_lfs+set}" = set; then :
2873 enableval=$enable_lfs;
2874 if test "x$enableval" = "xyes" ; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Large File Support should be enabled" >&5
2886 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2887 if test $NBD_LFS -eq 1; then
2889 $as_echo "#define NBD_LFS 1" >>confdefs.h
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2894 $as_echo "#define NBD_LFS 0" >>confdefs.h
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2900 # Check whether --enable-syslog was given.
2901 if test "${enable_syslog+set}" = set; then :
2902 enableval=$enable_syslog;
2903 if test "x$enableval" = "xyes" ; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog logging is requested" >&5
2916 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2917 if test $ISSERVER -eq 1; then
2919 $as_echo "#define ISSERVER 1" >>confdefs.h
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2928 # Check whether --enable-debug was given.
2929 if test "${enable_debug+set}" = set; then :
2930 enableval=$enable_debug;
2931 if test "x$enableval" = "xyes"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a debugging version is requested" >&5
2944 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2945 if test $DODBG -eq 1; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2948 if test $ISSERVER -eq 1; then
2949 as_fn_error "You requested both syslog logging and a debugging version of the server. Bad idea!" "$LINENO" 5
2952 $as_echo "#define DODBG 1" >>confdefs.h
2955 $as_echo "#define NOFORK 1" >>confdefs.h
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2962 # Check whether --enable-sdp was given.
2963 if test "${enable_sdp+set}" = set; then :
2964 enableval=$enable_sdp;
2965 if test "x$enableval" = "xyes"; then
2967 $as_echo "#define WITH_SDP 1" >>confdefs.h
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3019 if test -z "$ac_cv_prog_CC"; then
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_ac_ct_CC="gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3057 if test "x$ac_ct_CC" = x; then
3060 case $cross_compiling:$ac_tool_warned in
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}cc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="${ac_tool_prefix}cc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3113 if test -z "$CC"; then
3114 # Extract the first word of "cc", so it can be a program name with args.
3115 set dummy cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3133 ac_prog_rejected=yes
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 if test $ac_prog_rejected = yes; then
3145 # We found a bogon in the path, so make sure we never use it.
3146 set dummy $ac_cv_prog_CC
3148 if test $# != 0; then
3149 # We chose a different compiler from the bogus one.
3150 # However, it has the same basename, so the bogon will be chosen
3151 # first if we set CC to just the basename; use the full file name.
3153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$CC" && break
3213 if test -z "$CC"; then
3215 for ac_prog in cl.exe
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC="$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3254 test -n "$ac_ct_CC" && break
3257 if test "x$ac_ct_CC" = x; then
3260 case $cross_compiling:$ac_tool_warned in
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "no acceptable C compiler found in \$PATH
3276 See \`config.log' for more details." "$LINENO" 5; }
3278 # Provide some information about the compiler.
3279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3282 for ac_option in --version -v -V -qversion; do
3283 { { ac_try="$ac_compiler $ac_option >&5"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292 if test -s conftest.err; then
3294 ... rest of stderr output deleted ...
3295 10q' conftest.err >conftest.er1
3296 cat conftest.er1 >&5
3297 rm -f conftest.er1 conftest.err
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3309 FILE *f = fopen ("conftest.out", "w");
3310 return ferror (f) || fclose (f) != 0;
3316 ac_clean_files_save=$ac_clean_files
3317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3318 # Try to create an executable without -o first, disregard a.out.
3319 # It will help us diagnose broken compilers, and finding out an intuition
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3322 $as_echo_n "checking for C compiler default output file name... " >&6; }
3323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325 # The possible output files:
3326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3329 for ac_file in $ac_files
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3338 if { { ac_try="$ac_link_default"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_link_default") 2>&5
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; then :
3349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3352 # so that the user can short-circuit this test for compilers unknown to
3354 for ac_file in $ac_files ''
3356 test -f "$ac_file" || continue
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3361 # We found the default executable, but exeext='' is most
3365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 # We set ac_cv_exeext here because the later test for it is not
3370 # safe: cross compilers may not add the suffix if given an `-o'
3371 # argument, so we may need to know it at that point already.
3372 # Even if this section looks crufty: it has the advantage of
3379 test "$ac_cv_exeext" = no && ac_cv_exeext=
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3385 $as_echo "$ac_file" >&6; }
3386 if test -z "$ac_file"; then :
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 { as_fn_set_status 77
3393 as_fn_error "C compiler cannot create executables
3394 See \`config.log' for more details." "$LINENO" 5; }; }
3396 ac_exeext=$ac_cv_exeext
3398 # Check that the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401 $as_echo_n "checking whether the C compiler works... " >&6; }
3402 # If not cross compiling, check that we can run a simple program.
3403 if test "$cross_compiling" != yes; then
3404 if { ac_try='./$ac_file'
3405 { { case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_try") 2>&5
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }; }; then
3417 if test "$cross_compiling" = maybe; then
3420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error "cannot run C compiled programs.
3423 If you meant to cross compile, use \`--host'.
3424 See \`config.log' for more details." "$LINENO" 5; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429 $as_echo "yes" >&6; }
3431 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3432 ac_clean_files=$ac_clean_files_save
3433 # Check that the compiler produces executables we can run. If not, either
3434 # the compiler is broken, or we cross compile.
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436 $as_echo_n "checking whether we are cross compiling... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 $as_echo_n "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link") 2>&5
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3455 # work properly (i.e., refer to `conftest.exe'), while it won't with
3457 for ac_file in conftest.exe conftest conftest.*; do
3458 test -f "$ac_file" || continue
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error "cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details." "$LINENO" 5; }
3472 rm -f conftest$ac_cv_exeext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3480 $as_echo_n "checking for suffix of object files... " >&6; }
3481 if test "${ac_cv_objext+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3495 rm -f conftest.o conftest.obj
3496 if { { ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compile") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 for ac_file in conftest.o conftest.obj conftest.*; do
3508 test -f "$ac_file" || continue;
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error "cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details." "$LINENO" 5; }
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3527 $as_echo "$ac_cv_objext" >&6; }
3528 OBJEXT=$ac_cv_objext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3531 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3532 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3549 if ac_fn_c_try_compile "$LINENO"; then :
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3560 if test $ac_compiler_gnu = yes; then
3565 ac_test_CFLAGS=${CFLAGS+set}
3566 ac_save_CFLAGS=$CFLAGS
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3568 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3569 if test "${ac_cv_prog_cc_g+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_save_c_werror_flag=$ac_c_werror_flag
3573 ac_c_werror_flag=yes
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 if ac_fn_c_try_compile "$LINENO"; then :
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 if ac_fn_c_try_compile "$LINENO"; then :
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3618 if ac_fn_c_try_compile "$LINENO"; then :
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629 $as_echo "$ac_cv_prog_cc_g" >&6; }
3630 if test "$ac_test_CFLAGS" = set; then
3631 CFLAGS=$ac_save_CFLAGS
3632 elif test $ac_cv_prog_cc_g = yes; then
3633 if test "$GCC" = yes; then
3639 if test "$GCC" = yes; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3650 ac_cv_prog_cc_c89=no
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3672 s = g (p, va_arg (v,int));
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 rm -f conftest.$ac_ext
3720 case "x$ac_cv_prog_cc_c89" in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 DEPDIR="${am__leading_dot}deps"
3743 ac_config_commands="$ac_config_commands depfiles"
3746 am_make=${MAKE-make}
3747 cat > confinc << 'END'
3752 # If we don't find an include directive, just comment out the code.
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3754 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3758 # First try GNU make style include.
3759 echo "include confinc" > confmf
3760 # We grep out `Entering directory' and `Leaving directory'
3761 # messages which can occur if `w' ends up in MAKEFLAGS.
3762 # In particular we don't look at `^make:' because GNU make might
3763 # be invoked under some other name (usually "gmake"), in which
3764 # case it prints its new name instead of `make'.
3765 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3770 # Now try BSD make style include.
3771 if test "$am__include" = "#"; then
3772 echo '.include "confinc"' > confmf
3773 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3774 am__include=.include
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3782 $as_echo "$_am_result" >&6; }
3783 rm -f confinc confmf
3785 # Check whether --enable-dependency-tracking was given.
3786 if test "${enable_dependency_tracking+set}" = set; then :
3787 enableval=$enable_dependency_tracking;
3790 if test "x$enable_dependency_tracking" != xno; then
3791 am_depcomp="$ac_aux_dir/depcomp"
3794 if test "x$enable_dependency_tracking" != xno; then
3804 depcc="$CC" am_compiler_list=
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807 $as_echo_n "checking dependency style of $depcc... " >&6; }
3808 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812 # We make a subdir and do the tests there. Otherwise we can end up
3813 # making bogus files that we don't know about and never remove. For
3814 # instance it was reported that on HP-UX the gcc test will end up
3815 # making a dummy file named `D' -- because `-MD' means `put the output
3818 # Copy depcomp to subdir because otherwise we won't find it if we're
3819 # using a relative directory.
3820 cp "$am_depcomp" conftest.dir
3822 # We will build objects and dependencies in a subdirectory because
3823 # it helps to detect inapplicable dependency modes. For instance
3824 # both Tru64's cc and ICC support -MD to output dependencies as a
3825 # side effect of compilation, but ICC will put the dependencies in
3826 # the current directory while Tru64 will put them in the object
3830 am_cv_CC_dependencies_compiler_type=none
3831 if test "$am_compiler_list" = ""; then
3832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3834 for depmode in $am_compiler_list; do
3835 # Setup a source with many dependencies, because some compilers
3836 # like to wrap large dependency lists on column 80 (with \), and
3837 # we should not choose a depcomp mode which is confused by this.
3839 # We need to recreate these files for each test, as the compiler may
3840 # overwrite some of them when testing with obscure command lines.
3841 # This happens at least with the AIX C compiler.
3843 for i in 1 2 3 4 5 6; do
3844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3845 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3846 # Solaris 8's {/usr,}/bin/sh.
3847 touch sub/conftst$i.h
3849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3853 # after this tag, mechanisms are not by side-effect, so they'll
3854 # only be used when explicitly requested
3855 if test "x$enable_dependency_tracking" = xyes; then
3863 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3864 # mode. It turns out that the SunPro C++ compiler does not properly
3865 # handle `-M -o', and we need to detect this.
3866 if depmode=$depmode \
3867 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3870 >/dev/null 2>conftest.err &&
3871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875 # icc doesn't choke on unknown options, it will just issue warnings
3876 # or remarks (even with -Werror). So we grep stderr for any message
3877 # that says an option was ignored or not supported.
3878 # When given -MP, icc 7.0 and 7.1 complain thusly:
3879 # icc: Command line warning: ignoring option '-M'; no argument required
3880 # The diagnosis changed in icc 8.0:
3881 # icc: Command line remark: option '-MP' not supported
3882 if (grep 'ignoring option' conftest.err ||
3883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884 am_cv_CC_dependencies_compiler_type=$depmode
3893 am_cv_CC_dependencies_compiler_type=none
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902 test "x$enable_dependency_tracking" != xno \
3903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905 am__fastdepCC_FALSE='#'
3907 am__fastdepCC_TRUE='#'
3908 am__fastdepCC_FALSE=
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3919 # On Suns, sometimes $CPP names a directory.
3920 if test -n "$CPP" && test -d "$CPP"; then
3923 if test -z "$CPP"; then
3924 if test "${ac_cv_prog_CPP+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 # Double quotes because CPP needs to be expanded
3928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3931 for ac_c_preproc_warn_flag in '' yes
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3942 # include <limits.h>
3944 # include <assert.h>
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3951 # Broken: fails on valid input.
3954 rm -f conftest.err conftest.$ac_ext
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963 # Broken: success on invalid input.
3966 # Passes both tests.
3970 rm -f conftest.err conftest.$ac_ext
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3988 $as_echo "$CPP" >&6; }
3990 for ac_c_preproc_warn_flag in '' yes
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4001 # include <limits.h>
4003 # include <assert.h>
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4010 # Broken: fails on valid input.
4013 rm -f conftest.err conftest.$ac_ext
4015 # OK, works on sane cases. Now check whether nonexistent headers
4016 # can be detected and how.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <ac_nonexistent.h>
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022 # Broken: success on invalid input.
4025 # Passes both tests.
4029 rm -f conftest.err conftest.$ac_ext
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then :
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." "$LINENO" 5; }
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 # Make sure we can run config.sub.
4051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4052 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4055 $as_echo_n "checking build system type... " >&6; }
4056 if test "${ac_cv_build+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4059 ac_build_alias=$build_alias
4060 test "x$ac_build_alias" = x &&
4061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4062 test "x$ac_build_alias" = x &&
4063 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4065 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4069 $as_echo "$ac_cv_build" >&6; }
4070 case $ac_cv_build in
4072 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4075 ac_save_IFS=$IFS; IFS='-'
4081 # Remember, the first character of IFS is used to create $*,
4082 # except with old shells:
4085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4089 $as_echo_n "checking host system type... " >&6; }
4090 if test "${ac_cv_host+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4093 if test "x$host_alias" = x; then
4094 ac_cv_host=$ac_cv_build
4096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4097 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4102 $as_echo "$ac_cv_host" >&6; }
4105 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4108 ac_save_IFS=$IFS; IFS='-'
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4124 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4125 if test "${ac_cv_path_GREP+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -z "$GREP"; then
4129 ac_path_GREP_found=false
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135 test -z "$as_dir" && as_dir=.
4136 for ac_prog in grep ggrep; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4140 # Check for GNU ac_path_GREP and select it if it is found.
4141 # Check for GNU $ac_path_GREP
4142 case `"$ac_path_GREP" --version 2>&1` in
4144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147 $as_echo_n 0123456789 >"conftest.in"
4150 cat "conftest.in" "conftest.in" >"conftest.tmp"
4151 mv "conftest.tmp" "conftest.in"
4152 cp "conftest.in" "conftest.nl"
4153 $as_echo 'GREP' >> "conftest.nl"
4154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156 as_fn_arith $ac_count + 1 && ac_count=$as_val
4157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158 # Best one so far, save it but keep looking for a better one
4159 ac_cv_path_GREP="$ac_path_GREP"
4160 ac_path_GREP_max=$ac_count
4162 # 10*(2^10) chars as input seems more than enough
4163 test $ac_count -gt 10 && break
4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168 $ac_path_GREP_found && break 3
4173 if test -z "$ac_cv_path_GREP"; then
4174 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4177 ac_cv_path_GREP=$GREP
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4182 $as_echo "$ac_cv_path_GREP" >&6; }
4183 GREP="$ac_cv_path_GREP"
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4187 $as_echo_n "checking for egrep... " >&6; }
4188 if test "${ac_cv_path_EGREP+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192 then ac_cv_path_EGREP="$GREP -E"
4194 if test -z "$EGREP"; then
4195 ac_path_EGREP_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in egrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4206 # Check for GNU ac_path_EGREP and select it if it is found.
4207 # Check for GNU $ac_path_EGREP
4208 case `"$ac_path_EGREP" --version 2>&1` in
4210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4213 $as_echo_n 0123456789 >"conftest.in"
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 $as_echo 'EGREP' >> "conftest.nl"
4220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 as_fn_arith $ac_count + 1 && ac_count=$as_val
4223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_EGREP="$ac_path_EGREP"
4226 ac_path_EGREP_max=$ac_count
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 $ac_path_EGREP_found && break 3
4239 if test -z "$ac_cv_path_EGREP"; then
4240 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243 ac_cv_path_EGREP=$EGREP
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4249 $as_echo "$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4254 $as_echo_n "checking for ANSI C header files... " >&6; }
4255 if test "${ac_cv_header_stdc+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274 ac_cv_header_stdc=yes
4276 ac_cv_header_stdc=no
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4280 if test $ac_cv_header_stdc = yes; then
4281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288 $EGREP "memchr" >/dev/null 2>&1; then :
4291 ac_cv_header_stdc=no
4297 if test $ac_cv_header_stdc = yes; then
4298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 $EGREP "free" >/dev/null 2>&1; then :
4308 ac_cv_header_stdc=no
4314 if test $ac_cv_header_stdc = yes; then
4315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4316 if test "$cross_compiling" = yes; then :
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4323 #if ((' ' & 0x0FF) == 0x020)
4324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4327 # define ISLOWER(c) \
4328 (('a' <= (c) && (c) <= 'i') \
4329 || ('j' <= (c) && (c) <= 'r') \
4330 || ('s' <= (c) && (c) <= 'z'))
4331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4339 for (i = 0; i < 256; i++)
4340 if (XOR (islower (i), ISLOWER (i))
4341 || toupper (i) != TOUPPER (i))
4346 if ac_fn_c_try_run "$LINENO"; then :
4349 ac_cv_header_stdc=no
4351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4352 conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4358 $as_echo "$ac_cv_header_stdc" >&6; }
4359 if test $ac_cv_header_stdc = yes; then
4361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367 inttypes.h stdint.h unistd.h
4369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4372 eval as_val=\$$as_ac_Header
4373 if test "x$as_val" = x""yes; then :
4374 cat >>confdefs.h <<_ACEOF
4375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4384 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4385 if test "${ac_cv_c_bigendian+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_cv_c_bigendian=unknown
4389 # See if we're dealing with a universal compiler.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #ifndef __APPLE_CC__
4393 not a universal capable compiler
4398 if ac_fn_c_try_compile "$LINENO"; then :
4400 # Check for potential -arch flags. It is not universal unless
4401 # there are at least two -arch flags with different values.
4404 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4405 if test -n "$ac_prev"; then
4407 i?86 | x86_64 | ppc | ppc64)
4408 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4411 ac_cv_c_bigendian=universal
4417 elif test "x$ac_word" = "x-arch"; then
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 if test $ac_cv_c_bigendian = unknown; then
4424 # See if sys/param.h defines the BYTE_ORDER macro.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <sys/param.h>
4433 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4434 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444 # It does; now see whether it defined to BIG_ENDIAN or not.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <sys/types.h>
4448 #include <sys/param.h>
4453 #if BYTE_ORDER != BIG_ENDIAN
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_cv_c_bigendian=yes
4464 ac_cv_c_bigendian=no
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 if test $ac_cv_c_bigendian = unknown; then
4471 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4479 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 # It does; now see whether it defined to _BIG_ENDIAN or not.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_c_bigendian=yes
4507 ac_cv_c_bigendian=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 if test $ac_cv_c_bigendian = unknown; then
4514 # Compile a test program.
4515 if test "$cross_compiling" = yes; then :
4516 # Try to guess by grepping values from an object file.
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 short int ascii_mm[] =
4520 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4521 short int ascii_ii[] =
4522 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4523 int use_ascii (int i) {
4524 return ascii_mm[i] + ascii_ii[i];
4526 short int ebcdic_ii[] =
4527 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] =
4529 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 int use_ebcdic (int i) {
4531 return ebcdic_mm[i] + ebcdic_ii[i];
4538 return use_ascii (foo) == use_ebcdic (foo);
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4545 ac_cv_c_bigendian=yes
4547 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4548 if test "$ac_cv_c_bigendian" = unknown; then
4549 ac_cv_c_bigendian=no
4551 # finding both strings is unlikely to happen, but who knows?
4552 ac_cv_c_bigendian=unknown
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 $ac_includes_default
4565 /* Are we little or big endian? From Harbison&Steele. */
4569 char c[sizeof (long int)];
4572 return u.c[sizeof (long int) - 1] == 1;
4578 if ac_fn_c_try_run "$LINENO"; then :
4579 ac_cv_c_bigendian=no
4581 ac_cv_c_bigendian=yes
4583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4584 conftest.$ac_objext conftest.beam conftest.$ac_ext
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4590 $as_echo "$ac_cv_c_bigendian" >&6; }
4591 case $ac_cv_c_bigendian in #(
4593 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4599 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4603 as_fn_error "unknown endianness
4604 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4608 $as_echo_n "checking for inline... " >&6; }
4609 if test "${ac_cv_c_inline+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4613 for ac_kw in inline __inline__ __inline; do
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 static $ac_kw foo_t static_foo () {return 0; }
4619 $ac_kw foo_t foo () {return 0; }
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_cv_c_inline=$ac_kw
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 test "$ac_cv_c_inline" != no && break
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4632 $as_echo "$ac_cv_c_inline" >&6; }
4634 case $ac_cv_c_inline in
4637 case $ac_cv_c_inline in
4639 *) ac_val=$ac_cv_c_inline;;
4641 cat >>confdefs.h <<_ACEOF
4643 #define inline $ac_val
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4650 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4651 if test "${ac_cv_c_const+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4660 /* FIXME: Include the comments suggested by Paul. */
4662 /* Ultrix mips cc rejects this. */
4663 typedef int charset[2];
4665 /* SunOS 4.1.1 cc rejects this. */
4666 char const *const *pcpcc;
4668 /* NEC SVR4.0.2 mips cc rejects this. */
4669 struct point {int x, y;};
4670 static struct point const zero = {0,0};
4671 /* AIX XL C 1.02.0.0 rejects this.
4672 It does not let you subtract one const X* pointer from another in
4673 an arm of an if-expression whose if-part is not a constant
4675 const char *g = "string";
4676 pcpcc = &g + (g ? g-g : 0);
4677 /* HPUX 7.0 cc rejects these. */
4679 ppc = (char**) pcpcc;
4680 pcpcc = (char const *const *) ppc;
4681 { /* SCO 3.2v4 cc rejects this. */
4683 char const *s = 0 ? (char *) 0 : (char const *) 0;
4688 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4690 const int *foo = &x[0];
4693 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4694 typedef const int *iptr;
4698 { /* AIX XL C 1.02.0.0 rejects this saying
4699 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4700 struct s { int j; const int *ap[3]; };
4701 struct s *b; b->j = 5;
4703 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4707 return !cs[0] && !zero.x;
4714 if ac_fn_c_try_compile "$LINENO"; then :
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4722 $as_echo "$ac_cv_c_const" >&6; }
4723 if test $ac_cv_c_const = no; then
4725 $as_echo "#define const /**/" >>confdefs.h
4729 # The cast to long int works around a bug in the HP C Compiler
4730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4732 # This bug is HP SR number 8606223364.
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
4734 $as_echo_n "checking size of unsigned short int... " >&6; }
4735 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int" "$ac_includes_default"; then :
4741 if test "$ac_cv_type_unsigned_short_int" = yes; then
4742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 { as_fn_set_status 77
4745 as_fn_error "cannot compute sizeof (unsigned short int)
4746 See \`config.log' for more details." "$LINENO" 5; }; }
4748 ac_cv_sizeof_unsigned_short_int=0
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
4754 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
4758 cat >>confdefs.h <<_ACEOF
4759 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4763 # The cast to long int works around a bug in the HP C Compiler
4764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4766 # This bug is HP SR number 8606223364.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4768 $as_echo_n "checking size of unsigned int... " >&6; }
4769 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4775 if test "$ac_cv_type_unsigned_int" = yes; then
4776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 { as_fn_set_status 77
4779 as_fn_error "cannot compute sizeof (unsigned int)
4780 See \`config.log' for more details." "$LINENO" 5; }; }
4782 ac_cv_sizeof_unsigned_int=0
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4788 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4792 cat >>confdefs.h <<_ACEOF
4793 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4797 # The cast to long int works around a bug in the HP C Compiler
4798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4800 # This bug is HP SR number 8606223364.
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
4802 $as_echo_n "checking size of unsigned long int... " >&6; }
4803 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
4809 if test "$ac_cv_type_unsigned_long_int" = yes; then
4810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812 { as_fn_set_status 77
4813 as_fn_error "cannot compute sizeof (unsigned long int)
4814 See \`config.log' for more details." "$LINENO" 5; }; }
4816 ac_cv_sizeof_unsigned_long_int=0
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
4822 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
4826 cat >>confdefs.h <<_ACEOF
4827 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
4831 # The cast to long int works around a bug in the HP C Compiler
4832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4834 # This bug is HP SR number 8606223364.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
4836 $as_echo_n "checking size of unsigned long long int... " >&6; }
4837 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4840 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int" "$ac_includes_default"; then :
4843 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
4844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4846 { as_fn_set_status 77
4847 as_fn_error "cannot compute sizeof (unsigned long long int)
4848 See \`config.log' for more details." "$LINENO" 5; }; }
4850 ac_cv_sizeof_unsigned_long_long_int=0
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
4856 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
4860 cat >>confdefs.h <<_ACEOF
4861 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
4865 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
4867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4869 eval as_val=\$$as_ac_var
4870 if test "x$as_val" = x""yes; then :
4871 cat >>confdefs.h <<_ACEOF
4872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4878 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4879 if test "x$ac_cv_type_pid_t" = x""yes; then :
4883 cat >>confdefs.h <<_ACEOF
4889 for ac_header in vfork.h
4891 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4892 if test "x$ac_cv_header_vfork_h" = x""yes; then :
4893 cat >>confdefs.h <<_ACEOF
4894 #define HAVE_VFORK_H 1
4901 for ac_func in fork vfork
4903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4905 eval as_val=\$$as_ac_var
4906 if test "x$as_val" = x""yes; then :
4907 cat >>confdefs.h <<_ACEOF
4908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4914 if test "x$ac_cv_func_fork" = xyes; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4916 $as_echo_n "checking for working fork... " >&6; }
4917 if test "${ac_cv_func_fork_works+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4920 if test "$cross_compiling" = yes; then :
4921 ac_cv_func_fork_works=cross
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 $ac_includes_default
4930 /* By Ruediger Kuhlmann. */
4937 if ac_fn_c_try_run "$LINENO"; then :
4938 ac_cv_func_fork_works=yes
4940 ac_cv_func_fork_works=no
4942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4943 conftest.$ac_objext conftest.beam conftest.$ac_ext
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4948 $as_echo "$ac_cv_func_fork_works" >&6; }
4951 ac_cv_func_fork_works=$ac_cv_func_fork
4953 if test "x$ac_cv_func_fork_works" = xcross; then
4955 *-*-amigaos* | *-*-msdosdjgpp*)
4956 # Override, as these systems have only a dummy fork() stub
4957 ac_cv_func_fork_works=no
4960 ac_cv_func_fork_works=yes
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4964 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4966 ac_cv_func_vfork_works=$ac_cv_func_vfork
4967 if test "x$ac_cv_func_vfork" = xyes; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4969 $as_echo_n "checking for working vfork... " >&6; }
4970 if test "${ac_cv_func_vfork_works+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4973 if test "$cross_compiling" = yes; then :
4974 ac_cv_func_vfork_works=cross
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 /* Thanks to Paul Eggert for this test. */
4979 $ac_includes_default
4980 #include <sys/wait.h>
4984 /* On some sparc systems, changes by the child to local and incoming
4985 argument registers are propagated back to the parent. The compiler
4986 is told about this with #include <vfork.h>, but some compilers
4987 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4988 static variable whose address is put into a register that is
4989 clobbered by the vfork. */
4992 sparc_address_test (int arg)
4994 sparc_address_test (arg) int arg;
5015 pid_t parent = getpid ();
5018 sparc_address_test (0);
5023 /* Here is another test for sparc vfork register problems. This
5024 test uses lots of local variables, at least as many local
5025 variables as main has allocated so far including compiler
5026 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5027 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5028 reuse the register of parent for one of the local variables,
5029 since it will think that parent can't possibly be used any more
5030 in this routine. Assigning to the local variable will thus
5031 munge parent in the parent process. */
5033 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5034 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5035 /* Convince the compiler that p..p7 are live; otherwise, it might
5036 use the same hardware register for all 8 local variables. */
5037 if (p != p1 || p != p2 || p != p3 || p != p4
5038 || p != p5 || p != p6 || p != p7)
5041 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5042 from child file descriptors. If the child closes a descriptor
5043 before it execs or exits, this munges the parent's descriptor
5044 as well. Test for this by closing stdout in the child. */
5045 _exit(close(fileno(stdout)) != 0);
5050 while (wait(&status) != child)
5053 /* Was there some problem with vforking? */
5056 /* Did the child fail? (This shouldn't happen.) */
5059 /* Did the vfork/compiler bug occur? */
5060 || parent != getpid()
5062 /* Did the file descriptor bug occur? */
5063 || fstat(fileno(stdout), &st) != 0
5068 if ac_fn_c_try_run "$LINENO"; then :
5069 ac_cv_func_vfork_works=yes
5071 ac_cv_func_vfork_works=no
5073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5074 conftest.$ac_objext conftest.beam conftest.$ac_ext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5079 $as_echo "$ac_cv_func_vfork_works" >&6; }
5082 if test "x$ac_cv_func_fork_works" = xcross; then
5083 ac_cv_func_vfork_works=$ac_cv_func_vfork
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5085 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5088 if test "x$ac_cv_func_vfork_works" = xyes; then
5090 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5094 $as_echo "#define vfork fork" >>confdefs.h
5097 if test "x$ac_cv_func_fork_works" = xyes; then
5099 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5103 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5106 ac_cv_func_setvbuf_reversed=no
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether client should be built" >&5
5111 $as_echo_n "checking whether client should be built... " >&6; }
5113 linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115 $as_echo "yes" >&6; }
5117 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; } ;;
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find a working nbd.h" >&5
5121 $as_echo_n "checking where to find a working nbd.h... " >&6; }
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5130 #define UNUSED __attribute__((__unused__))
5138 int UNUSED foo=NBD_CMD_DISC
5143 if ac_fn_c_try_compile "$LINENO"; then :
5145 $as_echo "#define NBD_H_LOCAL 1" >>confdefs.h
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5155 #include <linux/nbd.h>
5157 #define UNUSED __attribute__((__unused__))
5165 int UNUSED foo=NBD_CMD_DISC
5170 if ac_fn_c_try_compile "$LINENO"; then :
5172 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5174 NBD_H='<linux/nbd.h>'
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <linux/nbd.h>
5180 #define UNUSED __attribute__((__unused__))
5188 int UNUSED foo=NBD_CMD_DISC
5193 if ac_fn_c_try_compile "$LINENO"; then :
5195 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5197 NBD_H='<linux/nbd.h>'
5199 as_fn_error "Could not find an nbd.h from 2.6 or above." "$LINENO" 5
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 if test "$NBD_H" = '<linux/nbd.h>'
5213 { $as_echo "$as_me:${as_lineno-$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
5214 $as_echo "$as_me: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&2;}
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBD_H" >&5
5218 $as_echo "$NBD_H" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
5220 $as_echo_n "checking for library containing bind... " >&6; }
5221 if test "${ac_cv_search_bind+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5224 ac_func_search_save_LIBS=$LIBS
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5228 /* Override any GCC internal prototype to avoid an error.
5229 Use char because int might match the return type of a GCC
5230 builtin and then its argument prototype would still apply. */
5243 for ac_lib in '' socket; do
5244 if test -z "$ac_lib"; then
5245 ac_res="none required"
5248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5250 if ac_fn_c_try_link "$LINENO"; then :
5251 ac_cv_search_bind=$ac_res
5253 rm -f core conftest.err conftest.$ac_objext \
5255 if test "${ac_cv_search_bind+set}" = set; then :
5259 if test "${ac_cv_search_bind+set}" = set; then :
5262 ac_cv_search_bind=no
5265 LIBS=$ac_func_search_save_LIBS
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
5268 $as_echo "$ac_cv_search_bind" >&6; }
5269 ac_res=$ac_cv_search_bind
5270 if test "$ac_res" != no; then :
5271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5274 as_fn_error "Could not find an implementation of the bind() system call" "$LINENO" 5
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5278 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5279 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 ac_func_search_save_LIBS=$LIBS
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5286 /* Override any GCC internal prototype to avoid an error.
5287 Use char because int might match the return type of a GCC
5288 builtin and then its argument prototype would still apply. */
5296 return inet_ntoa ();
5301 for ac_lib in '' nsl; do
5302 if test -z "$ac_lib"; then
5303 ac_res="none required"
5306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5308 if ac_fn_c_try_link "$LINENO"; then :
5309 ac_cv_search_inet_ntoa=$ac_res
5311 rm -f core conftest.err conftest.$ac_objext \
5313 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5317 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5320 ac_cv_search_inet_ntoa=no
5323 LIBS=$ac_func_search_save_LIBS
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
5326 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
5327 ac_res=$ac_cv_search_inet_ntoa
5328 if test "$ac_res" != no; then :
5329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5332 as_fn_error "Could not find an implementation of the inet_ntoa() system call" "$LINENO" 5
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
5336 $as_echo_n "checking for library containing daemon... " >&6; }
5337 if test "${ac_cv_search_daemon+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5340 ac_func_search_save_LIBS=$LIBS
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5344 /* Override any GCC internal prototype to avoid an error.
5345 Use char because int might match the return type of a GCC
5346 builtin and then its argument prototype would still apply. */
5359 for ac_lib in '' resolv; do
5360 if test -z "$ac_lib"; then
5361 ac_res="none required"
5364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 ac_cv_search_daemon=$ac_res
5369 rm -f core conftest.err conftest.$ac_objext \
5371 if test "${ac_cv_search_daemon+set}" = set; then :
5375 if test "${ac_cv_search_daemon+set}" = set; then :
5378 ac_cv_search_daemon=no
5381 LIBS=$ac_func_search_save_LIBS
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
5384 $as_echo "$ac_cv_search_daemon" >&6; }
5385 ac_res=$ac_cv_search_daemon
5386 if test "$ac_res" != no; then :
5387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5390 as_fn_error "Could not find an implementation of the daemon() system call" "$LINENO" 5
5393 for ac_header in sys/mount.h
5395 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5398 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_SYS_MOUNT_H 1
5407 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
5409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5411 eval as_val=\$$as_ac_Header
5412 if test "x$as_val" = x""yes; then :
5413 cat >>confdefs.h <<_ACEOF
5414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5421 # Check whether --enable-glibtest was given.
5422 if test "${enable_glibtest+set}" = set; then :
5423 enableval=$enable_glibtest;
5429 pkg_config_args=glib-2.0
5434 pkg_config_args="$pkg_config_args gmodule-2.0"
5437 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5440 pkg_config_args="$pkg_config_args gobject-2.0"
5443 pkg_config_args="$pkg_config_args gthread-2.0"
5446 pkg_config_args="$pkg_config_args $module-2.0"
5453 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5464 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5486 if test -n "$PKG_CONFIG"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5488 $as_echo "$PKG_CONFIG" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5496 if test -z "$ac_cv_path_PKG_CONFIG"; then
5497 ac_pt_PKG_CONFIG=$PKG_CONFIG
5498 # Extract the first word of "pkg-config", so it can be a program name with args.
5499 set dummy pkg-config; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
5505 case $ac_pt_PKG_CONFIG in
5507 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5529 if test -n "$ac_pt_PKG_CONFIG"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5531 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5537 if test "x$ac_pt_PKG_CONFIG" = x; then
5540 case $cross_compiling:$ac_tool_warned in
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5546 PKG_CONFIG=$ac_pt_PKG_CONFIG
5549 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5553 if test -n "$PKG_CONFIG"; then
5554 _pkg_min_version=0.16
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5556 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5557 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5559 $as_echo "yes" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5570 if test "x$PKG_CONFIG" = x ; then
5575 min_glib_version=2.6.0
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
5577 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
5579 if test x$PKG_CONFIG != xno ; then
5580 ## don't try to run the test against uninstalled libtool libs
5581 if $PKG_CONFIG --uninstalled $pkg_config_args; then
5582 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5586 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5593 if test x"$no_glib" = x ; then
5594 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5595 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5596 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5598 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
5599 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
5600 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
5601 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5602 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
5603 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5604 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
5605 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5606 if test "x$enable_glibtest" = "xyes" ; then
5607 ac_save_CFLAGS="$CFLAGS"
5608 ac_save_LIBS="$LIBS"
5609 CFLAGS="$CFLAGS $GLIB_CFLAGS"
5610 LIBS="$GLIB_LIBS $LIBS"
5612 if test "$cross_compiling" = yes; then :
5613 echo $ac_n "cross compiling; assumed OK... $ac_c"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5625 int major, minor, micro;
5629 ignored = system ("touch conf.glibtest");
5631 /* HP/UX 9 (%@#!) writes to sscanf strings */
5632 tmp_version = g_strdup("$min_glib_version");
5633 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
5634 printf("%s, bad version string\n", "$min_glib_version");
5638 if ((glib_major_version != $glib_config_major_version) ||
5639 (glib_minor_version != $glib_config_minor_version) ||
5640 (glib_micro_version != $glib_config_micro_version))
5642 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5643 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5644 glib_major_version, glib_minor_version, glib_micro_version);
5645 printf ("*** was found! If pkg-config was correct, then it is best\n");
5646 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5647 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5648 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5649 printf("*** required on your system.\n");
5650 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5651 printf("*** to point to the correct configuration files\n");
5653 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5654 (glib_minor_version != GLIB_MINOR_VERSION) ||
5655 (glib_micro_version != GLIB_MICRO_VERSION))
5657 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5658 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5659 printf("*** library (version %d.%d.%d)\n",
5660 glib_major_version, glib_minor_version, glib_micro_version);
5664 if ((glib_major_version > major) ||
5665 ((glib_major_version == major) && (glib_minor_version > minor)) ||
5666 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5672 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5673 glib_major_version, glib_minor_version, glib_micro_version);
5674 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5675 major, minor, micro);
5676 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5678 printf("*** If you have already installed a sufficiently new version, this error\n");
5679 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5680 printf("*** being found. The easiest way to fix this is to remove the old version\n");
5681 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5682 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5683 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5684 printf("*** so that the correct libraries are found at run-time))\n");
5691 if ac_fn_c_try_run "$LINENO"; then :
5696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5697 conftest.$ac_objext conftest.beam conftest.$ac_ext
5700 CFLAGS="$ac_save_CFLAGS"
5701 LIBS="$ac_save_LIBS"
5704 if test "x$no_glib" = x ; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
5706 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 if test "$PKG_CONFIG" = "no" ; then
5712 echo "*** A new enough version of pkg-config was not found."
5713 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
5715 if test -f conf.glibtest ; then
5718 echo "*** Could not run GLIB test program, checking why..."
5719 ac_save_CFLAGS="$CFLAGS"
5720 ac_save_LIBS="$LIBS"
5721 CFLAGS="$CFLAGS $GLIB_CFLAGS"
5722 LIBS="$LIBS $GLIB_LIBS"
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5732 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5737 if ac_fn_c_try_link "$LINENO"; then :
5738 echo "*** The test program compiled, but did not run. This usually means"
5739 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
5740 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
5741 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5742 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5743 echo "*** is required on your system"
5745 echo "*** If you have an old version installed, it is best to remove it, although"
5746 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5748 echo "*** The test program failed to compile or link. See the file config.log for the"
5749 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 CFLAGS="$ac_save_CFLAGS"
5754 LIBS="$ac_save_LIBS"
5762 as_fn_error "Missing glib" "$LINENO" 5
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5772 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5773 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5774 $as_echo_n "(cached) " >&6
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <sys/types.h>
5779 #include <sys/wait.h>
5781 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5784 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5792 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5797 if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_header_sys_wait_h=yes
5800 ac_cv_header_sys_wait_h=no
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5805 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5806 if test $ac_cv_header_sys_wait_h = yes; then
5808 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5812 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5813 if test "x$ac_cv_type_off_t" = x""yes; then :
5817 cat >>confdefs.h <<_ACEOF
5818 #define off_t long int
5823 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5824 if test "x$ac_cv_type_pid_t" = x""yes; then :
5828 cat >>confdefs.h <<_ACEOF
5835 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
5837 ac_config_headers="$ac_config_headers config.h"
5839 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
5841 cat >confcache <<\_ACEOF
5842 # This file is a shell script that caches the results of configure
5843 # tests run on this system so they can be shared between configure
5844 # scripts and configure runs, see configure's option --config-cache.
5845 # It is not useful on other systems. If it contains results you don't
5846 # want to keep, you may remove or edit it.
5848 # config.status only pays attention to the cache file if you give it
5849 # the --recheck option to rerun configure.
5851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5857 # The following way of writing the cache mishandles newlines in values,
5858 # but we know of no workaround that is simple, portable, and efficient.
5859 # So, we kill variables containing newlines.
5860 # Ultrix sh set writes to stderr and can't be redirected directly,
5861 # and sets the high bit in the cache file unless we assign to the vars.
5863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5864 eval ac_val=\$$ac_var
5868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5872 _ | IFS | as_nl) ;; #(
5873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5874 *) { eval $ac_var=; unset $ac_var;} ;;
5880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5881 *${as_nl}ac_space=\ *)
5882 # `set' does not quote correctly, so add quotes: double-quote
5883 # substitution turns \\\\ into \\, and sed turns \\ into \.
5886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5889 # `set' quotes correctly as required by POSIX, so do not add quotes.
5890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5904 if test -w "$cache_file"; then
5905 test "x$cache_file" != "x/dev/null" &&
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5907 $as_echo "$as_me: updating cache $cache_file" >&6;}
5908 cat confcache >$cache_file
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5917 # Let make expand exec_prefix.
5918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5920 DEFS=-DHAVE_CONFIG_H
5924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5925 # 1. Remove the extension, and $U if already installed.
5926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5929 # will be set to the directory where LIBOBJS objects are built.
5930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5935 LTLIBOBJS=$ac_ltlibobjs
5938 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5939 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5943 as_fn_error "conditional \"AMDEP\" was never defined.
5944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5947 as_fn_error "conditional \"am__fastdepCC\" was never defined.
5948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5952 : ${CONFIG_STATUS=./config.status}
5954 ac_clean_files_save=$ac_clean_files
5955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5957 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5959 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5961 # Generated by $as_me.
5962 # Run this file to recreate the current configuration.
5963 # Compiler output produced by configure, useful for debugging
5964 # configure, is in config.log if it exists.
5970 SHELL=\${CONFIG_SHELL-$SHELL}
5973 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5974 ## -------------------- ##
5975 ## M4sh Initialization. ##
5976 ## -------------------- ##
5978 # Be more Bourne compatible
5979 DUALCASE=1; export DUALCASE # for MKS sh
5980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5983 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5984 # is contrary to our usage. Disable this feature.
5985 alias -g '${1+"$@"}'='"$@"'
5986 setopt NO_GLOB_SUBST
5988 case `(set -o) 2>/dev/null` in #(
6000 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6001 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6004 # Prefer a ksh shell builtin over an external printf program on Solaris,
6005 # but without wasting forks for bash or zsh.
6006 if test -z "$BASH_VERSION$ZSH_VERSION" \
6007 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6008 as_echo='print -r --'
6009 as_echo_n='print -rn --'
6010 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6011 as_echo='printf %s\n'
6012 as_echo_n='printf %s'
6014 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6015 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6016 as_echo_n='/usr/ucb/echo -n'
6018 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6019 as_echo_n_body='eval
6023 expr "X$arg" : "X\\(.*\\)$as_nl";
6024 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6026 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6028 export as_echo_n_body
6029 as_echo_n='sh -c $as_echo_n_body as_echo'
6032 as_echo='sh -c $as_echo_body as_echo'
6035 # The user is always right.
6036 if test "${PATH_SEPARATOR+set}" != set; then
6038 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6039 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6046 # We need space, tab and new line, in precisely that order. Quoting is
6047 # there to prevent editors from complaining about space-tab.
6048 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6049 # splitting by setting IFS to empty value.)
6052 # Find who we are. Look in the path if we contain no directory separator.
6054 *[\\/]* ) as_myself=$0 ;;
6055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6066 # We did not find ourselves, most probably we were run as `sh COMMAND'
6067 # in which case we are not to be found in the path.
6068 if test "x$as_myself" = x; then
6071 if test ! -f "$as_myself"; then
6072 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6076 # Unset variables that we do not need and which cause bugs (e.g. in
6077 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6078 # suppresses any "Segmentation fault" message there. '((' could
6079 # trigger a bug in pdksh 5.2.14.
6080 for as_var in BASH_ENV ENV MAIL MAILPATH
6081 do eval test x\${$as_var+set} = xset \
6082 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6095 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6098 # as_fn_error ERROR [LINENO LOG_FD]
6099 # ---------------------------------
6100 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6101 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6102 # script with status $?, using 1 if that was 0.
6105 as_status=$?; test $as_status -eq 0 && as_status=1
6107 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6108 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6110 $as_echo "$as_me: error: $1" >&2
6111 as_fn_exit $as_status
6115 # as_fn_set_status STATUS
6116 # -----------------------
6117 # Set $? to STATUS, without forking.
6121 } # as_fn_set_status
6125 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6135 # Portably unset VAR.
6138 { eval $1=; unset $1;}
6140 as_unset=as_fn_unset
6141 # as_fn_append VAR VALUE
6142 # ----------------------
6143 # Append the text in VALUE to the end of the definition contained in VAR. Take
6144 # advantage of any shell optimizations that allow amortized linear growth over
6145 # repeated appends, instead of the typical quadratic growth present in naive
6147 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6148 eval 'as_fn_append ()
6159 # as_fn_arith ARG...
6160 # ------------------
6161 # Perform arithmetic evaluation on the ARGs, and store the result in the
6162 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6163 # must be portable across $(()) and expr.
6164 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6165 eval 'as_fn_arith ()
6172 as_val=`expr "$@" || test $? -eq 1`
6177 if expr a : '\(a\)' >/dev/null 2>&1 &&
6178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6185 as_basename=basename
6190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6196 as_me=`$as_basename -- "$0" ||
6197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6198 X"$0" : 'X\(//\)$' \| \
6199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6201 sed '/^.*\/\([^/][^/]*\)\/*$/{
6215 # Avoid depending upon Character Ranges.
6216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6219 as_cr_digits='0123456789'
6220 as_cr_alnum=$as_cr_Letters$as_cr_digits
6222 ECHO_C= ECHO_N= ECHO_T=
6223 case `echo -n x` in #(((((
6225 case `echo 'xy\c'` in
6226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6228 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6235 rm -f conf$$ conf$$.exe conf$$.file
6236 if test -d conf$$.dir; then
6237 rm -f conf$$.dir/conf$$.file
6240 mkdir conf$$.dir 2>/dev/null
6242 if (echo >conf$$.file) 2>/dev/null; then
6243 if ln -s conf$$.file conf$$ 2>/dev/null; then
6245 # ... but there are two gotchas:
6246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6248 # In both cases, we have to default to `cp -p'.
6249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6251 elif ln conf$$.file conf$$ 2>/dev/null; then
6259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6260 rmdir conf$$.dir 2>/dev/null
6265 # Create "$as_dir" as a directory, including parents if necessary.
6270 -*) as_dir=./$as_dir;;
6272 test -d "$as_dir" || eval $as_mkdir_p || {
6276 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6277 *) as_qdir=$as_dir;;
6279 as_dirs="'$as_qdir' $as_dirs"
6280 as_dir=`$as_dirname -- "$as_dir" ||
6281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6282 X"$as_dir" : 'X\(//\)[^/]' \| \
6283 X"$as_dir" : 'X\(//\)$' \| \
6284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6285 $as_echo X"$as_dir" |
6286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6303 test -d "$as_dir" && break
6305 test -z "$as_dirs" || eval "mkdir $as_dirs"
6306 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6310 if mkdir -p . 2>/dev/null; then
6311 as_mkdir_p='mkdir -p "$as_dir"'
6313 test -d ./-p && rmdir ./-p
6317 if test -x / >/dev/null 2>&1; then
6320 if ls -dL / >/dev/null 2>&1; then
6327 if test -d "$1"; then
6333 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6334 ???[sx]*):;;*)false;;esac;fi
6338 as_executable_p=$as_test_x
6340 # Sed expression to map a string onto a valid CPP name.
6341 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6343 # Sed expression to map a string onto a valid variable name.
6344 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6348 ## ----------------------------------- ##
6349 ## Main body of $CONFIG_STATUS script. ##
6350 ## ----------------------------------- ##
6352 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6355 # Save the log message, to keep $0 and so on meaningful, and to
6356 # report actual input values of CONFIG_FILES etc. instead of their
6357 # values after options handling.
6359 This file was extended by nbd $as_me 2.9.13, which was
6360 generated by GNU Autoconf 2.64. Invocation command line was
6362 CONFIG_FILES = $CONFIG_FILES
6363 CONFIG_HEADERS = $CONFIG_HEADERS
6364 CONFIG_LINKS = $CONFIG_LINKS
6365 CONFIG_COMMANDS = $CONFIG_COMMANDS
6368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6373 case $ac_config_files in *"
6374 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6377 case $ac_config_headers in *"
6378 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6383 # Files that config.status was made for.
6384 config_files="$ac_config_files"
6385 config_headers="$ac_config_headers"
6386 config_commands="$ac_config_commands"
6390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6392 \`$as_me' instantiates files and other configuration actions
6393 from templates according to the current configuration. Unless the files
6394 and actions are specified as TAGs, all are instantiated by default.
6396 Usage: $0 [OPTION]... [TAG]...
6398 -h, --help print this help, then exit
6399 -V, --version print version number and configuration settings, then exit
6400 -q, --quiet, --silent
6401 do not print progress messages
6402 -d, --debug don't remove temporary files
6403 --recheck update $as_me by reconfiguring in the same conditions
6404 --file=FILE[:TEMPLATE]
6405 instantiate the configuration file FILE
6406 --header=FILE[:TEMPLATE]
6407 instantiate the configuration header FILE
6409 Configuration files:
6412 Configuration headers:
6415 Configuration commands:
6418 Report bugs to <wouter@debian.org>."
6421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6423 nbd config.status 2.9.13
6424 configured by $0, generated by GNU Autoconf 2.64,
6425 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6427 Copyright (C) 2009 Free Software Foundation, Inc.
6428 This config.status script is free software; the Free Software Foundation
6429 gives unlimited permission to copy, distribute and modify it."
6436 test -n "\$AWK" || AWK=awk
6439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6440 # The default lists apply if the user does not specify any file.
6446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6447 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6458 # Handling of the options.
6459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6462 $as_echo "$ac_cs_version"; exit ;;
6463 --debug | --debu | --deb | --de | --d | -d )
6465 --file | --fil | --fi | --f )
6468 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6470 as_fn_append CONFIG_FILES " '$ac_optarg'"
6471 ac_need_defaults=false;;
6472 --header | --heade | --head | --hea )
6475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6477 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6478 ac_need_defaults=false;;
6480 # Conflict between --help and --header
6481 as_fn_error "ambiguous option: \`$1'
6482 Try \`$0 --help' for more information.";;
6483 --help | --hel | -h )
6484 $as_echo "$ac_cs_usage"; exit ;;
6485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6490 -*) as_fn_error "unrecognized option: \`$1'
6491 Try \`$0 --help' for more information." ;;
6493 *) as_fn_append ac_config_targets " $1"
6494 ac_need_defaults=false ;;
6500 ac_configure_extra_args=
6502 if $ac_cs_silent; then
6504 ac_configure_extra_args="$ac_configure_extra_args --silent"
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6509 if \$ac_cs_recheck; then
6510 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6513 CONFIG_SHELL='$SHELL'
6519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6524 ## Running $as_me. ##
6530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6540 # Handling of arguments.
6541 for ac_config_target in $ac_config_targets
6543 case $ac_config_target in
6544 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6545 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6546 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6547 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
6548 "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
6549 "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
6550 "nbd-client.8") CONFIG_FILES="$CONFIG_FILES nbd-client.8" ;;
6552 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6557 # If the user did not use the arguments to specify the items to instantiate,
6558 # then the envvar interface is used. Set only those that are not.
6559 # We use the long form for the default assignment because of an extremely
6560 # bizarre bug on SunOS 4.1.3.
6561 if $ac_need_defaults; then
6562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6567 # Have a temporary directory for convenience. Make it in the build tree
6568 # simply because there is no reason against having it here, and in addition,
6569 # creating and moving files from /tmp can sometimes cause problems.
6570 # Hook for its removal unless debugging.
6571 # Note that there is a small window in which the directory will not be cleaned:
6572 # after its creation but before its name has been assigned to `$tmp'.
6576 trap 'exit_status=$?
6577 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6579 trap 'as_fn_exit 1' 1 2 13 15
6581 # Create a (secure) tmp directory for tmp files.
6584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6585 test -n "$tmp" && test -d "$tmp"
6588 tmp=./conf$$-$RANDOM
6589 (umask 077 && mkdir "$tmp")
6590 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6592 # Set up the scripts for CONFIG_FILES section.
6593 # No need to generate them if there are no CONFIG_FILES.
6594 # This happens for instance with `./config.status config.h'.
6595 if test -n "$CONFIG_FILES"; then
6598 ac_cr=`echo X | tr X '\015'`
6599 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6600 # But we know of no other shell where ac_cr would be empty at this
6601 # point, so we can use a bashism as a fallback.
6602 if test "x$ac_cr" = x; then
6603 eval ac_cr=\$\'\\r\'
6605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6612 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6617 echo "cat >conf$$subs.awk <<_ACEOF" &&
6618 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6621 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6622 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6624 for ac_last_try in false false false false false :; do
6625 . ./conf$$subs.sh ||
6626 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6628 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6629 if test $ac_delim_n = $ac_delim_num; then
6631 elif $ac_last_try; then
6632 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6644 s/^/S["/; s/!.*/"]=/
6654 s/\(.\{148\}\).*/\1/
6656 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6661 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6668 s/\(.\{148\}\).*/\1/
6670 s/["\\]/\\&/g; s/^/"/; s/$/"/
6674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6679 ' <conf$$subs.awk | sed '
6684 ' >>$CONFIG_STATUS || ac_write_fail=1
6685 rm -f conf$$subs.awk
6686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6688 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6689 for (key in S) S_is_set[key] = 1
6695 nfields = split(line, field, "@")
6697 len = length(field[1])
6698 for (i = 2; i < nfields; i++) {
6700 keylen = length(key)
6701 if (S_is_set[key]) {
6703 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6704 len += length(value) + length(field[++i])
6715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6716 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6717 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6720 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6721 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6724 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6725 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6726 # trailing colons and then remove the whole line if VPATH becomes empty
6727 # (actually we leave an empty line to preserve line numbers).
6728 if test "x$srcdir" = x.; then
6729 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6733 s/^\([^=]*=[ ]*\):*/\1/
6739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6740 fi # test -n "$CONFIG_FILES"
6742 # Set up the scripts for CONFIG_HEADERS section.
6743 # No need to generate them if there are no CONFIG_HEADERS.
6744 # This happens for instance with `./config.status Makefile'.
6745 if test -n "$CONFIG_HEADERS"; then
6746 cat >"$tmp/defines.awk" <<\_ACAWK ||
6750 # Transform confdefs.h into an awk script `defines.awk', embedded as
6751 # here-document in config.status, that substitutes the proper values into
6752 # config.h.in to produce config.h.
6754 # Create a delimiter string that does not exist in confdefs.h, to ease
6755 # handling of long lines.
6757 for ac_last_try in false false :; do
6758 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6759 if test -z "$ac_t"; then
6761 elif $ac_last_try; then
6762 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6768 # For the awk script, D is an array of macro values keyed by name,
6769 # likewise P contains macro parameters if any. Preserve backslash
6770 # newline sequences.
6772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6774 s/.\{148\}/&'"$ac_delim"'/g
6777 s/^[ ]*#[ ]*define[ ][ ]*/ /
6784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6786 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6791 D["\1"]=" \3\\\\\\n"\\/p
6793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6798 s/.\{148\}/&'"$ac_delim"'/g
6803 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6806 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6808 ' <confdefs.h | sed '
6809 s/'"$ac_delim"'/"\\\
6810 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6813 for (key in D) D_is_set[key] = 1
6816 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6818 split(line, arg, " ")
6819 if (arg[1] == "#") {
6823 defundef = substr(arg[1], 2)
6826 split(mac1, mac2, "(") #)
6828 prefix = substr(line, 1, index(line, defundef) - 1)
6829 if (D_is_set[macro]) {
6830 # Preserve the white space surrounding the "#".
6831 print prefix "define", macro P[macro] D[macro]
6834 # Replace #undef with comments. This is necessary, for example,
6835 # in the case of _POSIX_SOURCE, which is predefined and required
6836 # on some systems where configure will not decide to define it.
6837 if (defundef == "undef") {
6838 print "/*", prefix defundef, macro, "*/"
6846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6847 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6848 fi # test -n "$CONFIG_HEADERS"
6851 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6856 :[FHLC]) ac_mode=$ac_tag; continue;;
6858 case $ac_mode$ac_tag in
6860 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6861 :[FH]-) ac_tag=-:-;;
6862 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6879 -) ac_f="$tmp/stdin";;
6880 *) # Look for the file first in the build tree, then in the source tree
6881 # (if the path is not absolute). The absolute path cannot be DOS-style,
6882 # because $ac_f cannot contain `:'.
6886 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6888 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6890 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6891 as_fn_append ac_file_inputs " '$ac_f'"
6894 # Let's still pretend it is `configure' which instantiates (i.e., don't
6895 # use $as_me), people would be surprised to read:
6896 # /* config.h. Generated by config.status. */
6897 configure_input='Generated from '`
6898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6900 if test x"$ac_file" != x-; then
6901 configure_input="$ac_file. $configure_input"
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6903 $as_echo "$as_me: creating $ac_file" >&6;}
6905 # Neutralize special characters interpreted by sed in replacement strings.
6906 case $configure_input in #(
6907 *\&* | *\|* | *\\* )
6908 ac_sed_conf_input=`$as_echo "$configure_input" |
6909 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6910 *) ac_sed_conf_input=$configure_input;;
6914 *:-:* | *:-) cat >"$tmp/stdin" \
6915 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6920 ac_dir=`$as_dirname -- "$ac_file" ||
6921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6922 X"$ac_file" : 'X\(//\)[^/]' \| \
6923 X"$ac_file" : 'X\(//\)$' \| \
6924 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6925 $as_echo X"$ac_file" |
6926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6943 as_dir="$ac_dir"; as_fn_mkdir_p
6947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6949 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6950 # A ".." for each directory in $ac_dir_suffix.
6951 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6952 case $ac_top_builddir_sub in
6953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6957 ac_abs_top_builddir=$ac_pwd
6958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6959 # for backward compatibility:
6960 ac_top_builddir=$ac_top_build_prefix
6963 .) # We are building in place.
6965 ac_top_srcdir=$ac_top_builddir_sub
6966 ac_abs_top_srcdir=$ac_pwd ;;
6967 [\\/]* | ?:[\\/]* ) # Absolute name.
6968 ac_srcdir=$srcdir$ac_dir_suffix;
6969 ac_top_srcdir=$srcdir
6970 ac_abs_top_srcdir=$srcdir ;;
6972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6973 ac_top_srcdir=$ac_top_build_prefix$srcdir
6974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6987 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6991 [\\/$]* | ?:[\\/]* ) ;;
6992 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6997 # If the template does not know about datarootdir, expand it.
6998 # FIXME: This hack should be removed a few years after 2.60.
6999 ac_datarootdir_hack=; ac_datarootdir_seen=
7010 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7011 *datarootdir*) ac_datarootdir_seen=yes;;
7012 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7014 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7017 ac_datarootdir_hack='
7018 s&@datadir@&$datadir&g
7019 s&@docdir@&$docdir&g
7020 s&@infodir@&$infodir&g
7021 s&@localedir@&$localedir&g
7022 s&@mandir@&$mandir&g
7023 s&\\\${datarootdir}&$datarootdir&g' ;;
7027 # Neutralize VPATH when `$srcdir' = `.'.
7028 # Shell code in configure.ac might set extrasub.
7029 # FIXME: do we really want to maintain this feature?
7030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7031 ac_sed_extra="$ac_vpsub
7034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7037 s|@configure_input@|$ac_sed_conf_input|;t t
7038 s&@top_builddir@&$ac_top_builddir_sub&;t t
7039 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7040 s&@srcdir@&$ac_srcdir&;t t
7041 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7042 s&@top_srcdir@&$ac_top_srcdir&;t t
7043 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7044 s&@builddir@&$ac_builddir&;t t
7045 s&@abs_builddir@&$ac_abs_builddir&;t t
7046 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7047 s&@INSTALL@&$ac_INSTALL&;t t
7048 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7049 $ac_datarootdir_hack
7051 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7052 || as_fn_error "could not create $ac_file" "$LINENO" 5
7054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7055 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7058 which seems to be undefined. Please make sure it is defined." >&5
7059 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7060 which seems to be undefined. Please make sure it is defined." >&2;}
7064 -) cat "$tmp/out" && rm -f "$tmp/out";;
7065 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7067 || as_fn_error "could not create $ac_file" "$LINENO" 5
7073 if test x"$ac_file" != x-; then
7075 $as_echo "/* $configure_input */" \
7076 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7077 } >"$tmp/config.h" \
7078 || as_fn_error "could not create $ac_file" "$LINENO" 5
7079 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7084 mv "$tmp/config.h" "$ac_file" \
7085 || as_fn_error "could not create $ac_file" "$LINENO" 5
7088 $as_echo "/* $configure_input */" \
7089 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7090 || as_fn_error "could not create -" "$LINENO" 5
7092 # Compute "$ac_file"'s index in $config_headers.
7095 for _am_header in $config_headers :; do
7097 $_am_arg | $_am_arg:* )
7100 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7103 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7104 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7105 X"$_am_arg" : 'X\(//\)[^/]' \| \
7106 X"$_am_arg" : 'X\(//\)$' \| \
7107 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7108 $as_echo X"$_am_arg" |
7109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7125 s/.*/./; q'`/stamp-h$_am_stamp_count
7128 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7129 $as_echo "$as_me: executing $ac_file commands" >&6;}
7134 case $ac_file$ac_mode in
7135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
7136 # are listed without --file. Let's play safe and only enable the eval
7137 # if we detect the quoting.
7138 case $CONFIG_FILES in
7139 *\'*) eval set x "$CONFIG_FILES" ;;
7140 *) set x $CONFIG_FILES ;;
7145 # Strip MF so we end up with the name of the file.
7146 mf=`echo "$mf" | sed -e 's/:.*$//'`
7147 # Check whether this is an Automake generated Makefile or not.
7148 # We used to match only the files named `Makefile.in', but
7149 # some people rename them; so instead we look at the file content.
7150 # Grep'ing the first line is not enough: some people post-process
7151 # each Makefile.in and add a new line on top of each file to say so.
7152 # Grep'ing the whole file is not good either: AIX grep has a line
7153 # limit of 2048, but all sed's we know have understand at least 4000.
7154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7155 dirpart=`$as_dirname -- "$mf" ||
7156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7157 X"$mf" : 'X\(//\)[^/]' \| \
7158 X"$mf" : 'X\(//\)$' \| \
7159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7181 # Extract the definition of DEPDIR, am__include, and am__quote
7182 # from the Makefile without running `make'.
7183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7184 test -z "$DEPDIR" && continue
7185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7186 test -z "am__include" && continue
7187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7188 # When using ansi2knr, U may be empty or an underscore; expand it
7189 U=`sed -n 's/^U = //p' < "$mf"`
7190 # Find all dependency output files, they are included files with
7191 # $(DEPDIR) in their names. We invoke sed twice because it is the
7192 # simplest approach to changing $(DEPDIR) to its actual value in the
7194 for file in `sed -n "
7195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7197 # Make sure the directory exists.
7198 test -f "$dirpart/$file" && continue
7199 fdir=`$as_dirname -- "$file" ||
7200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7201 X"$file" : 'X\(//\)[^/]' \| \
7202 X"$file" : 'X\(//\)$' \| \
7203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7223 # echo "creating $dirpart/$file"
7224 echo '# dummy' > "$dirpart/$file"
7235 ac_clean_files=$ac_clean_files_save
7237 test $ac_write_fail = 0 ||
7238 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7241 # configure is writing to config.log, and then calls config.status.
7242 # config.status does its own redirection, appending to config.log.
7243 # Unfortunately, on DOS this fails, as config.log is still kept open
7244 # by configure, so config.status won't be able to write to it; its
7245 # output is simply discarded. So we exec the FD to /dev/null,
7246 # effectively closing config.log, so it can be properly (re)opened and
7247 # appended to by config.status. When coming back to configure, we
7248 # need to make the FD available again.
7249 if test "$no_create" != yes; then
7251 ac_config_status_args=
7252 test "$silent" = yes &&
7253 ac_config_status_args="$ac_config_status_args --quiet"
7255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7258 # would make configure fail if this is the last instruction.
7259 $ac_cs_success || as_fn_exit $?
7261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7263 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}