diff options
-rw-r--r-- | argp-standalone/configure.ac | 2 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/argp-standalone/configure.ac b/argp-standalone/configure.ac index fe54d5ac991..65ebc451815 100644 --- a/argp-standalone/configure.ac +++ b/argp-standalone/configure.ac @@ -10,6 +10,8 @@ AC_CONFIG_AUX_DIR([.]) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)]) + # GNU libc defaults to supplying the ISO C library functions only. The # _GNU_SOURCE define enables these extensions, in particular we want # errno.h to declare program_invocation_name. Enable it on all diff --git a/configure.ac b/configure.ac index 6d343a497a2..1230dc0ede0 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,10 @@ AM_INIT_AUTOMAKE m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)]) +if make --help 2>&1 | grep -q no-print-directory; then + AM_MAKEFLAGS="--no-print-directory"; +fi + AM_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile @@ -476,6 +480,7 @@ AC_SUBST(GF_LDADD) AC_SUBST(GF_FUSE_LDADD) AC_SUBST(GF_FUSE_CFLAGS) AC_SUBST(RLLIBS) +AC_SUBST(AM_MAKEFLAGS) CONTRIBDIR='$(top_srcdir)/contrib' AC_SUBST(CONTRIBDIR) |