]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AM_PROG_GCJ): Quote it so that aclocal won't bring
authorAlexandre Oliva <aoliva@lsd.ic.unicamp.br>
Mon, 10 Jul 2000 04:33:52 +0000 (04:33 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 10 Jul 2000 04:33:52 +0000 (04:33 +0000)
it in if it only appears in libtool.m4.
(AC_PROG_LIBTOOL): Move AC_PROG_CXX, AC_PROG_GCJ and AM_PROG_GCJ
hooks here, so that they can be far simpler!

ChangeLog
libtool.m4

index 1b9075184ac515446d1a9754fabaf539609a03e2..dacaaa02f9481c85cca7414c5595ea5f8d1fc9a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-07-10  Alexandre Oliva  <aoliva@lsd.ic.unicamp.br>
+
+       * libtool.m4 (AM_PROG_GCJ): Quote it so that aclocal won't bring
+       it in if it only appears in libtool.m4.
+       (AC_PROG_LIBTOOL): Move AC_PROG_CXX, AC_PROG_GCJ and AM_PROG_GCJ
+       hooks here, so that they can be far simpler!
+
 2000-06-17  Syd Polk  <spolk@redhat.com>
 
        * libtool.m4 (AC_LIBTOOL_SETUP): Do not generate a libtool based
index 3ed28daeb15bb09570f154a0bac0c37ebf61d2ef..87105962dff3715b983902ef495479949f0b8f9b 100644 (file)
 ## the same distribution terms that you use for the rest of that program.
 
 # serial 45 AC_PROG_LIBTOOL
-AC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([_AC_PROG_LIBTOOL])])
+AC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([_AC_PROG_LIBTOOL])
+# If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
+# immediately, otherwise, hook it in at the end of AC_PROG_CXX.
+  AC_PROVIDE_IFELSE([AC_PROG_CXX],
+    [AC_LIBTOOL_CXX],
+    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
+])])
+#
+# Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
+# If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
+# AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
+  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+    [AC_LIBTOOL_GCJ],
+    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+        [AC_LIBTOOL_GCJ],
+       [ifdef([AC_PROG_GCJ],
+              [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ
+])])#
+        ifdef([A][M_PROG_GCJ],
+              [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ
+])])])])])
+
 AC_DEFUN(_AC_PROG_LIBTOOL,
 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
@@ -788,50 +809,6 @@ CFLAGS="$lt_save_CFLAGS"
 exec 5>>./config.log
 ])
 
-# If both AC_PROG_CXX and AC_PROG_LIBTOOL have already been expanded,
-# run AC_LIBTOOL_CXX immediately, otherwise, only expand it after the
-# latter of them.
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
-    [AC_PROVIDE_IFELSE([AC_PROG_LIBTOOL],
-       [AC_LIBTOOL_CXX],
-       [define([AC_PROG_LIBTOOL],
-               defn([AC_PROG_LIBTOOL])[AC_LIBTOOL_CXX
-])])],
-    [define([AC_PROG_CXX],
-           defn([AC_PROG_CXX])[AC_PROVIDE_IFELSE([AC_PROG_LIBTOOL],
-       [AC_LIBTOOL_CXX],
-       [define([AC_PROG_LIBTOOL],
-               defn([AC_PROG_LIBTOOL])[AC_LIBTOOL_CXX
-])])])])
-
-# If both A[CM]_PROG_CXX and AC_PROG_LIBTOOL have already been
-# expanded, run AC_LIBTOOL_GCJ immediately, otherwise, only expand it
-# after the latter of them.
-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
-    [AC_PROVIDE_IFELSE([AC_PROG_LIBTOOL],
-       [AC_LIBTOOL_GCJ],
-       [define([AC_PROG_LIBTOOL],
-               defn([AC_PROG_LIBTOOL])[AC_LIBTOOL_GCJ
-])])],
-    [define([AC_PROG_GCJ],
-           defn([AC_PROG_GCJ])[AC_PROVIDE_IFELSE([AC_PROG_LIBTOOL],
-       [AC_LIBTOOL_GCJ],
-       [define([AC_PROG_LIBTOOL],
-               defn([AC_PROG_LIBTOOL])[AC_LIBTOOL_GCJ
-])])])])
-AC_PROVIDE_IFELSE([AM_PROG_GCJ],
-    [AC_PROVIDE_IFELSE([AC_PROG_LIBTOOL],
-       [AC_LIBTOOL_GCJ],
-       [define([AC_PROG_LIBTOOL],
-               defn([AC_PROG_LIBTOOL])[AC_LIBTOOL_GCJ
-])])],
-    [define([AM_PROG_GCJ],
-           defn([AM_PROG_GCJ])[AC_PROVIDE_IFELSE([AC_PROG_LIBTOOL],
-       [AC_LIBTOOL_GCJ],
-       [define([AC_PROG_LIBTOOL],
-               defn([AC_PROG_LIBTOOL])[AC_LIBTOOL_GCJ
-])])])])
-
 dnl old names
 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl