|
|
@ -717,22 +717,8 @@ AX_GCC_FUNC_ATTRIBUTE([dllexport])
|
|
|
|
AX_GCC_FUNC_ATTRIBUTE([dllimport])
|
|
|
|
AX_GCC_FUNC_ATTRIBUTE([dllimport])
|
|
|
|
|
|
|
|
|
|
|
|
if test x$use_glibc_compat != xno; then
|
|
|
|
if test x$use_glibc_compat != xno; then
|
|
|
|
|
|
|
|
AX_CHECK_LINK_FLAG([[-Wl,--wrap=__divmoddi4]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=__divmoddi4"])
|
|
|
|
dnl __fdelt_chk's params and return type have changed from long unsigned int to long int.
|
|
|
|
AX_CHECK_LINK_FLAG([[-Wl,--wrap=log2f]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log2f"])
|
|
|
|
dnl See which one is present here.
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(__fdelt_chk type)
|
|
|
|
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef _FORTIFY_SOURCE
|
|
|
|
|
|
|
|
#undef _FORTIFY_SOURCE
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define _FORTIFY_SOURCE 2
|
|
|
|
|
|
|
|
#include <sys/select.h>
|
|
|
|
|
|
|
|
extern "C" long unsigned int __fdelt_warn(long unsigned int);]],[[]])],
|
|
|
|
|
|
|
|
[ fdelt_type="long unsigned int"],
|
|
|
|
|
|
|
|
[ fdelt_type="long int"])
|
|
|
|
|
|
|
|
AC_MSG_RESULT($fdelt_type)
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(FDELT_TYPE, $fdelt_type,[parameter and return value type for __fdelt_chk])
|
|
|
|
|
|
|
|
AX_CHECK_LINK_FLAG([[-Wl,--wrap=__divmoddi4]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=__divmoddi4"],, [[$LDFLAG_WERROR]])
|
|
|
|
|
|
|
|
AX_CHECK_LINK_FLAG([[-Wl,--wrap=log2f]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log2f"],, [[$LDFLAG_WERROR]])
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
AC_SEARCH_LIBS([clock_gettime],[rt])
|
|
|
|
AC_SEARCH_LIBS([clock_gettime],[rt])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|