dnl LIBS="$saved_LIBS"
CPPFLAGS="$saved_CPPFLAGS"
+ AC_ARG_ENABLE([apxs-install],
+ AC_HELP_STRING([--enable-apxs-install],
+ [use apxs to install the apache modules]),
+ APXS_INSTALL="yes", )
+
+
AC_SUBST(APXS_CFLAGS)
AC_SUBST(APXS_INCLUDE)
AC_SUBST(APXS_LIBEXEC)
AC_CONFIG_FILES([mod_shire/Makefile mod_shibrm/Makefile])
fi
+AM_CONDITIONAL(DO_APXS_INSTALL,test -n "$APXS_INSTALL")
+
AC_SUBST(WANT_SUBDIRS)
if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
AUTOMAKE_OPTIONS = foreign
-lib_LTLIBRARIES = mod_shibrm.la
+shibrmdir = $(libexecdir)
+shibrm_LTLIBRARIES = mod_shibrm.la
mod_shibrm_la_SOURCES = mod_shibrm.cpp
mod_shibrm_la_LDFLAGS = -module -avoid-version -lapreq
-if HAVE_APXS
+if DO_APXS_INSTALL
install-exec-local:
$(APXS) -i -A -n shibrm .libs/mod_shibrm.so
endif
-
AUTOMAKE_OPTIONS = foreign
-lib_LTLIBRARIES = mod_shire.la
+shiredir = $(libexecdir)
+shire_LTLIBRARIES = mod_shire.la
mod_shire_la_SOURCES = mod_shire.cpp
mod_shire_la_LDFLAGS = -module -avoid-version -lapreq
-if HAVE_APXS
+if DO_APXS_INSTALL
install-exec-local:
$(APXS) -i -A -n shire .libs/mod_shire.so
endif