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 sigc++.m4 qt2.m4 gtk--.m4 gnome--.m4 gnome.m4 pspell.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... "
28 rm -f acinclude.m4 sigc++/acinclude.m4
29 (cd config ; cat ${ACINCLUDE_FILES} >../acinclude.m4)
30 (cd config ; cat ${SIGCPP_ACINCLUDE_FILES} >../sigc++/acinclude.m4)
33 # Generate the Makefiles and configure files
34 if ( aclocal --version ) </dev/null > /dev/null 2>&1; then
35 echo "Building macros..."
36 for dir in . lib/reLyX sigc++ ; do
38 ( cd $dir ; $ACLOCAL )
42 echo "aclocal not found -- aborting"
46 if ( autoheader --version ) </dev/null > /dev/null 2>&1; then
47 echo "Building config header template..."
48 for dir in . sigc++ ; do
50 ( cd $dir ; $AUTOHEADER )
54 echo "autoheader not found -- aborting"
58 if ( $AUTOMAKE --version ) </dev/null > /dev/null 2>&1; then
59 echo "Building Makefile templates..."
60 for dir in . lib/reLyX sigc++ ; do
62 ( cd $dir ; $AUTOMAKE )
66 echo "automake not found -- aborting"
70 if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
71 echo "Building configure..."
72 for dir in . lib/reLyX sigc++ ; do
74 ( cd $dir ; $AUTOCONF )
78 echo "autoconf not found -- aborting"
82 # Autogenerate lib/configure.m4.
83 if test x$GNUM4 != x ; then
84 echo -n "Building lib/configure ... "
86 $GNUM4 lib/configure.m4 > lib/configure
87 chmod a+x lib/configure
90 echo "No GNU m4. Impossible to build lib/configure -- aborting"
95 echo 'run "./configure ; make"'