AC_PREREQ([2.50])
-AC_INIT([shibboleth], [1.0], [mace-shib-users@internet2.edu], [shibboleth])
+AC_INIT([shibboleth], [1.0.1], [mace-shib-users@internet2.edu], [shibboleth])
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(shibboleth, 1.0)
+AM_INIT_AUTOMAKE(shibboleth, 1.0.1)
sinclude(acx_pthread.m4)
sinclude(acx_rpctest.m4)
# --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
# --without-apxs (DSO build, you tell us how to build using the environment)
+AC_ARG_ENABLE(apache-13,
+ AC_HELP_STRING([--disable-apache-13], [disable the Apache 1.3 modules]))
+if test "x$enable_apache_13" = "x" ; then
+ enable_apache_13=yes
+fi
+
+if test "$enable_apache_13" != yes ; then
+ AC_MSG_WARN(Building without Apache...)
+ WANT_APACHE=no
+else
+
AC_MSG_CHECKING([for dynamic Apache module support (w/ or w/o APXS)])
AC_ARG_WITH(apxs,
[ --with-apxs[=FILE] Build shared Apache module(s). FILE is the optional
WANT_APACHE="no"
fi
+fi
+
AM_CONDITIONAL(HAVE_APXS,test -n "$APXS")
if test "$WANT_APACHE" = "yes"; then
AC_CONFIG_FILES([shib-mysql-ccache/Makefile])
# determine whether we should enable the mysql ccache
-enable_mysql=default
AC_ARG_ENABLE([mysql],
- AC_HELP_STRING([--disable-mysql], [disable the MySQL Credential Cache]))
-if test "x$enable_mysql" = "x" ; then
- enable_mysql=yes
+ AC_HELP_STRING([--disable-mysql], [disable the MySQL Credential Cache]),
+ [mysql_enabled=$enableval], [mysql_enabled=default])
+
+if test "x$mysql_enabled" = "x" ; then
+ mysql_enabled=yes
fi
# Are we trying to build MySQL?
AC_MSG_CHECKING(whether to build the MySQL ccache)
-if test "$enable_mysql" = "yes" -o "$enable_mysql" = "default" ; then
+if test "$mysql_enabled" = "yes" ; then
build_mysql=yes
AC_MSG_RESULT(yes)
+elif test "$mysql_enabled" = "default" ; then
+ build_mysql=yes
+ AC_MSG_RESULT([yes, if it can be found])
else
build_mysql=no
AC_MSG_RESULT(no)
AC_PATH_PROG(MYSQL_CONFIG, mysql_config, no, $mysql_dir $PATH )
if test "$MYSQL_CONFIG" = no ; then
- if test "$enable_mysql" = yes ; then
+ if test "$mysql_enabled" = "yes" ; then
AC_MSG_ERROR(Cannot find mysql_config)
else
AC_MSG_WARN(MySQL not found. skipping.)
mysql_version_ok=yes
if test $mysql_major_version -lt 4 ; then
mysql_version_ok=no
- if test "$enable_mysql" = yes ; then
+ if test "$mysql_enabled" = "yes" ; then
AC_MSG_ERROR(You need MySQL version >= 4, found $mysql_version)
fi
AC_MSG_RESULT(no.. skipping MySQL)
MYSQL_LIBS=`$MYSQL_CONFIG --libmysqld-libs`
if test $? != 0 ; then
found_mysql=no
- if test "$enable_mysql" = yes ; then
+ if test "$mysql_enabled" = "yes" ; then
AC_MSG_ERROR(Could not find the MySQL Embedded-server libraries.)
else
AC_MSG_RESULT(no.. skipping MySQL)
CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
AC_CHECK_HEADER([mysql.h], [have_mysql_h=yes], [have_mysql_h=no])
- if test "$have_mysql_h" = no -a "$enable_mysql" = yes ; then
+ if test "$have_mysql_h" = no -a "$mysql_enabled" = "yes" ; then
AC_MSG_ERROR(unable to find MySQL header files)
fi
LIBS="$save_LIBS"
if test "$have_mysql_libs" = no ; then
- if "$enable_mysql" = yes ; then
+ if "$mysql_enabled" = "yes" ; then
AC_MSG_ERROR([unable to link with MySQL Embedded Server Library])
else
AC_MSG_RESULT(no. skipping MySQL)