if test ! -d "$GLOBUS_INCLUDE" ; then
AC_MSG_ERROR(Cannot find Globus flavor-specific include directory: ${GLOBUS_INCLUDE})
fi
- GSI_CPPFLAGS="-I${GLOBUS_INCLUDE}"
if test -x ${gsi_path}/bin/globus-makefile-header ; then
${gsi_path}/bin/globus-makefile-header --flavor=${globus_flavor_type} ${gsi_static} globus_gss_assist | sed 's/ = \(.*\)/="\1"/' > ./gpt_build_tmp.sh
AC_MSG_ERROR(Cannot find globus-makefile-header: Globus installation is incomplete)
fi
. ./gpt_build_tmp.sh
- if test -n "${need_dash_r}"; then
- GSI_LDFLAGS="-L${gsi_path}/lib -R${gsi_path}/lib"
- else
- GSI_LDFLAGS="-L${gsi_path}/lib"
- fi
if test -z "$GLOBUS_PKG_LIBS" ; then
AC_MSG_ERROR(globus-makefile-header failed)
fi
- if (test -n "$LIBPATH"); then
- blibpath="$LIBPATH"
- fi
-
AC_DEFINE(HAVE_GSSAPI_H)
CC="$GLOBUS_CC"
fi
]
)
-if test -z "$GSI_LDFLAGS" ; then
+if test -z "$GLOBUS_LDFLAGS" ; then
LIBS="-lcrypto $LIBS"
fi
AC_TRY_LINK_FUNC(RAND_add, AC_DEFINE(HAVE_OPENSSL, 1,
fi ]
)
+# Finish configuring Globus GSSAPI
+if test "x$gsi_path" != "xno" ; then
+ if test ! -z "$need_dash_r" ; then
+ LDFLAGS="$LDFLAGS -R${gsi_path}/lib"
+ fi
+ if test ! -z "$blibpath" ; then
+ blibpath="$blibpath:${gsi_path}/lib"
+ fi
+fi
+
# Check whether the user wants GSSAPI mechglue support
AC_ARG_WITH(mechglue,
[ --with-mechglue=PATH Build with GSSAPI mechglue library],