summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sascha@apache.org>2000-05-03 02:02:54 +0000
committerSascha Schumann <sascha@apache.org>2000-05-03 02:02:54 +0000
commitafb48ffe103391b5b0e01fb2d3e787923824dbd8 (patch)
treed4690b04b772944ea8b5c2ded090d1c9b9cf6953
parenta7315d1bd1c61722bcff2499456824da3e16cf67 (diff)
downloadhttpd-afb48ffe103391b5b0e01fb2d3e787923824dbd8.tar.gz
Configure creates config.nice now containing your configure options.
Syntax: ./config.nice [--more-options] Obtained from: PHP git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85127 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--acinclude.m416
-rw-r--r--configure.in2
2 files changed, 18 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index fdd8c6a58b..8482f222cf 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,3 +1,19 @@
+
+AC_DEFUN(APACHE_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(APACHE_PASSTHRU,[
unset ac_cv_pass_$1
diff --git a/configure.in b/configure.in
index ca5ad57c9d..b4c3633d36 100644
--- a/configure.in
+++ b/configure.in
@@ -20,6 +20,8 @@ dnl Absolute source/build directory
abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`
+APACHE_CONFIG_NICE(config.nice)
+
dnl If the source dir is not equal to the build dir,
dnl then we are running in VPATH mode.