1 |
# |
2 |
# Copyright (c) 2004 on behalf of the EU EGEE Project: |
3 |
# The European Organization for Nuclear Research (CERN), |
4 |
# Istituto Nazionale di Fisica Nucleare (INFN), Italy |
5 |
# Datamat Spa, Italy |
6 |
# Centre National de la Recherche Scientifique (CNRS), France |
7 |
# CS Systeme d'Information (CSSI), France |
8 |
# Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden |
9 |
# Universiteit van Amsterdam (UvA), Netherlands |
10 |
# University of Helsinki (UH.HIP), Finland |
11 |
# University of Bergen (UiB), Norway |
12 |
# Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom |
13 |
# |
14 |
# See ChangeLog |
15 |
# |
16 |
# Process this file with autoconf to produce a configure script. |
17 |
|
18 |
AC_PREREQ(2.57) |
19 |
AC_INIT([LCMAPS plugins verify proxy], [1.5.12]) |
20 |
AC_CONFIG_MACRO_DIR([project]) |
21 |
AM_INIT_AUTOMAKE([1.6.3 subdir-objects foreign]) |
22 |
AC_CONFIG_SRCDIR([src/lcmaps_verify_proxy_config.h.in]) |
23 |
|
24 |
# Notices. |
25 |
AC_COPYRIGHT([Copyright (c) 2004 The EU EGEE Project |
26 |
See LICENCE file for details |
27 |
]) |
28 |
AC_REVISION([$Revision: 1.25 $]) |
29 |
|
30 |
#Environment. |
31 |
WORKDIR=`pwd` |
32 |
AC_SUBST(WORKDIR) |
33 |
|
34 |
DISTBIN=$WORKDIR/../../dist |
35 |
AC_SUBST(DISTBIN) |
36 |
|
37 |
# Checks for programs. |
38 |
AC_PROG_CC |
39 |
AC_PROG_LN_S |
40 |
AC_PROG_MAKE_SET |
41 |
AC_PROG_LIBTOOL |
42 |
AC_PROG_INSTALL |
43 |
|
44 |
# Checks for libraries. |
45 |
AC_CHECK_LIB([crypto], [X509_free]) |
46 |
|
47 |
# Check LCMAPS location |
48 |
AC_LCMAPS_INTERFACE([basic]) |
49 |
if test "x$have_lcmaps_basic_interface" = "xno" ; then |
50 |
AC_MSG_FAILURE(["no LCMAPS basic interface found"]) |
51 |
fi |
52 |
|
53 |
# Checks for LCMAPS plugin prototype using LCMAPS CFLAGS |
54 |
SAVED_CPPFLAGS=$CPPFLAGS |
55 |
CPPFLAGS=$LCMAPS_CFLAGS |
56 |
AC_CHECK_HEADERS([lcmaps/lcmaps_plugin_prototypes.h]) |
57 |
CPPFLAGS=$SAVED_CPPFLAGS |
58 |
|
59 |
# Checks for header files. |
60 |
AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) |
61 |
|
62 |
# Checks for typedefs, structures, and compiler characteristics. |
63 |
AC_TYPE_SIZE_T |
64 |
|
65 |
# Checks for library functions. |
66 |
AC_FUNC_MALLOC |
67 |
AC_FUNC_MKTIME |
68 |
AC_CHECK_FUNCS([setenv strdup strerror strncasecmp strtol]) |
69 |
|
70 |
dnl allow the setting of a different path for the plug-ins |
71 |
dnl Makefiles should set the plugindir to $MODULEDIR. |
72 |
AC_ARG_WITH([moduledir], |
73 |
[AS_HELP_STRING([--with-moduledir=path], |
74 |
[Specify the install location of the plug-ins])], |
75 |
[ |
76 |
AC_SUBST([MODULEDIR], [$withval]) |
77 |
], |
78 |
[ |
79 |
AC_SUBST([MODULEDIR], ['${libdir}/lcmaps']) |
80 |
]) |
81 |
|
82 |
# Defines to be added for cpp (will change) |
83 |
ADD_THESE_DEFINES="-DENABLE_LCMAPS_LOGGING" |
84 |
AC_SUBST(ADD_THESE_DEFINES) |
85 |
|
86 |
# Find proper shared library extension |
87 |
eval SHREXT=$shrext_cmds |
88 |
AC_SUBST(SHREXT) |
89 |
|
90 |
# Configuration items |
91 |
AC_CONFIG_HEADERS([src/lcmaps_verify_proxy_config.h]) |
92 |
AC_CONFIG_FILES([Makefile]) |
93 |
AC_CONFIG_FILES([src/Makefile]) |
94 |
AC_CONFIG_FILES([src/verify-proxy/Makefile]) |
95 |
AC_CONFIG_FILES([doc/Makefile]) |
96 |
AC_CONFIG_FILES([doc/lcmaps_verify_proxy.mod.8]) |
97 |
AC_CONFIG_FILES([doc/verify-proxy-tool.1]) |
98 |
|
99 |
AC_OUTPUT |