]> git.tuebingen.mpg.de Git - paraslash.git/commit - m4/gengetopt/makefile
build: Fix m4 dependencies for BSD m4.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 17 Oct 2015 14:47:01 +0000 (16:47 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 24 Oct 2015 08:35:16 +0000 (10:35 +0200)
commit2a00b317cbd7a05df7ca1408b16a9faaeea35de7
tree230d7a7774145dfb3011e6e7a986a9f92b2b0cea
parent7a666220312b4e03b5274bc9dd8572adaa197c2b
build: Fix m4 dependencies for BSD m4.

FreeBSD and NetBSD ship an m4 version which does not understand
the --debug=i option which we use to generate the .m4d dependency
files. This results in empty dependency files on those systems.

This was broken since m4 dependencies were introduced two years ago
in commit e249d105 (Generate ggo dependencies automatically). The
bug went unnoticed for so long because the problematic m4 command
is the first command of a pipeline (hence the exit code is lost),
and because the command redirects stderr, so the error message is
not printed to the terminal.

This commit fixes the bug by using the  (portable) -s option of
m4 rather than --debug. The -s option outputs line synchronization
directives which include the file name, so it is equally well suited
for generating the dependency files.
m4/gengetopt/makefile