libs/vkd3d: Add vkd3d_common.h.

This commit is contained in:
Józef Kucia
2016-09-21 12:57:24 +02:00
parent 40c42f7237
commit db41f92040
3 changed files with 71 additions and 1 deletions

View File

@@ -38,6 +38,26 @@ then
VKD3D_CHECK_CFLAGS([-Wvla])
fi
dnl Check for __sync_add_and_fetch
AC_MSG_CHECKING([for __sync_add_and_fetch])
AC_LINK_IFELSE(
[AC_LANG_SOURCE([
int main(void) { return __sync_add_and_fetch((int *)0, 0); }
])],
[AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_SYNC_ADD_AND_FETCH], [1], [Define to 1 if you have __sync_add_and_fetch.])],
[AC_MSG_RESULT([no])])
dnl Check for __sync_sub_and_fetch
AC_MSG_CHECKING([for __sync_sub_and_fetch])
AC_LINK_IFELSE(
[AC_LANG_SOURCE([
int main(void) { return __sync_sub_and_fetch((int *)0, 0); }
])],
[AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_SYNC_SUB_AND_FETCH], [1], [Define to 1 if you have __sync_sub_and_fetch.])],
[AC_MSG_RESULT([no])])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT