ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/configure.ac
(Generate patch)

Comparing SheepShaver/src/Unix/configure.ac (file contents):
Revision 1.3 by gbeauche, 2004-06-30T08:51:37Z vs.
Revision 1.42 by gbeauche, 2005-12-04T16:26:57Z

# Line 1 | Line 1
1   dnl Process this file with autoconf to produce a configure script.
2   dnl Written in 2002 by Christian Bauer
3  
4 < AC_INIT([SheepShaver], 2.2, [Christian.Bauer@uni-mainz.de], SheepShaver)
4 > AC_INIT([SheepShaver], 2.3, [Christian.Bauer@uni-mainz.de], SheepShaver)
5   AC_CONFIG_SRCDIR(main_unix.cpp)
6   AC_PREREQ(2.52)
7   AC_CONFIG_HEADER(config.h)
# Line 14 | Line 14 | dnl Some systems do not put corefiles in
14   dnl cores for the configure tests since some are intended to dump core.
15   ulimit -c 0
16  
17 + dnl Invite Cygwin users to build within the Windows/ directory
18 + case $target_os in
19 + *cygwin* | *mingw32*)
20 +  AC_MSG_ERROR([You can only build the Windows version from its directory, Cygwin/X11 is not supported.])
21 +  ;;
22 + esac
23 +
24   dnl Options.
25   AC_ARG_ENABLE(jit,          [  --enable-jit            enable JIT compiler [default=yes]], [WANT_JIT=$enableval], [WANT_JIT=yes])
26   AC_ARG_ENABLE(ppc-emulator, [  --enable-ppc-emulator   use the selected PowerPC emulator [default=auto]], [WANT_EMULATED_PPC=$enableval], [WANT_EMULATED_PPC=auto])
27 + AC_ARG_ENABLE(fbdev-dga,    [  --enable-fbdev-dga      use direct frame buffer access via /dev/fb0 [default=yes]], [WANT_FBDEV_DGA=$enableval], [WANT_FBDEV_DGA=yes])
28   AC_ARG_ENABLE(xf86-dga,     [  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes])
29 < AC_ARG_ENABLE(xf86-vidmode, [  --enable-xf86-vidmode   use the XFree86 VidMode extension [default=no]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=no])
29 > AC_ARG_ENABLE(xf86-vidmode, [  --enable-xf86-vidmode   use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes])
30   AC_ARG_ENABLE(vosf,         [  --enable-vosf           enable video on SEGV signals [default=yes]], [WANT_VOSF=$enableval], [WANT_VOSF=yes])
31   AC_ARG_WITH(esd,            [  --with-esd              support ESD for sound under Linux/FreeBSD [default=yes]], [WANT_ESD=$withval], [WANT_ESD=yes])
32 < AC_ARG_WITH(gtk,            [  --with-gtk              use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
32 > AC_ARG_WITH(gtk,            [  --with-gtk              use GTK user interface [default=yes]],
33 >  [case "$withval" in
34 >   gtk1)      WANT_GTK="gtk";;
35 >   gtk|gtk2)  WANT_GTK="$withval";;
36 >   yes)       WANT_GTK="gtk2 gtk";;
37 >   *)         WANT_GTK="no";;
38 >   esac],
39 >  [WANT_GTK="gtk2 gtk"])
40   AC_ARG_WITH(mon,            [  --with-mon              use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes])
41   AC_ARG_WITH(dgcc,           [  --with-dgcc=COMPILER    use C++ COMPILER to compile synthetic opcodes], [DYNGEN_CC=$withval])
42  
43 + dnl Addressing mode
44 + AC_ARG_ENABLE(addressing,
45 +  [  --enable-addressing=AM  set the addressing mode to use [default=real]],
46 +  [case "$enableval" in
47 +   real)        WANT_ADDRESSING_MODE="real";;
48 +   direct)      WANT_ADDRESSING_MODE="direct";;
49 +   direct,0x*)  WANT_ADDRESSING_MODE="direct"; NATMEM_OFFSET=`echo "$enableval" | sed -n '/direct,\(0[[xX]][[0-9A-Fa-f]]*\([[UuLl]]\{1,2\}\)\?\)$/s//\1/p'`;;
50 +   esac],
51 +  [WANT_ADDRESSING_MODE="real"]
52 + )
53 +
54   dnl SDL options.
55   AC_ARG_ENABLE(sdl-static,   [  --enable-sdl-static     use SDL static libraries for linking [default=no]], [WANT_SDL_STATIC=$enableval], [WANT_SDL_STATIC=no])
56   AC_ARG_ENABLE(sdl-video,    [  --enable-sdl-video      use SDL for video graphics [default=no]], [WANT_SDL_VIDEO=$enableval], [WANT_SDL_VIDEO=no])
57 + AC_ARG_ENABLE(sdl-audio,    [  --enable-sdl-audio      use SDL for audio [default=no]], [WANT_SDL_AUDIO=$enableval], [WANT_SDL_AUDIO=no])
58  
59   dnl Checks for programs.
60   AC_PROG_CC
# Line 36 | Line 63 | AC_PROG_CXX
63   AC_PROG_MAKE_SET
64   AC_PROG_INSTALL
65   AC_PROG_EGREP
66 + AC_PATH_PROGS(FILE, [file false])
67 + AC_PATH_PROG(PERL, [perl])
68  
69   dnl Check for PowerPC target CPU.
70   HAVE_PPC=no
# Line 92 | Line 121 | if [[ "x$WANT_MON" = "xyes" ]]; then
121      WANT_MON=no
122    fi
123   fi
124 + AC_SUBST(MONSRCS)
125  
126   dnl Checks for libraries.
127   AC_CHECK_LIB(posix4, sem_init)
128 + AC_CHECK_LIB(m, cos)
129  
130   dnl Do we need SDL?
131   WANT_SDL=no
101 SDL_SUPPORT="none"
132   if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then
133    WANT_SDL=yes
134    WANT_XF86_DGA=no
135    WANT_XF86_VIDMODE=no
136    WANT_FBDEV_DGA=no
137 <  SDL_SUPPORT="video"
137 >  SDL_SUPPORT="$SDL_SUPPORT video"
138 > fi
139 > if [[ "x$WANT_SDL_AUDIO" = "xyes" ]]; then
140 >  WANT_SDL=yes
141 >  SDL_SUPPORT="$SDL_SUPPORT audio"
142   fi
143   if [[ "x$WANT_SDL" = "xyes" ]]; then
144    AC_PATH_PROG(sdl_config, "sdl-config")
# Line 120 | Line 154 | if [[ "x$WANT_SDL" = "xyes" ]]; then
154      LIBS="$LIBS $sdl_libs"
155    else
156      WANT_SDL=no
157 +    WANT_SDL_VIDEO=no
158 +    WANT_SDL_AUDIO=no
159    fi
160 +  SDL_SUPPORT=`echo "$SDL_SUPPORT" | sed -e "s/^ //"`
161 + else
162 +  SDL_SUPPORT="none"
163   fi
164  
165   dnl We need X11, if not using SDL.
166 < if [[ "x$WANT_SDL" = "xno" ]]; then
166 > if [[ "x$WANT_SDL_VIDEO" != "xyes" ]]; then
167    AC_PATH_XTRA
168    if [[ "x$no_x" = "xyes" ]]; then
169      AC_MSG_ERROR([You need X11 to run SheepShaver.])
# Line 137 | Line 176 | fi
176   dnl We need pthreads on non-PowerPC systems. Try libpthread first, then libc_r (FreeBSD), then PTL.
177   HAVE_PTHREADS=yes
178   case $EMULATED_PPC:$target_os in
179 < no:linux*)
179 > no:linux*|no:netbsd*)
180    dnl We do have our own pthread_cancel() implementation
181    AC_DEFINE(HAVE_PTHREAD_CANCEL, 1, [Define if you have the pthread_cancel function.])
182    ;;
# Line 145 | Line 184 | no:linux*)
184    AC_CHECK_LIB(pthread, pthread_create, , [
185      AC_CHECK_LIB(c_r, pthread_create, , [
186        AC_CHECK_LIB(PTL, pthread_create, , [
187 <        AC_MSG_ERROR([You need pthreads to run Basilisk II.])
187 >        dnl XXX remove when no pthreads case is merged
188 >        AC_MSG_ERROR([You need pthreads to run SheepShaver.])
189 >        HAVE_PTHREADS=no
190        ])
191      ])
192    ])
193    AC_CHECK_FUNCS(pthread_cancel)
194 +  AC_CHECK_FUNCS(pthread_cond_init pthread_testcancel)
195    AC_CHECK_FUNCS(pthread_mutexattr_setprotocol)
196    AC_CHECK_FUNCS(pthread_mutexattr_settype)
197    AC_CHECK_FUNCS(pthread_mutexattr_setpshared)
156  if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
157    AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
158  fi
198    dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.
199    SEMSRC=
200    AC_CHECK_FUNCS(sem_init, , [
# Line 165 | Line 204 | no:linux*)
204    ])
205    ;;
206   esac
207 + if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
208 +  AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
209 + fi
210 +
211 + dnl We use FBDev DGA if possible.
212 + if [[ "x$WANT_FBDEV_DGA" = "xyes" ]]; then
213 +  AC_CHECK_HEADER(linux/fb.h, [
214 +    AC_DEFINE(ENABLE_FBDEV_DGA, 1, [Define if using Linux fbdev extension.])
215 +  ], [
216 +    AC_MSG_WARN([Could not find Linux FBDev extension, ignoring --enable-fbdev-dga.])
217 +    WANT_FBDEV_DGA=no
218 +  ])
219 + fi
220  
221   dnl We use XFree86 DGA if possible.
222   if [[ "x$WANT_XF86_DGA" = "xyes" ]]; then
# Line 190 | Line 242 | fi
242  
243   dnl We use GTK+ if possible.
244   UISRCS=../dummy/prefs_editor_dummy.cpp
245 < if [[ "x$WANT_GTK" = "xyes" ]]; then
245 > case "x$WANT_GTK" in
246 > xgtk2*)
247 >  AM_PATH_GTK_2_0(1.3.15, [
248 >    AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.])
249 >    CFLAGS="$CFLAGS $GTK_CFLAGS"
250 >    CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
251 >    LIBS="$LIBS $GTK_LIBS"
252 >    UISRCS=prefs_editor_gtk.cpp
253 >    WANT_GTK=gtk2
254 >  ], [
255 >    case "x${WANT_GTK}x" in
256 >    *gtkx)
257 >      AC_MSG_WARN([Could not find GTK+ 2.0, trying with GTK+ 1.2.])
258 >      WANT_GTK=gtk
259 >      ;;
260 >    *)
261 >      AC_MSG_WARN([Could not find GTK+, disabling user interface.])
262 >      WANT_GTK=no
263 >      ;;
264 >    esac
265 >  ])
266 >  ;;
267 > esac
268 > if [[ "x$WANT_GTK" = "xgtk" ]]; then
269    AM_PATH_GTK(1.2.0, [
270      AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.])
271      CFLAGS="$CFLAGS $GTK_CFLAGS"
# Line 222 | Line 297 | AC_SYS_LARGEFILE
297   dnl Checks for header files.
298   AC_HEADER_STDC
299   AC_HEADER_SYS_WAIT
300 + AC_CHECK_HEADERS(malloc.h stdint.h)
301   AC_CHECK_HEADERS(mach/vm_map.h mach/mach_init.h sys/mman.h)
302 < AC_CHECK_HEADERS(sys/time.h sys/times.h sys/socket.h)
303 < AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h)
304 < AC_CHECK_HEADERS(linux/if.h, [], [], [
305 < #if HAVE_SYS_SOCKET_H
306 < # include <sys/socket.h>
302 > AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h dirent.h)
303 > AC_CHECK_HEADERS(sys/socket.h sys/ioctl.h sys/filio.h sys/bitypes.h sys/wait.h)
304 > AC_CHECK_HEADERS(sys/time.h sys/poll.h sys/select.h arpa/inet.h)
305 > AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [
306 > #ifdef HAVE_SYS_TYPES_H
307 > #include <sys/types.h>
308 > #endif
309 > #ifdef HAVE_SYS_SOCKET_H
310 > #include <sys/socket.h>
311   #endif
312   ])
313 < AC_CHECK_HEADERS(linux/if_tun.h net/if.h net/if_tun.h)
313 > AC_CHECK_HEADERS(AvailabilityMacros.h)
314 > AC_CHECK_HEADERS(IOKit/storage/IOBlockStorageDevice.h)
315 > AC_CHECK_HEADERS(fenv.h)
316  
317   dnl Checks for typedefs, structures, and compiler characteristics.
318   AC_C_BIGENDIAN
# Line 250 | Line 332 | AC_TYPE_SIGNAL
332   AC_HEADER_TIME
333   AC_STRUCT_TM
334  
335 + dnl Check whether sys/socket.h defines type socklen_t.
336 + dnl (extracted from ac-archive/Miscellaneous)
337 + AC_CACHE_CHECK([for socklen_t],
338 +  ac_cv_type_socklen_t, [
339 +  AC_TRY_COMPILE([
340 +    #include <sys/types.h>
341 +    #include <sys/socket.h>
342 +  ], [socklen_t len = 42; return 0;],
343 +  ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no,
344 +  dnl When cross-compiling, do not assume anything.
345 +  ac_cv_type_socklen_t="guessing no"
346 +  )
347 + ])
348 + if [[ "x$ac_cv_type_socklen_t" != "xyes" ]]; then
349 +  AC_DEFINE(socklen_t, int, [Define to 'int' if <sys/types.h> doesn't define.])
350 + fi
351 +
352   dnl Check whether struct sigaction has sa_restorer member.
353   AC_CACHE_CHECK([whether struct sigaction has sa_restorer],
354    ac_cv_signal_sa_restorer, [
# Line 266 | Line 365 | if [[ "x$ac_cv_signal_sa_restorer" = "xy
365   fi
366  
367   dnl Checks for library functions.
368 < AC_CHECK_FUNCS(strdup strlcpy cfmakeraw)
368 > AC_CHECK_FUNCS(strdup strerror strlcpy cfmakeraw)
369   AC_CHECK_FUNCS(nanosleep)
370   AC_CHECK_FUNCS(sigaction signal)
371   AC_CHECK_FUNCS(mmap mprotect munmap)
372   AC_CHECK_FUNCS(vm_allocate vm_deallocate vm_protect)
373 < AC_CHECK_FUNCS(posix_memalign memalign valloc)
373 > AC_CHECK_FUNCS(exp2f log2f exp2 log2)
374 > AC_CHECK_FUNCS(floorf roundf ceilf truncf floor round ceil trunc)
375 > AC_CHECK_FUNCS(poll inet_aton)
376  
377   dnl Darwin seems to define mach_task_self() instead of task_self().
378   AC_CHECK_FUNCS(mach_task_self task_self)
# Line 283 | Line 384 | no:linux*)
384    ;;
385   *:*)
386    AC_SEARCH_LIBS(clock_gettime, [rt posix4])
387 <  AC_CHECK_FUNCS(clock_gettime)
387 >  AC_CHECK_FUNCS(clock_gettime clock_nanosleep)
388    ;;
389   esac
390  
391 + dnl Check for headers and functions related to pty support (sshpty.c)
392 + dnl From openssh-3.2.2p1 configure.ac
393 + AC_CHECK_HEADERS(strings.h login.h sys/bsdtty.h sys/stat.h util.h pty.h)
394 + AC_CHECK_FUNCS(_getpty vhangup strlcpy)
395 +
396 + case "$host" in
397 + *-*-hpux10.26)
398 +        disable_ptmx_check=yes
399 +        ;;
400 + *-*-linux*)
401 +        no_dev_ptmx=1
402 +        ;;
403 + mips-sony-bsd|mips-sony-newsos4)
404 +        AC_DEFINE(HAVE_NEWS4, 1, [Define if you are on NEWS-OS (additions from openssh-3.2.2p1, for sshpty.c).])
405 +        ;;
406 + *-*-sco3.2v4*)
407 +        no_dev_ptmx=1
408 +        ;;
409 + *-*-sco3.2v5*)
410 +        no_dev_ptmx=1
411 +        ;;
412 + *-*-cygwin*)
413 +        no_dev_ptmx=1
414 +        ;;
415 + esac
416 +
417 + if test -z "$no_dev_ptmx" ; then
418 +        if test "x$disable_ptmx_check" != "xyes" ; then
419 +                AC_CHECK_FILE([/dev/ptmx],
420 +                        [
421 +                                AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX, 1, [Define if you have /dev/ptmx.])
422 +                                have_dev_ptmx=1
423 +                        ]
424 +                )
425 +        fi
426 + fi
427 + AC_CHECK_FILE([/dev/ptc],
428 +        [
429 +                AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC, 1, [Define if you have /dev/ptc.])
430 +                have_dev_ptc=1
431 +        ]
432 + )
433 + dnl (end of code from openssh-3.2.2p1 configure.ac)
434 +
435   dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES)
436   AC_DEFUN(AC_CHECK_FRAMEWORK, [
437    AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1])dnl
# Line 308 | Line 453 | AC_DEFUN(AC_CHECK_FRAMEWORK, [
453   dnl Check for some MacOS X frameworks
454   AC_CHECK_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>])
455   AC_CHECK_FRAMEWORK(IOKit, [#include <IOKit/IOKitLib.h>])
456 + AC_CHECK_FRAMEWORK(CoreFoundation, [#include <CoreFoundation/CoreFoundation.h>])
457  
458   dnl Select system-dependant sources.
459   SERIALSRC=serial_unix.cpp
460   ETHERSRC=../dummy/ether_dummy.cpp
461   SCSISRC=../dummy/scsi_dummy.cpp
462   AUDIOSRC=../dummy/audio_dummy.cpp
463 + EXTFSSRC=extfs_unix.cpp
464   EXTRASYSSRCS=
465   case "$target_os" in
466   linux*)
467 <  ETHERSRC=Linux/ether_linux.cpp
467 >  ETHERSRC=ether_unix.cpp
468    AUDIOSRC=audio_oss_esd.cpp
469    SCSISRC=Linux/scsi_linux.cpp
470    if [[ "x$EMULATED_PPC" = "xno" ]]; then
471 <    EXTRASYSSRCS="Linux/paranoia.cpp Linux/sheepthreads.c Linux/asm_linux.S"
471 >    EXTRASYSSRCS="paranoia.cpp Linux/sheepthreads.c ppc_asm.S"
472 >  fi
473 >  ;;
474 > freebsd*)
475 >  ETHERSRC=ether_unix.cpp
476 >  ;;
477 > netbsd*)
478 >  ETHERSRC=ether_unix.cpp
479 >  if [[ "x$EMULATED_PPC" = "xno" ]]; then
480 >    EXTRASYSSRCS="paranoia.cpp NetBSD/sheepthreads.c ppc_asm.S"
481    fi
482    ;;
483   darwin*)
484 +  ETHERSRC=ether_unix.cpp
485    if [[ "x$EMULATED_PPC" = "xno" ]]; then
486 <    EXTRASYSSRCS="Darwin/paranoia.cpp Linux/asm_linux.S"
486 >    EXTRASYSSRCS="paranoia.cpp ppc_asm.S"
487    fi
488 <  if [[ "x$ac_cv_framework_IOKit" = "xyes" ]]; then
488 >  if [[ "x$ac_cv_framework_IOKit" = "xyes" -a "x$ac_cv_framework_CoreFoundation" = "xyes" ]]; then
489      EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/sys_darwin.cpp"
490    fi
491 +  if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
492 +    EXTFSSRC=../MacOSX/extfs_macosx.mm
493 +  fi
494 +  ;;
495 + irix*)
496 +  ETHERSRC=ether_unix.cpp
497 +  AUDIOSRC=Irix/audio_irix.cpp
498 +  LIBS="$LIBS -laudio"
499 +  WANT_ESD=no
500    ;;
501   esac
502  
503 + dnl Is the slirp library supported?
504 + if [[ "x$ETHERSRC" = "xether_unix.cpp" ]]; then
505 +  AC_DEFINE(HAVE_SLIRP, 1, [Define if slirp library is supported])
506 +  SLIRP_SRCS="\
507 +    ../slirp/bootp.c     ../slirp/ip_output.c  ../slirp/tcp_input.c  \
508 +    ../slirp/cksum.c     ../slirp/mbuf.c       ../slirp/tcp_output.c \
509 +    ../slirp/debug.c     ../slirp/misc.c       ../slirp/tcp_subr.c   \
510 +    ../slirp/if.c        ../slirp/sbuf.c       ../slirp/tcp_timer.c  \
511 +    ../slirp/ip_icmp.c   ../slirp/slirp.c      ../slirp/tftp.c       \
512 +    ../slirp/ip_input.c  ../slirp/socket.c     ../slirp/udp.c"
513 + fi
514 + AC_SUBST(SLIRP_SRCS)
515 +
516   dnl SDL overrides
517   if [[ "x$WANT_SDL" = "xyes" ]]; then
518    AC_DEFINE(USE_SDL, 1, [Define to enble SDL support.])
519   fi
520   if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then
342  VIDEOSRCS="../SDL/video_sdl.cpp"
521    AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support.])
522 +  VIDEOSRCS="../SDL/video_sdl.cpp"
523    KEYCODES="../SDL/keycodes"
524    if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
525      EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/clip_macosx.cpp"
# Line 352 | Line 531 | else
531    KEYCODES="keycodes"
532    EXTRASYSSRCS="$EXTRASYSSRCS clip_unix.cpp"
533   fi
534 + if [[ "x$WANT_SDL_AUDIO" = "xyes" ]]; then
535 +  AC_DEFINE(USE_SDL_AUDIO, 1, [Define to enable SDL audio support])
536 +  AUDIOSRC="../SDL/audio_sdl.cpp"
537 + fi
538  
539 < SYSSRCS="$VIDEOSRCS $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS"
539 > SYSSRCS="$VIDEOSRCS $EXTFSSRC $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $EXTRASYSSRCS"
540  
541   dnl Define a macro that translates a yesno-variable into a C macro definition
542   dnl to be put into the config.h file
# Line 657 | Line 840 | fi
840   AC_TRANSLATE_DEFINE(HAVE_MACH_EXCEPTIONS, "$ac_cv_have_mach_exceptions",
841    [Define if your system supports Mach exceptions.])
842  
843 + dnl Check if Windows exceptions are supported.
844 + AC_CACHE_CHECK([whether your system supports Windows exceptions],
845 +  ac_cv_have_win32_exceptions, [
846 +  AC_LANG_SAVE
847 +  AC_LANG_CPLUSPLUS
848 +  AC_TRY_RUN([
849 +    #define HAVE_WIN32_EXCEPTIONS 1
850 +    #define CONFIGURE_TEST_SIGSEGV_RECOVERY
851 +    #include "vm_alloc.cpp"
852 +    #include "sigsegv.cpp"
853 +  ], [
854 +  sigsegv_recovery=win32
855 +  ac_cv_have_win32_exceptions=yes
856 +  ],
857 +  ac_cv_have_win32_exceptions=no,
858 +  dnl When cross-compiling, do not assume anything.
859 +  ac_cv_have_win32_exceptions=no
860 +  )
861 +  AC_LANG_RESTORE
862 +  ]
863 + )
864 + AC_TRANSLATE_DEFINE(HAVE_WIN32_EXCEPTIONS, "$ac_cv_have_win32_exceptions",
865 +  [Define if your system supports Windows exceptions.])
866 +
867   dnl Otherwise, check if extended signals are supported.
868   if [[ -z "$sigsegv_recovery" ]]; then
869    AC_CACHE_CHECK([whether your system supports extended signal handlers],
# Line 743 | Line 950 | else
950      WANT_VOSF=no
951   fi
952  
953 + dnl Check addressing mode to use
954 + AC_MSG_CHECKING([for addressing mode to use])
955 + if [[ "$EMULATED_PPC" != "yes" ]]; then
956 +  if [[ "$WANT_ADDRESSING_MODE" != "real" ]]; then
957 +    AC_MSG_WARN([Running in native PowerPC mode, force use of Real Addressing.])
958 +    WANT_ADDRESSING_MODE="real"
959 +  fi
960 + fi
961 + if [[ "$WANT_ADDRESSING_MODE" = "direct" ]]; then
962 +  if [[ -n "$NATMEM_OFFSET" ]]; then
963 +    NATMEM_OFFSET_DEF="-DNATMEM_OFFSET=$NATMEM_OFFSET"
964 +  fi
965 +  AC_LANG_SAVE
966 +  AC_LANG_CPLUSPLUS
967 +  cat confdefs.h > conftest.$ac_ext
968 +  cat >> conftest.$ac_ext << EOF
969 + #include <stdio.h>
970 + #include <string.h>
971 + #include "vm_alloc.cpp"
972 +
973 + int main(void)
974 + {
975 +        if (vm_init() < 0)
976 +                return 1;
977 +
978 +        static const struct {
979 +                unsigned long base;
980 +                unsigned int size;
981 +        } ranges[[]] = {
982 +                { 0x00000000, 0x0003000 },
983 +                { 0x10000000, 0x2000000 },
984 +                { 0x40800000, 0x0400000 },
985 +                { 0x68070000, 0x0010000 },
986 +                { 0x69000000, 0x0080000 },
987 +                { 0x68ffe000, 0x0002000 },
988 +                { 0x5fffe000, 0x0002000 },
989 +                { 0x60000000, 0x0040000 },
990 +        };
991 +        const int n_ranges = sizeof(ranges)/ sizeof(ranges[[0]]);
992 +
993 + #ifdef NATMEM_OFFSET
994 +        unsigned long ofs = NATMEM_OFFSET;
995 + #else
996 +        for (unsigned long ofs = 0x10000000; ofs <= 0x90000000; ofs += 0x10000000)
997 + #endif
998 +        for (int i = 0; i < n_ranges; i++) {
999 +                char *m = (char *)(ranges[[i]].base + ofs);
1000 +                if (vm_acquire_fixed(m, ranges[[i]].size) != 0)
1001 +                        break;
1002 +                memset(m, 0, ranges[[i]].size);
1003 +                vm_release(m, ranges[[i]].size);
1004 +                if (i == n_ranges - 1) {
1005 +                        if (sizeof(void *) == 8 && ofs > 0xffffffff)
1006 +                                printf("0x%lxul\n", ofs);
1007 +                        else
1008 +                                printf("0x%08x\n", ofs);
1009 +                        return 0;
1010 +                }
1011 +        }
1012 +
1013 +        vm_exit();
1014 +        return 1;
1015 + }
1016 + EOF
1017 +  doit='$CXX conftest.$ac_ext -o conftest.$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS $LIBS $NATMEM_OFFSET_DEF >& AS_MESSAGE_LOG_FD'
1018 +  if AC_TRY_EVAL(doit); then
1019 +    NATMEM_OFFSET=`./conftest.$ac_exeext`
1020 +  else
1021 +    NATMEM_OFFSET=
1022 +  fi
1023 +  rm -f conftest*
1024 +  AC_LANG_RESTORE
1025 +
1026 +  if [[ -z "$NATMEM_OFFSET" ]]; then
1027 +    AC_MSG_ERROR([could not determine a sensible NATMEM_OFFSET value])
1028 +  else
1029 +    WANT_ADDRESSING_MODE="direct,$NATMEM_OFFSET"
1030 +    AC_DEFINE_UNQUOTED(NATMEM_OFFSET, $NATMEM_OFFSET,
1031 +      [Define constant offset for Mac address translation])
1032 +  fi
1033 + fi
1034 + AC_MSG_RESULT($WANT_ADDRESSING_MODE)
1035 +
1036 + dnl Utility macro used by next two tests.
1037 + dnl AC_EXAMINE_OBJECT(C source code,
1038 + dnl     commands examining object file,
1039 + dnl     [commands to run if compile failed]):
1040 + dnl
1041 + dnl Compile the source code to an object file; then convert it into a
1042 + dnl printable representation.  All unprintable characters and
1043 + dnl asterisks (*) are replaced by dots (.).  All white space is
1044 + dnl deleted.  Newlines (ASCII 0x10) in the input are preserved in the
1045 + dnl output, but runs of newlines are compressed to a single newline.
1046 + dnl Finally, line breaks are forcibly inserted so that no line is
1047 + dnl longer than 80 columns and the file ends with a newline.  The
1048 + dnl result of all this processing is in the file conftest.dmp, which
1049 + dnl may be examined by the commands in the second argument.
1050 + dnl
1051 + AC_DEFUN([gcc_AC_EXAMINE_OBJECT],
1052 + [AC_LANG_SAVE
1053 + AC_LANG_C
1054 + dnl Next bit cribbed from AC_TRY_COMPILE.
1055 + cat > conftest.$ac_ext <<EOF
1056 + [#line __oline__ "configure"
1057 + #include "confdefs.h"
1058 + $1
1059 + ]EOF
1060 + if AC_TRY_EVAL(ac_compile); then
1061 +  od -c conftest.o |
1062 +    sed ['s/^[0-7]*[    ]*/ /
1063 +          s/\*/./g
1064 +          s/ \\n/*/g
1065 +          s/ [0-9][0-9][0-9]/./g
1066 +          s/  \\[^ ]/./g'] |
1067 +    tr -d '
1068 + ' | tr -s '*' '
1069 + ' | fold | sed '$a\
1070 + ' > conftest.dmp
1071 +  $2
1072 + ifelse($3, , , else
1073 +  $3
1074 + )dnl
1075 + fi
1076 + rm -rf conftest*
1077 + AC_LANG_RESTORE])
1078 +
1079 + dnl Floating point format probe.
1080 + dnl The basic concept is the same as the above: grep the object
1081 + dnl file for an interesting string.  We have to watch out for
1082 + dnl rounding changing the values in the object, however; this is
1083 + dnl handled by ignoring the least significant byte of the float.
1084 + dnl
1085 + dnl Does not know about VAX G-float or C4x idiosyncratic format.
1086 + dnl It does know about PDP-10 idiosyncratic format, but this is
1087 + dnl not presently supported by GCC.  S/390 "binary floating point"
1088 + dnl is in fact IEEE (but maybe we should have that in EBCDIC as well
1089 + dnl as ASCII?)
1090 + dnl
1091 + AC_DEFUN([gcc_AC_C_FLOAT_FORMAT],
1092 + [AC_CACHE_CHECK(floating point format, ac_cv_c_float_format,
1093 + [gcc_AC_EXAMINE_OBJECT(
1094 + [/* This will not work unless sizeof(double) == 8.  */
1095 + extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
1096 +
1097 + /* This structure must have no internal padding.  */
1098 + struct possibility {
1099 +  char prefix[8];
1100 +  double candidate;
1101 +  char postfix[8];
1102 + };
1103 +
1104 + #define C(cand) { "\nformat:", cand, ":tamrof\n" }
1105 + struct possibility table [] =
1106 + {
1107 +  C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
1108 +  C( 3.53802595280598432000e+18), /* D__float - VAX */
1109 +  C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
1110 +  C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
1111 +  C(-5.22995989424860458374e+10)  /* IBMHEXFP - s/390 format, EBCDIC */
1112 + };],
1113 + [if   grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
1114 +    ac_cv_c_float_format='IEEE (big-endian)'
1115 +  elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
1116 +    ac_cv_c_float_format='IEEE (big-endian)'
1117 +  elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
1118 +    ac_cv_c_float_format='IEEE (little-endian)'
1119 +  elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
1120 +    ac_cv_c_float_format='IEEE (little-endian)'
1121 +  elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
1122 +    ac_cv_c_float_format='VAX D-float'
1123 +  elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
1124 +    ac_cv_c_float_format='PDP-10'
1125 +  elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
1126 +    ac_cv_c_float_format='IBM 370 hex'
1127 +  else
1128 +    AC_MSG_ERROR(Unknown floating point format)
1129 +  fi],
1130 +  [AC_MSG_ERROR(compile failed)])
1131 + ])
1132 + # IEEE is the default format.  If the float endianness isn't the same
1133 + # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
1134 + # (which is a tristate: yes, no, default).  This is only an issue with
1135 + # IEEE; the other formats are only supported by a few machines each,
1136 + # all with the same endianness.
1137 + format=IEEE_FLOAT_FORMAT
1138 + fbigend=
1139 + case $ac_cv_c_float_format in
1140 +    'IEEE (big-endian)' )
1141 +        if test $ac_cv_c_bigendian = no; then
1142 +            fbigend=1
1143 +        fi
1144 +        ;;
1145 +    'IEEE (little-endian)' )
1146 +        if test $ac_cv_c_bigendian = yes; then
1147 +            fbigend=0
1148 +        fi
1149 +        ;;
1150 +    'VAX D-float' )
1151 +        format=VAX_FLOAT_FORMAT
1152 +        ;;
1153 +    'PDP-10' )
1154 +        format=PDP10_FLOAT_FORMAT
1155 +        ;;
1156 +    'IBM 370 hex' )
1157 +        format=IBM_FLOAT_FORMAT
1158 +        ;;
1159 + esac
1160 + AC_DEFINE_UNQUOTED(HOST_FLOAT_FORMAT, $format,
1161 +  [Define to the floating point format of the host machine.])
1162 + if test -n "$fbigend"; then
1163 +        AC_DEFINE_UNQUOTED(HOST_FLOAT_WORDS_BIG_ENDIAN, $fbigend,
1164 +  [Define to 1 if the host machine stores floating point numbers in
1165 +   memory with the word containing the sign bit at the lowest address,
1166 +   or to 0 if it does it the other way around.
1167 +
1168 +   This macro should not be defined if the ordering is the same as for
1169 +   multi-word integers.])
1170 + fi
1171 + ])
1172 +
1173 + dnl Check for host float format
1174 + gcc_AC_C_FLOAT_FORMAT
1175 +
1176   dnl Platform specific binary postprocessor
1177   AC_PATH_PROG(BLESS, "true")
1178   if [[ "x$ac_cv_pagezero_hack" = "xyes" ]]; then
# Line 753 | Line 1183 | fi
1183   dnl Check for GCC 2.7 or higher.
1184   HAVE_GCC27=no
1185   AC_MSG_CHECKING(for GCC 2.7 or higher)
1186 < AC_EGREP_CPP(xyes,
1187 < [#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
1188 <  xyes
1189 < #endif
1190 < ], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
1186 > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5)
1187 >                                     # error gcc < 2.7
1188 >                                     #endif
1189 >                                   ]])],
1190 >                  [AC_MSG_RESULT(yes); HAVE_GCC27=yes],
1191 >                  [AC_MSG_RESULT(no)])
1192  
1193   dnl Check for GCC 3.0 or higher.
1194   HAVE_GCC30=no
1195   AC_MSG_CHECKING(for GCC 3.0 or higher)
1196 < AC_EGREP_CPP(xyes,
1197 < [#if __GNUC__ >= 3
1198 <  xyes
1199 < #endif
1200 < ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
1196 > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ >= 3)
1197 >                                     # error gcc < 3
1198 >                                     #endif
1199 >                                   ]])],
1200 >                  [AC_MSG_RESULT(yes); HAVE_GCC30=yes],
1201 >                  [AC_MSG_RESULT(no)])
1202  
1203   dnl Check for ICC.
1204   AC_MSG_CHECKING(for ICC)
# Line 776 | Line 1208 | if $CXX -V -v 2>&1 | grep -q "Intel(R) C
1208   fi
1209   AC_MSG_RESULT($HAVE_ICC)
1210  
1211 < # Test if the compiler can generate ELF objects
1212 < AC_CACHE_CHECK([whether the compiler can generate ELF objects],
1213 <  ac_cv_elf_objects, [
1211 > dnl Determine the generated object format
1212 > AC_CACHE_CHECK([the format of compiler generated objects],
1213 >  ac_cv_object_format, [
1214    echo 'int i;' > conftest.$ac_ext
1215 <  ac_cv_elf_objects=no
1215 >  ac_cv_object_format=no
1216    if AC_TRY_EVAL(ac_compile); then
1217      case `/usr/bin/file conftest.$ac_objext` in
1218      *"ELF"*)
1219 <      ac_cv_elf_objects=yes
1219 >      ac_cv_object_format=elf
1220 >      ;;
1221 >    *"Mach-O"*)
1222 >      ac_cv_object_format=mach
1223 >      ;;
1224 >    *)
1225 >      ac_cv_object_format=unknown
1226        ;;
1227      esac
1228    fi
1229    rm -rf conftest*
1230   ])
1231 < ELF_OBJECTS=$ac_cv_elf_objects
1231 >
1232 > dnl Add -fno-strict-aliasing for slirp sources
1233 > if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1234 >  SAVED_CFLAGS="$CFLAGS"
1235 >  CFLAGS="$CFLAGS -fno-strict-aliasing"
1236 >  AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
1237 >    ac_cv_gcc_no_strict_aliasing, [
1238 >    AC_TRY_COMPILE([],[],
1239 >      [ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")],
1240 >      [ac_cv_gcc_no_strict_aliasing=no])
1241 >  ])
1242 >  CFLAGS="$SAVED_CFLAGS"
1243 > fi
1244 >
1245 > dnl Add -mdynamic-no-pic for MacOS X (XXX icc10 will support MacOS X)
1246 > if [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then
1247 >  SAVED_CFLAGS="$CFLAGS"
1248 >  CFLAGS="$CFLAGS -mdynamic-no-pic"
1249 >  AC_CACHE_CHECK([whether the compiler supports -mdynamic-no-pic],
1250 >    ac_cv_gcc_mdynamic_no_pic, [
1251 >    AC_TRY_COMPILE([],[],[ac_cv_gcc_mdynamic_no_pic=yes],[ac_cv_gcc_mdynamic_no_pic=no])
1252 >  ])
1253 >  if [[ "x$ac_cv_gcc_mdynamic_no_pic" = "xyes" ]]; then
1254 >    CXXFLAGS="$CXXFLAGS -mdynamic-no-pic"
1255 >  else
1256 >    CFLAGS="$SAVED_CFLAGS"
1257 >  fi
1258 > fi
1259  
1260   dnl CPU emulator sources
1261   if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1262    CPUSRCS="\
1263 +    ../kpx_cpu/src/mathlib/ieeefp.cpp \
1264 +    ../kpx_cpu/src/mathlib/mathlib.cpp \
1265      ../kpx_cpu/src/cpu/ppc/ppc-cpu.cpp \
1266      ../kpx_cpu/src/cpu/ppc/ppc-decode.cpp \
1267      ../kpx_cpu/src/cpu/ppc/ppc-execute.cpp \
# Line 805 | Line 1272 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1272    if [[ "x$WANT_JIT" = "xyes" ]]; then
1273      AC_CACHE_CHECK([whether dyngen can be used],
1274        ac_cv_use_dyngen, [
1275 <      case $host_cpu:$ELF_OBJECTS in
1276 <      powerpc:yes)
1275 >      case $host_cpu:$ac_cv_object_format in
1276 >      powerpc:elf)
1277 >        ac_cv_use_dyngen=yes
1278 >        ;;
1279 >      x86_64:elf)
1280          ac_cv_use_dyngen=yes
1281          ;;
1282 <      x86_64:yes)
1282 >      i?86:elf)
1283          ac_cv_use_dyngen=yes
1284          ;;
1285 <      i?86:yes)
1285 >      powerpc:mach)
1286 >        ac_cv_use_dyngen=yes
1287 >        ;;
1288 >      i?86:mach)
1289          ac_cv_use_dyngen=yes
1290          ;;
1291        *:*)
# Line 832 | Line 1305 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1305            done
1306          fi
1307        fi
1308 <      if [[ -z "$DYNGEN_CC" ]] || ! { echo '#include <limits>' | $DYNGEN_CC -xc++ -c -o /dev/null - >& /dev/null; }; then
1308 >      if [[ -z "$DYNGEN_CC" ]]; then
1309          ac_cv_use_dyngen=no
1310        fi
1311      ])
# Line 840 | Line 1313 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1313        case $host_cpu in
1314        i?86)
1315          DYNGEN_OP_FLAGS="-fomit-frame-pointer -mpreferred-stack-boundary=2"
843        if [[ "x$HAVE_GCC30" = "xyes" ]]; then
844          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -falign-functions=0"
845        else
846          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -malign-functions=0"
847        fi
848        saved_CPPFLAGS=$CPPFLAGS
849        CPPFLAGS="$CPPFLAGS -mmmx"
850        AC_CHECK_HEADERS(mmintrin.h,  [DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -mmmx"])
851        CPPFLAGS="$CPPFLAGS -msse"
852        AC_CHECK_HEADERS(xmmintrin.h, [DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -msse"])
853        CPPFLAGS="$CPPFLAGS -msse2"
854        AC_CHECK_HEADERS(emmintrin.h, [DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -msse2"])
855        CPPFLAGS=$saved_CPPFLAGS
1316          ;;
1317 <      x86_64)
1318 <        AC_CHECK_HEADERS(mmintrin.h xmmintrin.h emmintrin.h)
1317 >      powerpc)
1318 >        if [[ "x$ac_cv_object_format" = "xmach" ]]; then
1319 >          DYNGEN_OP_FLAGS="-mdynamic-no-pic"
1320 >        fi
1321          ;;
1322        esac
1323 <      DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-limit=10000"
1323 >      if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1324 >        DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -falign-functions=0"
1325 >      else
1326 >        DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -malign-functions=0"
1327 >      fi
1328 >      DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-functions -finline-limit=10000 -fno-exceptions -g0"
1329        if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1330          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -fno-reorder-blocks -fno-optimize-sibling-calls"
1331        fi
# Line 884 | Line 1351 | if [[ "x$ac_cv_use_dyngen" = "xyes" ]];
1351    AC_CACHE_CHECK([whether static data regions are executable],
1352      ac_cv_have_static_data_exec, [
1353      AC_TRY_RUN([int main(void) {
1354 < #if defined(__powerpc__)
1354 > #if defined(__powerpc__) || defined(__ppc__)
1355        static unsigned int p[8] = {0x4e800020,};
1356        asm volatile("dcbst 0,%0" : : "r" (p) : "memory");
1357        asm volatile("sync" : : : "memory");
# Line 900 | Line 1367 | if [[ "x$ac_cv_use_dyngen" = "xyes" ]];
1367      ac_cv_have_static_data_exec=no
1368      )
1369    ])
1370 + else
1371 +  ac_cv_use_dyngen=no
1372   fi
1373   AC_TRANSLATE_DEFINE(HAVE_STATIC_DATA_EXEC, "$ac_cv_have_static_data_exec",
1374    [Define if your system marks static data pages as executable.])
# Line 909 | Line 1378 | if [[ "x$WANT_JIT" = "xyes" ]]; then
1378   fi
1379  
1380   dnl Generate Makefile.
1381 + AC_SUBST(PERL)
1382 + AC_SUBST(USE_DYNGEN, [$ac_cv_use_dyngen])
1383   AC_SUBST(DYNGENSRCS)
1384   AC_SUBST(DYNGEN_CC)
1385   AC_SUBST(DYNGEN_OP_FLAGS)
# Line 916 | Line 1387 | AC_SUBST(SYSSRCS)
1387   AC_SUBST(CPUSRCS)
1388   AC_SUBST(BLESS)
1389   AC_SUBST(KEYCODES)
1390 < AC_OUTPUT(Makefile)
1390 > AC_OUTPUT([
1391 > Makefile
1392 > ../MacOSX/Info.plist
1393 > ])
1394  
1395   dnl Print summary.
1396   echo
1397   echo SheepShaver configuration summary:
1398   echo
1399   echo SDL support ...................... : $SDL_SUPPORT
1400 + echo FBDev DGA support ................ : $WANT_FBDEV_DGA
1401   echo XFree86 DGA support .............. : $WANT_XF86_DGA
1402   echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE
1403   echo Using PowerPC emulator ........... : $EMULATED_PPC
# Line 931 | Line 1406 | echo Enable video on SEGV signals .....
1406   echo ESD sound support ................ : $WANT_ESD
1407   echo GTK user interface ............... : $WANT_GTK
1408   echo mon debugger support ............. : $WANT_MON
1409 + echo Addressing mode .................. : $WANT_ADDRESSING_MODE
1410   echo Bad memory access recovery type .. : $sigsegv_recovery
1411   echo
1412   echo "Configuration done. Now type \"make\"."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines