Hi!

This patch makes autoconf prefer configure.gnu over configure when
configuring subdirectories; this is usefull if these subdirectories also
contain packages not using autoconf.

This patch originates from the GeekGadgets project
(http://www.ninemoons.com/GG/).

This is basically a resend of a part of
<[EMAIL PROTECTED]>.

Index: ChangeLog
from Rüdiger Kuhlmann <[EMAIL PROTECTED]>
        * acgeneral.m4(_AC_OUTPUT_SUBDIRS): check for configure.in as well

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.545
diff -u -r1.545 acgeneral.m4
--- acgeneral.m4        2000/08/07 12:33:18     1.545
+++ acgeneral.m4        2000/09/08 18:48:26
@@ -5146,7 +5146,9 @@
     esac
 
     # Check for guested configure; otherwise get Cygnus style configure.
-    if test -f $ac_sub_srcdir/configure; then
+    if test -f $ac_sub_srcdir/configure.gnu; then
+      ac_sub_configure="$SHELL $ac_sub_srcdir/configure.gnu"
+    elif test -f $ac_sub_srcdir/configure; then
       ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
     elif test -f $ac_sub_srcdir/configure.in; then
       ac_sub_configure=$ac_configure

Yours, Rüdiger.

-- 
   http://www.ruediger-kuhlmann.de/

Reply via email to