5 AUTOMAKE="automake -a -c --foreign"
9 ACINCLUDE_FILES="lyxinclude.m4 libtool.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 xforms.m4 qt2.m4 gtk--.m4 gnome--.m4 gnome.m4 pspell.m4 pkg.m4"
10 SIGCPP_ACINCLUDE_FILES="libtool.m4"
12 echo -n "Locating GNU m4... "
13 for prog in $M4 gm4 gnum4 m4 ; do
14 case `$prog --version 2>&1` in
22 if test x$ok = xno ; then
26 # Generate acinclude.m4
27 echo -n "Generate acinclude.m4... "
29 (cd config ; cat ${ACINCLUDE_FILES} >../acinclude.m4)
32 # Generate the Makefiles and configure files
33 if ( $ACLOCAL --version ) </dev/null > /dev/null 2>&1; then
34 echo "Building macros..."
35 for dir in . lib/reLyX ; do
37 ( cd $dir ; $ACLOCAL )
41 echo "aclocal not found -- aborting"
45 if ( $AUTOHEADER --version ) </dev/null > /dev/null 2>&1; then
46 echo "Building config header template..."
49 ( cd $dir ; $AUTOHEADER )
53 echo "autoheader not found -- aborting"
57 if ( $AUTOMAKE --version ) </dev/null > /dev/null 2>&1; then
58 echo "Building Makefile templates..."
59 for dir in . lib/reLyX ; do
61 ( cd $dir ; $AUTOMAKE )
65 echo "automake not found -- aborting"
69 if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
70 echo "Building configure..."
71 for dir in . lib/reLyX ; do
73 ( cd $dir ; $AUTOCONF )
77 echo "autoconf not found -- aborting"
81 # Autogenerate lib/configure.m4.
82 if test x$GNUM4 != x ; then
83 echo -n "Building lib/configure ... "
85 $GNUM4 lib/configure.m4 > lib/configure
86 chmod a+x lib/configure
89 echo "No GNU m4. Impossible to build lib/configure -- aborting"
94 echo 'run "./configure ; make"'