dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(ldap_plugin, 0.82) AM_CONFIG_HEADER(config.h) pkg_modules="libgnomeui-2.0 glib-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_DISABLE_STATIC AC_PROG_LIBTOOL AC_CHECK_LIB(ldap,ldap_init,,AC_MSG_ERROR(You must have openldap libraries installed.)) AC_CHECK_HEADER(sasl/sasl.h,, AC_MSG_ERROR(You must have the libsasl2-dev package installed)) dnl Info for the RPM MULTISYNC_TOP="../.." AC_SUBST(VERSION) AC_SUBST(prefix) MULTISYNC_VERSION=`grep "#define VERSION" ${MULTISYNC_TOP}/config.h | sed -e 's/#define VERSION //g' | sed -e 's/\"//g'` AC_SUBST(MULTISYNC_VERSION) AC_OUTPUT([ Makefile src/Makefile ${MULTISYNC_TOP}/specs/multisync-ldap.spec ])