The configure script checks for the lopsubgen executable, the lopsub.h
header file and the liblopsub.a library. If the executable is not
found, we print a short error while a long error message with download
instructions is shown if the header file or the library is missing.
In the common failure case none of the three files is installed,
in which case we print the short message because the check for the
executable comes first. This is unfortunate.
This commit moves the check for the executable to the lopsub section
of configure.ac and prints the long error message if any of the three
files is missing.
test -z "$M4" && AC_MSG_ERROR(
[The m4 macro processor is required to build this package])
test -z "$M4" && AC_MSG_ERROR(
[The m4 macro processor is required to build this package])
-AC_PATH_PROG([lopsubgen], [lopsubgen])
-test -z "$lopsubgen" && AC_MSG_ERROR(
- [lopsubgen is required to build this package])
-
LIB_SUBST_FLAGS(osl)
UNSTASH_FLAGS
######################################################################## lopsub
LIB_SUBST_FLAGS(osl)
UNSTASH_FLAGS
######################################################################## lopsub
+HAVE_LOPSUB=yes
+AC_PATH_PROG([lopsubgen], [lopsubgen])
+test -z "$lopsubgen" && HAVE_LOPSUB=no
STASH_FLAGS
LIB_ARG_WITH([lopsub], [-llopsub])
STASH_FLAGS
LIB_ARG_WITH([lopsub], [-llopsub])
AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
AC_CHECK_LIB([lopsub], [lls_merge], [], [HAVE_LOPSUB=no])
if test $HAVE_LOPSUB = no; then AC_MSG_ERROR([
AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
AC_CHECK_LIB([lopsub], [lls_merge], [], [HAVE_LOPSUB=no])
if test $HAVE_LOPSUB = no; then AC_MSG_ERROR([