diff options
author | Tim Rice <tim@multitalents.net> | 2002-02-26 22:05:11 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2002-02-26 22:05:11 -0800 |
commit | 7d2d1f1e67bd021110c9c62c0ffb7a35c54478fc (patch) | |
tree | ae2c362ccb380cc304f4bd647c74312b5156234d /configure.ac | |
parent | 88c0cd8596148cc7fd6eb5aeaee815604fb234bd (diff) |
correction to Bug 123 fix
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 1f537868e..28da15261 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.21 2002/02/26 16:40:49 tim Exp $ | 1 | # $Id: configure.ac,v 1.22 2002/02/27 06:05:12 tim Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -649,7 +649,12 @@ AC_ARG_WITH(pam, | |||
649 | PAM_MSG="yes" | 649 | PAM_MSG="yes" |
650 | 650 | ||
651 | AC_DEFINE(USE_PAM) | 651 | AC_DEFINE(USE_PAM) |
652 | AC_SUBST(LIBPAM, ["-lpam -ldl"]) | 652 | if test $ac_cv_lib_dl_dlopen = yes; then |
653 | LIBPAM="-lpam -ldl" | ||
654 | else | ||
655 | LIBPAM="-lpam" | ||
656 | fi | ||
657 | AC_SUBST(LIBPAM) | ||
653 | fi | 658 | fi |
654 | ] | 659 | ] |
655 | ) | 660 | ) |
@@ -2250,7 +2255,10 @@ fi | |||
2250 | 2255 | ||
2251 | dnl remove pam and dl because they are in $LIBPAM | 2256 | dnl remove pam and dl because they are in $LIBPAM |
2252 | if test "$PAM_MSG" = yes ; then | 2257 | if test "$PAM_MSG" = yes ; then |
2253 | LIBS=`echo $LIBS | sed 's/-lpam -ldl //'` | 2258 | LIBS=`echo $LIBS | sed 's/-lpam //'` |
2259 | fi | ||
2260 | if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | ||
2261 | LIBS=`echo $LIBS | sed 's/-ldl //'` | ||
2254 | fi | 2262 | fi |
2255 | 2263 | ||
2256 | AC_EXEEXT | 2264 | AC_EXEEXT |