Some work on SAML
[mech_eap.git] / configure.ac
1 AC_PREREQ([2.61])
2 AC_INIT([mech_eap], [0.1], [bugs@project-moonshot.org])
3 dnl AC_CONFIG_MACRO_DIR([m4])
4 AM_INIT_AUTOMAKE
5 LT_PREREQ([2.2])
6 LT_INIT([dlopen disable-static])
7
8 AC_PROG_CC
9 AC_PROG_CXX
10
11 dnl Check if we're on Solaris and set CFLAGS accordingly
12 dnl AC_CANONICAL_TARGET
13 dnl case "${target_os}" in
14 dnl   solaris*)
15 dnl     TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
16 dnl     if test "$GCC" != yes ; then
17 dnl       TARGET_CFLAGS="$TARGET_CFLAGS -mt"
18 dnl     else
19 dnl       TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
20 dnl     fi
21 dnl     TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
22 dnl     ;;
23 dnl   *)
24 dnl     TARGET_CFLAGS="-Wall -pedantic -pthread"
25 dnl     TARGET_LDFLAGS=""
26 dnl   esac
27
28 AC_SUBST(TARGET_CFLAGS)
29 AC_SUBST(TARGET_LDFLAGS)
30 AX_CHECK_KRB5
31 AX_CHECK_EAP
32 AX_CHECK_SHIBSP
33 AC_CONFIG_FILES([Makefile])
34 AC_OUTPUT