]> granicus.if.org Git - sudo/commitdiff
added AIX authenticate() support
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 17 Feb 1998 05:37:26 +0000 (05:37 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 17 Feb 1998 05:37:26 +0000 (05:37 +0000)
configure.in

index bc51402edd7b896a1beac651df47cea1780fea8e..1dc8921cef0f6df009f51cd7403f2ab787635727 100644 (file)
@@ -145,6 +145,16 @@ AC_ARG_WITH(AFS, [  --with-AFS              enable AFS support],
                ;;
 esac])
 
+AC_ARG_WITH(authenticate, [  --with-authenticate              enable AIX general authentication support],
+[case $with_authenticate in
+    yes)       AC_DEFINE(HAVE_AUTHENTICATE)
+               echo 'Configuring for use with AIX general authentication'
+               ;;
+    no)                ;;
+    *)         echo "Ignoring unknown argument to --with-authenticate: $with_authenticate"
+               ;;
+esac])
+
 AC_ARG_WITH(DCE, [  --with-DCE              enable DCE support],
 [case $with_DCE in
     yes)       AC_DEFINE(HAVE_DCE)
@@ -741,6 +751,9 @@ dnl (gcc includes its own alloca(3) but other compilers may not)
 dnl
 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
     AC_FUNC_ALLOCA
+    if test -n "$ALLOCA"; then
+       LIBOBJS="$LIBOBJS $ALLOCA"
+    fi
 fi
 dnl
 dnl library checks
@@ -889,6 +902,13 @@ if test "$with_SecurID" = "yes"; then
     CPPFLAGS="${CPPFLAGS} -I/usr/ace"
 fi
 
+dnl
+dnl extra 'authenticate' lib (AIX only?)
+dnl
+if test "$with_authenticate" = "yes"; then
+    SUDO_LIBS="${SUDO_LIBS} -ls"
+fi
+
 dnl
 dnl Check for log file and timestamp locations
 dnl