added opie support
This commit is contained in:
27
configure.in
27
configure.in
@@ -95,6 +95,16 @@ AC_ARG_WITH(skey, [ --with-skey enable S/Key support ],
|
||||
;;
|
||||
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)
|
||||
@@ -807,7 +817,7 @@ if test "$with_DCE" = "yes"; then
|
||||
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"
|
||||
@@ -824,6 +834,21 @@ if test "$with_skey" = "yes"; then
|
||||
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
|
||||
|
Reference in New Issue
Block a user