source: trunk/dports/emulators/advancemame/files/patch-configure.ac.diff @ 47268

Last change on this file since 47268 was 39996, checked in by milosh@…, 12 years ago

Patch for advancemame to compile on intel macs.
Thanks to jcopenha_at_typedef.org in #16155

File size: 1.6 KB
  • configure.ac

    old new  
    206206AC_CHECK_SIZEOF(void*)
    207207
    208208AC_ARG_ENABLE(
     209    [backtrace],
     210    AC_HELP_STRING([--enable-backtrace],[enable the usage of backtrace (default auto)]),
     211    [ac_enable_backtrace=$enableleval],
     212    [ac_enable_backtrace=auto]
     213)
     214AC_ARG_ENABLE(
     215    [ucontexth],
     216    AC_HELP_STRING([--enable-ucontexth],[enable the usage of ucontext.h (default auto)]),
     217    [ac_enable_ucontexth=$enableleval],
     218    [ac_enable_ucontexth=auto]
     219)
     220AC_ARG_ENABLE(
    209221        [asm],
    210222        AC_HELP_STRING([--enable-asm],[enable the Pentium assembler optimizations (default auto)]),
    211223        [ac_enable_asm=$enableval],
     
    320332        AC_HEADER_TIOCGWINSZ
    321333        AC_CHECK_HEADERS([unistd.h sched.h netdb.h termios.h execinfo.h])
    322334        AC_CHECK_HEADERS([sys/utsname.h sys/types.h sys/stat.h sys/socket.h sys/select.h sys/ioctl.h sys/time.h sys/mman.h sys/io.h sys/kd.h sys/vt.h])
    323         AC_CHECK_HEADERS([netinet/in.h ucontext.h])
     335        AC_CHECK_HEADERS([netinet/in.h])
     336    if test $ac_enable_ucontexth = auto; then
     337        AC_CHECK_HEADERS([ucontext.h])
     338    fi
    324339        AC_C_CONST
    325340        AC_C_RESTRICT
    326341        AC_C_INLINE
     
    329344        AC_FUNC_SELECT_ARGTYPES
    330345        AC_FUNC_VPRINTF
    331346        AC_CHECK_FUNCS([strcasecmp strerror])
    332         AC_CHECK_FUNCS([uname sysconf backtrace backtrace_symbols])
     347    if test $ac_enable_backtrace = auto; then
     348        AC_CHECK_FUNCS([backtrace backtrace_symbols])
     349    fi
     350        AC_CHECK_FUNCS([uname sysconf])
    333351        AC_CHECK_FUNCS([flockfile funlockfile fread_unlocked fwrite_unlocked fgetc_unlocked feof_unlocked])
    334352        AC_CHECK_FUNCS([iopl mprotect])
    335353        AC_MSG_CHECKING([for port in/out])
Note: See TracBrowser for help on using the repository browser.