summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-03-07 18:05:16 +0000
committerSascha Schumann <sas@php.net>2000-03-07 18:05:16 +0000
commit77fb7d2b64f61c68dc23cf89e9bdd78c21079106 (patch)
treecc18d31dcbc7c849595c146c37ddb5fbea3bab6a /acinclude.m4
parentbd418f074111579408a48b2fb2d38ad1bd9149f8 (diff)
downloadphp-git-77fb7d2b64f61c68dc23cf89e9bdd78c21079106.tar.gz
Write configuration parameters into `config.nice', so you can redo the
same configuration with exactly one command.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0d0b898f4d..2adf676716 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -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,[