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