From 06a273625bdc34275483626e6f653be24d510093 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 8 Sep 2019 18:48:49 +0200 Subject: [PATCH] build: fix distcheck * configure.ac (gl_LIBOBJS): Adjust so that the generated files are indeed the expected ones. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index a9dad57c..38d64609 100644 --- a/configure.ac +++ b/configure.ac @@ -297,4 +297,15 @@ AC_SUBST([GCC]) AC_CONFIG_FILES([Makefile po/Makefile.in doc/yacc.1]) + +# Fix LIBOBJS to give the Makefile the right file names. Otherwise +# compilation works, but with unexpected file names, so clean rules don't +# remove the actual files and distcheck fails. +AC_CONFIG_COMMANDS_PRE([ + case $am__api_version in + 1.14*|1.15*) gl_LIBOBJS=`echo "$gl_LIBOBJS" | sed -e 's, lib/, lib/lib_libbison_a-,g'`;; + *) gl_LIBOBJS=`echo "$gl_LIBOBJS" | sed -e 's, lib/, lib/libbison_a-,g'`;; + esac +]) + AC_OUTPUT