2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.68 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, 2010 Free Software
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.
96
*[\\/]* ) as_myself=$0 ;;
97
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101
test -z "$as_dir" && as_dir=.
102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
113
if test ! -f "$as_myself"; then
114
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there. '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
if test "x$CONFIG_SHELL" = x; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in @%:@(
150
set -o posix ;; @%:@(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1"
178
if (eval "$as_required") 2>/dev/null; then :
183
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191
test -z "$as_dir" && as_dir=.
193
case $as_dir in @%:@(
195
for as_base in sh bash ksh sh5; do
196
# Try only shells that exist, to save several forks.
197
as_shell=$as_dir/$as_base
198
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200
CONFIG_SHELL=$as_shell as_have_required=yes
201
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211
CONFIG_SHELL=$SHELL as_have_required=yes
216
if test "x$CONFIG_SHELL" != x; then :
217
# We cannot yet assume a decent shell, so we have to provide a
218
# neutralization value for shells without unset; and this also
219
# works around shells that cannot unset nonexistent variables.
220
# Preserve -v and -x to the replacement shell.
223
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
*v*x* | *x*v* ) as_opts=-vx ;;
231
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234
if test x$as_have_required = xno; then :
235
$as_echo "$0: This script requires a shell more modern than all"
236
$as_echo "$0: the shells that I found on your system."
237
if test x${ZSH_VERSION+set} = xset ; then
238
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
241
$as_echo "$0: Please tell bug-autoconf@gnu.org and stgraber@ltsp.org
242
$0: about your system, including any error possibly output
243
$0: before this message. Then install a modern shell, or
244
$0: manually run the script under such a shell if you do
251
SHELL=${CONFIG_SHELL-/bin/sh}
253
# Unset more variables known to interfere with behavior of common tools.
254
CLICOLOR_FORCE= GREP_OPTIONS=
255
unset CLICOLOR_FORCE GREP_OPTIONS
257
## --------------------- ##
258
## M4sh Shell Functions. ##
259
## --------------------- ##
262
@%:@ Portably unset VAR.
265
{ eval $1=; unset $1;}
269
@%:@ as_fn_set_status STATUS
270
@%:@ -----------------------
271
@%:@ Set @S|@? to STATUS, without forking.
275
} @%:@ as_fn_set_status
277
@%:@ as_fn_exit STATUS
278
@%:@ -----------------
279
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
294
-*) as_dir=./$as_dir;;
296
test -d "$as_dir" || eval $as_mkdir_p || {
300
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303
as_dirs="'$as_qdir' $as_dirs"
304
as_dir=`$as_dirname -- "$as_dir" ||
305
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306
X"$as_dir" : 'X\(//\)[^/]' \| \
307
X"$as_dir" : 'X\(//\)$' \| \
308
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309
$as_echo X"$as_dir" |
310
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327
test -d "$as_dir" && break
329
test -z "$as_dirs" || eval "mkdir $as_dirs"
330
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334
@%:@ as_fn_append VAR VALUE
335
@%:@ ----------------------
336
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
337
@%:@ advantage of any shell optimizations that allow amortized linear growth over
338
@%:@ repeated appends, instead of the typical quadratic growth present in naive
339
@%:@ implementations.
340
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341
eval 'as_fn_append ()
352
@%:@ as_fn_arith ARG...
353
@%:@ ------------------
354
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
355
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
356
@%:@ must be portable across @S|@(()) and expr.
357
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365
as_val=`expr "$@" || test $? -eq 1`
370
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
371
@%:@ ----------------------------------------
372
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374
@%:@ script with STATUS, using 1 if that was 0.
377
as_status=$1; test $as_status -eq 0 && as_status=1
379
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382
$as_echo "$as_me: error: $2" >&2
383
as_fn_exit $as_status
386
if expr a : '\(a\)' >/dev/null 2>&1 &&
387
test "X`expr 00001 : '.*\(...\)'`" = X001; then
393
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405
as_me=`$as_basename -- "$0" ||
406
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407
X"$0" : 'X\(//\)$' \| \
408
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410
sed '/^.*\/\([^/][^/]*\)\/*$/{
424
# Avoid depending upon Character Ranges.
425
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428
as_cr_digits='0123456789'
429
as_cr_alnum=$as_cr_Letters$as_cr_digits
432
as_lineno_1=$LINENO as_lineno_1a=$LINENO
433
as_lineno_2=$LINENO as_lineno_2a=$LINENO
434
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452
chmod +x "$as_me.lineno" ||
453
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
# Don't try to exec as it changes $[0], causing all sort of problems
456
# (the dirname of $[0] is not the place where we might find the
457
# original and so on. Autoconf is especially sensitive to this).
459
# Exit status is that of the last command.
463
ECHO_C= ECHO_N= ECHO_T=
464
case `echo -n x` in @%:@(((((
466
case `echo 'xy\c'` in
467
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
469
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476
rm -f conf$$ conf$$.exe conf$$.file
477
if test -d conf$$.dir; then
478
rm -f conf$$.dir/conf$$.file
481
mkdir conf$$.dir 2>/dev/null
483
if (echo >conf$$.file) 2>/dev/null; then
484
if ln -s conf$$.file conf$$ 2>/dev/null; then
486
# ... but there are two gotchas:
487
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489
# In both cases, we have to default to `cp -p'.
490
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492
elif ln conf$$.file conf$$ 2>/dev/null; then
500
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501
rmdir conf$$.dir 2>/dev/null
503
if mkdir -p . 2>/dev/null; then
504
as_mkdir_p='mkdir -p "$as_dir"'
506
test -d ./-p && rmdir ./-p
510
if test -x / >/dev/null 2>&1; then
513
if ls -dL / >/dev/null 2>&1; then
520
if test -d "$1"; then
526
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
527
???[sx]*):;;*)false;;esac;fi
531
as_executable_p=$as_test_x
533
# Sed expression to map a string onto a valid CPP name.
534
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
# Sed expression to map a string onto a valid variable name.
537
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540
test -n "$DJDIR" || exec 7<&0 </dev/null
544
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545
# so uname gets run too.
546
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551
ac_default_prefix=/usr/local
553
ac_config_libobj_dir=.
560
# Identity of this package.
561
PACKAGE_NAME='nbd-proxy'
562
PACKAGE_TARNAME='nbd-proxy'
563
PACKAGE_VERSION='0.1'
564
PACKAGE_STRING='nbd-proxy 0.1'
565
PACKAGE_BUGREPORT='stgraber@ltsp.org'
568
ac_unique_file="src/nbd-proxy.c"
569
# Factoring default headers for most tests.
570
ac_includes_default="\
572
#ifdef HAVE_SYS_TYPES_H
573
# include <sys/types.h>
575
#ifdef HAVE_SYS_STAT_H
576
# include <sys/stat.h>
582
# ifdef HAVE_STDLIB_H
587
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592
#ifdef HAVE_STRINGS_H
593
# include <strings.h>
595
#ifdef HAVE_INTTYPES_H
596
# include <inttypes.h>
605
ac_subst_vars='am__EXEEXT_FALSE
631
MAINTAINER_MODE_FALSE
641
INSTALL_STRIP_PROGRAM
683
program_transform_name
696
enable_option_checking
697
enable_maintainer_mode
698
enable_dependency_tracking
700
ac_precious_vars='build_alias
711
# Initialize some variables set by options.
713
ac_init_version=false
714
ac_unrecognized_opts=
716
# The variables have the same names as the options, with
717
# dashes changed to underlines.
725
program_transform_name=s,x,x,
733
# Installation directory options.
734
# These are left unexpanded so users can "make install exec_prefix=/foo"
735
# and all the variables that are supposed to be based on exec_prefix
736
# by default will actually change.
737
# Use braces instead of parens because sh, perl, etc. also accept them.
738
# (The list follows the same order as the GNU Coding Standards.)
739
bindir='${exec_prefix}/bin'
740
sbindir='${exec_prefix}/sbin'
741
libexecdir='${exec_prefix}/libexec'
742
datarootdir='${prefix}/share'
743
datadir='${datarootdir}'
744
sysconfdir='${prefix}/etc'
745
sharedstatedir='${prefix}/com'
746
localstatedir='${prefix}/var'
747
includedir='${prefix}/include'
748
oldincludedir='/usr/include'
749
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
750
infodir='${datarootdir}/info'
755
libdir='${exec_prefix}/lib'
756
localedir='${datarootdir}/locale'
757
mandir='${datarootdir}/man'
763
# If the previous option needs an argument, assign it.
764
if test -n "$ac_prev"; then
765
eval $ac_prev=\$ac_option
771
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776
# Accept the important Cygnus configure options, so we can diagnose typos.
778
case $ac_dashdash$ac_option in
782
-bindir | --bindir | --bindi | --bind | --bin | --bi)
784
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787
-build | --build | --buil | --bui | --bu)
788
ac_prev=build_alias ;;
789
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
790
build_alias=$ac_optarg ;;
792
-cache-file | --cache-file | --cache-fil | --cache-fi \
793
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
794
ac_prev=cache_file ;;
795
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
796
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
797
cache_file=$ac_optarg ;;
800
cache_file=config.cache ;;
802
-datadir | --datadir | --datadi | --datad)
804
-datadir=* | --datadir=* | --datadi=* | --datad=*)
805
datadir=$ac_optarg ;;
807
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
808
| --dataroo | --dataro | --datar)
809
ac_prev=datarootdir ;;
810
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
811
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
812
datarootdir=$ac_optarg ;;
814
-disable-* | --disable-*)
815
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816
# Reject names that are not valid shell variable names.
817
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818
as_fn_error $? "invalid feature name: $ac_useropt"
819
ac_useropt_orig=$ac_useropt
820
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821
case $ac_user_opts in
825
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
826
ac_unrecognized_sep=', ';;
828
eval enable_$ac_useropt=no ;;
830
-docdir | --docdir | --docdi | --doc | --do)
832
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840
-enable-* | --enable-*)
841
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842
# Reject names that are not valid shell variable names.
843
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844
as_fn_error $? "invalid feature name: $ac_useropt"
845
ac_useropt_orig=$ac_useropt
846
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847
case $ac_user_opts in
851
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
852
ac_unrecognized_sep=', ';;
854
eval enable_$ac_useropt=\$ac_optarg ;;
856
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
857
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
858
| --exec | --exe | --ex)
859
ac_prev=exec_prefix ;;
860
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
861
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
862
| --exec=* | --exe=* | --ex=*)
863
exec_prefix=$ac_optarg ;;
865
-gas | --gas | --ga | --g)
866
# Obsolete; use --with-gas.
869
-help | --help | --hel | --he | -h)
871
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
872
ac_init_help=recursive ;;
873
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
874
ac_init_help=short ;;
876
-host | --host | --hos | --ho)
877
ac_prev=host_alias ;;
878
-host=* | --host=* | --hos=* | --ho=*)
879
host_alias=$ac_optarg ;;
881
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885
htmldir=$ac_optarg ;;
887
-includedir | --includedir | --includedi | --included | --include \
888
| --includ | --inclu | --incl | --inc)
889
ac_prev=includedir ;;
890
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
891
| --includ=* | --inclu=* | --incl=* | --inc=*)
892
includedir=$ac_optarg ;;
894
-infodir | --infodir | --infodi | --infod | --info | --inf)
896
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
897
infodir=$ac_optarg ;;
899
-libdir | --libdir | --libdi | --libd)
901
-libdir=* | --libdir=* | --libdi=* | --libd=*)
904
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
905
| --libexe | --libex | --libe)
906
ac_prev=libexecdir ;;
907
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
908
| --libexe=* | --libex=* | --libe=*)
909
libexecdir=$ac_optarg ;;
911
-localedir | --localedir | --localedi | --localed | --locale)
913
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
914
localedir=$ac_optarg ;;
916
-localstatedir | --localstatedir | --localstatedi | --localstated \
917
| --localstate | --localstat | --localsta | --localst | --locals)
918
ac_prev=localstatedir ;;
919
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
920
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
921
localstatedir=$ac_optarg ;;
923
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929
# Obsolete; use --without-fp.
932
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
933
| --no-cr | --no-c | -n)
936
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
937
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
941
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
942
| --oldin | --oldi | --old | --ol | --o)
943
ac_prev=oldincludedir ;;
944
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
945
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
946
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
947
oldincludedir=$ac_optarg ;;
949
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954
-program-prefix | --program-prefix | --program-prefi | --program-pref \
955
| --program-pre | --program-pr | --program-p)
956
ac_prev=program_prefix ;;
957
-program-prefix=* | --program-prefix=* | --program-prefi=* \
958
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
959
program_prefix=$ac_optarg ;;
961
-program-suffix | --program-suffix | --program-suffi | --program-suff \
962
| --program-suf | --program-su | --program-s)
963
ac_prev=program_suffix ;;
964
-program-suffix=* | --program-suffix=* | --program-suffi=* \
965
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
966
program_suffix=$ac_optarg ;;
968
-program-transform-name | --program-transform-name \
969
| --program-transform-nam | --program-transform-na \
970
| --program-transform-n | --program-transform- \
971
| --program-transform | --program-transfor \
972
| --program-transfo | --program-transf \
973
| --program-trans | --program-tran \
974
| --progr-tra | --program-tr | --program-t)
975
ac_prev=program_transform_name ;;
976
-program-transform-name=* | --program-transform-name=* \
977
| --program-transform-nam=* | --program-transform-na=* \
978
| --program-transform-n=* | --program-transform-=* \
979
| --program-transform=* | --program-transfor=* \
980
| --program-transfo=* | --program-transf=* \
981
| --program-trans=* | --program-tran=* \
982
| --progr-tra=* | --program-tr=* | --program-t=*)
983
program_transform_name=$ac_optarg ;;
985
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990
-psdir | --psdir | --psdi | --psd | --ps)
992
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
996
| -silent | --silent | --silen | --sile | --sil)
999
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003
sbindir=$ac_optarg ;;
1005
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1006
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1007
| --sharedst | --shareds | --shared | --share | --shar \
1009
ac_prev=sharedstatedir ;;
1010
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1011
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1012
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014
sharedstatedir=$ac_optarg ;;
1016
-site | --site | --sit)
1018
-site=* | --site=* | --sit=*)
1021
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1024
srcdir=$ac_optarg ;;
1026
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1027
| --syscon | --sysco | --sysc | --sys | --sy)
1028
ac_prev=sysconfdir ;;
1029
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1030
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1031
sysconfdir=$ac_optarg ;;
1033
-target | --target | --targe | --targ | --tar | --ta | --t)
1034
ac_prev=target_alias ;;
1035
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1036
target_alias=$ac_optarg ;;
1038
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1041
-version | --version | --versio | --versi | --vers | -V)
1042
ac_init_version=: ;;
1045
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1046
# Reject names that are not valid shell variable names.
1047
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048
as_fn_error $? "invalid package name: $ac_useropt"
1049
ac_useropt_orig=$ac_useropt
1050
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051
case $ac_user_opts in
1055
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1056
ac_unrecognized_sep=', ';;
1058
eval with_$ac_useropt=\$ac_optarg ;;
1060
-without-* | --without-*)
1061
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062
# Reject names that are not valid shell variable names.
1063
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064
as_fn_error $? "invalid package name: $ac_useropt"
1065
ac_useropt_orig=$ac_useropt
1066
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067
case $ac_user_opts in
1071
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1072
ac_unrecognized_sep=', ';;
1074
eval with_$ac_useropt=no ;;
1077
# Obsolete; use --with-x.
1080
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081
| --x-incl | --x-inc | --x-in | --x-i)
1082
ac_prev=x_includes ;;
1083
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085
x_includes=$ac_optarg ;;
1087
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1088
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089
ac_prev=x_libraries ;;
1090
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092
x_libraries=$ac_optarg ;;
1094
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1095
Try \`$0 --help' for more information"
1099
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100
# Reject names that are not valid shell variable names.
1101
case $ac_envvar in #(
1102
'' | [0-9]* | *[!_$as_cr_alnum]* )
1103
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1105
eval $ac_envvar=\$ac_optarg
1106
export $ac_envvar ;;
1109
# FIXME: should be removed in autoconf 3.0.
1110
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1119
if test -n "$ac_prev"; then
1120
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121
as_fn_error $? "missing argument to $ac_option"
1124
if test -n "$ac_unrecognized_opts"; then
1125
case $enable_option_checking in
1127
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1128
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1132
# Check all directory arguments for consistency.
1133
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134
datadir sysconfdir sharedstatedir localstatedir includedir \
1135
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136
libdir localedir mandir
1138
eval ac_val=\$$ac_var
1139
# Remove trailing slashes.
1142
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1143
eval $ac_var=\$ac_val;;
1145
# Be sure to have absolute directory names.
1147
[\\/$]* | ?:[\\/]* ) continue;;
1148
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1153
# There might be people who depend on the old broken behavior: `$host'
1154
# used to hold the argument of --host etc.
1155
# FIXME: To remove some day.
1158
target=$target_alias
1160
# FIXME: To remove some day.
1161
if test "x$host_alias" != x; then
1162
if test "x$build_alias" = x; then
1163
cross_compiling=maybe
1164
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1165
If a cross compiler is detected then cross compile mode will be used" >&2
1166
elif test "x$build_alias" != "x$host_alias"; then
1172
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174
test "$silent" = yes && exec 6>/dev/null
1177
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178
ac_ls_di=`ls -di .` &&
1179
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180
as_fn_error $? "working directory cannot be determined"
1181
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182
as_fn_error $? "pwd does not report name of working directory"
1185
# Find the source files, if location was not specified.
1186
if test -z "$srcdir"; then
1187
ac_srcdir_defaulted=yes
1188
# Try the directory containing this script, then the parent directory.
1189
ac_confdir=`$as_dirname -- "$as_myself" ||
1190
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191
X"$as_myself" : 'X\(//\)[^/]' \| \
1192
X"$as_myself" : 'X\(//\)$' \| \
1193
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194
$as_echo X"$as_myself" |
1195
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213
if test ! -r "$srcdir/$ac_unique_file"; then
1217
ac_srcdir_defaulted=no
1219
if test ! -r "$srcdir/$ac_unique_file"; then
1220
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1223
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227
# When building in place, set srcdir=.
1228
if test "$ac_abs_confdir" = "$ac_pwd"; then
1231
# Remove unnecessary trailing slashes from srcdir.
1232
# Double slashes in file names in object file debugging info
1233
# mess up M-x gdb in Emacs.
1235
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237
for ac_var in $ac_precious_vars; do
1238
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239
eval ac_env_${ac_var}_value=\$${ac_var}
1240
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245
# Report the --help message.
1247
if test "$ac_init_help" = "long"; then
1248
# Omit some internal or obsolete options to make the list less imposing.
1249
# This message is too long to be a string in the A/UX 3.1 sh.
1251
\`configure' configures nbd-proxy 0.1 to adapt to many kinds of systems.
1253
Usage: $0 [OPTION]... [VAR=VALUE]...
1255
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256
VAR=VALUE. See below for descriptions of some of the useful variables.
1258
Defaults for the options are specified in brackets.
1261
-h, --help display this help and exit
1262
--help=short display options specific to this package
1263
--help=recursive display the short help of all the included packages
1264
-V, --version display version information and exit
1265
-q, --quiet, --silent do not print \`checking ...' messages
1266
--cache-file=FILE cache test results in FILE [disabled]
1267
-C, --config-cache alias for \`--cache-file=config.cache'
1268
-n, --no-create do not create output files
1269
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1271
Installation directories:
1272
--prefix=PREFIX install architecture-independent files in PREFIX
1273
@<:@@S|@ac_default_prefix@:>@
1274
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277
By default, \`make install' will install all the files in
1278
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280
for instance \`--prefix=\$HOME'.
1282
For better control, use the options below.
1284
Fine tuning of the installation directories:
1285
--bindir=DIR user executables [EPREFIX/bin]
1286
--sbindir=DIR system admin executables [EPREFIX/sbin]
1287
--libexecdir=DIR program executables [EPREFIX/libexec]
1288
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291
--libdir=DIR object code libraries [EPREFIX/lib]
1292
--includedir=DIR C header files [PREFIX/include]
1293
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1294
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296
--infodir=DIR info documentation [DATAROOTDIR/info]
1297
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298
--mandir=DIR man documentation [DATAROOTDIR/man]
1299
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/nbd-proxy@:>@
1300
--htmldir=DIR html documentation [DOCDIR]
1301
--dvidir=DIR dvi documentation [DOCDIR]
1302
--pdfdir=DIR pdf documentation [DOCDIR]
1303
--psdir=DIR ps documentation [DOCDIR]
1309
--program-prefix=PREFIX prepend PREFIX to installed program names
1310
--program-suffix=SUFFIX append SUFFIX to installed program names
1311
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1315
if test -n "$ac_init_help"; then
1316
case $ac_init_help in
1317
short | recursive ) echo "Configuration of nbd-proxy 0.1:";;
1322
--disable-option-checking ignore unrecognized --enable/--with options
1323
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1324
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1325
--enable-maintainer-mode enable make rules and dependencies not useful
1326
(and sometimes confusing) to the casual installer
1327
--disable-dependency-tracking speeds up one-time build
1328
--enable-dependency-tracking do not reject slow dependency extractors
1330
Some influential environment variables:
1331
CC C compiler command
1332
CFLAGS C compiler flags
1333
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334
nonstandard directory <lib dir>
1335
LIBS libraries to pass to the linker, e.g. -l<library>
1336
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1337
you have headers in a nonstandard directory <include dir>
1340
Use these variables to override the choices made by `configure' or to help
1341
it to find libraries and programs with nonstandard names/locations.
1343
Report bugs to <stgraber@ltsp.org>.
1348
if test "$ac_init_help" = "recursive"; then
1349
# If there are subdirs, report their specific --help.
1350
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351
test -d "$ac_dir" ||
1352
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1357
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1360
# A ".." for each directory in $ac_dir_suffix.
1361
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362
case $ac_top_builddir_sub in
1363
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367
ac_abs_top_builddir=$ac_pwd
1368
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369
# for backward compatibility:
1370
ac_top_builddir=$ac_top_build_prefix
1373
.) # We are building in place.
1375
ac_top_srcdir=$ac_top_builddir_sub
1376
ac_abs_top_srcdir=$ac_pwd ;;
1377
[\\/]* | ?:[\\/]* ) # Absolute name.
1378
ac_srcdir=$srcdir$ac_dir_suffix;
1379
ac_top_srcdir=$srcdir
1380
ac_abs_top_srcdir=$srcdir ;;
1382
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383
ac_top_srcdir=$ac_top_build_prefix$srcdir
1384
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388
cd "$ac_dir" || { ac_status=$?; continue; }
1389
# Check for guested configure.
1390
if test -f "$ac_srcdir/configure.gnu"; then
1392
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393
elif test -f "$ac_srcdir/configure"; then
1395
$SHELL "$ac_srcdir/configure" --help=recursive
1397
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399
cd "$ac_pwd" || { ac_status=$?; break; }
1403
test -n "$ac_init_help" && exit $ac_status
1404
if $ac_init_version; then
1406
nbd-proxy configure 0.1
1407
generated by GNU Autoconf 2.68
1409
Copyright (C) 2010 Free Software Foundation, Inc.
1410
This configure script is free software; the Free Software Foundation
1411
gives unlimited permission to copy, distribute and modify it.
1416
## ------------------------ ##
1417
## Autoconf initialization. ##
1418
## ------------------------ ##
1420
@%:@ ac_fn_c_try_compile LINENO
1421
@%:@ --------------------------
1422
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1423
ac_fn_c_try_compile ()
1425
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426
rm -f conftest.$ac_objext
1427
if { { ac_try="$ac_compile"
1429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430
*) ac_try_echo=$ac_try;;
1432
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433
$as_echo "$ac_try_echo"; } >&5
1434
(eval "$ac_compile") 2>conftest.err
1436
if test -s conftest.err; then
1437
grep -v '^ *+' conftest.err >conftest.er1
1438
cat conftest.er1 >&5
1439
mv -f conftest.er1 conftest.err
1441
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442
test $ac_status = 0; } && {
1443
test -z "$ac_c_werror_flag" ||
1444
test ! -s conftest.err
1445
} && test -s conftest.$ac_objext; then :
1448
$as_echo "$as_me: failed program was:" >&5
1449
sed 's/^/| /' conftest.$ac_ext >&5
1453
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1454
as_fn_set_status $ac_retval
1456
} @%:@ ac_fn_c_try_compile
1458
@%:@ ac_fn_c_try_link LINENO
1459
@%:@ -----------------------
1460
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1463
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464
rm -f conftest.$ac_objext conftest$ac_exeext
1465
if { { ac_try="$ac_link"
1467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468
*) ac_try_echo=$ac_try;;
1470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471
$as_echo "$ac_try_echo"; } >&5
1472
(eval "$ac_link") 2>conftest.err
1474
if test -s conftest.err; then
1475
grep -v '^ *+' conftest.err >conftest.er1
1476
cat conftest.er1 >&5
1477
mv -f conftest.er1 conftest.err
1479
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480
test $ac_status = 0; } && {
1481
test -z "$ac_c_werror_flag" ||
1482
test ! -s conftest.err
1483
} && test -s conftest$ac_exeext && {
1484
test "$cross_compiling" = yes ||
1485
$as_test_x conftest$ac_exeext
1489
$as_echo "$as_me: failed program was:" >&5
1490
sed 's/^/| /' conftest.$ac_ext >&5
1494
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1495
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1496
# interfere with the next link command; also delete a directory that is
1497
# left behind by Apple's compiler. We do this before executing the actions.
1498
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1499
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500
as_fn_set_status $ac_retval
1502
} @%:@ ac_fn_c_try_link
1504
@%:@ ac_fn_c_try_cpp LINENO
1505
@%:@ ----------------------
1506
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1509
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510
if { { ac_try="$ac_cpp conftest.$ac_ext"
1512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513
*) ac_try_echo=$ac_try;;
1515
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516
$as_echo "$ac_try_echo"; } >&5
1517
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1519
if test -s conftest.err; then
1520
grep -v '^ *+' conftest.err >conftest.er1
1521
cat conftest.er1 >&5
1522
mv -f conftest.er1 conftest.err
1524
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525
test $ac_status = 0; } > conftest.i && {
1526
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1527
test ! -s conftest.err
1531
$as_echo "$as_me: failed program was:" >&5
1532
sed 's/^/| /' conftest.$ac_ext >&5
1536
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537
as_fn_set_status $ac_retval
1539
} @%:@ ac_fn_c_try_cpp
1541
@%:@ ac_fn_c_try_run LINENO
1542
@%:@ ----------------------
1543
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1544
@%:@ that executables *can* be run.
1547
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548
if { { ac_try="$ac_link"
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_link") 2>&5
1557
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1559
{ { case "(($ac_try" in
1560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561
*) ac_try_echo=$ac_try;;
1563
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564
$as_echo "$ac_try_echo"; } >&5
1565
(eval "$ac_try") 2>&5
1567
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568
test $ac_status = 0; }; }; then :
1571
$as_echo "$as_me: program exited with status $ac_status" >&5
1572
$as_echo "$as_me: failed program was:" >&5
1573
sed 's/^/| /' conftest.$ac_ext >&5
1575
ac_retval=$ac_status
1577
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579
as_fn_set_status $ac_retval
1581
} @%:@ ac_fn_c_try_run
1583
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584
@%:@ -------------------------------------------------------
1585
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586
@%:@ the include files in INCLUDES and setting the cache variable VAR
1588
ac_fn_c_check_header_mongrel ()
1590
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591
if eval \${$3+:} false; then :
1592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593
$as_echo_n "checking for $2... " >&6; }
1594
if eval \${$3+:} false; then :
1595
$as_echo_n "(cached) " >&6
1598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599
$as_echo "$ac_res" >&6; }
1601
# Is the header compilable?
1602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603
$as_echo_n "checking $2 usability... " >&6; }
1604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605
/* end confdefs.h. */
1609
if ac_fn_c_try_compile "$LINENO"; then :
1610
ac_header_compiler=yes
1612
ac_header_compiler=no
1614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616
$as_echo "$ac_header_compiler" >&6; }
1618
# Is the header present?
1619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620
$as_echo_n "checking $2 presence... " >&6; }
1621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622
/* end confdefs.h. */
1625
if ac_fn_c_try_cpp "$LINENO"; then :
1626
ac_header_preproc=yes
1628
ac_header_preproc=no
1630
rm -f conftest.err conftest.i conftest.$ac_ext
1631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632
$as_echo "$ac_header_preproc" >&6; }
1634
# So? What about this header?
1635
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653
( $as_echo "## -------------------------------- ##
1654
## Report this to stgraber@ltsp.org ##
1655
## -------------------------------- ##"
1656
) | sed "s/^/$as_me: WARNING: /" >&2
1659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660
$as_echo_n "checking for $2... " >&6; }
1661
if eval \${$3+:} false; then :
1662
$as_echo_n "(cached) " >&6
1664
eval "$3=\$ac_header_compiler"
1667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668
$as_echo "$ac_res" >&6; }
1670
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
} @%:@ ac_fn_c_check_header_mongrel
1674
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675
@%:@ -------------------------------------------------------
1676
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1677
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1678
ac_fn_c_check_header_compile ()
1680
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682
$as_echo_n "checking for $2... " >&6; }
1683
if eval \${$3+:} false; then :
1684
$as_echo_n "(cached) " >&6
1686
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687
/* end confdefs.h. */
1691
if ac_fn_c_try_compile "$LINENO"; then :
1696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700
$as_echo "$ac_res" >&6; }
1701
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
} @%:@ ac_fn_c_check_header_compile
1704
cat >config.log <<_ACEOF
1705
This file contains any messages produced by compilers while
1706
running configure, to aid debugging if configure makes a mistake.
1708
It was created by nbd-proxy $as_me 0.1, which was
1709
generated by GNU Autoconf 2.68. Invocation command line was
1721
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1727
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1730
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1731
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1732
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1734
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1735
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1736
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744
test -z "$as_dir" && as_dir=.
1745
$as_echo "PATH: $as_dir"
1761
# Keep a trace of the command line.
1762
# Strip out --no-create and --no-recursion so they do not pile up.
1763
# Strip out --silent because we don't want to record it for future runs.
1764
# Also quote any args containing shell meta-characters.
1765
# Make two passes to allow for proper duplicate-argument suppression.
1769
ac_must_keep_next=false
1775
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777
| -silent | --silent | --silen | --sile | --sil)
1780
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1783
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1785
as_fn_append ac_configure_args1 " '$ac_arg'"
1786
if test $ac_must_keep_next = true; then
1787
ac_must_keep_next=false # Got value, back to normal.
1790
*=* | --config-cache | -C | -disable-* | --disable-* \
1791
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793
| -with-* | --with-* | -without-* | --without-* | --x)
1794
case "$ac_configure_args0 " in
1795
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1798
-* ) ac_must_keep_next=true ;;
1801
as_fn_append ac_configure_args " '$ac_arg'"
1806
{ ac_configure_args0=; unset ac_configure_args0;}
1807
{ ac_configure_args1=; unset ac_configure_args1;}
1809
# When interrupted or exit'd, cleanup temporary files, and complete
1810
# config.log. We remove comments because anyway the quotes in there
1811
# would cause problems or look ugly.
1812
# WARNING: Use '\'' to represent an apostrophe within the trap.
1813
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814
trap 'exit_status=$?
1815
# Save into config.log some information that might help in debugging.
1819
$as_echo "## ---------------- ##
1820
## Cache variables. ##
1821
## ---------------- ##"
1823
# The following way of writing the cache mishandles newlines in values,
1825
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826
eval ac_val=\$$ac_var
1830
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1831
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834
_ | IFS | as_nl) ;; #(
1835
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836
*) { eval $ac_var=; unset $ac_var;} ;;
1841
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842
*${as_nl}ac_space=\ *)
1844
"s/'\''/'\''\\\\'\'''\''/g;
1845
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1855
$as_echo "## ----------------- ##
1856
## Output variables. ##
1857
## ----------------- ##"
1859
for ac_var in $ac_subst_vars
1861
eval ac_val=\$$ac_var
1863
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865
$as_echo "$ac_var='\''$ac_val'\''"
1869
if test -n "$ac_subst_files"; then
1870
$as_echo "## ------------------- ##
1871
## File substitutions. ##
1872
## ------------------- ##"
1874
for ac_var in $ac_subst_files
1876
eval ac_val=\$$ac_var
1878
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880
$as_echo "$ac_var='\''$ac_val'\''"
1885
if test -s confdefs.h; then
1886
$as_echo "## ----------- ##
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
# We do not want a PATH search for config.site.
1944
case $CONFIG_SITE in @%:@((
1945
-*) ac_site_file1=./$CONFIG_SITE;;
1946
*/*) ac_site_file1=$CONFIG_SITE;;
1947
*) ac_site_file1=./$CONFIG_SITE;;
1949
elif test "x$prefix" != xNONE; then
1950
ac_site_file1=$prefix/share/config.site
1951
ac_site_file2=$prefix/etc/config.site
1953
ac_site_file1=$ac_default_prefix/share/config.site
1954
ac_site_file2=$ac_default_prefix/etc/config.site
1956
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1958
test "x$ac_site_file" = xNONE && continue
1959
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1960
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1961
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1962
sed 's/^/| /' "$ac_site_file" >&5
1964
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1965
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1966
as_fn_error $? "failed to load site script $ac_site_file
1967
See \`config.log' for more details" "$LINENO" 5; }
1971
if test -r "$cache_file"; then
1972
# Some versions of bash will fail to source /dev/null (special files
1973
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
1974
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1975
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1976
$as_echo "$as_me: loading cache $cache_file" >&6;}
1978
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1979
*) . "./$cache_file";;
1983
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1984
$as_echo "$as_me: creating cache $cache_file" >&6;}
1988
# Check that the precious variables saved in the cache have kept the same
1990
ac_cache_corrupted=false
1991
for ac_var in $ac_precious_vars; do
1992
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1993
eval ac_new_set=\$ac_env_${ac_var}_set
1994
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1995
eval ac_new_val=\$ac_env_${ac_var}_value
1996
case $ac_old_set,$ac_new_set in
1998
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1999
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2000
ac_cache_corrupted=: ;;
2002
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2003
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2004
ac_cache_corrupted=: ;;
2007
if test "x$ac_old_val" != "x$ac_new_val"; then
2008
# differences in whitespace do not lead to failure.
2009
ac_old_val_w=`echo x $ac_old_val`
2010
ac_new_val_w=`echo x $ac_new_val`
2011
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2012
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2013
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2014
ac_cache_corrupted=:
2016
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2017
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2018
eval $ac_var=\$ac_old_val
2020
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2021
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2022
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2023
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2026
# Pass precious variables to config.status.
2027
if test "$ac_new_set" = set; then
2029
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2030
*) ac_arg=$ac_var=$ac_new_val ;;
2032
case " $ac_configure_args " in
2033
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2034
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2038
if $ac_cache_corrupted; then
2039
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2040
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2041
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2042
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2045
## -------------------- ##
2046
## Main body of script. ##
2047
## -------------------- ##
2050
ac_cpp='$CPP $CPPFLAGS'
2051
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
am__api_version='1.11'
2060
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2061
if test -f "$ac_dir/install-sh"; then
2063
ac_install_sh="$ac_aux_dir/install-sh -c"
2065
elif test -f "$ac_dir/install.sh"; then
2067
ac_install_sh="$ac_aux_dir/install.sh -c"
2069
elif test -f "$ac_dir/shtool"; then
2071
ac_install_sh="$ac_aux_dir/shtool install -c"
2075
if test -z "$ac_aux_dir"; then
2076
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2079
# These three variables are undocumented and unsupported,
2080
# and are intended to be withdrawn in a future Autoconf release.
2081
# They can cause serious problems if a builder's source tree is in a directory
2082
# whose full name contains unusual characters.
2083
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
# Find a good install program. We prefer a C program (faster),
2089
# so one script is as good as another. But avoid the broken or
2090
# incompatible versions:
2091
# SysV /etc/install, /usr/sbin/install
2092
# SunOS /usr/etc/install
2093
# IRIX /sbin/install
2095
# AmigaOS /C/install, which installs bootblocks on floppy discs
2096
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2097
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2098
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2099
# OS/2's system install, which has a completely different semantic
2100
# ./install, which can be erroneously created by make from ./install.sh.
2101
# Reject install programs that cannot install multiple files.
2102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2103
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2104
if test -z "$INSTALL"; then
2105
if ${ac_cv_path_install+:} false; then :
2106
$as_echo_n "(cached) " >&6
2108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112
test -z "$as_dir" && as_dir=.
2113
# Account for people who put trailing slashes in PATH elements.
2114
case $as_dir/ in @%:@((
2115
./ | .// | /[cC]/* | \
2116
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2117
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2120
# OSF1 and SCO ODT 3.0 have their own names for install.
2121
# Don't use installbsd from OSF since it installs stuff as root
2123
for ac_prog in ginstall scoinst install; do
2124
for ac_exec_ext in '' $ac_executable_extensions; do
2125
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2126
if test $ac_prog = install &&
2127
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128
# AIX install. It has an incompatible calling convention.
2130
elif test $ac_prog = install &&
2131
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132
# program-specific install script used by HP pwplus--don't use.
2135
rm -rf conftest.one conftest.two conftest.dir
2136
echo one > conftest.one
2137
echo two > conftest.two
2139
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2140
test -s conftest.one && test -s conftest.two &&
2141
test -s conftest.dir/conftest.one &&
2142
test -s conftest.dir/conftest.two
2144
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2157
rm -rf conftest.one conftest.two conftest.dir
2160
if test "${ac_cv_path_install+set}" = set; then
2161
INSTALL=$ac_cv_path_install
2163
# As a last resort, use the slow shell script. Don't cache a
2164
# value for INSTALL within a source directory, because that will
2165
# break other packages using the cache if that directory is
2166
# removed, or if the value is a relative name.
2167
INSTALL=$ac_install_sh
2170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2171
$as_echo "$INSTALL" >&6; }
2173
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2174
# It thinks the first close brace ends the variable substitution.
2175
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2177
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2179
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2182
$as_echo_n "checking whether build environment is sane... " >&6; }
2185
echo timestamp > conftest.file
2186
# Reject unsafe characters in $srcdir or the absolute working directory
2187
# name. Accept space and tab only in the latter.
2191
*[\\\"\#\$\&\'\`$am_lf]*)
2192
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2195
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2196
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2199
# Do `set' in a subshell so we don't clobber the current shell's
2200
# arguments. Must try -L first in case configure is actually a
2201
# symlink; some systems play weird games with the mod time of symlinks
2202
# (eg FreeBSD returns the mod time of the symlink's containing
2205
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2206
if test "$*" = "X"; then
2208
set X `ls -t "$srcdir/configure" conftest.file`
2211
if test "$*" != "X $srcdir/configure conftest.file" \
2212
&& test "$*" != "X conftest.file $srcdir/configure"; then
2214
# If neither matched, then we have a broken ls. This can happen
2215
# if, for instance, CONFIG_SHELL is bash and it inherits a
2216
# broken ls alias from the environment. This has actually
2217
# happened. Such a system could not be considered "sane".
2218
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2219
alias in your environment" "$LINENO" 5
2222
test "$2" = conftest.file
2228
as_fn_error $? "newly created file is older than distributed files!
2229
Check your system clock" "$LINENO" 5
2231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2232
$as_echo "yes" >&6; }
2233
test "$program_prefix" != NONE &&
2234
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2235
# Use a double $ so make ignores it.
2236
test "$program_suffix" != NONE &&
2237
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2238
# Double any \ or $.
2239
# By default was `s,x,x', remove it if useless.
2240
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2241
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2243
# expand $ac_aux_dir to an absolute path
2244
am_aux_dir=`cd $ac_aux_dir && pwd`
2246
if test x"${MISSING+set}" != xset; then
2249
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2251
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2254
# Use eval to expand $SHELL
2255
if eval "$MISSING --run true"; then
2256
am_missing_run="$MISSING --run "
2259
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2260
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2263
if test x"${install_sh}" != xset; then
2266
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2268
install_sh="\${SHELL} $am_aux_dir/install-sh"
2272
# Installed binaries are usually stripped using `strip' when the user
2273
# run `make install-strip'. However `strip' might not be the right
2274
# tool to use in cross-compilation environments, therefore Automake
2275
# will honor the `STRIP' environment variable to overrule this program.
2276
if test "$cross_compiling" != no; then
2277
if test -n "$ac_tool_prefix"; then
2278
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2279
set dummy ${ac_tool_prefix}strip; ac_word=$2
2280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281
$as_echo_n "checking for $ac_word... " >&6; }
2282
if ${ac_cv_prog_STRIP+:} false; then :
2283
$as_echo_n "(cached) " >&6
2285
if test -n "$STRIP"; then
2286
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292
test -z "$as_dir" && as_dir=.
2293
for ac_exec_ext in '' $ac_executable_extensions; do
2294
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2296
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305
STRIP=$ac_cv_prog_STRIP
2306
if test -n "$STRIP"; then
2307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2308
$as_echo "$STRIP" >&6; }
2310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311
$as_echo "no" >&6; }
2316
if test -z "$ac_cv_prog_STRIP"; then
2318
# Extract the first word of "strip", so it can be a program name with args.
2319
set dummy strip; ac_word=$2
2320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321
$as_echo_n "checking for $ac_word... " >&6; }
2322
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2323
$as_echo_n "(cached) " >&6
2325
if test -n "$ac_ct_STRIP"; then
2326
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332
test -z "$as_dir" && as_dir=.
2333
for ac_exec_ext in '' $ac_executable_extensions; do
2334
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335
ac_cv_prog_ac_ct_STRIP="strip"
2336
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2345
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2346
if test -n "$ac_ct_STRIP"; then
2347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2348
$as_echo "$ac_ct_STRIP" >&6; }
2350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351
$as_echo "no" >&6; }
2354
if test "x$ac_ct_STRIP" = x; then
2357
case $cross_compiling:$ac_tool_warned in
2359
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2360
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2361
ac_tool_warned=yes ;;
2366
STRIP="$ac_cv_prog_STRIP"
2370
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2373
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2374
if test -z "$MKDIR_P"; then
2375
if ${ac_cv_path_mkdir+:} false; then :
2376
$as_echo_n "(cached) " >&6
2378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2382
test -z "$as_dir" && as_dir=.
2383
for ac_prog in mkdir gmkdir; do
2384
for ac_exec_ext in '' $ac_executable_extensions; do
2385
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2386
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2387
'mkdir (GNU coreutils) '* | \
2388
'mkdir (coreutils) '* | \
2389
'mkdir (fileutils) '4.1*)
2390
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2400
test -d ./--version && rmdir ./--version
2401
if test "${ac_cv_path_mkdir+set}" = set; then
2402
MKDIR_P="$ac_cv_path_mkdir -p"
2404
# As a last resort, use the slow shell script. Don't cache a
2405
# value for MKDIR_P within a source directory, because that will
2406
# break other packages using the cache if that directory is
2407
# removed, or if the value is a relative name.
2408
MKDIR_P="$ac_install_sh -d"
2411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2412
$as_echo "$MKDIR_P" >&6; }
2416
[\\/$]* | ?:[\\/]*) ;;
2417
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2420
for ac_prog in gawk mawk nawk awk
2422
# Extract the first word of "$ac_prog", so it can be a program name with args.
2423
set dummy $ac_prog; ac_word=$2
2424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425
$as_echo_n "checking for $ac_word... " >&6; }
2426
if ${ac_cv_prog_AWK+:} false; then :
2427
$as_echo_n "(cached) " >&6
2429
if test -n "$AWK"; then
2430
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436
test -z "$as_dir" && as_dir=.
2437
for ac_exec_ext in '' $ac_executable_extensions; do
2438
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439
ac_cv_prog_AWK="$ac_prog"
2440
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450
if test -n "$AWK"; then
2451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2452
$as_echo "$AWK" >&6; }
2454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455
$as_echo "no" >&6; }
2459
test -n "$AWK" && break
2462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2463
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2465
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2466
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2467
$as_echo_n "(cached) " >&6
2469
cat >conftest.make <<\_ACEOF
2472
@echo '@@@%%%=$(MAKE)=@@@%%%'
2474
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2475
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2477
eval ac_cv_prog_make_${ac_make}_set=yes;;
2479
eval ac_cv_prog_make_${ac_make}_set=no;;
2483
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485
$as_echo "yes" >&6; }
2488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489
$as_echo "no" >&6; }
2490
SET_MAKE="MAKE=${MAKE-make}"
2493
rm -rf .tst 2>/dev/null
2494
mkdir .tst 2>/dev/null
2495
if test -d .tst; then
2500
rmdir .tst 2>/dev/null
2502
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2503
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2504
# is not polluted with repeated "-I."
2505
am__isrc=' -I$(srcdir)'
2506
# test to see if srcdir already configured
2507
if test -f $srcdir/config.status; then
2508
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2512
# test whether we have cygpath
2513
if test -z "$CYGPATH_W"; then
2514
if (cygpath --version) >/dev/null 2>/dev/null; then
2515
CYGPATH_W='cygpath -w'
2522
# Define the identity of the package.
2527
cat >>confdefs.h <<_ACEOF
2528
@%:@define PACKAGE "$PACKAGE"
2532
cat >>confdefs.h <<_ACEOF
2533
@%:@define VERSION "$VERSION"
2536
# Some tools Automake needs.
2538
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2541
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2544
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2547
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2550
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2552
# We need awk for the "check" target. The system "awk" is bad on
2554
# Always define AMTAR for backward compatibility. Yes, it's still used
2555
# in the wild :-( We should find a proper way to deprecate it ...
2558
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2565
ac_config_headers="$ac_config_headers config.h"
2568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2569
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2570
@%:@ Check whether --enable-maintainer-mode was given.
2571
if test "${enable_maintainer_mode+set}" = set; then :
2572
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2574
USE_MAINTAINER_MODE=no
2577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2578
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2579
if test $USE_MAINTAINER_MODE = yes; then
2580
MAINTAINER_MODE_TRUE=
2581
MAINTAINER_MODE_FALSE='#'
2583
MAINTAINER_MODE_TRUE='#'
2584
MAINTAINER_MODE_FALSE=
2587
MAINT=$MAINTAINER_MODE_TRUE
2591
# Checks for programs.
2593
ac_cpp='$CPP $CPPFLAGS'
2594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597
if test -n "$ac_tool_prefix"; then
2598
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2599
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601
$as_echo_n "checking for $ac_word... " >&6; }
2602
if ${ac_cv_prog_CC+:} false; then :
2603
$as_echo_n "(cached) " >&6
2605
if test -n "$CC"; then
2606
ac_cv_prog_CC="$CC" # Let the user override the test.
2608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612
test -z "$as_dir" && as_dir=.
2613
for ac_exec_ext in '' $ac_executable_extensions; do
2614
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2616
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626
if test -n "$CC"; then
2627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2628
$as_echo "$CC" >&6; }
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631
$as_echo "no" >&6; }
2636
if test -z "$ac_cv_prog_CC"; then
2638
# Extract the first word of "gcc", so it can be a program name with args.
2639
set dummy gcc; ac_word=$2
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641
$as_echo_n "checking for $ac_word... " >&6; }
2642
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2643
$as_echo_n "(cached) " >&6
2645
if test -n "$ac_ct_CC"; then
2646
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652
test -z "$as_dir" && as_dir=.
2653
for ac_exec_ext in '' $ac_executable_extensions; do
2654
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655
ac_cv_prog_ac_ct_CC="gcc"
2656
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666
if test -n "$ac_ct_CC"; then
2667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668
$as_echo "$ac_ct_CC" >&6; }
2670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671
$as_echo "no" >&6; }
2674
if test "x$ac_ct_CC" = x; then
2677
case $cross_compiling:$ac_tool_warned in
2679
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2680
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681
ac_tool_warned=yes ;;
2689
if test -z "$CC"; then
2690
if test -n "$ac_tool_prefix"; then
2691
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2692
set dummy ${ac_tool_prefix}cc; ac_word=$2
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694
$as_echo_n "checking for $ac_word... " >&6; }
2695
if ${ac_cv_prog_CC+:} false; then :
2696
$as_echo_n "(cached) " >&6
2698
if test -n "$CC"; then
2699
ac_cv_prog_CC="$CC" # Let the user override the test.
2701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705
test -z "$as_dir" && as_dir=.
2706
for ac_exec_ext in '' $ac_executable_extensions; do
2707
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708
ac_cv_prog_CC="${ac_tool_prefix}cc"
2709
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719
if test -n "$CC"; then
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721
$as_echo "$CC" >&6; }
2723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724
$as_echo "no" >&6; }
2730
if test -z "$CC"; then
2731
# Extract the first word of "cc", so it can be a program name with args.
2732
set dummy cc; ac_word=$2
2733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734
$as_echo_n "checking for $ac_word... " >&6; }
2735
if ${ac_cv_prog_CC+:} false; then :
2736
$as_echo_n "(cached) " >&6
2738
if test -n "$CC"; then
2739
ac_cv_prog_CC="$CC" # Let the user override the test.
2742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746
test -z "$as_dir" && as_dir=.
2747
for ac_exec_ext in '' $ac_executable_extensions; do
2748
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2750
ac_prog_rejected=yes
2754
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761
if test $ac_prog_rejected = yes; then
2762
# We found a bogon in the path, so make sure we never use it.
2763
set dummy $ac_cv_prog_CC
2765
if test $@%:@ != 0; then
2766
# We chose a different compiler from the bogus one.
2767
# However, it has the same basename, so the bogon will be chosen
2768
# first if we set CC to just the basename; use the full file name.
2770
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2776
if test -n "$CC"; then
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778
$as_echo "$CC" >&6; }
2780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781
$as_echo "no" >&6; }
2786
if test -z "$CC"; then
2787
if test -n "$ac_tool_prefix"; then
2788
for ac_prog in cl.exe
2790
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793
$as_echo_n "checking for $ac_word... " >&6; }
2794
if ${ac_cv_prog_CC+:} false; then :
2795
$as_echo_n "(cached) " >&6
2797
if test -n "$CC"; then
2798
ac_cv_prog_CC="$CC" # Let the user override the test.
2800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804
test -z "$as_dir" && as_dir=.
2805
for ac_exec_ext in '' $ac_executable_extensions; do
2806
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2808
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818
if test -n "$CC"; then
2819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820
$as_echo "$CC" >&6; }
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823
$as_echo "no" >&6; }
2827
test -n "$CC" && break
2830
if test -z "$CC"; then
2832
for ac_prog in cl.exe
2834
# Extract the first word of "$ac_prog", so it can be a program name with args.
2835
set dummy $ac_prog; ac_word=$2
2836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837
$as_echo_n "checking for $ac_word... " >&6; }
2838
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2839
$as_echo_n "(cached) " >&6
2841
if test -n "$ac_ct_CC"; then
2842
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848
test -z "$as_dir" && as_dir=.
2849
for ac_exec_ext in '' $ac_executable_extensions; do
2850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851
ac_cv_prog_ac_ct_CC="$ac_prog"
2852
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862
if test -n "$ac_ct_CC"; then
2863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864
$as_echo "$ac_ct_CC" >&6; }
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867
$as_echo "no" >&6; }
2871
test -n "$ac_ct_CC" && break
2874
if test "x$ac_ct_CC" = x; then
2877
case $cross_compiling:$ac_tool_warned in
2879
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881
ac_tool_warned=yes ;;
2890
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892
as_fn_error $? "no acceptable C compiler found in \$PATH
2893
See \`config.log' for more details" "$LINENO" 5; }
2895
# Provide some information about the compiler.
2896
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2899
for ac_option in --version -v -V -qversion; do
2900
{ { ac_try="$ac_compiler $ac_option >&5"
2902
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903
*) ac_try_echo=$ac_try;;
2905
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906
$as_echo "$ac_try_echo"; } >&5
2907
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2909
if test -s conftest.err; then
2911
... rest of stderr output deleted ...
2912
10q' conftest.err >conftest.er1
2913
cat conftest.er1 >&5
2915
rm -f conftest.er1 conftest.err
2916
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917
test $ac_status = 0; }
2920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921
/* end confdefs.h. */
2931
ac_clean_files_save=$ac_clean_files
2932
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2933
# Try to create an executable without -o first, disregard a.out.
2934
# It will help us diagnose broken compilers, and finding out an intuition
2936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2937
$as_echo_n "checking whether the C compiler works... " >&6; }
2938
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2940
# The possible output files:
2941
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2944
for ac_file in $ac_files
2947
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2948
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953
if { { ac_try="$ac_link_default"
2955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956
*) ac_try_echo=$ac_try;;
2958
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959
$as_echo "$ac_try_echo"; } >&5
2960
(eval "$ac_link_default") 2>&5
2962
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963
test $ac_status = 0; }; then :
2964
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2965
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2966
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2967
# so that the user can short-circuit this test for compilers unknown to
2969
for ac_file in $ac_files ''
2971
test -f "$ac_file" || continue
2973
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2976
# We found the default executable, but exeext='' is most
2980
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2982
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984
# We set ac_cv_exeext here because the later test for it is not
2985
# safe: cross compilers may not add the suffix if given an `-o'
2986
# argument, so we may need to know it at that point already.
2987
# Even if this section looks crufty: it has the advantage of
2994
test "$ac_cv_exeext" = no && ac_cv_exeext=
2999
if test -z "$ac_file"; then :
3000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001
$as_echo "no" >&6; }
3002
$as_echo "$as_me: failed program was:" >&5
3003
sed 's/^/| /' conftest.$ac_ext >&5
3005
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007
as_fn_error 77 "C compiler cannot create executables
3008
See \`config.log' for more details" "$LINENO" 5; }
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3011
$as_echo "yes" >&6; }
3013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3014
$as_echo_n "checking for C compiler default output file name... " >&6; }
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3016
$as_echo "$ac_file" >&6; }
3017
ac_exeext=$ac_cv_exeext
3019
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3020
ac_clean_files=$ac_clean_files_save
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3022
$as_echo_n "checking for suffix of executables... " >&6; }
3023
if { { ac_try="$ac_link"
3025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026
*) ac_try_echo=$ac_try;;
3028
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029
$as_echo "$ac_try_echo"; } >&5
3030
(eval "$ac_link") 2>&5
3032
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033
test $ac_status = 0; }; then :
3034
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3035
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3036
# work properly (i.e., refer to `conftest.exe'), while it won't with
3038
for ac_file in conftest.exe conftest conftest.*; do
3039
test -f "$ac_file" || continue
3041
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3051
See \`config.log' for more details" "$LINENO" 5; }
3053
rm -f conftest conftest$ac_cv_exeext
3054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3055
$as_echo "$ac_cv_exeext" >&6; }
3057
rm -f conftest.$ac_ext
3058
EXEEXT=$ac_cv_exeext
3060
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061
/* end confdefs.h. */
3062
@%:@include <stdio.h>
3066
FILE *f = fopen ("conftest.out", "w");
3067
return ferror (f) || fclose (f) != 0;
3073
ac_clean_files="$ac_clean_files conftest.out"
3074
# Check that the compiler produces executables we can run. If not, either
3075
# the compiler is broken, or we cross compile.
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3077
$as_echo_n "checking whether we are cross compiling... " >&6; }
3078
if test "$cross_compiling" != yes; then
3079
{ { ac_try="$ac_link"
3081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082
*) ac_try_echo=$ac_try;;
3084
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085
$as_echo "$ac_try_echo"; } >&5
3086
(eval "$ac_link") 2>&5
3088
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089
test $ac_status = 0; }
3090
if { ac_try='./conftest$ac_cv_exeext'
3091
{ { case "(($ac_try" in
3092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093
*) ac_try_echo=$ac_try;;
3095
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096
$as_echo "$ac_try_echo"; } >&5
3097
(eval "$ac_try") 2>&5
3099
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100
test $ac_status = 0; }; }; then
3103
if test "$cross_compiling" = maybe; then
3106
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108
as_fn_error $? "cannot run C compiled programs.
3109
If you meant to cross compile, use \`--host'.
3110
See \`config.log' for more details" "$LINENO" 5; }
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3115
$as_echo "$cross_compiling" >&6; }
3117
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3118
ac_clean_files=$ac_clean_files_save
3119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3120
$as_echo_n "checking for suffix of object files... " >&6; }
3121
if ${ac_cv_objext+:} false; then :
3122
$as_echo_n "(cached) " >&6
3124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125
/* end confdefs.h. */
3135
rm -f conftest.o conftest.obj
3136
if { { ac_try="$ac_compile"
3138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139
*) ac_try_echo=$ac_try;;
3141
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142
$as_echo "$ac_try_echo"; } >&5
3143
(eval "$ac_compile") 2>&5
3145
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146
test $ac_status = 0; }; then :
3147
for ac_file in conftest.o conftest.obj conftest.*; do
3148
test -f "$ac_file" || continue;
3150
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3151
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156
$as_echo "$as_me: failed program was:" >&5
3157
sed 's/^/| /' conftest.$ac_ext >&5
3159
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161
as_fn_error $? "cannot compute suffix of object files: cannot compile
3162
See \`config.log' for more details" "$LINENO" 5; }
3164
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3167
$as_echo "$ac_cv_objext" >&6; }
3168
OBJEXT=$ac_cv_objext
3170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3171
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3172
if ${ac_cv_c_compiler_gnu+:} false; then :
3173
$as_echo_n "(cached) " >&6
3175
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176
/* end confdefs.h. */
3189
if ac_fn_c_try_compile "$LINENO"; then :
3194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3199
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3200
if test $ac_compiler_gnu = yes; then
3205
ac_test_CFLAGS=${CFLAGS+set}
3206
ac_save_CFLAGS=$CFLAGS
3207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3208
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3209
if ${ac_cv_prog_cc_g+:} false; then :
3210
$as_echo_n "(cached) " >&6
3212
ac_save_c_werror_flag=$ac_c_werror_flag
3213
ac_c_werror_flag=yes
3216
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217
/* end confdefs.h. */
3227
if ac_fn_c_try_compile "$LINENO"; then :
3231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232
/* end confdefs.h. */
3242
if ac_fn_c_try_compile "$LINENO"; then :
3245
ac_c_werror_flag=$ac_save_c_werror_flag
3247
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248
/* end confdefs.h. */
3258
if ac_fn_c_try_compile "$LINENO"; then :
3261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266
ac_c_werror_flag=$ac_save_c_werror_flag
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3269
$as_echo "$ac_cv_prog_cc_g" >&6; }
3270
if test "$ac_test_CFLAGS" = set; then
3271
CFLAGS=$ac_save_CFLAGS
3272
elif test $ac_cv_prog_cc_g = yes; then
3273
if test "$GCC" = yes; then
3279
if test "$GCC" = yes; then
3285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3286
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3287
if ${ac_cv_prog_cc_c89+:} false; then :
3288
$as_echo_n "(cached) " >&6
3290
ac_cv_prog_cc_c89=no
3292
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293
/* end confdefs.h. */
3296
#include <sys/types.h>
3297
#include <sys/stat.h>
3298
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3299
struct buf { int x; };
3300
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3301
static char *e (p, i)
3307
static char *f (char * (*g) (char **, int), char **p, ...)
3312
s = g (p, va_arg (v,int));
3317
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3318
function prototypes and stuff, but not '\xHH' hex character constants.
3319
These don't provoke an error unfortunately, instead are silently treated
3320
as 'x'. The following induces an error, until -std is added to get
3321
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3322
array size at least. It's necessary to write '\x00'==0 to get something
3323
that's true only with -std. */
3324
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3327
inside strings and character constants. */
3329
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331
int test (int i, double x);
3332
struct s1 {int (*f) (int a);};
3333
struct s2 {int (*f) (double a);};
3334
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3340
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3346
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348
CC="$ac_save_CC $ac_arg"
3349
if ac_fn_c_try_compile "$LINENO"; then :
3350
ac_cv_prog_cc_c89=$ac_arg
3352
rm -f core conftest.err conftest.$ac_objext
3353
test "x$ac_cv_prog_cc_c89" != "xno" && break
3355
rm -f conftest.$ac_ext
3360
case "x$ac_cv_prog_cc_c89" in
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3363
$as_echo "none needed" >&6; } ;;
3365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3366
$as_echo "unsupported" >&6; } ;;
3368
CC="$CC $ac_cv_prog_cc_c89"
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3370
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3372
if test "x$ac_cv_prog_cc_c89" != xno; then :
3377
ac_cpp='$CPP $CPPFLAGS'
3378
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381
DEPDIR="${am__leading_dot}deps"
3383
ac_config_commands="$ac_config_commands depfiles"
3386
am_make=${MAKE-make}
3387
cat > confinc << 'END'
3389
@echo this is the am__doit target
3392
# If we don't find an include directive, just comment out the code.
3393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3394
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3398
# First try GNU make style include.
3399
echo "include confinc" > confmf
3400
# Ignore all kinds of additional output from `make'.
3401
case `$am_make -s -f confmf 2> /dev/null` in #(
3402
*the\ am__doit\ target*)
3408
# Now try BSD make style include.
3409
if test "$am__include" = "#"; then
3410
echo '.include "confinc"' > confmf
3411
case `$am_make -s -f confmf 2> /dev/null` in #(
3412
*the\ am__doit\ target*)
3413
am__include=.include
3421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3422
$as_echo "$_am_result" >&6; }
3423
rm -f confinc confmf
3425
@%:@ Check whether --enable-dependency-tracking was given.
3426
if test "${enable_dependency_tracking+set}" = set; then :
3427
enableval=$enable_dependency_tracking;
3430
if test "x$enable_dependency_tracking" != xno; then
3431
am_depcomp="$ac_aux_dir/depcomp"
3435
if test "x$enable_dependency_tracking" != xno; then
3445
depcc="$CC" am_compiler_list=
3447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3448
$as_echo_n "checking dependency style of $depcc... " >&6; }
3449
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3450
$as_echo_n "(cached) " >&6
3452
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453
# We make a subdir and do the tests there. Otherwise we can end up
3454
# making bogus files that we don't know about and never remove. For
3455
# instance it was reported that on HP-UX the gcc test will end up
3456
# making a dummy file named `D' -- because `-MD' means `put the output
3460
# Copy depcomp to subdir because otherwise we won't find it if we're
3461
# using a relative directory.
3462
cp "$am_depcomp" conftest.dir
3464
# We will build objects and dependencies in a subdirectory because
3465
# it helps to detect inapplicable dependency modes. For instance
3466
# both Tru64's cc and ICC support -MD to output dependencies as a
3467
# side effect of compilation, but ICC will put the dependencies in
3468
# the current directory while Tru64 will put them in the object
3472
am_cv_CC_dependencies_compiler_type=none
3473
if test "$am_compiler_list" = ""; then
3474
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3477
case " $depcc " in #(
3478
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3481
for depmode in $am_compiler_list; do
3482
# Setup a source with many dependencies, because some compilers
3483
# like to wrap large dependency lists on column 80 (with \), and
3484
# we should not choose a depcomp mode which is confused by this.
3486
# We need to recreate these files for each test, as the compiler may
3487
# overwrite some of them when testing with obscure command lines.
3488
# This happens at least with the AIX C compiler.
3490
for i in 1 2 3 4 5 6; do
3491
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3492
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3493
# Solaris 8's {/usr,}/bin/sh.
3494
touch sub/conftst$i.h
3496
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3498
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3499
# mode. It turns out that the SunPro C++ compiler does not properly
3500
# handle `-M -o', and we need to detect this. Also, some Intel
3501
# versions had trouble with output in subdirs
3502
am__obj=sub/conftest.${OBJEXT-o}
3503
am__minus_obj="-o $am__obj"
3506
# This depmode causes a compiler race in universal mode.
3507
test "$am__universal" = false || continue
3510
# after this tag, mechanisms are not by side-effect, so they'll
3511
# only be used when explicitly requested
3512
if test "x$enable_dependency_tracking" = xyes; then
3518
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3519
# This compiler won't grok `-c -o', but also, the minuso test has
3520
# not run yet. These depmodes are late enough in the game, and
3521
# so weak that their functioning should not be impacted.
3522
am__obj=conftest.${OBJEXT-o}
3527
if depmode=$depmode \
3528
source=sub/conftest.c object=$am__obj \
3529
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3530
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3531
>/dev/null 2>conftest.err &&
3532
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3533
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3534
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3535
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3536
# icc doesn't choke on unknown options, it will just issue warnings
3537
# or remarks (even with -Werror). So we grep stderr for any message
3538
# that says an option was ignored or not supported.
3539
# When given -MP, icc 7.0 and 7.1 complain thusly:
3540
# icc: Command line warning: ignoring option '-M'; no argument required
3541
# The diagnosis changed in icc 8.0:
3542
# icc: Command line remark: option '-MP' not supported
3543
if (grep 'ignoring option' conftest.err ||
3544
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3545
am_cv_CC_dependencies_compiler_type=$depmode
3554
am_cv_CC_dependencies_compiler_type=none
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3559
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3560
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3563
test "x$enable_dependency_tracking" != xno \
3564
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3566
am__fastdepCC_FALSE='#'
3568
am__fastdepCC_TRUE='#'
3569
am__fastdepCC_FALSE=
3573
if test "x$CC" != xcc; then
3574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3575
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3578
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3580
set dummy $CC; ac_cc=`$as_echo "$2" |
3581
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3582
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3583
$as_echo_n "(cached) " >&6
3585
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586
/* end confdefs.h. */
3596
# Make sure it works both with $CC and with simple cc.
3597
# We do the test twice because some compilers refuse to overwrite an
3598
# existing .o file with -o, though they will create one.
3599
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3601
if { { case "(($ac_try" in
3602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603
*) ac_try_echo=$ac_try;;
3605
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606
$as_echo "$ac_try_echo"; } >&5
3607
(eval "$ac_try") 2>&5
3609
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610
test $ac_status = 0; } &&
3611
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613
*) ac_try_echo=$ac_try;;
3615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616
$as_echo "$ac_try_echo"; } >&5
3617
(eval "$ac_try") 2>&5
3619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620
test $ac_status = 0; };
3622
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3623
if test "x$CC" != xcc; then
3624
# Test first that cc exists at all.
3625
if { ac_try='cc -c conftest.$ac_ext >&5'
3626
{ { case "(($ac_try" in
3627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628
*) ac_try_echo=$ac_try;;
3630
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631
$as_echo "$ac_try_echo"; } >&5
3632
(eval "$ac_try") 2>&5
3634
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635
test $ac_status = 0; }; }; then
3636
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3638
if { { case "(($ac_try" in
3639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640
*) ac_try_echo=$ac_try;;
3642
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643
$as_echo "$ac_try_echo"; } >&5
3644
(eval "$ac_try") 2>&5
3646
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647
test $ac_status = 0; } &&
3648
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650
*) ac_try_echo=$ac_try;;
3652
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653
$as_echo "$ac_try_echo"; } >&5
3654
(eval "$ac_try") 2>&5
3656
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657
test $ac_status = 0; };
3662
# cc exists but doesn't like -o.
3663
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3668
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3670
rm -f core conftest*
3673
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675
$as_echo "yes" >&6; }
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678
$as_echo "no" >&6; }
3680
$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3684
# FIXME: we rely on the cache variable name because
3685
# there is no other way.
3687
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3688
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3689
if test "$am_t" != yes; then
3690
# Losing compiler, so override with the script.
3691
# FIXME: It is wrong to rewrite CC.
3692
# But if we don't then we get into trouble of one sort or another.
3693
# A longer-term fix would be to have automake use am__CC in this case,
3694
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3695
CC="$am_aux_dir/compile $CC"
3703
# Checks for header files.
3706
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3707
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3709
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3710
if eval \${$as_ac_Header+:} false; then :
3711
$as_echo_n "(cached) " >&6
3713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714
/* end confdefs.h. */
3715
#include <sys/types.h>
3727
if ac_fn_c_try_compile "$LINENO"; then :
3728
eval "$as_ac_Header=yes"
3730
eval "$as_ac_Header=no"
3732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734
eval ac_res=\$$as_ac_Header
3735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3736
$as_echo "$ac_res" >&6; }
3737
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3738
cat >>confdefs.h <<_ACEOF
3739
@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3742
ac_header_dirent=$ac_hdr; break
3746
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3747
if test $ac_header_dirent = dirent.h; then
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3749
$as_echo_n "checking for library containing opendir... " >&6; }
3750
if ${ac_cv_search_opendir+:} false; then :
3751
$as_echo_n "(cached) " >&6
3753
ac_func_search_save_LIBS=$LIBS
3754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755
/* end confdefs.h. */
3757
/* Override any GCC internal prototype to avoid an error.
3758
Use char because int might match the return type of a GCC
3759
builtin and then its argument prototype would still apply. */
3772
for ac_lib in '' dir; do
3773
if test -z "$ac_lib"; then
3774
ac_res="none required"
3777
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3779
if ac_fn_c_try_link "$LINENO"; then :
3780
ac_cv_search_opendir=$ac_res
3782
rm -f core conftest.err conftest.$ac_objext \
3784
if ${ac_cv_search_opendir+:} false; then :
3788
if ${ac_cv_search_opendir+:} false; then :
3791
ac_cv_search_opendir=no
3794
LIBS=$ac_func_search_save_LIBS
3796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3797
$as_echo "$ac_cv_search_opendir" >&6; }
3798
ac_res=$ac_cv_search_opendir
3799
if test "$ac_res" != no; then :
3800
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3806
$as_echo_n "checking for library containing opendir... " >&6; }
3807
if ${ac_cv_search_opendir+:} false; then :
3808
$as_echo_n "(cached) " >&6
3810
ac_func_search_save_LIBS=$LIBS
3811
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812
/* end confdefs.h. */
3814
/* Override any GCC internal prototype to avoid an error.
3815
Use char because int might match the return type of a GCC
3816
builtin and then its argument prototype would still apply. */
3829
for ac_lib in '' x; do
3830
if test -z "$ac_lib"; then
3831
ac_res="none required"
3834
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3836
if ac_fn_c_try_link "$LINENO"; then :
3837
ac_cv_search_opendir=$ac_res
3839
rm -f core conftest.err conftest.$ac_objext \
3841
if ${ac_cv_search_opendir+:} false; then :
3845
if ${ac_cv_search_opendir+:} false; then :
3848
ac_cv_search_opendir=no
3851
LIBS=$ac_func_search_save_LIBS
3853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3854
$as_echo "$ac_cv_search_opendir" >&6; }
3855
ac_res=$ac_cv_search_opendir
3856
if test "$ac_res" != no; then :
3857
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3864
ac_cpp='$CPP $CPPFLAGS'
3865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3869
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3870
# On Suns, sometimes $CPP names a directory.
3871
if test -n "$CPP" && test -d "$CPP"; then
3874
if test -z "$CPP"; then
3875
if ${ac_cv_prog_CPP+:} false; then :
3876
$as_echo_n "(cached) " >&6
3878
# Double quotes because CPP needs to be expanded
3879
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3882
for ac_c_preproc_warn_flag in '' yes
3884
# Use a header file that comes with gcc, so configuring glibc
3885
# with a fresh cross-compiler works.
3886
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887
# <limits.h> exists even on freestanding compilers.
3888
# On the NeXT, cc -E runs the code through the compiler's parser,
3889
# not just through cpp. "Syntax error" is here to catch this case.
3890
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891
/* end confdefs.h. */
3893
@%:@ include <limits.h>
3895
@%:@ include <assert.h>
3899
if ac_fn_c_try_cpp "$LINENO"; then :
3902
# Broken: fails on valid input.
3905
rm -f conftest.err conftest.i conftest.$ac_ext
3907
# OK, works on sane cases. Now check whether nonexistent headers
3908
# can be detected and how.
3909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910
/* end confdefs.h. */
3911
@%:@include <ac_nonexistent.h>
3913
if ac_fn_c_try_cpp "$LINENO"; then :
3914
# Broken: success on invalid input.
3917
# Passes both tests.
3921
rm -f conftest.err conftest.i conftest.$ac_ext
3924
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925
rm -f conftest.i conftest.err conftest.$ac_ext
3926
if $ac_preproc_ok; then :
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3939
$as_echo "$CPP" >&6; }
3941
for ac_c_preproc_warn_flag in '' yes
3943
# Use a header file that comes with gcc, so configuring glibc
3944
# with a fresh cross-compiler works.
3945
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946
# <limits.h> exists even on freestanding compilers.
3947
# On the NeXT, cc -E runs the code through the compiler's parser,
3948
# not just through cpp. "Syntax error" is here to catch this case.
3949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950
/* end confdefs.h. */
3952
@%:@ include <limits.h>
3954
@%:@ include <assert.h>
3958
if ac_fn_c_try_cpp "$LINENO"; then :
3961
# Broken: fails on valid input.
3964
rm -f conftest.err conftest.i conftest.$ac_ext
3966
# OK, works on sane cases. Now check whether nonexistent headers
3967
# can be detected and how.
3968
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969
/* end confdefs.h. */
3970
@%:@include <ac_nonexistent.h>
3972
if ac_fn_c_try_cpp "$LINENO"; then :
3973
# Broken: success on invalid input.
3976
# Passes both tests.
3980
rm -f conftest.err conftest.i conftest.$ac_ext
3983
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984
rm -f conftest.i conftest.err conftest.$ac_ext
3985
if $ac_preproc_ok; then :
3988
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3991
See \`config.log' for more details" "$LINENO" 5; }
3995
ac_cpp='$CPP $CPPFLAGS'
3996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4002
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4003
if ${ac_cv_path_GREP+:} false; then :
4004
$as_echo_n "(cached) " >&6
4006
if test -z "$GREP"; then
4007
ac_path_GREP_found=false
4008
# Loop through the user's path and test for each of PROGNAME-LIST
4009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013
test -z "$as_dir" && as_dir=.
4014
for ac_prog in grep ggrep; do
4015
for ac_exec_ext in '' $ac_executable_extensions; do
4016
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4017
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4018
# Check for GNU ac_path_GREP and select it if it is found.
4019
# Check for GNU $ac_path_GREP
4020
case `"$ac_path_GREP" --version 2>&1` in
4022
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4025
$as_echo_n 0123456789 >"conftest.in"
4028
cat "conftest.in" "conftest.in" >"conftest.tmp"
4029
mv "conftest.tmp" "conftest.in"
4030
cp "conftest.in" "conftest.nl"
4031
$as_echo 'GREP' >> "conftest.nl"
4032
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034
as_fn_arith $ac_count + 1 && ac_count=$as_val
4035
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4036
# Best one so far, save it but keep looking for a better one
4037
ac_cv_path_GREP="$ac_path_GREP"
4038
ac_path_GREP_max=$ac_count
4040
# 10*(2^10) chars as input seems more than enough
4041
test $ac_count -gt 10 && break
4043
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046
$ac_path_GREP_found && break 3
4051
if test -z "$ac_cv_path_GREP"; then
4052
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4055
ac_cv_path_GREP=$GREP
4059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4060
$as_echo "$ac_cv_path_GREP" >&6; }
4061
GREP="$ac_cv_path_GREP"
4064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4065
$as_echo_n "checking for egrep... " >&6; }
4066
if ${ac_cv_path_EGREP+:} false; then :
4067
$as_echo_n "(cached) " >&6
4069
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4070
then ac_cv_path_EGREP="$GREP -E"
4072
if test -z "$EGREP"; then
4073
ac_path_EGREP_found=false
4074
# Loop through the user's path and test for each of PROGNAME-LIST
4075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079
test -z "$as_dir" && as_dir=.
4080
for ac_prog in egrep; do
4081
for ac_exec_ext in '' $ac_executable_extensions; do
4082
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4083
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4084
# Check for GNU ac_path_EGREP and select it if it is found.
4085
# Check for GNU $ac_path_EGREP
4086
case `"$ac_path_EGREP" --version 2>&1` in
4088
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4091
$as_echo_n 0123456789 >"conftest.in"
4094
cat "conftest.in" "conftest.in" >"conftest.tmp"
4095
mv "conftest.tmp" "conftest.in"
4096
cp "conftest.in" "conftest.nl"
4097
$as_echo 'EGREP' >> "conftest.nl"
4098
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100
as_fn_arith $ac_count + 1 && ac_count=$as_val
4101
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4102
# Best one so far, save it but keep looking for a better one
4103
ac_cv_path_EGREP="$ac_path_EGREP"
4104
ac_path_EGREP_max=$ac_count
4106
# 10*(2^10) chars as input seems more than enough
4107
test $ac_count -gt 10 && break
4109
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112
$ac_path_EGREP_found && break 3
4117
if test -z "$ac_cv_path_EGREP"; then
4118
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4121
ac_cv_path_EGREP=$EGREP
4126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4127
$as_echo "$ac_cv_path_EGREP" >&6; }
4128
EGREP="$ac_cv_path_EGREP"
4131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4132
$as_echo_n "checking for ANSI C header files... " >&6; }
4133
if ${ac_cv_header_stdc+:} false; then :
4134
$as_echo_n "(cached) " >&6
4136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137
/* end confdefs.h. */
4151
if ac_fn_c_try_compile "$LINENO"; then :
4152
ac_cv_header_stdc=yes
4154
ac_cv_header_stdc=no
4156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158
if test $ac_cv_header_stdc = yes; then
4159
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161
/* end confdefs.h. */
4165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166
$EGREP "memchr" >/dev/null 2>&1; then :
4169
ac_cv_header_stdc=no
4175
if test $ac_cv_header_stdc = yes; then
4176
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178
/* end confdefs.h. */
4182
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183
$EGREP "free" >/dev/null 2>&1; then :
4186
ac_cv_header_stdc=no
4192
if test $ac_cv_header_stdc = yes; then
4193
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4194
if test "$cross_compiling" = yes; then :
4197
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198
/* end confdefs.h. */
4201
#if ((' ' & 0x0FF) == 0x020)
4202
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4203
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205
# define ISLOWER(c) \
4206
(('a' <= (c) && (c) <= 'i') \
4207
|| ('j' <= (c) && (c) <= 'r') \
4208
|| ('s' <= (c) && (c) <= 'z'))
4209
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4212
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4217
for (i = 0; i < 256; i++)
4218
if (XOR (islower (i), ISLOWER (i))
4219
|| toupper (i) != TOUPPER (i))
4224
if ac_fn_c_try_run "$LINENO"; then :
4227
ac_cv_header_stdc=no
4229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4230
conftest.$ac_objext conftest.beam conftest.$ac_ext
4235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4236
$as_echo "$ac_cv_header_stdc" >&6; }
4237
if test $ac_cv_header_stdc = yes; then
4239
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4243
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4244
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4245
inttypes.h stdint.h unistd.h
4247
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4248
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4250
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4251
cat >>confdefs.h <<_ACEOF
4252
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4260
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
4262
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4264
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4265
cat >>confdefs.h <<_ACEOF
4266
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
4275
$as_echo_n "checking for pow in -lm... " >&6; }
4276
if ${ac_cv_lib_m_pow+:} false; then :
4277
$as_echo_n "(cached) " >&6
4279
ac_check_lib_save_LIBS=$LIBS
4281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282
/* end confdefs.h. */
4284
/* Override any GCC internal prototype to avoid an error.
4285
Use char because int might match the return type of a GCC
4286
builtin and then its argument prototype would still apply. */
4299
if ac_fn_c_try_link "$LINENO"; then :
4304
rm -f core conftest.err conftest.$ac_objext \
4305
conftest$ac_exeext conftest.$ac_ext
4306
LIBS=$ac_check_lib_save_LIBS
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
4309
$as_echo "$ac_cv_lib_m_pow" >&6; }
4310
if test "x$ac_cv_lib_m_pow" = xyes; then :
4311
cat >>confdefs.h <<_ACEOF
4312
@%:@define HAVE_LIBM 1
4320
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
4322
cat >confcache <<\_ACEOF
4323
# This file is a shell script that caches the results of configure
4324
# tests run on this system so they can be shared between configure
4325
# scripts and configure runs, see configure's option --config-cache.
4326
# It is not useful on other systems. If it contains results you don't
4327
# want to keep, you may remove or edit it.
4329
# config.status only pays attention to the cache file if you give it
4330
# the --recheck option to rerun configure.
4332
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4333
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4338
# The following way of writing the cache mishandles newlines in values,
4339
# but we know of no workaround that is simple, portable, and efficient.
4340
# So, we kill variables containing newlines.
4341
# Ultrix sh set writes to stderr and can't be redirected directly,
4342
# and sets the high bit in the cache file unless we assign to the vars.
4344
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4345
eval ac_val=\$$ac_var
4349
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4350
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4353
_ | IFS | as_nl) ;; #(
4354
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4355
*) { eval $ac_var=; unset $ac_var;} ;;
4361
case $as_nl`(ac_space=' '; set) 2>&1` in #(
4362
*${as_nl}ac_space=\ *)
4363
# `set' does not quote correctly, so add quotes: double-quote
4364
# substitution turns \\\\ into \\, and sed turns \\ into \.
4367
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4370
# `set' quotes correctly as required by POSIX, so do not add quotes.
4371
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4380
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4382
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4384
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4385
if test -w "$cache_file"; then
4386
if test "x$cache_file" != "x/dev/null"; then
4387
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4388
$as_echo "$as_me: updating cache $cache_file" >&6;}
4389
if test ! -f "$cache_file" || test -h "$cache_file"; then
4390
cat confcache >"$cache_file"
4392
case $cache_file in #(
4394
mv -f confcache "$cache_file"$$ &&
4395
mv -f "$cache_file"$$ "$cache_file" ;; #(
4397
mv -f confcache "$cache_file" ;;
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4403
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4408
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4409
# Let make expand exec_prefix.
4410
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4412
DEFS=-DHAVE_CONFIG_H
4417
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
4418
# 1. Remove the extension, and $U if already installed.
4419
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4420
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4421
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4422
# will be set to the directory where LIBOBJS objects are built.
4423
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4424
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4426
LIB@&t@OBJS=$ac_libobjs
4428
LTLIBOBJS=$ac_ltlibobjs
4431
if test -n "$EXEEXT"; then
4433
am__EXEEXT_FALSE='#'
4439
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4440
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4441
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4443
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4444
as_fn_error $? "conditional \"AMDEP\" was never defined.
4445
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4447
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4448
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4449
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4452
: "${CONFIG_STATUS=./config.status}"
4454
ac_clean_files_save=$ac_clean_files
4455
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4456
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4457
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4459
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4461
# Generated by $as_me.
4462
# Run this file to recreate the current configuration.
4463
# Compiler output produced by configure, useful for debugging
4464
# configure, is in config.log if it exists.
4470
SHELL=\${CONFIG_SHELL-$SHELL}
4473
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4474
## -------------------- ##
4475
## M4sh Initialization. ##
4476
## -------------------- ##
4478
# Be more Bourne compatible
4479
DUALCASE=1; export DUALCASE # for MKS sh
4480
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4483
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4484
# is contrary to our usage. Disable this feature.
4485
alias -g '${1+"$@"}'='"$@"'
4486
setopt NO_GLOB_SUBST
4488
case `(set -o) 2>/dev/null` in @%:@(
4490
set -o posix ;; @%:@(
4500
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4501
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4502
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4503
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4504
# Prefer a ksh shell builtin over an external printf program on Solaris,
4505
# but without wasting forks for bash or zsh.
4506
if test -z "$BASH_VERSION$ZSH_VERSION" \
4507
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4508
as_echo='print -r --'
4509
as_echo_n='print -rn --'
4510
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4511
as_echo='printf %s\n'
4512
as_echo_n='printf %s'
4514
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4515
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4516
as_echo_n='/usr/ucb/echo -n'
4518
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4519
as_echo_n_body='eval
4523
expr "X$arg" : "X\\(.*\\)$as_nl";
4524
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4526
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4528
export as_echo_n_body
4529
as_echo_n='sh -c $as_echo_n_body as_echo'
4532
as_echo='sh -c $as_echo_body as_echo'
4535
# The user is always right.
4536
if test "${PATH_SEPARATOR+set}" != set; then
4538
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4539
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4546
# We need space, tab and new line, in precisely that order. Quoting is
4547
# there to prevent editors from complaining about space-tab.
4548
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4549
# splitting by setting IFS to empty value.)
4552
# Find who we are. Look in the path if we contain no directory separator.
4555
*[\\/]* ) as_myself=$0 ;;
4556
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560
test -z "$as_dir" && as_dir=.
4561
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4567
# We did not find ourselves, most probably we were run as `sh COMMAND'
4568
# in which case we are not to be found in the path.
4569
if test "x$as_myself" = x; then
4572
if test ! -f "$as_myself"; then
4573
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4577
# Unset variables that we do not need and which cause bugs (e.g. in
4578
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4579
# suppresses any "Segmentation fault" message there. '((' could
4580
# trigger a bug in pdksh 5.2.14.
4581
for as_var in BASH_ENV ENV MAIL MAILPATH
4582
do eval test x\${$as_var+set} = xset \
4583
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4596
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4599
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
4600
@%:@ ----------------------------------------
4601
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4602
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4603
@%:@ script with STATUS, using 1 if that was 0.
4606
as_status=$1; test $as_status -eq 0 && as_status=1
4608
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4609
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4611
$as_echo "$as_me: error: $2" >&2
4612
as_fn_exit $as_status
4616
@%:@ as_fn_set_status STATUS
4617
@%:@ -----------------------
4618
@%:@ Set @S|@? to STATUS, without forking.
4622
} @%:@ as_fn_set_status
4624
@%:@ as_fn_exit STATUS
4625
@%:@ -----------------
4626
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4634
@%:@ as_fn_unset VAR
4635
@%:@ ---------------
4636
@%:@ Portably unset VAR.
4639
{ eval $1=; unset $1;}
4641
as_unset=as_fn_unset
4642
@%:@ as_fn_append VAR VALUE
4643
@%:@ ----------------------
4644
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
4645
@%:@ advantage of any shell optimizations that allow amortized linear growth over
4646
@%:@ repeated appends, instead of the typical quadratic growth present in naive
4647
@%:@ implementations.
4648
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4649
eval 'as_fn_append ()
4660
@%:@ as_fn_arith ARG...
4661
@%:@ ------------------
4662
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
4663
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
4664
@%:@ must be portable across @S|@(()) and expr.
4665
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4666
eval 'as_fn_arith ()
4673
as_val=`expr "$@" || test $? -eq 1`
4678
if expr a : '\(a\)' >/dev/null 2>&1 &&
4679
test "X`expr 00001 : '.*\(...\)'`" = X001; then
4685
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4686
as_basename=basename
4691
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4697
as_me=`$as_basename -- "$0" ||
4698
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4699
X"$0" : 'X\(//\)$' \| \
4700
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4702
sed '/^.*\/\([^/][^/]*\)\/*$/{
4716
# Avoid depending upon Character Ranges.
4717
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4718
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4719
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4720
as_cr_digits='0123456789'
4721
as_cr_alnum=$as_cr_Letters$as_cr_digits
4723
ECHO_C= ECHO_N= ECHO_T=
4724
case `echo -n x` in @%:@(((((
4726
case `echo 'xy\c'` in
4727
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
4729
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4736
rm -f conf$$ conf$$.exe conf$$.file
4737
if test -d conf$$.dir; then
4738
rm -f conf$$.dir/conf$$.file
4741
mkdir conf$$.dir 2>/dev/null
4743
if (echo >conf$$.file) 2>/dev/null; then
4744
if ln -s conf$$.file conf$$ 2>/dev/null; then
4746
# ... but there are two gotchas:
4747
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4748
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4749
# In both cases, we have to default to `cp -p'.
4750
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4752
elif ln conf$$.file conf$$ 2>/dev/null; then
4760
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4761
rmdir conf$$.dir 2>/dev/null
4766
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
4771
-*) as_dir=./$as_dir;;
4773
test -d "$as_dir" || eval $as_mkdir_p || {
4777
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4778
*) as_qdir=$as_dir;;
4780
as_dirs="'$as_qdir' $as_dirs"
4781
as_dir=`$as_dirname -- "$as_dir" ||
4782
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4783
X"$as_dir" : 'X\(//\)[^/]' \| \
4784
X"$as_dir" : 'X\(//\)$' \| \
4785
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4786
$as_echo X"$as_dir" |
4787
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4804
test -d "$as_dir" && break
4806
test -z "$as_dirs" || eval "mkdir $as_dirs"
4807
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4810
} @%:@ as_fn_mkdir_p
4811
if mkdir -p . 2>/dev/null; then
4812
as_mkdir_p='mkdir -p "$as_dir"'
4814
test -d ./-p && rmdir ./-p
4818
if test -x / >/dev/null 2>&1; then
4821
if ls -dL / >/dev/null 2>&1; then
4828
if test -d "$1"; then
4834
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
4835
???[sx]*):;;*)false;;esac;fi
4839
as_executable_p=$as_test_x
4841
# Sed expression to map a string onto a valid CPP name.
4842
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4844
# Sed expression to map a string onto a valid variable name.
4845
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4849
## ----------------------------------- ##
4850
## Main body of $CONFIG_STATUS script. ##
4851
## ----------------------------------- ##
4853
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4855
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4856
# Save the log message, to keep $0 and so on meaningful, and to
4857
# report actual input values of CONFIG_FILES etc. instead of their
4858
# values after options handling.
4860
This file was extended by nbd-proxy $as_me 0.1, which was
4861
generated by GNU Autoconf 2.68. Invocation command line was
4863
CONFIG_FILES = $CONFIG_FILES
4864
CONFIG_HEADERS = $CONFIG_HEADERS
4865
CONFIG_LINKS = $CONFIG_LINKS
4866
CONFIG_COMMANDS = $CONFIG_COMMANDS
4869
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4874
case $ac_config_files in *"
4875
"*) set x $ac_config_files; shift; ac_config_files=$*;;
4878
case $ac_config_headers in *"
4879
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4883
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4884
# Files that config.status was made for.
4885
config_files="$ac_config_files"
4886
config_headers="$ac_config_headers"
4887
config_commands="$ac_config_commands"
4891
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4893
\`$as_me' instantiates files and other configuration actions
4894
from templates according to the current configuration. Unless the files
4895
and actions are specified as TAGs, all are instantiated by default.
4897
Usage: $0 [OPTION]... [TAG]...
4899
-h, --help print this help, then exit
4900
-V, --version print version number and configuration settings, then exit
4901
--config print configuration, then exit
4902
-q, --quiet, --silent
4903
do not print progress messages
4904
-d, --debug don't remove temporary files
4905
--recheck update $as_me by reconfiguring in the same conditions
4906
--file=FILE[:TEMPLATE]
4907
instantiate the configuration file FILE
4908
--header=FILE[:TEMPLATE]
4909
instantiate the configuration header FILE
4911
Configuration files:
4914
Configuration headers:
4917
Configuration commands:
4920
Report bugs to <stgraber@ltsp.org>."
4923
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4924
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4926
nbd-proxy config.status 0.1
4927
configured by $0, generated by GNU Autoconf 2.68,
4928
with options \\"\$ac_cs_config\\"
4930
Copyright (C) 2010 Free Software Foundation, Inc.
4931
This config.status script is free software; the Free Software Foundation
4932
gives unlimited permission to copy, distribute and modify it."
4939
test -n "\$AWK" || AWK=awk
4942
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4943
# The default lists apply if the user does not specify any file.
4949
ac_option=`expr "X$1" : 'X\([^=]*\)='`
4950
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4954
ac_option=`expr "X$1" : 'X\([^=]*\)='`
4966
# Handling of the options.
4967
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4969
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4970
$as_echo "$ac_cs_version"; exit ;;
4971
--config | --confi | --conf | --con | --co | --c )
4972
$as_echo "$ac_cs_config"; exit ;;
4973
--debug | --debu | --deb | --de | --d | -d )
4975
--file | --fil | --fi | --f )
4978
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4979
'') as_fn_error $? "missing file argument" ;;
4981
as_fn_append CONFIG_FILES " '$ac_optarg'"
4982
ac_need_defaults=false;;
4983
--header | --heade | --head | --hea )
4986
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4988
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4989
ac_need_defaults=false;;
4991
# Conflict between --help and --header
4992
as_fn_error $? "ambiguous option: \`$1'
4993
Try \`$0 --help' for more information.";;
4994
--help | --hel | -h )
4995
$as_echo "$ac_cs_usage"; exit ;;
4996
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4997
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5001
-*) as_fn_error $? "unrecognized option: \`$1'
5002
Try \`$0 --help' for more information." ;;
5004
*) as_fn_append ac_config_targets " $1"
5005
ac_need_defaults=false ;;
5011
ac_configure_extra_args=
5013
if $ac_cs_silent; then
5015
ac_configure_extra_args="$ac_configure_extra_args --silent"
5019
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5020
if \$ac_cs_recheck; then
5021
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5023
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5024
CONFIG_SHELL='$SHELL'
5030
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5034
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5035
@%:@@%:@ Running $as_me. @%:@@%:@
5041
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5045
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5049
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5051
# Handling of arguments.
5052
for ac_config_target in $ac_config_targets
5054
case $ac_config_target in
5055
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5056
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5057
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5058
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5059
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5061
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5066
# If the user did not use the arguments to specify the items to instantiate,
5067
# then the envvar interface is used. Set only those that are not.
5068
# We use the long form for the default assignment because of an extremely
5069
# bizarre bug on SunOS 4.1.3.
5070
if $ac_need_defaults; then
5071
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5072
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5073
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5076
# Have a temporary directory for convenience. Make it in the build tree
5077
# simply because there is no reason against having it here, and in addition,
5078
# creating and moving files from /tmp can sometimes cause problems.
5079
# Hook for its removal unless debugging.
5080
# Note that there is a small window in which the directory will not be cleaned:
5081
# after its creation but before its name has been assigned to `$tmp'.
5085
trap 'exit_status=$?
5087
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5089
trap 'as_fn_exit 1' 1 2 13 15
5091
# Create a (secure) tmp directory for tmp files.
5094
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5098
tmp=./conf$$-$RANDOM
5099
(umask 077 && mkdir "$tmp")
5100
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5103
# Set up the scripts for CONFIG_FILES section.
5104
# No need to generate them if there are no CONFIG_FILES.
5105
# This happens for instance with `./config.status config.h'.
5106
if test -n "$CONFIG_FILES"; then
5109
ac_cr=`echo X | tr X '\015'`
5110
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5111
# But we know of no other shell where ac_cr would be empty at this
5112
# point, so we can use a bashism as a fallback.
5113
if test "x$ac_cr" = x; then
5114
eval ac_cr=\$\'\\r\'
5116
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5117
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5123
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5128
echo "cat >conf$$subs.awk <<_ACEOF" &&
5129
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5132
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5133
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5135
for ac_last_try in false false false false false :; do
5136
. ./conf$$subs.sh ||
5137
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5139
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5140
if test $ac_delim_n = $ac_delim_num; then
5142
elif $ac_last_try; then
5143
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5145
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5150
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5151
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5155
s/^/S["/; s/!.*/"]=/
5165
s/\(.\{148\}\)..*/\1/
5167
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5172
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5179
s/\(.\{148\}\)..*/\1/
5181
s/["\\]/\\&/g; s/^/"/; s/$/"/
5185
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5190
' <conf$$subs.awk | sed '
5195
' >>$CONFIG_STATUS || ac_write_fail=1
5196
rm -f conf$$subs.awk
5197
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5199
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5200
for (key in S) S_is_set[key] = 1
5206
nfields = split(line, field, "@")
5208
len = length(field[1])
5209
for (i = 2; i < nfields; i++) {
5211
keylen = length(key)
5212
if (S_is_set[key]) {
5214
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5215
len += length(value) + length(field[++i])
5226
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5227
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5228
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5231
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5232
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5235
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5236
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5237
# trailing colons and then remove the whole line if VPATH becomes empty
5238
# (actually we leave an empty line to preserve line numbers).
5239
if test "x$srcdir" = x.; then
5240
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5258
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5259
fi # test -n "$CONFIG_FILES"
5261
# Set up the scripts for CONFIG_HEADERS section.
5262
# No need to generate them if there are no CONFIG_HEADERS.
5263
# This happens for instance with `./config.status Makefile'.
5264
if test -n "$CONFIG_HEADERS"; then
5265
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5269
# Transform confdefs.h into an awk script `defines.awk', embedded as
5270
# here-document in config.status, that substitutes the proper values into
5271
# config.h.in to produce config.h.
5273
# Create a delimiter string that does not exist in confdefs.h, to ease
5274
# handling of long lines.
5276
for ac_last_try in false false :; do
5277
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5278
if test -z "$ac_tt"; then
5280
elif $ac_last_try; then
5281
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5283
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5287
# For the awk script, D is an array of macro values keyed by name,
5288
# likewise P contains macro parameters if any. Preserve backslash
5289
# newline sequences.
5291
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5293
s/.\{148\}/&'"$ac_delim"'/g
5296
s/^[ ]*#[ ]*define[ ][ ]*/ /
5303
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5305
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5309
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5310
D["\1"]=" \3\\\\\\n"\\/p
5312
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5317
s/.\{148\}/&'"$ac_delim"'/g
5322
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5325
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5327
' <confdefs.h | sed '
5328
s/'"$ac_delim"'/"\\\
5329
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5331
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5332
for (key in D) D_is_set[key] = 1
5335
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5337
split(line, arg, " ")
5338
if (arg[1] == "#") {
5342
defundef = substr(arg[1], 2)
5345
split(mac1, mac2, "(") #)
5347
prefix = substr(line, 1, index(line, defundef) - 1)
5348
if (D_is_set[macro]) {
5349
# Preserve the white space surrounding the "#".
5350
print prefix "define", macro P[macro] D[macro]
5353
# Replace #undef with comments. This is necessary, for example,
5354
# in the case of _POSIX_SOURCE, which is predefined and required
5355
# on some systems where configure will not decide to define it.
5356
if (defundef == "undef") {
5357
print "/*", prefix defundef, macro, "*/"
5365
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5366
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5367
fi # test -n "$CONFIG_HEADERS"
5370
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5375
:[FHLC]) ac_mode=$ac_tag; continue;;
5377
case $ac_mode$ac_tag in
5379
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5380
:[FH]-) ac_tag=-:-;;
5381
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5398
-) ac_f="$ac_tmp/stdin";;
5399
*) # Look for the file first in the build tree, then in the source tree
5400
# (if the path is not absolute). The absolute path cannot be DOS-style,
5401
# because $ac_f cannot contain `:'.
5405
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5407
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5409
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5410
as_fn_append ac_file_inputs " '$ac_f'"
5413
# Let's still pretend it is `configure' which instantiates (i.e., don't
5414
# use $as_me), people would be surprised to read:
5415
# /* config.h. Generated by config.status. */
5416
configure_input='Generated from '`
5417
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5419
if test x"$ac_file" != x-; then
5420
configure_input="$ac_file. $configure_input"
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5422
$as_echo "$as_me: creating $ac_file" >&6;}
5424
# Neutralize special characters interpreted by sed in replacement strings.
5425
case $configure_input in #(
5426
*\&* | *\|* | *\\* )
5427
ac_sed_conf_input=`$as_echo "$configure_input" |
5428
sed 's/[\\\\&|]/\\\\&/g'`;; #(
5429
*) ac_sed_conf_input=$configure_input;;
5433
*:-:* | *:-) cat >"$ac_tmp/stdin" \
5434
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5439
ac_dir=`$as_dirname -- "$ac_file" ||
5440
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5441
X"$ac_file" : 'X\(//\)[^/]' \| \
5442
X"$ac_file" : 'X\(//\)$' \| \
5443
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5444
$as_echo X"$ac_file" |
5445
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5462
as_dir="$ac_dir"; as_fn_mkdir_p
5466
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5468
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5469
# A ".." for each directory in $ac_dir_suffix.
5470
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5471
case $ac_top_builddir_sub in
5472
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5473
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5476
ac_abs_top_builddir=$ac_pwd
5477
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5478
# for backward compatibility:
5479
ac_top_builddir=$ac_top_build_prefix
5482
.) # We are building in place.
5484
ac_top_srcdir=$ac_top_builddir_sub
5485
ac_abs_top_srcdir=$ac_pwd ;;
5486
[\\/]* | ?:[\\/]* ) # Absolute name.
5487
ac_srcdir=$srcdir$ac_dir_suffix;
5488
ac_top_srcdir=$srcdir
5489
ac_abs_top_srcdir=$srcdir ;;
5491
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5492
ac_top_srcdir=$ac_top_build_prefix$srcdir
5493
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5495
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5505
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5506
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5510
[\\/$]* | ?:[\\/]* ) ;;
5511
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5515
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5516
# If the template does not know about datarootdir, expand it.
5517
# FIXME: This hack should be removed a few years after 2.60.
5518
ac_datarootdir_hack=; ac_datarootdir_seen=
5529
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5530
*datarootdir*) ac_datarootdir_seen=yes;;
5531
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5532
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5533
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5535
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5536
ac_datarootdir_hack='
5537
s&@datadir@&$datadir&g
5538
s&@docdir@&$docdir&g
5539
s&@infodir@&$infodir&g
5540
s&@localedir@&$localedir&g
5541
s&@mandir@&$mandir&g
5542
s&\\\${datarootdir}&$datarootdir&g' ;;
5546
# Neutralize VPATH when `$srcdir' = `.'.
5547
# Shell code in configure.ac might set extrasub.
5548
# FIXME: do we really want to maintain this feature?
5549
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5550
ac_sed_extra="$ac_vpsub
5553
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5555
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5556
s|@configure_input@|$ac_sed_conf_input|;t t
5557
s&@top_builddir@&$ac_top_builddir_sub&;t t
5558
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5559
s&@srcdir@&$ac_srcdir&;t t
5560
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5561
s&@top_srcdir@&$ac_top_srcdir&;t t
5562
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5563
s&@builddir@&$ac_builddir&;t t
5564
s&@abs_builddir@&$ac_abs_builddir&;t t
5565
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5566
s&@INSTALL@&$ac_INSTALL&;t t
5567
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5568
$ac_datarootdir_hack
5570
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5571
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5573
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5574
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5575
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5576
"$ac_tmp/out"`; test -z "$ac_out"; } &&
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5578
which seems to be undefined. Please make sure it is defined" >&5
5579
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5580
which seems to be undefined. Please make sure it is defined" >&2;}
5582
rm -f "$ac_tmp/stdin"
5584
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5585
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5587
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5593
if test x"$ac_file" != x-; then
5595
$as_echo "/* $configure_input */" \
5596
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5597
} >"$ac_tmp/config.h" \
5598
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5599
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5600
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5601
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5604
mv "$ac_tmp/config.h" "$ac_file" \
5605
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5608
$as_echo "/* $configure_input */" \
5609
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5610
|| as_fn_error $? "could not create -" "$LINENO" 5
5612
# Compute "$ac_file"'s index in $config_headers.
5615
for _am_header in $config_headers :; do
5617
$_am_arg | $_am_arg:* )
5620
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5623
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5624
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5625
X"$_am_arg" : 'X\(//\)[^/]' \| \
5626
X"$_am_arg" : 'X\(//\)$' \| \
5627
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5628
$as_echo X"$_am_arg" |
5629
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5645
s/.*/./; q'`/stamp-h$_am_stamp_count
5648
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5649
$as_echo "$as_me: executing $ac_file commands" >&6;}
5654
case $ac_file$ac_mode in
5655
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5656
# Autoconf 2.62 quotes --file arguments for eval, but not when files
5657
# are listed without --file. Let's play safe and only enable the eval
5658
# if we detect the quoting.
5659
case $CONFIG_FILES in
5660
*\'*) eval set x "$CONFIG_FILES" ;;
5661
*) set x $CONFIG_FILES ;;
5666
# Strip MF so we end up with the name of the file.
5667
mf=`echo "$mf" | sed -e 's/:.*$//'`
5668
# Check whether this is an Automake generated Makefile or not.
5669
# We used to match only the files named `Makefile.in', but
5670
# some people rename them; so instead we look at the file content.
5671
# Grep'ing the first line is not enough: some people post-process
5672
# each Makefile.in and add a new line on top of each file to say so.
5673
# Grep'ing the whole file is not good either: AIX grep has a line
5674
# limit of 2048, but all sed's we know have understand at least 4000.
5675
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5676
dirpart=`$as_dirname -- "$mf" ||
5677
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5678
X"$mf" : 'X\(//\)[^/]' \| \
5679
X"$mf" : 'X\(//\)$' \| \
5680
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5682
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5702
# Extract the definition of DEPDIR, am__include, and am__quote
5703
# from the Makefile without running `make'.
5704
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5705
test -z "$DEPDIR" && continue
5706
am__include=`sed -n 's/^am__include = //p' < "$mf"`
5707
test -z "am__include" && continue
5708
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5709
# When using ansi2knr, U may be empty or an underscore; expand it
5710
U=`sed -n 's/^U = //p' < "$mf"`
5711
# Find all dependency output files, they are included files with
5712
# $(DEPDIR) in their names. We invoke sed twice because it is the
5713
# simplest approach to changing $(DEPDIR) to its actual value in the
5715
for file in `sed -n "
5716
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5717
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5718
# Make sure the directory exists.
5719
test -f "$dirpart/$file" && continue
5720
fdir=`$as_dirname -- "$file" ||
5721
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5722
X"$file" : 'X\(//\)[^/]' \| \
5723
X"$file" : 'X\(//\)$' \| \
5724
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5726
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5743
as_dir=$dirpart/$fdir; as_fn_mkdir_p
5744
# echo "creating $dirpart/$file"
5745
echo '# dummy' > "$dirpart/$file"
5757
ac_clean_files=$ac_clean_files_save
5759
test $ac_write_fail = 0 ||
5760
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5763
# configure is writing to config.log, and then calls config.status.
5764
# config.status does its own redirection, appending to config.log.
5765
# Unfortunately, on DOS this fails, as config.log is still kept open
5766
# by configure, so config.status won't be able to write to it; its
5767
# output is simply discarded. So we exec the FD to /dev/null,
5768
# effectively closing config.log, so it can be properly (re)opened and
5769
# appended to by config.status. When coming back to configure, we
5770
# need to make the FD available again.
5771
if test "$no_create" != yes; then
5773
ac_config_status_args=
5774
test "$silent" = yes &&
5775
ac_config_status_args="$ac_config_status_args --quiet"
5777
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5779
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5780
# would make configure fail if this is the last instruction.
5781
$ac_cs_success || as_fn_exit 1
5783
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5784
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5785
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}