The configure script detects the location of the lopsubgen executable,
but we never use this information and rely on the shell to find the
executable in $PATH when the recipes in m4/lls/makefile are run.
This should not matter much, but it is inconsistent to how we deal
with m4. Moreover, using the LOPSUBGEN autoconf variable in the
recipes allows the user to override the path at build time.
PACKAGE_VERSION := @PACKAGE_VERSION@
M4 := @M4@
PACKAGE_VERSION := @PACKAGE_VERSION@
M4 := @M4@
+LOPSUBGEN := @LOPSUBGEN@
executables := @executables@
executables := @executables@
UNSTASH_FLAGS
######################################################################## lopsub
HAVE_LOPSUB=yes
UNSTASH_FLAGS
######################################################################## lopsub
HAVE_LOPSUB=yes
-AC_PATH_PROG([lopsubgen], [lopsubgen])
-test -z "$lopsubgen" && HAVE_LOPSUB=no
+AC_PATH_PROG([LOPSUBGEN], [lopsubgen])
+test -z "$LOPSUBGEN" && HAVE_LOPSUB=no
STASH_FLAGS
LIB_ARG_WITH([lopsub], [-llopsub])
AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
STASH_FLAGS
LIB_ARG_WITH([lopsub], [-llopsub])
AC_CHECK_HEADER(lopsub.h, [], [HAVE_LOPSUB=no])
$(lls_suite_dir)/%.lsg.c: $(lls_suite_dir)/%.suite
@[ -z "$(Q)" ] || echo 'LSGC $<'
$(lls_suite_dir)/%.lsg.c: $(lls_suite_dir)/%.suite
@[ -z "$(Q)" ] || echo 'LSGC $<'
- $(Q) lopsubgen --gen-c --output-dir $(lls_suite_dir) < $<
+ $(Q) $(LOPSUBGEN) --gen-c --output-dir $(lls_suite_dir) < $<
$(lls_suite_dir)/%.lsg.h: $(lls_suite_dir)/%.suite
@[ -z "$(Q)" ] || echo 'LSGH $<'
$(lls_suite_dir)/%.lsg.h: $(lls_suite_dir)/%.suite
@[ -z "$(Q)" ] || echo 'LSGH $<'
- $(Q) lopsubgen --gen-header --output-dir $(lls_suite_dir) < $<
+ $(Q) $(LOPSUBGEN) --gen-header --output-dir $(lls_suite_dir) < $<
$(lls_suite_dir)/%.lsg.man: $(lls_suite_dir)/%.suite
@[ -z "$(Q)" ] || echo 'LSGM $<'
$(lls_suite_dir)/%.lsg.man: $(lls_suite_dir)/%.suite
@[ -z "$(Q)" ] || echo 'LSGM $<'
- $(Q) lopsubgen --gen-man --output-dir $(lls_suite_dir) < $<
+ $(Q) $(LOPSUBGEN) --gen-man --output-dir $(lls_suite_dir) < $<
$(object_dir)/%.o: $(lls_suite_dir)/%.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
$(object_dir)/%.o: $(lls_suite_dir)/%.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'