00001 // -*-C-*- 00002 // $Id: plConfig.h.cmake 11680 2011-03-27 17:57:51Z airwin $ 00003 // 00004 // Maurice LeBrun 00005 // IFS, University of Texas at Austin 00006 // 18-Jul-1994 00007 // 00008 // Copyright (C) 2004, 2006, 2007, 2008, 2009 Alan W. Irwin 00009 // Copyright (C) 2004 Rafael Laboissiere 00010 // Copyright (C) 2004 Joao Cardoso 00011 // 00012 // This file is part of PLplot. 00013 // 00014 // PLplot is free software; you can redistribute it and/or modify 00015 // it under the terms of the GNU Library General Public License as published 00016 // by the Free Software Foundation; either version 2 of the License, or 00017 // (at your option) any later version. 00018 // 00019 // PLplot is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 // GNU Library General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU Library General Public License 00025 // along with PLplot; if not, write to the Free Software 00026 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00027 // 00028 // 00029 00030 // Configured (by CMake) macros for PLplot that are required for the 00031 // core build and the build of the installed 00032 // examples (and presumably any user applications). Therefore, the 00033 // configured plConfig.h should be installed. In contrast, 00034 // config.h.cmake (note, plConfig.h #includes config.h for 00035 // the core build because HAVE_CONFIG_H is #defined in that case) 00036 // contains configured macros that are only required for the core 00037 // build. Therefore, in contrast to plConfig.h, config.h should not 00038 // be installed. 00039 // 00040 // Maintenance issue: in makes no sense to configure duplicate macros 00041 // for both config.h and plConfig.h. Therefore, when adding a macro 00042 // decide which file to put it in depending on whether the result is 00043 // needed for the installed examples build or not. Furthermore, move 00044 // configured macros from one file to the other as needed depending on 00045 // that criterion, but do not copy them. 00046 // 00047 // 00048 00049 #ifndef __PLCONFIG_H__ 00050 #define __PLCONFIG_H__ 00051 00052 #ifdef HAVE_CONFIG_H 00053 # include <config.h> 00054 #endif 00055 00056 // Define if you have c++ accessible stdint.h 00057 #define PL_HAVE_CXX_STDINT_H 00058 00059 // Define if snprintf is available 00060 #ifndef PL_HAVE_SNPRINTF 00061 #define PL_HAVE_SNPRINTF 00062 #endif 00063 00064 // Define if _snprintf is available 00065 #ifndef _PL_HAVE_SNPRINTF 00066 /* #undef _PL_HAVE_SNPRINTF */ 00067 #endif 00068 00069 // Define if isinf is available 00070 #define PL_HAVE_ISINF 00071 00072 // Define if _isinf is available 00073 /* #undef PL__HAVE_ISINF */ 00074 00075 // Define if isnan is available 00076 #define PL_HAVE_ISNAN 00077 00078 // Define if _isnan is available 00079 /* #undef PL__HAVE_ISNAN */ 00080 00081 // Define to 1 if you have the <stdint.h> header file. 00082 #define PL_HAVE_STDINT_H 1 00083 00084 // Define to 1 if you have the <unistd.h> header file. 00085 #define PL_HAVE_UNISTD_H 1 00086 00087 // Define if usleep is available 00088 #define PL_HAVE_USLEEP 00089 00090 // Define if you want PLplot's float type to be double 00091 #define PL_DOUBLE 00092 00093 // Define if C++ compiler accepts using namespace 00094 #define PL_USE_NAMESPACE 00095 00096 // Define if isnan is present in <math.h> but not in <cmath> 00097 // - broken Mac OSX systems 00098 /* #undef PL_BROKEN_ISNAN_CXX */ 00099 00100 #endif // __PLCONFIG_H__