From d4f1b26e7b875db40c2070adf941febd6149a489 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 5 Oct 1996 03:59:53 +0000 Subject: [PATCH] added opie support --- configure.in | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 9b0781424..9173569ca 100644 --- a/configure.in +++ b/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 -- 2.40.0