#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by Autoconf 2.14a.
+# Generated by Autoconf 2.14a for Autoconf 2.14a.
+#
+# Report bugs to <bug-autoconf@gnu.org>.
#
# Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
# Free Software Foundation, Inc.
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
-: ${ac_max_here_lines=48}
+# This variable seems obsolete. It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
# Sed expression to map a string onto a valid sh and CPP variable names.
ac_tr_sh='sed y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
ac_tr_cpp='sed y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE. See below for descriptions of useful variables.
+VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
short | recursive ) echo "Configuration of Autoconf 2.14a:";;
esac
cat <<\EOF
+
+Report bugs to <bug-autoconf@gnu.org>.
EOF
fi
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
+# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
>$cache_file
fi
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_suggest_removing_cache=false
+for ac_var in `(set) 2>&1 |
+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+ eval ac_new_val="\$ac_env_${ac_var}_value"
+ case $ac_old_set,$ac_new_set in
+ set,)
+ echo "configure: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2
+ ac_suggest_removing_cache=: ;;
+ ,set)
+ echo "configure: WARNING: \`$ac_var' was not set in the previous run" >&2
+ ac_suggest_removing_cache=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ echo "configure: WARNING: \`$ac_var' has changed since the previous run:" >&2
+ echo "configure: WARNING: former value: $ac_old_val" >&2
+ echo "configure: WARNING: current value: $ac_new_val" >&2
+ ac_suggest_removing_cache=:
+ fi;;
+ esac
+done
+if $ac_suggest_removing_cache; then
+ echo "configure: WARNING: changes in the environment can compromise the build" >&2
+ echo "configure: WARNING: consider removing $cache_file and starting over" >&2
+fi
+
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_gnu_compiler=$ac_cv_prog_gcc
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ECHO_N= ECHO_C='
-' ECHO_T=' '
- else
- ECHO_N=-n ECHO_C= ECHO_T=
- fi
-else
- ECHO_N= ECHO_C='\c' ECHO_T=
-fi
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+ *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T=' ' ;;
+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
-echo "configure:641: checking for a BSD compatible install" >&5
+echo "configure:672: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
INSTALL=$ac_install_sh
fi
fi
-echo "configure:687: result: $INSTALL" >&5
+echo "configure:718: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-echo "configure:694: checking whether build environment is sane" >&5
+echo "configure:725: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
Check your system clock" >&2; exit 1; }
fi
rm -f conftest*
-echo "configure:729: result: yes" >&5
+echo "configure:760: result: yes" >&5
echo "${ECHO_T}yes" >&6
if test "$program_transform_name" = s,x,x,; then
program_transform_name=
# sed with no file args requires a program.
test -z "$program_transform_name" && program_transform_name="s,x,x,"
-echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "configure:768: result: yes" >&5
+ echo "configure:799: result: yes" >&5
echo "${ECHO_T}yes" >&6
SET_MAKE=
else
- echo "configure:772: result: no" >&5
+ echo "configure:803: result: no" >&5
echo "${ECHO_T}no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
EOF
missing_dir=`cd $ac_aux_dir && pwd`
-echo "configure:788: checking for working aclocal" >&5
+echo "configure:819: checking for working aclocal" >&5
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
ACLOCAL=aclocal
- echo "configure:795: result: found" >&5
+ echo "configure:826: result: found" >&5
echo "${ECHO_T}found" >&6
else
ACLOCAL="$missing_dir/missing aclocal"
- echo "configure:799: result: missing" >&5
+ echo "configure:830: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
-echo "configure:802: checking for working autoconf" >&5
+echo "configure:833: checking for working autoconf" >&5
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
AUTOCONF=autoconf
- echo "configure:809: result: found" >&5
+ echo "configure:840: result: found" >&5
echo "${ECHO_T}found" >&6
else
AUTOCONF="$missing_dir/missing autoconf"
- echo "configure:813: result: missing" >&5
+ echo "configure:844: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
-echo "configure:816: checking for working automake" >&5
+echo "configure:847: checking for working automake" >&5
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (automake --version) < /dev/null > /dev/null 2>&1; then
AUTOMAKE=automake
- echo "configure:823: result: found" >&5
+ echo "configure:854: result: found" >&5
echo "${ECHO_T}found" >&6
else
AUTOMAKE="$missing_dir/missing automake"
- echo "configure:827: result: missing" >&5
+ echo "configure:858: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
-echo "configure:830: checking for working autoheader" >&5
+echo "configure:861: checking for working autoheader" >&5
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
AUTOHEADER=autoheader
- echo "configure:837: result: found" >&5
+ echo "configure:868: result: found" >&5
echo "${ECHO_T}found" >&6
else
AUTOHEADER="$missing_dir/missing autoheader"
- echo "configure:841: result: missing" >&5
+ echo "configure:872: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
-echo "configure:844: checking for working makeinfo" >&5
+echo "configure:875: checking for working makeinfo" >&5
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
MAKEINFO=makeinfo
- echo "configure:851: result: found" >&5
+ echo "configure:882: result: found" >&5
echo "${ECHO_T}found" >&6
else
MAKEINFO="$missing_dir/missing makeinfo"
- echo "configure:855: result: missing" >&5
+ echo "configure:886: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "configure:868: checking for $ac_word" >&5
+echo "configure:899: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_M4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
M4=$ac_cv_path_M4
if test -n "$M4"; then
- echo "configure:893: result: $M4" >&5
+ echo "configure:924: result: $M4" >&5
echo "${ECHO_T}$M4" >&6
else
- echo "configure:896: result: no" >&5
+ echo "configure:927: result: no" >&5
echo "${ECHO_T}no" >&6
fi
done
test -n "$M4" || M4="m4"
-echo "configure:902: checking whether m4 supports frozen files" >&5
+echo "configure:933: checking whether m4 supports frozen files" >&5
echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
if test "${ac_cv_prog_gnu_m4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
esac
fi
fi
-echo "configure:914: result: $ac_cv_prog_gnu_m4" >&5
+echo "configure:945: result: $ac_cv_prog_gnu_m4" >&5
echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
if test x"$ac_cv_prog_gnu_m4" != xyes; then
{ echo "configure: error: GNU m4 1.4 is required" >&2; exit 1; }
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "configure:926: checking for $ac_word" >&5
+echo "configure:957: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
- echo "configure:947: result: $AWK" >&5
+ echo "configure:978: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
- echo "configure:950: result: no" >&5
+ echo "configure:981: result: no" >&5
echo "${ECHO_T}no" >&6
fi
done
# Generating man pages.
-echo "configure:956: checking for working help2man" >&5
+echo "configure:987: checking for working help2man" >&5
echo $ECHO_N "checking for working help2man... $ECHO_C" >&6
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if (help2man --version) < /dev/null > /dev/null 2>&1; then
HELP2MAN=help2man
- echo "configure:963: result: found" >&5
+ echo "configure:994: result: found" >&5
echo "${ECHO_T}found" >&6
else
HELP2MAN="\${SHELL} \${top_srcdir}/missing help2man"
- echo "configure:967: result: missing" >&5
+ echo "configure:998: result: missing" >&5
echo "${ECHO_T}missing" >&6
fi
# We use a path for perl so the #! line in autoscan will work.
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
-echo "configure:973: checking for $ac_word" >&5
+echo "configure:1004: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PERL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
PERL=$ac_cv_path_PERL
if test -n "$PERL"; then
- echo "configure:999: result: $PERL" >&5
+ echo "configure:1030: result: $PERL" >&5
echo "${ECHO_T}$PERL" >&6
else
- echo "configure:1002: result: no" >&5
+ echo "configure:1033: result: no" >&5
echo "${ECHO_T}no" >&6
fi
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
-echo "configure:1021: checking for a BSD compatible install" >&5
+echo "configure:1052: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
INSTALL=$ac_install_sh
fi
fi
-echo "configure:1067: result: $INSTALL" >&5
+echo "configure:1098: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
cat >confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
-# scripts and configure runs. It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
#
-# By default, configure uses `config.cache' as the cache file,
-# creating it if it does not exist already. You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
#
+# `ac_cv_env_foo' variables (set or unset) will be overriden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
;;
esac;
} |
- sed 's/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
+ sed '/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
if cmp -s $cache_file confcache; then :; else
if test -w $cache_file; then
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case $ac_file in
- *:*) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *) ac_file_in=$ac_file.in ;;
+ - | *:- | *:-:* ) # input from stdin
+ cat >$tmp/stdin
+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+ * ) ac_file_in=$ac_file.in ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
*) INSTALL=$ac_dots$ac_given_INSTALL ;;
esac
- echo creating "$ac_file"
- rm -f "$ac_file"
+ if test x"$ac_file" != x-; then
+ echo creating $ac_file
+ rm -f "$ac_file"
+ fi
configure_input="Generated automatically from `echo $ac_file_in |
sed 's,.*/,,'` by configure."
# Don't redirect the output to AC_FILE directly: use `mv' so that
# updating is atomic, and doesn't need trapping.
+
+ # First look for the input files in the build tree, otherwise in the
+ # src tree.
ac_file_inputs=`IFS=:
- for f in $ac_file_in; do echo $ac_given_srcdir/$f; done`
- for ac_file_input in $ac_file_inputs;
- do
- test -f "$ac_file_input" ||
- { echo "configure: error: cannot find input file \`$ac_file_input'" >&2; exit 1; }
- done
+ for f in $ac_file_in; do
+ case $f in
+ -) echo $tmp/stdin ;;
+ [\\/$]* | ?:[\\/]*)
+ # Absolute
+ test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
+ echo $f;;
+ *) # Relative
+ if test -f "$f"; then
+ # Build tree
+ echo $f
+ elif test -f "$ac_given_srcdir/$f"; then
+ # Source tree
+ echo $ac_given_srcdir/$f
+ else
+ # /dev/null tree
+ { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
+ fi;;
+ esac
+ done`
EOF
cat >>$CONFIG_STATUS <<EOF
sed "$ac_vpsub
s,@top_srcdir@,$top_srcdir,;t t
s,@INSTALL@,$INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
- mv $tmp/out $ac_file
+ rm -f $tmp/stdin
+ if test x"$ac_file" != x-; then
+ mv $tmp/out $ac_file
+ else
+ cat $tmp/out
+ rm -f $tmp/out
+ fi
done
EOF