]> git.mxchange.org Git - flightgear.git/blob - configure.ac
d202423b4611577b1803f27c651c673667d9311e
[flightgear.git] / configure.ac
1 dnl Process this file with autoget.sh to produce a working configure
2 dnl script.
3 dnl
4 dnl $Id$
5
6 AC_INIT
7 AC_CONFIG_SRCDIR([src/Aircraft/aircraft.cxx])
8
9 dnl Require at least automake 2.52
10 AC_PREREQ(2.52)
11
12 dnl Initialize the automake stuff
13 AM_INIT_AUTOMAKE(FlightGear, 0.9.2)
14
15 dnl Checks for programs.
16 AC_PROG_MAKE_SET
17 AC_PROG_CC
18 AC_PROG_CPP
19 AC_PROG_CXX
20 AC_PROG_RANLIB
21 AC_PROG_INSTALL
22 AC_PROG_LN_S
23
24 # specify the simgear location
25 AC_ARG_WITH(simgear, [  --with-simgear=PREFIX   Specify the prefix path to simgear])
26
27 if test "x$with_simgear" != "x" ; then
28     echo "SimGear prefix path is $with_simgear"
29     EXTRA_DIRS="${EXTRA_DIRS} $with_simgear"
30 fi
31
32 dnl set the $host variable based on local machine/os
33 AC_CANONICAL_HOST
34
35 case "${host}" in
36 *-*-irix*)
37     if test "$CXX" = "CC"; then
38         AR="CC -ar"
39         ARFLAGS="-o"
40         CXXFLAGS="$CXXFLAGS -I$with_simgear/include/simgear/compatibility"
41     else
42         AR="ar"
43         ARFLAGS="cru"
44     fi
45     ;;
46 *)
47     AR="ar"
48     ARFLAGS="cru"
49     ;;
50 esac
51 AC_SUBST(AR)
52 AC_SUBST(ARFLAGS)
53
54 dnl set logging; default value of with_logging=yes
55 AC_ARG_WITH(logging, [  --with-logging          Include logging output (default)])
56 if test "x$with_logging" = "xno" ; then
57     AC_DEFINE([FG_NDEBUG], 1, [Define for no logging output])
58 fi
59
60 # Specify if we want to build with Multiplayer support
61 # default to with_network=yes
62 AC_ARG_WITH(multiplayer, [  --with-multiplayer      Include default multiplayer support])
63 AC_ARG_WITH(network_olk, [  --with-network-olk      Include Oliver's multi-pilot networking support [default=no]])
64
65 if test "x$with_multiplayer" = "xno" -a "x$with_network_olk" = "xno"; then
66   echo "Building without any kind of multiplayer support"
67
68 elif test "x$with_multiplayer" = "xno"; then
69 # echo "Building without default multiplayer support"
70   echo "Building with Oliver's multi-pilot network support"
71   AC_DEFINE([FG_NETWORK_OLK], 1, [Define to build with Oliver's networking])
72
73 else
74   echo "Building with default multiplayer support"
75 # echo "Building without Oliver's multi-pilot network support"
76   AC_DEFINE([FG_MPLAYER_AS], 1, [Define to build with default multiplayer support])
77 fi
78
79 AM_CONDITIONAL(ENABLE_NETWORK_OLK, test "x$with_network_olk" != "xno" -a "x$with_multiplayer" = "xno")
80 AM_CONDITIONAL(ENABLE_MPLAYER_AS, test "x$with_multiplayer" != "xno")
81
82
83 # Specify if we want to use WeatherCM instead of FGEnvironment.
84 # default to with_weathercm=no
85 AC_ARG_WITH(weathercm, [  --with-weathercm        Use WeatherCM instead of FGEnvironment])
86 if test "x$with_weathercm" = "xyes" ; then
87     echo "Building with WeatherCM"
88     AC_DEFINE([FG_WEATHERCM], 1,
89               [Define to build with Christian Mayer's weather code])
90 else
91     echo "Building with FGEnvironment"
92 fi
93 AM_CONDITIONAL(ENABLE_WEATHERCM, test "x$with_weathercm" = "xyes")
94
95 dnl Thread related checks
96 AC_ARG_WITH(threads, [  --with-threads          Include tile loading threads [default=no]])
97 if test "x$with_threads" = "xyes"; then
98     AC_DEFINE([ENABLE_THREADS], 1, [Define to enable threaded tile paging])
99     CXXFLAGS="$CXXFLAGS -D_REENTRANT"
100     CFLAGS="$CFLAGS -D_REENTRANT"
101 fi
102 AC_CHECK_HEADER(pthread.h)
103 AM_CONDITIONAL(WITH_THREADS, test "x$with_threads" = "xyes")
104
105 # specify the plib location
106 AC_ARG_WITH(plib, [  --with-plib=PREFIX      Specify the prefix path to plib])
107
108 if test "x$with_plib" != "x" ; then
109     echo "plib prefix is $with_plib"
110     EXTRA_DIRS="${EXTRA_DIRS} $with_plib"
111 fi
112
113 # specify the metakit location
114 AC_ARG_WITH(metakit, [  --with-metakit=PREFIX   Specify the prefix path to metakit])
115
116 if test "x$with_metakit" != "x" ; then
117     echo "metakit prefix is $with_metakit"
118     EXTRA_DIRS="${EXTRA_DIRS} $with_metakit"
119 fi
120
121 dnl Used by JSBSim to conditionally compile in fgfs interface code
122 AC_DEFINE([FGFS], 1, [Define so that JSBSim compiles in 'library' mode])
123
124 dnl Used to controll whether clouds3d should be compiled in or not
125 AC_DEFINE([FG_USE_CLOUDS_3D], 1, [Define to use 3D cloud support])
126 AM_CONDITIONAL(FG_USE_CLOUDS_3D, test "x" = "x")
127
128 # Check for MS Windows environment
129 AC_CHECK_HEADER(windows.h)
130
131 dnl Determine an extra directories to add to include/lib search paths
132 case "${host}" in
133 *-apple-darwin* | *-*-mingw32*)
134     echo no EXTRA_DIRS for $host
135     ;;
136
137 *)
138     if test -d /usr/X11R6 ; then
139         EXTRA_DIR1="/usr/X11R6"
140     fi
141     if test -d /opt/X11R6 ; then
142         EXTRA_DIR2="/opt/X11R6"
143     fi
144     EXTRA_DIRS="${EXTRA_DIRS} $EXTRA_DIR1 $EXTRA_DIR2"
145     ;;
146
147 esac
148 wi_EXTRA_DIRS(no, ${EXTRA_DIRS})
149
150
151 dnl Using AM_CONDITIONAL is a step out of the protected little 
152 dnl automake fold so it is potentially dangerous.  But, we are
153 dnl beginning to run into cases where the standard checks are not
154 dnl enough.  AM_CONDITIONALS are then referenced to conditionally
155 dnl build a Makefile.in from a Makefile.am which lets us define custom
156 dnl includes, compile alternative source files, etc.
157
158 dnl Check for external variables daylight and timezone.
159 AC_EXT_DAYLIGHT
160 if test "$have_daylight" = yes; then
161     AC_DEFINE([HAVE_DAYLIGHT], 1, [Define if system has daylight variable])
162 fi
163
164 AC_EXT_TIMEZONE
165 if test "$have_timezone" = yes; then
166     AC_DEFINE([HAVE_TIMEZONE], 1, [Define if system has timezone variable])
167 fi
168
169 dnl add correct audio libs and configure for audio support
170 audio_LIBS="-lplibsl -lplibsm"
171 case "${host}" in
172 *-*-cygwin* | *-*-mingw32*)
173     audio_LIBS="$audio_LIBS -lwinmm"
174     ;;
175 *-apple-darwin*)
176     audio_LIBS="$audio_LIBS -framework IOKit -framework CoreFoundation"
177     ;;
178 *-*-irix* )
179     audio_LIBS="$audio_LIBS -laudio"
180     ;;
181
182 esac
183 AC_SUBST(audio_LIBS)
184
185 dnl ENABLE_AUDIO_SUPPORT could be depricated at any time in favor of
186 dnl just assuming we have audio support on all platform.  We can
187 dnl depend on plib to hide the details.
188 AC_DEFINE([ENABLE_AUDIO_SUPPORT], 1, [Define for audio support])
189
190 dnl X11 might be installed on Mac OS X or cygwin/mingwin, we don't want
191 dnl to use it if it is.
192 case "${host}" in
193 *-apple-darwin* | *-*-cygwin* | *-*-mingw32*)
194     echo no fancy X11 check
195     ;;
196
197 *)
198     AC_PATH_XTRA
199     ;;
200
201 esac
202
203 dnl Checks for libraries.
204
205 dnl Thread related checks
206 AC_CHECK_LIB(pthread, pthread_exit)
207 if test "x$ac_cv_lib_pthread_pthread_exit" != "xyes" \
208    -a "x$ac_cv_header_pthread_h" = "xyes"; then
209     dnl FreeBSD: System has pthread.h, but -lpthread library check
210     dnl fails.  See if we need -pthread instead of -lpthread and look
211     dnl for the functions in libc_r.
212     save_CXXFLAGS="$CXXFLAGS"
213     save_CFLAGS="$CFLAGS"
214     CXXFLAGS="-pthread $CXXFLAGS"
215     CFLAGS="-pthread $CFLAGS"
216     save_LIBS=$LIBS
217     AC_CHECK_LIB(c_r, pthread_exit)
218     if test "x$ac_cv_lib_c_r_pthread_exit" != "xyes"; then
219         CXXFLAGS=$save_CXXFLAGS
220         CFLAGS=$save_CFLAGS
221     fi
222     LIBS=$save_LIBS
223 fi
224
225 thread_LIBS="$LIBS"
226 LIBS=""
227
228 dnl search for network related libraries
229 AC_SEARCH_LIBS(inet_addr, xnet)
230 AC_SEARCH_LIBS(socket, socket)
231 AC_SEARCH_LIBS(main, nsl)
232
233 network_LIBS="$LIBS"
234 LIBS=""
235
236 dnl check for some default libraries
237 AC_SEARCH_LIBS(cos, m)
238 AC_SEARCH_LIBS(dlclose, dl)
239
240 base_LIBS="$LIBS"
241
242 dnl check for glut location
243 AC_CHECK_HEADER(GL/glut.h)
244 if test "x$ac_cv_header_GL_glut_h" = "xyes"; then
245     AC_DEFINE([GLUT_H], <GL/glut.h>, [Define as glut.h include location])
246 else
247     AC_CHECK_HEADER(GLUT/glut.h)
248     if test "x$ac_cv_header_GLUT_glut_h" = "xyes"; then
249         AC_DEFINE([GLUT_H], <GLUT/glut.h>, [Define as glut.h include location])
250     else
251         echo "Neither GL/glut.h nor GLUT/glut.h found.  Cannot continue"
252         exit
253     fi
254 fi
255
256 dnl check for OpenGL related libraries
257 case "${host}" in
258 *-*-cygwin* | *-*-mingw32*)
259     dnl CygWin under Windoze.
260
261     echo Win32 specific hacks...
262     AC_DEFINE([WIN32], 1, [Define for Win32 platforms])
263     AC_DEFINE([NOMINMAX], 1, [Define for Win32 platforms])
264
265     LIBS="$LIBS -lglut32 -lglu32 -lopengl32"
266     LIBS="$LIBS -luser32 -lgdi32"
267
268     dnl add -lwsock32 for mingwin
269     case "${host}" in
270     *-*-mingw32*)
271         echo "********** BUILDING FOR MINGW32 *************"
272         base_LIBS="$base_LIBS -lws2_32"
273         ;;
274     esac
275
276     echo "Will link apps with $LIBS"
277     ;;
278
279
280 *-apple-darwin*)
281     dnl Mac OS X
282
283     LIBS="$LIBS -framework GLUT -framework OpenGL -framework Carbon -lobjc"
284     ;;
285
286 *)
287     dnl X-Windows based machines
288
289     dnl Skip X11 library tests if requested.
290     if test "x$no_x" != "xyes"; then
291         AC_SEARCH_LIBS(XCreateWindow, X11)
292         AC_SEARCH_LIBS(XShmCreateImage, Xext)
293         AC_SEARCH_LIBS(XGetExtensionVersion, Xi)
294         AC_SEARCH_LIBS(IceOpenConnection, ICE)
295         AC_SEARCH_LIBS(SmcOpenConnection, SM)
296         AC_SEARCH_LIBS(XtMalloc, Xt)
297         AC_SEARCH_LIBS(XmuLookupStandardColormap, Xmu)
298     fi
299
300     AC_SEARCH_LIBS(glNewList, [ GL GLcore MesaGL ])
301     if test "x$ac_cv_search_glNewList" = "x-lGLcore"; then
302         dnl if GLcore found, then also check for GL
303         AC_SEARCH_LIBS(glXCreateContext, GL)
304     fi
305
306     dnl if using mesa, check for xmesa.h
307     if test "x$ac_cv_search_glNewList" = "x-lMesaGL"; then
308         AC_CHECK_HEADER(GL/fxmesa.h)
309         if test "x$ac_cv_header_GL_fxmesa_h" = "xyes"; then
310             AC_DEFINE([XMESA], 1, [Define for fxmesa])
311             AC_DEFINE([FX], 1, [Define for fxmesa])
312         fi
313     fi
314
315     AC_SEARCH_LIBS(gluLookAt, [ GLU MesaGLU ])
316     AC_SEARCH_LIBS(glutGetModifiers, [ glut freeglut ])
317     ;;
318
319 esac
320
321 opengl_LIBS="$LIBS"
322 LIBS="$base_LIBS"
323
324 AC_SUBST(base_LIBS)
325 AC_SUBST(opengl_LIBS)
326 AC_SUBST(thread_LIBS)
327 AC_SUBST(network_LIBS)
328
329 # The following are C++ items that need to be tested for with the c++
330 # compiler
331
332 AC_LANG_PUSH(C++)
333
334 # Check for "plib" without which we cannot go on
335 AC_CHECK_HEADER(plib/ul.h)
336 if test "x$ac_cv_header_plib_ul_h" != "xyes"; then
337     echo
338     echo "You *must* have the plib library installed on your system to build"
339     echo "the FGFS simulator!"
340     echo
341     echo "Please see README.plib for more details."
342     echo
343     echo "configure aborted."
344     exit
345 fi
346
347 AC_MSG_CHECKING([for plib 1.6.0 or newer])
348 AC_TRY_RUN([
349 #include <plib/ul.h>
350
351 #define MIN_PLIB_VERSION 160
352
353 int main() {
354     int major, minor, micro;
355
356     if ( PLIB_VERSION < MIN_PLIB_VERSION ) {
357          return -1;
358     }
359
360     return 0;
361 }
362
363 ],
364   AC_MSG_RESULT(yes),
365   [AC_MSG_RESULT(wrong version);
366    AC_MSG_ERROR([Install plib 1.6.0 or later first...])],
367   AC_MSG_RESULT(yes)
368 )
369
370 dnl If we get here then plib is available, so force use of plib
371 dnl joystick lib
372 AC_DEFINE([ENABLE_PLIB_JOYSTICK], 1, [Define to enable plib joystick support])
373
374
375 dnl Checking for PSL in plib
376 dnl version of plib, so check for it.
377 AC_MSG_CHECKING([for plib PSL scripting support])
378 AC_COMPILE_IFELSE([
379 #include <plib/psl.h>
380
381 int main() {
382   // not for running...
383   pslProgram program((pslExtension *)0);
384   program.compile("int main () {}", "");
385   return 0;
386 }
387 ],
388   [AC_MSG_RESULT(yes);
389    have_plib_psl=yes],
390   AC_MSG_RESULT(no)
391 )
392 AM_CONDITIONAL(HAVE_PLIB_PSL, test "x$have_plib_psl" = "xyes")
393 if test "x$have_plib_psl" = "xyes"; then
394    AC_DEFINE([HAVE_PLIB_PSL], 1,
395              [Define if plib version is new enough to provide "PSL"])
396 fi
397
398 dnl Check for MetaKit
399 AC_CHECK_HEADER(mk4.h)
400 if test "x$ac_cv_header_mk4_h" != "xyes"; then
401     echo
402     echo "MetaKit library not found."
403     echo
404     echo "If your OS does not provide an installable package for MetaKit"
405     echo "you will have to compile and install it first yourself.  A copy"
406     echo "of metakit-$(VERSION).tar.gz is included with SimGear.  You will"
407     echo "have to untar this source code, and follow it's included instructions"
408     echo "to compile and install on your system."
409     echo
410     echo "configure aborted."
411     exit
412 fi
413
414 AC_MSG_CHECKING([for metakit 2.4.3 or newer])
415 saved_LIBS="$LIBS"
416 LIBS="$saved_LIBS -lmk4"
417 AC_TRY_RUN([
418 #include <mk4.h>
419
420 #define MIN_MK4_VERSION 243
421
422 int main() {
423     int major, minor, micro;
424
425     if ( d4_MetaKitLibraryVersion < MIN_MK4_VERSION ) {
426          return -1;
427     }
428
429     return 0;
430 }
431
432 ],
433   AC_MSG_RESULT(yes),
434   [AC_MSG_RESULT(wrong version);
435    AC_MSG_ERROR([
436
437 Install metakit 2.4.3 or later first.
438
439 Or, the compiler may not be finding your libmk4.so library.
440 Please check the config.log file for specific details of the
441 failure if you believe you have the correct metakit version.
442 Also, look up this issue in the FlightGear FAQ.])],
443   AC_MSG_RESULT(yes)
444 )
445
446 dnl Check for the presence of SimGear
447 AC_CHECK_HEADER(simgear/version.h)
448 if test "x$ac_cv_header_simgear_version_h" != "xyes"; then
449     echo
450     echo "You *must* have the SimGear support library installed on your system"
451     echo "to build the FGFS simulator!"
452     echo
453     echo "Please see README.SimGear for more details."
454     echo
455     echo "configure aborted."
456     exit
457 fi
458
459 AC_MSG_CHECKING([for simgear 0.3.3 or newer])
460 AC_TRY_RUN([
461 #include <stdio.h>
462
463 #include <simgear/version.h>
464
465 #define STRINGIFY(X) XSTRINGIFY(X)
466 #define XSTRINGIFY(X) #X
467
468 #define MIN_MAJOR 0
469 #define MIN_MINOR 3
470 #define MIN_MICRO 3
471
472 int main() {
473     int major, minor, micro;
474
475     printf("%d.%d.%d or greater... ", MIN_MAJOR, MIN_MINOR, MIN_MICRO);
476
477     sscanf( STRINGIFY(SIMGEAR_VERSION), "%d.%d.%d", &major, &minor, &micro );
478
479     if ( major < MIN_MAJOR ) {
480          return -1;
481     } else if ( major == MIN_MAJOR && minor < MIN_MINOR ) {
482          return -1;
483     } else if ( major == MIN_MAJOR && minor == MIN_MINOR && micro < MIN_MICRO ){
484          return -1;
485     }
486
487     return 0;
488 }
489
490 ],
491   AC_MSG_RESULT(yes),
492   [AC_MSG_RESULT(wrong version);
493    AC_MSG_ERROR([Install latest simgear first...])],
494   AC_MSG_RESULT(yes)
495 )
496
497 LIBS="$saved_LIBS"
498
499 dnl Check if SimGear was built with Norman JPEG factory support
500 AC_CHECK_HEADER(simgear/screen/jpgfactory.hxx)
501 if test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes"; then
502     AC_CHECK_LIB(jpeg, jpeg_start_compress)
503     if test "x$ac_cv_lib_jpeg_jpeg_start_compress" != "xyes" ; then
504         echo
505         echo "The JPEG factory code was built and installed with SimGear."
506         echo "However it appears the libjpeg is no longer installed."
507         echo "You need to install libjpeg or remove jpgfactory support from"
508         echo "SimGear"
509         echo
510         echo "libjpeg is available at :"
511         echo "  ftp://ftp.uu.net in the directory graphics/jpeg"
512         exit 1
513     fi
514     AC_DEFINE([FG_JPEG_SERVER], 1,
515               [Define to build with jpeg screen shot server])
516 fi
517 AM_CONDITIONAL(ENABLE_JPEG_SERVER, test "x$ac_cv_header_simgear_screen_jpgfactory_hxx" = "xyes")
518
519 AC_LANG_POP
520
521 dnl Check for system installed zlib
522 AC_CHECK_HEADER(zlib.h)
523 if test "x$ac_cv_header_zlib_h" != "xyes"; then
524     echo
525     echo "zlib library not found."
526     echo
527     echo "If your OS does not provide an installable package for zlib"
528     echo "you will have to compile and install it first yourself.  A copy"
529     echo "of zlib-1.1.4.tar.gz is included with SimGear.  You will"
530     echo "have to untar this source code, and follow it's included instructions"
531     echo "to compile and install on your system."
532     echo
533     echo "configure aborted."
534     echo
535 fi
536
537 dnl Checks for header files.
538 AC_HEADER_STDC
539 AC_CHECK_HEADERS( \
540         fcntl.h getopt.h malloc.h memory.h stdlib.h sys/param.h sys/stat.h \
541         sys/time.h sys/timeb.h unistd.h windows.h values.h )
542
543 dnl Checks for typedefs, structures, and compiler characteristics.
544 AC_C_CONST
545 AC_TYPE_SIZE_T
546 AC_HEADER_TIME
547 AC_STRUCT_TM
548
549 dnl Checks for library functions.
550 AC_TYPE_SIGNAL
551 AC_FUNC_VPRINTF
552 AC_CHECK_FUNCS( \
553         ftime gettimeofday timegm memcpy bcopy mktime strstr rand mkfifo \
554         random drand48 setitimer getitimer signal GetLocalTime rint getrusage )
555
556 AM_CONFIG_HEADER(src/Include/config.h)
557
558 AC_CONFIG_FILES([ \
559         Makefile \
560         man/Makefile \
561         man/est-epsilon.1 \
562         man/fgfs.1 \
563         man/fgjs.1 \
564         man/gl-info.1 \
565         man/js_demo.1 \
566         man/pstest.1 \
567         scripts/Makefile \
568         scripts/debug/Makefile \
569         scripts/python/Makefile \
570         src/Makefile \
571         src/Include/Makefile \
572         src/Include/version.h \
573         src/Aircraft/Makefile \
574         src/Airports/Makefile \
575         src/ATC/Makefile \
576         src/Autopilot/Makefile \
577         src/Cockpit/Makefile \
578         src/Cockpit/built_in/Makefile \
579         src/Controls/Makefile \
580         src/Environment/Makefile \
581         src/FDM/Balloon/Makefile \
582         src/FDM/ExternalNet/Makefile \
583         src/FDM/ExternalPipe/Makefile \
584         src/FDM/JSBSim/Makefile \
585         src/FDM/JSBSim/filtersjb/Makefile \
586         src/FDM/LaRCsim/Makefile \
587         src/FDM/UIUCModel/Makefile \
588         src/FDM/YASim/Makefile \
589         src/FDM/Makefile \
590         src/GUI/Makefile \
591         src/Input/Makefile \
592         src/Instrumentation/Makefile \
593         src/Main/Makefile \
594         src/Main/runfgfs \
595         src/Main/runfgfs.bat \
596         src/Model/Makefile \
597         src/MultiPlayer/Makefile \
598         src/Navaids/Makefile \
599         src/Network/Makefile \
600         src/NetworkOLK/Makefile \
601         src/Objects/Makefile \
602         src/Replay/Makefile \
603         src/Scenery/Makefile \
604         src/Scripting/Makefile \
605         src/Sound/Makefile \
606         src/Systems/Makefile \
607         src/Time/Makefile \
608         src/WeatherCM/Makefile \
609         tests/Makefile \
610         utils/Makefile \
611         utils/TerraSync/Makefile \
612 ])
613 AC_OUTPUT
614
615 AC_OUTPUT_COMMANDS([chmod 755 src/Main/runfgfs])
616
617 echo ""
618 echo "Configure Summary"
619 echo "================="
620
621 echo "Prefix: $prefix"
622
623 if test "x$have_plib_psl" = "xyes"; then
624     echo "Plib PSL scripting: yes"
625 else
626     echo "Plib PSL scripting: $fg_psl_string_compile"
627     echo "  You will not be able to run scripts written in PSL"
628     echo "  and some advanced GUI and input features may not"
629     echo "  work.  Download and install the latest CVS version"
630     echo "  of plib if you would like to enable PSL support."
631 fi
632
633 if test "x$with_logging" != "x"; then
634     echo "Debug messages: $with_logging"
635 else
636     echo "Debug messages: yes"
637 fi
638
639 echo -n "Automake version: "
640 automake --version | head -1
641
642 if test "x$with_weathercm" != "x"; then
643     echo "WeatherCM instead of FGEnvironment: $with_weathercm"
644 else
645     echo "Using FGEnvironment"
646 fi
647
648 if test "x$with_multiplayer" != "xno"; then
649     echo "Using default multiplayer support"
650 elif test "x$with_network_olk" != "xno"; then
651     echo "Using Oliver's multi-pilot network support"
652 fi
653
654 if test "x$with_threads" = "xyes"; then
655     echo "threads: yes"
656 else
657     echo "threads: no"
658 fi