#
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
#
m4_define([_AC_OUTPUT_FILES_PREPARE],
[# Set up the scripts for CONFIG_FILES section.
m4_ifdef([_AC_SUBST_FILES],
[# Create commands to substitute file output variables.
{
- echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
+ echo 'cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1' &&
echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
echo "$ac_subst_files" | sed 's/.*/F@<:@"&"@:>@="$&"/' &&
echo "_ACAWK" &&
dnl - Writing '$ 0' prevents expansion by both the shell and m4 here.
dnl
dnl m4-double-quote most of the scripting for readability.
-[cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+[cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
N
s/\n//
}
-' >>$CONFIG_STATUS || ac_write_fail=1
+' >>"$CONFIG_STATUS" || ac_write_fail=1
rm -f conf$$subs.awk
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
for (key in S) S_is_set[key] = 1
dnl characters they like (except for \0). And the above is not so
dnl unlikely if the configure script itself happens to be converted
dnl to w32 text mode.
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
}']
fi
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"
])# _AC_OUTPUT_FILES_PREPARE
#
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
#
m4_define([_AC_OUTPUT_FILE],
[
_ACEOF
m4_ifndef([AC_DATAROOTDIR_CHECKED],
-[cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+[cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
*@[]m4_join([@*|*@], _AC_datarootdir_vars)@*)
AC_MSG_WARN([$ac_file_inputs seems to ignore the --datarootdir setting])
_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
ac_datarootdir_hack='
m4_map_args_sep([_AC_datarootdir_subst(], [)], [
], _AC_datarootdir_vars)
# Neutralize VPATH when '$srcdir' = '.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
:t
[/@[a-zA-Z_][a-zA-Z_0-9]*@/!b]
dnl configure_input is a somewhat special, so we don't call AC_SUBST_TRACE.
|| AC_MSG_ERROR([could not create $ac_file])
dnl This would break Makefile dependencies:
dnl if diff "$ac_file" "$ac_tmp/out" >/dev/null 2>&1; then
-dnl echo "$ac_file is unchanged"
+dnl AS_ECHO(["$ac_file is unchanged"])
dnl else
dnl rm -f "$ac_file"; mv "$ac_tmp/out" "$ac_file"
dnl fi
#
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
#
m4_define([_AC_OUTPUT_HEADERS_PREPARE],
[# Set up the scripts for CONFIG_HEADERS section.
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
-"/g' >>$CONFIG_STATUS || ac_write_fail=1
+"/g' >>"$CONFIG_STATUS" || ac_write_fail=1
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
for (key in D) D_is_set[key] = 1
FS = "\a"
}
]dnl End of double-quoted section
_ACAWK
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
dnl finish '||' list indicating write error:
AC_MSG_ERROR([could not setup config headers machinery])
fi # test -n "$CONFIG_HEADERS"
#
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
#
m4_define([_AC_OUTPUT_HEADER],
[
# ---------------
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
m4_define([_AC_OUTPUT_LINK],
[
#
# ------------------
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
m4_define([_AC_OUTPUT_COMMAND],
[ AC_MSG_NOTICE([executing $ac_file commands])
])
AC_OUTPUT_COMMANDS_PRE()dnl
: "${CONFIG_STATUS=./config.status}"
+AS_CASE([$CONFIG_STATUS],
+ [-*], [CONFIG_STATUS=./$CONFIG_STATUS],
+ [*/*], [],
+ [CONFIG_STATUS=./$CONFIG_STATUS])
+
ac_write_fail=0
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
_AC_OUTPUT_CONFIG_STATUS()dnl
-ac_clean_files=$ac_clean_files_save
+ac_clean_CONFIG_STATUS=
test $ac_write_fail = 0 ||
AC_MSG_ERROR([write failure creating $CONFIG_STATUS])
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
+ AS_CASE([$CONFIG_STATUS],
+ [-*], [ac_no_opts=--],
+ [ac_no_opts=])
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
exec AS_MESSAGE_LOG_FD>/dev/null
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
+ ac_cs_success=false
exec AS_MESSAGE_LOG_FD>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
[AC_MSG_NOTICE([creating $CONFIG_STATUS])
dnl AS_MESSAGE_LOG_FD is not available yet:
m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
-[AS_INIT_GENERATED([$CONFIG_STATUS],
+[AS_INIT_GENERATED(["$CONFIG_STATUS"],
[# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
ac_cs_silent=false
]) || ac_write_fail=1
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
[#] Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
esac
])
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
m4_ifdef([_AC_SEEN_CONFIG(FILES)],
[config_files="$ac_config_files"
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
'$as_me' instantiates files and other configuration actions
from templates according to the current configuration. Unless the files
_ACEOF
ac_cs_config=`AS_ECHO(["$ac_configure_args"]) | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`AS_ECHO(["$ac_cs_config"]) | sed "s/^ //; s/'/'\\\\\\\\''/g"`
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.status[]dnl
test -n "\$AWK" || AWK=awk
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $[#] != 0
fi
_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
dnl Check this before opening the log, to avoid a bug on MinGW,
dnl which prohibits the recursive instance from truncating an open log.
if \$ac_cs_recheck; then
fi
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
dnl Open the log:
m4_popdef([AS_MESSAGE_LOG_FD])dnl
exec AS_MESSAGE_LOG_FD>>config.log
} >&AS_MESSAGE_LOG_FD
_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
m4_ifdef([_AC_OUTPUT_COMMANDS_INIT],
[#
# INIT-COMMANDS
])dnl
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
# Handling of arguments.
for ac_config_target in $ac_config_targets
#
# This macro is expanded inside a here document. If the here document is
# closed, it has to be reopened with
-# "cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1".
+# 'cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1'.
#
AC_DEFUN([_AC_OUTPUT_MAIN_LOOP],
[