From: Thierry Reding Date: Tue, 7 Mar 2017 13:49:47 +0000 (+0100) Subject: build: store m4 files in an `m4' subdirectory X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ce029942c08ae62da49c0195c66df5fd59fda678;p=qemu-gpiodev%2Flibgpiod.git build: store m4 files in an `m4' subdirectory This is similar to the AUX directory that the autotools use to put their files into, except that the `m4' directory will contain autoconf macro files. Signed-off-by: Thierry Reding Signed-off-by: Bartosz Golaszewski --- diff --git a/Makefile.am b/Makefile.am index 159eb3c..07ced30 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,7 @@ # as published by the Free Software Foundation. # +ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = foreign SUBDIRS = include src diff --git a/configure.ac b/configure.ac index 8117e45..375adb7 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6 +17,7 @@ AC_DEFINE_UNQUOTED([GPIOD_VERSION_STR], AC_SUBST(VERSION_STR, [$PACKAGE_VERSION$EXTRA_VERSION]) AC_CONFIG_AUX_DIR([autostuff]) +AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE([foreign subdir-objects]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])