dnl APACHE_LAYOUT_DEFAULTS
dnl
AC_DEFUN(APACHE_LAYOUT_DEFAULTS,[
- dnl We only need to check the non-autoconf variables.
- test "x${cgidir}" = "x" && cgidir='${datadir}/error'
+ dnl Apache defaults for autoconf variables.
+ test "x${prefix}" = "xNONE" && prefix='/usr/local/apache2'
+ test "x${exec_prefix}" = "xNONE" && exec_prefix='${prefix}'
+ dnl Now we need to check the non-autoconf variables.
+ test "x${cgidir}" = "x" && cgidir='${datadir}/cgi-bin'
test "x${logfiledir}" = "x" && logfiledir='${localstatedir}/logs'
test "x${htdocsdir}" = "x" && htdocsdir='${datadir}/htdocs'
test "x${manualdir}" = "x" && manualdir='${datadir}/manual'
dnl
AC_PREREQ(2.13)
+AC_PREFIX_DEFAULT(/usr/local/apache2)
AC_INIT(ABOUT_APACHE)
AC_CONFIG_HEADER(include/ap_config_auto.h)
nl='
'
-dnl XXX we can't just use AC_PREFIX_DEFAULT because that isn't subbed in
-dnl by configure until it is too late. Is that how it should be or not?
-dnl Something seems broken here.
-AC_PREFIX_DEFAULT(/usr/local/apache2)
-test "$prefix" = "NONE" && prefix='/usr/local/apache2'
-test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
-
dnl ## Run configure for packages Apache uses
dnl shared library support for these packages doesn't currently