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/wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/wscript') diff --git a/source3/wscript b/source3/wscript index 449bf20e05..cc05095c25 100755 --- a/source3/wscript +++ b/source3/wscript @@ -733,6 +733,7 @@ int i; i = PAM_RADIO_TYPE; seteuid = conf.CHECK_CODE(''' #define AUTOCONF_TEST 1 #define USE_LINUX_THREAD_CREDENTIALS 1 + #include "../lib/util/setid.c" #include "./lib/util_sec.c" ''', 'USE_LINUX_THREAD_CREDENTIALS', @@ -743,6 +744,7 @@ int i; i = PAM_RADIO_TYPE; seteuid = conf.CHECK_CODE(''' #define AUTOCONF_TEST 1 #define USE_SETREUID 1 + #include "../lib/util/setid.c" #include "./lib/util_sec.c" ''', 'USE_SETREUID', @@ -753,6 +755,7 @@ int i; i = PAM_RADIO_TYPE; seteuid = conf.CHECK_CODE(''' #define AUTOCONF_TEST 1 #define USE_SETRESUID 1 + #include "../lib/util/setid.c" #include "./lib/util_sec.c" ''', 'USE_SETRESUID', @@ -763,6 +766,7 @@ int i; i = PAM_RADIO_TYPE; seteuid = conf.CHECK_CODE(''' #define AUTOCONF_TEST 1 #define USE_SETEUID 1 + #include "../lib/util/setid.c" #include "./lib/util_sec.c" ''', 'USE_SETEUID', @@ -773,6 +777,7 @@ int i; i = PAM_RADIO_TYPE; seteuid = conf.CHECK_CODE(''' #define AUTOCONF_TEST 1 #define USE_SETUIDX 1 + #include "../lib/util/setid.c" #include "./lib/util_sec.c" ''', 'USE_SETUIDX', -- cgit