[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Diff for /src/usr.bin/sudo/Attic/configure.in between version 1.36 and 1.37

version 1.36, 2008/12/09 22:20:32 version 1.37, 2009/04/11 11:48:06
Line 1 
Line 1 
 dnl  dnl
 dnl Process this file with GNU autoconf to produce a configure script.  dnl Process this file with GNU autoconf to produce a configure script.
 dnl $Sudo: configure.in,v 1.538 2008/12/09 21:13:01 millert Exp $  dnl $Sudo: configure.in,v 1.546 2009/04/10 20:59:42 millert Exp $
 dnl  dnl
 dnl Copyright (c) 1994-1996,1998-2008 Todd C. Miller <Todd.Miller@courtesan.com>  dnl Copyright (c) 1994-1996,1998-2008 Todd C. Miller <Todd.Miller@courtesan.com>
 dnl  dnl
Line 13 
Line 13 
 dnl  dnl
 dnl Variables that get substituted in the Makefile and man pages  dnl Variables that get substituted in the Makefile and man pages
 dnl  dnl
   AC_SUBST(HAVE_BSM_AUDIT)
 AC_SUBST(LIBTOOL)  AC_SUBST(LIBTOOL)
 AC_SUBST(CFLAGS)  AC_SUBST(CFLAGS)
 AC_SUBST(PROGS)  AC_SUBST(PROGS)
Line 82 
Line 83 
 AC_SUBST(ldap_conf)  AC_SUBST(ldap_conf)
 AC_SUBST(ldap_secret)  AC_SUBST(ldap_secret)
 AC_SUBST(nsswitch_conf)  AC_SUBST(nsswitch_conf)
   AC_SUBST(netsvc_conf)
 dnl  dnl
 dnl Initial values for above  dnl Initial values for above
 dnl  dnl
Line 201 
Line 203 
                 ;;                  ;;
 esac])  esac])
   
   dnl
   dnl Handle BSM auditing support.
   dnl
   AC_ARG_WITH(bsm-audit, [  --with-bsm-audit        enable BSM audit support],
   [case $with_bsm_audit in
       yes)        AC_DEFINE(HAVE_BSM_AUDIT)
                   SUDO_LIBS="${SUDO_LIBS} -lbsm"
                   SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
                   ;;
       no)         ;;
       *)          AC_MSG_ERROR(["--with-bsm-audit does not take an argument."])
                   ;;
   esac])
   
 AC_ARG_WITH(incpath, [  --with-incpath          additional places to look for include files],  AC_ARG_WITH(incpath, [  --with-incpath          additional places to look for include files],
 [case $with_incpath in  [case $with_incpath in
     yes)        AC_MSG_ERROR(["must give --with-incpath an argument."])      yes)        AC_MSG_ERROR(["must give --with-incpath an argument."])
Line 930 
Line 946 
                 ;;                  ;;
     *)          ;;      *)          ;;
 esac])  esac])
 if test ${with_nsswitch-"yes"} != "no"; then  
     SUDO_DEFINE_UNQUOTED(_PATH_NSSWITCH_CONF, "${with_nsswitch-/etc/nsswitch.conf}")  
     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}  
 else  
     nsswitch_conf='/etc/nsswitch.conf'  
 fi  
   
 AC_ARG_WITH(ldap, [  --with-ldap[[=DIR]]       enable LDAP support],  AC_ARG_WITH(ldap, [  --with-ldap[[=DIR]]       enable LDAP support],
 [case $with_ldap in  [case $with_ldap in
     no)         with_ldap="";;      no)         ;;
     *)          AC_DEFINE(HAVE_LDAP)      *)          AC_DEFINE(HAVE_LDAP)
                 AC_MSG_CHECKING(whether to use sudoers from LDAP)                  AC_MSG_CHECKING(whether to use sudoers from LDAP)
                 AC_MSG_RESULT(yes)                  AC_MSG_RESULT(yes)
Line 1166 
Line 1176 
   esac    esac
 ], AC_MSG_RESULT(no))  ], AC_MSG_RESULT(no))
   
   AC_MSG_CHECKING(whether to enable environment debugging)
   AC_ARG_ENABLE(env_debug,
   [  --enable-env-debug      Whether to enable environment debugging.],
   [ case "$enableval" in
       yes)        AC_MSG_RESULT(yes)
                   AC_DEFINE(ENV_DEBUG)
                   ;;
       no)         AC_MSG_RESULT(no)
                   ;;
       *)          AC_MSG_RESULT(no)
                   AC_MSG_WARN([Ignoring unknown argument to --enable-env-debug: $enableval])
                   ;;
     esac
   ], AC_MSG_RESULT(no))
   
 AC_ARG_WITH(selinux, [  --with-selinux          enable SELinux support],  AC_ARG_WITH(selinux, [  --with-selinux          enable SELinux support],
 [case $with_selinux in  [case $with_selinux in
     yes)        SELINUX_USAGE="[[-r role]] [[-t type]] "      yes)        SELINUX_USAGE="[[-r role]] [[-t type]] "
Line 1212 
Line 1237 
 dnl Libtool magic; enable shared libs and disable static libs  dnl Libtool magic; enable shared libs and disable static libs
 dnl  dnl
 AC_CANONICAL_HOST  AC_CANONICAL_HOST
 AC_CANONICAL_TARGET([])  
 AC_DISABLE_STATIC  AC_DISABLE_STATIC
 AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
   
Line 1334 
Line 1358 
                     AC_CHECK_FUNCS(authenticate, [AUTH_EXCL_DEF="AIX_AUTH"])                      AC_CHECK_FUNCS(authenticate, [AUTH_EXCL_DEF="AIX_AUTH"])
                 fi                  fi
   
                   # AIX analog of nsswitch.conf, enabled by default
                   AC_ARG_WITH(netsvc, [  --with-netsvc[[=PATH]]  path to netsvc.conf],
                   [case $with_netsvc in
                       no)         ;;
                       yes)        with_netsvc="/etc/netsvc.conf"
                                   ;;
                       *)          ;;
                   esac])
                   if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
                       with_netsvc="/etc/netsvc.conf"
                   fi
   
                 # AIX-specific functions                  # AIX-specific functions
                 AC_CHECK_FUNCS(getuserattr)                  AC_CHECK_FUNCS(getuserattr)
                 SUDO_OBJS="$SUDO_OBJS aix.o"                  SUDO_OBJS="$SUDO_OBJS aix.o"
