|
|
|
@ -11,7 +11,9 @@ Example::
@@ -11,7 +11,9 @@ Example::
|
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
def configure(cfg): |
|
|
|
|
cfg.check_cxx(fragment=''' |
|
|
|
|
cfg.check( |
|
|
|
|
compiler='cxx', |
|
|
|
|
fragment=''' |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
|
int main() { |
|
|
|
@ -19,9 +21,12 @@ def configure(cfg):
@@ -19,9 +21,12 @@ def configure(cfg):
|
|
|
|
|
}''', |
|
|
|
|
define_name="HAVE_CMATH_ISFINITE", |
|
|
|
|
msg="Checking for HAVE_CMATH_ISFINITE", |
|
|
|
|
mandatory=False) |
|
|
|
|
mandatory=False, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cfg.check_cxx(fragment=''' |
|
|
|
|
cfg.check( |
|
|
|
|
compiler='cxx', |
|
|
|
|
fragment=''' |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
|
int main() { |
|
|
|
@ -29,9 +34,12 @@ def configure(cfg):
@@ -29,9 +34,12 @@ def configure(cfg):
|
|
|
|
|
}''', |
|
|
|
|
define_name="HAVE_CMATH_ISINF", |
|
|
|
|
msg="Checking for HAVE_CMATH_ISINF", |
|
|
|
|
mandatory=False) |
|
|
|
|
mandatory=False, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cfg.check_cxx(fragment=''' |
|
|
|
|
cfg.check( |
|
|
|
|
compiler='cxx', |
|
|
|
|
fragment=''' |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
|
int main() { |
|
|
|
@ -39,7 +47,8 @@ def configure(cfg):
@@ -39,7 +47,8 @@ def configure(cfg):
|
|
|
|
|
}''', |
|
|
|
|
define_name="HAVE_CMATH_ISNAN", |
|
|
|
|
msg="Checking for HAVE_CMATH_ISNAN", |
|
|
|
|
mandatory=False) |
|
|
|
|
mandatory=False, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# NEED_CMATH_FUNCTION_STD_NAMESPACE checks are needed due to |
|
|
|
|
# new gcc versions being more restrictive. |
|
|
|
@ -50,7 +59,9 @@ def configure(cfg):
@@ -50,7 +59,9 @@ def configure(cfg):
|
|
|
|
|
# Without these checks, in some cases, gcc points this as |
|
|
|
|
# overloads or function duplication in scope. |
|
|
|
|
|
|
|
|
|
cfg.check_cxx(fragment=''' |
|
|
|
|
cfg.check( |
|
|
|
|
compiler='cxx', |
|
|
|
|
fragment=''' |
|
|
|
|
#include <math.h> |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
@ -61,9 +72,12 @@ def configure(cfg):
@@ -61,9 +72,12 @@ def configure(cfg):
|
|
|
|
|
}''', |
|
|
|
|
define_name="NEED_CMATH_ISFINITE_STD_NAMESPACE", |
|
|
|
|
msg="Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE", |
|
|
|
|
mandatory=False) |
|
|
|
|
mandatory=False, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cfg.check_cxx(fragment=''' |
|
|
|
|
cfg.check( |
|
|
|
|
compiler='cxx', |
|
|
|
|
fragment=''' |
|
|
|
|
#include <math.h> |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
@ -74,9 +88,12 @@ def configure(cfg):
@@ -74,9 +88,12 @@ def configure(cfg):
|
|
|
|
|
}''', |
|
|
|
|
define_name="NEED_CMATH_ISINF_STD_NAMESPACE", |
|
|
|
|
msg="Checking for NEED_CMATH_ISINF_STD_NAMESPACE", |
|
|
|
|
mandatory=False) |
|
|
|
|
mandatory=False, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cfg.check_cxx(fragment=''' |
|
|
|
|
cfg.check( |
|
|
|
|
compiler='cxx', |
|
|
|
|
fragment=''' |
|
|
|
|
#include <math.h> |
|
|
|
|
#include <cmath> |
|
|
|
|
|
|
|
|
@ -87,4 +104,5 @@ def configure(cfg):
@@ -87,4 +104,5 @@ def configure(cfg):
|
|
|
|
|
}''', |
|
|
|
|
define_name="NEED_CMATH_ISNAN_STD_NAMESPACE", |
|
|
|
|
msg="Checking for NEED_CMATH_ISNAN_STD_NAMESPACE", |
|
|
|
|
mandatory=False) |
|
|
|
|
mandatory=False, |
|
|
|
|
) |
|
|
|
|