From 22f6814985f3c559a437541e701b14a22e1ed0dc Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 15 Jan 2013 19:35:10 +0000 Subject: Make CCTK_REAL16 more flexible Instead of assuming that CCTK_REAL16 is real*16 in Fortran, allow any real*N for user-specified values of N. This enables using CCTK_REAL16 e.g. with gcc versions that call it real*10. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4935 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/aclocal.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/make/aclocal.m4') diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index f1da34da..4fc8db54 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -710,7 +710,7 @@ AC_DEFUN(CCTK_FORTRAN_REAL16, [cctk_cv_have_fortran_real16=no AC_LANG_SAVE AC_LANG_FORTRAN77 -CCTK_TRY_COMPILE(,[ REAL*16 a], cctk_cv_have_fortran_real16=yes, cctk_cv_have_fortran_real16=no) +CCTK_TRY_COMPILE(,[ REAL*$REAL16_KIND a], cctk_cv_have_fortran_real16=yes, cctk_cv_have_fortran_real16=no) AC_LANG_RESTORE ]) if test "$cctk_cv_have_fortran_real16" = "yes" ; then @@ -749,7 +749,7 @@ AC_DEFUN(CCTK_FORTRAN_COMPLEX32, [cctk_cv_have_fortran_complex32=no AC_LANG_SAVE AC_LANG_FORTRAN77 -CCTK_TRY_COMPILE(,[ COMPLEX*32 a], cctk_cv_have_fortran_complex32=yes, cctk_cv_have_fortran_complex32=no) +CCTK_TRY_COMPILE(,[ COMPLEX*$COMPLEX32_KIND a], cctk_cv_have_fortran_complex32=yes, cctk_cv_have_fortran_complex32=no) AC_LANG_RESTORE ]) if test "$cctk_cv_have_fortran_complex32" = "yes" ; then -- cgit v1.2.3