ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Windows/configure.ac
Revision: 1.3
Committed: 2005-06-20T08:43:50Z (19 years, 5 months ago) by gbeauche
Branch: MAIN
Changes since 1.2: +522 -510 lines
Log Message:
Check for GTK for the GUI. Also add serial_windows.cpp to SRCS files

File Contents

# User Rev Content
1 gbeauche 1.3 dnl Process this file with autoconf to produce a configure script.
2     dnl Written in 2002 by Christian Bauer et al.
3    
4     AC_INIT([Basilisk II], 1.0, [Christian.Bauer@uni-mainz.de], BasiliskII)
5     AC_CONFIG_SRCDIR(main_windows.cpp)
6     AC_CONFIG_AUX_DIR(../Unix)
7     AC_PREREQ(2.52)
8     AC_CONFIG_HEADER(config.h)
9    
10     dnl Aliases for PACKAGE and VERSION macros.
11     AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE_NAME", [Define this program name.])
12     AC_DEFINE_UNQUOTED(VERSION, "$PACKAGE_VERSION", [Define this program version.])
13    
14     dnl JIT compiler options.
15     AC_ARG_ENABLE(jit-compiler, [ --enable-jit-compiler enable JIT compiler [default=yes]], [WANT_JIT=$enableval], [WANT_JIT=yes])
16     AC_ARG_ENABLE(jit-debug, [ --enable-jit-debug activate native code disassemblers [default=no]], [WANT_JIT_DEBUG=$enableval], [WANT_JIT_DEBUG=no])
17    
18     dnl FPU emulation core.
19     AC_ARG_ENABLE(fpe,
20     [ --enable-fpe=FPE specify which fpu emulator to use [default=auto]],
21     [ case "$enableval" in
22     dnl default is always ieee, if architecture has this fp format
23     auto) FPE_CORE_TEST_ORDER="ieee uae";;
24     ieee) FPE_CORE_TEST_ORDER="ieee";;
25     uae) FPE_CORE_TEST_ORDER="uae";;
26     x86) FPE_CORE_TEST_ORDER="x86";;
27     *) AC_MSG_ERROR([--enable-fpe takes only one of the following values: auto, x86, ieee, uae]);;
28     esac
29     ],
30     [ FPE_CORE_TEST_ORDER="ieee uae"
31     ])
32    
33     dnl External packages.
34     AC_ARG_WITH(gtk, [ --with-gtk use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
35    
36     dnl Addressing modes.
37     AC_ARG_ENABLE(addressing,
38     [ --enable-addressing=AM specify the addressing mode to use [default=fastest]],
39     [ case "$enableval" in
40     direct) ADDRESSING_TEST_ORDER="direct";;
41     banks) ADDRESSING_TEST_ORDER="banks";;
42     fastest)ADDRESSING_TEST_ORDER="direct banks";;
43     *) AC_MSG_ERROR([--enable-addressing takes only one of the following values: fastest, direct, banks]);;
44     esac
45     ],
46     [ ADDRESSING_TEST_ORDER="direct banks"
47     ])
48    
49     dnl Canonical system information.
50     AC_CANONICAL_HOST
51     AC_CANONICAL_TARGET
52    
53     dnl Target CPU type.
54     HAVE_I386=no
55     HAVE_POWERPC=no
56     HAVE_X86_64=no
57     case "$target_cpu" in
58     i386* | i486* | i586* | i686* | i786* ) HAVE_I386=yes;;
59     powerpc* ) HAVE_POWERPC=yes;;
60     x86_64* ) HAVE_X86_64=yes;;
61     esac
62    
63     dnl Checks for programs.
64     AC_PROG_CC
65     AC_PROG_CC_C_O
66     AC_PROG_CPP
67     AC_PROG_CXX
68     AC_PROG_MAKE_SET
69     AC_PROG_EGREP
70     AC_PROG_LN_S
71     AC_CHECK_TOOL(WINDRES, windres)
72    
73     dnl We use GTK+ if possible.
74     if [[ "x$WANT_GTK" = "xyes" ]]; then
75     AM_PATH_GTK_2_0(1.3.15, [], [
76     AC_MSG_WARN([Could not find GTK+ 2.0, disabling user interface.])
77     WANT_GTK=no
78     ])
79     fi
80     AC_SUBST(WANT_GTK)
81    
82     dnl We use 64-bit file size support if possible.
83     AC_SYS_LARGEFILE
84    
85     dnl Checks for header files.
86     AC_HEADER_STDC
87    
88     dnl Checks for typedefs, structures, and compiler characteristics.
89     AC_C_BIGENDIAN
90     AC_C_CONST
91     AC_C_INLINE
92     AC_CHECK_SIZEOF(short, 2)
93     AC_CHECK_SIZEOF(int, 4)
94     AC_CHECK_SIZEOF(long, 4)
95     AC_CHECK_SIZEOF(long long, 8)
96     AC_CHECK_SIZEOF(float, 4)
97     AC_CHECK_SIZEOF(double, 8)
98     AC_CHECK_SIZEOF(long double, 12)
99     AC_CHECK_SIZEOF(void *, 4)
100     AC_TYPE_OFF_T
101     AC_CHECK_TYPES(loff_t)
102     AC_CHECK_TYPES(caddr_t)
103     AC_TYPE_SIZE_T
104    
105     dnl Define a macro that translates a yesno-variable into a C macro definition
106     dnl to be put into the config.h file
107     dnl $1 -- the macro to define
108     dnl $2 -- the value to translate
109     dnl $3 -- template name
110     AC_DEFUN([AC_TRANSLATE_DEFINE], [
111     if [[ "x$2" = "xyes" -o "x$2" = "xguessing yes" ]]; then
112     AC_DEFINE($1, 1, $3)
113     fi
114     ])
115    
116     dnl Check that VirtualAlloc(), VirtualProtect() work
117     AC_CACHE_CHECK([whether VirtualProtect works],
118     ac_cv_VirtualProtect_works, [
119     AC_LANG_SAVE
120     AC_LANG_CPLUSPLUS
121     ac_cv_VirtualProtect_works=yes
122     dnl First the tests that should segfault
123     for test_def in NONE_READ NONE_WRITE READ_WRITE; do
124     AC_TRY_RUN([
125     #define HAVE_WIN32_VM 1
126     #define CONFIGURE_TEST_VM_MAP
127     #define TEST_VM_PROT_$test_def
128     #include "../Unix/vm_alloc.cpp"
129     ], ac_cv_VirtualProtect_works=no, rm -f core,
130     dnl When cross-compiling, assume it works
131     ac_cv_VirtualProtect_works="yes"
132     )
133     done
134     AC_TRY_RUN([
135     #define HAVE_WIN32_VM 1
136     #define CONFIGURE_TEST_VM_MAP
137     #define TEST_VM_PROT_RDWR_WRITE
138     #include "../Unix/vm_alloc.cpp"
139     ], , ac_cv_VirtualProtect_works=no,
140     dnl When cross-compiling, assume it works
141     ac_cv_VirtualProtect_works="yes"
142     )
143     AC_LANG_RESTORE
144     ]
145     )
146     if [[ "x$ac_cv_VirtualProtect_works" = "xyes" ]]; then
147     AC_DEFINE(HAVE_WIN32_VM, 1, [Define if your system has a working Win32-based memory allocator.])
148     else
149     AC_MSG_ERROR([Sorry, Windows VM functions don't work as expected on your system.])
150     fi
151    
152     dnl Check if Windows exceptions are supported.
153     AC_CACHE_CHECK([whether your system supports Windows exceptions],
154     ac_cv_have_win32_exceptions, [
155     AC_LANG_SAVE
156     AC_LANG_CPLUSPLUS
157     AC_TRY_RUN([
158     #define HAVE_WIN32_EXCEPTIONS 1
159     #define CONFIGURE_TEST_SIGSEGV_RECOVERY
160     #include "../Unix/vm_alloc.cpp"
161     #include "../Unix/sigsegv.cpp"
162     ],
163     ac_cv_have_win32_exceptions=yes,
164     ac_cv_have_win32_exceptions=no,
165     dnl When cross-compiling, assume it works
166     ac_cv_have_win32_exceptions="yes"
167     )
168     AC_LANG_RESTORE
169     ]
170     )
171     if [[ "x$ac_cv_have_win32_exceptions" = "xyes" ]]; then
172     AC_DEFINE(HAVE_WIN32_EXCEPTIONS, 1, [Define if your system supports Windows exceptions.])
173     else
174     AC_MSG_ERROR([Sorry, Windows exceptions don't work as expected on your system.])
175     fi
176    
177     dnl We really want VOSF (Video on SEGV Signals) screen updates acceleration
178     AC_DEFINE(ENABLE_VOSF, 1, [Define if using video enabled on SEGV signals.])
179    
180     dnl Determine the addressing mode to use
181     ADDRESSING_MODE=""
182     AC_MSG_CHECKING([for the addressing mode to use])
183     for am in $ADDRESSING_TEST_ORDER; do
184     case $am in
185     direct)
186     dnl Direct addressing mode (constant offset)
187     ADDRESSING_MODE="direct"
188     DEFINES="$DEFINES -DDIRECT_ADDRESSING"
189     break
190     ;;
191     banks)
192     dnl Default addressing mode
193     ADDRESSING_MODE="memory banks"
194     break
195     ;;
196     *)
197     AC_MSG_ERROR([Internal configure.ac script error for $am addressing mode])
198     esac
199     done
200     AC_MSG_RESULT($ADDRESSING_MODE)
201     if [[ "x$ADDRESSING_MODE" = "x" ]]; then
202     AC_MSG_WARN([Sorry, no suitable addressing mode in $ADDRESSING_TEST_ORDER])
203     ADDRESSING_MODE="memory banks"
204     fi
205    
206     dnl Banked Memory Addressing mode is not supported by the JIT compiler
207     if [[ "x$WANT_JIT" = "xyes" -a "x$ADDRESSING_MODE" = "xmemory banks" ]]; then
208     AC_MSG_ERROR([Sorry, the JIT Compiler requires Direct Addressing, at least])
209     fi
210    
211     dnl Check for GAS.
212     HAVE_GAS=no
213     AC_MSG_CHECKING(for GAS .p2align feature)
214     cat >conftest.S << EOF
215     .text
216     .p2align 5
217     EOF
218     if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi
219     AC_MSG_RESULT($HAVE_GAS)
220    
221     dnl Check for GCC 2.7 or higher.
222     HAVE_GCC27=no
223     AC_MSG_CHECKING(for GCC 2.7 or higher)
224     AC_EGREP_CPP(xyes,
225     [#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
226     xyes
227     #endif
228     ], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
229    
230     dnl Check for GCC 3.0 or higher.
231     HAVE_GCC30=no
232     AC_MSG_CHECKING(for GCC 3.0 or higher)
233     AC_EGREP_CPP(xyes,
234     [#if __GNUC__ >= 3
235     xyes
236     #endif
237     ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
238    
239     dnl Select appropriate CPU source and REGPARAM define.
240     ASM_OPTIMIZATIONS=none
241     CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
242    
243     dnl JITSRCS will be emptied later if the JIT is not available
244     dnl Other platforms should define their own set of noflags file variants
245     CAN_JIT=no
246     JITSRCS="compemu1.cpp compemu2.cpp compemu3.cpp compemu4.cpp compemu5.cpp compemu6.cpp compemu7.cpp compemu8.cpp"
247    
248     if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then
249     dnl i386 CPU
250     DEFINES="$DEFINES -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(3)))\""
251     if [[ "x$HAVE_GAS" = "xyes" ]]; then
252     ASM_OPTIMIZATIONS=i386
253     DEFINES="$DEFINES -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE"
254     JITSRCS="cpuemu1_nf.cpp cpuemu2_nf.cpp cpuemu3_nf.cpp cpuemu4_nf.cpp cpuemu5_nf.cpp cpuemu6_nf.cpp cpuemu7_nf.cpp cpuemu8_nf.cpp $JITSRCS"
255     CAN_JIT=yes
256     fi
257     elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_X86_64" = "xyes" ]]; then
258     dnl x86-64 CPU
259     DEFINES="$DEFINES -DUNALIGNED_PROFITABLE"
260     if [[ "x$HAVE_GAS" = "xyes" ]]; then
261     ASM_OPTIMIZATIONS="x86-64"
262     DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS"
263     JITSRCS="cpuemu1_nf.cpp cpuemu2_nf.cpp cpuemu3_nf.cpp cpuemu4_nf.cpp cpuemu5_nf.cpp cpuemu6_nf.cpp cpuemu7_nf.cpp cpuemu8_nf.cpp $JITSRCS"
264     CAN_JIT=yes
265     WANT_33BIT_ADDRESSING=yes
266     fi
267     fi
268    
269     dnl Enable JIT compiler, if possible.
270     if [[ "x$WANT_JIT" = "xyes" -a "x$CAN_JIT" ]]; then
271     JITSRCS="$JITSRCS ../uae_cpu/compiler/compemu_support.cpp ../uae_cpu/compiler/compemu_fpp.cpp compstbl.o cpustbl_nf.o"
272     DEFINES="$DEFINES -DUSE_JIT -DUSE_JIT_FPU"
273    
274     if [[ "x$WANT_JIT_DEBUG" = "xyes" ]]; then
275     if [[ "x$WANT_MON" = "xyes" ]]; then
276     DEFINES="$DEFINES -DJIT_DEBUG=1"
277     else
278     AC_MSG_WARN([cxmon not found, ignoring --enable-jit-debug])
279     WANT_JIT_DEBUG=no
280     fi
281     fi
282    
283     dnl IEEE core is the only FPU emulator to use with the JIT compiler
284     case $FPE_CORE_TEST_ORDER in
285     ieee*) ;;
286     *) AC_MSG_WARN([Forcing use of the IEEE FPU core, as the JIT compiler supports only this one.]) ;;
287     esac
288     FPE_CORE_TEST_ORDER="ieee"
289     else
290     WANT_JIT=no
291     WANT_JIT_DEBUG=no
292     JITSRCS=""
293     fi
294    
295     dnl Utility macro used by next two tests.
296     dnl AC_EXAMINE_OBJECT(C source code,
297     dnl commands examining object file,
298     dnl [commands to run if compile failed]):
299     dnl
300     dnl Compile the source code to an object file; then convert it into a
301     dnl printable representation. All unprintable characters and
302     dnl asterisks (*) are replaced by dots (.). All white space is
303     dnl deleted. Newlines (ASCII 0x10) in the input are preserved in the
304     dnl output, but runs of newlines are compressed to a single newline.
305     dnl Finally, line breaks are forcibly inserted so that no line is
306     dnl longer than 80 columns and the file ends with a newline. The
307     dnl result of all this processing is in the file conftest.dmp, which
308     dnl may be examined by the commands in the second argument.
309     dnl
310     AC_DEFUN([gcc_AC_EXAMINE_OBJECT],
311     [AC_LANG_SAVE
312     AC_LANG_C
313     dnl Next bit cribbed from AC_TRY_COMPILE.
314     cat > conftest.$ac_ext <<EOF
315     [#line __oline__ "configure"
316     #include "confdefs.h"
317     $1
318     ]EOF
319     if AC_TRY_EVAL(ac_compile); then
320     od -c conftest.o |
321     sed ['s/^[0-7]*[ ]*/ /
322     s/\*/./g
323     s/ \\n/*/g
324     s/ [0-9][0-9][0-9]/./g
325     s/ \\[^ ]/./g'] |
326     tr -d '
327     ' | tr -s '*' '
328     ' | fold | sed '$a\
329     ' > conftest.dmp
330     $2
331     ifelse($3, , , else
332     $3
333     )dnl
334     fi
335     rm -rf conftest*
336     AC_LANG_RESTORE])
337    
338     dnl Floating point format probe.
339     dnl The basic concept is the same as the above: grep the object
340     dnl file for an interesting string. We have to watch out for
341     dnl rounding changing the values in the object, however; this is
342     dnl handled by ignoring the least significant byte of the float.
343     dnl
344     dnl Does not know about VAX G-float or C4x idiosyncratic format.
345     dnl It does know about PDP-10 idiosyncratic format, but this is
346     dnl not presently supported by GCC. S/390 "binary floating point"
347     dnl is in fact IEEE (but maybe we should have that in EBCDIC as well
348     dnl as ASCII?)
349     dnl
350     AC_DEFUN([gcc_AC_C_FLOAT_FORMAT],
351     [AC_CACHE_CHECK(floating point format, ac_cv_c_float_format,
352     [gcc_AC_EXAMINE_OBJECT(
353     [/* This will not work unless sizeof(double) == 8. */
354     extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
355    
356     /* This structure must have no internal padding. */
357     struct possibility {
358     char prefix[8];
359     double candidate;
360     char postfix[8];
361     };
362    
363     #define C(cand) { "\nformat:", cand, ":tamrof\n" }
364     struct possibility table [] =
365     {
366     C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
367     C( 3.53802595280598432000e+18), /* D__float - VAX */
368     C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
369     C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
370     C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
371     };],
372     [if grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
373     ac_cv_c_float_format='IEEE (big-endian)'
374     elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
375     ac_cv_c_float_format='IEEE (big-endian)'
376     elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
377     ac_cv_c_float_format='IEEE (little-endian)'
378     elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
379     ac_cv_c_float_format='IEEE (little-endian)'
380     elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
381     ac_cv_c_float_format='VAX D-float'
382     elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
383     ac_cv_c_float_format='PDP-10'
384     elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
385     ac_cv_c_float_format='IBM 370 hex'
386     else
387     AC_MSG_ERROR(Unknown floating point format)
388     fi],
389     [AC_MSG_ERROR(compile failed)])
390     ])
391     # IEEE is the default format. If the float endianness isn't the same
392     # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
393     # (which is a tristate: yes, no, default). This is only an issue with
394     # IEEE; the other formats are only supported by a few machines each,
395     # all with the same endianness.
396     format=IEEE_FLOAT_FORMAT
397     fbigend=
398     case $ac_cv_c_float_format in
399     'IEEE (big-endian)' )
400     if test $ac_cv_c_bigendian = no; then
401     fbigend=1
402     fi
403     ;;
404     'IEEE (little-endian)' )
405     if test $ac_cv_c_bigendian = yes; then
406     fbigend=0
407     fi
408     ;;
409     'VAX D-float' )
410     format=VAX_FLOAT_FORMAT
411     ;;
412     'PDP-10' )
413     format=PDP10_FLOAT_FORMAT
414     ;;
415     'IBM 370 hex' )
416     format=IBM_FLOAT_FORMAT
417     ;;
418     esac
419     AC_DEFINE_UNQUOTED(HOST_FLOAT_FORMAT, $format,
420     [Define to the floating point format of the host machine.])
421     if test -n "$fbigend"; then
422     AC_DEFINE_UNQUOTED(HOST_FLOAT_WORDS_BIG_ENDIAN, $fbigend,
423     [Define to 1 if the host machine stores floating point numbers in
424     memory with the word containing the sign bit at the lowest address,
425     or to 0 if it does it the other way around.
426    
427     This macro should not be defined if the ordering is the same as for
428     multi-word integers.])
429     fi
430     ])
431    
432     dnl Select appropriate FPU source.
433     gcc_AC_C_FLOAT_FORMAT
434     AC_CHECK_HEADERS(ieee754.h ieeefp.h floatingpoint.h nan.h)
435    
436     for fpe in $FPE_CORE_TEST_ORDER; do
437     case $fpe in
438     ieee)
439     case $ac_cv_c_float_format in
440     IEEE*)
441     FPE_CORE="IEEE fpu core"
442     DEFINES="$DEFINES -DFPU_IEEE"
443     FPUSRCS="../uae_cpu/fpu/fpu_ieee.cpp"
444     dnl Math functions not mandated by C99 standard
445     AC_CHECK_FUNCS(isnanl isinfl)
446     dnl Math functions required by C99 standard, but probably not
447     dnl implemented everywhere. In that case, we fall back to the
448     dnl regular variant for doubles.
449     AC_CHECK_FUNCS(logl log10l expl powl fabsl sqrtl)
450     AC_CHECK_FUNCS(sinl cosl tanl sinhl coshl tanhl)
451     AC_CHECK_FUNCS(asinl acosl atanl asinhl acoshl atanhl)
452     AC_CHECK_FUNCS(floorl ceill)
453     break
454     ;;
455     esac
456     ;;
457     x86)
458     if [[ ":$HAVE_GCC27:$HAVE_I386:$HAVE_GAS:" = ":yes:yes:yes:" ]]; then
459     FPE_CORE="i387 fpu core"
460     DEFINES="$DEFINES -DFPU_X86"
461     FPUSRCS="../uae_cpu/fpu/fpu_x86.cpp"
462     break
463     fi
464     ;;
465     uae)
466     FPE_CORE="uae fpu core"
467     DEFINES="$DEFINES -DFPU_UAE"
468     FPUSRCS="../uae_cpu/fpu/fpu_uae.cpp"
469     break
470     ;;
471     *)
472     AC_MSG_ERROR([Internal configure.in script error for $fpe fpu core])
473     ;;
474     esac
475     done
476     if [[ "x$FPE_CORE" = "x" ]]; then
477     AC_MSG_ERROR([Sorry, no suitable FPU core found in $FPE_CORE_TEST_ORDER])
478     fi
479    
480     dnl Check for certain math functions
481     AC_CHECK_FUNCS(atanh)
482     AC_CHECK_FUNCS(isnan isinf finite isnormal signbit)
483    
484     dnl UAE CPU sources for all non-m68k-native architectures.
485     CPUINCLUDES="-I../uae_cpu"
486     CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp $FPUSRCS cpustbl.cpp cpudefs.cpp $CPUSRCS $JITSRCS"
487    
488     dnl We really want SDL for now
489     AC_CHECK_TOOL(sdl_config, sdl-config, [AC_MSG_ERROR([Sorry, you currently need SDL for this port])])
490     SDL_CFLAGS=`$sdl_config --cflags`
491     AC_SUBST(SDL_CFLAGS)
492     SDL_LIBS=`$sdl_config --libs`
493     AC_SUBST(SDL_LIBS)
494     AC_DEFINE(USE_SDL, 1, [Define to enble SDL support])
495     AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support])
496     AC_DEFINE(USE_SDL_AUDIO, 1, [Define to enable SDL audio support])
497    
498     dnl Remove the "-g" option if set for GCC.
499     if [[ "x$HAVE_GCC27" = "xyes" ]]; then
500     CFLAGS=`echo $CFLAGS | sed -e 's/-g\b//g'`
501     CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g\b//g'`
502     fi
503    
504     dnl Generate Makefile.
505     AC_SUBST(DEFINES)
506     AC_SUBST(CPUINCLUDES)
507     AC_SUBST(CPUSRCS)
508     AC_CONFIG_FILES([Makefile])
509     AC_OUTPUT
510    
511     dnl Print summary.
512     echo
513     echo Basilisk II configuration summary:
514     echo
515     echo Use JIT compiler ....................... : $WANT_JIT
516     echo JIT debug mode ......................... : $WANT_JIT_DEBUG
517     echo Floating-Point emulation core .......... : $FPE_CORE
518     echo Assembly optimizations ................. : $ASM_OPTIMIZATIONS
519     echo Addressing mode ........................ : $ADDRESSING_MODE
520     echo GTK user interface ..................... : $WANT_GTK
521     echo
522     echo "Configuration done. Now type \"make\" (or \"gmake\")."