use shibresolver API properly
[mech_eap.orig] / 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 AC_CONFIG_HEADERS([config.h])
11
12 dnl Check if we're on Solaris and set CFLAGS accordingly
13 dnl AC_CANONICAL_TARGET
14 dnl case "${target_os}" in
15 dnl   solaris*)
16 dnl     TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
17 dnl     if test "$GCC" != yes ; then
18 dnl       TARGET_CFLAGS="$TARGET_CFLAGS -mt"
19 dnl     else
20 dnl       TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
21 dnl     fi
22 dnl     TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
23 dnl     ;;
24 dnl   *)
25 dnl     TARGET_CFLAGS="-Wall -pedantic -pthread"
26 dnl     TARGET_LDFLAGS=""
27 dnl   esac
28
29 AC_SUBST(TARGET_CFLAGS)
30 AC_SUBST(TARGET_LDFLAGS)
31 AX_CHECK_KRB5
32 AX_CHECK_EAP
33 AX_CHECK_SHIBSP
34 AX_CHECK_SHIBRESOLVER
35 AC_CONFIG_FILES([Makefile])
36 AC_OUTPUT