diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-08-20 19:55:02 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-08-20 19:55:02 +1000 |
commit | 4ba387337cde36071917ea1c8f0277653a6670fc (patch) | |
tree | 4d13b3d046fbbd40663f241a7e58e4b7b6a0c0b8 | |
parent | aa1517ca1e7e71070b77357626c87dcf9ee30697 (diff) |
- (dtucker) [configure.ac] Save $LIBS during PAM library tests and restore
afterward. Removes the need to mangle $LIBS later to remove -lpam and -ldl.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.ac | 14 |
2 files changed, 7 insertions, 11 deletions
@@ -1,5 +1,7 @@ | |||
1 | 20060820 | 1 | 20060820 |
2 | - (dtucker) [log.c] Move ifdef to prevent unused variable warning. | 2 | - (dtucker) [log.c] Move ifdef to prevent unused variable warning. |
3 | - (dtucker) [configure.ac] Save $LIBS during PAM library tests and restore | ||
4 | afterward. Removes the need to mangle $LIBS later to remove -lpam and -ldl. | ||
3 | 5 | ||
4 | 20060819 | 6 | 20060819 |
5 | - (djm) OpenBSD CVS Sync | 7 | - (djm) OpenBSD CVS Sync |
@@ -5277,4 +5279,4 @@ | |||
5277 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5279 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5278 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5280 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5279 | 5281 | ||
5280 | $Id: ChangeLog,v 1.4499 2006/08/20 07:55:54 dtucker Exp $ | 5282 | $Id: ChangeLog,v 1.4500 2006/08/20 09:55:02 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index 9d30bff61..17de2173a 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.351 2006/08/18 22:38:23 djm Exp $ | 1 | # $Id: configure.ac,v 1.352 2006/08/20 09:55:02 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.351 $) | 18 | AC_REVISION($Revision: 1.352 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -1691,10 +1691,12 @@ AC_ARG_WITH(pam, | |||
1691 | AC_MSG_ERROR([PAM headers not found]) | 1691 | AC_MSG_ERROR([PAM headers not found]) |
1692 | fi | 1692 | fi |
1693 | 1693 | ||
1694 | saved_LIBS="$LIBS" | ||
1694 | AC_CHECK_LIB(dl, dlopen, , ) | 1695 | AC_CHECK_LIB(dl, dlopen, , ) |
1695 | AC_CHECK_LIB(pam, pam_set_item, , AC_MSG_ERROR([*** libpam missing])) | 1696 | AC_CHECK_LIB(pam, pam_set_item, , AC_MSG_ERROR([*** libpam missing])) |
1696 | AC_CHECK_FUNCS(pam_getenvlist) | 1697 | AC_CHECK_FUNCS(pam_getenvlist) |
1697 | AC_CHECK_FUNCS(pam_putenv) | 1698 | AC_CHECK_FUNCS(pam_putenv) |
1699 | LIBS="$saved_LIBS" | ||
1698 | 1700 | ||
1699 | PAM_MSG="yes" | 1701 | PAM_MSG="yes" |
1700 | 1702 | ||
@@ -3820,14 +3822,6 @@ if test ! -z "$blibpath" ; then | |||
3820 | AC_MSG_WARN([Please check and edit blibpath in LDFLAGS in Makefile]) | 3822 | AC_MSG_WARN([Please check and edit blibpath in LDFLAGS in Makefile]) |
3821 | fi | 3823 | fi |
3822 | 3824 | ||
3823 | dnl remove pam and dl because they are in $LIBPAM | ||
3824 | if test "$PAM_MSG" = yes ; then | ||
3825 | LIBS=`echo $LIBS | sed 's/-lpam //'` | ||
3826 | fi | ||
3827 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
3828 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
3829 | fi | ||
3830 | |||
3831 | dnl Adding -Werror to CFLAGS early prevents configure tests from running. | 3825 | dnl Adding -Werror to CFLAGS early prevents configure tests from running. |
3832 | dnl Add now. | 3826 | dnl Add now. |
3833 | CFLAGS="$CFLAGS $werror_flags" | 3827 | CFLAGS="$CFLAGS $werror_flags" |