3 # Discover what version of autoconf we are using.
4 autoversion=`autoconf --version | head -n 1`
9 cp config/configure.in .
11 cp config/relyx_configure.in lib/reLyX/configure.in
12 rm -f lib/reLyX/configure.ac
17 cp config/configure.ac .
18 rm -f lib/reLyX/configure.in
19 cp config/relyx_configure.ac lib/reLyX/configure.ac
22 echo "You are running autoconf $autoversion, that"
23 echo "version is not supported by LyX."
24 echo "LyX only supports autoconf 2.13 and 2.53."
31 AUTOHEADER="autoheader"
32 AUTOMAKE="automake -a -c --foreign"
36 ACINCLUDE_FILES="lyxinclude.m4 libtool.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 xforms.m4 qt.m4 gtk--.m4 gnome--.m4 gnome.m4 pspell.m4 pkg.m4"
37 SIGCPP_ACINCLUDE_FILES="libtool.m4"
39 echo -n "Locating GNU m4... "
40 for prog in $M4 gm4 gnum4 m4 ; do
41 case `$prog --version 2>&1` in
49 if test x$ok != xyes ; then
53 # Generate acinclude.m4
54 echo -n "Generate acinclude.m4... "
56 (cd config ; cat ${ACINCLUDE_FILES} >../acinclude.m4)
59 # Generate the Makefiles and configure files
60 if ( $ACLOCAL --version ) </dev/null > /dev/null 2>&1; then
61 echo "Building macros..."
62 for dir in . lib/reLyX ; do
64 ( cd $dir ; $ACLOCAL )
68 echo "aclocal not found -- aborting"
72 if ( $AUTOHEADER --version ) </dev/null > /dev/null 2>&1; then
73 echo "Building config header template..."
76 ( cd $dir ; $AUTOHEADER )
80 echo "autoheader not found -- aborting"
84 if ( $AUTOMAKE --version ) </dev/null > /dev/null 2>&1; then
85 echo "Building Makefile templates..."
86 for dir in . lib/reLyX ; do
88 ( cd $dir ; $AUTOMAKE )
92 echo "automake not found -- aborting"
96 if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
97 echo "Building configure..."
98 for dir in . lib/reLyX ; do
100 ( cd $dir ; $AUTOCONF )
104 echo "autoconf not found -- aborting"
108 # Autogenerate lib/configure.m4.
109 if test x$GNUM4 != x ; then
110 echo -n "Building lib/configure ... "
112 $GNUM4 lib/configure.m4 > lib/configure
113 chmod a+x lib/configure
116 echo "No GNU m4. Impossible to build lib/configure -- aborting"
121 echo 'run "./configure ; make"'