;;
esac])
+AC_ARG_WITH(opie, [ --with-opie enable OPIE support ],
+[case $with_opie in
+ yes) AC_DEFINE(HAVE_OPIE)
+ echo 'Configuring for use with NRL OPIE'
+ ;;
+ no) ;;
+ *) echo "Ignoring unknown argument to --with-opie: $with_opie"
+ ;;
+esac])
+
AC_ARG_WITH(SecurID, [ --with-SecurID enable SecurID support],
[case $with_SecurID in
yes) AC_DEFINE(HAVE_SECURID)
fi
dnl
-dnl extra Skey lib and includes
+dnl extra S/Key lib and includes
dnl
if test "$with_skey" = "yes"; then
SUDO_LIBS="${SUDO_LIBS} -lskey"
fi
fi
+dnl
+dnl extra OPIE lib and includes
+dnl
+if test "$with_opie" = "yes"; then
+ SUDO_LIBS="${SUDO_LIBS} -lopie"
+ if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
+ :
+ elif test -f /usr/local/include/opie.h; then
+ CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
+ SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
+ else
+ echo 'Unable to locate libopie.a and/or opie.h, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS and/or -I/path/to/opie.h to CPPFLAGS'
+ fi
+fi
+
dnl
dnl extra SecurID lib + includes
dnl