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

Comparing BasiliskII/src/Unix/configure.ac (file contents):
Revision 1.20 by gbeauche, 2003-08-17T11:58:00Z vs.
Revision 1.74 by asvitkine, 2008-12-09T18:03:35Z

# Line 7 | Line 7 | AC_PREREQ(2.52)
7   AC_CONFIG_HEADER(config.h)
8  
9   dnl Aliases for PACKAGE and VERSION macros.
10 < AC_DEFINE(PACKAGE, PACKAGE_NAME, [Alias to PACKAGE for i18n.])
11 < AC_DEFINE(VERSION, PACKAGE_VERSION, [Alias to VERSION for i18n.])
10 > AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE_NAME", [Define this program name.])
11 > AC_DEFINE_UNQUOTED(VERSION, "$PACKAGE_VERSION", [Define this program version.])
12 >
13 > dnl Some systems do not put corefiles in the currect directory, avoid saving
14 > dnl cores for the configure tests since some are intended to dump core.
15 > ulimit -c 0
16 >
17 > AC_ARG_ENABLE(standalone-gui,[  --enable-standalone-gui enable a standalone GUI prefs editor [default=no]], [WANT_STANDALONE_GUI=$enableval], [WANT_STANDALONE_GUI=no])
18  
19   dnl Video options.
20   AC_ARG_ENABLE(xf86-dga,      [  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes])
# Line 16 | Line 22 | AC_ARG_ENABLE(xf86-vidmode,  [  --enable
22   AC_ARG_ENABLE(fbdev-dga,     [  --enable-fbdev-dga      use direct frame buffer access via /dev/fb [default=yes]], [WANT_FBDEV_DGA=$enableval], [WANT_FBDEV_DGA=yes])
23   AC_ARG_ENABLE(vosf,          [  --enable-vosf           enable video on SEGV signals [default=yes]], [WANT_VOSF=$enableval], [WANT_VOSF=yes])
24  
25 + dnl SDL options.
26 + AC_ARG_ENABLE(sdl-static,    [  --enable-sdl-static     use SDL static libraries for linking [default=no]], [WANT_SDL_STATIC=$enableval], [WANT_SDL_STATIC=no])
27 + AC_ARG_ENABLE(sdl-video,     [  --enable-sdl-video      use SDL for video graphics [default=no]], [WANT_SDL_VIDEO=$enableval], [WANT_SDL_VIDEO=no])
28 + AC_ARG_ENABLE(sdl-audio,     [  --enable-sdl-audio      use SDL for audio [default=no]], [WANT_SDL_AUDIO=$enableval], [WANT_SDL_AUDIO=no])
29 +
30   dnl JIT compiler options.
31   AC_ARG_ENABLE(jit-compiler,  [  --enable-jit-compiler   enable JIT compiler [default=no]], [WANT_JIT=$enableval], [WANT_JIT=no])
32   AC_ARG_ENABLE(jit-debug,     [  --enable-jit-debug      activate native code disassemblers [default=no]], [WANT_JIT_DEBUG=$enableval], [WANT_JIT_DEBUG=no])
# Line 51 | Line 62 | AC_ARG_ENABLE(addressing,
62  
63   dnl External packages.
64   AC_ARG_WITH(esd,             [  --with-esd              support ESD for sound under Linux/FreeBSD [default=yes]], [WANT_ESD=$withval], [WANT_ESD=yes])
65 < AC_ARG_WITH(gtk,             [  --with-gtk              use GTK user interface [default=yes]], [WANT_GTK=$withval], [WANT_GTK=yes])
65 > AC_ARG_WITH(gtk,             [  --with-gtk              use GTK user interface [default=yes]],
66 >  [case "$withval" in
67 >   gtk1)      WANT_GTK="gtk";;
68 >   gtk|gtk2)  WANT_GTK="$withval";;
69 >   yes)       WANT_GTK="gtk2 gtk";;
70 >   *)         WANT_GTK="no";;
71 >   esac],
72 >  [WANT_GTK="gtk2 gtk"])
73   AC_ARG_WITH(mon,             [  --with-mon              use mon as debugger [default=yes]], [WANT_MON=$withval], [WANT_MON=yes])
74  
75   dnl Canonical system information.
# Line 90 | Line 108 | AC_PROG_CPP
108   AC_PROG_CXX
109   AC_PROG_MAKE_SET
110   AC_PROG_INSTALL
111 + AC_PROG_EGREP
112  
113   dnl We use mon if possible.
114   MONSRCS=
# Line 99 | Line 118 | if [[ "x$WANT_MON" = "xyes" ]]; then
118    if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then
119      AC_MSG_RESULT(yes)
120      AC_DEFINE(ENABLE_MON, 1, [Define if using "mon".])
121 <    MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c"
121 >    MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c $mon_srcdir/disass/mips-dis.c $mon_srcdir/disass/mips-opc.c $mon_srcdir/disass/mips16-opc.c"
122      CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass"
123      AC_CHECK_LIB(ncurses, tgetent, ,
124        AC_CHECK_LIB(termcap, tgetent, ,
# Line 118 | Line 137 | fi
137   dnl Checks for libraries.
138   AC_CHECK_LIB(posix4, sem_init)
139   AC_CHECK_LIB(rt, timer_create)
140 + AC_CHECK_LIB(rt, shm_open)
141 + AC_CHECK_LIB(m, cos)
142  
143 < dnl We need X11.
144 < AC_PATH_XTRA
145 < if [[ "x$no_x" = "xyes" ]]; then
146 <  AC_MSG_ERROR([You need X11 to run Basilisk II.])
147 < fi
148 < CFLAGS="$CFLAGS $X_CFLAGS"
149 < CXXFLAGS="$CXXFLAGS $X_CFLAGS"
150 < LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
143 > dnl Do we need SDL?
144 > WANT_SDL=no
145 > if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then
146 >  WANT_SDL=yes
147 >  WANT_XF86_DGA=no
148 >  WANT_XF86_VIDMODE=no
149 >  WANT_FBDEV_DGA=no
150 >  SDL_SUPPORT="$SDL_SUPPORT video"
151 > fi
152 > if [[ "x$WANT_SDL_AUDIO" = "xyes" ]]; then
153 >  WANT_SDL=yes
154 >  SDL_SUPPORT="$SDL_SUPPORT audio"
155 > fi
156 > if [[ "x$WANT_SDL" = "xyes" ]]; then
157 >  AC_PATH_PROG(sdl_config, "sdl-config")
158 >  if [[ -n "$sdl_config" ]]; then
159 >    case $target_os in
160 >    # Special treatment for Cygwin so that we can still use the POSIX layer
161 >    *cygwin*)
162 >      sdl_cflags="-I`$sdl_config --prefix`/include/SDL"
163 >      sdl_libs="-L`$sdl_config --exec-prefix`/lib -lSDL"
164 >      ;;
165 >    *)
166 >      sdl_cflags=`$sdl_config --cflags`
167 >      if [[ "x$WANT_SDL_STATIC" = "xyes" ]]; then
168 >        sdl_libs=`$sdl_config --static-libs`
169 >      else
170 >        sdl_libs=`$sdl_config --libs`
171 >      fi
172 >      ;;
173 >    esac
174 >    CFLAGS="$CFLAGS $sdl_cflags"
175 >    CXXFLAGS="$CXXFLAGS $sdl_cflags"
176 >    LIBS="$LIBS $sdl_libs"
177 >  else
178 >    WANT_SDL=no
179 >  fi
180 >  SDL_SUPPORT=`echo "$SDL_SUPPORT" | sed -e "s/^ //"`
181 > else
182 >  SDL_SUPPORT="none"
183 > fi
184 >
185 > dnl We need X11, if not using SDL.
186 > if [[ "x$WANT_SDL" = "xno" ]]; then
187 >  AC_PATH_XTRA
188 >  if [[ "x$no_x" = "xyes" ]]; then
189 >    AC_MSG_ERROR([You need X11 to run Basilisk II.])
190 >  fi
191 >  CFLAGS="$CFLAGS $X_CFLAGS"
192 >  CXXFLAGS="$CXXFLAGS $X_CFLAGS"
193 >  LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
194 > fi
195  
196   dnl We want pthreads. Try libpthread first, then libc_r (FreeBSD), then PTL.
197   HAVE_PTHREADS=yes
# Line 140 | Line 205 | AC_CHECK_LIB(pthread, pthread_create, ,
205   if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
206    AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
207   fi
208 < AC_CHECK_FUNCS(pthread_cancel)
208 > AC_CHECK_FUNCS(pthread_cond_init)
209 > AC_CHECK_FUNCS(pthread_cancel pthread_testcancel)
210   AC_CHECK_FUNCS(pthread_mutexattr_setprotocol)
211   AC_CHECK_FUNCS(pthread_mutexattr_settype)
212   AC_CHECK_FUNCS(pthread_mutexattr_setpshared)
# Line 184 | Line 250 | fi
250  
251   dnl We use GTK+ if possible.
252   UISRCS=../dummy/prefs_editor_dummy.cpp
253 < if [[ "x$WANT_GTK" = "xyes" ]]; then
253 > case "x$WANT_GTK" in
254 > xgtk2*)
255 >  AM_PATH_GTK_2_0(1.3.15, [
256 >    GUI_CFLAGS="$GTK_CFLAGS"
257 >    GUI_LIBS="$GTK_LIBS"
258 >    WANT_GTK=gtk2
259 >  ], [
260 >    case "x${WANT_GTK}x" in
261 >    *gtkx)
262 >      AC_MSG_WARN([Could not find GTK+ 2.0, trying with GTK+ 1.2.])
263 >      WANT_GTK=gtk
264 >      ;;
265 >    *)
266 >      AC_MSG_WARN([Could not find GTK+, disabling user interface.])
267 >      WANT_GTK=no
268 >      ;;
269 >    esac
270 >  ])
271 >  ;;
272 > esac
273 > if [[ "x$WANT_GTK" = "xgtk" ]]; then
274    AM_PATH_GTK(1.2.0, [
275 <    AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.])
276 <    CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
191 <    LIBS="$LIBS $GTK_LIBS"
192 <    UISRCS=prefs_editor_gtk.cpp
275 >    GUI_CFLAGS="$GTK_CFLAGS"
276 >    GUI_LIBS="$GTK_LIBS"
277      dnl somehow, <gnome-i18n.h> would redefine gettext() to nothing if
278      dnl ENABLE_NLS is not set, thusly conflicting with C++ <string> which
279      dnl includes <libintl.h>
280      AM_GNU_GETTEXT
281      B2_PATH_GNOMEUI([
282        AC_DEFINE(HAVE_GNOMEUI, 1, [Define if libgnomeui is available.])
283 <      CXXFLAGS="$CXXFLAGS $GNOMEUI_CFLAGS"
284 <      LIBS="$LIBS $GNOMEUI_LIBS"
283 >      GUI_CFLAGS="$GUI_CFLAGS $GNOMEUI_CFLAGS"
284 >      GUI_LIBS="$GUI_LIBS $GNOMEUI_LIBS"
285      ], [])
286    ], [
287      AC_MSG_WARN([Could not find GTK+, disabling user interface.])
288      WANT_GTK=no
289    ])
290   fi
291 + if [[ "x$WANT_GTK" != "xno" -a "x$WANT_STANDALONE_GUI" = "xno" ]]; then
292 +  AC_DEFINE(ENABLE_GTK, 1, [Define if using GTK.])
293 +  UISRCS=prefs_editor_gtk.cpp
294 + fi
295 + AC_SUBST(GUI_CFLAGS)
296 + AC_SUBST(GUI_LIBS)
297 +
298 + dnl Build external GUI if requested.
299 + if [[ "$WANT_STANDALONE_GUI" != "yes" ]]; then
300 +  WANT_STANDALONE_GUI=no
301 + fi
302 + if [[ "$WANT_GTK" = "no" ]]; then
303 +  WANT_STANDALONE_GUI=no
304 + fi
305 + AC_SUBST(STANDALONE_GUI, [$WANT_STANDALONE_GUI])
306  
307   dnl We use ESD if possible.
308   if [[ "x$WANT_ESD" = "xyes" ]]; then
# Line 223 | Line 322 | AC_SYS_LARGEFILE
322  
323   dnl Checks for header files.
324   AC_HEADER_STDC
325 < AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/mman.h)
325 > AC_CHECK_HEADERS(stdlib.h stdint.h)
326 > AC_CHECK_HEADERS(unistd.h fcntl.h sys/types.h sys/time.h sys/mman.h mach/mach.h)
327   AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h)
328 + AC_CHECK_HEADERS(sys/socket.h sys/ioctl.h sys/filio.h sys/bitypes.h sys/wait.h)
329 + AC_CHECK_HEADERS(sys/poll.h sys/select.h)
330 + AC_CHECK_HEADERS(arpa/inet.h)
331 + AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [
332 + #ifdef HAVE_SYS_TYPES_H
333 + #include <sys/types.h>
334 + #endif
335 + #ifdef HAVE_SYS_SOCKET_H
336 + #include <sys/socket.h>
337 + #endif
338 + ])
339 + AC_CHECK_HEADERS(AvailabilityMacros.h)
340 + AC_CHECK_HEADERS(IOKit/storage/IOBlockStorageDevice.h)
341  
342   dnl Checks for typedefs, structures, and compiler characteristics.
343   AC_C_BIGENDIAN
# Line 239 | Line 352 | AC_CHECK_SIZEOF(double, 8)
352   AC_CHECK_SIZEOF(long double, 12)
353   AC_CHECK_SIZEOF(void *, 4)
354   AC_TYPE_OFF_T
355 < AC_CHECK_TYPE(loff_t, off_t)
356 < AC_CHECK_TYPE(caddr_t, [char *])
355 > AC_CHECK_TYPES(loff_t)
356 > AC_CHECK_TYPES(caddr_t)
357   AC_TYPE_SIZE_T
358   AC_TYPE_SIGNAL
359   AC_HEADER_TIME
# Line 264 | Line 377 | if [[ "x$ac_cv_type_socklen_t" != "xyes"
377   fi
378  
379   dnl Checks for library functions.
380 < AC_CHECK_FUNCS(strdup cfmakeraw)
380 > AC_CHECK_FUNCS(strdup strerror cfmakeraw)
381   AC_CHECK_FUNCS(clock_gettime timer_create)
382   AC_CHECK_FUNCS(sigaction signal)
383   AC_CHECK_FUNCS(mmap mprotect munmap)
384   AC_CHECK_FUNCS(vm_allocate vm_deallocate vm_protect)
385 + AC_CHECK_FUNCS(poll inet_aton)
386  
387   dnl Darwin seems to define mach_task_self() instead of task_self().
388   AC_CHECK_FUNCS(mach_task_self task_self)
# Line 295 | Line 409 | mips-sony-bsd|mips-sony-newsos4)
409   *-*-sco3.2v5*)
410          no_dev_ptmx=1
411          ;;
412 + *-*-cygwin*)
413 +        no_dev_ptmx=1
414 +        ;;
415 + *-*-darwin*)
416 +        no_dev_ptmx=1
417 +        ;;
418   esac
419  
420   if test -z "$no_dev_ptmx" ; then
# Line 317 | Line 437 | AC_CHECK_FILE([/dev/ptc],
437   dnl (end of code from openssh-3.2.2p1 configure.ac)
438  
439  
440 + dnl Check for systems where POSIX-style non-blocking I/O (O_NONBLOCK)
441 + dnl doesn't work or is unimplemented. On these systems (mostly older
442 + dnl ones), use the old BSD-style FIONBIO approach instead. [tcl.m4]
443 + AC_CACHE_CHECK([FIONBIO vs. O_NONBLOCK for non-blocking I/O],
444 +  ac_cv_nonblocking_io, [
445 +  case "$host" in
446 +  *-*-osf*)
447 +    ac_cv_nonblocking_io=FIONBIO
448 +    ;;
449 +  *-*-sunos4*)
450 +    ac_cv_nonblocking_io=FIONBIO
451 +    ;;
452 +  *-*-ultrix*)
453 +    ac_cv_nonblocking_io=FIONBIO
454 +    ;;
455 +  *)
456 +    ac_cv_nonblocking_io=O_NONBLOCK
457 +    ;;
458 +  esac
459 + ])
460 + if [[ "$ac_cv_nonblocking_io" = "FIONBIO" ]]; then
461 +  AC_DEFINE(USE_FIONBIO, 1, [Define if BSD-style non-blocking I/O is to be used])
462 + fi
463 +
464 + dnl Check whether compiler supports byte bit-fields
465 + AC_CACHE_CHECK([whether compiler supports byte bit-fields],
466 +  ac_cv_have_byte_bitfields, [
467 +  AC_LANG_SAVE
468 +  AC_LANG_CPLUSPLUS
469 +  AC_TRY_RUN([
470 +    struct A {
471 +      unsigned char b1:4;
472 +      unsigned char b2:4;
473 +      unsigned char c;
474 +      unsigned short s;
475 +      unsigned char a[4];
476 +    };
477 +
478 +    int main(void) {
479 +      A a;
480 +      return ! (sizeof(A) == 8 && &a.c == ((unsigned char *)&a + 1));
481 +    }],
482 +    [ac_cv_have_byte_bitfields=yes],
483 +    [ac_cv_have_byte_bitfields=no],
484 +    dnl When cross-compiling, assume only GCC supports this
485 +    [if [[ "$GCC" = "yes" ]]; then
486 +      ac_cv_have_byte_bitfields="guessing yes"
487 +    else
488 +      ac_cv_have_byte_bitfields="guessing no"
489 +    fi]
490 +    )
491 +  AC_LANG_RESTORE
492 + ])
493 +
494 + dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES)
495 + AC_DEFUN([AC_CHECK_FRAMEWORK], [
496 +  AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1])dnl
497 +  AC_CACHE_CHECK([whether compiler supports framework $1],
498 +    ac_Framework, [
499 +    saved_LIBS="$LIBS"
500 +    LIBS="$LIBS -framework $1"
501 +    AC_TRY_LINK(
502 +      [$2], [],
503 +      [AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"]
504 +    )
505 +  ])
506 +  AS_IF([test AS_VAR_GET(ac_Framework) = yes],
507 +    [AC_DEFINE(AS_TR_CPP(HAVE_FRAMEWORK_$1), 1, [Define if framework $1 is available.])]
508 +  )
509 +  AS_VAR_POPDEF([ac_Framework])dnl
510 + ])
511 +
512 + dnl Check for some MacOS X frameworks
513 + AC_CHECK_FRAMEWORK(AppKit, [])
514 + AC_CHECK_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>])
515 + AC_CHECK_FRAMEWORK(IOKit, [#include <IOKit/IOKitLib.h>])
516 + AC_CHECK_FRAMEWORK(CoreFoundation, [#include <CoreFoundation/CoreFoundation.h>])
517 +
518   dnl Select system-dependant source files.
519   SERIALSRC=serial_unix.cpp
520   ETHERSRC=../dummy/ether_dummy.cpp
521   SCSISRC=../dummy/scsi_dummy.cpp
522   AUDIOSRC=../dummy/audio_dummy.cpp
523 + EXTFSSRC=extfs_unix.cpp
524   EXTRASYSSRCS=
525   CAN_NATIVE_M68K=no
526   case "$target_os" in
# Line 355 | Line 554 | freebsd*)
554    ;;
555   netbsd*)
556    CAN_NATIVE_M68K=yes
557 +  ETHERSRC=ether_unix.cpp
558    ;;
559   solaris*)
560    AUDIOSRC=Solaris/audio_solaris.cpp
561    DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS"
562    ;;
563   irix*)
364  ETHERSRC=ether_unix.cpp
564    AUDIOSRC=Irix/audio_irix.cpp
565    EXTRASYSSRCS=Irix/unaligned.c
367  dnl IRIX headers work fine, but somehow don't define or use "STDC_HEADERS"
368  DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200 -DSTDC_HEADERS"
566    LIBS="$LIBS -laudio"
567    WANT_ESD=no
568  
# Line 375 | Line 572 | irix*)
572    CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"`
573    AC_MSG_CHECKING(if "-IPA" works)
574    dnl Do a test compile of an empty function
575 <  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
575 >  AC_TRY_COMPILE([#if defined __GNUC__
576 >                  # error GCC does not support IPA yet
577 >                  #endif],, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
578    CFLAGS="$ocflags"
579 +  ;;
580 + darwin*)
581 +  ETHERSRC=ether_unix.cpp
582 +  if [[ "x$ac_cv_framework_IOKit" = "xyes" -a "x$ac_cv_framework_CoreFoundation" = "xyes" ]]; then
583 +    EXTRASYSSRCS="../MacOSX/sys_darwin.cpp"
584 +  fi
585 +  if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
586 +    EXTFSSRC=../MacOSX/extfs_macosx.cpp
587 +  fi
588 +  ;;
589 + cygwin*)
590 +  SERIALSRC="../dummy/serial_dummy.cpp"
591 +  EXTRASYSSRCS="../Windows/BasiliskII.rc"
592 +  ;;
593 + esac
594  
595 + dnl Is the slirp library supported?
596 + case "$ac_cv_have_byte_bitfields" in
597 + yes|"guessing yes")
598 +  CAN_SLIRP=yes
599 +  ETHERSRC=ether_unix.cpp
600    ;;
601   esac
602 + if [[ -n "$CAN_SLIRP" ]]; then
603 +  AC_DEFINE(HAVE_SLIRP, 1, [Define if slirp library is supported])
604 +  SLIRP_SRCS="\
605 +    ../slirp/bootp.c     ../slirp/ip_output.c  ../slirp/tcp_input.c  \
606 +    ../slirp/cksum.c     ../slirp/mbuf.c       ../slirp/tcp_output.c \
607 +    ../slirp/debug.c     ../slirp/misc.c       ../slirp/tcp_subr.c   \
608 +    ../slirp/if.c        ../slirp/sbuf.c       ../slirp/tcp_timer.c  \
609 +    ../slirp/ip_icmp.c   ../slirp/slirp.c      ../slirp/tftp.c       \
610 +    ../slirp/ip_input.c  ../slirp/socket.c     ../slirp/udp.c"
611 + fi
612 + AC_SUBST(SLIRP_SRCS)
613 +
614 + dnl SDL overrides
615 + if [[ "x$WANT_SDL" = "xyes" ]]; then
616 +  AC_DEFINE(USE_SDL, 1, [Define to enble SDL support])
617 + fi
618 + if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then
619 +  AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support])
620 +  VIDEOSRCS="../SDL/video_sdl.cpp"
621 +  KEYCODES="../SDL/keycodes"
622 +  if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
623 +    EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/clip_macosx.cpp"
624 +  else
625 +    case "$target_os" in
626 +    cygwin*)
627 +      EXTRASYSSRCS="$EXTRASYSSRCS ../Windows/clip_windows.cpp"
628 +      ;;
629 +    *)
630 +      EXTRASYSSRCS="$EXTRASYSSRCS ../dummy/clip_dummy.cpp"
631 +      ;;
632 +    esac
633 +  fi
634 + else
635 +  VIDEOSRCS="video_x.cpp"
636 +  KEYCODES="keycodes"
637 +  EXTRASYSSRCS="$EXTRASYSSRCS clip_unix.cpp"
638 + fi
639 + if [[ "x$WANT_SDL_AUDIO" = "xyes" ]]; then
640 +  AC_DEFINE(USE_SDL_AUDIO, 1, [Define to enable SDL audio support])
641 +  AUDIOSRC="../SDL/audio_sdl.cpp"
642 + fi
643  
644   dnl Use 68k CPU natively?
645   WANT_NATIVE_M68K=no
# Line 395 | Line 655 | if [[ "x$HAVE_PTHREADS" = "xno" ]]; then
655    ETHERSRC=../dummy/ether_dummy.cpp
656    AUDIOSRC=../dummy/audio_dummy.cpp
657   fi
658 < SYSSRCS="$SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS"
658 > SYSSRCS="$VIDEOSRCS $EXTFSSRC $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS"
659  
660   dnl Define a macro that translates a yesno-variable into a C macro definition
661   dnl to be put into the config.h file
662   dnl $1 -- the macro to define
663   dnl $2 -- the value to translate
664   dnl $3 -- template name
665 < AC_DEFUN(AC_TRANSLATE_DEFINE, [
665 > AC_DEFUN([AC_TRANSLATE_DEFINE], [
666      if [[ "x$2" = "xyes" -o "x$2" = "xguessing yes" ]]; then
667          AC_DEFINE($1, 1, $3)
668      fi
669   ])
670  
671 + dnl Check that the host supports TUN/TAP devices
672 + AC_CACHE_CHECK([whether TUN/TAP is supported],
673 +  ac_cv_tun_tap_support, [
674 +  AC_TRY_COMPILE([
675 +    #if defined(HAVE_LINUX_IF_H) && defined(HAVE_LINUX_IF_TUN_H)
676 +    #include <linux/if.h>
677 +    #include <linux/if_tun.h>
678 +    #endif
679 +    #if defined(HAVE_NET_IF_H) && defined(HAVE_NET_IF_TUN_H)
680 +    #include <net/if.h>
681 +    #include <net/if_tun.h>
682 +    #endif
683 +  ], [
684 +    struct ifreq ifr;
685 +    memset(&ifr, 0, sizeof(ifr));
686 +    ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
687 +  ],
688 +  ac_cv_tun_tap_support=yes, ac_cv_tun_tap_support=no
689 +  )
690 + ])
691 + AC_TRANSLATE_DEFINE(ENABLE_TUNTAP, "$ac_cv_tun_tap_support",
692 +  [Define if your system supports TUN/TAP devices.])
693 +
694   dnl Various checks if the system supports vm_allocate() and the like functions.
695   have_mach_vm=no
696   if [[ "x$ac_cv_func_vm_allocate" = "xyes" -a "x$ac_cv_func_vm_deallocate" = "xyes" -a \
# Line 554 | Line 837 | AC_TRANSLATE_DEFINE(HAVE_MMAP_VM, $have_
837  
838   fi dnl HAVE_MMAP_VM
839  
840 + dnl Check if we can modify the __PAGEZERO segment for use as Low Memory
841 + AC_CACHE_CHECK([whether __PAGEZERO can be Low Memory area 0x0000-0x2000],
842 +  ac_cv_pagezero_hack, [
843 +  ac_cv_pagezero_hack=no
844 +  if AC_TRY_COMMAND([Darwin/testlmem.sh 0x2000]); then
845 +    ac_cv_pagezero_hack=yes
846 +    dnl might as well skip the test for mmap-able low memory
847 +    ac_cv_can_map_lm=no
848 +  fi
849 + ])
850 + AC_TRANSLATE_DEFINE(PAGEZERO_HACK, "$ac_cv_pagezero_hack",
851 +  [Define if the __PAGEZERO Mach-O Low Memory Globals hack works on this system.])
852 +
853   dnl Check if we can mmap 0x2000 bytes from 0x0000
854   AC_CACHE_CHECK([whether we can map Low Memory area 0x0000-0x2000],
855    ac_cv_can_map_lm, [
# Line 638 | Line 934 | AC_CACHE_CHECK([whether sigaction handle
934   AC_TRANSLATE_DEFINE(SIGACTION_NEED_REINSTALL, "$ac_cv_sigaction_need_reinstall",
935    [Define if your system requires sigactions to be reinstalled.])
936  
937 < dnl Check if extended signals are supported.
938 < AC_CACHE_CHECK([whether your system supports extended signal handlers],
939 <  ac_cv_have_extended_signals, [
937 > dnl Check if Mach exceptions supported.
938 > AC_CACHE_CHECK([whether your system supports Mach exceptions],
939 >  ac_cv_have_mach_exceptions, [
940    AC_LANG_SAVE
941    AC_LANG_CPLUSPLUS
942    AC_TRY_RUN([
943 <    #define HAVE_SIGINFO_T 1
943 >    #define HAVE_MACH_EXCEPTIONS 1
944      #define CONFIGURE_TEST_SIGSEGV_RECOVERY
945      #include "vm_alloc.cpp"
946      #include "sigsegv.cpp"
947 <  ], ac_cv_have_extended_signals=yes, ac_cv_have_extended_signals=no,
947 >  ], [
948 >  sigsegv_recovery=mach
949 >  ac_cv_have_mach_exceptions=yes
950 >  ],
951 >  ac_cv_have_mach_exceptions=no,
952    dnl When cross-compiling, do not assume anything.
953 <  ac_cv_have_extended_signals=no
953 >  ac_cv_have_mach_exceptions=no
954    )
955    AC_LANG_RESTORE
956    ]
957   )
958 < AC_TRANSLATE_DEFINE(HAVE_SIGINFO_T, "$ac_cv_have_extended_signals",
959 <  [Define if your system support extended signals.])
958 > AC_TRANSLATE_DEFINE(HAVE_MACH_EXCEPTIONS, "$ac_cv_have_mach_exceptions",
959 >  [Define if your system supports Mach exceptions.])
960 >
961 > dnl Check if Windows exceptions are supported.
962 > AC_CACHE_CHECK([whether your system supports Windows exceptions],
963 >  ac_cv_have_win32_exceptions, [
964 >  AC_LANG_SAVE
965 >  AC_LANG_CPLUSPLUS
966 >  AC_TRY_RUN([
967 >    #define HAVE_WIN32_EXCEPTIONS 1
968 >    #define CONFIGURE_TEST_SIGSEGV_RECOVERY
969 >    #include "vm_alloc.cpp"
970 >    #include "sigsegv.cpp"
971 >  ], [
972 >  sigsegv_recovery=win32
973 >  ac_cv_have_win32_exceptions=yes
974 >  ],
975 >  ac_cv_have_win32_exceptions=no,
976 >  dnl When cross-compiling, do not assume anything.
977 >  ac_cv_have_win32_exceptions=no
978 >  )
979 >  AC_LANG_RESTORE
980 >  ]
981 > )
982 > AC_TRANSLATE_DEFINE(HAVE_WIN32_EXCEPTIONS, "$ac_cv_have_win32_exceptions",
983 >  [Define if your system supports Windows exceptions.])
984 >
985 > dnl Otherwise, check if extended signals are supported.
986 > if [[ -z "$sigsegv_recovery" ]]; then
987 >  AC_CACHE_CHECK([whether your system supports extended signal handlers],
988 >    ac_cv_have_extended_signals, [
989 >    AC_LANG_SAVE
990 >    AC_LANG_CPLUSPLUS
991 >    AC_TRY_RUN([
992 >      #define HAVE_SIGINFO_T 1
993 >      #define CONFIGURE_TEST_SIGSEGV_RECOVERY
994 >      #include "vm_alloc.cpp"
995 >      #include "sigsegv.cpp"
996 >    ], [
997 >    sigsegv_recovery=siginfo
998 >    ac_cv_have_extended_signals=yes
999 >    ],
1000 >    ac_cv_have_extended_signals=no,
1001 >    dnl When cross-compiling, do not assume anything.
1002 >    ac_cv_have_extended_signals=no
1003 >    )
1004 >    AC_LANG_RESTORE
1005 >    ]
1006 >  )
1007 >  AC_TRANSLATE_DEFINE(HAVE_SIGINFO_T, "$ac_cv_have_extended_signals",
1008 >    [Define if your system support extended signals.])
1009 > fi
1010  
1011   dnl Otherwise, check for subterfuges.
1012 < if [[ "x$ac_cv_have_extended_signals" = "xno" ]]; then
1012 > if [[ -z "$sigsegv_recovery" ]]; then
1013    AC_CACHE_CHECK([whether we then have a subterfuge for your system],
1014    ac_cv_have_sigcontext_hack, [
1015      AC_LANG_SAVE
# Line 669 | Line 1019 | if [[ "x$ac_cv_have_extended_signals" =
1019        #define CONFIGURE_TEST_SIGSEGV_RECOVERY
1020        #include "vm_alloc.cpp"
1021        #include "sigsegv.cpp"
1022 <    ], ac_cv_have_sigcontext_hack=yes, ac_cv_have_sigcontext_hack=no,
1022 >    ], [
1023 >    sigsegv_recovery=sigcontext
1024 >    ac_cv_have_sigcontext_hack=yes
1025 >    ],
1026 >    ac_cv_have_sigcontext_hack=no,
1027      dnl When cross-compiling, do not assume anything.
1028      ac_cv_have_sigcontext_hack=no
1029      )
# Line 701 | Line 1055 | AC_TRANSLATE_DEFINE(HAVE_SIGSEGV_SKIP_IN
1055  
1056   dnl Can we do Video on SEGV Signals ?
1057   CAN_VOSF=no
1058 < if [[ "$ac_cv_have_extended_signals" = "yes" -o "$ac_cv_have_sigcontext_hack" = "yes" ]]; then
1058 > if [[ -n "$sigsegv_recovery" ]]; then
1059    CAN_VOSF=yes
1060   fi
1061  
1062 + dnl A dummy program that returns always true
1063 + AC_PATH_PROG([BLESS], "true")
1064 +
1065 + dnl Check for linker script support
1066 + case $target_os:$target_cpu in
1067 + linux*:i?86)    LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-i386.ld";;
1068 + linux*:x86_64)  LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-x86_64.ld";;
1069 + linux*:powerpc) LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-ppc.ld";;
1070 + netbsd*:i?86)   LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/linux-i386.ld";;
1071 + freebsd*:i?86)  LINKER_SCRIPT_FLAGS="-Wl,-T,ldscripts/freebsd-i386.ld";;
1072 + darwin*:*)      LINKER_SCRIPT_FLAGS="-Wl,-seg1addr,0x78048000";;
1073 + esac
1074 + if [[ -n "$LINKER_SCRIPT_FLAGS" ]]; then
1075 +  AC_CACHE_CHECK([whether linker script is usable],
1076 +    ac_cv_linker_script_works, [
1077 +    AC_LANG_SAVE
1078 +    AC_LANG_CPLUSPLUS
1079 +    saved_LDFLAGS="$LDFLAGS"
1080 +    LDFLAGS="$LDFLAGS $LINKER_SCRIPT_FLAGS"
1081 +    AC_TRY_RUN(
1082 +      [int main() {if ((char *)&main < (char *)0x70000000) return 1;}],
1083 +      [ac_cv_linker_script_works=yes],
1084 +      [ac_cv_linker_script_works=no],
1085 +      dnl When cross-compiling, assume it works
1086 +      [ac_cv_linker_script_works="guessing yes"]
1087 +    )
1088 +    AC_LANG_RESTORE
1089 +    if [[ "$ac_cv_linker_script_works" = "no" ]]; then
1090 +      LDFLAGS="$saved_LDFLAGS"
1091 +      LINKER_SCRIPT_FLAGS=""
1092 +    fi
1093 +  ])
1094 + fi
1095 + AC_TRANSLATE_DEFINE(HAVE_LINKER_SCRIPT, "$ac_cv_linker_script_works",
1096 +  [Define if there is a linker script to relocate the executable above 0x70000000.])
1097 +
1098   dnl Determine the addressing mode to use
1099   if [[ "x$WANT_NATIVE_M68K" = "xyes" ]]; then
1100    ADDRESSING_MODE="real"
# Line 715 | Line 1105 | else
1105      case $am in
1106      real)
1107        dnl Requires ability to mmap() Low Memory globals
1108 <      if [[ "x$ac_cv_can_map_lm" = "xno" ]]; then
1108 >      if [[ "x$ac_cv_can_map_lm$ac_cv_pagezero_hack" = "xnono" ]]; then
1109          continue
1110        fi
1111 <          dnl Requires VOSF screen updates
1111 >      dnl Requires VOSF screen updates
1112        if [[ "x$CAN_VOSF" = "xno" ]]; then
1113          continue
1114        fi
# Line 726 | Line 1116 | else
1116        ADDRESSING_MODE="real"
1117        WANT_VOSF=yes dnl we can use VOSF and we need it actually
1118        DEFINES="$DEFINES -DREAL_ADDRESSING"
1119 +      if [[ "x$ac_cv_pagezero_hack" = "xyes" ]]; then
1120 +        BLESS=Darwin/lowmem
1121 +        LDFLAGS="$LDFLAGS -pagezero_size 0x2000"
1122 +      fi
1123        break
1124        ;;
1125      direct)
# Line 778 | Line 1172 | AC_MSG_RESULT($HAVE_GAS)
1172   dnl Check for GCC 2.7 or higher.
1173   HAVE_GCC27=no
1174   AC_MSG_CHECKING(for GCC 2.7 or higher)
1175 < AC_EGREP_CPP(xyes,
1176 < [#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
1177 <  xyes
1178 < #endif
1179 < ], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
1175 > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5)
1176 >                                     # error gcc < 2.7
1177 >                                     #endif
1178 >                                   ]])],
1179 >                  [AC_MSG_RESULT(yes); HAVE_GCC27=yes],
1180 >                  [AC_MSG_RESULT(no)])
1181  
1182   dnl Check for GCC 3.0 or higher.
1183   HAVE_GCC30=no
1184   AC_MSG_CHECKING(for GCC 3.0 or higher)
1185 < AC_EGREP_CPP(xyes,
1186 < [#if __GNUC__ >= 3
1187 <  xyes
1188 < #endif
1189 < ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
1185 > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ >= 3)
1186 >                                     # error gcc < 3
1187 >                                     #endif
1188 >                                   ]])],
1189 >                  [AC_MSG_RESULT(yes); HAVE_GCC30=yes],
1190 >                  [AC_MSG_RESULT(no)])
1191 >
1192 > dnl Check for ICC.
1193 > AC_MSG_CHECKING(for ICC)
1194 > HAVE_ICC=no
1195 > if $CXX -V -v 2>&1 | grep -q "Intel(R) C++ Compiler"; then
1196 >  HAVE_ICC=yes
1197 > fi
1198 > AC_MSG_RESULT($HAVE_ICC)
1199  
1200   dnl Set "-fomit-frame-pointer" on i386 GCC 2.7 or higher.
1201   dnl Also set "-fno-exceptions" for C++ because exception handling requires
# Line 806 | Line 1210 | dnl As of 2001/08/02, this affects the f
1210   dnl Official: probably gcc-3.1 (mainline CVS)
1211   dnl Mandrake: gcc-2.96 >= 0.59mdk, gcc-3.0.1 >= 0.1mdk
1212   dnl Red Hat : gcc-2.96 >= 89, gcc-3.0 >= 1
1213 < if [[ "x$HAVE_GCC27" = "xyes" ]]; then
1213 > if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then
1214    SAVED_CXXFLAGS="$CXXFLAGS"
1215    CXXFLAGS="$CXXFLAGS -fno-merge-constants"
1216    AC_CACHE_CHECK([whether GCC supports constants merging], ac_cv_gcc_constants_merging, [
# Line 820 | Line 1224 | if [[ "x$HAVE_GCC27" = "xyes" ]]; then
1224    fi
1225   fi
1226  
1227 + dnl Store motion was introduced in 3.3-hammer branch and any gcc >= 3.4
1228 + dnl However, there are some corner cases exposed on x86-64
1229 + if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then
1230 +  SAVED_CXXFLAGS="$CXXFLAGS"
1231 +  CXXFLAGS="$CXXFLAGS -fno-gcse-sm"
1232 +  AC_CACHE_CHECK([whether GCC supports store motion], ac_cv_gcc_store_motion, [
1233 +    AC_LANG_SAVE
1234 +    AC_LANG_CPLUSPLUS
1235 +    AC_TRY_COMPILE([],[],[ac_cv_gcc_store_motion=yes],[ac_cv_gcc_store_motion=no])
1236 +    AC_LANG_RESTORE
1237 +  ])
1238 +  if [[ "x$ac_cv_gcc_store_motion" != "xyes" ]]; then
1239 +    CXXFLAGS="$SAVED_CXXFLAGS"
1240 +  fi
1241 + fi
1242 +
1243 + dnl Add -fno-strict-aliasing for slirp sources
1244 + if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1245 +  SAVED_CFLAGS="$CFLAGS"
1246 +  CFLAGS="$CFLAGS -fno-strict-aliasing"
1247 +  AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing],
1248 +    ac_cv_gcc_no_strict_aliasing, [
1249 +    AC_TRY_COMPILE([],[],
1250 +      [ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")],
1251 +      [ac_cv_gcc_no_strict_aliasing=no])
1252 +  ])
1253 +  CFLAGS="$SAVED_CFLAGS"
1254 + fi
1255 +
1256 + dnl Add -mdynamic-no-pic for MacOS X (XXX icc10 will support MacOS X)
1257 + if [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then
1258 +  SAVED_CFLAGS="$CFLAGS"
1259 +  CFLAGS="$CFLAGS -mdynamic-no-pic"
1260 +  AC_CACHE_CHECK([whether the compiler supports -mdynamic-no-pic],
1261 +    ac_cv_gcc_mdynamic_no_pic, [
1262 +    AC_TRY_COMPILE([],[],[ac_cv_gcc_mdynamic_no_pic=yes],[ac_cv_gcc_mdynamic_no_pic=no])
1263 +  ])
1264 +  if [[ "x$ac_cv_gcc_mdynamic_no_pic" = "xyes" ]]; then
1265 +    CXXFLAGS="$CXXFLAGS -mdynamic-no-pic"
1266 +  else
1267 +    CFLAGS="$SAVED_CFLAGS"
1268 +  fi
1269 + fi
1270 +
1271   dnl Select appropriate CPU source and REGPARAM define.
1272   ASM_OPTIMIZATIONS=none
1273   CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
# Line 844 | Line 1292 | elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HA
1292    if [[ "x$HAVE_GAS" = "xyes" ]]; then
1293      ASM_OPTIMIZATIONS="x86-64"
1294      DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS"
1295 +    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"
1296 +    CAN_JIT=yes
1297    fi
1298   elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then
1299    dnl SPARC CPU
# Line 1097 | Line 1547 | fi
1547  
1548   dnl Remove the "-g" option if set for GCC.
1549   if [[ "x$HAVE_GCC27" = "xyes" ]]; then
1550 <  CFLAGS=`echo $CFLAGS | sed -e 's/-g//g'`
1551 <  CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'`
1550 >  CFLAGS=`echo $CFLAGS | sed -e 's/-g\b//g'`
1551 >  CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g\b//g'`
1552   fi
1553  
1554   dnl Or if we have -IPA (MIPSPro compilers)
# Line 1114 | Line 1564 | AC_SUBST(DEFINES)
1564   AC_SUBST(SYSSRCS)
1565   AC_SUBST(CPUINCLUDES)
1566   AC_SUBST(CPUSRCS)
1567 + AC_SUBST(BLESS)
1568 + AC_SUBST(KEYCODES)
1569   AC_CONFIG_FILES([Makefile])
1570   AC_OUTPUT
1571  
# Line 1121 | Line 1573 | dnl Print summary.
1573   echo
1574   echo Basilisk II configuration summary:
1575   echo
1576 + echo SDL support ............................ : $SDL_SUPPORT
1577   echo XFree86 DGA support .................... : $WANT_XF86_DGA
1578   echo XFree86 VidMode support ................ : $WANT_XF86_VIDMODE
1579   echo fbdev DGA support ...................... : $WANT_FBDEV_DGA
# Line 1134 | Line 1587 | echo JIT debug mode ....................
1587   echo Floating-Point emulation core .......... : $FPE_CORE
1588   echo Assembly optimizations ................. : $ASM_OPTIMIZATIONS
1589   echo Addressing mode ........................ : $ADDRESSING_MODE
1590 + echo Bad memory access recovery type ........ : $sigsegv_recovery
1591   echo
1592   echo "Configuration done. Now type \"make\" (or \"gmake\")."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines