]> granicus.if.org Git - php/commitdiff
generate acconfig.h from acconfig.h.in and ext/*/config.h.stub
authorStig Bakken <ssb@php.net>
Mon, 19 Apr 1999 17:19:37 +0000 (17:19 +0000)
committerStig Bakken <ssb@php.net>
Mon, 19 Apr 1999 17:19:37 +0000 (17:19 +0000)
acconfig.h.in [moved from acconfig.h with 100% similarity]
scripts/preconfig

similarity index 100%
rename from acconfig.h
rename to acconfig.h.in
index a8c6569af04eab1dd74d05d411379c714af80424..b230de46628cfa7e1fae07c0045239f144d888ae 100755 (executable)
@@ -3,5 +3,23 @@
 # $Id$
 
 makefiles=`echo ext/*/Makefile.am | sed -e 's/\.am//g'`
-rm -f configure.in
-sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in
+sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in > configure.in.new
+if ! cmp configure.in configure.in.new 2>/dev/null; then
+    mv configure.in.new configure.in
+else
+    rm -f configure.in.new
+fi
+
+cat acconfig.h.in > acconfig.h.new
+confighfiles=`echo ext/*/config.h.stub`
+if test "$confighfiles" != "ext/*/config.h.stub"; then
+    for file in $confighfiles; do
+       cat $file >> acconfig.h.new
+    done
+fi
+if ! cmp acconfig.h acconfig.h.new 2>/dev/null; then
+    mv acconfig.h.new acconfig.h
+    autoheader
+else
+    rm -f acconfig.h.new
+fi