projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ddec0ec
)
Fix the -lm configure test; fixes #4155
author
Ian Lynagh
<igloo@earth.li>
Thu, 5 Aug 2010 14:25:08 +0000
(14:25 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Thu, 5 Aug 2010 14:25:08 +0000
(14:25 +0000)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
f277367
..
33614e0
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-780,8
+780,11
@@
dnl Keep that check as early as possible.
dnl as we need to know whether we need libm
dnl for math functions or not
dnl (see http://hackage.haskell.org/trac/ghc/ticket/3730)
dnl as we need to know whether we need libm
dnl for math functions or not
dnl (see http://hackage.haskell.org/trac/ghc/ticket/3730)
-AC_SEARCH_LIBS(atan, m,
- [AC_DEFINE([HAVE_LIBM], [1], [Define to 1 if you need to link with libm])])
+AC_CHECK_LIB(m, atan, HaveLibM=YES, HaveLibM=NO)
+if test $HaveLibM = YES
+then
+ AC_DEFINE([HAVE_LIBM], [1], [Define to 1 if you need to link with libm])
+fi
dnl ** check whether this machine has BFD and liberty installed (used for debugging)
dnl the order of these tests matters: bfd needs liberty
dnl ** check whether this machine has BFD and liberty installed (used for debugging)
dnl the order of these tests matters: bfd needs liberty