From 48130eef6c5c64a07094b9e8582ba358b2048f24 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 25 Jan 2013 10:57:54 -0500 Subject: TOOLS: Compile on old platforms such as RHEL5 Provides compatible declarations for modern file management functions such as futimens or opening with the O_CLOEXEC flag --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 471c7ac68..af976151a 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,10 @@ AC_CHECK_FUNCS([ pthread_mutexattr_setrobust \ pthread_mutex_consistent_np ]) LIBS=$SAVE_LIBS +# Check for presence of modern functions for setting file timestamps +AC_CHECK_FUNCS([ utimensat \ + futimens ]) + #Check for PAM headers AC_CHECK_HEADERS([security/pam_appl.h security/pam_misc.h security/pam_modules.h], [AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])], -- cgit