(AC_FD_LOG): New macro, replaces...
(AC_FD_CC): this. Provide an AU definition.
(_AC_ECHO_UNQUOTED, _AC_ECHO_N): Use m4_default.
+2000-04-07 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4: s/1>&/>&/g.
+ (AC_FD_LOG): New macro, replaces...
+ (AC_FD_CC): this. Provide an AU definition.
+ (_AC_ECHO_UNQUOTED, _AC_ECHO_N): Use m4_default.
+
2000-04-05 Akim Demaille <akim@epita.fr>
At the end of `./configure', save the cache values, and the CPP
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
-define(AC_FD_MSG, 6)dnl
+define([AC_FD_MSG], 6)dnl
@%:@ AC_FD_MSG checking for... messages and results
-define(AC_FD_CC, 5)dnl
-@%:@ AC_FD_CC compiler messages saved in config.log
+define([AC_FD_LOG], 5)dnl
+AU_DEFUN([AC_FD_CC], [AC_FD_LOG])dnl That's how it used to be named.
+@%:@ AC_FD_LOG compiler messages saved in config.log
if test "$silent" = yes; then
exec AC_FD_MSG>/dev/null
else
exec AC_FD_MSG>&1
fi
-exec AC_FD_CC>./config.log
+exec AC_FD_LOG>./config.log
echo "\
This file contains any messages produced by compilers while
It was created by configure ifset([AC_PACKAGE_STRING],
[(AC_PACKAGE_STRING)]) AC_ACVERSION, executed with
> [$]0 $ac_configure_args
-" 1>&AC_FD_CC
+" >&AC_FD_LOG
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
ac_cv_$1_vendor=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
ac_cv_$1_os=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
else
- echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG
+ echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG
fi
AC_MSG_RESULT($ac_cv_$1)
dnl shell variable, so we need the eval.
dnl if test "${$1+set}" = set; then
AC_VAR_IF_SET([$1],
- [echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG],
+ [echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG],
[$2])])
# Expands into a sh call to echo onto FD (default is AC_FD_MSG).
# The shell performs its expansions on STRING.
define([_AC_ECHO_UNQUOTED],
-[echo "[$1]" 1>&ifelse($2,, AC_FD_MSG, $2)])
+[echo "[$1]" >&m4_default([$2], [AC_FD_MSG])])
# _AC_ECHO(STRING, [FD])
# _AC_ECHO_N(STRING, [FD])
# ------------------------
# Same as _AC_ECHO, but echo doesn't return to a new line.
-define(_AC_ECHO_N,
-[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" 1>&ifelse($2,,AC_FD_MSG,$2)])
+define([_AC_ECHO_N],
+[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" >&m4_default([$2], [AC_FD_MSG])])
# AC_MSG_CHECKING(FEATURE-DESCRIPTION)
# ------------------------------------
-define(AC_MSG_CHECKING,
+define([AC_MSG_CHECKING],
[_AC_ECHO_N([checking $1... ])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
# AC_CHECKING(FEATURE-DESCRIPTION)
# --------------------------------
-define(AC_CHECKING,
+define([AC_CHECKING],
[_AC_ECHO([checking $1])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
# AC_MSG_RESULT(RESULT-DESCRIPTION)
# ---------------------------------
-define(AC_MSG_RESULT,
+define([AC_MSG_RESULT],
[_AC_ECHO([$ECHO_T""$1])])
# AC_MSG_RESULT_UNQUOTED(RESULT-DESCRIPTION)
# ------------------------------------------
# Likewise, but perform $ ` \ shell substitutions.
-define(AC_MSG_RESULT_UNQUOTED,
+define([AC_MSG_RESULT_UNQUOTED],
[_AC_ECHO_UNQUOTED([$ECHO_T""$1])])
# AC_VERBOSE(RESULT-DESCRIPTION)
# ------------------------------
-define(AC_VERBOSE,
+define([AC_VERBOSE],
[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
_AC_ECHO([ $1])])
# AC_MSG_WARN(PROBLEM-DESCRIPTION)
# --------------------------------
-define(AC_MSG_WARN,
+define([AC_MSG_WARN],
[_AC_ECHO([configure: warning: $1], 2)])
# AC_MSG_ERROR(ERROR-DESCRIPTION, [EXIT-STATUS])
# ----------------------------------------------
-define(AC_MSG_ERROR,
+define([AC_MSG_ERROR],
[{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }])
# AC_MSG_ERROR_UNQUOTED(ERROR-DESCRIPTION, [EXIT-STATUS])
# -------------------------------------------------------
-define(AC_MSG_ERROR_UNQUOTED,
+define([AC_MSG_ERROR_UNQUOTED],
[{ _AC_ECHO_UNQUOTED([configure: error: $1], 2); exit m4_default([$2], 1); }])
# The purpose of this macro is to "configure:123: command line"
# written into config.log for every test run.
AC_DEFUN(AC_TRY_EVAL,
-[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
-(eval [$]$1) 2>&AC_FD_CC; }])
+[{ (eval echo configure:__oline__: \"[$]$1\") >&AC_FD_LOG; dnl
+(eval [$]$1) 2>&AC_FD_LOG; }])
# AC_TRY_COMMAND(COMMAND)
pushdef(AC_Prog, translit($1, a-z, A-Z))dnl
if test "x$prefix" = xNONE; then
dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle.
-echo $ECHO_N "checking for prefix by $ECHO_C" 1>&AC_FD_MSG
+echo $ECHO_N "checking for prefix by $ECHO_C" >&AC_FD_MSG
AC_PATH_PROG(AC_Prog, $1)
if test -n "$ac_cv_path_[]AC_Prog"; then
prefix=`echo $ac_cv_path_[]AC_Prog | [sed 's%/[^/][^/]*//*[^/][^/]*$%%']`
if test -z "$ac_err"; then
m4_default([$2], :)
else
- echo "$ac_err" >&AC_FD_CC
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "$ac_err" >&AC_FD_LOG
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
$3
fi
rm -f conftest*])
EOF
dnl eval is necessary to expand ac_cpp.
dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
-if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_LOG |
dnl Prevent m4 from eating character classes:
changequote(, )dnl
egrep "$1" >/dev/null 2>&1; then
if AC_TRY_EVAL(ac_compile); then
m4_default([$2], :)
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
ifval([$3],
[ $3
])dnl
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
m4_default([$2], :)
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
ifval([$3],
[ $3
])dnl
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
m4_default([$2], :)
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
ifval([$3],
[ $3
])dnl
dnl Commands to run before creating config.status.
AC_OUTPUT_COMMANDS_PRE()dnl
-# Save into config.log some informations which might help to debug.
-echo >>config.log
-echo "The cache variables are:" >>config.log
-_AC_CACHE_DUMP | sed -e 's/^/| /' >>config.log
-echo >>config.log
-echo "confdefs.h is:" >>config.log
-cat confdefs.h | sed -e 's/^/| /' >>config.log
+# Save into config.log some information that might help in debugging.
+echo >&AC_FD_LOG
+echo "Cache variables:" >&AC_FD_LOG
+_AC_CACHE_DUMP | sed -e 's/^/| /' >&AC_FD_LOG
+echo >&AC_FD_LOG
+echo "confdefs.h:" >&AC_FD_LOG
+cat confdefs.h | sed -e 's/^/| /' >&AC_FD_LOG
: ${CONFIG_STATUS=./config.status}
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
[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 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cc_cross
])
[ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cxx_cross
])
# ------------------
define([AC_LANG(FORTRAN77)],
[ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_f77_cross
])
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CC_GNU
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
- ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+ ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CXX_GNU
# We do the `AC_TRY_EVAL' test twice because some compilers refuse to
# overwrite an existing `.o' file with `-o', although they will create
# one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
eval ac_cv_prog_f77_${ac_f77}_c_o=yes
else
EOF
# Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
FFLAGS="$ac_save_FFLAGS"
# Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
rm -f conftest.*
rm -f conftest*
rm -f cf77_test*
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
fi
AC_LANG_RESTORE()dnl
])
ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
- { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
+ { echo "configure: error: invalid feature: $ac_feature" >&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
eval "enable_${ac_feature}=no" ;;
ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
- { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
+ { echo "configure: error: invalid feature: $ac_feature" >&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
case "$ac_option" in
ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
- { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
+ { echo "configure: error: invalid package: $ac_package" >&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
case "$ac_option" in
ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
# Reject names that are not valid shell variable names.
if echo "$ac_package" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
- { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
+ { echo "configure: error: invalid package: $ac_package" >&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
eval "with_${ac_package}=no" ;;
x_libraries="$ac_optarg" ;;
-*) { echo "configure: error: unrecognized option: $ac_option
-Try \`configure --help' for more information." 1>&2; exit 1; }
+Try \`configure --help' for more information." >&2; exit 1; }
;;
*=*)
ac_envvar=`echo "$ac_option" | sed -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if echo "$ac_envvar" | grep '[^a-zA-Z0-9_]' >/dev/null 2>&1; then
- { echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; }
+ { echo "configure: error: invalid variable name: $ac_envvar" >&2; exit 1; }
fi
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
eval "$ac_envvar='$ac_optarg'"
*)
if echo "$ac_option" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
- echo "configure: warning: invalid host type: $ac_option" 1>&2
+ echo "configure: warning: invalid host type: $ac_option" >&2
fi
if test "x$nonopt" != xNONE; then
- { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
+ { echo "configure: error: can only configure for one host and one target at a time" >&2; exit 1; }
fi
nonopt="$ac_option"
;;
done
if test -n "$ac_prev"; then
- { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
+ { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" >&2; exit 1; }
fi
# Be sure to have absolute paths.
case $ac_val in
[\\/$]* | ?:[\\/]* ) ;;
NONE ) ;;
- *) { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" 1>&2; exit 1; };;
+ *) { echo "configure: error: expected an absolute path for --$ac_var: $ac_val" >&2; exit 1; };;
esac
done
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
+ { echo "configure: error: cannot find sources in $ac_confdir or .." >&2; exit 1; }
else
- { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
+ { echo "configure: error: cannot find sources in $srcdir" >&2; exit 1; }
fi
fi
srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
echo
$ac_configure --help
else
- echo "configure: warning: no configuration information is in $ac_subdir" 1>&2
+ echo "configure: warning: no configuration information is in $ac_subdir" >&2
fi
cd $ac_popdir
done
It was created by configure (Autoconf 2.14a) 2.14a, executed with
> $0 $ac_configure_args
-" 1>&5
+" >&5
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
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 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+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'
cross_compiling=$ac_cv_prog_cc_cross
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
fi
done
if test -z "$ac_aux_dir"; then
- { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2; exit 1; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
# 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 $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
-echo "configure:607: checking for a BSD compatible install" 1>&5
+echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
+echo "configure:607: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_save_IFS=$IFS; IFS=':'
for ac_dir in $PATH; do
INSTALL="$ac_install_sh"
fi
fi
-echo "$ECHO_T""$INSTALL" 1>&6
+echo "$ECHO_T""$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-echo $ECHO_N "checking whether build environment is sane... $ECHO_C" 1>&6
-echo "configure:659: checking whether build environment is sane" 1>&5
+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
+echo "configure:659: checking whether build environment is sane" >&5
# Just in case
sleep 1
echo timestamp > conftestfile
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
-alias in your environment" 1>&2; exit 1; }
+alias in your environment" >&2; exit 1; }
fi
test "$2" = conftestfile
:
else
{ echo "configure: error: newly created file is older than distributed files!
-Check your system clock" 1>&2; exit 1; }
+Check your system clock" >&2; exit 1; }
fi
rm -f conftest*
-echo "$ECHO_T""yes" 1>&6
+echo "$ECHO_T""yes" >&6
if test "$program_transform_name" = s,x,x,; then
program_transform_name=
else
# sed with no file args requires a program.
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
-echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
-echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
+echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftestmake <<\EOF
all:
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$ECHO_T""yes" 1>&6
+ echo "$ECHO_T""yes" >&6
SET_MAKE=
else
- echo "$ECHO_T""no" 1>&6
+ echo "$ECHO_T""no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
VERSION=2.14a
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
+ { echo "configure: error: source directory already configured; run "make distclean" there first" >&2; exit 1; }
fi
#
EOF
missing_dir=`cd $ac_aux_dir && pwd`
-echo $ECHO_N "checking for working aclocal... $ECHO_C" 1>&6
-echo "configure:752: checking for working aclocal" 1>&5
+echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
+echo "configure:752: checking for working aclocal" >&5
# 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 "$ECHO_T""found" 1>&6
+ echo "$ECHO_T""found" >&6
else
ACLOCAL="$missing_dir/missing aclocal"
- echo "$ECHO_T""missing" 1>&6
+ echo "$ECHO_T""missing" >&6
fi
-echo $ECHO_N "checking for working autoconf... $ECHO_C" 1>&6
-echo "configure:764: checking for working autoconf" 1>&5
+echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
+echo "configure:764: checking for working autoconf" >&5
# 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 "$ECHO_T""found" 1>&6
+ echo "$ECHO_T""found" >&6
else
AUTOCONF="$missing_dir/missing autoconf"
- echo "$ECHO_T""missing" 1>&6
+ echo "$ECHO_T""missing" >&6
fi
-echo $ECHO_N "checking for working automake... $ECHO_C" 1>&6
-echo "configure:776: checking for working automake" 1>&5
+echo $ECHO_N "checking for working automake... $ECHO_C" >&6
+echo "configure:776: checking for working automake" >&5
# 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 "$ECHO_T""found" 1>&6
+ echo "$ECHO_T""found" >&6
else
AUTOMAKE="$missing_dir/missing automake"
- echo "$ECHO_T""missing" 1>&6
+ echo "$ECHO_T""missing" >&6
fi
-echo $ECHO_N "checking for working autoheader... $ECHO_C" 1>&6
-echo "configure:788: checking for working autoheader" 1>&5
+echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
+echo "configure:788: checking for working autoheader" >&5
# 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 "$ECHO_T""found" 1>&6
+ echo "$ECHO_T""found" >&6
else
AUTOHEADER="$missing_dir/missing autoheader"
- echo "$ECHO_T""missing" 1>&6
+ echo "$ECHO_T""missing" >&6
fi
-echo $ECHO_N "checking for working makeinfo... $ECHO_C" 1>&6
-echo "configure:800: checking for working makeinfo" 1>&5
+echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
+echo "configure:800: checking for working makeinfo" >&5
# 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 "$ECHO_T""found" 1>&6
+ echo "$ECHO_T""found" >&6
else
MAKEINFO="$missing_dir/missing makeinfo"
- echo "$ECHO_T""missing" 1>&6
+ echo "$ECHO_T""missing" >&6
fi
AT_TESTPATH=..
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 $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
-echo "configure:817: checking for $ac_word" 1>&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+echo "configure:817: checking for $ac_word" >&5
if test "${ac_cv_path_M4+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
case "$M4" in
[\\/]* | ?:[\\/]*)
fi
M4="$ac_cv_path_M4"
if test -n "$M4"; then
- echo "$ECHO_T""$M4" 1>&6
+ echo "$ECHO_T""$M4" >&6
else
- echo "$ECHO_T""no" 1>&6
+ echo "$ECHO_T""no" >&6
fi
test -n "$M4" && break
done
test -n "$M4" || M4="m4"
-echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" 1>&6
-echo "configure:849: checking whether m4 supports frozen files" 1>&5
+echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
+echo "configure:849: checking whether m4 supports frozen files" >&5
if test "${ac_cv_prog_gnu_m4+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_prog_gnu_m4=no
if test x"$M4" != x; then
esac
fi
fi
-echo "$ECHO_T""$ac_cv_prog_gnu_m4" 1>&6
+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" 1>&2; exit 1; }
+ { echo "configure: error: GNU m4 1.4 is required" >&2; exit 1; }
fi
for ac_prog in mawk gawk nawk awk
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 $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
-echo "configure:869: checking for $ac_word" 1>&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+echo "configure:869: checking for $ac_word" >&5
if test "${ac_cv_prog_AWK+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test.
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
- echo "$ECHO_T""$AWK" 1>&6
+ echo "$ECHO_T""$AWK" >&6
else
- echo "$ECHO_T""no" 1>&6
+ echo "$ECHO_T""no" >&6
fi
test -n "$AWK" && break
done
-echo $ECHO_N "checking for working help2man... $ECHO_C" 1>&6
-echo "configure:900: checking for working help2man" 1>&5
+echo $ECHO_N "checking for working help2man... $ECHO_C" >&6
+echo "configure:900: checking for working help2man" >&5
# 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 "$ECHO_T""found" 1>&6
+ echo "$ECHO_T""found" >&6
else
HELP2MAN="\${SHELL} \${top_srcdir}/missing help2man"
- echo "$ECHO_T""missing" 1>&6
+ echo "$ECHO_T""missing" >&6
fi
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
-echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
-echo "configure:914: checking for $ac_word" 1>&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+echo "configure:914: checking for $ac_word" >&5
if test "${ac_cv_path_PERL+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
case "$PERL" in
[\\/]* | ?:[\\/]*)
fi
PERL="$ac_cv_path_PERL"
if test -n "$PERL"; then
- echo "$ECHO_T""$PERL" 1>&6
+ echo "$ECHO_T""$PERL" >&6
else
- echo "$ECHO_T""no" 1>&6
+ echo "$ECHO_T""no" >&6
fi
if test "$PERL" != no; then
PERLSCRIPTS=autoscan
else
- echo "configure: warning: autoscan will not be built since perl is not found" 1>&2
+ echo "configure: warning: autoscan will not be built since perl is not found" >&2
fi
# Find a good install program. We prefer a C program (faster),
# 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 $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
-echo "configure:960: checking for a BSD compatible install" 1>&5
+echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
+echo "configure:960: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" 1>&6
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_save_IFS=$IFS; IFS=':'
for ac_dir in $PATH; do
INSTALL="$ac_install_sh"
fi
fi
-echo "$ECHO_T""$INSTALL" 1>&6
+echo "$ECHO_T""$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
DEFS=`sed -f conftest.defs confdefs.h | tr "$ac_LF_and_DOT" ' .'`
rm -f conftest.defs
-# Save into config.log some informations which might help to debug.
-echo >>config.log
-echo "The cache variables are:" >>config.log
+# Save into config.log some information that might help in debugging
+echo >&5
+echo "Cache variables:" >&5
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\2/p'
;;
esac;
-} | sed -e 's/^/| /' >>config.log
-echo >>config.log
-echo "confdefs.h is:" >>config.log
-cat confdefs.h | sed -e 's/^/| /' >>config.log
+} | sed -e 's/^/| /' >&5
+echo >&5
+echo "confdefs.h:" >&5
+cat confdefs.h | sed -e 's/^/| /' >&5
: ${CONFIG_STATUS=./config.status}
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
for ac_file_input in $ac_file_inputs;
do
test -f "$ac_file_input" ||
- { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
+ { echo "configure: error: cannot find input file \`$ac_file_input'" >&2; exit 1; }
done
EOF
cat >>$CONFIG_STATUS <<EOF
[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 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cc_cross
])
[ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cxx_cross
])
# ------------------
define([AC_LANG(FORTRAN77)],
[ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_f77_cross
])
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CC_GNU
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
- ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+ ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CXX_GNU
# We do the `AC_TRY_EVAL' test twice because some compilers refuse to
# overwrite an existing `.o' file with `-o', although they will create
# one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
eval ac_cv_prog_f77_${ac_f77}_c_o=yes
else
EOF
# Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
FFLAGS="$ac_save_FFLAGS"
# Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
rm -f conftest.*
rm -f conftest*
rm -f cf77_test*
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
fi
AC_LANG_RESTORE()dnl
])
[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 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cc_cross
])
[ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cxx_cross
])
# ------------------
define([AC_LANG(FORTRAN77)],
[ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_f77_cross
])
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CC_GNU
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
- ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+ ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CXX_GNU
# We do the `AC_TRY_EVAL' test twice because some compilers refuse to
# overwrite an existing `.o' file with `-o', although they will create
# one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
eval ac_cv_prog_f77_${ac_f77}_c_o=yes
else
EOF
# Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
FFLAGS="$ac_save_FFLAGS"
# Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
rm -f conftest.*
rm -f conftest*
rm -f cf77_test*
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
fi
AC_LANG_RESTORE()dnl
])
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
-define(AC_FD_MSG, 6)dnl
+define([AC_FD_MSG], 6)dnl
@%:@ AC_FD_MSG checking for... messages and results
-define(AC_FD_CC, 5)dnl
-@%:@ AC_FD_CC compiler messages saved in config.log
+define([AC_FD_LOG], 5)dnl
+AU_DEFUN([AC_FD_CC], [AC_FD_LOG])dnl That's how it used to be named.
+@%:@ AC_FD_LOG compiler messages saved in config.log
if test "$silent" = yes; then
exec AC_FD_MSG>/dev/null
else
exec AC_FD_MSG>&1
fi
-exec AC_FD_CC>./config.log
+exec AC_FD_LOG>./config.log
echo "\
This file contains any messages produced by compilers while
It was created by configure ifset([AC_PACKAGE_STRING],
[(AC_PACKAGE_STRING)]) AC_ACVERSION, executed with
> [$]0 $ac_configure_args
-" 1>&AC_FD_CC
+" >&AC_FD_LOG
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
ac_cv_$1_vendor=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`
ac_cv_$1_os=`echo $ac_cv_$1 | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`
else
- echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG
+ echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG
fi
AC_MSG_RESULT($ac_cv_$1)
dnl shell variable, so we need the eval.
dnl if test "${$1+set}" = set; then
AC_VAR_IF_SET([$1],
- [echo $ECHO_N "(cached) $ECHO_C" 1>&AC_FD_MSG],
+ [echo $ECHO_N "(cached) $ECHO_C" >&AC_FD_MSG],
[$2])])
# Expands into a sh call to echo onto FD (default is AC_FD_MSG).
# The shell performs its expansions on STRING.
define([_AC_ECHO_UNQUOTED],
-[echo "[$1]" 1>&ifelse($2,, AC_FD_MSG, $2)])
+[echo "[$1]" >&m4_default([$2], [AC_FD_MSG])])
# _AC_ECHO(STRING, [FD])
# _AC_ECHO_N(STRING, [FD])
# ------------------------
# Same as _AC_ECHO, but echo doesn't return to a new line.
-define(_AC_ECHO_N,
-[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" 1>&ifelse($2,,AC_FD_MSG,$2)])
+define([_AC_ECHO_N],
+[echo $ECHO_N "_AC_SH_QUOTE($1)$ECHO_C" >&m4_default([$2], [AC_FD_MSG])])
# AC_MSG_CHECKING(FEATURE-DESCRIPTION)
# ------------------------------------
-define(AC_MSG_CHECKING,
+define([AC_MSG_CHECKING],
[_AC_ECHO_N([checking $1... ])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
# AC_CHECKING(FEATURE-DESCRIPTION)
# --------------------------------
-define(AC_CHECKING,
+define([AC_CHECKING],
[_AC_ECHO([checking $1])
-_AC_ECHO([configure:__oline__: checking $1], AC_FD_CC)])
+_AC_ECHO([configure:__oline__: checking $1], AC_FD_LOG)])
# AC_MSG_RESULT(RESULT-DESCRIPTION)
# ---------------------------------
-define(AC_MSG_RESULT,
+define([AC_MSG_RESULT],
[_AC_ECHO([$ECHO_T""$1])])
# AC_MSG_RESULT_UNQUOTED(RESULT-DESCRIPTION)
# ------------------------------------------
# Likewise, but perform $ ` \ shell substitutions.
-define(AC_MSG_RESULT_UNQUOTED,
+define([AC_MSG_RESULT_UNQUOTED],
[_AC_ECHO_UNQUOTED([$ECHO_T""$1])])
# AC_VERBOSE(RESULT-DESCRIPTION)
# ------------------------------
-define(AC_VERBOSE,
+define([AC_VERBOSE],
[AC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
_AC_ECHO([ $1])])
# AC_MSG_WARN(PROBLEM-DESCRIPTION)
# --------------------------------
-define(AC_MSG_WARN,
+define([AC_MSG_WARN],
[_AC_ECHO([configure: warning: $1], 2)])
# AC_MSG_ERROR(ERROR-DESCRIPTION, [EXIT-STATUS])
# ----------------------------------------------
-define(AC_MSG_ERROR,
+define([AC_MSG_ERROR],
[{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }])
# AC_MSG_ERROR_UNQUOTED(ERROR-DESCRIPTION, [EXIT-STATUS])
# -------------------------------------------------------
-define(AC_MSG_ERROR_UNQUOTED,
+define([AC_MSG_ERROR_UNQUOTED],
[{ _AC_ECHO_UNQUOTED([configure: error: $1], 2); exit m4_default([$2], 1); }])
# The purpose of this macro is to "configure:123: command line"
# written into config.log for every test run.
AC_DEFUN(AC_TRY_EVAL,
-[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
-(eval [$]$1) 2>&AC_FD_CC; }])
+[{ (eval echo configure:__oline__: \"[$]$1\") >&AC_FD_LOG; dnl
+(eval [$]$1) 2>&AC_FD_LOG; }])
# AC_TRY_COMMAND(COMMAND)
pushdef(AC_Prog, translit($1, a-z, A-Z))dnl
if test "x$prefix" = xNONE; then
dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle.
-echo $ECHO_N "checking for prefix by $ECHO_C" 1>&AC_FD_MSG
+echo $ECHO_N "checking for prefix by $ECHO_C" >&AC_FD_MSG
AC_PATH_PROG(AC_Prog, $1)
if test -n "$ac_cv_path_[]AC_Prog"; then
prefix=`echo $ac_cv_path_[]AC_Prog | [sed 's%/[^/][^/]*//*[^/][^/]*$%%']`
if test -z "$ac_err"; then
m4_default([$2], :)
else
- echo "$ac_err" >&AC_FD_CC
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "$ac_err" >&AC_FD_LOG
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
$3
fi
rm -f conftest*])
EOF
dnl eval is necessary to expand ac_cpp.
dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
-if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_LOG |
dnl Prevent m4 from eating character classes:
changequote(, )dnl
egrep "$1" >/dev/null 2>&1; then
if AC_TRY_EVAL(ac_compile); then
m4_default([$2], :)
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
ifval([$3],
[ $3
])dnl
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
m4_default([$2], :)
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
ifval([$3],
[ $3
])dnl
test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
m4_default([$2], :)
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
ifval([$3],
[ $3
])dnl
dnl Commands to run before creating config.status.
AC_OUTPUT_COMMANDS_PRE()dnl
-# Save into config.log some informations which might help to debug.
-echo >>config.log
-echo "The cache variables are:" >>config.log
-_AC_CACHE_DUMP | sed -e 's/^/| /' >>config.log
-echo >>config.log
-echo "confdefs.h is:" >>config.log
-cat confdefs.h | sed -e 's/^/| /' >>config.log
+# Save into config.log some information that might help in debugging.
+echo >&AC_FD_LOG
+echo "Cache variables:" >&AC_FD_LOG
+_AC_CACHE_DUMP | sed -e 's/^/| /' >&AC_FD_LOG
+echo >&AC_FD_LOG
+echo "confdefs.h:" >&AC_FD_LOG
+cat confdefs.h | sed -e 's/^/| /' >&AC_FD_LOG
: ${CONFIG_STATUS=./config.status}
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
[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 1>&AC_FD_CC'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cc_cross
])
[ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_cxx_cross
])
# ------------------
define([AC_LANG(FORTRAN77)],
[ac_ext=f
-ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&AC_FD_CC'
-ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC'
+ac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext >&AC_FD_LOG'
+ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AC_FD_LOG'
cross_compiling=$ac_cv_prog_f77_cross
])
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CC_GNU
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
-ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ac_try='${CC-cc} -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
if test "x$CC" != xcc; then
# Test first that cc exists at all.
- if AC_TRY_COMMAND(cc -c conftest.c 1>&AC_FD_CC); then
- ac_try='cc -c conftest.c -o conftest.o 1>&AC_FD_CC'
+ if AC_TRY_COMMAND(cc -c conftest.c >&AC_FD_LOG); then
+ ac_try='cc -c conftest.c -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) &&
test -f conftest.o && AC_TRY_EVAL(ac_try);
then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
-fi])dnl
+fi])[]dnl
])# AC_PROG_CXX_GNU
# We do the `AC_TRY_EVAL' test twice because some compilers refuse to
# overwrite an existing `.o' file with `-o', although they will create
# one.
-ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o 1>&AC_FD_CC'
+ac_try='$F77 $FFLAGS -c conftest.f -o conftest.o >&AC_FD_LOG'
if AC_TRY_EVAL(ac_try) && test -f conftest.o && AC_TRY_EVAL(ac_try); then
eval ac_cv_prog_f77_${ac_f77}_c_o=yes
else
EOF
# Save the "compiler output file descriptor" to FD 8.
-exec 8>&AC_FD_CC
+exec 8>&AC_FD_LOG
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
-exec AC_FD_CC>&1
+exec AC_FD_LOG>&1
# Compile and link our simple test program by passing the "-v" flag
# to the Fortran 77 compiler in order to get "verbose" output that
FFLAGS="$ac_save_FFLAGS"
# Restore the "compiler output file descriptor".
-exec AC_FD_CC>&8
+exec AC_FD_LOG>&8
rm -f conftest.*
rm -f conftest*
rm -f cf77_test*
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AC_FD_LOG
+ cat conftest.$ac_ext >&AC_FD_LOG
fi
AC_LANG_RESTORE()dnl
])