If the lopsub package is not installed, the check for the lopsubgen
executable is the first thing that fails, so we print "lopsubgen
required" and exit without also showing the detailed information
which tells the user how to obtain the package.
Move the check down, so that the build fails with the detailed message,
and also educate the user that lopsub is also available as a Debian
package.
Reviewed-by: Andreas Metzler <ametzler@bebt.de>
REQUIRE_EXECUTABLE([m4])
REQUIRE_EXECUTABLE([flex])
REQUIRE_EXECUTABLE([bison])
REQUIRE_EXECUTABLE([m4])
REQUIRE_EXECUTABLE([flex])
REQUIRE_EXECUTABLE([bison])
-REQUIRE_EXECUTABLE([lopsubgen])
HAVE_LOPSUB=yes
AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
HAVE_LOPSUB=yes
AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
if test $HAVE_LOPSUB == no; then AC_MSG_ERROR([
The lopsub library is required to build this software, but
the above checks indicate it is not installed on your system.
if test $HAVE_LOPSUB == no; then AC_MSG_ERROR([
The lopsub library is required to build this software, but
the above checks indicate it is not installed on your system.
- Run the following command to download a copy.
+
+ On Debian/Ubuntu systems you mny install the liblopsub-dev package.
+ Alternatively, run the following command to download a copy.
git clone git://git.tuebingen.mpg.de/lopsub.git
Install the library, then run this configure script again.
git clone git://git.tuebingen.mpg.de/lopsub.git
Install the library, then run this configure script again.
export LDFLAGS=-L\$pfx/lib
])
fi
export LDFLAGS=-L\$pfx/lib
])
fi
+REQUIRE_EXECUTABLE([lopsubgen])