OSDN Git Service

* HACKING: Document regenerating configure and aclocal.m4.
[pf3gnuchains/gcc-fork.git] / libjava / HACKING
index 84df87f..a22f135 100644 (file)
@@ -34,10 +34,17 @@ non-maintainer-mode build and use the newly installed gjavah.
 
 --
 
-To regenerate libjava/configure, use:
-
-    aclocal -I . -I .. -I ../config -I libltdl
-    autoconf
+To regenerate libjava/configure, first run aclocal passing the flags
+found near the top of Makefile.am, then autoconf.  H. J. Lu writes that
+this can be done using these commands:
+
+   cd libjava &&
+   rm -f aclocal.m4 &&
+   ACFLAGS=$(grep "^ACLOCAL_AMFLAGS" Makefile.in | sed -e "s/ACLOCAL_AMFLAGS[ \t ]*=//") && 
+   aclocal-1.9 $ACFLAGS &&
+   rm -f configure &&
+   autoconf-2.59 &&
+   rm -fr autom4te.cache
 
 See the GCC documentation which auto* versions to use.