2000-09-20 04:06:49 +08:00
|
|
|
dnl -------------------------------------------------------------------------
|
|
|
|
dnl -------------------------------------------------------------------------
|
|
|
|
dnl
|
2017-04-18 03:32:16 +08:00
|
|
|
dnl Copyright by The HDF Group.
|
2002-09-10 05:51:35 +08:00
|
|
|
dnl All rights reserved.
|
|
|
|
dnl
|
|
|
|
dnl This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
dnl terms governing use, modification, and redistribution, is contained in
|
2017-04-18 03:32:16 +08:00
|
|
|
dnl the COPYING file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
dnl dnl distribution tree, or in https://www.hdfgroup.org/licenses.
|
2017-04-18 03:32:16 +08:00
|
|
|
dnl dnl If you do not have access to either file, you may request a copy from
|
|
|
|
dnl dnl help@hdfgroup.org.
|
2002-09-10 05:51:35 +08:00
|
|
|
dnl
|
2000-09-20 04:06:49 +08:00
|
|
|
dnl Macros for HDF5 Fortran
|
|
|
|
dnl
|
|
|
|
dnl -------------------------------------------------------------------------
|
|
|
|
dnl -------------------------------------------------------------------------
|
|
|
|
|
2010-05-06 01:34:26 +08:00
|
|
|
dnl -------------------------------------------------------------------------
|
|
|
|
dnl _AC_SYS_LARGEFILE_MACRO_VALUE
|
|
|
|
dnl
|
|
|
|
dnl The following macro overrides the autoconf macro of the same name
|
2020-04-21 07:12:00 +08:00
|
|
|
dnl with this custom definition. This macro performs the same checks as
|
2010-05-06 01:34:26 +08:00
|
|
|
dnl autoconf's native _AC_SYS_LARGEFILE_MACRO_VALUE, but will also set
|
2020-04-21 07:12:00 +08:00
|
|
|
dnl AM_CPPFLAGS with the appropriate -D defines so additional configure
|
2010-05-06 01:34:26 +08:00
|
|
|
dnl sizeof checks do not fail.
|
|
|
|
dnl
|
|
|
|
# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
|
|
|
|
# CACHE-VAR,
|
|
|
|
# DESCRIPTION,
|
|
|
|
# PROLOGUE, [FUNCTION-BODY])
|
|
|
|
# ----------------------------------------------------------
|
|
|
|
m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
|
|
|
|
[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
|
|
|
|
[while :; do
|
|
|
|
m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
|
|
|
|
[AC_LANG_PROGRAM([$5], [$6])],
|
|
|
|
[$3=no; break])
|
|
|
|
m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
|
|
|
|
[AC_LANG_PROGRAM([@%:@define $1 $2
|
|
|
|
$5], [$6])],
|
|
|
|
[$3=$2; break])
|
|
|
|
$3=unknown
|
|
|
|
break
|
|
|
|
done])
|
|
|
|
case $$3 in #(
|
|
|
|
no | unknown) ;;
|
|
|
|
*) AC_DEFINE_UNQUOTED([$1], [$$3], [$4])
|
2015-03-05 06:01:37 +08:00
|
|
|
AM_CPPFLAGS="-D$1=$$3 $AM_CPPFLAGS";;
|
2010-05-06 01:34:26 +08:00
|
|
|
esac
|
|
|
|
rm -rf conftest*[]dnl
|
|
|
|
])# _AC_SYS_LARGEFILE_MACRO_VALUE
|
|
|
|
|