forked from italiangrid/voms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvoms.m4
More file actions
34 lines (29 loc) · 976 Bytes
/
Copy pathvoms.m4
File metadata and controls
34 lines (29 loc) · 976 Bytes
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
AC_DEFUN([AC_VOMS_LIBRARY],
[
globus_flavor=$1
candidatepath=$2
if test "x$candidatepath" = "x" ; then
libpath=${GLOBUS_LOCATION:-/usr}/lib
else
libpath=$candidatepath/lib
fi
if test "x$globus_flavor" = "x" ; then
globus_flavor="none"
fi
AC_MSG_CHECKING([for library to use with globus library: $globus_flavor])
if test "x$globus_flavor" = "xnone" ; then
AC_MSG_RESULT([libvomsapi])
VOMS_LIBRARY="-lvomsapi"
elif test -e $libpath/libglobus_gssapi_gsi_$globus_flavor.so ; then
if ( (ldd $libpath/libglobus_gssapi_gsi_$globus_flavor.so|grep crypto|cut -d'=' -f2|grep $globus_flavor) >/dev/null 2>&1 ); then
AC_MSG_RESULT([libvomsapi_$globus_flavor])
VOMS_LIBRARY="-lvomsapi_$globus_flavor"
else
AC_MSG_RESULT([libvomsapi])
VOMS_LIBRARY="-lvomsapi"
fi
else
AC_MSG_ERROR([flavor $globus_flavor is unknown])
fi
AC_SUBST(VOMS_LIBRARY)
])