X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=b70e29e99124613d90e79a564585fedaa62ff3af;hb=093e0f8d5e300c38c188cd70bf191961616480a4;hp=5ab930c98154d7e12f8a2d55a9ccbbcdea9dd77d;hpb=51f052c02a85c2f4df42ad2e4a11519e8d583ceb;p=mech_eap.orig diff --git a/configure.ac b/configure.ac index 5ab930c..b70e29e 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,8 @@ LT_INIT([dlopen disable-static]) AC_PROG_CC AC_PROG_CXX AC_CONFIG_HEADERS([config.h]) +AC_CHECK_HEADERS(stdarg.h stdio.h stdint.h sys/param.h) +AC_REPLACE_FUNCS(vasprintf) AC_GNU_SOURCE dnl Check if we're on Solaris and set CFLAGS accordingly @@ -45,13 +47,40 @@ if test "x$reauth" = "xyes" ; then fi AM_CONDITIONAL(GSSEAP_ENABLE_REAUTH, test "x$reauth" != "xno") +acceptor=yes +AC_ARG_ENABLE(acceptor, + [ --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes ], + [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then + acceptor=$enableval + else + echo "--enable-acceptor argument must be yes or no" + exit -1 + fi + ]) + +if test "x$acceptor" = "xyes" ; then + echo "acceptor enabled" + TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR" +fi +AM_CONDITIONAL(GSSEAP_ENABLE_ACCEPTOR, test "x$acceptor" != "xno") + AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_LDFLAGS) AX_CHECK_KRB5 -dnl AX_CHECK_EAP -AX_CHECK_SHIBSP +AX_CHECK_OPENSAML +AM_CONDITIONAL(OPENSAML, test "x_$check_opensaml_dir" != "x_no") + AX_CHECK_SHIBRESOLVER -AX_CHECK_RADSEC -AX_CHECK_JANSSON +AM_CONDITIONAL(SHIBRESOLVER, test "x_$check_shibresolver_dir" != "x_no") +if test x_$found_shibresolver = x_yes; then + AX_CHECK_SHIBSP +fi + +if test "x$acceptor" = "xyes" ; then + AX_CHECK_RADSEC + AX_CHECK_JANSSON +fi + +AX_CHECK_LIBMOONSHOT AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile]) AC_OUTPUT