2004-04-05 20:56:19 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
2004-06-03 12:10:38 +00:00
|
|
|
m4_include(../configure-common.ac)
|
2004-06-04 14:08:41 +00:00
|
|
|
AM_INIT_AUTOMAKE(foreign)
|
2004-05-26 20:12:12 +00:00
|
|
|
dnl TODO: writes a LDAP plugin
|
2004-06-12 21:19:30 +00:00
|
|
|
dnl TODO: write a XML-RPC plugin for Adamsnames' interface
|
|
|
|
AC_ARG_ENABLE(plugin,
|
|
|
|
[ --enable-plugin=LIST Build only the following plugins],
|
|
|
|
[if test "$enableval" == "no"; then
|
|
|
|
AC_MSG_ERROR([You cannot disable plugin support])
|
|
|
|
else
|
|
|
|
if test "$enableval" == "yes"; then
|
|
|
|
AC_MSG_ERROR([You must indicate a list of plugins with this option])
|
|
|
|
else
|
|
|
|
plugins=$enableval
|
|
|
|
fi
|
|
|
|
fi],
|
|
|
|
plugins="random whois dns postgresql")
|
|
|
|
for plugin in $plugins; do
|
|
|
|
if test ! -d $plugin ; then
|
|
|
|
AC_MSG_ERROR([No such plugin $plugin])
|
|
|
|
fi
|
|
|
|
eval ${plugin}_BUILD=1
|
|
|
|
done
|
|
|
|
m4_include(list-of-dirs.m4)
|
2004-05-26 20:12:12 +00:00
|
|
|
plugins_dir=`cat dir`
|
|
|
|
AC_SUBST(plugins_dir)
|
2004-06-12 21:19:30 +00:00
|
|
|
AC_OUTPUT(Makefile)
|
|
|
|
echo ""
|
|
|
|
echo Plugins to build: $plugins
|