Line 1762 
Line 1798 
 AC_FUNC_GETGROUPS  AC_FUNC_GETGROUPS
 AC_CHECK_FUNCS(strchr strrchr memchr memcpy memset sysconf tzset \  AC_CHECK_FUNCS(strchr strrchr memchr memcpy memset sysconf tzset \
                strftime setrlimit initgroups getgroups fstat gettimeofday \                 strftime setrlimit initgroups getgroups fstat gettimeofday \
                setlocale getaddrinfo setsid)                 setlocale getaddrinfo setsid setenv)
   AC_CHECK_FUNCS(unsetenv, SUDO_FUNC_UNSETENV_VOID)
   SUDO_FUNC_PUTENV_CONST
 if test -z "$SKIP_SETRESUID"; then  if test -z "$SKIP_SETRESUID"; then
     AC_CHECK_FUNCS(setresuid, [SKIP_SETREUID=yes])      AC_CHECK_FUNCS(setresuid, [SKIP_SETREUID=yes])
 fi  fi
Line 1858 
Line 1896 
 ])  ])
   
 dnl  dnl
   dnl nsswitch.conf and its equivalents
   dnl
   netsvc_conf='/etc/netsvc.conf'
   nsswitch_conf='/etc/nsswitch.conf'
   if test ${with_netsvc-"no"} != "no"; then
       SUDO_DEFINE_UNQUOTED(_PATH_NETSVC_CONF, "${with_netsvc-/etc/netsvc.conf}")
       netsvc_conf=${with_netsvc-/etc/netsvc.conf}
   elif test ${with_nsswitch-"yes"} != "no"; then
       SUDO_DEFINE_UNQUOTED(_PATH_NSSWITCH_CONF, "${with_nsswitch-/etc/nsswitch.conf}")
       nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
   fi
   
   dnl
 dnl Mutually exclusive auth checks come first, followed by  dnl Mutually exclusive auth checks come first, followed by
 dnl non-exclusive ones.  Note: passwd must be last of all!  dnl non-exclusive ones.  Note: passwd must be last of all!
 dnl  dnl
Line 2389 
Line 2440 
     AC_MSG_RESULT([yes])      AC_MSG_RESULT([yes])
     AC_DEFINE(HAVE_LBER_H)])      AC_DEFINE(HAVE_LBER_H)])
   
     AC_CHECK_FUNCS(ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s)      AC_CHECK_HEADERS([sasl/sasl.h] [sasl.h], [AC_CHECK_FUNCS(ldap_sasl_interactive_bind_s), [break]])
     AC_CHECK_HEADERS([sasl/sasl.h])  
     AC_CHECK_HEADERS([ldap_ssl.h] [mps/ldap_ssl.h], [break], [], [#include <ldap.h>])      AC_CHECK_HEADERS([ldap_ssl.h] [mps/ldap_ssl.h], [break], [], [#include <ldap.h>])
       AC_CHECK_FUNCS(ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np)
   
     if test X"$check_gss_krb5_ccache_name" = X"yes"; then      if test X"$check_gss_krb5_ccache_name" = X"yes"; then
         AC_CHECK_LIB(gssapi, gss_krb5_ccache_name,          AC_CHECK_LIB(gssapi, gss_krb5_ccache_name,
Line 2539 
Line 2590 
 AH_TEMPLATE(HAVE_AFS, [Define to 1 if you use AFS.])  AH_TEMPLATE(HAVE_AFS, [Define to 1 if you use AFS.])
 AH_TEMPLATE(HAVE_AIXAUTH, [Define to 1 if you use AIX general authentication.])  AH_TEMPLATE(HAVE_AIXAUTH, [Define to 1 if you use AIX general authentication.])
 AH_TEMPLATE(HAVE_BSD_AUTH_H, [Define to 1 if you use BSD authentication.])  AH_TEMPLATE(HAVE_BSD_AUTH_H, [Define to 1 if you use BSD authentication.])
   AH_TEMPLATE(HAVE_BSM_AUDIT, [Define to 1 to enable BSM auditing.])
 AH_TEMPLATE(HAVE_DCE, [Define to 1 if you use OSF DCE.])  AH_TEMPLATE(HAVE_DCE, [Define to 1 if you use OSF DCE.])
 AH_TEMPLATE(HAVE_DD_FD, [Define to 1 if your `DIR' contains dd_fd.])  AH_TEMPLATE(HAVE_DD_FD, [Define to 1 if your `DIR' contains dd_fd.])
 AH_TEMPLATE(HAVE_DIRFD, [Define to 1 if you have the `dirfd' function or macro.])  AH_TEMPLATE(HAVE_DIRFD, [Define to 1 if you have the `dirfd' function or macro.])

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37