-
-dnl ####################
-dnl ## Config Options ##
-dnl ####################
-AC_ARG_WITH(api,
-[ --with-api=API api to use (apache1, apache2)],
-[
- case $withval in
- 'apache1')
- ac_api=apache1
- ;;
- 'apache2')
- ac_api=apache2
- ;;
- *)
- AC_ERROR(You can only specify apache1 or apache2.)
- ;;
- esac
-]
-)
-
-AC_ARG_WITH(apxs,
-[ --with-apxs=PATH path to apxs],
-[
- if test -e $withval ; then
- APXS="$withval"
- else
- AC_ERROR(Specified apxs path does not exist.)
- fi
-]
-)
-
-AC_ARG_WITH(static,
-[ --with-static module is to be statically linked],
-[
- ac_static="yes"
-]
-)
-
-AC_ARG_WITH(krb5,
-[ --with-krb5=DIR path to Kerberos 5 install],
-[
- if test -d $withval ; then
- CFLAGS="$CFLAGS -I$withval/include -I$withval/include/kerberosIV"
- CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/include/kerberosIV"
- LDFLAGS="$LDFLAGS -L$withval/lib"
-
- case "$host" in
- *-solaris*)
- LDFLAGS="$LDFLAGS -R$withval/lib"
- ;;
- esac
- else
- AC_ERROR(Specified Kerberos 5 directory doesn't exist.)
- fi
-]
-)
-
-AC_ARG_WITH(krb5-include,
-[ --with-krb5-include=DIR include path to Kerberos 5 install],
-[
- if test -d $withval ; then
- CFLAGS="$CFLAGS -I$withval -I$withval/include/kerberosIV"
- CPPFLAGS="$CPPFLAGS -I$withval -I$withval/include/kerberosIV"
- else
- AC_ERROR(Specified Kerberos 5 directory doesn't exist.)
- fi
-]
-)
-
-AC_ARG_WITH(krb5-lib,
-[ --with-krb5-lib=DIR lib path to Kerberos 5 install],
-[
- if test -d $withval ; then
- LDFLAGS="$LDFLAGS -L$withval"
-
- case "$host" in
- *-solaris*)
- LDFLAGS="$LDFLAGS -R$withval"
- ;;
- esac
- else
- AC_ERROR(Specified Kerberos 5 directory doesn't exist.)
- fi
-]
-)
-
-AC_ARG_ENABLE(krb5,
-[ --disable-krb5 force disabling of krb5 support],
-[
- if test "$enable_krb5" = "no" ; then
- ac_krb5_disable="yes"
- fi
-],
-)
-
-AC_ARG_WITH(krb4,
-[ --with-krb4=DIR path to Kerberos 4 install],
-[
- if test -d $withval ; then
- CFLAGS="$CFLAGS -I$withval/include"
- CPPFLAGS="$CPPFLAGS -I$withval/include"
- LDFLAGS="$LDFLAGS -L$withval/lib"
-
- case "$host" in
- *-solaris*)
- LDFLAGS="$LDFLAGS -R$withval/lib"
- ;;
- esac
- else
- AC_ERROR(Specified Kerberos 4 directory doesn't exist.)
- fi
-]
-)
-
-AC_ARG_WITH(krb4-include,
-[ --with-krb4-include=DIR include path to Kerberos 4 install],
-[
- if test -d $withval ; then
- CFLAGS="$CFLAGS -I$withval"
- CPPFLAGS="$CPPFLAGS -I$withval"
- else
- AC_ERROR(Specified Kerberos 4 directory doesn't exist.)
- fi
-]
-)
-
-AC_ARG_WITH(krb4-lib,
-[ --with-krb4-lib=DIR lib path to Kerberos 4 install],
-[
- if test -d $withval ; then
- LDFLAGS="$LDFLAGS -L$withval"
-
- case "$host" in
- *-solaris*)
- LDFLAGS="$LDFLAGS -R$withval"
- ;;
- esac
- else
- AC_ERROR(Specified Kerberos 4 directory doesn't exist.)
- fi
-]
-)
-
-AC_ARG_ENABLE(krb4,
-[ --disable-krb4 force disabling of krb4 support],
-[
- if test "$enable_krb4" = "no" ; then
- ac_krb4_disable="yes"
- fi
-],
-)
-
-
-dnl ####################
-dnl ## Program Checks ##
-dnl ####################