]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - configure.ac
configure.ac: bump to version 0.1.0.
[apply-default-acl.git] / configure.ac
index dd028ff0a34ba6a95c8dcbee4850947eb4859915..2e48d4bfa4fe5f0c909e269f5dbd0ddbb7419d2d 100644 (file)
@@ -1,8 +1,5 @@
-#                                               -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
 AC_PREREQ([2.68])
-AC_INIT([apply-default-acl], [0.0.6], [michael@orlitzky.com])
+AC_INIT([apply-default-acl], [0.1.0], [michael@orlitzky.com])
 AM_INIT_AUTOMAKE([foreign]) # don't bug me a bout README, NEWS, etc.
 AC_CONFIG_SRCDIR([src/apply-default-acl.c])
 AC_CONFIG_FILES([Makefile src/Makefile])
@@ -21,6 +18,15 @@ AC_TYPE_MODE_T
 AC_CHECK_HEADERS([ fcntl.h ftw.h getopt.h libgen.h limits.h sys/acl.h ])
 AC_CHECK_HEADERS([ sys/libacl.h sys/types.h unistd.h ])
 
-LT_INIT
+# We need openat() with O_NOFOLLOW from POSIX-2008. Without them, we
+# can't operate securely; I would rather refuse to be built.
+AC_CHECK_FUNC(openat,
+              [],
+             AC_MSG_ERROR(missing required openat function))
+AC_CHECK_DECLS([O_NOFOLLOW],
+               [],
+              [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)],
+              [[#include <fcntl.h>]])
 
+LT_INIT
 AC_OUTPUT