📄 configure.in
字号:
if ((cap = cap_get_proc()) == NULL) exit(1); cap->cap_effective |= CAP_NETWORK_MGT; cap->cap_inheritable |= CAP_NETWORK_MGT; cap_set_proc(cap); exit(0);}],samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes,samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no,samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross)])if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then AC_DEFINE(HAVE_IRIX_SPECIFIC_CAPABILITIES, 1, [Define to support IRIX specific capabilities])fi## Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h# This is *really* broken but some systems (DEC OSF1) do this.... JRA.#AC_CACHE_CHECK([for int16 typedef included by rpc/rpc.h],samba_cv_HAVE_INT16_FROM_RPC_RPC_H,[AC_TRY_COMPILE([#include <sys/types.h>#if defined(HAVE_RPC_RPC_H)#include <rpc/rpc.h>#endif],[int16 testvar;],samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes,samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no)])if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then AC_DEFINE(HAVE_INT16_FROM_RPC_RPC_H, 1, [Define if rpc/rpc.h defines int16])fiAC_CACHE_CHECK([for uint16 typedef included by rpc/rpc.h],samba_cv_HAVE_UINT16_FROM_RPC_RPC_H,[AC_TRY_COMPILE([#include <sys/types.h>#if defined(HAVE_RPC_RPC_H)#include <rpc/rpc.h>#endif],[uint16 testvar;],samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes,samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no)])if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then AC_DEFINE(HAVE_UINT16_FROM_RPC_RPC_H, 1, [Define if rpc/rpc.h defines uint16])fiAC_CACHE_CHECK([for int32 typedef included by rpc/rpc.h],samba_cv_HAVE_INT32_FROM_RPC_RPC_H,[AC_TRY_COMPILE([#include <sys/types.h>#if defined(HAVE_RPC_RPC_H)#include <rpc/rpc.h>#endif],[int32 testvar;],samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes,samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no)])if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then AC_DEFINE(HAVE_INT32_FROM_RPC_RPC_H, 1, [Define if rpc/rpc.h defines int32])fiAC_CACHE_CHECK([for uint32 typedef included by rpc/rpc.h],samba_cv_HAVE_UINT32_FROM_RPC_RPC_H,[AC_TRY_COMPILE([#include <sys/types.h>#if defined(HAVE_RPC_RPC_H)#include <rpc/rpc.h>#endif],[uint32 testvar;],samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes,samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no)])if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then AC_DEFINE(HAVE_UINT32_FROM_RPC_RPC_H, 1, [Define if rpc/rpc.h defines uint32])fidnldnl Some systems (SCO) have a problem includingdnl <prot.h> and <rpc/rpc.h> due to AUTH_ERROR being defineddnl as a #define in <prot.h> and as part of an enumdnl in <rpc/rpc.h>.dnlAC_CACHE_CHECK([for conflicting AUTH_ERROR define in rpc/rpc.h],samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT,[AC_TRY_COMPILE([#include <sys/types.h>#ifdef HAVE_SYS_SECURITY_H#include <sys/security.h>#include <prot.h>#endif /* HAVE_SYS_SECURITY_H */#if defined(HAVE_RPC_RPC_H)#include <rpc/rpc.h>#endif],[int testvar;],samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no,samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes)])if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then AC_DEFINE(HAVE_RPC_AUTH_ERROR_CONFLICT, 1, [Define if rpc/rpc.h defines AUTH_ERROR])fiAC_MSG_CHECKING([for test routines])AC_TRY_RUN([#include "${srcdir-.}/tests/trivial.c"], AC_MSG_RESULT(yes), AC_MSG_ERROR([cant find test code. Aborting config]), AC_MSG_WARN([cannot run when cross-compiling]))AC_CACHE_CHECK([for broken getgroups],samba_cv_HAVE_BROKEN_GETGROUPS,[AC_TRY_RUN([#include "${srcdir-.}/tests/getgroups.c"], samba_cv_HAVE_BROKEN_GETGROUPS=yes,samba_cv_HAVE_BROKEN_GETGROUPS=no,samba_cv_HAVE_BROKEN_GETGROUPS=cross)])if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then AC_DEFINE(HAVE_BROKEN_GETGROUPS, 1, [Define if getgroups() is broken])finetmask=no;AC_CACHE_CHECK([for netmask ifconf],samba_cv_HAVE_NETMASK_IFCONF,[AC_TRY_RUN([#define HAVE_NETMASK_IFCONF 1#define AUTOCONF 1#include "confdefs.h"#include "${srcdir-.}/lib/netmask.c"], samba_cv_HAVE_NETMASK_IFCONF=yes,samba_cv_HAVE_NETMASK_IFCONF=no,samba_cv_HAVE_NETMASK_IFCONF=cross)])if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then netmask=yes;AC_DEFINE(HAVE_NETMASK_IFCONF, 1, [Define to use IFCONF style netmask])fiif test $netmask = no; thenAC_CACHE_CHECK([for netmask ifreq],samba_cv_HAVE_NETMASK_IFREQ,[AC_TRY_RUN([#define HAVE_NETMASK_IFREQ 1#define AUTOCONF 1#include "confdefs.h"#include "${srcdir-.}/lib/netmask.c"], samba_cv_HAVE_NETMASK_IFREQ=yes,samba_cv_HAVE_NETMASK_IFREQ=no,samba_cv_HAVE_NETMASK_IFREQ=cross)])if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then netmask=yes;AC_DEFINE(HAVE_NETMASK_IFREQ, 1, [Define to use IFREQ style netmask])fifiif test $netmask = no; thenAC_CACHE_CHECK([for netmask AIX],samba_cv_HAVE_NETMASK_AIX,[AC_TRY_RUN([#define HAVE_NETMASK_AIX 1#define AUTOCONF 1#include "confdefs.h"#include "${srcdir-.}/lib/netmask.c"], samba_cv_HAVE_NETMASK_AIX=yes,samba_cv_HAVE_NETMASK_AIX=no,samba_cv_HAVE_NETMASK_AIX=cross)])if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then netmask=yes;AC_DEFINE(HAVE_NETMASK_AIX, 1, [Define to use AIX style netmask])fifiAC_CACHE_CHECK([for broken nisplus include files],samba_cv_BROKEN_NISPLUS_INCLUDE_FILES,[AC_TRY_COMPILE([#include <sys/acl.h>#if defined(HAVE_RPCSVC_NIS_H)#include <rpcsvc/nis.h>#endif],[return 0;],samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no,samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes)])if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then AC_DEFINE(BROKEN_NISPLUS_INCLUDE_FILES, 1, [Define if sys/acl.h and rpcsvc/nis.h cannot be included together])fi################################################## check for a LDAP password databaseAC_MSG_CHECKING([whether to use LDAP password database])AC_ARG_WITH(ldap,[ --with-ldap Include LDAP support --without-ldap Don't include LDAP support (default)],[ case "$withval" in yes) AC_MSG_RESULT(yes) AC_DEFINE(WITH_LDAP, 1, [Define to enable LDAP support]) ;; *) AC_MSG_RESULT(no) ;; esac ], AC_MSG_RESULT(no))################################################## check for a NISPLUS password databaseAC_MSG_CHECKING([whether to use NISPLUS password database])AC_ARG_WITH(nisplus,[ --with-nisplus Include NISPLUS password database support --without-nisplus Don't include NISPLUS password database support (default)],[ case "$withval" in yes) AC_MSG_RESULT(yes) AC_DEFINE(WITH_NISPLUS, 1, [Define to enable NIS+ support]) ;; *) AC_MSG_RESULT(no) ;; esac ], AC_MSG_RESULT(no))################################################## check for a NISPLUS_HOME support AC_MSG_CHECKING([whether to use NISPLUS_HOME])AC_ARG_WITH(nisplus-home,[ --with-nisplus-home Include NISPLUS_HOME support --without-nisplus-home Don't include NISPLUS_HOME support (default)],[ case "$withval" in yes) AC_MSG_RESULT(yes) AC_DEFINE(WITH_NISPLUS_HOME, 1, [Define to support NISPLUS_HOME variable]) ;; *) AC_MSG_RESULT(no) ;; esac ], AC_MSG_RESULT(no))################################################## check for the secure socket layerAC_MSG_CHECKING([whether to use SSL])AC_ARG_WITH(ssl,[ --with-ssl Include SSL support --without-ssl Don't include SSL support (default) --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)],[ case "$withval" in yes) AC_MSG_RESULT(yes) AC_DEFINE(WITH_SSL, 1, [Define to enable SSL support]) withval="/usr/local/ssl" # default if test "${with_sslinc+set}" = set; then withval="$with_sslinc" case "$withval" in yes|no) AC_MSG_WARN([--with-sslinc called without argument - will use default]) CFLAGS="-I/usr/local/ssl/include $CFLAGS" LIBS="-lssl -lcrypto $LIBS" LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS" ;; * ) CFLAGS="-I${withval}/include $CFLAGS" LIBS="-lssl -l crypto $LIBS" LDFLAGS="-L${withval}/lib $LDFLAGS" ;; esac else CFLAGS="-I/usr/local/ssl/include $CFLAGS" LIBS="-lssl -lcrypto $LIBS" LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS" fi if test ! -d ${withval}; then AC_MSG_ERROR([called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config]) fi CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own ;; *) AC_MSG_RESULT(no) ;; esac ], AC_MSG_RESULT(no))################################################## set configuration directory locationconfigdir="\$(LIBDIR)"AC_ARG_WITH(configdir,[ --with-configdir=DIR Where to put configuration files (\$libdir)],[ case "$withval" in yes|no) # # Just in case anybody does it # AC_MSG_WARN([--with-configdir called without argument - will use default]) ;; * ) configdir="$withval" ;; esac])################################################## set codepage directory locationcodepagedir="\$(LIBDIR)/codepages"AC_ARG_WITH(codepagedir,[ --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)],[ case "$withval" in yes|no) # # Just in case anybody does it # AC_MSG_WARN([--with-codepagedir called without argument - will use default]) ;; * ) codepagedir="$withval" ;; esac])AC_MSG_CHECKING([configure summary])AC_TRY_RUN([#include "${srcdir-.}/tests/summary.c"], AC_MSG_RESULT(OK);, AC_MSG_RESULT(failure) AC_MSG_ERROR([Aborting config]),:)builddir=`pwd`AC_SUBST(builddir)AC_SUBST(configdir)AC_SUBST(codepagedir)AC_OUTPUT([include/stamp-h Makefile])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -