tconfigure script made a little more user-friendly - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ec9e4a2f2b66a29d198832dec6e18b590e7691b7
(DIR) parent a18abcdeb0cc04a32cadd7ba529e35dab4e829ae
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Thu, 13 Sep 2001 16:29:01 +0000
configure script made a little more user-friendly
Diffstat:
M configure | 149 ++++++++++++++++++-------------
M configure.in | 49 +++++++++++++++++++++++--------
2 files changed, 124 insertions(+), 74 deletions(-)
---
(DIR) diff --git a/configure b/configure
t@@ -3968,7 +3968,6 @@ rm -f conftest*
fi
if test "$GUI_CLIENT" = "yes" ; then
- echo "$ac_t""Compiling in graphical client" 1>&6
cat >> confdefs.h <<\EOF
#define GUI_CLIENT 1
EOF
t@@ -3976,17 +3975,12 @@ EOF
fi
if test "$CURSES_CLIENT" = "yes" ; then
- echo "$ac_t""Compiling in text mode - curses - client" 1>&6
cat >> confdefs.h <<\EOF
#define CURSES_CLIENT 1
EOF
fi
-if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then
- echo "configure: warning: No clients will be compiled - binary will be server/AI only!" 1>&2
-fi
-
# Check whether --enable-gui-server or --disable-gui-server was given.
if test "${enable_gui_server+set}" = set; then
enableval="$enable_gui_server"
t@@ -3995,13 +3989,10 @@ fi
if test "$GUI_SERVER" = "yes" ; then
- echo "$ac_t""Using graphical server" 1>&6
cat >> confdefs.h <<\EOF
#define GUI_SERVER 1
EOF
-else
- echo "$ac_t""Using text-mode server" 1>&6
fi
if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then
t@@ -4012,12 +4003,12 @@ if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then
fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:4016: checking for ANSI C header files" >&5
+echo "configure:4007: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4021 "configure"
+#line 4012 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
t@@ -4025,7 +4016,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
t@@ -4042,7 +4033,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 4046 "configure"
+#line 4037 "configure"
#include "confdefs.h"
#include <string.h>
EOF
t@@ -4060,7 +4051,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 4064 "configure"
+#line 4055 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
t@@ -4081,7 +4072,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
-#line 4085 "configure"
+#line 4076 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
t@@ -4092,7 +4083,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
-if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
t@@ -4116,12 +4107,12 @@ EOF
fi
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:4120: checking for sys/wait.h that is POSIX.1 compatible" >&5
+echo "configure:4111: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4125 "configure"
+#line 4116 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
t@@ -4137,7 +4128,7 @@ wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
-if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_sys_wait_h=yes
else
t@@ -4161,17 +4152,17 @@ for ac_hdr in fcntl.h sys/time.h unistd.h stdlib.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4165: checking for $ac_hdr" >&5
+echo "configure:4156: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4170 "configure"
+#line 4161 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
t@@ -4199,12 +4190,12 @@ done
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:4203: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:4194: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4208 "configure"
+#line 4199 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
t@@ -4213,7 +4204,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
-if { (eval echo configure:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
t@@ -4234,12 +4225,12 @@ EOF
fi
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
-echo "configure:4238: checking whether struct tm is in sys/time.h or time.h" >&5
+echo "configure:4229: checking whether struct tm is in sys/time.h or time.h" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4243 "configure"
+#line 4234 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
t@@ -4247,7 +4238,7 @@ int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
-if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
t@@ -4269,7 +4260,7 @@ fi
echo $ac_n "checking size of long long""... $ac_c" 1>&6
-echo "configure:4273: checking size of long long" >&5
+echo "configure:4264: checking size of long long" >&5
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
t@@ -4277,7 +4268,7 @@ else
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
-#line 4281 "configure"
+#line 4272 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
t@@ -4288,7 +4279,7 @@ main()
exit(0);
}
EOF
-if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_sizeof_long_long=`cat conftestval`
else
t@@ -4309,7 +4300,7 @@ EOF
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
-echo "configure:4313: checking for 8-bit clean memcmp" >&5
+echo "configure:4304: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
t@@ -4317,7 +4308,7 @@ else
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
-#line 4321 "configure"
+#line 4312 "configure"
#include "confdefs.h"
main()
t@@ -4327,7 +4318,7 @@ main()
}
EOF
-if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_func_memcmp_clean=yes
else
t@@ -4345,7 +4336,7 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
-echo "configure:4349: checking whether setvbuf arguments are reversed" >&5
+echo "configure:4340: checking whether setvbuf arguments are reversed" >&5
if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
t@@ -4353,7 +4344,7 @@ else
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
-#line 4357 "configure"
+#line 4348 "configure"
#include "confdefs.h"
#include <stdio.h>
/* If setvbuf has the reversed format, exit 0. */
t@@ -4367,7 +4358,7 @@ main () {
exit(0); /* Non-reversed systems segv here. */
}
EOF
-if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_func_setvbuf_reversed=yes
else
t@@ -4391,12 +4382,12 @@ EOF
fi
echo $ac_n "checking for strftime""... $ac_c" 1>&6
-echo "configure:4395: checking for strftime" >&5
+echo "configure:4386: checking for strftime" >&5
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4400 "configure"
+#line 4391 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strftime(); below. */
t@@ -4419,7 +4410,7 @@ strftime();
; return 0; }
EOF
-if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strftime=yes"
else
t@@ -4441,7 +4432,7 @@ else
echo "$ac_t""no" 1>&6
# strftime is in -lintl on SCO UNIX.
echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
-echo "configure:4445: checking for strftime in -lintl" >&5
+echo "configure:4436: checking for strftime in -lintl" >&5
ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
t@@ -4449,7 +4440,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lintl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4453 "configure"
+#line 4444 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
t@@ -4460,7 +4451,7 @@ int main() {
strftime()
; return 0; }
EOF
-if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
t@@ -4489,12 +4480,12 @@ fi
for ac_func in strdup strstr getopt_long
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4493: checking for $ac_func" >&5
+echo "configure:4484: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4498 "configure"
+#line 4489 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
t@@ -4517,7 +4508,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
t@@ -4548,14 +4539,14 @@ if test "$CYGWIN" = "yes" ; then
else
echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
-echo "configure:4552: checking for library containing socket" >&5
+echo "configure:4543: checking for library containing socket" >&5
if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_func_search_save_LIBS="$LIBS"
ac_cv_search_socket="no"
cat > conftest.$ac_ext <<EOF
-#line 4559 "configure"
+#line 4550 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
t@@ -4566,7 +4557,7 @@ int main() {
socket()
; return 0; }
EOF
-if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_socket="none required"
else
t@@ -4577,7 +4568,7 @@ rm -f conftest*
test "$ac_cv_search_socket" = "no" && for i in socket; do
LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4581 "configure"
+#line 4572 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
t@@ -4588,7 +4579,7 @@ int main() {
socket()
; return 0; }
EOF
-if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_socket="-l$i"
break
t@@ -4610,14 +4601,14 @@ else :
fi
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
-echo "configure:4614: checking for library containing gethostbyname" >&5
+echo "configure:4605: checking for library containing gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_func_search_save_LIBS="$LIBS"
ac_cv_search_gethostbyname="no"
cat > conftest.$ac_ext <<EOF
-#line 4621 "configure"
+#line 4612 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
t@@ -4628,7 +4619,7 @@ int main() {
gethostbyname()
; return 0; }
EOF
-if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_gethostbyname="none required"
else
t@@ -4639,7 +4630,7 @@ rm -f conftest*
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl socket; do
LIBS="-l$i $ac_func_search_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4643 "configure"
+#line 4634 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
t@@ -4650,7 +4641,7 @@ int main() {
gethostbyname()
; return 0; }
EOF
-if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_search_gethostbyname="-l$i"
break
t@@ -4673,12 +4664,12 @@ fi
for ac_func in socket gethostbyname select
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4677: checking for $ac_func" >&5
+echo "configure:4668: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4682 "configure"
+#line 4673 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
t@@ -4701,7 +4692,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
t@@ -4746,9 +4737,6 @@ if test "$network" = "yes" ; then
#define NETWORKING 1
EOF
- echo "$ac_t""dopewars will use TCP/IP networking to connect to servers" 1>&6
-else
- echo "$ac_t""Networking disabled; only single-player mode will be available" 1>&6
fi
if test -n "$GCC"; then
t@@ -5216,3 +5204,40 @@ chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+
+
+echo
+echo "dopewars has been configured as follows:"
+echo
+if test "$CYGWIN" = "yes" ; then
+ echo "Building native Windows (Win32) version"
+else
+ echo "Building Unix version"
+fi
+echo
+echo "CLIENTS"
+if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then
+ echo " - No clients will be compiled (binary will be server/AI only)"
+else
+ if test "$CURSES_CLIENT" = "yes" ; then
+ echo " - Text-mode (curses) client"
+ fi
+ if test "$GUI_CLIENT" = "yes" ; then
+ echo " - Graphical (GTK+ or Win32) client"
+ fi
+fi
+
+echo
+if test "$network" = "yes" ; then
+ echo "TCP/IP networking support enabled for multi-player games"
+ echo
+ echo "SERVER"
+ if test "$GUI_SERVER" = "yes" ; then
+ echo " - Graphical server"
+ else
+ echo " - Text-mode server"
+ fi
+else
+ echo "Networking support DISABLED; single-player mode only"
+fi
+echo
(DIR) diff --git a/configure.in b/configure.in
t@@ -106,19 +106,13 @@ else
fi
if test "$GUI_CLIENT" = "yes" ; then
- AC_MSG_RESULT(Compiling in graphical client)
AC_DEFINE(GUI_CLIENT)
fi
if test "$CURSES_CLIENT" = "yes" ; then
- AC_MSG_RESULT(Compiling in text mode - curses - client)
AC_DEFINE(CURSES_CLIENT)
fi
-if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then
- AC_MSG_WARN(No clients will be compiled - binary will be server/AI only!)
-fi
-
dnl Let the user override the server interface with the
dnl --enable-gui-server option
AC_ARG_ENABLE(gui-server,
t@@ -126,10 +120,7 @@ AC_ARG_ENABLE(gui-server,
[ GUI_SERVER="$enableval" ])
if test "$GUI_SERVER" = "yes" ; then
- AC_MSG_RESULT(Using graphical server)
AC_DEFINE(GUI_SERVER)
-else
- AC_MSG_RESULT(Using text-mode server)
fi
if test "$GUI_CLIENT" = "yes" -o "$GUI_SERVER" = "yes" ; then
t@@ -187,9 +178,6 @@ AC_ARG_ENABLE(networking,
dnl Inform the user of the status of networking
if test "$network" = "yes" ; then
AC_DEFINE(NETWORKING)
- AC_MSG_RESULT(dopewars will use TCP/IP networking to connect to servers)
-else
- AC_MSG_RESULT(Networking disabled; only single-player mode will be available)
fi
dnl Enable full warnings if using gcc
t@@ -209,3 +197,40 @@ doc/Makefile
intl/Makefile
po/Makefile.in],
[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
+
+
+echo
+echo "dopewars has been configured as follows:"
+echo
+if test "$CYGWIN" = "yes" ; then
+ echo "Building native Windows (Win32) version"
+else
+ echo "Building Unix version"
+fi
+echo
+echo "CLIENTS"
+if test "$CURSES_CLIENT" = "no" -a "$GUI_CLIENT" = "no" ; then
+ echo " - No clients will be compiled (binary will be server/AI only)"
+else
+ if test "$CURSES_CLIENT" = "yes" ; then
+ echo " - Text-mode (curses) client"
+ fi
+ if test "$GUI_CLIENT" = "yes" ; then
+ echo " - Graphical (GTK+ or Win32) client"
+ fi
+fi
+
+echo
+if test "$network" = "yes" ; then
+ echo "TCP/IP networking support enabled for multi-player games"
+ echo
+ echo "SERVER"
+ if test "$GUI_SERVER" = "yes" ; then
+ echo " - Graphical server"
+ else
+ echo " - Text-mode server"
+ fi
+else
+ echo "Networking support DISABLED; single-player mode only"
+fi
+echo