309 |
|
|
310 |
|
dnl Checks for header files. |
311 |
|
AC_HEADER_STDC |
312 |
+ |
AC_CHECK_HEADERS(stdlib.h stdint.h) |
313 |
|
AC_CHECK_HEADERS(unistd.h fcntl.h sys/types.h sys/time.h sys/mman.h mach/mach.h) |
314 |
|
AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h) |
315 |
|
AC_CHECK_HEADERS(sys/socket.h sys/ioctl.h sys/filio.h sys/bitypes.h sys/wait.h) |
422 |
|
|
423 |
|
|
424 |
|
dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES) |
425 |
< |
AC_DEFUN(AC_CHECK_FRAMEWORK, [ |
425 |
> |
AC_DEFUN([AC_CHECK_FRAMEWORK], [ |
426 |
|
AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1])dnl |
427 |
|
AC_CACHE_CHECK([whether compiler supports framework $1], |
428 |
|
ac_Framework, [ |
586 |
|
dnl $1 -- the macro to define |
587 |
|
dnl $2 -- the value to translate |
588 |
|
dnl $3 -- template name |
589 |
< |
AC_DEFUN(AC_TRANSLATE_DEFINE, [ |
589 |
> |
AC_DEFUN([AC_TRANSLATE_DEFINE], [ |
590 |
|
if [[ "x$2" = "xyes" -o "x$2" = "xguessing yes" ]]; then |
591 |
|
AC_DEFINE($1, 1, $3) |
592 |
|
fi |
1192 |
|
CFLAGS="$SAVED_CFLAGS" |
1193 |
|
fi |
1194 |
|
|
1195 |
+ |
dnl Add -mdynamic-no-pic for MacOS X |
1196 |
+ |
if [[ "x$HAVE_GCC30" = "xyes" ]]; then |
1197 |
+ |
SAVED_CFLAGS="$CFLAGS" |
1198 |
+ |
CFLAGS="$CFLAGS -mdynamic-no-pic" |
1199 |
+ |
AC_CACHE_CHECK([whether the compiler supports -mdynamic-no-pic], |
1200 |
+ |
ac_cv_gcc_mdynamic_no_pic, [ |
1201 |
+ |
AC_TRY_COMPILE([],[],[ac_cv_gcc_mdynamic_no_pic=yes],[ac_cv_gcc_mdynamic_no_pic=no]) |
1202 |
+ |
]) |
1203 |
+ |
if [[ "x$ac_cv_gcc_mdynamic_no_pic" = "xyes" ]]; then |
1204 |
+ |
CXXFLAGS="$CXXFLAGS -mdynamic-no-pic" |
1205 |
+ |
else |
1206 |
+ |
CFLAGS="$SAVED_CFLAGS" |
1207 |
+ |
fi |
1208 |
+ |
fi |
1209 |
+ |
|
1210 |
|
dnl Select appropriate CPU source and REGPARAM define. |
1211 |
|
ASM_OPTIMIZATIONS=none |
1212 |
|
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |