-} || {
- echo "LyX requires autoconf >= 2.52"
- exit 1
-}
-
-case $autoversion in
- *' '2.5[2-9]|*' '2.60|*' '2.60a)
- EXTRA_ACINCLUDE_FILES="lyxinclude25x.m4"
- ;;
- *)
- echo "This autoconf version is not supported by LyX."
- echo "LyX only supports autoconf 2.5[2-9]-2.60[a]."
- exit 1
- ;;
-esac
-
-echo -n "Locating GNU m4... "
-GNUM4=
-for prog in $M4 gm4 gnum4 m4; do
- # continue if $prog generates error (e.g. does not exist)
- ( $prog --version ) < /dev/null > /dev/null 2>&1
- if test $? -ne 0 ; then continue; fi
-
- # /dev/null input prevents a hang of the script for some m4 compilers (e.g. on FreeBSD)
- case `$prog --version < /dev/null 2>&1` in
- *GNU*) GNUM4=$prog
- break ;;
- esac
-done
-if test x$GNUM4 = x ; then
- echo "not found."
- exit 1