diff --git a/acl-updater/plugin/Makefile.am b/acl-updater/plugin/Makefile.am index e0a1924..d1d2ed8 100644 --- a/acl-updater/plugin/Makefile.am +++ b/acl-updater/plugin/Makefile.am @@ -3,5 +3,5 @@ INCLUDES = $(all_includes) $(KDE_INCLUDES)/tde -I$(top_srcdir) $(KRB5_CFLAGS) lib_LTLIBRARIES = slapi-acl-manager.la slapi_acl_manager_la_SOURCES = interface.c plugin.cpp plugin.h -slapi_acl_manager_la_LIBADD = -ltqt-mt -ltdeldap -slapi_acl_manager_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KRB5_LIBS) \ No newline at end of file +slapi_acl_manager_la_LIBADD = -ltqt-mt -ltdeldap $(SLAPI_LIBRARIES) +slapi_acl_manager_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KRB5_LIBS) diff --git a/acl-updater/plugin/configure.in.in b/acl-updater/plugin/configure.in.in new file mode 100644 index 0000000..9feb979 --- /dev/null +++ b/acl-updater/plugin/configure.in.in @@ -0,0 +1,6 @@ + +# Check for slapi-plugin.h +AC_CHECK_HEADERS(slapi-plugin.h) + +# Check for the slapi library +AC_CHECK_LIB(slapi, slapi_pblock_get, AC_SUBST(SLAPI_LIBRARIES, "-lslapi"), [], [-shared -fPIC]) diff --git a/acl-updater/plugin/interface.c b/acl-updater/plugin/interface.c index da85863..a5e2e28 100644 --- a/acl-updater/plugin/interface.c +++ b/acl-updater/plugin/interface.c @@ -18,6 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include "config.h" + #ifdef HAVE_SLAPI_PLUGIN_H #include #else