From a5bf6c3cd21b00413dbe8ea275e557bf989658d7 Mon Sep 17 00:00:00 2001 From: "Roy T. Fielding" Date: Sun, 28 Jan 2001 06:46:23 +0000 Subject: [PATCH] Force --with-optim and --with-port to have argument values, since they result in later compile errors otherwise. I would have removed --with-optim in favor of just setting it with an environment variable, but then it wouldn't be saved in config.nice. A better solution is needed because these arguments can only accept a single value (quotes and spaces are stripped). Perhaps setting OPTIM within config.nice? First things first. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87886 13f79535-47bb-0310-9956-ffa450edef68 --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 63f7f75ad4..d253f1e617 100644 --- a/configure.in +++ b/configure.in @@ -112,10 +112,10 @@ AC_CHECK_LIB(nsl, gethostname) AC_CHECK_LIB(socket, socket) AC_ARG_WITH(optim,[ --with-optim="FLAGS" compiler optimisation flags], - [OPTIM="$withval"]) + [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-optim requires a value (the optimisation flags)'); else OPTIM="$withval"; fi]) AC_ARG_WITH(port,[ --with-port=PORT Port on which to listen (default is 80)], - [PORT="$withval"], + [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-port requires a value (the TCP port number)'); else PORT="$withval"; fi], [PORT=80]) AC_ARG_WITH(debug,[ --with-debug Turn on debugging and compile time warnings], -- 2.40.0