105 |
|
AC_CHECK_TYPES(caddr_t) |
106 |
|
AC_TYPE_SIZE_T |
107 |
|
|
108 |
+ |
dnl Checks for library functions. |
109 |
+ |
AC_CHECK_FUNCS(strdup strerror) |
110 |
+ |
|
111 |
|
dnl Define a macro that translates a yesno-variable into a C macro definition |
112 |
|
dnl to be put into the config.h file |
113 |
|
dnl $1 -- the macro to define |
262 |
|
#endif |
263 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no)) |
264 |
|
|
265 |
+ |
dnl Add -fno-strict-aliasing for slirp sources |
266 |
+ |
if [[ "x$HAVE_GCC30" = "xyes" ]]; then |
267 |
+ |
SAVED_CFLAGS="$CFLAGS" |
268 |
+ |
CFLAGS="$CFLAGS -fno-strict-aliasing" |
269 |
+ |
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing], |
270 |
+ |
ac_cv_gcc_no_strict_aliasing, [ |
271 |
+ |
AC_TRY_COMPILE([],[], |
272 |
+ |
[ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")], |
273 |
+ |
[ac_cv_gcc_no_strict_aliasing=no]) |
274 |
+ |
]) |
275 |
+ |
CFLAGS="$SAVED_CFLAGS" |
276 |
+ |
fi |
277 |
+ |
|
278 |
|
dnl Select appropriate CPU source and REGPARAM define. |
279 |
|
ASM_OPTIMIZATIONS=none |
280 |
|
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |