summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-18 22:06:31 +0100
committerJim Meyering <meyering@redhat.com>2008-03-18 22:06:31 +0100
commit02ba2fb91f395e29f00201163728ad698e57eefc (patch)
treecb6bd37b42e1dbf1d33babae40717093de6b1a04 /configure.ac
parenta016e88bcdcabe947bfb9dea474df5fbe2081b65 (diff)
downloadidutils-02ba2fb91f395e29f00201163728ad698e57eefc.tar.gz
idutils-02ba2fb91f395e29f00201163728ad698e57eefc.tar.bz2
idutils-02ba2fb91f395e29f00201163728ad698e57eefc.zip
Update from coreutils.
* GNUmakefile: Likewise. * Makefile.maint: Likewise. * configure.ac: Likewise.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a4fcb35..ac1f85d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,20 @@ AC_CHECK_TYPES(ptrdiff_t)
AM_GNU_GETTEXT([external], [need-formatstring-macros])
AM_GNU_GETTEXT_VERSION([0.15])
+dnl Allow maintainer rules under GNU make even in VPATH builds. This does
+dnl not work in autoconf 2.61 or earlier, but we don't want to require
+dnl non-maintainers to use unreleased autoconf, hence the version test.
+dnl TODO remove the version check once autoconf 2.62 is released.
+dnl Meanwhile, we must use a shell variable so that we bypass automake's
+dnl attempts to remove the sole copy of GNUmakefile in a non-VPATH build
+dnl during 'make distclean'.
+dnl TODO avoid the shell variable once automake is fixed.
+GNUmakefile=GNUmakefile
+m4_if(m4_version_compare([2.61a.100],
+ m4_defn([m4_PACKAGE_VERSION])), [1], [],
+ [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
+ [GNUmakefile=$GNUmakefile])])
+
AC_CONFIG_FILES([
po/Makefile.in
doc/Makefile