From: Gerald Carter Date: Wed, 12 Oct 2005 16:52:08 +0000 (+0000) Subject: r10927: bug 1473 & 3090: quota compile fixes on Solaris X-Git-Tag: samba-4.0.0alpha6~801^2~9671 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=11d36ab3a4c2a2d93605754502148bdbbd5e5928;p=ira%2Fwip.git r10927: bug 1473 & 3090: quota compile fixes on Solaris (This used to be commit b70b888699fd02b6ac567fcef3b1d2832a0b4719) --- diff --git a/source3/configure.in b/source3/configure.in index deeab5886fe..b331387a3fc 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -3717,6 +3717,10 @@ case "$host_os" in AC_MSG_CHECKING(whether to use the lib/sysquotas_xfs.c builtin support) AC_MSG_RESULT(yes) ;; + *solaris*) + # need to set this define when using static linking (BUG 1473) + CPPFLAGS="$CPPFLAGS -DSUNOS5" + ;; *) ;; esac @@ -3896,7 +3900,7 @@ fi AC_CACHE_CHECK([whether the old quota support works],samba_cv_QUOTA_WORKS,[ SAVE_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I. -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/nsswitch" +CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I. -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/nsswitch -I${srcdir-.}/smbwrapper" AC_TRY_COMPILE([ #include "confdefs.h" #define NO_PROTO_H 1