3 ACLOCAL="aclocal -I m4 -I config"
4 AUTOHEADER="autoheader"
5 AUTOMAKE="automake --add-missing --force-missing --copy --foreign"
8 # Discover what version of automake we are using.
9 automake_version=$($AUTOMAKE --version 2>/dev/null | head -n 1)
11 if test "$automake_version" != ""; then
12 echo "Using $automake_version"
14 echo "LyX requires automake >= 1.14"
18 # Discover what version of autoconf we are using.
19 autoversion=$($AUTOCONF --version 2>/dev/null | head -n 1)
21 if test "$autoversion" != ""; then
22 echo "Using $autoversion"
24 echo "LyX requires autoconf >= 2.65"
28 # Delete old cache directories.
29 # automake will stop if their contents was created by an earlier version.
32 # Generate the Makefiles and configure files
33 echo "Building macros..."
34 if ( $ACLOCAL --version ) < /dev/null > /dev/null 2>&1; then
37 echo "aclocal not found -- aborting"
41 echo "Building config header template..."
42 if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then
45 echo "autoheader not found -- aborting"
49 echo "Building Makefile templates..."
50 if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then
53 echo "automake not found -- aborting"
57 echo "Building configure..."
58 if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then
61 echo "autoconf not found -- aborting"
65 echo "Building po/POTFILES.in..."
66 if ( make -s -f po/Rules-lyx srcdir=po top_srcdir=. po/POTFILES.in ); then
69 echo "Building po/POTFILES.in failed -- aborting"
74 echo 'run "./configure && make"'