raise an error if --enable-layout is specified but we can't
find the definition file.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86048
13f79535-47bb-0310-9956-
ffa450edef68
done; \
for i in *-dist; do \
sed -e 's#@@ServerRoot@@#$(prefix)#g' \
+ -e 's#@@Port@@#$(PORT)#g' \
< $$i > $(sysconfdir)/$$i; \
chmod 0644 $(sysconfdir)/$$i; \
file=`echo $$i|sed s/-dist//`; \
APACHE_SUBST(LIBTOOL)
APACHE_SUBST(SHELL)
APACHE_SUBST(MODULE_DIRS)
+ APACHE_SUBST(PORT)
abs_srcdir="`(cd $srcdir && pwd)`"
dnl
dnl APACHE_LAYOUT(configlayout, layoutname)
AC_DEFUN(APACHE_LAYOUT,[
+ if test ! -f $srcdir/../config.layout; then
+ echo "** Error: Layout file $srcdir/../config.layout not found"
+ echo "** Error: Cannot use undefined layout '$LAYOUT'"
+ exit 1
+ fi
pldconf=config.pld
changequote({,})
sed -e "1,/[ ]*<[lL]ayout[ ]*$2[ ]*>[ ]*/d" \
AC_ARG_WITH(optim,[ --with-optim="FLAGS" compiler optimisation flags],
[OPTIM="$withval"])
+AC_ARG_WITH(port,[ --with-port=PORT Port on which to listen (default is 80)],
+ [PORT="$withval"],
+ [PORT=80])
+
AC_ARG_WITH(debug,[ --with-debug Turn on debugging and compile time warnings],
[if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -g -Wall"; else CFLAGS="$CFLAGS -g"; fi])