~ubuntu-branches/ubuntu/saucy/lcmaps-plugins-voms/saucy

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Dennis van Dok
  • Date: 2012-11-06 00:50:24 UTC
  • Revision ID: package-import@ubuntu.com-20121106005024-0513ko4vca18a53l
Tags: upstream-1.5.5
ImportĀ upstreamĀ versionĀ 1.5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                                                                                                                                                             
 
2
# Process this file with autoconf to produce a configure script.
 
3
 
 
4
AC_PREREQ(2.57)
 
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])
 
9
 
 
10
# Notices.
 
11
AC_COPYRIGHT([Copyright (c) 2004 The EU EGEE Project
 
12
See LICENCE file for details
 
13
])
 
14
AC_REVISION([$Revision: 1.14 $])
 
15
 
 
16
#Environment.
 
17
WORKDIR=`pwd`
 
18
AC_SUBST(WORKDIR)
 
19
 
 
20
DISTBIN=$WORKDIR/../../dist
 
21
AC_SUBST(DISTBIN)
 
22
 
 
23
# Checks for programs.
 
24
AC_PROG_CC
 
25
AC_PROG_CXX
 
26
AC_PROG_LN_S
 
27
AC_PROG_MAKE_SET
 
28
AC_PROG_LIBTOOL
 
29
AM_PROG_CC_C_O
 
30
AC_PROG_INSTALL
 
31
 
 
32
# Checks for libraries.
 
33
AC_CHECK_LIB([crypto], [X509_free])
 
34
 
 
35
# Checks for header files.
 
36
AC_HEADER_DIRENT
 
37
AC_HEADER_STDC
 
38
AC_CHECK_HEADERS([dlfcn.h malloc.h stdlib.h string.h syslog.h unistd.h utime.h values.h])
 
39
 
 
40
# Checks for typedefs, structures, and compiler characteristics.
 
41
AC_C_CONST
 
42
AC_TYPE_SIZE_T
 
43
AC_STRUCT_TM
 
44
 
 
45
# Checks for library functions.
 
46
AC_FUNC_CLOSEDIR_VOID
 
47
AC_FUNC_MALLOC
 
48
AC_FUNC_MEMCMP
 
49
AC_FUNC_MKTIME
 
50
AC_FUNC_REALLOC
 
51
AC_FUNC_STAT
 
52
AC_FUNC_UTIME_NULL
 
53
AC_CHECK_FUNCS([setenv strchr strcspn strdup strerror strncasecmp strpbrk strspn strstr strtol utime])
 
54
 
 
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"])
 
59
fi
 
60
 
 
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)
 
69
 
 
70
if test x$enable_gsi_mode = xyes ; then
 
71
    LCMAPS_FLAVOUR=""
 
72
    LCMAPS_FLAVOUR_NAME=""
 
73
 
 
74
    AC_DEFINE(LCMAPS_GSI_MODE, 1, "If defined provide the GSI interface to LCMAPS")
 
75
    AC_MSG_RESULT([Creating GSI flavour of LCMAPS])
 
76
 
 
77
    # Check globus modules
 
78
    AC_GLOBUS([CORE],[],AC_MSG_FAILURE(["no globus-core found"]))
 
79
 
 
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"]))
 
87
fi
 
88
 
 
89
# Check voms location
 
90
have_voms=no
 
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"])
 
95
fi
 
96
 
 
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])],
 
102
[
 
103
        AC_SUBST([MODULEDIR], [$withval])
 
104
],
 
105
[
 
106
        AC_SUBST([MODULEDIR], ['${libdir}/lcmaps'])
 
107
])
 
108
 
 
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)
 
112
 
 
113
# Find proper shared library extension
 
114
eval SHREXT=$shrext_cmds
 
115
AC_SUBST(SHREXT)
 
116
 
 
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])
 
124
 
 
125
AC_OUTPUT