EXTRA_DIST = configure README NEWS ChangeLog AUTHORS INSTALL
SUBDIRS =
-bin_PROGRAMS = squid_kerb_auth squid_kerb_auth_test
+bin_PROGRAMS = squid_kerb_auth squid_kerb_auth_test negotiate_kerb_auth negotiate_kerb_auth_test
+
+SPNEGO_SOURCE= \
+ spnegohelp/derparse.c \
+ spnegohelp/derparse.h \
+ spnegohelp/spnego.c \
+ spnegohelp/spnego.h \
+ spnegohelp/spnegohelp.c \
+ spnegohelp/spnegohelp.h \
+ spnegohelp/spnegoparse.c \
+ spnegohelp/spnegoparse.h
+
+EXTRA_DIST += $(SPNEGO_SOURCE)
if HAVE_SPNEGO
-squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c
-squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c
+squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c base64.h
+squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c base64.h
else
-squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c spnegohelp/derparse.c spnegohelp/spnego.c spnegohelp/spnegohelp.c spnegohelp/spnegoparse.c
+squid_kerb_auth_SOURCES = squid_kerb_auth.c base64.c base64.h $(SPNEGO_SOURCE)
INCLUDES = -Ispnegohelp
-squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c
+squid_kerb_auth_test_SOURCES = squid_kerb_auth_test.c base64.c base64.h
endif
squid_kerb_auth_LDADD =
squid_kerb_auth_test_LDFLAGS =
squid_kerb_auth_test_LDADD =
+
+negotiate_kerb_auth: squid_kerb_auth
+ cp squid_kerb_auth negotiate_kerb_auth
+
+negotiate_kerb_auth_test: squid_kerb_auth_test
+ cp squid_kerb_auth_test negotiate_kerb_auth_test
+
+
dnl Process this file with autoconf to produce a configure script.
-AC_INIT([squid_kerb_auth],[1.0.3],[markus_moeller@compuserve.com])
-AM_INIT_AUTOMAKE(squid_kerb_auth,1.0.3)
+AC_INIT([squid_kerb_auth],[1.0.5],[markus_moeller@compuserve.com])
+AM_INIT_AUTOMAKE(squid_kerb_auth,1.0.5)
AC_PROG_CC
AC_PROG_CPP
esac
fi
+if test "$ac_cv_header_gssapi_h" = "no" -a "$ac_cv_header_gssapi_gssapi_h" = "no"; then
+ echo "GSSAPI headers are required to compile squid_kerb_auth"
+ echo "Please install gssapi headers and then re-run configure"
+ exit 1
+fi
old_LIBS=$LIBS
AC_CACHE_CHECK([for SPNEGO support],ac_cv_have_spnego,[
#include <gssapi/gssapi.h>
#elif defined(HAVE_GSSAPI_H)
#include <gssapi.h>
+#else
+#error "GSSAPI header required"
#endif
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
#else
#include <gssapi/gssapi.h>
#elif defined(HAVE_GSSAPI_H)
#include <gssapi.h>
+#else
+#error "GSSAPI header required"
#endif
#ifdef HAVE_GSSAPI_GSSAPI_EXT_H
#include <gssapi/gssapi_ext.h>
#include <gssapi/gssapi.h>
#elif defined(HAVE_GSSAPI_H)
#include <gssapi.h>
+#else
+#error "GSSAPI header required"
#endif
#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H
#include <gssapi/gssapi_krb5.h>