eccodes/eccodes_config.h.in

128 lines
3.2 KiB
C
Raw Permalink Normal View History

2013-04-10 15:46:41 +00:00
/*
2020-01-28 14:32:34 +00:00
* (C) Copyright 2005- ECMWF.
2013-04-10 15:46:41 +00:00
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
*/
2015-02-18 18:11:38 +00:00
#ifndef eccodes_config_h
#define eccodes_config_h
2013-03-25 12:04:10 +00:00
2015-02-18 10:14:22 +00:00
#include "eccodes_ecbuild_config.h" /* generated by ecbuild */
2013-03-25 12:04:10 +00:00
#define ECCODES_VERSION_STR "@eccodes_VERSION_STR@"
2014-01-03 11:20:14 +00:00
2018-12-28 12:00:18 +00:00
/* ECCODES_VERSION is defined in eccodes_version.h from the 3 version components below */
2013-03-25 12:04:10 +00:00
#define ECCODES_MAJOR_VERSION @eccodes_VERSION_MAJOR@
#define ECCODES_MINOR_VERSION @eccodes_VERSION_MINOR@
#define ECCODES_REVISION_VERSION @eccodes_VERSION_PATCH@
2013-03-25 12:04:10 +00:00
#define ECCODES_DEFINITION_PATH "@ECCODES_DEFINITION_PATH@"
2013-04-10 15:46:41 +00:00
2018-05-18 15:34:35 +00:00
#ifdef ECCODES_HAVE_C_INLINE
2013-04-10 15:46:41 +00:00
#define GRIB_INLINE inline
#endif
#define GRIB_LINUX_PTHREADS @GRIB_LINUX_PTHREADS@
#define GRIB_MEM_ALIGN @GRIB_MEM_ALIGN@
#define GRIB_PTHREADS @GRIB_PTHREADS@
2015-12-30 14:39:02 +00:00
#define GRIB_OMP_THREADS @GRIB_OMP_THREADS@
2013-04-10 15:46:41 +00:00
#define ECCODES_SAMPLES_PATH "@ECCODES_SAMPLES_PATH@"
2013-04-10 15:46:41 +00:00
#define GRIB_TIMER @GRIB_TIMER@
/* headers */
#cmakedefine ECCODES_HAVE_ASSERT_H
#cmakedefine ECCODES_HAVE_STRING_H
#cmakedefine ECCODES_HAVE_SYS_TYPES_H
#cmakedefine ECCODES_HAVE_SYS_STAT_H
#cmakedefine ECCODES_HAVE_FCNTL_H
#cmakedefine ECCODES_HAVE_UNISTD_H
#cmakedefine ECCODES_HAVE_FSEEKO
#cmakedefine ECCODES_HAVE_POSIX_MEMALIGN
#cmakedefine ECCODES_HAVE_FMEMOPEN
#cmakedefine ECCODES_HAVE_FUNOPEN
#cmakedefine ECCODES_HAVE_REALPATH
#if defined(EC_HAVE_ASSERT_H) || defined(ECCODES_HAVE_ASSERT_H)
2013-04-10 15:46:41 +00:00
#define HAVE_ASSERT_H 1
#endif
#if defined(EC_HAVE_STRING_H) || defined(ECCODES_HAVE_STRING_H)
2013-04-10 15:46:41 +00:00
#define HAVE_STRING_H 1
#endif
#if defined(EC_HAVE_SYS_TYPES_H) || defined(ECCODES_HAVE_SYS_TYPES_H)
2013-04-10 15:46:41 +00:00
#define HAVE_SYS_TYPES_H 1
#endif
#if defined(EC_HAVE_SYS_STAT_H) || defined(ECCODES_HAVE_SYS_STAT_H)
#define HAVE_SYS_STAT_H 1
2013-04-10 15:46:41 +00:00
#endif
#if defined(EC_HAVE_FCNTL_H) || defined(ECCODES_HAVE_FCNTL_H)
#define HAVE_FCNTL_H 1
2013-04-10 15:46:41 +00:00
#endif
#if defined(EC_HAVE_UNISTD_H) || defined(ECCODES_HAVE_UNISTD_H)
#define HAVE_UNISTD_H 1
2013-04-10 15:46:41 +00:00
#endif
#if defined(EC_HAVE_FSEEKO) || defined(ECCODES_HAVE_FSEEKO)
#define HAVE_FSEEKO 1
#endif
#if defined(EC_HAVE_POSIX_MEMALIGN) || defined(ECCODES_HAVE_POSIX_MEMALIGN)
#define POSIX_MEMALIGN 1
2013-04-10 15:46:41 +00:00
#endif
2013-04-10 15:46:41 +00:00
/* other */
2013-04-03 10:45:13 +00:00
#define IEEE_BE @IEEE_BE@
2013-04-10 15:46:41 +00:00
2013-04-03 10:45:13 +00:00
#define IEEE_LE @IEEE_LE@
2013-04-10 15:46:41 +00:00
#define IS_BIG_ENDIAN @IS_BIG_ENDIAN@
#define MANAGE_MEM @MANAGE_MEM@
/* packages */
2013-04-03 10:45:13 +00:00
#define HAVE_JPEG @HAVE_JPEG@
2013-04-10 15:46:41 +00:00
2013-04-03 10:45:13 +00:00
#define HAVE_LIBJASPER @HAVE_LIBJASPER@
2013-04-10 15:46:41 +00:00
2013-04-03 10:45:13 +00:00
#define HAVE_LIBOPENJPEG @HAVE_LIBOPENJPEG@
#define HAVE_LIBPNG @HAVE_LIBPNG@
#cmakedefine HAVE_AEC
2013-04-10 15:46:41 +00:00
2013-04-03 10:45:13 +00:00
#cmakedefine HAVE_NETCDF
2013-03-25 12:04:10 +00:00
#cmakedefine HAVE_MEMFS
2016-06-18 17:01:59 +00:00
#ifdef HAVE_MEMFS
#undef ECCODES_DEFINITION_PATH
#define ECCODES_DEFINITION_PATH "/MEMFS/definitions"
#undef ECCODES_SAMPLES_PATH
#define ECCODES_SAMPLES_PATH "/MEMFS/samples"
#undef ECCODES_IFS_SAMPLES_PATH
#define ECCODES_IFS_SAMPLES_PATH "/MEMFS/ifs_samples"
#endif
2016-12-06 11:51:41 +00:00
#ifdef HAVE_LIBJASPER
#define JASPER_VERSION_MAJOR @JASPER_VERSION_MAJOR@
#endif
2015-02-18 18:11:38 +00:00
#endif /* eccodes_config_h */