X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=5811f9258e582a73c66c0566983097273aedc2b8;hb=refs%2Fheads%2Fwindows-port;hp=a637f9a4e868004b920484f56fa20bbbf312b347;hpb=bf445452c6e09acd21f965a74032f790683642ae;p=mech_eap.git diff --git a/configure.ac b/configure.ac index a637f9a..5811f92 100644 --- a/configure.ac +++ b/configure.ac @@ -1,17 +1,22 @@ AC_PREREQ([2.61]) -AC_INIT([mech_eap], [0.1], [bugs@project-moonshot.org]) -dnl AC_CONFIG_MACRO_DIR([m4]) +AC_INIT([mech_eap], [0.9.2], [bugs@project-moonshot.org]) +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_AUX_DIR([build-aux]) + dnl AM_INIT_AUTOMAKE([silent-rules]) AC_USE_SYSTEM_EXTENSIONS -AC_GNU_SOURCE AM_INIT_AUTOMAKE +AM_PROG_CC_C_O AM_MAINTAINER_MODE() LT_PREREQ([2.2]) LT_INIT([dlopen disable-static win32-dll]) -AC_PROG_CC +dnl AC_PROG_CC AC_PROG_CXX AC_CONFIG_HEADERS([config.h]) +AC_CHECK_HEADERS(stdarg.h stdio.h stdint.h sys/param.h stdlib.h) +AC_REPLACE_FUNCS(vasprintf) +AC_CHECK_FUNCS([ secure_getenv]) dnl Check if we're on Solaris and set CFLAGS accordingly dnl AC_CANONICAL_TARGET @@ -66,14 +71,46 @@ AM_CONDITIONAL(GSSEAP_ENABLE_ACCEPTOR, test "x$acceptor" != "xno") AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_LDFLAGS) -dnl AX_CHECK_KRB5 -AM_CONDITIONAL(HEIMDAL, test "x$heimdal" != "xno") -dnl AX_CHECK_EAP -if test "x$acceptor" = "xyes" ; then +AX_CHECK_WINDOWS +AX_CHECK_KRB5 +AX_CHECK_OPENSAML +AM_CONDITIONAL(OPENSAML, test "x_$check_opensaml_dir" != "x_no") + +if test "x$target_windows" = "xyes"; then + # Windows Installer XML tools + AC_PATH_PROG([WIX_CANDLE], [candle], no, + [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH]) + AC_PATH_PROG([WIX_LIGHT], [light], no, + [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH]) + AC_PATH_PROG([WIX_LIT], [lit], no, + [/c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR/c/Program\ Files\ \(x86\)/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH]) + + if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no" || test "$WIX_LIT" = "no"; then + AC_MSG_WARN([ +*** Could not find the Windows Installer XML tools. These are required +*** for the 'make installer' target. Use the WIX_CANDLE, WIX_LIGHT,and +*** WIX_LIT environment variables to pass their locations if they are +*** outside the PATH.]) + fi +fi +AX_CHECK_SHIBRESOLVER +AM_CONDITIONAL(SHIBRESOLVER, test "x_$check_shibresolver_dir" != "x_no") +if test x_$found_shibresolver = x_yes; then AX_CHECK_SHIBSP - AX_CHECK_SHIBRESOLVER +fi + +AX_CHECK_OPENSSL + +if test "x$acceptor" = "xyes" ; then AX_CHECK_RADSEC AX_CHECK_JANSSON fi -AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile]) + +AX_CHECK_LIBMOONSHOT +AC_CONFIG_FILES([Makefile libeap/Makefile mech_eap/Makefile + mech_eap.spec]) + +AC_SUBST(WIX_CANDLE) +AC_SUBST(WIX_LIGHT) + AC_OUTPUT