From: Zoltan Varga Date: Wed, 12 Nov 2003 13:09:46 +0000 (-0000) Subject: 2003-11-12 Zoltan Varga X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=8f7a2972784ced4fd8d491c08c75b12138a3ff8f;p=mono.git 2003-11-12 Zoltan Varga * configure.in acconfig.h: Add check for signbit, which is missing in FreeBSD 4.x. svn path=/trunk/mono/; revision=19869 --- diff --git a/ChangeLog b/ChangeLog index 264fedaa5d3..644d9dc3ffa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-12 Zoltan Varga + + * configure.in acconfig.h: Add check for signbit, which is missing in + FreeBSD 4.x. + 2003-11-07 Zoltan Varga * configure.in: Remove debugging junk accidently checked in. diff --git a/acconfig.h b/acconfig.h index 2ed16243b47..e54d4eeea44 100644 --- a/acconfig.h +++ b/acconfig.h @@ -29,3 +29,4 @@ #undef HAVE_GETHOSTBYNAME2_R #undef HAVE_ICU #undef HAVE_KW_THREAD +#undef HAVE_SIGNBIT diff --git a/configure.in b/configure.in index 7c7cf2d18a3..0d1f6772773 100644 --- a/configure.in +++ b/configure.in @@ -647,6 +647,19 @@ if test x$platform_win32 = xno; then dnl *** have it in the library (duh)) *** dnl **************************************************************** AC_CHECK_FUNCS(poll) + + dnl ************************* + dnl *** Check for signbit *** + dnl ************************* + AC_MSG_CHECKING(for signbit) + AC_TRY_COMPILE([#include ], [ + int s = signbit(1.0); + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SIGNBIT) + ], [ + AC_MSG_RESULT(no) + ]) else AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?)) AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))