diff configure.in @ 1700:1e0fa7e130d0

[gaim-migrate @ 1710] Zephyr. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 12 Apr 2001 09:21:16 +0000
parents 86c71ca7c90f
children d2357b148870
line wrap: on
line diff
--- a/configure.in	Thu Apr 12 01:03:56 2001 +0000
+++ b/configure.in	Thu Apr 12 09:21:16 2001 +0000
@@ -53,6 +53,7 @@
 AC_ARG_ENABLE(perl,    [  --disable-perl          compile without perl scripting],,enable_perl=yes)
 AC_ARG_ENABLE(debug,   [  --enable-debug          compile with debugging support],,enable_debug=no)
 AC_ARG_ENABLE(screensaver,   [  --disable-screensaver   compile without X screensaver extension],,enable_xss=yes)
+AC_ARG_WITH(krb4,      [  --with-krb4=PREFIX      Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no")
 AC_ARG_ENABLE(,,,)
 
 if test "$enable_debug" = yes ; then
@@ -204,6 +205,38 @@
 	AC_CHECK_FUNCS(snprintf connect)
 	AC_CHECK_LIB(nsl, gethostent)
 
+	dnl checks for zephyr
+	AC_DEFINE(ZEPHYR_INT32, long)
+	if test "x$kerberos" != "xno" ; then
+		if test "x$kerberos" != "xyes" ; then
+			CFLAGS="$CFLAGS -I${kerberos}/include"
+			if test -d "$kerberos/include/kerberosIV" ; then
+				CFLAGS="$CFLAGS -I${kerberos}/include/kerberosIV"
+			fi
+			LDFLAGS="$LDFLAGS -L${kerberos}/lib"
+		elif test -d /usr/local/include/kerberosIV ; then
+			CFLAGS="$CFLAGS -I/usr/local/include/kerberosIV"
+		elif test -d /usr/include/kerberosIV ; then
+			CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
+		fi
+		AC_DEFINE(ZEPHYR_USES_KERBEROS)
+		AC_CHECK_LIB(krb4, krb_rd_req,
+				[KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto"],
+				[AC_CHECK_LIB(krb, krb_rd_req,
+					[KRB4_LIBS="-lkrb -ldes"],
+					[AC_ERROR(Kerberos 4 libraries not found)],
+					-ldes)],
+				-ldes425 -lkrb5 -lcrypto)
+		LIBS="$LIBS $KRB4_LIBS"
+		AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm)
+	fi
+	AC_CHECK_FUNCS(gethostid krb_get_err_text krb_log lrand48)
+	AC_CHECK_FUNCS(memcpy memmove random strchr strerror vprintf)
+	AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h)
+	AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
+	AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
+	AC_CHECK_HEADERS(termios.h)
+
 	AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes")
 else
 	enable_prpls=no
@@ -218,6 +251,7 @@
 	   plugins/icq/Makefile
 	   plugins/msn/Makefile
 	   plugins/jabber/Makefile
+	   plugins/zephyr/Makefile
            pixmaps/Makefile
            libfaim/Makefile
 	   po/Makefile.in