From f81fd1ccc3228bf06455ad4c3265b71ca17ae407 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 29 Jun 2012 13:46:23 -0700 Subject: Try and fix the autoconf build on Solaris/Nexenta/etc. Their AC_TRY_RUN doesn't include any current CPPFLAGS. Make the set[res]uid checks independent of this. Needs a small change to the waf build in order to code with the change. Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Jun 30 00:32:36 CEST 2012 on sn-devel-104 --- source3/configure.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index 483072f0f5..a9640d87e3 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2773,7 +2773,7 @@ AC_CACHE_CHECK([for Linux thread-specific credentials],samba_cv_USE_LINUX_THREAD AC_TRY_RUN([ #define AUTOCONF_TEST 1 #define USE_LINUX_THREAD_CREDENTIALS 1 -#include "confdefs.h" +#include "${srcdir-.}/../lib/util/setid.c" #include "${srcdir-.}/lib/util_sec.c"], samba_cv_USE_LINUX_THREAD_CREDENTIALS=yes,samba_cv_USE_LINUX_THREAD_CREDENTIALS=no,samba_cv_USE_LINUX_THREAD_CREDENTIALS=cross)]) if test x"$samba_cv_USE_LINUX_THREAD_CREDENTIALS" = x"yes"; then @@ -2789,6 +2789,7 @@ AC_TRY_RUN([ #define AUTOCONF_TEST 1 #define USE_SETREUID 1 #include "confdefs.h" +#include "${srcdir-.}/../lib/util/setid.c" #include "${srcdir-.}/lib/util_sec.c"], samba_cv_USE_SETREUID=yes,samba_cv_USE_SETREUID=no,samba_cv_USE_SETREUID=cross)]) if test x"$samba_cv_USE_SETREUID" = x"yes"; then @@ -2804,6 +2805,7 @@ AC_TRY_RUN([ #define AUTOCONF_TEST 1 #define USE_SETRESUID 1 #include "confdefs.h" +#include "${srcdir-.}/../lib/util/setid.c" #include "${srcdir-.}/lib/util_sec.c"], samba_cv_USE_SETRESUID=yes,samba_cv_USE_SETRESUID=no,samba_cv_USE_SETRESUID=cross)]) if test x"$samba_cv_USE_SETRESUID" = x"yes"; then @@ -2817,6 +2819,7 @@ AC_TRY_RUN([ #define AUTOCONF_TEST 1 #define USE_SETEUID 1 #include "confdefs.h" +#include "${srcdir-.}/../lib/util/setid.c" #include "${srcdir-.}/lib/util_sec.c"], samba_cv_USE_SETEUID=yes,samba_cv_USE_SETEUID=no,samba_cv_USE_SETEUID=cross)]) if test x"$samba_cv_USE_SETEUID" = x"yes"; then @@ -2830,6 +2833,7 @@ AC_TRY_RUN([ #define AUTOCONF_TEST 1 #define USE_SETUIDX 1 #include "confdefs.h" +#include "${srcdir-.}/../lib/util/setid.c" #include "${srcdir-.}/lib/util_sec.c"], samba_cv_USE_SETUIDX=yes,samba_cv_USE_SETUIDX=no,samba_cv_USE_SETUIDX=cross)]) if test x"$samba_cv_USE_SETUIDX" = x"yes"; then -- cgit