version 1.44, 2010/04/13 23:22:01 |
version 1.45, 2010/06/02 19:30:10 |
|
|
dnl |
dnl |
dnl Copyright (c) 1994-1996,1998-2010 Todd C. Miller <Todd.Miller@courtesan.com> |
dnl Copyright (c) 1994-1996,1998-2010 Todd C. Miller <Todd.Miller@courtesan.com> |
dnl |
dnl |
AC_INIT([sudo], [1.7.2p6], [http://www.sudo.ws/bugs/], [sudo]) |
AC_INIT([sudo], [1.7.2p7], [http://www.sudo.ws/bugs/], [sudo]) |
AC_CONFIG_HEADER(config.h pathnames.h) |
AC_CONFIG_HEADER(config.h pathnames.h) |
dnl |
dnl |
dnl This won't work before AC_INIT |
dnl This won't work before AC_INIT |
|
|
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(HAVE_BSM_AUDIT) |
|
AC_SUBST(SHELL) |
AC_SUBST(LIBTOOL) |
AC_SUBST(LIBTOOL) |
AC_SUBST(CFLAGS) |
AC_SUBST(CFLAGS) |
AC_SUBST(PROGS) |
AC_SUBST(PROGS) |
|
|
yes) with_libvas=libvas.so |
yes) with_libvas=libvas.so |
;; |
;; |
no) ;; |
no) ;; |
*) AC_DEFINE_UNQUOTED([LIBVAS_SO], ["$with_with_libvas"], [The name of libvas.so]) |
*) AC_DEFINE_UNQUOTED([LIBVAS_SO], ["$with_libvas"], [The name of libvas.so]) |
;; |
;; |
esac |
esac |
if test X"$with_libvas" != X"no"; then |
if test X"$with_libvas" != X"no"; then |
|
|
[Path to look for libvas in [default=/opt/quest/lib]])], |
[Path to look for libvas in [default=/opt/quest/lib]])], |
[LIBVAS_RPATH=$withval], |
[LIBVAS_RPATH=$withval], |
[LIBVAS_RPATH=/opt/quest/lib]) |
[LIBVAS_RPATH=/opt/quest/lib]) |
|
dnl |
|
dnl Some platforms require libdl for dlopen() |
|
dnl |
|
AC_CHECK_LIB([dl], [main]) |
fi |
fi |
]) |
]) |
|
|
|
|
dnl |
dnl |
if test ${with_pam-"no"} != "no"; then |
if test ${with_pam-"no"} != "no"; then |
dnl |
dnl |
dnl Linux may need this |
dnl Some platforms need libdl for dlopen |
dnl |
dnl |
AC_CHECK_LIB([dl], [main], [SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"], [SUDO_LIBS="${SUDO_LIBS} -lpam"]) |
case "$LIBS" in |
ac_cv_lib_dl=ac_cv_lib_dl_main |
*-ldl*) SUDO_LIBS="${SUDO_LIBS} -lpam" |
|
;; |
|
*) AC_CHECK_LIB([dl], [main], [SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"], [SUDO_LIBS="${SUDO_LIBS} -lpam"]) |
|
ac_cv_lib_dl=ac_cv_lib_dl_main |
|
;; |
|
esac |
|
|
dnl |
dnl |
dnl Some PAM implementations (MacOS X for example) put the PAM headers |
dnl Some PAM implementations (MacOS X for example) put the PAM headers |
|
|
if test -n "$blibpath"; then |
if test -n "$blibpath"; then |
blibpath_add="${blibpath_add}:$LIBVAS_RPATH" |
blibpath_add="${blibpath_add}:$LIBVAS_RPATH" |
else |
else |
LDFLAGS="$LDFLAGS -R$LIBVAS_RPATH" |
case "$host" in |
|
*-*-hpux*) LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH" |
|
;; |
|
*) LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH" |
|
;; |
|
esac |
fi |
fi |
fi |
fi |
|
|
|
|
AH_TEMPLATE(CSOPS_INSULTS, [Define to 1 if you want insults culled from the twisted minds of CSOps.]) |
AH_TEMPLATE(CSOPS_INSULTS, [Define to 1 if you want insults culled from the twisted minds of CSOps.]) |
AH_TEMPLATE(DONT_LEAK_PATH_INFO, [Define to 1 if you want sudo to display "command not allowed" instead of "command not found" when a command cannot be found.]) |
AH_TEMPLATE(DONT_LEAK_PATH_INFO, [Define to 1 if you want sudo to display "command not allowed" instead of "command not found" when a command cannot be found.]) |
AH_TEMPLATE(ENV_EDITOR, [Define to 1 if you want visudo to honor the EDITOR and VISUAL env variables.]) |
AH_TEMPLATE(ENV_EDITOR, [Define to 1 if you want visudo to honor the EDITOR and VISUAL env variables.]) |
|
AH_TEMPLATE(ENV_DEBUG, [Whether to enable environment debugging.]) |
AH_TEMPLATE(FQDN, [Define to 1 if you want to require fully qualified hosts in sudoers.]) |
AH_TEMPLATE(FQDN, [Define to 1 if you want to require fully qualified hosts in sudoers.]) |
AH_TEMPLATE(GOONS_INSULTS, [Define to 1 if you want insults from the "Goon Show".]) |
AH_TEMPLATE(GOONS_INSULTS, [Define to 1 if you want insults from the "Goon Show".]) |
AH_TEMPLATE(HAL_INSULTS, [Define to 1 if you want 2001-like insults.]) |
AH_TEMPLATE(HAL_INSULTS, [Define to 1 if you want 2001-like insults.]) |