From 56629ddec10889782004f418388ff1e35ecd06a8 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 10 Oct 2012 18:09:21 -0400 Subject: [PATCH] PR14245: have configury look for openat(2) syscall ... since it will be used for fd passing between staprun & stapio --- config.in | 3 +++ configure | 11 +++++++++++ configure.ac | 1 + 3 files changed, 15 insertions(+) diff --git a/config.in b/config.in index 25c4cd365..c87460a81 100644 --- a/config.in +++ b/config.in @@ -65,6 +65,9 @@ /* Define to 1 if you have the nss libraries. */ #undef HAVE_NSS +/* Define to 1 if you have the `openat' function. */ +#undef HAVE_OPENAT + /* Define to 1 if you have the `ppoll' function. */ #undef HAVE_PPOLL diff --git a/configure b/configure index d33726a86..380590df1 100755 --- a/configure +++ b/configure @@ -8864,6 +8864,17 @@ _ACEOF fi done +for ac_func in openat +do : + ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" +if test "x$ac_cv_func_openat" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_OPENAT 1 +_ACEOF + +fi +done + if test "${enable_prologues+set}" != set; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5 diff --git a/configure.ac b/configure.ac index b19075d04..ee99ea20e 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,7 @@ AC_SYS_LARGEFILE AM_GNU_GETTEXT(external) AM_GNU_GETTEXT_VERSION(0.17) AC_CHECK_FUNCS(ppoll) +AC_CHECK_FUNCS(openat) dnl Handle the prologues option. dnl -- 2.43.5