httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@ebuilt.com>
Subject [PATCH] checking arguments in configure
Date Wed, 24 Jan 2001 20:16:03 GMT
This bit me last night.  My question is, should we default to -O
for this option, or require that a flag be given (as below)?

....Roy

Index: configure.in
===================================================================
RCS file: /home/cvs/httpd-2.0/configure.in,v
retrieving revision 1.115
diff -u -r1.115 configure.in
--- configure.in	2001/01/10 01:04:52	1.115
+++ configure.in	2001/01/24 23:11:52
@@ -112,7 +112,7 @@
 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"],

Mime
View raw message