summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-02-26 22:05:11 -0800
committerTim Rice <tim@multitalents.net>2002-02-26 22:05:11 -0800
commit7d2d1f1e67bd021110c9c62c0ffb7a35c54478fc (patch)
treeae2c362ccb380cc304f4bd647c74312b5156234d /configure.ac
parent88c0cd8596148cc7fd6eb5aeaee815604fb234bd (diff)
correction to Bug 123 fix
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
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
3AC_INIT 3AC_INIT
4AC_CONFIG_SRCDIR([ssh.c]) 4AC_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
2251dnl remove pam and dl because they are in $LIBPAM 2256dnl remove pam and dl because they are in $LIBPAM
2252if test "$PAM_MSG" = yes ; then 2257if test "$PAM_MSG" = yes ; then
2253 LIBS=`echo $LIBS | sed 's/-lpam -ldl //'` 2258 LIBS=`echo $LIBS | sed 's/-lpam //'`
2259fi
2260if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
2261 LIBS=`echo $LIBS | sed 's/-ldl //'`
2254fi 2262fi
2255 2263
2256AC_EXEEXT 2264AC_EXEEXT