X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=configure.ac;h=c9abffe2ddf21acb9769e734e58d80ba3bee6a3e;hp=b3afe4a71a9fab78aaec1726f631977672e72332;hb=f9e643a6aaf9d03fd6c36eb0ad953f2563a7c017;hpb=7ce092ba47607098bb57695396357b8eab90e81b diff --git a/configure.ac b/configure.ac index b3afe4a..c9abffe 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,6 @@ -# -*- 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]) -AM_INIT_AUTOMAKE([foreign]) # don't bug me a bout README, NEWS, etc. +AC_INIT([apply-default-acl], [0.1.3], [michael@orlitzky.com]) +AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz]) AC_CONFIG_SRCDIR([src/apply-default-acl.c]) AC_CONFIG_FILES([Makefile src/Makefile]) @@ -18,9 +15,18 @@ AC_HEADER_STDC # stdlib.h string.h (implied: errno.h limits.h stdio.h) AC_TYPE_MODE_T # Check for header files not covered by the predefined macros above. -AC_CHECK_HEADERS([ fcntl.h ftw.h getopt.h libgen.h sys/acl.h sys/libacl.h ]) -AC_CHECK_HEADERS([ sys/types.h unistd.h ]) +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 ]]) +LT_INIT AC_OUTPUT