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.21 by gbeauche, 2003-10-12T15:56:00Z

# Line 10 | Line 10 | dnl Aliases for PACKAGE and VERSION macr
10   AC_DEFINE(PACKAGE, PACKAGE_NAME, [Alias to PACKAGE for i18n.])
11   AC_DEFINE(VERSION, PACKAGE_VERSION, [Alias to VERSION for i18n.])
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   dnl Video options.
18   AC_ARG_ENABLE(xf86-dga,      [  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes])
19   AC_ARG_ENABLE(xf86-vidmode,  [  --enable-xf86-vidmode   use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes])
# Line 223 | Line 227 | AC_SYS_LARGEFILE
227  
228   dnl Checks for header files.
229   AC_HEADER_STDC
230 < AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/mman.h)
230 > AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/mman.h mach/mach.h)
231   AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h)
232  
233   dnl Checks for typedefs, structures, and compiler characteristics.
# Line 638 | Line 642 | AC_CACHE_CHECK([whether sigaction handle
642   AC_TRANSLATE_DEFINE(SIGACTION_NEED_REINSTALL, "$ac_cv_sigaction_need_reinstall",
643    [Define if your system requires sigactions to be reinstalled.])
644  
645 < dnl Check if extended signals are supported.
646 < AC_CACHE_CHECK([whether your system supports extended signal handlers],
647 <  ac_cv_have_extended_signals, [
645 > dnl Check if Mach exceptions supported.
646 > AC_CACHE_CHECK([whether your system supports Mach exceptions],
647 >  ac_cv_have_mach_exceptions, [
648    AC_LANG_SAVE
649    AC_LANG_CPLUSPLUS
650    AC_TRY_RUN([
651 <    #define HAVE_SIGINFO_T 1
651 >    #define HAVE_MACH_EXCEPTIONS 1
652      #define CONFIGURE_TEST_SIGSEGV_RECOVERY
653      #include "vm_alloc.cpp"
654      #include "sigsegv.cpp"
655 <  ], ac_cv_have_extended_signals=yes, ac_cv_have_extended_signals=no,
655 >  ], [
656 >  sigsegv_recovery=mach
657 >  ac_cv_have_mach_exceptions=yes
658 >  ],
659 >  ac_cv_have_mach_exceptions=no,
660    dnl When cross-compiling, do not assume anything.
661 <  ac_cv_have_extended_signals=no
661 >  ac_cv_have_mach_exceptions=no
662    )
663    AC_LANG_RESTORE
664    ]
665   )
666 < AC_TRANSLATE_DEFINE(HAVE_SIGINFO_T, "$ac_cv_have_extended_signals",
667 <  [Define if your system support extended signals.])
666 > AC_TRANSLATE_DEFINE(HAVE_MACH_EXCEPTIONS, "$ac_cv_have_mach_exceptions",
667 >  [Define if your system supports Mach exceptions.])
668 >
669 > dnl Otherwise, check if extended signals are supported.
670 > if [[ -z "$sigsegv_recovery" ]]; then
671 >  AC_CACHE_CHECK([whether your system supports extended signal handlers],
672 >    ac_cv_have_extended_signals, [
673 >    AC_LANG_SAVE
674 >    AC_LANG_CPLUSPLUS
675 >    AC_TRY_RUN([
676 >      #define HAVE_SIGINFO_T 1
677 >      #define CONFIGURE_TEST_SIGSEGV_RECOVERY
678 >      #include "vm_alloc.cpp"
679 >      #include "sigsegv.cpp"
680 >    ], [
681 >    sigsegv_recovery=siginfo
682 >    ac_cv_have_extended_signals=yes
683 >    ],
684 >    ac_cv_have_extended_signals=no,
685 >    dnl When cross-compiling, do not assume anything.
686 >    ac_cv_have_extended_signals=no
687 >    )
688 >    AC_LANG_RESTORE
689 >    ]
690 >  )
691 >  AC_TRANSLATE_DEFINE(HAVE_SIGINFO_T, "$ac_cv_have_extended_signals",
692 >    [Define if your system support extended signals.])
693 > fi
694  
695   dnl Otherwise, check for subterfuges.
696 < if [[ "x$ac_cv_have_extended_signals" = "xno" ]]; then
696 > if [[ -z "$sigsegv_recovery" ]]; then
697    AC_CACHE_CHECK([whether we then have a subterfuge for your system],
698    ac_cv_have_sigcontext_hack, [
699      AC_LANG_SAVE
# Line 669 | Line 703 | if [[ "x$ac_cv_have_extended_signals" =
703        #define CONFIGURE_TEST_SIGSEGV_RECOVERY
704        #include "vm_alloc.cpp"
705        #include "sigsegv.cpp"
706 <    ], ac_cv_have_sigcontext_hack=yes, ac_cv_have_sigcontext_hack=no,
706 >    ], [
707 >    sigsegv_recovery=sigcontext
708 >    ac_cv_have_sigcontext_hack=yes
709 >    ],
710 >    ac_cv_have_sigcontext_hack=no,
711      dnl When cross-compiling, do not assume anything.
712      ac_cv_have_sigcontext_hack=no
713      )
# Line 701 | Line 739 | AC_TRANSLATE_DEFINE(HAVE_SIGSEGV_SKIP_IN
739  
740   dnl Can we do Video on SEGV Signals ?
741   CAN_VOSF=no
742 < if [[ "$ac_cv_have_extended_signals" = "yes" -o "$ac_cv_have_sigcontext_hack" = "yes" ]]; then
742 > if [[ -n "$sigsegv_recovery" ]]; then
743    CAN_VOSF=yes
744   fi
745  
# Line 1134 | Line 1172 | echo JIT debug mode ....................
1172   echo Floating-Point emulation core .......... : $FPE_CORE
1173   echo Assembly optimizations ................. : $ASM_OPTIMIZATIONS
1174   echo Addressing mode ........................ : $ADDRESSING_MODE
1175 + echo Bad memory access recovery type ........ : $sigsegv_recovery
1176   echo
1177   echo "Configuration done. Now type \"make\" (or \"gmake\")."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines