[Pcre-svn] [1177] code/trunk/Makefile.am: Another attempt at…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1177] code/trunk/Makefile.am: Another attempt at getting "make config.h. generic" work cleanly and robustly.
Revision: 1177
          http://vcs.pcre.org/viewvc?view=rev&revision=1177
Author:   ph10
Date:     2012-10-27 17:07:40 +0100 (Sat, 27 Oct 2012)


Log Message:
-----------
Another attempt at getting "make config.h.generic" work cleanly and robustly.

Modified Paths:
--------------
    code/trunk/Makefile.am


Modified: code/trunk/Makefile.am
===================================================================
--- code/trunk/Makefile.am    2012-10-27 15:46:35 UTC (rev 1176)
+++ code/trunk/Makefile.am    2012-10-27 16:07:40 UTC (rev 1177)
@@ -147,8 +147,10 @@
 config.h.generic: configure.ac
     rm -rf $@ _generic
     mkdir _generic
-    cp configure *.in _generic
-    (cd _generic; ./configure srcdir=.)
+    cs=$(srcdir)/config.status; test ! -f $$cs || mv -f $$cs $$cs.aside
+    cd _generic && $(abs_top_srcdir)/configure || :
+    cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
+    test -f _generic/config.h
     perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@
     rm -rf _generic