X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=4bbffd5ffe3753cc424a3e87b6d6467bb7910971;hb=10a3b578c38207140378a98c024c03d85941f837;hp=bdea2fbb47da23939518a96a70e1fa46407a32f7;hpb=fb205ffa6d9fbc901a0e377c556d05f68d5a5fb7;p=mech_eap.orig diff --git a/configure.ac b/configure.ac index bdea2fb..4bbffd5 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,14 @@ AC_PREREQ([2.61]) AC_INIT([mech_eap], [0.1], [bugs@project-moonshot.org]) dnl AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([silent-rules]) LT_PREREQ([2.2]) LT_INIT([dlopen disable-static]) AC_PROG_CC AC_PROG_CXX AC_CONFIG_HEADERS([config.h]) +AC_GNU_SOURCE dnl Check if we're on Solaris and set CFLAGS accordingly dnl AC_CANONICAL_TARGET @@ -26,10 +27,30 @@ dnl TARGET_CFLAGS="-Wall -pedantic -pthread" dnl TARGET_LDFLAGS="" dnl esac +reauth=no +AC_ARG_ENABLE(reauth, + [ --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + reauth=$enableval + else + echo "--enable-reauth argument must be yes or no" + exit -1 + fi + ]) + +if test "x$reauth" = "xyes" ; then + echo "Fast reauthentication protocol enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH" +fi +AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno") + AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_LDFLAGS) AX_CHECK_KRB5 -AX_CHECK_EAP +dnl AX_CHECK_EAP AX_CHECK_SHIBSP -AC_CONFIG_FILES([Makefile]) +AX_CHECK_SHIBRESOLVER +AX_CHECK_RADSEC +AX_CHECK_JANSSON +AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile]) AC_OUTPUT