]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - configure.ac
configure.ac: place build artifacts in the "build-aux" directory.
[apply-default-acl.git] / configure.ac
index e4742341dc04e8cccf74f4b2addbc9ed9a63629f..6de8a998cdcbe589016ed84ad265ab0b8ab696cf 100644 (file)
@@ -1,6 +1,8 @@
 AC_PREREQ([2.68])
-AC_INIT([apply-default-acl], [0.3.1], [michael@orlitzky.com])
-AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
+AC_INIT([apply-default-acl], [0.4.2], [michael@orlitzky.com])
+# Store build artifacts in this directory to keep the house clean.
+AC_CONFIG_AUX_DIR([build-aux])
+AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz tar-ustar])
 AC_CONFIG_FILES([Makefile src/Makefile])
 AC_CONFIG_SRCDIR([src/apply-default-acl.c])
 AC_CONFIG_MACRO_DIRS([m4])
@@ -13,7 +15,7 @@ AM_PROG_AR
 AC_HEADER_DIRENT  # dirent.h
 AC_HEADER_STAT    # sys/stat.h
 AC_HEADER_STDBOOL # stdbool.h
-AC_HEADER_STDC    # stdlib.h string.h (implied: errno.h limits.h stdio.h)
+AC_HEADER_STDC    # stdlib.h string.h (implied: errno.h stdio.h)
 
 # Check for header files not covered by the predefined macros above.
 AC_HEADER_REQUIRE(acl/libacl.h)
@@ -44,5 +46,11 @@ AC_CHECK_DECLS([O_PATH],
                [[#define _GNU_SOURCE
                 #include <fcntl.h>]])
 
+# And check for the GNU/BSD extension asprintf(), which lets us avoid
+# praying to the PATH_MAX gods while constructing long paths.
+AC_CHECK_FUNC(asprintf,
+              [],
+              AC_MSG_ERROR(missing required asprintf function))
+
 LT_INIT
 AC_OUTPUT