From: Michael Orlitzky Date: Wed, 28 Feb 2018 14:56:59 +0000 (-0500) Subject: configure.ac: check for the O_DIRECTORY flag in fcntl.h. X-Git-Tag: v0.1.4~3 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=commitdiff_plain;h=027d27842bd0de293988decfd0ccde37e0f10671 configure.ac: check for the O_DIRECTORY flag in fcntl.h. --- diff --git a/configure.ac b/configure.ac index c9abffe..c2db54d 100644 --- a/configure.ac +++ b/configure.ac @@ -22,11 +22,14 @@ AC_CHECK_HEADERS([ sys/libacl.h sys/types.h unistd.h ]) # can't operate securely; I would rather refuse to be built. AC_CHECK_FUNC(openat, [], - AC_MSG_ERROR(missing required openat function)) + AC_MSG_ERROR(missing required openat function)) +AC_CHECK_DECLS([O_DIRECTORY], + [], + [AC_MSG_ERROR(missing required O_DIRECTORY flag in fcntl.h)], + [[#include ]]) AC_CHECK_DECLS([O_NOFOLLOW], [], - [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)], - [[#include ]]) - + [AC_MSG_ERROR(missing required O_NOFOLLOW flag in fcntl.h)], + [[#include ]]) LT_INIT AC_OUTPUT