2
# Process this file with autoconf to produce a configure script.
5
AC_INIT([LCMAPS plugins voms], [1.5.5])
6
AC_CONFIG_MACRO_DIR([project])
7
AM_INIT_AUTOMAKE([1.6.3 subdir-objects foreign])
8
AC_CONFIG_SRCDIR([src/lcmaps_voms_config.h.in])
11
AC_COPYRIGHT([Copyright (c) 2004 The EU EGEE Project
12
See LICENCE file for details
14
AC_REVISION([$Revision: 1.14 $])
20
DISTBIN=$WORKDIR/../../dist
23
# Checks for programs.
32
# Checks for libraries.
33
AC_CHECK_LIB([crypto], [X509_free])
35
# Checks for header files.
38
AC_CHECK_HEADERS([dlfcn.h malloc.h stdlib.h string.h syslog.h unistd.h utime.h values.h])
40
# Checks for typedefs, structures, and compiler characteristics.
45
# Checks for library functions.
53
AC_CHECK_FUNCS([setenv strchr strcspn strdup strerror strncasecmp strpbrk strspn strstr strtol utime])
55
# Set lcmaps variables
56
AC_LCMAPS_INTERFACE([basic])
57
if test "x$have_lcmaps_basic_interface" = "xno" ; then
58
AC_MSG_FAILURE(["no LCMAPS basic interface found"])
61
dnl Check for gsi mode
62
enable_gsi_mode_default=yes
63
AC_ARG_ENABLE([gsi-mode],
64
[AC_HELP_STRING([--enable-gsi-mode],
65
[use lcmaps-plugins-voms flavour that uses a GSI interface (default)])],
66
[enable_gsi_mode=$enableval],
67
[enable_gsi_mode=$enable_gsi_mode_default])
68
AM_CONDITIONAL(LCMAPS_GSI_MODE, test x$enable_gsi_mode = xyes)
70
if test x$enable_gsi_mode = xyes ; then
72
LCMAPS_FLAVOUR_NAME=""
74
AC_DEFINE(LCMAPS_GSI_MODE, 1, "If defined provide the GSI interface to LCMAPS")
75
AC_MSG_RESULT([Creating GSI flavour of LCMAPS])
77
# Check globus modules
78
AC_GLOBUS([CORE],[],AC_MSG_FAILURE(["no globus-core found"]))
80
AC_GLOBUS([COMMON],[],AC_MSG_FAILURE(["no globus-common found"]))
81
AC_GLOBUS([GSI_CALLBACK],[],AC_MSG_FAILURE(["no globus-gsi-callback found"]))
82
AC_GLOBUS([GSI_CREDENTIAL],[],AC_MSG_FAILURE(["no globus-gsi-credential found"]))
83
AC_GLOBUS([GSI_PROXY_CORE],[],AC_MSG_FAILURE(["no globus-gsi-proxy-core found"]))
84
AC_GLOBUS([GSI_PROXY_SSL],[],AC_MSG_FAILURE(["no globus-gsi-proxy-ssl found"]))
85
AC_GLOBUS([GSSAPI_GSI],[],AC_MSG_FAILURE(["no globus-gssapi-gsi found"]))
86
AC_GLOBUS([GSS_ASSIST],[],AC_MSG_FAILURE(["no globus-gss-assist found"]))
91
AC_VOMS([],have_voms=yes,have_voms=no)
92
AC_MSG_RESULT(["VOMS found $have_voms"])
93
if test "x$have_voms" = "xno" ; then
94
AC_MSG_FAILURE(["no working voms found"])
97
dnl allow the setting of a different path for the plug-ins
98
dnl Makefiles should set the plugindir to $MODULEDIR.
99
AC_ARG_WITH([moduledir],
100
[AS_HELP_STRING([--with-moduledir=path],
101
[Specify the install location of the plug-ins])],
103
AC_SUBST([MODULEDIR], [$withval])
106
AC_SUBST([MODULEDIR], ['${libdir}/lcmaps'])
109
# Defines to be added for cpp (will change)
110
ADD_THESE_DEFINES="-D ALLOW_EMPTY_CREDENTIALS -D DEBUG_LEVEL=0"
111
AC_SUBST(ADD_THESE_DEFINES)
113
# Find proper shared library extension
114
eval SHREXT=$shrext_cmds
117
# Configuration items
118
AC_CONFIG_HEADERS([src/lcmaps_voms_config.h])
119
AC_CONFIG_FILES([Makefile])
120
AC_CONFIG_FILES([doc/Makefile])
121
AC_CONFIG_FILES([src/Makefile])
122
AC_CONFIG_FILES([src/voms/Makefile])
123
AC_CONFIG_FILES([src/gridlist/Makefile])