]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Run lopsubgen with absolute path.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 8 Jul 2017 16:53:11 +0000 (18:53 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 15 Jul 2017 16:28:44 +0000 (18:28 +0200)
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.

Makefile.in
configure.ac
m4/lls/makefile

index b3e3be5cc82deb414f85404af830759ccd0e0963..556a926c235fac68714c877c7fd9bc6f9838d927 100644 (file)
@@ -9,6 +9,7 @@ PACKAGE_TARNAME := @PACKAGE_TARNAME@
 PACKAGE_VERSION := @PACKAGE_VERSION@
 
 M4 := @M4@
+LOPSUBGEN := @LOPSUBGEN@
 
 executables := @executables@
 
index 6d56e6526e13d9f3f9aa47c0306d9b271136c872..0cc0df57fbe0beebb95997891cff39f3fd6d7639 100644 (file)
@@ -69,8 +69,8 @@ LIB_SUBST_FLAGS(osl)
 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])
index cf3965e6fb09bcaea4015618e8ffe7346738473f..d1cfab5da59c6ac7a6d99ffb2add7f807073f6cd 100644 (file)
@@ -15,15 +15,15 @@ $(lls_suite_dir)/%.suite: $(lls_m4_dir)/%.suite.m4 | $(lls_suite_dir)
 
 $(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 $<'
-       $(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 $<'
-       $(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 $<'