forked from fedushare/mech_saml_ec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
70 lines (62 loc) · 1.86 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
AC_PREREQ([2.61])
AC_INIT([mech_saml_ec], [0.1])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
dnl AM_INIT_AUTOMAKE([silent-rules])
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE
AM_PROG_CC_C_O
AM_MAINTAINER_MODE()
LT_PREREQ([2.2])
LT_INIT([dlopen disable-static win32-dll])
dnl 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)
dnl Check if we're on Solaris and set CFLAGS accordingly
dnl AC_CANONICAL_TARGET
dnl case "${target_os}" in
dnl solaris*)
dnl TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
dnl if test "$GCC" != yes ; then
dnl TARGET_CFLAGS="$TARGET_CFLAGS -mt"
dnl else
dnl TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
dnl fi
dnl TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
dnl ;;
dnl *)
dnl TARGET_CFLAGS="-Wall -pedantic -pthread"
dnl TARGET_LDFLAGS=""
dnl esac
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_WINDOWS
AX_CHECK_KRB5
AX_CHECK_OPENSAML
AM_CONDITIONAL(OPENSAML, test "x_$check_opensaml_dir" != "x_no")
AX_CHECK_SHIBRESOLVER
AM_CONDITIONAL(SHIBRESOLVER, test "x_$found_shibresolver" != "x_no")
AX_CHECK_SHIBSP
LIBXML_LIBS=`xml2-config --libs`
LIBXML_CFLAGS=`xml2-config --cflags`
AC_SUBST([LIBXML_LIBS])
AC_SUBST([LIBXML_CFLAGS])
AC_CONFIG_FILES([Makefile mech_saml_ec/Makefile gss-sample/Makefile])
AC_OUTPUT