2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_sql])
8 if test x$with_[]modname != xno; then
12 dnl extra argument: --with-experimental-modules
14 AC_ARG_WITH(experimental-modules,
15 [ --with-experimental-modules Use experimental and unstable modules. (default=no) ],
25 if test "x$EXPERIMENTAL" = "xyes"; then
26 for foo in `find ./drivers -name configure -print`; do
27 bar=`echo $foo | sed 's%/configure$%%g'`
28 mysubdirs="$mysubdirs $bar"
31 for foo in `cat stable`; do
32 mysubdirs="$mysubdirs ./drivers/$foo"
37 if test "x$EXPERIMENTAL" = "xyes"; then
38 for foo in `ls ./drivers | grep rlm`; do
39 SQL_MODULES="$SQL_MODULES $foo"
42 for foo in `cat stable`; do
43 SQL_MODULES="$SQL_MODULES $foo"
47 dnl # don't ask... this is done to avoid autoconf stupidities.
48 ln -s ../../../install-sh install-sh
51 dnl # Don't change the variable name here. Autoconf goes bonkers
54 AC_CONFIG_SUBDIRS($mysubdirs)
58 dnl # Don't bother looking for errors in the child directories
64 echo \*\*\* module modname is disabled.
67 if test x"$fail" != x""; then
68 if test x"${enable_strict_dependencies}" = x"yes"; then
69 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
71 AC_MSG_WARN([silently not building ]modname[.])
72 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.])
73 if test x"$headersuggestion" != x; then
74 AC_MSG_WARN([$headersuggestion])
76 if test x"$libsuggestion" != x; then
77 AC_MSG_WARN([$libsuggestion])
84 sql_ldflags=$SMART_LIBS
85 sql_cflags=$SMART_CFLAGS