]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
better support of "use / do not use pam"
authorThibault Godouet <yo8192@users.noreply.github.com>
Mon, 29 Oct 2001 13:21:52 +0000 (13:21 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Mon, 29 Oct 2001 13:21:52 +0000 (13:21 +0000)
configure.in

index 3c8857a5de284aaeb9d705e8b95f0a60684cddc4..cd007bd84f9bcdbe98524eeb9d483f23ae75ad00 100644 (file)
@@ -643,6 +643,7 @@ AC_ARG_WITH(pam,
 [ --with-pam=[yes|no]  Use (or not) PAM if available (default: yes).],
 [ case "$withval" in
   no)
+    usepam=0
     AC_MSG_RESULT(no)
     ;;
   yes)
@@ -656,6 +657,13 @@ AC_ARG_WITH(pam,
   AC_MSG_RESULT(yes)
   AC_CHECK_LIB(pam, pam_start)
 )
+if echo "$LIBS" | grep -e "-lpam" > /dev/null ; then
+  usepam=1
+else
+  usepam=0
+fi
+USEPAM="$usepam"
+AC_SUBST(USEPAM)
 
 
 dnl We set exec_prefix to $prefix (also done in Makefile)