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

Comparing BasiliskII/src/Windows/configure.ac (file contents):
Revision 1.5 by gbeauche, 2006-04-20T22:36:26Z vs.
Revision 1.6 by gbeauche, 2006-04-29T10:57:56Z

# Line 105 | Line 105 | AC_CHECK_TYPES(loff_t)
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
# Line 259 | Line 262 | AC_EGREP_CPP(xyes,
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"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines