Write configuration parameters into `config.nice', so you can redo the

same configuration with exactly one command.
This commit is contained in:
Sascha Schumann 2000-03-07 18:05:16 +00:00
parent bd418f0741
commit 77fb7d2b64
2 changed files with 19 additions and 2 deletions

View File

@ -1,6 +1,22 @@
dnl $Id$
dnl
dnl This file contains local autoconf functions.
AC_DEFUN(PHP_CONFIG_NICE,[
rm -f $1
cat >$1<<EOF
#! /bin/sh
#
# Created by configure
EOF
for arg in [$]0 "[$]@"; do
echo "\"[$]arg\" \\" >> $1
done
echo '"[$]@"' >> $1
chmod +x $1
])
AC_DEFUN(PHP_TIME_R_TYPE,[
AC_CACHE_CHECK(for time_r type, ac_cv_time_r_type,[

View File

@ -23,8 +23,9 @@ fi
cwd=`pwd`
CONFIGURE_COMMAND=$0
for arg in "$@"; do
PHP_CONFIG_NICE(config.nice)
for arg in $0 "$@"; do
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
done