From: Michal Marek Date: Fri, 4 Apr 2014 09:30:07 +0000 (+0200) Subject: testsuite: Warn if sysconfdir is not /etc X-Git-Tag: v17~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9324bb52f30cb6d0ff2828e1a63056d9c78960a1;p=thirdparty%2Fkmod.git testsuite: Warn if sysconfdir is not /etc --- diff --git a/Makefile.am b/Makefile.am index e65fdfb0..199588c8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -213,7 +213,14 @@ TESTSUITE_OVERRIDE_LIBS = testsuite/uname.la testsuite/path.la \ TESTSUITE_OVERRIDE_LIBS_LDFLAGS = avoid-version -module -shared -export-dynamic \ -rpath /nowhere -ldl -check-am: rootfs +check-sysconfdir: + $(AM_V_at)if test "$(sysconfdir)" != "/etc" -a "$(sysconfdir)" != "/etc/"; then \ + echo "warning: Some tests will fail without --sysconfdir=/etc" >&2; \ + fi +.PHONY: check-sysconfdir + +check-am: rootfs check-sysconfdir + check_LTLIBRARIES = $(TESTSUITE_OVERRIDE_LIBS)