mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Fail if libtool's libltdl is not present and --enable-modules was given.
This commit is contained in:
parent
136bb9c231
commit
e766d2c568
2 changed files with 658 additions and 522 deletions
29
configure.in
29
configure.in
|
|
@ -517,6 +517,33 @@ if test "${ol_cv_mkdep}" = no ; then
|
||||||
AC_MSG_WARN([do not know how to generate dependencies])
|
AC_MSG_WARN([do not know how to generate dependencies])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Check for module support
|
||||||
|
dnl
|
||||||
|
ol_link_modules=no
|
||||||
|
if test $ol_enable_modules != no ; then
|
||||||
|
AC_CHECK_HEADERS(ltdl.h)
|
||||||
|
|
||||||
|
if test $ac_cv_header_ltdl_h = no ; then
|
||||||
|
AC_MSG_ERROR([could not locate libtool ltdl.h])
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_LIB(ltdl, lt_dlinit)
|
||||||
|
if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
|
||||||
|
AC_MSG_ERROR([could not locate libtool -lltdl])
|
||||||
|
fi
|
||||||
|
ol_link_modules=yes
|
||||||
|
else
|
||||||
|
ol_with_bdb2_module=static
|
||||||
|
ol_with_ldap_module=static
|
||||||
|
ol_with_ldbm_module=static
|
||||||
|
ol_with_passwd_module=static
|
||||||
|
ol_with_perl_module=static
|
||||||
|
ol_with_shell_module=static
|
||||||
|
ol_with_tcl_module=static
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
OL_HEADER_STDC
|
OL_HEADER_STDC
|
||||||
|
|
@ -1914,7 +1941,7 @@ if test "$ol_enable_rlookups" != no ; then
|
||||||
AC_DEFINE(SLAPD_RLOOKUPS,1,[define to support reverse lookups])
|
AC_DEFINE(SLAPD_RLOOKUPS,1,[define to support reverse lookups])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$ol_enable_modules" != no ; then
|
if test "$ol_link_modules" != no ; then
|
||||||
AC_DEFINE(SLAPD_MODULES,1,[define to support modules])
|
AC_DEFINE(SLAPD_MODULES,1,[define to support modules])
|
||||||
BUILD_SLAPD=yes
|
BUILD_SLAPD=yes
|
||||||
MODULES_LIBS=-lltdl
|
MODULES_LIBS=-lltdl
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue