2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for nbd-proxy 0.1.
5
# Report bugs to <stgraber@ltsp.org>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and stgraber@ltsp.org
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
369
as_status=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
test -n "$DJDIR" || exec 7<&0 </dev/null
536
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537
# so uname gets run too.
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
ac_default_prefix=/usr/local
545
ac_config_libobj_dir=.
552
# Identity of this package.
553
PACKAGE_NAME='nbd-proxy'
554
PACKAGE_TARNAME='nbd-proxy'
555
PACKAGE_VERSION='0.1'
556
PACKAGE_STRING='nbd-proxy 0.1'
557
PACKAGE_BUGREPORT='stgraber@ltsp.org'
560
ac_unique_file="src/nbd-proxy.c"
561
# Factoring default headers for most tests.
562
ac_includes_default="\
564
#ifdef HAVE_SYS_TYPES_H
565
# include <sys/types.h>
567
#ifdef HAVE_SYS_STAT_H
568
# include <sys/stat.h>
574
# ifdef HAVE_STDLIB_H
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#ifdef HAVE_STRINGS_H
585
# include <strings.h>
587
#ifdef HAVE_INTTYPES_H
588
# include <inttypes.h>
597
ac_subst_vars='am__EXEEXT_FALSE
622
MAINTAINER_MODE_FALSE
632
INSTALL_STRIP_PROGRAM
674
program_transform_name
687
enable_option_checking
688
enable_maintainer_mode
689
enable_dependency_tracking
691
ac_precious_vars='build_alias
702
# Initialize some variables set by options.
704
ac_init_version=false
705
ac_unrecognized_opts=
707
# The variables have the same names as the options, with
708
# dashes changed to underlines.
716
program_transform_name=s,x,x,
724
# Installation directory options.
725
# These are left unexpanded so users can "make install exec_prefix=/foo"
726
# and all the variables that are supposed to be based on exec_prefix
727
# by default will actually change.
728
# Use braces instead of parens because sh, perl, etc. also accept them.
729
# (The list follows the same order as the GNU Coding Standards.)
730
bindir='${exec_prefix}/bin'
731
sbindir='${exec_prefix}/sbin'
732
libexecdir='${exec_prefix}/libexec'
733
datarootdir='${prefix}/share'
734
datadir='${datarootdir}'
735
sysconfdir='${prefix}/etc'
736
sharedstatedir='${prefix}/com'
737
localstatedir='${prefix}/var'
738
includedir='${prefix}/include'
739
oldincludedir='/usr/include'
740
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
741
infodir='${datarootdir}/info'
746
libdir='${exec_prefix}/lib'
747
localedir='${datarootdir}/locale'
748
mandir='${datarootdir}/man'
754
# If the previous option needs an argument, assign it.
755
if test -n "$ac_prev"; then
756
eval $ac_prev=\$ac_option
762
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766
# Accept the important Cygnus configure options, so we can diagnose typos.
768
case $ac_dashdash$ac_option in
772
-bindir | --bindir | --bindi | --bind | --bin | --bi)
774
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
777
-build | --build | --buil | --bui | --bu)
778
ac_prev=build_alias ;;
779
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
780
build_alias=$ac_optarg ;;
782
-cache-file | --cache-file | --cache-fil | --cache-fi \
783
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784
ac_prev=cache_file ;;
785
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787
cache_file=$ac_optarg ;;
790
cache_file=config.cache ;;
792
-datadir | --datadir | --datadi | --datad)
794
-datadir=* | --datadir=* | --datadi=* | --datad=*)
795
datadir=$ac_optarg ;;
797
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798
| --dataroo | --dataro | --datar)
799
ac_prev=datarootdir ;;
800
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802
datarootdir=$ac_optarg ;;
804
-disable-* | --disable-*)
805
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806
# Reject names that are not valid shell variable names.
807
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808
as_fn_error "invalid feature name: $ac_useropt"
809
ac_useropt_orig=$ac_useropt
810
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811
case $ac_user_opts in
815
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816
ac_unrecognized_sep=', ';;
818
eval enable_$ac_useropt=no ;;
820
-docdir | --docdir | --docdi | --doc | --do)
822
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830
-enable-* | --enable-*)
831
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832
# Reject names that are not valid shell variable names.
833
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834
as_fn_error "invalid feature name: $ac_useropt"
835
ac_useropt_orig=$ac_useropt
836
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837
case $ac_user_opts in
841
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842
ac_unrecognized_sep=', ';;
844
eval enable_$ac_useropt=\$ac_optarg ;;
846
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848
| --exec | --exe | --ex)
849
ac_prev=exec_prefix ;;
850
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852
| --exec=* | --exe=* | --ex=*)
853
exec_prefix=$ac_optarg ;;
855
-gas | --gas | --ga | --g)
856
# Obsolete; use --with-gas.
859
-help | --help | --hel | --he | -h)
861
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862
ac_init_help=recursive ;;
863
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864
ac_init_help=short ;;
866
-host | --host | --hos | --ho)
867
ac_prev=host_alias ;;
868
-host=* | --host=* | --hos=* | --ho=*)
869
host_alias=$ac_optarg ;;
871
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875
htmldir=$ac_optarg ;;
877
-includedir | --includedir | --includedi | --included | --include \
878
| --includ | --inclu | --incl | --inc)
879
ac_prev=includedir ;;
880
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881
| --includ=* | --inclu=* | --incl=* | --inc=*)
882
includedir=$ac_optarg ;;
884
-infodir | --infodir | --infodi | --infod | --info | --inf)
886
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887
infodir=$ac_optarg ;;
889
-libdir | --libdir | --libdi | --libd)
891
-libdir=* | --libdir=* | --libdi=* | --libd=*)
894
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895
| --libexe | --libex | --libe)
896
ac_prev=libexecdir ;;
897
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898
| --libexe=* | --libex=* | --libe=*)
899
libexecdir=$ac_optarg ;;
901
-localedir | --localedir | --localedi | --localed | --locale)
903
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904
localedir=$ac_optarg ;;
906
-localstatedir | --localstatedir | --localstatedi | --localstated \
907
| --localstate | --localstat | --localsta | --localst | --locals)
908
ac_prev=localstatedir ;;
909
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911
localstatedir=$ac_optarg ;;
913
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919
# Obsolete; use --without-fp.
922
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
923
| --no-cr | --no-c | -n)
926
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
927
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932
| --oldin | --oldi | --old | --ol | --o)
933
ac_prev=oldincludedir ;;
934
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937
oldincludedir=$ac_optarg ;;
939
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944
-program-prefix | --program-prefix | --program-prefi | --program-pref \
945
| --program-pre | --program-pr | --program-p)
946
ac_prev=program_prefix ;;
947
-program-prefix=* | --program-prefix=* | --program-prefi=* \
948
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949
program_prefix=$ac_optarg ;;
951
-program-suffix | --program-suffix | --program-suffi | --program-suff \
952
| --program-suf | --program-su | --program-s)
953
ac_prev=program_suffix ;;
954
-program-suffix=* | --program-suffix=* | --program-suffi=* \
955
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956
program_suffix=$ac_optarg ;;
958
-program-transform-name | --program-transform-name \
959
| --program-transform-nam | --program-transform-na \
960
| --program-transform-n | --program-transform- \
961
| --program-transform | --program-transfor \
962
| --program-transfo | --program-transf \
963
| --program-trans | --program-tran \
964
| --progr-tra | --program-tr | --program-t)
965
ac_prev=program_transform_name ;;
966
-program-transform-name=* | --program-transform-name=* \
967
| --program-transform-nam=* | --program-transform-na=* \
968
| --program-transform-n=* | --program-transform-=* \
969
| --program-transform=* | --program-transfor=* \
970
| --program-transfo=* | --program-transf=* \
971
| --program-trans=* | --program-tran=* \
972
| --progr-tra=* | --program-tr=* | --program-t=*)
973
program_transform_name=$ac_optarg ;;
975
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980
-psdir | --psdir | --psdi | --psd | --ps)
982
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
986
| -silent | --silent | --silen | --sile | --sil)
989
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993
sbindir=$ac_optarg ;;
995
-sharedstatedir | --sharedstatedir | --sharedstatedi \
996
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997
| --sharedst | --shareds | --shared | --share | --shar \
999
ac_prev=sharedstatedir ;;
1000
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004
sharedstatedir=$ac_optarg ;;
1006
-site | --site | --sit)
1008
-site=* | --site=* | --sit=*)
1011
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014
srcdir=$ac_optarg ;;
1016
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017
| --syscon | --sysco | --sysc | --sys | --sy)
1018
ac_prev=sysconfdir ;;
1019
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021
sysconfdir=$ac_optarg ;;
1023
-target | --target | --targe | --targ | --tar | --ta | --t)
1024
ac_prev=target_alias ;;
1025
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026
target_alias=$ac_optarg ;;
1028
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1031
-version | --version | --versio | --versi | --vers | -V)
1032
ac_init_version=: ;;
1035
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036
# Reject names that are not valid shell variable names.
1037
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038
as_fn_error "invalid package name: $ac_useropt"
1039
ac_useropt_orig=$ac_useropt
1040
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041
case $ac_user_opts in
1045
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1046
ac_unrecognized_sep=', ';;
1048
eval with_$ac_useropt=\$ac_optarg ;;
1050
-without-* | --without-*)
1051
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052
# Reject names that are not valid shell variable names.
1053
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054
as_fn_error "invalid package name: $ac_useropt"
1055
ac_useropt_orig=$ac_useropt
1056
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057
case $ac_user_opts in
1061
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1062
ac_unrecognized_sep=', ';;
1064
eval with_$ac_useropt=no ;;
1067
# Obsolete; use --with-x.
1070
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071
| --x-incl | --x-inc | --x-in | --x-i)
1072
ac_prev=x_includes ;;
1073
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1075
x_includes=$ac_optarg ;;
1077
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1078
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079
ac_prev=x_libraries ;;
1080
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1082
x_libraries=$ac_optarg ;;
1084
-*) as_fn_error "unrecognized option: \`$ac_option'
1085
Try \`$0 --help' for more information."
1089
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090
# Reject names that are not valid shell variable names.
1091
case $ac_envvar in #(
1092
'' | [0-9]* | *[!_$as_cr_alnum]* )
1093
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1095
eval $ac_envvar=\$ac_optarg
1096
export $ac_envvar ;;
1099
# FIXME: should be removed in autoconf 3.0.
1100
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1109
if test -n "$ac_prev"; then
1110
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1111
as_fn_error "missing argument to $ac_option"
1114
if test -n "$ac_unrecognized_opts"; then
1115
case $enable_option_checking in
1117
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1118
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1122
# Check all directory arguments for consistency.
1123
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124
datadir sysconfdir sharedstatedir localstatedir includedir \
1125
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126
libdir localedir mandir
1128
eval ac_val=\$$ac_var
1129
# Remove trailing slashes.
1132
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1133
eval $ac_var=\$ac_val;;
1135
# Be sure to have absolute directory names.
1137
[\\/$]* | ?:[\\/]* ) continue;;
1138
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1143
# There might be people who depend on the old broken behavior: `$host'
1144
# used to hold the argument of --host etc.
1145
# FIXME: To remove some day.
1148
target=$target_alias
1150
# FIXME: To remove some day.
1151
if test "x$host_alias" != x; then
1152
if test "x$build_alias" = x; then
1153
cross_compiling=maybe
1154
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155
If a cross compiler is detected then cross compile mode will be used." >&2
1156
elif test "x$build_alias" != "x$host_alias"; then
1162
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
test "$silent" = yes && exec 6>/dev/null
1167
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168
ac_ls_di=`ls -di .` &&
1169
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170
as_fn_error "working directory cannot be determined"
1171
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172
as_fn_error "pwd does not report name of working directory"
1175
# Find the source files, if location was not specified.
1176
if test -z "$srcdir"; then
1177
ac_srcdir_defaulted=yes
1178
# Try the directory containing this script, then the parent directory.
1179
ac_confdir=`$as_dirname -- "$as_myself" ||
1180
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181
X"$as_myself" : 'X\(//\)[^/]' \| \
1182
X"$as_myself" : 'X\(//\)$' \| \
1183
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1184
$as_echo X"$as_myself" |
1185
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203
if test ! -r "$srcdir/$ac_unique_file"; then
1207
ac_srcdir_defaulted=no
1209
if test ! -r "$srcdir/$ac_unique_file"; then
1210
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1213
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1217
# When building in place, set srcdir=.
1218
if test "$ac_abs_confdir" = "$ac_pwd"; then
1221
# Remove unnecessary trailing slashes from srcdir.
1222
# Double slashes in file names in object file debugging info
1223
# mess up M-x gdb in Emacs.
1225
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227
for ac_var in $ac_precious_vars; do
1228
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229
eval ac_env_${ac_var}_value=\$${ac_var}
1230
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235
# Report the --help message.
1237
if test "$ac_init_help" = "long"; then
1238
# Omit some internal or obsolete options to make the list less imposing.
1239
# This message is too long to be a string in the A/UX 3.1 sh.
1241
\`configure' configures nbd-proxy 0.1 to adapt to many kinds of systems.
1243
Usage: $0 [OPTION]... [VAR=VALUE]...
1245
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246
VAR=VALUE. See below for descriptions of some of the useful variables.
1248
Defaults for the options are specified in brackets.
1251
-h, --help display this help and exit
1252
--help=short display options specific to this package
1253
--help=recursive display the short help of all the included packages
1254
-V, --version display version information and exit
1255
-q, --quiet, --silent do not print \`checking...' messages
1256
--cache-file=FILE cache test results in FILE [disabled]
1257
-C, --config-cache alias for \`--cache-file=config.cache'
1258
-n, --no-create do not create output files
1259
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
Installation directories:
1262
--prefix=PREFIX install architecture-independent files in PREFIX
1263
[$ac_default_prefix]
1264
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267
By default, \`make install' will install all the files in
1268
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270
for instance \`--prefix=\$HOME'.
1272
For better control, use the options below.
1274
Fine tuning of the installation directories:
1275
--bindir=DIR user executables [EPREFIX/bin]
1276
--sbindir=DIR system admin executables [EPREFIX/sbin]
1277
--libexecdir=DIR program executables [EPREFIX/libexec]
1278
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281
--libdir=DIR object code libraries [EPREFIX/lib]
1282
--includedir=DIR C header files [PREFIX/include]
1283
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1284
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286
--infodir=DIR info documentation [DATAROOTDIR/info]
1287
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288
--mandir=DIR man documentation [DATAROOTDIR/man]
1289
--docdir=DIR documentation root [DATAROOTDIR/doc/nbd-proxy]
1290
--htmldir=DIR html documentation [DOCDIR]
1291
--dvidir=DIR dvi documentation [DOCDIR]
1292
--pdfdir=DIR pdf documentation [DOCDIR]
1293
--psdir=DIR ps documentation [DOCDIR]
1299
--program-prefix=PREFIX prepend PREFIX to installed program names
1300
--program-suffix=SUFFIX append SUFFIX to installed program names
1301
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305
if test -n "$ac_init_help"; then
1306
case $ac_init_help in
1307
short | recursive ) echo "Configuration of nbd-proxy 0.1:";;
1312
--disable-option-checking ignore unrecognized --enable/--with options
1313
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1314
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1315
--enable-maintainer-mode enable make rules and dependencies not useful
1316
(and sometimes confusing) to the casual installer
1317
--disable-dependency-tracking speeds up one-time build
1318
--enable-dependency-tracking do not reject slow dependency extractors
1320
Some influential environment variables:
1321
CC C compiler command
1322
CFLAGS C compiler flags
1323
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1324
nonstandard directory <lib dir>
1325
LIBS libraries to pass to the linker, e.g. -l<library>
1326
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1327
you have headers in a nonstandard directory <include dir>
1330
Use these variables to override the choices made by `configure' or to help
1331
it to find libraries and programs with nonstandard names/locations.
1333
Report bugs to <stgraber@ltsp.org>.
1338
if test "$ac_init_help" = "recursive"; then
1339
# If there are subdirs, report their specific --help.
1340
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341
test -d "$ac_dir" ||
1342
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1350
# A ".." for each directory in $ac_dir_suffix.
1351
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1352
case $ac_top_builddir_sub in
1353
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1357
ac_abs_top_builddir=$ac_pwd
1358
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1359
# for backward compatibility:
1360
ac_top_builddir=$ac_top_build_prefix
1363
.) # We are building in place.
1365
ac_top_srcdir=$ac_top_builddir_sub
1366
ac_abs_top_srcdir=$ac_pwd ;;
1367
[\\/]* | ?:[\\/]* ) # Absolute name.
1368
ac_srcdir=$srcdir$ac_dir_suffix;
1369
ac_top_srcdir=$srcdir
1370
ac_abs_top_srcdir=$srcdir ;;
1372
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1373
ac_top_srcdir=$ac_top_build_prefix$srcdir
1374
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1376
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1378
cd "$ac_dir" || { ac_status=$?; continue; }
1379
# Check for guested configure.
1380
if test -f "$ac_srcdir/configure.gnu"; then
1382
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1383
elif test -f "$ac_srcdir/configure"; then
1385
$SHELL "$ac_srcdir/configure" --help=recursive
1387
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1389
cd "$ac_pwd" || { ac_status=$?; break; }
1393
test -n "$ac_init_help" && exit $ac_status
1394
if $ac_init_version; then
1396
nbd-proxy configure 0.1
1397
generated by GNU Autoconf 2.65
1399
Copyright (C) 2009 Free Software Foundation, Inc.
1400
This configure script is free software; the Free Software Foundation
1401
gives unlimited permission to copy, distribute and modify it.
1406
## ------------------------ ##
1407
## Autoconf initialization. ##
1408
## ------------------------ ##
1410
# ac_fn_c_try_compile LINENO
1411
# --------------------------
1412
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1413
ac_fn_c_try_compile ()
1415
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1416
rm -f conftest.$ac_objext
1417
if { { ac_try="$ac_compile"
1419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1420
*) ac_try_echo=$ac_try;;
1422
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1423
$as_echo "$ac_try_echo"; } >&5
1424
(eval "$ac_compile") 2>conftest.err
1426
if test -s conftest.err; then
1427
grep -v '^ *+' conftest.err >conftest.er1
1428
cat conftest.er1 >&5
1429
mv -f conftest.er1 conftest.err
1431
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1432
test $ac_status = 0; } && {
1433
test -z "$ac_c_werror_flag" ||
1434
test ! -s conftest.err
1435
} && test -s conftest.$ac_objext; then :
1438
$as_echo "$as_me: failed program was:" >&5
1439
sed 's/^/| /' conftest.$ac_ext >&5
1443
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1444
as_fn_set_status $ac_retval
1446
} # ac_fn_c_try_compile
1448
# ac_fn_c_try_link LINENO
1449
# -----------------------
1450
# Try to link conftest.$ac_ext, and return whether this succeeded.
1453
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1454
rm -f conftest.$ac_objext conftest$ac_exeext
1455
if { { ac_try="$ac_link"
1457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1458
*) ac_try_echo=$ac_try;;
1460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1461
$as_echo "$ac_try_echo"; } >&5
1462
(eval "$ac_link") 2>conftest.err
1464
if test -s conftest.err; then
1465
grep -v '^ *+' conftest.err >conftest.er1
1466
cat conftest.er1 >&5
1467
mv -f conftest.er1 conftest.err
1469
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1470
test $ac_status = 0; } && {
1471
test -z "$ac_c_werror_flag" ||
1472
test ! -s conftest.err
1473
} && test -s conftest$ac_exeext && {
1474
test "$cross_compiling" = yes ||
1475
$as_test_x conftest$ac_exeext
1479
$as_echo "$as_me: failed program was:" >&5
1480
sed 's/^/| /' conftest.$ac_ext >&5
1484
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1485
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1486
# interfere with the next link command; also delete a directory that is
1487
# left behind by Apple's compiler. We do this before executing the actions.
1488
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1489
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1490
as_fn_set_status $ac_retval
1492
} # ac_fn_c_try_link
1494
# ac_fn_c_try_cpp LINENO
1495
# ----------------------
1496
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1499
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500
if { { ac_try="$ac_cpp conftest.$ac_ext"
1502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503
*) ac_try_echo=$ac_try;;
1505
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506
$as_echo "$ac_try_echo"; } >&5
1507
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1509
if test -s conftest.err; then
1510
grep -v '^ *+' conftest.err >conftest.er1
1511
cat conftest.er1 >&5
1512
mv -f conftest.er1 conftest.err
1514
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515
test $ac_status = 0; } >/dev/null && {
1516
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1517
test ! -s conftest.err
1521
$as_echo "$as_me: failed program was:" >&5
1522
sed 's/^/| /' conftest.$ac_ext >&5
1526
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527
as_fn_set_status $ac_retval
1531
# ac_fn_c_try_run LINENO
1532
# ----------------------
1533
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1534
# that executables *can* be run.
1537
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538
if { { ac_try="$ac_link"
1540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541
*) ac_try_echo=$ac_try;;
1543
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544
$as_echo "$ac_try_echo"; } >&5
1545
(eval "$ac_link") 2>&5
1547
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1549
{ { case "(($ac_try" in
1550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551
*) ac_try_echo=$ac_try;;
1553
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554
$as_echo "$ac_try_echo"; } >&5
1555
(eval "$ac_try") 2>&5
1557
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558
test $ac_status = 0; }; }; then :
1561
$as_echo "$as_me: program exited with status $ac_status" >&5
1562
$as_echo "$as_me: failed program was:" >&5
1563
sed 's/^/| /' conftest.$ac_ext >&5
1565
ac_retval=$ac_status
1567
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1568
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569
as_fn_set_status $ac_retval
1573
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574
# -------------------------------------------------------
1575
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576
# the include files in INCLUDES and setting the cache variable VAR
1578
ac_fn_c_check_header_mongrel ()
1580
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583
$as_echo_n "checking for $2... " >&6; }
1584
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585
$as_echo_n "(cached) " >&6
1588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589
$as_echo "$ac_res" >&6; }
1591
# Is the header compilable?
1592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593
$as_echo_n "checking $2 usability... " >&6; }
1594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595
/* end confdefs.h. */
1599
if ac_fn_c_try_compile "$LINENO"; then :
1600
ac_header_compiler=yes
1602
ac_header_compiler=no
1604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606
$as_echo "$ac_header_compiler" >&6; }
1608
# Is the header present?
1609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610
$as_echo_n "checking $2 presence... " >&6; }
1611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612
/* end confdefs.h. */
1615
if ac_fn_c_try_cpp "$LINENO"; then :
1616
ac_header_preproc=yes
1618
ac_header_preproc=no
1620
rm -f conftest.err conftest.$ac_ext
1621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622
$as_echo "$ac_header_preproc" >&6; }
1624
# So? What about this header?
1625
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1627
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1636
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1637
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1640
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1641
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1644
## -------------------------------- ##
1645
## Report this to stgraber@ltsp.org ##
1646
## -------------------------------- ##
1648
) | sed "s/^/$as_me: WARNING: /" >&2
1651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652
$as_echo_n "checking for $2... " >&6; }
1653
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654
$as_echo_n "(cached) " >&6
1656
eval "$3=\$ac_header_compiler"
1659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660
$as_echo "$ac_res" >&6; }
1662
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664
} # ac_fn_c_check_header_mongrel
1666
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667
# -------------------------------------------------------
1668
# Tests whether HEADER exists and can be compiled using the include files in
1669
# INCLUDES, setting the cache variable VAR accordingly.
1670
ac_fn_c_check_header_compile ()
1672
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674
$as_echo_n "checking for $2... " >&6; }
1675
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676
$as_echo_n "(cached) " >&6
1678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679
/* end confdefs.h. */
1683
if ac_fn_c_try_compile "$LINENO"; then :
1688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692
$as_echo "$ac_res" >&6; }
1693
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695
} # ac_fn_c_check_header_compile
1696
cat >config.log <<_ACEOF
1697
This file contains any messages produced by compilers while
1698
running configure, to aid debugging if configure makes a mistake.
1700
It was created by nbd-proxy $as_me 0.1, which was
1701
generated by GNU Autoconf 2.65. Invocation command line was
1713
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736
test -z "$as_dir" && as_dir=.
1737
$as_echo "PATH: $as_dir"
1753
# Keep a trace of the command line.
1754
# Strip out --no-create and --no-recursion so they do not pile up.
1755
# Strip out --silent because we don't want to record it for future runs.
1756
# Also quote any args containing shell meta-characters.
1757
# Make two passes to allow for proper duplicate-argument suppression.
1761
ac_must_keep_next=false
1767
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769
| -silent | --silent | --silen | --sile | --sil)
1772
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1777
as_fn_append ac_configure_args1 " '$ac_arg'"
1778
if test $ac_must_keep_next = true; then
1779
ac_must_keep_next=false # Got value, back to normal.
1782
*=* | --config-cache | -C | -disable-* | --disable-* \
1783
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785
| -with-* | --with-* | -without-* | --without-* | --x)
1786
case "$ac_configure_args0 " in
1787
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790
-* ) ac_must_keep_next=true ;;
1793
as_fn_append ac_configure_args " '$ac_arg'"
1798
{ ac_configure_args0=; unset ac_configure_args0;}
1799
{ ac_configure_args1=; unset ac_configure_args1;}
1801
# When interrupted or exit'd, cleanup temporary files, and complete
1802
# config.log. We remove comments because anyway the quotes in there
1803
# would cause problems or look ugly.
1804
# WARNING: Use '\'' to represent an apostrophe within the trap.
1805
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806
trap 'exit_status=$?
1807
# Save into config.log some information that might help in debugging.
1812
## ---------------- ##
1813
## Cache variables. ##
1814
## ---------------- ##
1817
# The following way of writing the cache mishandles newlines in values,
1819
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820
eval ac_val=\$$ac_var
1824
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1825
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1828
_ | IFS | as_nl) ;; #(
1829
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1830
*) { eval $ac_var=; unset $ac_var;} ;;
1835
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836
*${as_nl}ac_space=\ *)
1838
"s/'\''/'\''\\\\'\'''\''/g;
1839
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850
## ----------------- ##
1851
## Output variables. ##
1852
## ----------------- ##
1855
for ac_var in $ac_subst_vars
1857
eval ac_val=\$$ac_var
1859
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861
$as_echo "$ac_var='\''$ac_val'\''"
1865
if test -n "$ac_subst_files"; then
1867
## ------------------- ##
1868
## File substitutions. ##
1869
## ------------------- ##
1872
for ac_var in $ac_subst_files
1874
eval ac_val=\$$ac_var
1876
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878
$as_echo "$ac_var='\''$ac_val'\''"
1883
if test -s confdefs.h; then
1893
test "$ac_signal" != 0 &&
1894
$as_echo "$as_me: caught signal $ac_signal"
1895
$as_echo "$as_me: exit $exit_status"
1897
rm -f core *.core core.conftest.* &&
1898
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901
for ac_signal in 1 2 13 15; do
1902
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1906
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1907
rm -f -r conftest* confdefs.h
1909
$as_echo "/* confdefs.h */" > confdefs.h
1911
# Predefined preprocessor variables.
1913
cat >>confdefs.h <<_ACEOF
1914
#define PACKAGE_NAME "$PACKAGE_NAME"
1917
cat >>confdefs.h <<_ACEOF
1918
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1921
cat >>confdefs.h <<_ACEOF
1922
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1925
cat >>confdefs.h <<_ACEOF
1926
#define PACKAGE_STRING "$PACKAGE_STRING"
1929
cat >>confdefs.h <<_ACEOF
1930
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933
cat >>confdefs.h <<_ACEOF
1934
#define PACKAGE_URL "$PACKAGE_URL"
1938
# Let the site file select an alternate cache file if it wants to.
1939
# Prefer an explicitly selected file to automatically selected ones.
1942
if test -n "$CONFIG_SITE"; then
1943
ac_site_file1=$CONFIG_SITE
1944
elif test "x$prefix" != xNONE; then
1945
ac_site_file1=$prefix/share/config.site
1946
ac_site_file2=$prefix/etc/config.site
1948
ac_site_file1=$ac_default_prefix/share/config.site
1949
ac_site_file2=$ac_default_prefix/etc/config.site
1951
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1953
test "x$ac_site_file" = xNONE && continue
1954
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1955
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1956
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1957
sed 's/^/| /' "$ac_site_file" >&5
1962
if test -r "$cache_file"; then
1963
# Some versions of bash will fail to source /dev/null (special files
1964
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
1965
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1966
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1967
$as_echo "$as_me: loading cache $cache_file" >&6;}
1969
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1970
*) . "./$cache_file";;
1974
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1975
$as_echo "$as_me: creating cache $cache_file" >&6;}
1979
# Check that the precious variables saved in the cache have kept the same
1981
ac_cache_corrupted=false
1982
for ac_var in $ac_precious_vars; do
1983
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984
eval ac_new_set=\$ac_env_${ac_var}_set
1985
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986
eval ac_new_val=\$ac_env_${ac_var}_value
1987
case $ac_old_set,$ac_new_set in
1989
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991
ac_cache_corrupted=: ;;
1993
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1994
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995
ac_cache_corrupted=: ;;
1998
if test "x$ac_old_val" != "x$ac_new_val"; then
1999
# differences in whitespace do not lead to failure.
2000
ac_old_val_w=`echo x $ac_old_val`
2001
ac_new_val_w=`echo x $ac_new_val`
2002
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2003
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2004
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2005
ac_cache_corrupted=:
2007
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2008
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2009
eval $ac_var=\$ac_old_val
2011
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2012
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2013
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2014
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2017
# Pass precious variables to config.status.
2018
if test "$ac_new_set" = set; then
2020
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2021
*) ac_arg=$ac_var=$ac_new_val ;;
2023
case " $ac_configure_args " in
2024
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2025
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2029
if $ac_cache_corrupted; then
2030
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2031
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2033
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2034
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2036
## -------------------- ##
2037
## Main body of script. ##
2038
## -------------------- ##
2041
ac_cpp='$CPP $CPPFLAGS'
2042
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
am__api_version='1.11'
2051
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2052
for ac_t in install-sh install.sh shtool; do
2053
if test -f "$ac_dir/$ac_t"; then
2055
ac_install_sh="$ac_aux_dir/$ac_t -c"
2060
if test -z "$ac_aux_dir"; then
2061
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2064
# These three variables are undocumented and unsupported,
2065
# and are intended to be withdrawn in a future Autoconf release.
2066
# They can cause serious problems if a builder's source tree is in a directory
2067
# whose full name contains unusual characters.
2068
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
# Find a good install program. We prefer a C program (faster),
2074
# so one script is as good as another. But avoid the broken or
2075
# incompatible versions:
2076
# SysV /etc/install, /usr/sbin/install
2077
# SunOS /usr/etc/install
2078
# IRIX /sbin/install
2080
# AmigaOS /C/install, which installs bootblocks on floppy discs
2081
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2082
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2083
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2084
# OS/2's system install, which has a completely different semantic
2085
# ./install, which can be erroneously created by make from ./install.sh.
2086
# Reject install programs that cannot install multiple files.
2087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2088
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2089
if test -z "$INSTALL"; then
2090
if test "${ac_cv_path_install+set}" = set; then :
2091
$as_echo_n "(cached) " >&6
2093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097
test -z "$as_dir" && as_dir=.
2098
# Account for people who put trailing slashes in PATH elements.
2099
case $as_dir/ in #((
2100
./ | .// | /[cC]/* | \
2101
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2102
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2105
# OSF1 and SCO ODT 3.0 have their own names for install.
2106
# Don't use installbsd from OSF since it installs stuff as root
2108
for ac_prog in ginstall scoinst install; do
2109
for ac_exec_ext in '' $ac_executable_extensions; do
2110
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2111
if test $ac_prog = install &&
2112
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2113
# AIX install. It has an incompatible calling convention.
2115
elif test $ac_prog = install &&
2116
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117
# program-specific install script used by HP pwplus--don't use.
2120
rm -rf conftest.one conftest.two conftest.dir
2121
echo one > conftest.one
2122
echo two > conftest.two
2124
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2125
test -s conftest.one && test -s conftest.two &&
2126
test -s conftest.dir/conftest.one &&
2127
test -s conftest.dir/conftest.two
2129
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2142
rm -rf conftest.one conftest.two conftest.dir
2145
if test "${ac_cv_path_install+set}" = set; then
2146
INSTALL=$ac_cv_path_install
2148
# As a last resort, use the slow shell script. Don't cache a
2149
# value for INSTALL within a source directory, because that will
2150
# break other packages using the cache if that directory is
2151
# removed, or if the value is a relative name.
2152
INSTALL=$ac_install_sh
2155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2156
$as_echo "$INSTALL" >&6; }
2158
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2159
# It thinks the first close brace ends the variable substitution.
2160
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2162
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2164
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2167
$as_echo_n "checking whether build environment is sane... " >&6; }
2170
echo timestamp > conftest.file
2171
# Reject unsafe characters in $srcdir or the absolute working directory
2172
# name. Accept space and tab only in the latter.
2176
*[\\\"\#\$\&\'\`$am_lf]*)
2177
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2180
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2181
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2184
# Do `set' in a subshell so we don't clobber the current shell's
2185
# arguments. Must try -L first in case configure is actually a
2186
# symlink; some systems play weird games with the mod time of symlinks
2187
# (eg FreeBSD returns the mod time of the symlink's containing
2190
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2191
if test "$*" = "X"; then
2193
set X `ls -t "$srcdir/configure" conftest.file`
2196
if test "$*" != "X $srcdir/configure conftest.file" \
2197
&& test "$*" != "X conftest.file $srcdir/configure"; then
2199
# If neither matched, then we have a broken ls. This can happen
2200
# if, for instance, CONFIG_SHELL is bash and it inherits a
2201
# broken ls alias from the environment. This has actually
2202
# happened. Such a system could not be considered "sane".
2203
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2204
alias in your environment" "$LINENO" 5
2207
test "$2" = conftest.file
2213
as_fn_error "newly created file is older than distributed files!
2214
Check your system clock" "$LINENO" 5
2216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2217
$as_echo "yes" >&6; }
2218
test "$program_prefix" != NONE &&
2219
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2220
# Use a double $ so make ignores it.
2221
test "$program_suffix" != NONE &&
2222
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2223
# Double any \ or $.
2224
# By default was `s,x,x', remove it if useless.
2225
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2226
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2228
# expand $ac_aux_dir to an absolute path
2229
am_aux_dir=`cd $ac_aux_dir && pwd`
2231
if test x"${MISSING+set}" != xset; then
2234
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2236
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2239
# Use eval to expand $SHELL
2240
if eval "$MISSING --run true"; then
2241
am_missing_run="$MISSING --run "
2244
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2245
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2248
if test x"${install_sh}" != xset; then
2251
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2253
install_sh="\${SHELL} $am_aux_dir/install-sh"
2257
# Installed binaries are usually stripped using `strip' when the user
2258
# run `make install-strip'. However `strip' might not be the right
2259
# tool to use in cross-compilation environments, therefore Automake
2260
# will honor the `STRIP' environment variable to overrule this program.
2261
if test "$cross_compiling" != no; then
2262
if test -n "$ac_tool_prefix"; then
2263
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2264
set dummy ${ac_tool_prefix}strip; ac_word=$2
2265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2266
$as_echo_n "checking for $ac_word... " >&6; }
2267
if test "${ac_cv_prog_STRIP+set}" = set; then :
2268
$as_echo_n "(cached) " >&6
2270
if test -n "$STRIP"; then
2271
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277
test -z "$as_dir" && as_dir=.
2278
for ac_exec_ext in '' $ac_executable_extensions; do
2279
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2281
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2290
STRIP=$ac_cv_prog_STRIP
2291
if test -n "$STRIP"; then
2292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2293
$as_echo "$STRIP" >&6; }
2295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2296
$as_echo "no" >&6; }
2301
if test -z "$ac_cv_prog_STRIP"; then
2303
# Extract the first word of "strip", so it can be a program name with args.
2304
set dummy strip; ac_word=$2
2305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2306
$as_echo_n "checking for $ac_word... " >&6; }
2307
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2308
$as_echo_n "(cached) " >&6
2310
if test -n "$ac_ct_STRIP"; then
2311
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317
test -z "$as_dir" && as_dir=.
2318
for ac_exec_ext in '' $ac_executable_extensions; do
2319
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320
ac_cv_prog_ac_ct_STRIP="strip"
2321
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2330
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2331
if test -n "$ac_ct_STRIP"; then
2332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2333
$as_echo "$ac_ct_STRIP" >&6; }
2335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2336
$as_echo "no" >&6; }
2339
if test "x$ac_ct_STRIP" = x; then
2342
case $cross_compiling:$ac_tool_warned in
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2345
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2346
ac_tool_warned=yes ;;
2351
STRIP="$ac_cv_prog_STRIP"
2355
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2358
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2359
if test -z "$MKDIR_P"; then
2360
if test "${ac_cv_path_mkdir+set}" = set; then :
2361
$as_echo_n "(cached) " >&6
2363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2367
test -z "$as_dir" && as_dir=.
2368
for ac_prog in mkdir gmkdir; do
2369
for ac_exec_ext in '' $ac_executable_extensions; do
2370
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2371
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2372
'mkdir (GNU coreutils) '* | \
2373
'mkdir (coreutils) '* | \
2374
'mkdir (fileutils) '4.1*)
2375
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2385
test -d ./--version && rmdir ./--version
2386
if test "${ac_cv_path_mkdir+set}" = set; then
2387
MKDIR_P="$ac_cv_path_mkdir -p"
2389
# As a last resort, use the slow shell script. Don't cache a
2390
# value for MKDIR_P within a source directory, because that will
2391
# break other packages using the cache if that directory is
2392
# removed, or if the value is a relative name.
2393
MKDIR_P="$ac_install_sh -d"
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2397
$as_echo "$MKDIR_P" >&6; }
2401
[\\/$]* | ?:[\\/]*) ;;
2402
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2405
for ac_prog in gawk mawk nawk awk
2407
# Extract the first word of "$ac_prog", so it can be a program name with args.
2408
set dummy $ac_prog; ac_word=$2
2409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410
$as_echo_n "checking for $ac_word... " >&6; }
2411
if test "${ac_cv_prog_AWK+set}" = set; then :
2412
$as_echo_n "(cached) " >&6
2414
if test -n "$AWK"; then
2415
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421
test -z "$as_dir" && as_dir=.
2422
for ac_exec_ext in '' $ac_executable_extensions; do
2423
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424
ac_cv_prog_AWK="$ac_prog"
2425
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435
if test -n "$AWK"; then
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2437
$as_echo "$AWK" >&6; }
2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440
$as_echo "no" >&6; }
2444
test -n "$AWK" && break
2447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2448
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2450
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2451
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2452
$as_echo_n "(cached) " >&6
2454
cat >conftest.make <<\_ACEOF
2457
@echo '@@@%%%=$(MAKE)=@@@%%%'
2459
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2460
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2462
eval ac_cv_prog_make_${ac_make}_set=yes;;
2464
eval ac_cv_prog_make_${ac_make}_set=no;;
2468
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470
$as_echo "yes" >&6; }
2473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474
$as_echo "no" >&6; }
2475
SET_MAKE="MAKE=${MAKE-make}"
2478
rm -rf .tst 2>/dev/null
2479
mkdir .tst 2>/dev/null
2480
if test -d .tst; then
2485
rmdir .tst 2>/dev/null
2487
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2488
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2489
# is not polluted with repeated "-I."
2490
am__isrc=' -I$(srcdir)'
2491
# test to see if srcdir already configured
2492
if test -f $srcdir/config.status; then
2493
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2497
# test whether we have cygpath
2498
if test -z "$CYGPATH_W"; then
2499
if (cygpath --version) >/dev/null 2>/dev/null; then
2500
CYGPATH_W='cygpath -w'
2507
# Define the identity of the package.
2512
cat >>confdefs.h <<_ACEOF
2513
#define PACKAGE "$PACKAGE"
2517
cat >>confdefs.h <<_ACEOF
2518
#define VERSION "$VERSION"
2521
# Some tools Automake needs.
2523
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2526
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2529
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2532
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2535
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2537
# We need awk for the "check" target. The system "awk" is bad on
2539
# Always define AMTAR for backward compatibility.
2541
AMTAR=${AMTAR-"${am_missing_run}tar"}
2543
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2550
ac_config_headers="$ac_config_headers config.h"
2553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2554
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2555
# Check whether --enable-maintainer-mode was given.
2556
if test "${enable_maintainer_mode+set}" = set; then :
2557
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2559
USE_MAINTAINER_MODE=no
2562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2563
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2564
if test $USE_MAINTAINER_MODE = yes; then
2565
MAINTAINER_MODE_TRUE=
2566
MAINTAINER_MODE_FALSE='#'
2568
MAINTAINER_MODE_TRUE='#'
2569
MAINTAINER_MODE_FALSE=
2572
MAINT=$MAINTAINER_MODE_TRUE
2576
# Checks for programs.
2578
ac_cpp='$CPP $CPPFLAGS'
2579
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
if test -n "$ac_tool_prefix"; then
2583
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586
$as_echo_n "checking for $ac_word... " >&6; }
2587
if test "${ac_cv_prog_CC+set}" = set; then :
2588
$as_echo_n "(cached) " >&6
2590
if test -n "$CC"; then
2591
ac_cv_prog_CC="$CC" # Let the user override the test.
2593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597
test -z "$as_dir" && as_dir=.
2598
for ac_exec_ext in '' $ac_executable_extensions; do
2599
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611
if test -n "$CC"; then
2612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2613
$as_echo "$CC" >&6; }
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616
$as_echo "no" >&6; }
2621
if test -z "$ac_cv_prog_CC"; then
2623
# Extract the first word of "gcc", so it can be a program name with args.
2624
set dummy gcc; ac_word=$2
2625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626
$as_echo_n "checking for $ac_word... " >&6; }
2627
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2628
$as_echo_n "(cached) " >&6
2630
if test -n "$ac_ct_CC"; then
2631
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637
test -z "$as_dir" && as_dir=.
2638
for ac_exec_ext in '' $ac_executable_extensions; do
2639
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640
ac_cv_prog_ac_ct_CC="gcc"
2641
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651
if test -n "$ac_ct_CC"; then
2652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2653
$as_echo "$ac_ct_CC" >&6; }
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656
$as_echo "no" >&6; }
2659
if test "x$ac_ct_CC" = x; then
2662
case $cross_compiling:$ac_tool_warned in
2664
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666
ac_tool_warned=yes ;;
2674
if test -z "$CC"; then
2675
if test -n "$ac_tool_prefix"; then
2676
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2677
set dummy ${ac_tool_prefix}cc; ac_word=$2
2678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679
$as_echo_n "checking for $ac_word... " >&6; }
2680
if test "${ac_cv_prog_CC+set}" = set; then :
2681
$as_echo_n "(cached) " >&6
2683
if test -n "$CC"; then
2684
ac_cv_prog_CC="$CC" # Let the user override the test.
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
test -z "$as_dir" && as_dir=.
2691
for ac_exec_ext in '' $ac_executable_extensions; do
2692
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693
ac_cv_prog_CC="${ac_tool_prefix}cc"
2694
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704
if test -n "$CC"; then
2705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706
$as_echo "$CC" >&6; }
2708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709
$as_echo "no" >&6; }
2715
if test -z "$CC"; then
2716
# Extract the first word of "cc", so it can be a program name with args.
2717
set dummy cc; ac_word=$2
2718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719
$as_echo_n "checking for $ac_word... " >&6; }
2720
if test "${ac_cv_prog_CC+set}" = set; then :
2721
$as_echo_n "(cached) " >&6
2723
if test -n "$CC"; then
2724
ac_cv_prog_CC="$CC" # Let the user override the test.
2727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731
test -z "$as_dir" && as_dir=.
2732
for ac_exec_ext in '' $ac_executable_extensions; do
2733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2735
ac_prog_rejected=yes
2739
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746
if test $ac_prog_rejected = yes; then
2747
# We found a bogon in the path, so make sure we never use it.
2748
set dummy $ac_cv_prog_CC
2750
if test $# != 0; then
2751
# We chose a different compiler from the bogus one.
2752
# However, it has the same basename, so the bogon will be chosen
2753
# first if we set CC to just the basename; use the full file name.
2755
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2761
if test -n "$CC"; then
2762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763
$as_echo "$CC" >&6; }
2765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766
$as_echo "no" >&6; }
2771
if test -z "$CC"; then
2772
if test -n "$ac_tool_prefix"; then
2773
for ac_prog in cl.exe
2775
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778
$as_echo_n "checking for $ac_word... " >&6; }
2779
if test "${ac_cv_prog_CC+set}" = set; then :
2780
$as_echo_n "(cached) " >&6
2782
if test -n "$CC"; then
2783
ac_cv_prog_CC="$CC" # Let the user override the test.
2785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789
test -z "$as_dir" && as_dir=.
2790
for ac_exec_ext in '' $ac_executable_extensions; do
2791
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803
if test -n "$CC"; then
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805
$as_echo "$CC" >&6; }
2807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808
$as_echo "no" >&6; }
2812
test -n "$CC" && break
2815
if test -z "$CC"; then
2817
for ac_prog in cl.exe
2819
# Extract the first word of "$ac_prog", so it can be a program name with args.
2820
set dummy $ac_prog; ac_word=$2
2821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822
$as_echo_n "checking for $ac_word... " >&6; }
2823
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2824
$as_echo_n "(cached) " >&6
2826
if test -n "$ac_ct_CC"; then
2827
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833
test -z "$as_dir" && as_dir=.
2834
for ac_exec_ext in '' $ac_executable_extensions; do
2835
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836
ac_cv_prog_ac_ct_CC="$ac_prog"
2837
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847
if test -n "$ac_ct_CC"; then
2848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849
$as_echo "$ac_ct_CC" >&6; }
2851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852
$as_echo "no" >&6; }
2856
test -n "$ac_ct_CC" && break
2859
if test "x$ac_ct_CC" = x; then
2862
case $cross_compiling:$ac_tool_warned in
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866
ac_tool_warned=yes ;;
2875
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877
as_fn_error "no acceptable C compiler found in \$PATH
2878
See \`config.log' for more details." "$LINENO" 5; }
2880
# Provide some information about the compiler.
2881
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2884
for ac_option in --version -v -V -qversion; do
2885
{ { ac_try="$ac_compiler $ac_option >&5"
2887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888
*) ac_try_echo=$ac_try;;
2890
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891
$as_echo "$ac_try_echo"; } >&5
2892
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2894
if test -s conftest.err; then
2896
... rest of stderr output deleted ...
2897
10q' conftest.err >conftest.er1
2898
cat conftest.er1 >&5
2900
rm -f conftest.er1 conftest.err
2901
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902
test $ac_status = 0; }
2905
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906
/* end confdefs.h. */
2916
ac_clean_files_save=$ac_clean_files
2917
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2918
# Try to create an executable without -o first, disregard a.out.
2919
# It will help us diagnose broken compilers, and finding out an intuition
2921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2922
$as_echo_n "checking whether the C compiler works... " >&6; }
2923
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2925
# The possible output files:
2926
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2929
for ac_file in $ac_files
2932
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2933
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2938
if { { ac_try="$ac_link_default"
2940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941
*) ac_try_echo=$ac_try;;
2943
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2944
$as_echo "$ac_try_echo"; } >&5
2945
(eval "$ac_link_default") 2>&5
2947
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948
test $ac_status = 0; }; then :
2949
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2950
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2951
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2952
# so that the user can short-circuit this test for compilers unknown to
2954
for ac_file in $ac_files ''
2956
test -f "$ac_file" || continue
2958
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2961
# We found the default executable, but exeext='' is most
2965
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2967
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969
# We set ac_cv_exeext here because the later test for it is not
2970
# safe: cross compilers may not add the suffix if given an `-o'
2971
# argument, so we may need to know it at that point already.
2972
# Even if this section looks crufty: it has the advantage of
2979
test "$ac_cv_exeext" = no && ac_cv_exeext=
2984
if test -z "$ac_file"; then :
2985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986
$as_echo "no" >&6; }
2987
$as_echo "$as_me: failed program was:" >&5
2988
sed 's/^/| /' conftest.$ac_ext >&5
2990
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992
{ as_fn_set_status 77
2993
as_fn_error "C compiler cannot create executables
2994
See \`config.log' for more details." "$LINENO" 5; }; }
2996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997
$as_echo "yes" >&6; }
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3000
$as_echo_n "checking for C compiler default output file name... " >&6; }
3001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3002
$as_echo "$ac_file" >&6; }
3003
ac_exeext=$ac_cv_exeext
3005
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3006
ac_clean_files=$ac_clean_files_save
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3008
$as_echo_n "checking for suffix of executables... " >&6; }
3009
if { { ac_try="$ac_link"
3011
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012
*) ac_try_echo=$ac_try;;
3014
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015
$as_echo "$ac_try_echo"; } >&5
3016
(eval "$ac_link") 2>&5
3018
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019
test $ac_status = 0; }; then :
3020
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3021
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3022
# work properly (i.e., refer to `conftest.exe'), while it won't with
3024
for ac_file in conftest.exe conftest conftest.*; do
3025
test -f "$ac_file" || continue
3027
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036
as_fn_error "cannot compute suffix of executables: cannot compile and link
3037
See \`config.log' for more details." "$LINENO" 5; }
3039
rm -f conftest conftest$ac_cv_exeext
3040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3041
$as_echo "$ac_cv_exeext" >&6; }
3043
rm -f conftest.$ac_ext
3044
EXEEXT=$ac_cv_exeext
3046
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047
/* end confdefs.h. */
3052
FILE *f = fopen ("conftest.out", "w");
3053
return ferror (f) || fclose (f) != 0;
3059
ac_clean_files="$ac_clean_files conftest.out"
3060
# Check that the compiler produces executables we can run. If not, either
3061
# the compiler is broken, or we cross compile.
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3063
$as_echo_n "checking whether we are cross compiling... " >&6; }
3064
if test "$cross_compiling" != yes; then
3065
{ { ac_try="$ac_link"
3067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068
*) ac_try_echo=$ac_try;;
3070
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071
$as_echo "$ac_try_echo"; } >&5
3072
(eval "$ac_link") 2>&5
3074
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075
test $ac_status = 0; }
3076
if { ac_try='./conftest$ac_cv_exeext'
3077
{ { case "(($ac_try" in
3078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079
*) ac_try_echo=$ac_try;;
3081
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082
$as_echo "$ac_try_echo"; } >&5
3083
(eval "$ac_try") 2>&5
3085
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086
test $ac_status = 0; }; }; then
3089
if test "$cross_compiling" = maybe; then
3092
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094
as_fn_error "cannot run C compiled programs.
3095
If you meant to cross compile, use \`--host'.
3096
See \`config.log' for more details." "$LINENO" 5; }
3100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3101
$as_echo "$cross_compiling" >&6; }
3103
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3104
ac_clean_files=$ac_clean_files_save
3105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3106
$as_echo_n "checking for suffix of object files... " >&6; }
3107
if test "${ac_cv_objext+set}" = set; then :
3108
$as_echo_n "(cached) " >&6
3110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111
/* end confdefs.h. */
3121
rm -f conftest.o conftest.obj
3122
if { { ac_try="$ac_compile"
3124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125
*) ac_try_echo=$ac_try;;
3127
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128
$as_echo "$ac_try_echo"; } >&5
3129
(eval "$ac_compile") 2>&5
3131
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132
test $ac_status = 0; }; then :
3133
for ac_file in conftest.o conftest.obj conftest.*; do
3134
test -f "$ac_file" || continue;
3136
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3137
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3142
$as_echo "$as_me: failed program was:" >&5
3143
sed 's/^/| /' conftest.$ac_ext >&5
3145
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147
as_fn_error "cannot compute suffix of object files: cannot compile
3148
See \`config.log' for more details." "$LINENO" 5; }
3150
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3153
$as_echo "$ac_cv_objext" >&6; }
3154
OBJEXT=$ac_cv_objext
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3157
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3158
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3159
$as_echo_n "(cached) " >&6
3161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162
/* end confdefs.h. */
3175
if ac_fn_c_try_compile "$LINENO"; then :
3180
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3185
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3186
if test $ac_compiler_gnu = yes; then
3191
ac_test_CFLAGS=${CFLAGS+set}
3192
ac_save_CFLAGS=$CFLAGS
3193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3194
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3195
if test "${ac_cv_prog_cc_g+set}" = set; then :
3196
$as_echo_n "(cached) " >&6
3198
ac_save_c_werror_flag=$ac_c_werror_flag
3199
ac_c_werror_flag=yes
3202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203
/* end confdefs.h. */
3213
if ac_fn_c_try_compile "$LINENO"; then :
3217
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218
/* end confdefs.h. */
3228
if ac_fn_c_try_compile "$LINENO"; then :
3231
ac_c_werror_flag=$ac_save_c_werror_flag
3233
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234
/* end confdefs.h. */
3244
if ac_fn_c_try_compile "$LINENO"; then :
3247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252
ac_c_werror_flag=$ac_save_c_werror_flag
3254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3255
$as_echo "$ac_cv_prog_cc_g" >&6; }
3256
if test "$ac_test_CFLAGS" = set; then
3257
CFLAGS=$ac_save_CFLAGS
3258
elif test $ac_cv_prog_cc_g = yes; then
3259
if test "$GCC" = yes; then
3265
if test "$GCC" = yes; then
3271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3272
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3273
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3274
$as_echo_n "(cached) " >&6
3276
ac_cv_prog_cc_c89=no
3278
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279
/* end confdefs.h. */
3282
#include <sys/types.h>
3283
#include <sys/stat.h>
3284
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285
struct buf { int x; };
3286
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287
static char *e (p, i)
3293
static char *f (char * (*g) (char **, int), char **p, ...)
3298
s = g (p, va_arg (v,int));
3303
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304
function prototypes and stuff, but not '\xHH' hex character constants.
3305
These don't provoke an error unfortunately, instead are silently treated
3306
as 'x'. The following induces an error, until -std is added to get
3307
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308
array size at least. It's necessary to write '\x00'==0 to get something
3309
that's true only with -std. */
3310
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313
inside strings and character constants. */
3315
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317
int test (int i, double x);
3318
struct s1 {int (*f) (int a);};
3319
struct s2 {int (*f) (double a);};
3320
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334
CC="$ac_save_CC $ac_arg"
3335
if ac_fn_c_try_compile "$LINENO"; then :
3336
ac_cv_prog_cc_c89=$ac_arg
3338
rm -f core conftest.err conftest.$ac_objext
3339
test "x$ac_cv_prog_cc_c89" != "xno" && break
3341
rm -f conftest.$ac_ext
3346
case "x$ac_cv_prog_cc_c89" in
3348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3349
$as_echo "none needed" >&6; } ;;
3351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3352
$as_echo "unsupported" >&6; } ;;
3354
CC="$CC $ac_cv_prog_cc_c89"
3355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3356
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3358
if test "x$ac_cv_prog_cc_c89" != xno; then :
3363
ac_cpp='$CPP $CPPFLAGS'
3364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367
DEPDIR="${am__leading_dot}deps"
3369
ac_config_commands="$ac_config_commands depfiles"
3372
am_make=${MAKE-make}
3373
cat > confinc << 'END'
3375
@echo this is the am__doit target
3378
# If we don't find an include directive, just comment out the code.
3379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3380
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3384
# First try GNU make style include.
3385
echo "include confinc" > confmf
3386
# Ignore all kinds of additional output from `make'.
3387
case `$am_make -s -f confmf 2> /dev/null` in #(
3388
*the\ am__doit\ target*)
3394
# Now try BSD make style include.
3395
if test "$am__include" = "#"; then
3396
echo '.include "confinc"' > confmf
3397
case `$am_make -s -f confmf 2> /dev/null` in #(
3398
*the\ am__doit\ target*)
3399
am__include=.include
3407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3408
$as_echo "$_am_result" >&6; }
3409
rm -f confinc confmf
3411
# Check whether --enable-dependency-tracking was given.
3412
if test "${enable_dependency_tracking+set}" = set; then :
3413
enableval=$enable_dependency_tracking;
3416
if test "x$enable_dependency_tracking" != xno; then
3417
am_depcomp="$ac_aux_dir/depcomp"
3420
if test "x$enable_dependency_tracking" != xno; then
3430
depcc="$CC" am_compiler_list=
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3433
$as_echo_n "checking dependency style of $depcc... " >&6; }
3434
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3435
$as_echo_n "(cached) " >&6
3437
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438
# We make a subdir and do the tests there. Otherwise we can end up
3439
# making bogus files that we don't know about and never remove. For
3440
# instance it was reported that on HP-UX the gcc test will end up
3441
# making a dummy file named `D' -- because `-MD' means `put the output
3444
# Copy depcomp to subdir because otherwise we won't find it if we're
3445
# using a relative directory.
3446
cp "$am_depcomp" conftest.dir
3448
# We will build objects and dependencies in a subdirectory because
3449
# it helps to detect inapplicable dependency modes. For instance
3450
# both Tru64's cc and ICC support -MD to output dependencies as a
3451
# side effect of compilation, but ICC will put the dependencies in
3452
# the current directory while Tru64 will put them in the object
3456
am_cv_CC_dependencies_compiler_type=none
3457
if test "$am_compiler_list" = ""; then
3458
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3461
case " $depcc " in #(
3462
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3465
for depmode in $am_compiler_list; do
3466
# Setup a source with many dependencies, because some compilers
3467
# like to wrap large dependency lists on column 80 (with \), and
3468
# we should not choose a depcomp mode which is confused by this.
3470
# We need to recreate these files for each test, as the compiler may
3471
# overwrite some of them when testing with obscure command lines.
3472
# This happens at least with the AIX C compiler.
3474
for i in 1 2 3 4 5 6; do
3475
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3476
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3477
# Solaris 8's {/usr,}/bin/sh.
3478
touch sub/conftst$i.h
3480
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3483
# mode. It turns out that the SunPro C++ compiler does not properly
3484
# handle `-M -o', and we need to detect this. Also, some Intel
3485
# versions had trouble with output in subdirs
3486
am__obj=sub/conftest.${OBJEXT-o}
3487
am__minus_obj="-o $am__obj"
3490
# This depmode causes a compiler race in universal mode.
3491
test "$am__universal" = false || continue
3494
# after this tag, mechanisms are not by side-effect, so they'll
3495
# only be used when explicitly requested
3496
if test "x$enable_dependency_tracking" = xyes; then
3502
msvisualcpp | msvcmsys)
3503
# This compiler won't grok `-c -o', but also, the minuso test has
3504
# not run yet. These depmodes are late enough in the game, and
3505
# so weak that their functioning should not be impacted.
3506
am__obj=conftest.${OBJEXT-o}
3511
if depmode=$depmode \
3512
source=sub/conftest.c object=$am__obj \
3513
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3514
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3515
>/dev/null 2>conftest.err &&
3516
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3517
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3518
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3519
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3520
# icc doesn't choke on unknown options, it will just issue warnings
3521
# or remarks (even with -Werror). So we grep stderr for any message
3522
# that says an option was ignored or not supported.
3523
# When given -MP, icc 7.0 and 7.1 complain thusly:
3524
# icc: Command line warning: ignoring option '-M'; no argument required
3525
# The diagnosis changed in icc 8.0:
3526
# icc: Command line remark: option '-MP' not supported
3527
if (grep 'ignoring option' conftest.err ||
3528
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3529
am_cv_CC_dependencies_compiler_type=$depmode
3538
am_cv_CC_dependencies_compiler_type=none
3542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3543
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3544
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3547
test "x$enable_dependency_tracking" != xno \
3548
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3550
am__fastdepCC_FALSE='#'
3552
am__fastdepCC_TRUE='#'
3553
am__fastdepCC_FALSE=
3557
if test "x$CC" != xcc; then
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3559
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3562
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3564
set dummy $CC; ac_cc=`$as_echo "$2" |
3565
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3566
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3567
$as_echo_n "(cached) " >&6
3569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570
/* end confdefs.h. */
3580
# Make sure it works both with $CC and with simple cc.
3581
# We do the test twice because some compilers refuse to overwrite an
3582
# existing .o file with -o, though they will create one.
3583
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3585
if { { case "(($ac_try" in
3586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587
*) ac_try_echo=$ac_try;;
3589
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590
$as_echo "$ac_try_echo"; } >&5
3591
(eval "$ac_try") 2>&5
3593
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594
test $ac_status = 0; } &&
3595
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597
*) ac_try_echo=$ac_try;;
3599
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600
$as_echo "$ac_try_echo"; } >&5
3601
(eval "$ac_try") 2>&5
3603
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604
test $ac_status = 0; };
3606
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3607
if test "x$CC" != xcc; then
3608
# Test first that cc exists at all.
3609
if { ac_try='cc -c conftest.$ac_ext >&5'
3610
{ { case "(($ac_try" in
3611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612
*) ac_try_echo=$ac_try;;
3614
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615
$as_echo "$ac_try_echo"; } >&5
3616
(eval "$ac_try") 2>&5
3618
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619
test $ac_status = 0; }; }; then
3620
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3622
if { { case "(($ac_try" in
3623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624
*) ac_try_echo=$ac_try;;
3626
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627
$as_echo "$ac_try_echo"; } >&5
3628
(eval "$ac_try") 2>&5
3630
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631
test $ac_status = 0; } &&
3632
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634
*) ac_try_echo=$ac_try;;
3636
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637
$as_echo "$ac_try_echo"; } >&5
3638
(eval "$ac_try") 2>&5
3640
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641
test $ac_status = 0; };
3646
# cc exists but doesn't like -o.
3647
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3652
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3654
rm -f core conftest*
3657
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659
$as_echo "yes" >&6; }
3661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662
$as_echo "no" >&6; }
3664
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3668
# FIXME: we rely on the cache variable name because
3669
# there is no other way.
3671
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3672
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3673
if test "$am_t" != yes; then
3674
# Losing compiler, so override with the script.
3675
# FIXME: It is wrong to rewrite CC.
3676
# But if we don't then we get into trouble of one sort or another.
3677
# A longer-term fix would be to have automake use am__CC in this case,
3678
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3679
CC="$am_aux_dir/compile $CC"
3685
# Checks for libraries.
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3688
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3689
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
3690
$as_echo_n "(cached) " >&6
3692
ac_check_lib_save_LIBS=$LIBS
3693
LIBS="-lpthread $LIBS"
3694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695
/* end confdefs.h. */
3697
/* Override any GCC internal prototype to avoid an error.
3698
Use char because int might match the return type of a GCC
3699
builtin and then its argument prototype would still apply. */
3703
char pthread_create ();
3707
return pthread_create ();
3712
if ac_fn_c_try_link "$LINENO"; then :
3713
ac_cv_lib_pthread_pthread_create=yes
3715
ac_cv_lib_pthread_pthread_create=no
3717
rm -f core conftest.err conftest.$ac_objext \
3718
conftest$ac_exeext conftest.$ac_ext
3719
LIBS=$ac_check_lib_save_LIBS
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3722
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3723
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
3724
cat >>confdefs.h <<_ACEOF
3725
#define HAVE_LIBPTHREAD 1
3728
LIBS="-lpthread $LIBS"
3731
as_fn_error "nbd-proxy requires pthreads" "$LINENO" 5
3737
# Checks for header files.
3739
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3740
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3742
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3743
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
3744
$as_echo_n "(cached) " >&6
3746
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747
/* end confdefs.h. */
3748
#include <sys/types.h>
3760
if ac_fn_c_try_compile "$LINENO"; then :
3761
eval "$as_ac_Header=yes"
3763
eval "$as_ac_Header=no"
3765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767
eval ac_res=\$$as_ac_Header
3768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3769
$as_echo "$ac_res" >&6; }
3770
eval as_val=\$$as_ac_Header
3771
if test "x$as_val" = x""yes; then :
3772
cat >>confdefs.h <<_ACEOF
3773
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3776
ac_header_dirent=$ac_hdr; break
3780
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3781
if test $ac_header_dirent = dirent.h; then
3782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3783
$as_echo_n "checking for library containing opendir... " >&6; }
3784
if test "${ac_cv_search_opendir+set}" = set; then :
3785
$as_echo_n "(cached) " >&6
3787
ac_func_search_save_LIBS=$LIBS
3788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789
/* end confdefs.h. */
3791
/* Override any GCC internal prototype to avoid an error.
3792
Use char because int might match the return type of a GCC
3793
builtin and then its argument prototype would still apply. */
3806
for ac_lib in '' dir; do
3807
if test -z "$ac_lib"; then
3808
ac_res="none required"
3811
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3813
if ac_fn_c_try_link "$LINENO"; then :
3814
ac_cv_search_opendir=$ac_res
3816
rm -f core conftest.err conftest.$ac_objext \
3818
if test "${ac_cv_search_opendir+set}" = set; then :
3822
if test "${ac_cv_search_opendir+set}" = set; then :
3825
ac_cv_search_opendir=no
3828
LIBS=$ac_func_search_save_LIBS
3830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3831
$as_echo "$ac_cv_search_opendir" >&6; }
3832
ac_res=$ac_cv_search_opendir
3833
if test "$ac_res" != no; then :
3834
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3840
$as_echo_n "checking for library containing opendir... " >&6; }
3841
if test "${ac_cv_search_opendir+set}" = set; then :
3842
$as_echo_n "(cached) " >&6
3844
ac_func_search_save_LIBS=$LIBS
3845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846
/* end confdefs.h. */
3848
/* Override any GCC internal prototype to avoid an error.
3849
Use char because int might match the return type of a GCC
3850
builtin and then its argument prototype would still apply. */
3863
for ac_lib in '' x; do
3864
if test -z "$ac_lib"; then
3865
ac_res="none required"
3868
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3870
if ac_fn_c_try_link "$LINENO"; then :
3871
ac_cv_search_opendir=$ac_res
3873
rm -f core conftest.err conftest.$ac_objext \
3875
if test "${ac_cv_search_opendir+set}" = set; then :
3879
if test "${ac_cv_search_opendir+set}" = set; then :
3882
ac_cv_search_opendir=no
3885
LIBS=$ac_func_search_save_LIBS
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3888
$as_echo "$ac_cv_search_opendir" >&6; }
3889
ac_res=$ac_cv_search_opendir
3890
if test "$ac_res" != no; then :
3891
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3898
ac_cpp='$CPP $CPPFLAGS'
3899
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3903
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3904
# On Suns, sometimes $CPP names a directory.
3905
if test -n "$CPP" && test -d "$CPP"; then
3908
if test -z "$CPP"; then
3909
if test "${ac_cv_prog_CPP+set}" = set; then :
3910
$as_echo_n "(cached) " >&6
3912
# Double quotes because CPP needs to be expanded
3913
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3916
for ac_c_preproc_warn_flag in '' yes
3918
# Use a header file that comes with gcc, so configuring glibc
3919
# with a fresh cross-compiler works.
3920
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921
# <limits.h> exists even on freestanding compilers.
3922
# On the NeXT, cc -E runs the code through the compiler's parser,
3923
# not just through cpp. "Syntax error" is here to catch this case.
3924
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925
/* end confdefs.h. */
3927
# include <limits.h>
3929
# include <assert.h>
3933
if ac_fn_c_try_cpp "$LINENO"; then :
3936
# Broken: fails on valid input.
3939
rm -f conftest.err conftest.$ac_ext
3941
# OK, works on sane cases. Now check whether nonexistent headers
3942
# can be detected and how.
3943
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944
/* end confdefs.h. */
3945
#include <ac_nonexistent.h>
3947
if ac_fn_c_try_cpp "$LINENO"; then :
3948
# Broken: success on invalid input.
3951
# Passes both tests.
3955
rm -f conftest.err conftest.$ac_ext
3958
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959
rm -f conftest.err conftest.$ac_ext
3960
if $ac_preproc_ok; then :
3972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3973
$as_echo "$CPP" >&6; }
3975
for ac_c_preproc_warn_flag in '' yes
3977
# Use a header file that comes with gcc, so configuring glibc
3978
# with a fresh cross-compiler works.
3979
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980
# <limits.h> exists even on freestanding compilers.
3981
# On the NeXT, cc -E runs the code through the compiler's parser,
3982
# not just through cpp. "Syntax error" is here to catch this case.
3983
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984
/* end confdefs.h. */
3986
# include <limits.h>
3988
# include <assert.h>
3992
if ac_fn_c_try_cpp "$LINENO"; then :
3995
# Broken: fails on valid input.
3998
rm -f conftest.err conftest.$ac_ext
4000
# OK, works on sane cases. Now check whether nonexistent headers
4001
# can be detected and how.
4002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003
/* end confdefs.h. */
4004
#include <ac_nonexistent.h>
4006
if ac_fn_c_try_cpp "$LINENO"; then :
4007
# Broken: success on invalid input.
4010
# Passes both tests.
4014
rm -f conftest.err conftest.$ac_ext
4017
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4018
rm -f conftest.err conftest.$ac_ext
4019
if $ac_preproc_ok; then :
4022
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4025
See \`config.log' for more details." "$LINENO" 5; }
4029
ac_cpp='$CPP $CPPFLAGS'
4030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4036
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4037
if test "${ac_cv_path_GREP+set}" = set; then :
4038
$as_echo_n "(cached) " >&6
4040
if test -z "$GREP"; then
4041
ac_path_GREP_found=false
4042
# Loop through the user's path and test for each of PROGNAME-LIST
4043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047
test -z "$as_dir" && as_dir=.
4048
for ac_prog in grep ggrep; do
4049
for ac_exec_ext in '' $ac_executable_extensions; do
4050
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4051
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4052
# Check for GNU ac_path_GREP and select it if it is found.
4053
# Check for GNU $ac_path_GREP
4054
case `"$ac_path_GREP" --version 2>&1` in
4056
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4059
$as_echo_n 0123456789 >"conftest.in"
4062
cat "conftest.in" "conftest.in" >"conftest.tmp"
4063
mv "conftest.tmp" "conftest.in"
4064
cp "conftest.in" "conftest.nl"
4065
$as_echo 'GREP' >> "conftest.nl"
4066
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068
as_fn_arith $ac_count + 1 && ac_count=$as_val
4069
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4070
# Best one so far, save it but keep looking for a better one
4071
ac_cv_path_GREP="$ac_path_GREP"
4072
ac_path_GREP_max=$ac_count
4074
# 10*(2^10) chars as input seems more than enough
4075
test $ac_count -gt 10 && break
4077
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080
$ac_path_GREP_found && break 3
4085
if test -z "$ac_cv_path_GREP"; then
4086
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4089
ac_cv_path_GREP=$GREP
4093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4094
$as_echo "$ac_cv_path_GREP" >&6; }
4095
GREP="$ac_cv_path_GREP"
4098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4099
$as_echo_n "checking for egrep... " >&6; }
4100
if test "${ac_cv_path_EGREP+set}" = set; then :
4101
$as_echo_n "(cached) " >&6
4103
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104
then ac_cv_path_EGREP="$GREP -E"
4106
if test -z "$EGREP"; then
4107
ac_path_EGREP_found=false
4108
# Loop through the user's path and test for each of PROGNAME-LIST
4109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113
test -z "$as_dir" && as_dir=.
4114
for ac_prog in egrep; do
4115
for ac_exec_ext in '' $ac_executable_extensions; do
4116
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4117
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4118
# Check for GNU ac_path_EGREP and select it if it is found.
4119
# Check for GNU $ac_path_EGREP
4120
case `"$ac_path_EGREP" --version 2>&1` in
4122
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4125
$as_echo_n 0123456789 >"conftest.in"
4128
cat "conftest.in" "conftest.in" >"conftest.tmp"
4129
mv "conftest.tmp" "conftest.in"
4130
cp "conftest.in" "conftest.nl"
4131
$as_echo 'EGREP' >> "conftest.nl"
4132
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4134
as_fn_arith $ac_count + 1 && ac_count=$as_val
4135
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4136
# Best one so far, save it but keep looking for a better one
4137
ac_cv_path_EGREP="$ac_path_EGREP"
4138
ac_path_EGREP_max=$ac_count
4140
# 10*(2^10) chars as input seems more than enough
4141
test $ac_count -gt 10 && break
4143
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146
$ac_path_EGREP_found && break 3
4151
if test -z "$ac_cv_path_EGREP"; then
4152
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155
ac_cv_path_EGREP=$EGREP
4160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4161
$as_echo "$ac_cv_path_EGREP" >&6; }
4162
EGREP="$ac_cv_path_EGREP"
4165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4166
$as_echo_n "checking for ANSI C header files... " >&6; }
4167
if test "${ac_cv_header_stdc+set}" = set; then :
4168
$as_echo_n "(cached) " >&6
4170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171
/* end confdefs.h. */
4185
if ac_fn_c_try_compile "$LINENO"; then :
4186
ac_cv_header_stdc=yes
4188
ac_cv_header_stdc=no
4190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192
if test $ac_cv_header_stdc = yes; then
4193
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195
/* end confdefs.h. */
4199
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200
$EGREP "memchr" >/dev/null 2>&1; then :
4203
ac_cv_header_stdc=no
4209
if test $ac_cv_header_stdc = yes; then
4210
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4211
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212
/* end confdefs.h. */
4216
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217
$EGREP "free" >/dev/null 2>&1; then :
4220
ac_cv_header_stdc=no
4226
if test $ac_cv_header_stdc = yes; then
4227
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228
if test "$cross_compiling" = yes; then :
4231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232
/* end confdefs.h. */
4235
#if ((' ' & 0x0FF) == 0x020)
4236
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4239
# define ISLOWER(c) \
4240
(('a' <= (c) && (c) <= 'i') \
4241
|| ('j' <= (c) && (c) <= 'r') \
4242
|| ('s' <= (c) && (c) <= 'z'))
4243
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251
for (i = 0; i < 256; i++)
4252
if (XOR (islower (i), ISLOWER (i))
4253
|| toupper (i) != TOUPPER (i))
4258
if ac_fn_c_try_run "$LINENO"; then :
4261
ac_cv_header_stdc=no
4263
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4264
conftest.$ac_objext conftest.beam conftest.$ac_ext
4269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4270
$as_echo "$ac_cv_header_stdc" >&6; }
4271
if test $ac_cv_header_stdc = yes; then
4273
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4277
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4278
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279
inttypes.h stdint.h unistd.h
4281
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4284
eval as_val=\$$as_ac_Header
4285
if test "x$as_val" = x""yes; then :
4286
cat >>confdefs.h <<_ACEOF
4287
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295
for ac_header in stdio.h stdlib.h linux/nbd.h sys/socket.h pthread.h arpa/inet.h netinet/tcp.h netinet/in.h string.h sys/types.h limits.h unistd.h
4297
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4299
eval as_val=\$$as_ac_Header
4300
if test "x$as_val" = x""yes; then :
4301
cat >>confdefs.h <<_ACEOF
4302
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4310
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
4312
cat >confcache <<\_ACEOF
4313
# This file is a shell script that caches the results of configure
4314
# tests run on this system so they can be shared between configure
4315
# scripts and configure runs, see configure's option --config-cache.
4316
# It is not useful on other systems. If it contains results you don't
4317
# want to keep, you may remove or edit it.
4319
# config.status only pays attention to the cache file if you give it
4320
# the --recheck option to rerun configure.
4322
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4323
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4328
# The following way of writing the cache mishandles newlines in values,
4329
# but we know of no workaround that is simple, portable, and efficient.
4330
# So, we kill variables containing newlines.
4331
# Ultrix sh set writes to stderr and can't be redirected directly,
4332
# and sets the high bit in the cache file unless we assign to the vars.
4334
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4335
eval ac_val=\$$ac_var
4339
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4340
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4343
_ | IFS | as_nl) ;; #(
4344
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4345
*) { eval $ac_var=; unset $ac_var;} ;;
4351
case $as_nl`(ac_space=' '; set) 2>&1` in #(
4352
*${as_nl}ac_space=\ *)
4353
# `set' does not quote correctly, so add quotes: double-quote
4354
# substitution turns \\\\ into \\, and sed turns \\ into \.
4357
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4360
# `set' quotes correctly as required by POSIX, so do not add quotes.
4361
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4370
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4372
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4374
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4375
if test -w "$cache_file"; then
4376
test "x$cache_file" != "x/dev/null" &&
4377
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4378
$as_echo "$as_me: updating cache $cache_file" >&6;}
4379
cat confcache >$cache_file
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4382
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4387
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4388
# Let make expand exec_prefix.
4389
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4391
DEFS=-DHAVE_CONFIG_H
4395
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4396
# 1. Remove the extension, and $U if already installed.
4397
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4398
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4399
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4400
# will be set to the directory where LIBOBJS objects are built.
4401
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4402
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4406
LTLIBOBJS=$ac_ltlibobjs
4409
if test -n "$EXEEXT"; then
4411
am__EXEEXT_FALSE='#'
4417
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4418
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
4419
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4421
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4422
as_fn_error "conditional \"AMDEP\" was never defined.
4423
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4425
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4426
as_fn_error "conditional \"am__fastdepCC\" was never defined.
4427
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4430
: ${CONFIG_STATUS=./config.status}
4432
ac_clean_files_save=$ac_clean_files
4433
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4434
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4435
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4437
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4439
# Generated by $as_me.
4440
# Run this file to recreate the current configuration.
4441
# Compiler output produced by configure, useful for debugging
4442
# configure, is in config.log if it exists.
4448
SHELL=\${CONFIG_SHELL-$SHELL}
4451
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4452
## -------------------- ##
4453
## M4sh Initialization. ##
4454
## -------------------- ##
4456
# Be more Bourne compatible
4457
DUALCASE=1; export DUALCASE # for MKS sh
4458
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4461
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4462
# is contrary to our usage. Disable this feature.
4463
alias -g '${1+"$@"}'='"$@"'
4464
setopt NO_GLOB_SUBST
4466
case `(set -o) 2>/dev/null` in #(
4478
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4479
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4480
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4481
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4482
# Prefer a ksh shell builtin over an external printf program on Solaris,
4483
# but without wasting forks for bash or zsh.
4484
if test -z "$BASH_VERSION$ZSH_VERSION" \
4485
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4486
as_echo='print -r --'
4487
as_echo_n='print -rn --'
4488
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4489
as_echo='printf %s\n'
4490
as_echo_n='printf %s'
4492
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4493
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4494
as_echo_n='/usr/ucb/echo -n'
4496
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4497
as_echo_n_body='eval
4501
expr "X$arg" : "X\\(.*\\)$as_nl";
4502
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4504
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4506
export as_echo_n_body
4507
as_echo_n='sh -c $as_echo_n_body as_echo'
4510
as_echo='sh -c $as_echo_body as_echo'
4513
# The user is always right.
4514
if test "${PATH_SEPARATOR+set}" != set; then
4516
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4517
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4524
# We need space, tab and new line, in precisely that order. Quoting is
4525
# there to prevent editors from complaining about space-tab.
4526
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4527
# splitting by setting IFS to empty value.)
4530
# Find who we are. Look in the path if we contain no directory separator.
4532
*[\\/]* ) as_myself=$0 ;;
4533
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537
test -z "$as_dir" && as_dir=.
4538
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4544
# We did not find ourselves, most probably we were run as `sh COMMAND'
4545
# in which case we are not to be found in the path.
4546
if test "x$as_myself" = x; then
4549
if test ! -f "$as_myself"; then
4550
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4554
# Unset variables that we do not need and which cause bugs (e.g. in
4555
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4556
# suppresses any "Segmentation fault" message there. '((' could
4557
# trigger a bug in pdksh 5.2.14.
4558
for as_var in BASH_ENV ENV MAIL MAILPATH
4559
do eval test x\${$as_var+set} = xset \
4560
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4573
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4576
# as_fn_error ERROR [LINENO LOG_FD]
4577
# ---------------------------------
4578
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4579
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4580
# script with status $?, using 1 if that was 0.
4583
as_status=$?; test $as_status -eq 0 && as_status=1
4585
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4586
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4588
$as_echo "$as_me: error: $1" >&2
4589
as_fn_exit $as_status
4593
# as_fn_set_status STATUS
4594
# -----------------------
4595
# Set $? to STATUS, without forking.
4599
} # as_fn_set_status
4603
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4613
# Portably unset VAR.
4616
{ eval $1=; unset $1;}
4618
as_unset=as_fn_unset
4619
# as_fn_append VAR VALUE
4620
# ----------------------
4621
# Append the text in VALUE to the end of the definition contained in VAR. Take
4622
# advantage of any shell optimizations that allow amortized linear growth over
4623
# repeated appends, instead of the typical quadratic growth present in naive
4625
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4626
eval 'as_fn_append ()
4637
# as_fn_arith ARG...
4638
# ------------------
4639
# Perform arithmetic evaluation on the ARGs, and store the result in the
4640
# global $as_val. Take advantage of shells that can avoid forks. The arguments
4641
# must be portable across $(()) and expr.
4642
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4643
eval 'as_fn_arith ()
4650
as_val=`expr "$@" || test $? -eq 1`
4655
if expr a : '\(a\)' >/dev/null 2>&1 &&
4656
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4662
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4663
as_basename=basename
4668
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4674
as_me=`$as_basename -- "$0" ||
4675
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4676
X"$0" : 'X\(//\)$' \| \
4677
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4679
sed '/^.*\/\([^/][^/]*\)\/*$/{
4693
# Avoid depending upon Character Ranges.
4694
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4695
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4696
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4697
as_cr_digits='0123456789'
4698
as_cr_alnum=$as_cr_Letters$as_cr_digits
4700
ECHO_C= ECHO_N= ECHO_T=
4701
case `echo -n x` in #(((((
4703
case `echo 'xy\c'` in
4704
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
4706
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4713
rm -f conf$$ conf$$.exe conf$$.file
4714
if test -d conf$$.dir; then
4715
rm -f conf$$.dir/conf$$.file
4718
mkdir conf$$.dir 2>/dev/null
4720
if (echo >conf$$.file) 2>/dev/null; then
4721
if ln -s conf$$.file conf$$ 2>/dev/null; then
4723
# ... but there are two gotchas:
4724
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4725
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4726
# In both cases, we have to default to `cp -p'.
4727
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4729
elif ln conf$$.file conf$$ 2>/dev/null; then
4737
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4738
rmdir conf$$.dir 2>/dev/null
4743
# Create "$as_dir" as a directory, including parents if necessary.
4748
-*) as_dir=./$as_dir;;
4750
test -d "$as_dir" || eval $as_mkdir_p || {
4754
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4755
*) as_qdir=$as_dir;;
4757
as_dirs="'$as_qdir' $as_dirs"
4758
as_dir=`$as_dirname -- "$as_dir" ||
4759
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4760
X"$as_dir" : 'X\(//\)[^/]' \| \
4761
X"$as_dir" : 'X\(//\)$' \| \
4762
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4763
$as_echo X"$as_dir" |
4764
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4781
test -d "$as_dir" && break
4783
test -z "$as_dirs" || eval "mkdir $as_dirs"
4784
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4788
if mkdir -p . 2>/dev/null; then
4789
as_mkdir_p='mkdir -p "$as_dir"'
4791
test -d ./-p && rmdir ./-p
4795
if test -x / >/dev/null 2>&1; then
4798
if ls -dL / >/dev/null 2>&1; then
4805
if test -d "$1"; then
4811
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4812
???[sx]*):;;*)false;;esac;fi
4816
as_executable_p=$as_test_x
4818
# Sed expression to map a string onto a valid CPP name.
4819
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4821
# Sed expression to map a string onto a valid variable name.
4822
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4826
## ----------------------------------- ##
4827
## Main body of $CONFIG_STATUS script. ##
4828
## ----------------------------------- ##
4830
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4832
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4833
# Save the log message, to keep $0 and so on meaningful, and to
4834
# report actual input values of CONFIG_FILES etc. instead of their
4835
# values after options handling.
4837
This file was extended by nbd-proxy $as_me 0.1, which was
4838
generated by GNU Autoconf 2.65. Invocation command line was
4840
CONFIG_FILES = $CONFIG_FILES
4841
CONFIG_HEADERS = $CONFIG_HEADERS
4842
CONFIG_LINKS = $CONFIG_LINKS
4843
CONFIG_COMMANDS = $CONFIG_COMMANDS
4846
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4851
case $ac_config_files in *"
4852
"*) set x $ac_config_files; shift; ac_config_files=$*;;
4855
case $ac_config_headers in *"
4856
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4860
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4861
# Files that config.status was made for.
4862
config_files="$ac_config_files"
4863
config_headers="$ac_config_headers"
4864
config_commands="$ac_config_commands"
4868
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4870
\`$as_me' instantiates files and other configuration actions
4871
from templates according to the current configuration. Unless the files
4872
and actions are specified as TAGs, all are instantiated by default.
4874
Usage: $0 [OPTION]... [TAG]...
4876
-h, --help print this help, then exit
4877
-V, --version print version number and configuration settings, then exit
4878
--config print configuration, then exit
4879
-q, --quiet, --silent
4880
do not print progress messages
4881
-d, --debug don't remove temporary files
4882
--recheck update $as_me by reconfiguring in the same conditions
4883
--file=FILE[:TEMPLATE]
4884
instantiate the configuration file FILE
4885
--header=FILE[:TEMPLATE]
4886
instantiate the configuration header FILE
4888
Configuration files:
4891
Configuration headers:
4894
Configuration commands:
4897
Report bugs to <stgraber@ltsp.org>."
4900
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4901
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4903
nbd-proxy config.status 0.1
4904
configured by $0, generated by GNU Autoconf 2.65,
4905
with options \\"\$ac_cs_config\\"
4907
Copyright (C) 2009 Free Software Foundation, Inc.
4908
This config.status script is free software; the Free Software Foundation
4909
gives unlimited permission to copy, distribute and modify it."
4916
test -n "\$AWK" || AWK=awk
4919
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4920
# The default lists apply if the user does not specify any file.
4926
ac_option=`expr "X$1" : 'X\([^=]*\)='`
4927
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4938
# Handling of the options.
4939
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4941
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4942
$as_echo "$ac_cs_version"; exit ;;
4943
--config | --confi | --conf | --con | --co | --c )
4944
$as_echo "$ac_cs_config"; exit ;;
4945
--debug | --debu | --deb | --de | --d | -d )
4947
--file | --fil | --fi | --f )
4950
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4952
as_fn_append CONFIG_FILES " '$ac_optarg'"
4953
ac_need_defaults=false;;
4954
--header | --heade | --head | --hea )
4957
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4959
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4960
ac_need_defaults=false;;
4962
# Conflict between --help and --header
4963
as_fn_error "ambiguous option: \`$1'
4964
Try \`$0 --help' for more information.";;
4965
--help | --hel | -h )
4966
$as_echo "$ac_cs_usage"; exit ;;
4967
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4968
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4972
-*) as_fn_error "unrecognized option: \`$1'
4973
Try \`$0 --help' for more information." ;;
4975
*) as_fn_append ac_config_targets " $1"
4976
ac_need_defaults=false ;;
4982
ac_configure_extra_args=
4984
if $ac_cs_silent; then
4986
ac_configure_extra_args="$ac_configure_extra_args --silent"
4990
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4991
if \$ac_cs_recheck; then
4992
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4994
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4995
CONFIG_SHELL='$SHELL'
5001
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5005
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5006
## Running $as_me. ##
5012
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5016
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5020
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5022
# Handling of arguments.
5023
for ac_config_target in $ac_config_targets
5025
case $ac_config_target in
5026
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5027
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5028
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5029
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5030
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5032
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5037
# If the user did not use the arguments to specify the items to instantiate,
5038
# then the envvar interface is used. Set only those that are not.
5039
# We use the long form for the default assignment because of an extremely
5040
# bizarre bug on SunOS 4.1.3.
5041
if $ac_need_defaults; then
5042
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5043
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5044
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5047
# Have a temporary directory for convenience. Make it in the build tree
5048
# simply because there is no reason against having it here, and in addition,
5049
# creating and moving files from /tmp can sometimes cause problems.
5050
# Hook for its removal unless debugging.
5051
# Note that there is a small window in which the directory will not be cleaned:
5052
# after its creation but before its name has been assigned to `$tmp'.
5056
trap 'exit_status=$?
5057
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5059
trap 'as_fn_exit 1' 1 2 13 15
5061
# Create a (secure) tmp directory for tmp files.
5064
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5065
test -n "$tmp" && test -d "$tmp"
5068
tmp=./conf$$-$RANDOM
5069
(umask 077 && mkdir "$tmp")
5070
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5072
# Set up the scripts for CONFIG_FILES section.
5073
# No need to generate them if there are no CONFIG_FILES.
5074
# This happens for instance with `./config.status config.h'.
5075
if test -n "$CONFIG_FILES"; then
5078
ac_cr=`echo X | tr X '\015'`
5079
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5080
# But we know of no other shell where ac_cr would be empty at this
5081
# point, so we can use a bashism as a fallback.
5082
if test "x$ac_cr" = x; then
5083
eval ac_cr=\$\'\\r\'
5085
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5086
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5092
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5097
echo "cat >conf$$subs.awk <<_ACEOF" &&
5098
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5101
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5102
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5104
for ac_last_try in false false false false false :; do
5105
. ./conf$$subs.sh ||
5106
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5108
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5109
if test $ac_delim_n = $ac_delim_num; then
5111
elif $ac_last_try; then
5112
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5114
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5119
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5120
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5124
s/^/S["/; s/!.*/"]=/
5134
s/\(.\{148\}\)..*/\1/
5136
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5141
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5148
s/\(.\{148\}\)..*/\1/
5150
s/["\\]/\\&/g; s/^/"/; s/$/"/
5154
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5159
' <conf$$subs.awk | sed '
5164
' >>$CONFIG_STATUS || ac_write_fail=1
5165
rm -f conf$$subs.awk
5166
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5168
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5169
for (key in S) S_is_set[key] = 1
5175
nfields = split(line, field, "@")
5177
len = length(field[1])
5178
for (i = 2; i < nfields; i++) {
5180
keylen = length(key)
5181
if (S_is_set[key]) {
5183
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5184
len += length(value) + length(field[++i])
5195
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5196
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5197
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5200
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5201
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
5204
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5205
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5206
# trailing colons and then remove the whole line if VPATH becomes empty
5207
# (actually we leave an empty line to preserve line numbers).
5208
if test "x$srcdir" = x.; then
5209
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5213
s/^\([^=]*=[ ]*\):*/\1/
5219
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5220
fi # test -n "$CONFIG_FILES"
5222
# Set up the scripts for CONFIG_HEADERS section.
5223
# No need to generate them if there are no CONFIG_HEADERS.
5224
# This happens for instance with `./config.status Makefile'.
5225
if test -n "$CONFIG_HEADERS"; then
5226
cat >"$tmp/defines.awk" <<\_ACAWK ||
5230
# Transform confdefs.h into an awk script `defines.awk', embedded as
5231
# here-document in config.status, that substitutes the proper values into
5232
# config.h.in to produce config.h.
5234
# Create a delimiter string that does not exist in confdefs.h, to ease
5235
# handling of long lines.
5237
for ac_last_try in false false :; do
5238
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5239
if test -z "$ac_t"; then
5241
elif $ac_last_try; then
5242
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5244
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5248
# For the awk script, D is an array of macro values keyed by name,
5249
# likewise P contains macro parameters if any. Preserve backslash
5250
# newline sequences.
5252
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5254
s/.\{148\}/&'"$ac_delim"'/g
5257
s/^[ ]*#[ ]*define[ ][ ]*/ /
5264
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5266
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5270
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5271
D["\1"]=" \3\\\\\\n"\\/p
5273
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5278
s/.\{148\}/&'"$ac_delim"'/g
5283
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5286
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5288
' <confdefs.h | sed '
5289
s/'"$ac_delim"'/"\\\
5290
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5292
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5293
for (key in D) D_is_set[key] = 1
5296
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5298
split(line, arg, " ")
5299
if (arg[1] == "#") {
5303
defundef = substr(arg[1], 2)
5306
split(mac1, mac2, "(") #)
5308
prefix = substr(line, 1, index(line, defundef) - 1)
5309
if (D_is_set[macro]) {
5310
# Preserve the white space surrounding the "#".
5311
print prefix "define", macro P[macro] D[macro]
5314
# Replace #undef with comments. This is necessary, for example,
5315
# in the case of _POSIX_SOURCE, which is predefined and required
5316
# on some systems where configure will not decide to define it.
5317
if (defundef == "undef") {
5318
print "/*", prefix defundef, macro, "*/"
5326
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5327
as_fn_error "could not setup config headers machinery" "$LINENO" 5
5328
fi # test -n "$CONFIG_HEADERS"
5331
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5336
:[FHLC]) ac_mode=$ac_tag; continue;;
5338
case $ac_mode$ac_tag in
5340
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5341
:[FH]-) ac_tag=-:-;;
5342
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5359
-) ac_f="$tmp/stdin";;
5360
*) # Look for the file first in the build tree, then in the source tree
5361
# (if the path is not absolute). The absolute path cannot be DOS-style,
5362
# because $ac_f cannot contain `:'.
5366
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5368
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5370
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5371
as_fn_append ac_file_inputs " '$ac_f'"
5374
# Let's still pretend it is `configure' which instantiates (i.e., don't
5375
# use $as_me), people would be surprised to read:
5376
# /* config.h. Generated by config.status. */
5377
configure_input='Generated from '`
5378
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5380
if test x"$ac_file" != x-; then
5381
configure_input="$ac_file. $configure_input"
5382
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5383
$as_echo "$as_me: creating $ac_file" >&6;}
5385
# Neutralize special characters interpreted by sed in replacement strings.
5386
case $configure_input in #(
5387
*\&* | *\|* | *\\* )
5388
ac_sed_conf_input=`$as_echo "$configure_input" |
5389
sed 's/[\\\\&|]/\\\\&/g'`;; #(
5390
*) ac_sed_conf_input=$configure_input;;
5394
*:-:* | *:-) cat >"$tmp/stdin" \
5395
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5400
ac_dir=`$as_dirname -- "$ac_file" ||
5401
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5402
X"$ac_file" : 'X\(//\)[^/]' \| \
5403
X"$ac_file" : 'X\(//\)$' \| \
5404
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5405
$as_echo X"$ac_file" |
5406
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5423
as_dir="$ac_dir"; as_fn_mkdir_p
5427
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5429
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5430
# A ".." for each directory in $ac_dir_suffix.
5431
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5432
case $ac_top_builddir_sub in
5433
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5434
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5437
ac_abs_top_builddir=$ac_pwd
5438
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5439
# for backward compatibility:
5440
ac_top_builddir=$ac_top_build_prefix
5443
.) # We are building in place.
5445
ac_top_srcdir=$ac_top_builddir_sub
5446
ac_abs_top_srcdir=$ac_pwd ;;
5447
[\\/]* | ?:[\\/]* ) # Absolute name.
5448
ac_srcdir=$srcdir$ac_dir_suffix;
5449
ac_top_srcdir=$srcdir
5450
ac_abs_top_srcdir=$srcdir ;;
5452
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5453
ac_top_srcdir=$ac_top_build_prefix$srcdir
5454
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5456
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5466
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5467
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5471
[\\/$]* | ?:[\\/]* ) ;;
5472
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5476
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5477
# If the template does not know about datarootdir, expand it.
5478
# FIXME: This hack should be removed a few years after 2.60.
5479
ac_datarootdir_hack=; ac_datarootdir_seen=
5490
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5491
*datarootdir*) ac_datarootdir_seen=yes;;
5492
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5494
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5496
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5497
ac_datarootdir_hack='
5498
s&@datadir@&$datadir&g
5499
s&@docdir@&$docdir&g
5500
s&@infodir@&$infodir&g
5501
s&@localedir@&$localedir&g
5502
s&@mandir@&$mandir&g
5503
s&\\\${datarootdir}&$datarootdir&g' ;;
5507
# Neutralize VPATH when `$srcdir' = `.'.
5508
# Shell code in configure.ac might set extrasub.
5509
# FIXME: do we really want to maintain this feature?
5510
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5511
ac_sed_extra="$ac_vpsub
5514
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5516
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5517
s|@configure_input@|$ac_sed_conf_input|;t t
5518
s&@top_builddir@&$ac_top_builddir_sub&;t t
5519
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5520
s&@srcdir@&$ac_srcdir&;t t
5521
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5522
s&@top_srcdir@&$ac_top_srcdir&;t t
5523
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5524
s&@builddir@&$ac_builddir&;t t
5525
s&@abs_builddir@&$ac_abs_builddir&;t t
5526
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5527
s&@INSTALL@&$ac_INSTALL&;t t
5528
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5529
$ac_datarootdir_hack
5531
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5532
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5534
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5535
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5536
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5538
which seems to be undefined. Please make sure it is defined." >&5
5539
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5540
which seems to be undefined. Please make sure it is defined." >&2;}
5544
-) cat "$tmp/out" && rm -f "$tmp/out";;
5545
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5547
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5553
if test x"$ac_file" != x-; then
5555
$as_echo "/* $configure_input */" \
5556
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5557
} >"$tmp/config.h" \
5558
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5559
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5561
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5564
mv "$tmp/config.h" "$ac_file" \
5565
|| as_fn_error "could not create $ac_file" "$LINENO" 5
5568
$as_echo "/* $configure_input */" \
5569
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5570
|| as_fn_error "could not create -" "$LINENO" 5
5572
# Compute "$ac_file"'s index in $config_headers.
5575
for _am_header in $config_headers :; do
5577
$_am_arg | $_am_arg:* )
5580
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5583
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5584
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5585
X"$_am_arg" : 'X\(//\)[^/]' \| \
5586
X"$_am_arg" : 'X\(//\)$' \| \
5587
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5588
$as_echo X"$_am_arg" |
5589
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5605
s/.*/./; q'`/stamp-h$_am_stamp_count
5608
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5609
$as_echo "$as_me: executing $ac_file commands" >&6;}
5614
case $ac_file$ac_mode in
5615
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5616
# Autoconf 2.62 quotes --file arguments for eval, but not when files
5617
# are listed without --file. Let's play safe and only enable the eval
5618
# if we detect the quoting.
5619
case $CONFIG_FILES in
5620
*\'*) eval set x "$CONFIG_FILES" ;;
5621
*) set x $CONFIG_FILES ;;
5626
# Strip MF so we end up with the name of the file.
5627
mf=`echo "$mf" | sed -e 's/:.*$//'`
5628
# Check whether this is an Automake generated Makefile or not.
5629
# We used to match only the files named `Makefile.in', but
5630
# some people rename them; so instead we look at the file content.
5631
# Grep'ing the first line is not enough: some people post-process
5632
# each Makefile.in and add a new line on top of each file to say so.
5633
# Grep'ing the whole file is not good either: AIX grep has a line
5634
# limit of 2048, but all sed's we know have understand at least 4000.
5635
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5636
dirpart=`$as_dirname -- "$mf" ||
5637
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5638
X"$mf" : 'X\(//\)[^/]' \| \
5639
X"$mf" : 'X\(//\)$' \| \
5640
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5642
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5662
# Extract the definition of DEPDIR, am__include, and am__quote
5663
# from the Makefile without running `make'.
5664
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5665
test -z "$DEPDIR" && continue
5666
am__include=`sed -n 's/^am__include = //p' < "$mf"`
5667
test -z "am__include" && continue
5668
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5669
# When using ansi2knr, U may be empty or an underscore; expand it
5670
U=`sed -n 's/^U = //p' < "$mf"`
5671
# Find all dependency output files, they are included files with
5672
# $(DEPDIR) in their names. We invoke sed twice because it is the
5673
# simplest approach to changing $(DEPDIR) to its actual value in the
5675
for file in `sed -n "
5676
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5677
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5678
# Make sure the directory exists.
5679
test -f "$dirpart/$file" && continue
5680
fdir=`$as_dirname -- "$file" ||
5681
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5682
X"$file" : 'X\(//\)[^/]' \| \
5683
X"$file" : 'X\(//\)$' \| \
5684
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5686
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5703
as_dir=$dirpart/$fdir; as_fn_mkdir_p
5704
# echo "creating $dirpart/$file"
5705
echo '# dummy' > "$dirpart/$file"
5717
ac_clean_files=$ac_clean_files_save
5719
test $ac_write_fail = 0 ||
5720
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5723
# configure is writing to config.log, and then calls config.status.
5724
# config.status does its own redirection, appending to config.log.
5725
# Unfortunately, on DOS this fails, as config.log is still kept open
5726
# by configure, so config.status won't be able to write to it; its
5727
# output is simply discarded. So we exec the FD to /dev/null,
5728
# effectively closing config.log, so it can be properly (re)opened and
5729
# appended to by config.status. When coming back to configure, we
5730
# need to make the FD available again.
5731
if test "$no_create" != yes; then
5733
ac_config_status_args=
5734
test "$silent" = yes &&
5735
ac_config_status_args="$ac_config_status_args --quiet"
5737
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5739
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5740
# would make configure fail if this is the last instruction.
5741
$ac_cs_success || as_fn_exit $?
5743
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5745
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}