Mercurial > octave-nkf
comparison oct-conf-post.in.h @ 16330:306e0ac231d0
move AH_BOTTOM output to separate header file
* oct-conf-post.in.h: New file with contents extracted from AH_BOTTOM
configure macro.
* configure.ac (AH_BOTTOM): Simply include oct-conf-post.h.
(AC_CONFIG_HEADERS): Use config.in.h instead of config.h.in for
consistency with other generated header files.
(AC_CONFIG_FILES): Generate oct-conf-post.h from oct-conf-post.in.h.
* Makefile.am (octinclude_HEADERS): New variable.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 17 Mar 2013 04:58:33 -0400 |
parents | |
children | 5293cee91891 |
comparison
equal
deleted
inserted
replaced
16329:7d0848353eaf | 16330:306e0ac231d0 |
---|---|
1 /* | |
2 | |
3 Copyright (C) 1993-2012 John W. Eaton | |
4 | |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
9 Free Software Foundation; either version 3 of the License, or (at your | |
10 option) any later version. | |
11 | |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with Octave; see the file COPYING. If not, see | |
19 <http://www.gnu.org/licenses/>. | |
20 | |
21 */ | |
22 | |
23 #if !defined (GNULIB_NAMESPACE) | |
24 #define GNULIB_NAMESPACE gnulib | |
25 #endif | |
26 | |
27 #if defined (__GNUC__) | |
28 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) | |
29 #define HAVE_ATTR_DEPRECATED | |
30 | |
31 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) | |
32 #define HAVE_ATTR_NORETURN | |
33 | |
34 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) | |
35 #define HAVE_ATTR_UNUSED | |
36 #else | |
37 #define GCC_ATTR_DEPRECATED | |
38 #define GCC_ATTR_NORETURN | |
39 #define GCC_ATTR_UNUSED | |
40 #endif | |
41 | |
42 #define X_CAST(T, E) (T) (E) | |
43 | |
44 #if defined (CXX_BROKEN_REINTERPRET_CAST) | |
45 #define FCN_PTR_CAST(T, E) (T) (E) | |
46 #else | |
47 #define FCN_PTR_CAST(T, E) reinterpret_cast<T> (E) | |
48 #endif | |
49 | |
50 #if ! defined (HAVE_DEV_T) | |
51 typedef short dev_t; | |
52 #endif | |
53 | |
54 #if ! defined (HAVE_INO_T) | |
55 typedef unsigned long ino_t; | |
56 #endif | |
57 | |
58 #if defined (_MSC_VER) | |
59 #define __WIN32__ | |
60 #define WIN32 | |
61 /* missing parameters in macros */ | |
62 #pragma warning (disable: 4003) | |
63 /* missing implementations in template instantiation */ | |
64 #pragma warning (disable: 4996) | |
65 /* deprecated function names (FIXME?) */ | |
66 #pragma warning (disable: 4661) | |
67 #endif | |
68 | |
69 #if defined (__WIN32__) && ! defined (__CYGWIN__) | |
70 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 | |
71 #elif defined (__CYGWIN__) | |
72 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 | |
73 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
74 #else | |
75 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
76 #endif | |
77 | |
78 /* Define to 1 if we expect to have <windows.h>, Sleep, etc. */ | |
79 #if defined (__WIN32__) && ! defined (__CYGWIN__) | |
80 #define OCTAVE_USE_WINDOWS_API 1 | |
81 #endif | |
82 | |
83 #if defined (__APPLE__) && defined (__MACH__) | |
84 #define OCTAVE_USE_OS_X_API 1 | |
85 #endif | |
86 | |
87 /* sigsetjmp is a macro, not a function. */ | |
88 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) | |
89 #define OCTAVE_HAVE_SIG_JUMP | |
90 #endif | |
91 | |
92 #if defined (_UNICOS) | |
93 #define F77_USES_CRAY_CALLING_CONVENTION | |
94 #endif | |
95 | |
96 #if 0 | |
97 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION | |
98 #endif | |
99 | |
100 #ifdef USE_64_BIT_IDX_T | |
101 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT64_T | |
102 #else | |
103 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT | |
104 #endif | |
105 | |
106 /* To be able to use long doubles for 64-bit mixed arithmetics, we need | |
107 them at least 80 bits wide and we need roundl declared in math.h. | |
108 FIXME: Maybe substitute this by a more precise check in the future? */ | |
109 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL) | |
110 #define OCTAVE_INT_USE_LONG_DOUBLE | |
111 #endif | |
112 | |
113 #define OCTAVE_EMPTY_CPP_ARG | |
114 | |
115 /* Octave is currently unable to use FFTW unless both float | |
116 and double versions are available. */ | |
117 #if defined (HAVE_FFTW3) && defined (HAVE_FFTW3F) | |
118 #define HAVE_FFTW | |
119 #endif | |
120 | |
121 /* Backward compatibility. */ | |
122 #if defined (HAVE_Z) | |
123 #define HAVE_ZLIB | |
124 #endif | |
125 | |
126 /* oct-dlldefs.h */ | |
127 | |
128 #if defined (_MSC_VER) | |
129 #define OCTAVE_EXPORT __declspec(dllexport) | |
130 #define OCTAVE_IMPORT __declspec(dllimport) | |
131 #else | |
132 /* All other compilers, at least for now. */ | |
133 #define OCTAVE_EXPORT | |
134 #define OCTAVE_IMPORT | |
135 #endif | |
136 | |
137 /* API macro for libcruft */ | |
138 #ifdef CRUFT_DLL | |
139 #define CRUFT_API OCTAVE_EXPORT | |
140 #else | |
141 #define CRUFT_API OCTAVE_IMPORT | |
142 #endif | |
143 | |
144 /* API macro for liboctave */ | |
145 #ifdef OCTAVE_DLL | |
146 #define OCTAVE_API OCTAVE_EXPORT | |
147 #else | |
148 #define OCTAVE_API OCTAVE_IMPORT | |
149 #endif | |
150 | |
151 /* API macro for libinterp */ | |
152 #ifdef OCTINTERP_DLL | |
153 #define OCTINTERP_API OCTAVE_EXPORT | |
154 #else | |
155 #define OCTINTERP_API OCTAVE_IMPORT | |
156 #endif | |
157 | |
158 /* API macro for libinterp/graphics */ | |
159 #ifdef OCTGRAPHICS_DLL | |
160 #define OCTGRAPHICS_API OCTAVE_EXPORT | |
161 #else | |
162 #define OCTGRAPHICS_API OCTAVE_IMPORT | |
163 #endif | |
164 | |
165 /* API macro for libgui */ | |
166 #ifdef OCTGUI_DLL | |
167 #define OCTGUI_API OCTAVE_EXPORT | |
168 #else | |
169 #define OCTGUI_API OCTAVE_IMPORT | |
170 #endif | |
171 | |
172 /* oct-types.h */ | |
173 | |
174 #include <stdint.h> | |
175 | |
176 typedef OCTAVE_IDX_TYPE octave_idx_type; | |
177 | |
178 /* Tag indicating Octave config.h has been included */ | |
179 #define OCTAVE_CONFIG_INCLUDED 1 |