📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_REVISION($Revision$)AC_INIT(Makefile.am)GLOBUS_INITAM_PROG_LIBTOOLAC_PROG_LN_Sdnl config header goes herednl Initialize the automake rules the last argumentAM_INIT_AUTOMAKE($GPT_NAME, $GPT_VERSION)dnldnl Figure out which regular expression parser to use.dnl (taken from krb5/lib/krb5/os/configure.in)dnl Try, in order, regcomp, compile/stepdnlAC_HAVE_HEADERS(regex.h regexpr.h)dnldnl regcomp (which is present but non-functional on Solaris 2.4)dnlAC_CACHE_CHECK([for working regcomp], [ac_cv_func_regcomp], [AC_TRY_RUN([#include <sys/types.h>#include <regex.h>regex_t x; regmatch_t m;int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); } ], ac_cv_func_regcomp=yes, ac_cv_func_regcomp=no, ac_cv_func_regcomp=no)])dnldnl compre/stepdnlsave_LIBS=$LIBSLIBS=-lgendnl this will fail if there's no compile/step in -lgen, or if there'sdnl no -lgen. This is fine.AC_CHECK_FUNCS(compile step, have_func_compile=yes)LIBS=$save_LIBSdnlif test "$ac_cv_func_regcomp" = yes ; then AC_MSG_RESULT([Using re_comp for regular expression matching]) AC_DEFINE(HAVE_REGCOMP)elif test "$have_func_compile" = yes ; then AC_MSG_RESULT([Using compile/step for regular expression matching]) AC_CHECK_LIB(gen, compile, [SERVERLIBS="$SERVERLIBS -lgen"])else AC_MSG_WARN([No support for regular expression matching])fidnldnl Check for vsnprintf()dnlAC_CHECK_FUNCS(vsnprintf)dnldnl Check for setenv()dnlAC_CHECK_FUNCS(setenv)dnldnl Check for unsetenv()dnlAC_CHECK_FUNCS(unsetenv)dnldnl Check for getopt_long()dnlAC_HAVE_HEADERS(getopt.h)AC_CHECK_FUNCS(getopt_long)dnldnl Check for socklen_tdnlAC_CHECK_TYPES(socklen_t)dnldnl Check to see if we need "netlibs" (specifically, libnsl and libsocket)dnluname=`(uname) 2>/dev/null`if test "$uname" != IRIX -a "$uname" != IRIX64 ; then AC_CHECK_LIB(socket, socket,[ SYSLIBS="$SYSLIBS -lsocket"], ,-lnsl) AC_CHECK_LIB(nsl, t_bind,[ SYSLIBS="$SYSLIBS -lnsl"])fiAC_SUBST(SYSLIBS)dnldnl Check for SASLdnlAC_ARG_WITH(sasl2, [ --with-sasl2=PATH Build with SASL V2 support], [ if test "x$withval" = "xyes" ; then AC_MSG_ERROR([--with-sasl2 requires PATH argument]) fi if test "x$withval" != "xno" ; then CPPFLAGS="-I${withval}/include/sasl $CPPFLAGS" LDFLAGS="$LDFLAGS -L${withval}/lib" AC_CHECK_HEADER(sasl.h) AC_CHECK_LIB(sasl2, sasl_client_init, , AC_MSG_ERROR([libsasl2 not found])) AC_MSG_CHECKING(that sasl.h matches libsasl2) AC_TRY_RUN([#include <sasl.h>int main() { if (SASL_VERSION_MAJOR != 2) exit(1); else exit(0); } ], [AC_MSG_RESULT([yes])], [ AC_MSG_RESULT([no]) AC_MSG_ERROR([sasl.h does not match libsasl2]) ], [AC_MSG_RESULT([yes])]) fi ])dnldnl Check for KerberosdnlAC_ARG_WITH(kerberos5, [ --with-kerberos5=PATH Build with Kerberos V5 support], [ if test "x$withval" = "xyes" ; then AC_MSG_ERROR([--with-kerberos5 requires PATH argument]) fi if test "x$withval" != "xno" ; then KRB5CPPFLAGS="-I${withval}/include $CPPFLAGS" AC_SUBST(KRB5CPPFLAGS) AC_DEFINE(BUILD_GSSAPI_PLUGIN) fi ])dnldnl Check for PAMdnlAC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h)if test "x$ac_cv_header_security_pam_appl_h" = "xyes" || \ test "x$ac_cv_header_pam_pam_appl_h" = "xyes" ; then AC_CHECK_LIB(dl, dlopen, , ) AC_CHECK_LIB(pam, pam_set_item, , )fidnldnl Check for OpenLDAPdnlAC_ARG_WITH(openldap, [ --with-openldap=PATH Build with OpenLDAP CA support], [ if test "x$withval" = "xyes" ; then AC_MSG_ERROR([--with-openldap requires PATH argument]) fi if test "x$withval" != "xno" ; then CPPFLAGS="-I${withval}/include $CPPFLAGS" LDFLAGS="$LDFLAGS -L${withval}/lib" AC_CHECK_HEADERS(ldap.h) AC_CHECK_LIB(ldap, ldap_sasl_bind_s, , AC_MSG_ERROR([ldap_sasl_bind_s not found in libldap]) ) AC_CHECK_LIB(ldap, ldap_search_ext_s, , AC_MSG_ERROR([ldap_search_ext_s not found in libldap]) ) fi ])LAC_DOXYGEN([" ../ "])GLOBUS_FINALIZEAC_OUTPUT( pkgdata/Makefile pkgdata/pkg_data_src.gpt Makefile doxygen/Makefile doxygen/Doxyfile doxygen/Doxyfile-internal web/Makefile man/Makefile , $GPT_LOCATION/sbin/gpt_generate_bin_pkg_data \ --flavor=$GLOBUS_FLAVOR_NAME "./pkgdata/pkg_data_src.gpt" , GLOBUS_FLAVOR_NAME=$GLOBUS_FLAVOR_NAME GLOBUS_LOCATION=$GLOBUS_LOCATION GPT_LOCATION=$GPT_LOCATION)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -