aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-25 06:42:29 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-25 06:42:29 +0000
commit3140c08b2e098606763eece6bf53a2c48e069e05 (patch)
tree161e97aa03610ff1bd08ecf412b277bb034608dd /configure.in
parent10b84a40c3316accfa2446a386452536b37d55e9 (diff)
downloadfetchmail-3140c08b2e098606763eece6bf53a2c48e069e05.tar.gz
fetchmail-3140c08b2e098606763eece6bf53a2c48e069e05.tar.bz2
fetchmail-3140c08b2e098606763eece6bf53a2c48e069e05.zip
First pass at OPIE 2.32 support.
svn path=/trunk/; revision=1407
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in21
1 files changed, 13 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 9bdafd25..65ea20b4 100644
--- a/configure.in
+++ b/configure.in
@@ -47,8 +47,6 @@ AC_CHECK_FUNC(inet_addr,
AC_MSG_RESULT(using libc's inet_addr),
AC_CHECK_LIB(nsl,inet_addr))
-AC_CHECK_LIB(opie,opiegenerator)
-
dnl Port hack for Interactive UNIX System V/386 Release 3.2
AC_CHECK_LIB(cposix, strchr,
[EXTRADEFS="$EXTRADEFS -D_SYSV3"
@@ -156,12 +154,19 @@ AC_ARG_ENABLE(POP2,
[with_POP2=no])
test "$with_POP2" = "yes" && AC_DEFINE(POP2_ENABLE)
-### use option --enable-OPIE to compile in the OPIE support
-AC_ARG_ENABLE(OPIE,
- [ --enable-OPIE compile in OPIE protocol support (obsolete)],
- [with_OPIE=$enableval],
- [with_OPIE=no])
-test "$with_OPIE" = "yes" && AC_DEFINE(OPIE_ENABLE)
+### use option --enable-opie to compile in the OPIE support
+AC_ARG_ENABLE(opie,
+ [ --enable-opie support OTP through the OPIE library],
+ [with_opie=$enableval],
+ [with_opie=no])
+if test "$with_opie" = "yes";
+then
+ AC_CHECK_HEADER(opie,,
+ [echo 'configure: cannot find <opie.h>, which is required for OPIE support.'; exit 1])
+ AC_CHECK_LIB(opie,opiegenerator,,
+ [echo 'configure: cannot find libopie, which is required for OPIE support.'; exit 1])
+ AC_DEFINE(OPIE,1)
+fi
### use option --with-kerberos=DIR to point at a Kerberos directory
AC_ARG_WITH(kerberos,