summaryrefslogtreecommitdiffstats
path: root/m4/aclocal_cxx.m4
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-01-27 20:16:07 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-01-27 20:16:07 (GMT)
commitd29c5a6e6ad8cb50a94e9215d2b2b8682e56818f (patch)
tree1a6dc47a0890a4dd8bcc3a87575b1ba82f22d42f /m4/aclocal_cxx.m4
parent4d34a0c6ad62e0482b699987c6852014dc60b699 (diff)
downloadhdf5-d29c5a6e6ad8cb50a94e9215d2b2b8682e56818f.zip
hdf5-d29c5a6e6ad8cb50a94e9215d2b2b8682e56818f.tar.gz
hdf5-d29c5a6e6ad8cb50a94e9215d2b2b8682e56818f.tar.bz2
[svn-r26052] Fixed false positive tests for intrensic functions.
Tested: jam (mpi, gfortran, intel) --enable-fortran, and --enable-fortran --enable-fortran2003
Diffstat (limited to 'm4/aclocal_cxx.m4')
-rw-r--r--m4/aclocal_cxx.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/aclocal_cxx.m4 b/m4/aclocal_cxx.m4
index 2068587..f373b51 100644
--- a/m4/aclocal_cxx.m4
+++ b/m4/aclocal_cxx.m4
@@ -25,12 +25,12 @@ dnl Checking if C++ needs old style header files in includes
AC_DEFUN([PAC_PROG_CXX_HEADERS],[
AC_MSG_CHECKING([if $CXX needs old style header files in includes])
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <iostream>
int main(void) { return 0; }
])],
- [AC_MSG_RESULT([no])],
+ [AC_MSG_RESULT([no])],
[AC_MSG_RESULT([yes])
CXXFLAGS="${CXXFLAGS} -DOLD_HEADER_FILENAME"
AM_CXXFLAGS="${AM_CXXFLAGS} -DOLD_HEADER_FILENAME"])
@@ -40,7 +40,7 @@ dnl Checking if ++ can handle namespaces
AC_DEFUN([PAC_PROG_CXX_NAMESPACE],[
AC_MSG_CHECKING([if $CXX can handle namespaces])
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
namespace H5 {
int fnord;
}
@@ -60,7 +60,7 @@ dnl Checking if C++ supports std
AC_DEFUN([PAC_PROG_CXX_STD],[
AC_MSG_CHECKING([if $CXX supports std])
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <string>
using namespace std;
@@ -79,7 +79,7 @@ dnl Checking if C++ has offsetof extension
AC_DEFUN([PAC_PROG_CXX_OFFSETOF],[
AC_MSG_CHECKING([if $CXX has offsetof extension])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <stdio.h>
#include <stddef.h>
],[
@@ -102,7 +102,7 @@ dnl Checking if C++ can handle static cast
AC_DEFUN([PAC_PROG_CXX_STAIC_CAST],[
AC_MSG_CHECKING([if $CXX can handle static cast])
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+ AC_LINK_IFELSE([AC_LANG_SOURCE([
int main(void) {
float test_float;
int test_int;