187 |
|
#endif |
188 |
|
], [AC_MSG_RESULT(yes); HAVE_I386=yes], AC_MSG_RESULT(no)) |
189 |
|
|
190 |
< |
dnl Check for GAS |
190 |
> |
dnl Check for GAS. |
191 |
|
HAVE_GAS=no |
192 |
|
AC_MSG_CHECKING(for GAS .p2align feature) |
193 |
|
cat >conftest.S << EOF |
197 |
|
if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi |
198 |
|
AC_MSG_RESULT($HAVE_GAS) |
199 |
|
|
200 |
< |
dnl Check for GCC 2.7 or higher |
200 |
> |
dnl Check for GCC 2.7 or higher. |
201 |
|
HAVE_GCC27=no |
202 |
|
AC_MSG_CHECKING(for GCC 2.7 or higher) |
203 |
|
AC_EGREP_CPP(yes, |
206 |
|
#endif |
207 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no)) |
208 |
|
|
209 |
< |
dnl Set "-fomit-frame-pointer" on GCC |
209 |
> |
dnl Set "-fomit-frame-pointer" on GCC. |
210 |
|
if [[ "x$HAVE_GCC27" = "xyes" ]]; then |
211 |
|
CFLAGS="$CFLAGS -fomit-frame-pointer" |
212 |
|
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer" |
213 |
|
fi |
214 |
|
|
215 |
< |
dnl Select appropriate CPU source and REGPARAM define |
215 |
> |
dnl Select appropriate CPU source and REGPARAM define. |
216 |
|
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then |
217 |
|
DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\"" |
218 |
|
if [[ "x$HAVE_GAS" = "xyes" ]]; then |
225 |
|
CPUSRCS="$CPUSRCS cpuemu.cpp" |
226 |
|
fi |
227 |
|
|
228 |
< |
dnl Generate Makefile |
228 |
> |
dnl Generate Makefile. |
229 |
|
AC_SUBST(DEFINES) |
230 |
|
AC_SUBST(STATICLIBS) |
231 |
|
AC_SUBST(SYSSRCS) |