summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-05 07:21:21 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-04-05 07:21:21 +0000
commit2afb297b498598ee193d844235157d3bd8e4c6d0 (patch)
treec7598745386be8715db56b415cb6d9e054e62cd6 /configure.in
parentb2189c290b8758184ca6810535b416869c060c1e (diff)
downloadmpfr-2afb297b498598ee193d844235157d3bd8e4c6d0.tar.gz
use AC_CHECK_HEADERS to check for fenv.h
and AC_CHECK_FUNCS to check for lrand48 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1813 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 2 insertions, 17 deletions
diff --git a/configure.in b/configure.in
index 36ccf17f3..708f6b064 100644
--- a/configure.in
+++ b/configure.in
@@ -57,7 +57,7 @@ case $OS_TYPE in
;;
esac
-AC_CHECK_HEADERS(fpu_control.h)
+AC_CHECK_HEADERS(fenv.h fpu_control.h)
dnl Tests concerning the include directories.
AC_MSG_CHECKING(for gmp files)
@@ -97,22 +97,7 @@ default target architecture may be different, hence the error.])],
)
dnl Check random functions
-AC_MSG_CHECKING(for rand48 functions)
-AC_TRY_RUN([#include <stdlib.h>
-int main() { long int l = lrand48 (); return 0; }],
- [AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_RAND48)],
- AC_MSG_RESULT(no),
- AC_MSG_RESULT(no)
-)
-
-dnl Check for ISOC9X interface for rounding modes
-AC_MSG_CHECKING(for fenv.h)
-AC_TRY_CPP([#include <fenv.h>],
- [AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_FENV)],
- AC_MSG_RESULT(no)
-)
+AC_CHECK_FUNCS(lrand48)
dnl Check whether 0/0, 1/0, -1/0 are valid expressions
AC_MSG_CHECKING(for 0/0 as a valid expression)