31 |
|
[case "$enableval" in |
32 |
|
real) WANT_ADDRESSING_MODE="real";; |
33 |
|
direct) WANT_ADDRESSING_MODE="direct";; |
34 |
< |
direct,0x*) WANT_ADDRESSING_MODE="direct"; NATMEM_OFFSET=`echo "$enableval" | sed -n '/direct,\(0[[xX]][[0-9A-Fa-f]]*\)/s//\1/p'`;; |
34 |
> |
direct,0x*) WANT_ADDRESSING_MODE="direct"; NATMEM_OFFSET=`echo "$enableval" | sed -n '/direct,\(0[[xX]][[0-9A-Fa-f]]*\([[UuLl]]\{1,2\}\)\?\)$/s//\1/p'`;; |
35 |
|
esac], |
36 |
|
[WANT_ADDRESSING_MODE="real"] |
37 |
|
) |
105 |
|
WANT_MON=no |
106 |
|
fi |
107 |
|
fi |
108 |
+ |
AC_SUBST(MONSRCS) |
109 |
|
|
110 |
|
dnl Checks for libraries. |
111 |
|
AC_CHECK_LIB(posix4, sem_init) |
261 |
|
#endif |
262 |
|
]) |
263 |
|
AC_CHECK_HEADERS(linux/if_tun.h net/if.h net/if_tun.h) |
264 |
+ |
AC_CHECK_HEADERS(fenv.h) |
265 |
|
|
266 |
|
dnl Checks for typedefs, structures, and compiler characteristics. |
267 |
|
AC_C_BIGENDIAN |
303 |
|
AC_CHECK_FUNCS(mmap mprotect munmap) |
304 |
|
AC_CHECK_FUNCS(vm_allocate vm_deallocate vm_protect) |
305 |
|
AC_CHECK_FUNCS(posix_memalign memalign valloc) |
306 |
+ |
AC_CHECK_FUNCS(exp2f log2f exp2 log2) |
307 |
|
|
308 |
|
dnl Darwin seems to define mach_task_self() instead of task_self(). |
309 |
|
AC_CHECK_FUNCS(mach_task_self task_self) |
447 |
|
AUDIOSRC="../SDL/audio_sdl.cpp" |
448 |
|
fi |
449 |
|
|
450 |
< |
SYSSRCS="$VIDEOSRCS $EXTFSSRC $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS" |
450 |
> |
SYSSRCS="$VIDEOSRCS $EXTFSSRC $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $EXTRASYSSRCS" |
451 |
|
|
452 |
|
dnl Define a macro that translates a yesno-variable into a C macro definition |
453 |
|
dnl to be put into the config.h file |
919 |
|
memset(m, 0, ranges[[i]].size); |
920 |
|
vm_release(m, ranges[[i]].size); |
921 |
|
if (i == n_ranges - 1) { |
922 |
< |
printf("0x%08x\n", ofs); |
922 |
> |
if (sizeof(void *) == 8 && ofs > 0xffffffff) |
923 |
> |
printf("0x%lxul\n", ofs); |
924 |
> |
else |
925 |
> |
printf("0x%08x\n", ofs); |
926 |
|
return 0; |
927 |
|
} |
928 |
|
} |