delete .libs directories during 'clean'-ing
[mod_auth_kerb.cvs/.git] / configure.in
index 0cd9bcc..2062257 100644 (file)
@@ -1,7 +1,7 @@
 # Process this file with autoconf to produce a configure script.
 AC_REVISION($Revision$)
-AC_PREREQ(2.53)
-AC_INIT(mod_auth_kerb, 0.5-rc4, modauthkerb-developers@lists.sourceforge.net)
+AC_PREREQ(2.57)
+AC_INIT(mod_auth_kerb, 0.5-rc6, modauthkerb-developers@lists.sourceforge.net)
 AC_CONFIG_SRCDIR([src/mod_auth_kerb.c])
 AC_CONFIG_HEADER([config.h])
 
@@ -81,7 +81,7 @@ if test "x$with_krb5" != "xno" ; then
   if test -z "$KRB5_LDFLAGS" -a -n "$krb5_config_command"; then
      TMP_KRB5_LDFLAGS=`$krb5_config_command --libs gssapi 2>/dev/null`
      if test -n "$TMP_KRB5_LDFLAGS"; then
-        LIBS="$LIBS $TMP_KRB5_LDFLAGS"
+        LIBS="$LIBS $TMP_KRB5_LDFLAGS $LIB_resolv"
         AC_CHECK_LIB(krb5, krb5_init_context,
                      [ KRB5_LDFLAGS="$TMP_KRB5_LDFLAGS" ])
         LIBS="$ac_save_LIBS"
@@ -244,52 +244,10 @@ AC_ARG_WITH(apache,
   AC_HELP_STRING([--with-apache=dir],[use apache in dir]),
   [ with_apache="$withval" ])
 
-AC_MSG_CHECKING([for Apache installation])
-HTTPD=""
-APXS=""
-if test -n "$with_apache"; then
-  apache_dirs="$with_apache/sbin $with_apache/bin"
-else
-# XXX the PATH variable should be used rather
-  apache_dirs="/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin"
-fi
-
-for dir in $apache_dirs; do
-  if test -z "$HTTPD"; then
-     for name in apache2 apache httpd; do
-        if test -x "$dir/$name"; then
-           HTTPD="$dir/$name"
-           break
-        fi
-     done
-  fi
-  if test -z "$APXS"; then
-     for name in apxs2 apxs; do
-        if test -x "$dir/$name"; then
-           APXS="$dir/$name"
-           break
-        fi
-     done
-  fi
-done
-
-if test -z "$HTTPD"; then
-   AC_MSG_ERROR([failed to find apache httpd executable])
-fi
+AC_PATH_PROG([APXS], [apxs], [], [$with_apache/bin:$with_apache/sbin:$PATH])
 if test -z "$APXS"; then
    AC_MSG_ERROR([failed to find apache apxs executable])
 fi
-
-apache_v1_3=`$HTTPD -v | grep "^Server version: Apache/1.3."`
-apache_v2_0=`$HTTPD -v | grep "^Server version: Apache/2.0."`
-if test "x$apache_v1_3" = "x" -a "x$apache_v2_0" = "x"; then
-  AC_MSG_ERROR([cannot find valid apache installation on your system])
-fi
-if test -n "$apache_v1_3"; then
-  AC_DEFINE(APXS1)
-fi
-AC_MSG_RESULT(yes)
-
 AC_SUBST(APXS)
 
 AC_CONFIG_FILES([Makefile])