修訂 | b2e3b4f18e4d817b9743d6a55f2878418daa5c09 (tree) |
---|---|
時間 | 2022-08-02 20:57:12 |
作者 | ![]() |
Commiter | Mitsuaki Kawamura |
Update version ID and autoreconf
@@ -85,8 +85,6 @@ POST_INSTALL = : | ||
85 | 85 | NORMAL_UNINSTALL = : |
86 | 86 | PRE_UNINSTALL = : |
87 | 87 | POST_UNINSTALL = : |
88 | -build_triplet = @build@ | |
89 | -host_triplet = @host@ | |
90 | 88 | subdir = . |
91 | 89 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
92 | 90 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
@@ -158,8 +156,6 @@ CTAGS = ctags | ||
158 | 156 | CSCOPE = cscope |
159 | 157 | DIST_SUBDIRS = $(SUBDIRS) |
160 | 158 | am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
161 | - $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \ | |
162 | - $(top_srcdir)/config/config.sub \ | |
163 | 159 | $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing \ |
164 | 160 | README config/compile config/config.guess config/config.sub \ |
165 | 161 | config/depcomp config/install-sh config/missing |
@@ -212,10 +208,6 @@ AUTOCONF = @AUTOCONF@ | ||
212 | 208 | AUTOHEADER = @AUTOHEADER@ |
213 | 209 | AUTOMAKE = @AUTOMAKE@ |
214 | 210 | AWK = @AWK@ |
215 | -CC = @CC@ | |
216 | -CCDEPMODE = @CCDEPMODE@ | |
217 | -CFLAGS = @CFLAGS@ | |
218 | -CPP = @CPP@ | |
219 | 211 | CPPFLAGS = @CPPFLAGS@ |
220 | 212 | CXX = @CXX@ |
221 | 213 | CXXDEPMODE = @CXXDEPMODE@ |
@@ -226,13 +218,7 @@ DEPDIR = @DEPDIR@ | ||
226 | 218 | ECHO_C = @ECHO_C@ |
227 | 219 | ECHO_N = @ECHO_N@ |
228 | 220 | ECHO_T = @ECHO_T@ |
229 | -EGREP = @EGREP@ | |
230 | 221 | EXEEXT = @EXEEXT@ |
231 | -GLU_CFLAGS = @GLU_CFLAGS@ | |
232 | -GLU_LIBS = @GLU_LIBS@ | |
233 | -GL_CFLAGS = @GL_CFLAGS@ | |
234 | -GL_LIBS = @GL_LIBS@ | |
235 | -GREP = @GREP@ | |
236 | 222 | INSTALL = @INSTALL@ |
237 | 223 | INSTALL_DATA = @INSTALL_DATA@ |
238 | 224 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
@@ -253,9 +239,6 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
253 | 239 | PACKAGE_URL = @PACKAGE_URL@ |
254 | 240 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
255 | 241 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
256 | -PKG_CONFIG = @PKG_CONFIG@ | |
257 | -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
258 | -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
259 | 242 | SET_MAKE = @SET_MAKE@ |
260 | 243 | SHELL = @SHELL@ |
261 | 244 | STRIP = @STRIP@ |
@@ -277,7 +260,6 @@ abs_builddir = @abs_builddir@ | ||
277 | 260 | abs_srcdir = @abs_srcdir@ |
278 | 261 | abs_top_builddir = @abs_top_builddir@ |
279 | 262 | abs_top_srcdir = @abs_top_srcdir@ |
280 | -ac_ct_CC = @ac_ct_CC@ | |
281 | 263 | ac_ct_CXX = @ac_ct_CXX@ |
282 | 264 | am__include = @am__include@ |
283 | 265 | am__leading_dot = @am__leading_dot@ |
@@ -285,22 +267,14 @@ am__quote = @am__quote@ | ||
285 | 267 | am__tar = @am__tar@ |
286 | 268 | am__untar = @am__untar@ |
287 | 269 | bindir = @bindir@ |
288 | -build = @build@ | |
289 | 270 | build_alias = @build_alias@ |
290 | -build_cpu = @build_cpu@ | |
291 | -build_os = @build_os@ | |
292 | -build_vendor = @build_vendor@ | |
293 | 271 | builddir = @builddir@ |
294 | 272 | datadir = @datadir@ |
295 | 273 | datarootdir = @datarootdir@ |
296 | 274 | docdir = @docdir@ |
297 | 275 | dvidir = @dvidir@ |
298 | 276 | exec_prefix = @exec_prefix@ |
299 | -host = @host@ | |
300 | 277 | host_alias = @host_alias@ |
301 | -host_cpu = @host_cpu@ | |
302 | -host_os = @host_os@ | |
303 | -host_vendor = @host_vendor@ | |
304 | 278 | htmldir = @htmldir@ |
305 | 279 | includedir = @includedir@ |
306 | 280 | infodir = @infodir@ |
@@ -316,6 +290,7 @@ pdfdir = @pdfdir@ | ||
316 | 290 | prefix = @prefix@ |
317 | 291 | program_transform_name = @program_transform_name@ |
318 | 292 | psdir = @psdir@ |
293 | +runstatedir = @runstatedir@ | |
319 | 294 | sbindir = @sbindir@ |
320 | 295 | sharedstatedir = @sharedstatedir@ |
321 | 296 | srcdir = @srcdir@ |
@@ -20,1128 +20,6 @@ You have another version of autoconf. It may work, but is not guaranteed to. | ||
20 | 20 | If you have problems, you may need to regenerate the build system entirely. |
21 | 21 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
22 | 22 | |
23 | -# =========================================================================== | |
24 | -# https://www.gnu.org/software/autoconf-archive/ax_check_gl.html | |
25 | -# =========================================================================== | |
26 | -# | |
27 | -# SYNOPSIS | |
28 | -# | |
29 | -# AX_CHECK_GL([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) | |
30 | -# | |
31 | -# DESCRIPTION | |
32 | -# | |
33 | -# Checks for an OpenGL implementation. If a valid OpenGL implementation is | |
34 | -# found, this macro would set C preprocessor symbol HAVE_GL to 1. | |
35 | -# | |
36 | -# If either a valid OpenGL header or library was not found, by default the | |
37 | -# configuration would exits on error. This behavior can be overwritten by | |
38 | -# providing a custom "ACTION-IF-NOT-FOUND" hook. | |
39 | -# | |
40 | -# If the header, library was found, and been tested for compiling and | |
41 | -# linking the configuration would export the required compiler flags to | |
42 | -# "GL_CFLAGS" and "GL_LIBS". These two variables can also be overwritten | |
43 | -# by user from the command line if they want to link against the library | |
44 | -# they specified instead of having the configuration script to detect the | |
45 | -# flags automatically. Note that having "GL_CFLAGS" or "GL_LIBS" set | |
46 | -# doesn't mean it can compile or link with the flags, since it could be | |
47 | -# overwritten by user. However the "HAVE_GL" symbol and "ACTION-IF-FOUND" | |
48 | -# hook is always guaranteed to reflect a valid OpenGL implementation. | |
49 | -# | |
50 | -# If user didn't specify the "ACTION-IF-FOUND" hook, the configuration | |
51 | -# would prepend "GL_CFLAGS" and "GL_LIBS" to "CFLAGS" and "LIBS", like | |
52 | -# many other autoconf macros do. | |
53 | -# | |
54 | -# OpenGL is one of the libraries that has different header names on | |
55 | -# different platforms. This macro does the header detection, and will | |
56 | -# export the following symbol: "HAVE_GL_GL_H" for having "GL/gl.h" or | |
57 | -# "HAVE_OPENGL_GL_H" for having "OpenGL/gl.h". To write a portable OpenGL | |
58 | -# code, you should include OpenGL header like so: | |
59 | -# | |
60 | -# #if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
61 | -# # include <windows.h> | |
62 | -# #endif | |
63 | -# #ifdef HAVE_GL_GL_H | |
64 | -# # include <GL/gl.h> | |
65 | -# #elif defined(HAVE_OPENGL_GL_H) | |
66 | -# # include <OpenGL/gl.h> | |
67 | -# #else | |
68 | -# # error no gl.h | |
69 | -# #endif | |
70 | -# | |
71 | -# On the OSX platform, there's two possible OpenGL implementation. One is | |
72 | -# the OpenGL that ships with OSX, the other comes with X11/XQuartz | |
73 | -# (http://www.xquartz.org). To use the xquartz variant, user can use the | |
74 | -# option --with-xquartz-gl[=path to xquartz root]. By default the | |
75 | -# configuration will check "/opt/X11", which is the default X11 install | |
76 | -# location on OSX. | |
77 | -# | |
78 | -# LICENSE | |
79 | -# | |
80 | -# Copyright (c) 2009 Braden McDaniel <braden@endoframe.com> | |
81 | -# Copyright (c) 2012 Bastien Roucaries <roucaries.bastien+autoconf@gmail.com> | |
82 | -# Copyright (c) 2016 Felix Chern <idryman@gmail.com> | |
83 | -# | |
84 | -# This program is free software; you can redistribute it and/or modify it | |
85 | -# under the terms of the GNU General Public License as published by the | |
86 | -# Free Software Foundation; either version 2 of the License, or (at your | |
87 | -# option) any later version. | |
88 | -# | |
89 | -# This program is distributed in the hope that it will be useful, but | |
90 | -# WITHOUT ANY WARRANTY; without even the implied warranty of | |
91 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
92 | -# Public License for more details. | |
93 | -# | |
94 | -# You should have received a copy of the GNU General Public License along | |
95 | -# with this program. If not, see <https://www.gnu.org/licenses/>. | |
96 | -# | |
97 | -# As a special exception, the respective Autoconf Macro's copyright owner | |
98 | -# gives unlimited permission to copy, distribute and modify the configure | |
99 | -# scripts that are the output of Autoconf when processing the Macro. You | |
100 | -# need not follow the terms of the GNU General Public License when using | |
101 | -# or distributing such scripts, even though portions of the text of the | |
102 | -# Macro appear in them. The GNU General Public License (GPL) does govern | |
103 | -# all other use of the material that constitutes the Autoconf Macro. | |
104 | -# | |
105 | -# This special exception to the GPL applies to versions of the Autoconf | |
106 | -# Macro released by the Autoconf Archive. When you make and distribute a | |
107 | -# modified version of the Autoconf Macro, you may extend this special | |
108 | -# exception to the GPL to apply to your modified version as well. | |
109 | - | |
110 | -#serial 22 | |
111 | - | |
112 | -# example gl program | |
113 | -m4_define([_AX_CHECK_GL_PROGRAM], | |
114 | - [AC_LANG_PROGRAM([[ | |
115 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
116 | -# include <windows.h> | |
117 | -# endif | |
118 | -# ifdef HAVE_GL_GL_H | |
119 | -# include <GL/gl.h> | |
120 | -# elif defined(HAVE_OPENGL_GL_H) | |
121 | -# include <OpenGL/gl.h> | |
122 | -# else | |
123 | -# error no gl.h | |
124 | -# endif | |
125 | -]],[[glBegin(0)]])]) | |
126 | - | |
127 | -dnl Default include : add windows.h | |
128 | -dnl see http://www.opengl.org/wiki/Platform_specifics:_Windows | |
129 | -dnl (acceded 20120801) | |
130 | -AC_DEFUN([_AX_CHECK_GL_INCLUDES_DEFAULT],dnl | |
131 | -[ | |
132 | - AC_INCLUDES_DEFAULT | |
133 | - [ | |
134 | - # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
135 | - # include <windows.h> | |
136 | - # endif | |
137 | - ] | |
138 | -]) | |
139 | - | |
140 | - | |
141 | -# _AX_CHECK_GL_SAVE_FLAGS(LIST-OF-FLAGS) | |
142 | -# Use this macro before you modify the flags. | |
143 | -# Restore the flags by _AX_CHECK_GL_RESTORE_FLAGS | |
144 | -# | |
145 | -# Example: _AX_CHECK_GL_SAVE_FLAGS([[CFLAGS],[LIBS]]) expands to | |
146 | -# gl_saved_flag_cflags=$CFLAGS | |
147 | -# gl_saved_flag_libs=$LIBS | |
148 | -# CFLAGS="$GL_CFLAGS $CFLAGS" | |
149 | -# LIBS="$GL_LIBS $LIBS" | |
150 | -AC_DEFUN([_AX_CHECK_GL_SAVE_FLAGS], [ | |
151 | - AX_SAVE_FLAGS_WITH_PREFIX([GL],[$1]) | |
152 | - AC_LANG_PUSH([C]) | |
153 | -]) | |
154 | - | |
155 | -# _AX_CHECK_GL_RESTORE_FLAGS(LIST-OF-FLAGS) | |
156 | -# Use this marcro to restore the flags you saved using | |
157 | -# _AX_CHECK_GL_SAVE_FLAGS | |
158 | -# | |
159 | -# Example: _AX_CHECK_GL_RESTORE_FLAGS([[CFLAGS],[LIBS]]) expands to | |
160 | -# CFLAGS="$gl_saved_flag_cflags" | |
161 | -# LIBS="$gl_saved_flag_libs" | |
162 | -AC_DEFUN([_AX_CHECK_GL_RESTORE_FLAGS], [ | |
163 | - AX_RESTORE_FLAGS_WITH_PREFIX([GL],[$1]) | |
164 | - AC_LANG_POP([C]) | |
165 | -]) | |
166 | - | |
167 | -# Check if the program compiles | |
168 | -AC_DEFUN([_AX_CHECK_GL_COMPILE], | |
169 | -[dnl | |
170 | - _AX_CHECK_GL_SAVE_FLAGS([CFLAGS]) | |
171 | - AC_COMPILE_IFELSE([_AX_CHECK_GL_PROGRAM], | |
172 | - [ax_check_gl_compile_opengl="yes"], | |
173 | - [ax_check_gl_compile_opengl="no"]) | |
174 | - _AX_CHECK_GL_RESTORE_FLAGS([CFLAGS]) | |
175 | -]) | |
176 | - | |
177 | -# Compile the example program (cache) | |
178 | -AC_DEFUN([_AX_CHECK_GL_COMPILE_CV], | |
179 | -[dnl | |
180 | - AC_CACHE_CHECK([for compiling a minimal OpenGL program],[ax_cv_check_gl_compile_opengl], | |
181 | - [_AX_CHECK_GL_COMPILE() | |
182 | - ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}"]) | |
183 | - ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}" | |
184 | -]) | |
185 | - | |
186 | -# Link the example program | |
187 | -AC_DEFUN([_AX_CHECK_GL_LINK], | |
188 | -[dnl | |
189 | - _AX_CHECK_GL_SAVE_FLAGS([[CFLAGS],[LIBS],[LDFLAGS]]) | |
190 | - AC_LINK_IFELSE([_AX_CHECK_GL_PROGRAM], | |
191 | - [ax_check_gl_link_opengl="yes"], | |
192 | - [ax_check_gl_link_opengl="no"]) | |
193 | - _AX_CHECK_GL_RESTORE_FLAGS([[CFLAGS],[LIBS],[LDFLAGS]]) | |
194 | -]) | |
195 | - | |
196 | -# Link the example program (cache) | |
197 | -AC_DEFUN([_AX_CHECK_GL_LINK_CV], | |
198 | -[dnl | |
199 | - AC_CACHE_CHECK([for linking a minimal OpenGL program],[ax_cv_check_gl_link_opengl], | |
200 | - [_AX_CHECK_GL_LINK() | |
201 | - ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}"]) | |
202 | - ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}" | |
203 | -]) | |
204 | - | |
205 | - | |
206 | -# _AX_CHECK_GL_MANUAL_LIBS_GENERIC(LIBRARIES-TO-SEARCH) | |
207 | -# Searches library provided in $1, and output the flag | |
208 | -# $ax_check_gl_lib_opengl | |
209 | -AC_DEFUN([_AX_CHECK_GL_MANUAL_LIBS_GENERIC], [ | |
210 | - AS_IF([test -n "$GL_LIBS"],[], [ | |
211 | - ax_check_gl_manual_libs_generic_extra_libs="$1" | |
212 | - AS_IF([test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"], | |
213 | - [AC_MSG_ERROR([AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty])]) | |
214 | - | |
215 | - _AX_CHECK_GL_SAVE_FLAGS([CFLAGS]) | |
216 | - AC_SEARCH_LIBS([glBegin],[$ax_check_gl_manual_libs_generic_extra_libs], [ | |
217 | - ax_check_gl_lib_opengl="yes" | |
218 | - break | |
219 | - ]) | |
220 | - AS_IF([test "X$ax_check_gl_lib_opengl"="Xyes"], | |
221 | - [GL_LIBS="${ac_cv_search_glBegin}"]) | |
222 | - _AX_CHECK_GL_RESTORE_FLAGS([CFLAGS]) | |
223 | - ]) | |
224 | -]) | |
225 | - | |
226 | -# _WITH_XQUARTZ_GL | |
227 | -# ---------------- | |
228 | -# Provides an option in command line to specify the XQuartz installation | |
229 | -# path on OSX, so that user can link to it instead of using the default | |
230 | -# OSX OpenGL framework. (Mac OSX only) | |
231 | -AC_DEFUN_ONCE([_WITH_XQUARTZ_GL],[ | |
232 | - AC_ARG_WITH([xquartz-gl], | |
233 | - [AS_HELP_STRING([--with-xquartz-gl@<:@=DIR@:>@], | |
234 | - [On Mac OSX, use opengl provided by X11/XQuartz instead of the built-in framework. | |
235 | - If enabled, the default location is @<:@DIR=/opt/X11@:>@. | |
236 | - This option is default to false.])], | |
237 | - [AS_IF([test "X$with_xquartz_gl"="Xyes"], | |
238 | - [with_xquartz_gl="/opt/X11"])], | |
239 | - [with_xquartz_gl=no]) | |
240 | - AS_IF([test "X$with_xquartz_gl" != "Xno"], | |
241 | - [AC_MSG_CHECKING([OSX X11 path]) | |
242 | - AS_IF([test -e "$with_xquartz_gl"], | |
243 | - [AC_MSG_RESULT(["$with_xquartz_gl"]) | |
244 | - CFLAGS="-I$with_xquartz_gl/include $CFLAGS" | |
245 | - LIBS="-L$with_xquartz_gl/lib $LIBS" | |
246 | - ], | |
247 | - [with_xquartz_gl=no | |
248 | - AC_MSG_RESULT([no]) | |
249 | - AC_MSG_WARN([--with-xquartz-gl was given, but test for X11 failed. Fallback to system framework]) | |
250 | - ]) | |
251 | - ]) | |
252 | -]) | |
253 | - | |
254 | -# OSX specific setup for OpenGL check | |
255 | -AC_DEFUN([_AX_CHECK_DARWIN_GL], [ | |
256 | - AC_REQUIRE([_WITH_XQUARTZ_GL]) | |
257 | - AS_IF([test "x$with_xquartz_gl" != "xno"], | |
258 | - [GL_LIBS="${GL_LIBS:--lGL}"], | |
259 | - [GL_LIBS="${GL_LIBS:--framework OpenGL}"]) | |
260 | -]) | |
261 | - | |
262 | - | |
263 | -# AX_CHECK_GL_LIB([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
264 | -# --------------------------------------------------------- | |
265 | -# Checks OpenGL headers and library and provides hooks for success and failures. | |
266 | -# When $1 is not set, this macro would modify CFLAGS and LIBS environment variables. | |
267 | -# However, user can override this behavior by providing their own hooks. | |
268 | -# The CFLAGS and LIBS flags required by OpenGL is always exported in | |
269 | -# GL_CFLAGS and GL_LIBS environment variable. | |
270 | -# | |
271 | -# In other words, the default behavior of AX_CHECK_GL_LIB() is equivalent to | |
272 | -# AX_CHECK_GL_LIB( | |
273 | -# [CFLAGS="$GL_CFLAGS $CFLAGS" | |
274 | -# LIBS="$GL_LIBS $LIBS"] | |
275 | -# ) | |
276 | -AC_DEFUN([AX_CHECK_GL], | |
277 | -[AC_REQUIRE([AC_CANONICAL_HOST]) | |
278 | - AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
279 | - AC_ARG_VAR([GL_CFLAGS],[C compiler flags for GL, overriding configure script defaults]) | |
280 | - AC_ARG_VAR([GL_LIBS],[Linker flags for GL, overriding configure script defaults]) | |
281 | - | |
282 | - dnl --with-gl or not can be implemented outside of check-gl | |
283 | - AS_CASE([${host}], | |
284 | - [*-darwin*],[_AX_CHECK_DARWIN_GL], | |
285 | - dnl some windows may support X11 opengl, and should be able to linked | |
286 | - dnl by -lGL. However I have no machine to test it. | |
287 | - [*-cygwin*|*-mingw*],[ | |
288 | - _AX_CHECK_GL_MANUAL_LIBS_GENERIC([opengl32 GL gl]) | |
289 | - AC_CHECK_HEADERS([windows.h]) | |
290 | - ], | |
291 | - [PKG_PROG_PKG_CONFIG | |
292 | - PKG_CHECK_MODULES([GL],[gl], | |
293 | - [], | |
294 | - [_AX_CHECK_GL_MANUAL_LIBS_GENERIC([GL gl])]) | |
295 | - ]) dnl host specific checks | |
296 | - | |
297 | - dnl this was cache | |
298 | - _AX_CHECK_GL_SAVE_FLAGS([CFLAGS]) | |
299 | - AC_CHECK_HEADERS([GL/gl.h OpenGL/gl.h], | |
300 | - [ax_check_gl_have_headers="yes";break]) | |
301 | - _AX_CHECK_GL_RESTORE_FLAGS([CFLAGS]) | |
302 | - | |
303 | - AS_IF([test "X$ax_check_gl_have_headers" = "Xyes"], | |
304 | - [_AX_CHECK_GL_COMPILE_CV()], | |
305 | - [no_gl=yes]) | |
306 | - AS_IF([test "X$ax_check_gl_compile_opengl" = "Xyes"], | |
307 | - [_AX_CHECK_GL_LINK_CV()], | |
308 | - [no_gl=yes]) | |
309 | - AS_IF([test "X$no_gl" = "X"], | |
310 | - [AC_DEFINE([HAVE_GL], [1], [Defined if a valid OpenGL implementation is found.]) | |
311 | - m4_ifval([$1], | |
312 | - [$1], | |
313 | - [CFLAGS="$GL_CFLAGS $CFLAGS" | |
314 | - LIBS="$GL_LIBS $LIBS"]) | |
315 | - ], | |
316 | - [m4_ifval([$2], | |
317 | - [$2], | |
318 | - [AC_MSG_ERROR([Could not find a valid OpenGL implementation])]) | |
319 | - ]) | |
320 | -]) | |
321 | - | |
322 | -# =========================================================================== | |
323 | -# https://www.gnu.org/software/autoconf-archive/ax_check_glu.html | |
324 | -# =========================================================================== | |
325 | -# | |
326 | -# SYNOPSIS | |
327 | -# | |
328 | -# AX_CHECK_GLU([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) | |
329 | -# | |
330 | -# DESCRIPTION | |
331 | -# | |
332 | -# Checks for GLUT. If a valid GLU implementation is found, the configure | |
333 | -# script would export the C preprocessor symbol "HAVE_GLU=1". | |
334 | -# | |
335 | -# If either a valid GLU header or library was not found, by default the | |
336 | -# configure script would exit on error. This behavior can be overwritten | |
337 | -# by providing a custom "ACTION-IF-NOT-FOUND" hook. | |
338 | -# | |
339 | -# If the header, library was found, and been tested for compiling and | |
340 | -# linking the configuration would export the required compiler flags to | |
341 | -# "GLU_CFLAGS" and "GLU_LIBS" environment variables. These two variables | |
342 | -# can also be overwritten by defining the environment variables before | |
343 | -# executing the configure program. If it was predefined, configure would | |
344 | -# not try to overwrite it, but it would still perform the compile and link | |
345 | -# test. Only when the tests succeeded does the configure script to export | |
346 | -# "HAVE_GLU=1" and to run "ACTION-IF-FOUND" hook. | |
347 | -# | |
348 | -# If user didn't specify the "ACTION-IF-FOUND" hook, the configuration | |
349 | -# would prepend "GLU_CFLAGS" and "GLU_LIBS" to "CFLAGS" and "LIBS", like | |
350 | -# many other autoconf macros do. | |
351 | -# | |
352 | -# If the header "GL/glu.h" is found, "HAVE_GL_GLU_H" is defined. If the | |
353 | -# header "OpenGL/glu.h" is found, HAVE_OPENGL_GLU_H is defined. | |
354 | -# | |
355 | -# You should use something like this in your headers: | |
356 | -# | |
357 | -# # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
358 | -# # include <windows.h> | |
359 | -# # endif | |
360 | -# # if defined(HAVE_GL_GLU_H) | |
361 | -# # include <GL/glu.h> | |
362 | -# # elif defined(HAVE_OPENGL_GLU_H) | |
363 | -# # include <OpenGL/glu.h> | |
364 | -# # else | |
365 | -# # error no glu.h | |
366 | -# # endif | |
367 | -# | |
368 | -# On the OSX platform, you can use the option --with-xquartz-gl to use | |
369 | -# X11/Xquartz GLU implementation instead of the system built in GLU | |
370 | -# framework. | |
371 | -# | |
372 | -# Some implementations (in particular, some versions of Mac OS X) are | |
373 | -# known to treat the GLU tesselator callback function type as "GLvoid | |
374 | -# (*)(...)" rather than the standard "GLvoid (*)()". If the former | |
375 | -# condition is detected, this macro defines "HAVE_VARARGS_GLU_TESSCB". | |
376 | -# | |
377 | -# LICENSE | |
378 | -# | |
379 | -# Copyright (c) 2009 Braden McDaniel <braden@endoframe.com> | |
380 | -# Copyright (c) 2013 Bastien Roucaries <roucaries.bastien+autoconf@gmail.com> | |
381 | -# Copyright (c) 2016 Felix Chern <idryman@gmail.com> | |
382 | -# | |
383 | -# This program is free software; you can redistribute it and/or modify it | |
384 | -# under the terms of the GNU General Public License as published by the | |
385 | -# Free Software Foundation; either version 2 of the License, or (at your | |
386 | -# option) any later version. | |
387 | -# | |
388 | -# This program is distributed in the hope that it will be useful, but | |
389 | -# WITHOUT ANY WARRANTY; without even the implied warranty of | |
390 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
391 | -# Public License for more details. | |
392 | -# | |
393 | -# You should have received a copy of the GNU General Public License along | |
394 | -# with this program. If not, see <https://www.gnu.org/licenses/>. | |
395 | -# | |
396 | -# As a special exception, the respective Autoconf Macro's copyright owner | |
397 | -# gives unlimited permission to copy, distribute and modify the configure | |
398 | -# scripts that are the output of Autoconf when processing the Macro. You | |
399 | -# need not follow the terms of the GNU General Public License when using | |
400 | -# or distributing such scripts, even though portions of the text of the | |
401 | -# Macro appear in them. The GNU General Public License (GPL) does govern | |
402 | -# all other use of the material that constitutes the Autoconf Macro. | |
403 | -# | |
404 | -# This special exception to the GPL applies to versions of the Autoconf | |
405 | -# Macro released by the Autoconf Archive. When you make and distribute a | |
406 | -# modified version of the Autoconf Macro, you may extend this special | |
407 | -# exception to the GPL to apply to your modified version as well. | |
408 | - | |
409 | -#serial 23 | |
410 | - | |
411 | -# example program | |
412 | -m4_define([_AX_CHECK_GLU_PROGRAM], | |
413 | - [AC_LANG_PROGRAM([[ | |
414 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
415 | -# include <windows.h> | |
416 | -# endif | |
417 | -# ifdef HAVE_GL_GLU_H | |
418 | -# include <GL/glu.h> | |
419 | -# elif defined(HAVE_OPENGL_GLU_H) | |
420 | -# include <OpenGL/glu.h> | |
421 | -# else | |
422 | -# error no glu.h | |
423 | -# endif | |
424 | -]],[[gluBeginCurve(0)]])]) | |
425 | - | |
426 | - | |
427 | -dnl Default include : add windows.h | |
428 | -dnl see http://www.opengl.org/wiki/Platform_specifics:_Windows | |
429 | -dnl (acceded 20120801) | |
430 | -AC_DEFUN([_AX_CHECK_GLU_INCLUDES_DEFAULT],dnl | |
431 | -[ | |
432 | - AC_INCLUDES_DEFAULT | |
433 | - [ | |
434 | - # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
435 | - # include <windows.h> | |
436 | - # endif | |
437 | - ] | |
438 | -]) | |
439 | - | |
440 | -# check tesselation callback function signature. | |
441 | -m4_define([_AX_CHECK_GLU_VARARGS_TESSVB_PROGRAM], | |
442 | -[AC_LANG_PROGRAM([[ | |
443 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
444 | -# include <windows.h> | |
445 | -# endif | |
446 | -# ifdef HAVE_GL_GLU_H | |
447 | -# include <GL/glu.h> | |
448 | -# elif defined(HAVE_OPENGL_GLU_H) | |
449 | -# include <OpenGL/glu.h> | |
450 | -# else | |
451 | -# error no glu.h | |
452 | -# endif | |
453 | -]], | |
454 | -[[GLvoid (*func)(...); gluTessCallback(0, 0, func)]]) | |
455 | -]) | |
456 | - | |
457 | - | |
458 | -# _AX_CHECK_GLU_SAVE_FLAGS(LIST-OF-FLAGS,[LANG]) | |
459 | -# ---------------------------------------------- | |
460 | -# Save the flags to shell variables. | |
461 | -# Example: _AX_CHECK_GLU_SAVE_FLAGS([[CFLAGS],[LIBS]]) expands to | |
462 | -# AC_LANG_PUSH([C]) | |
463 | -# glu_saved_flag_cflags=$CFLAGS | |
464 | -# glu_saved_flag_libs=$LIBS | |
465 | -# CFLAGS="$GLU_CFLAGS $CFLAGS" | |
466 | -# LIBS="$GLU_LIBS $LIBS" | |
467 | -# | |
468 | -# Can optionally support other LANG by specifying $2 | |
469 | -AC_DEFUN([_AX_CHECK_GLU_SAVE_FLAGS], [ | |
470 | - m4_ifval([$2], | |
471 | - [AC_LANG_PUSH([$2])], | |
472 | - [AC_LANG_PUSH([C])]) | |
473 | - AX_SAVE_FLAGS_WITH_PREFIX([GLU],[$1]) dnl defined in ax_check_gl | |
474 | -]) | |
475 | - | |
476 | -# _AX_CHECK_GLU_RESTORE_FLAGS(LIST-OF-FLAGS) | |
477 | -# Use this marcro to restore the flags you saved using | |
478 | -# _AX_CHECK_GLU_SAVE_FLAGS | |
479 | -# | |
480 | -# Example: _AX_CHECK_GLU_RESTORE_FLAGS([[CFLAGS],[LIBS]]) expands to | |
481 | -# CFLAGS="$glu_saved_flag_cflags" | |
482 | -# LIBS="$glu_saved_flag_libs" | |
483 | -# AC_LANG_POP([C]) | |
484 | -AC_DEFUN([_AX_CHECK_GLU_RESTORE_FLAGS], [ | |
485 | - AX_RESTORE_FLAGS_WITH_PREFIX([GLU],[$1]) dnl defined in ax_check_gl | |
486 | - m4_ifval([$2], | |
487 | - [AC_LANG_POP([$2])], | |
488 | - [AC_LANG_POP([C])]) | |
489 | -]) | |
490 | - | |
491 | - | |
492 | -# Search headers and export $ax_check_glu_have_headers | |
493 | -AC_DEFUN([_AX_CHECK_GLU_HEADERS], [ | |
494 | - _AX_CHECK_GLU_SAVE_FLAGS([CFLAGS]) | |
495 | - AC_CHECK_HEADERS([$1], | |
496 | - [ax_check_glu_have_headers="yes";], | |
497 | - [], | |
498 | - [_AX_CHECK_GLU_INCLUDES_DEFAULT()]) | |
499 | - _AX_CHECK_GLU_RESTORE_FLAGS([CFLAGS]) | |
500 | -]) | |
501 | - | |
502 | - | |
503 | -# _AX_CHECK_GLU_SEARCH_LIBS(LIBS) | |
504 | -# ------------------------------- | |
505 | -# Search for a valid GLU lib from $1 and set | |
506 | -# GLU_LIBS respectively | |
507 | -AC_DEFUN([_AX_CHECK_GLU_SEARCH_LIBS], [ | |
508 | - _AX_CHECK_GLU_SAVE_FLAGS([[CFLAGS],[LIBS]]) | |
509 | - AC_SEARCH_LIBS([gluBeginCurve],[$1], | |
510 | - [GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}"]) | |
511 | - _AX_CHECK_GLU_RESTORE_FLAGS([[CFLAGS],[LIBS]]) | |
512 | -]) | |
513 | - | |
514 | -# OSX specific GLU checks | |
515 | -AC_DEFUN([_AX_CHECK_DARWIN_GLU], [ | |
516 | - AC_REQUIRE([_WITH_XQUARTZ_GL]) | |
517 | - AS_IF([test "x$with_xquartz_gl" != "xno"], | |
518 | - [GLU_LIBS="${GLU_LIBS:--lGLU}"], | |
519 | - [GLU_LIBS="${GLU_LIBS:--framework OpenGL}"]) | |
520 | -]) | |
521 | - | |
522 | -# AX_CHECK_GLU([ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) | |
523 | -# ----------------------------------------------------- | |
524 | -# Checks GLU and provides hooks for success and failures | |
525 | -AC_DEFUN([AX_CHECK_GLU],[ | |
526 | - AC_REQUIRE([AC_CANONICAL_HOST]) | |
527 | - AC_REQUIRE([_WITH_XQUARTZ_GL]) | |
528 | - AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
529 | - AC_ARG_VAR([GLU_CFLAGS],[C compiler flags for GLU, overriding system check]) | |
530 | - AC_ARG_VAR([GLU_LIBS],[Linker flags for GLU, overriding system check]) | |
531 | - | |
532 | - dnl Setup GLU_CFLAGS and GLU_LIBS | |
533 | - AS_CASE([${host}], | |
534 | - [*-darwin*],[_AX_CHECK_DARWIN_GLU], | |
535 | - [*-cygwin*],[_AX_CHECK_GLU_SEARCH_LIBS([GLU glu MesaGLU glu32]) | |
536 | - AC_CHECK_HEADERS([windows.h])], | |
537 | - # try first native | |
538 | - [*-mingw*],[_AX_CHECK_GLU_SEARCH_LIBS([glu32 GLU glu MesaGLU]) | |
539 | - AC_CHECK_HEADERS([windows.h])], | |
540 | - [PKG_PROG_PKG_CONFIG | |
541 | - PKG_CHECK_MODULES([GLU],[glu], | |
542 | - [], | |
543 | - [_AX_CHECK_GLU_SEARCH_LIBS([GLU glu MesaGLU])]) | |
544 | - ]) | |
545 | - | |
546 | - AS_CASE([$host], | |
547 | - [*-darwin*], | |
548 | - [AS_IF([test "X$with_xquartz_gl" = "Xno"], | |
549 | - [_AX_CHECK_GLU_HEADERS([OpenGL/glu.h])], | |
550 | - [_AX_CHECK_GLU_HEADERS([GL/glu.h])] | |
551 | - )], | |
552 | - [_AX_CHECK_GLU_HEADERS([GL/glu.h])]) | |
553 | - | |
554 | - dnl compile test | |
555 | - AS_IF([test "X$ax_check_glu_have_headers" = "Xyes"], | |
556 | - [AC_CACHE_CHECK([for compiling a minimal OpenGL Utility (GLU) program], | |
557 | - [ax_cv_check_glu_compile], | |
558 | - [_AX_CHECK_GLU_SAVE_FLAGS([CFLAGS]) | |
559 | - AC_COMPILE_IFELSE([_AX_CHECK_GLU_PROGRAM], | |
560 | - [ax_cv_check_glu_compile="yes"], | |
561 | - [ax_cv_check_glu_compile="no"]) | |
562 | - _AX_CHECK_GLU_RESTORE_FLAGS([CFLAGS])]) | |
563 | - ]) | |
564 | - | |
565 | - dnl link test | |
566 | - AS_IF([test "X$ax_cv_check_glu_compile" = "Xyes"], | |
567 | - [AC_CACHE_CHECK([for linking a minimal GLU program], | |
568 | - [ax_cv_check_glu_link], | |
569 | - [_AX_CHECK_GLU_SAVE_FLAGS([[CFLAGS],[LIBS]]) | |
570 | - AC_LINK_IFELSE([_AX_CHECK_GLU_PROGRAM], | |
571 | - [ax_cv_check_glu_link="yes"], | |
572 | - [ax_cv_check_glu_link="no"]) | |
573 | - _AX_CHECK_GLU_RESTORE_FLAGS([[CFLAGS],[LIBS]])]) | |
574 | - ]) | |
575 | - | |
576 | -# | |
577 | -# Some versions of Mac OS X include a broken interpretation of the GLU | |
578 | -# tesselation callback function signature. | |
579 | - AS_IF([test "X$ax_cv_check_glu_link" = "Xyes"], | |
580 | - [AC_CACHE_CHECK([if GLU varargs tesselator is using non-standard form], | |
581 | - [ax_cv_varargs_glu_tesscb], | |
582 | - [_AX_CHECK_GLU_SAVE_FLAGS([CFLAGS],[C++]) | |
583 | - AC_COMPILE_IFELSE([_AX_CHECK_GLU_VARARGS_TESSVB_PROGRAM], | |
584 | - [ax_cv_varargs_glu_tesscb="yes"], | |
585 | - [ax_cv_varargs_glu_tesscb="no"]) | |
586 | - _AX_CHECK_GLU_RESTORE_FLAGS([CFLAGS],[C++])]) | |
587 | - AS_IF([test "X$ax_cv_varargs_glu_tesscb" = "yes"], | |
588 | - [AC_DEFINE([HAVE_VARARGS_GLU_TESSCB], [1], | |
589 | - [Use nonstandard varargs form for the GLU tesselator callback])]) | |
590 | - ]) | |
591 | - | |
592 | - dnl hook | |
593 | - AS_IF([test "X$ax_cv_check_glu_link" = "Xyes"], | |
594 | - [AC_DEFINE([HAVE_GLU],[1],[Defined if a valid GLU implementation is found.]) | |
595 | - m4_ifval([$1], | |
596 | - [$1], | |
597 | - [CFLAGS="$GLU_CFLAGS $CFLAGS" | |
598 | - LIBS="$GLU_LIBS $LIBS"])], | |
599 | - [m4_ifval([$2], | |
600 | - [$2], | |
601 | - [AC_MSG_ERROR([Could not find a valid GLU implementation])]) | |
602 | - ]) | |
603 | -]) | |
604 | - | |
605 | -# =========================================================================== | |
606 | -# https://www.gnu.org/software/autoconf-archive/ax_openmp.html | |
607 | -# =========================================================================== | |
608 | -# | |
609 | -# SYNOPSIS | |
610 | -# | |
611 | -# AX_OPENMP([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | |
612 | -# | |
613 | -# DESCRIPTION | |
614 | -# | |
615 | -# This macro tries to find out how to compile programs that use OpenMP a | |
616 | -# standard API and set of compiler directives for parallel programming | |
617 | -# (see http://www-unix.mcs/) | |
618 | -# | |
619 | -# On success, it sets the OPENMP_CFLAGS/OPENMP_CXXFLAGS/OPENMP_F77FLAGS | |
620 | -# output variable to the flag (e.g. -omp) used both to compile *and* link | |
621 | -# OpenMP programs in the current language. | |
622 | -# | |
623 | -# NOTE: You are assumed to not only compile your program with these flags, | |
624 | -# but also link it with them as well. | |
625 | -# | |
626 | -# If you want to compile everything with OpenMP, you should set: | |
627 | -# | |
628 | -# CFLAGS="$CFLAGS $OPENMP_CFLAGS" | |
629 | -# #OR# CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" | |
630 | -# #OR# FFLAGS="$FFLAGS $OPENMP_FFLAGS" | |
631 | -# | |
632 | -# (depending on the selected language). | |
633 | -# | |
634 | -# The user can override the default choice by setting the corresponding | |
635 | -# environment variable (e.g. OPENMP_CFLAGS). | |
636 | -# | |
637 | -# ACTION-IF-FOUND is a list of shell commands to run if an OpenMP flag is | |
638 | -# found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it is | |
639 | -# not found. If ACTION-IF-FOUND is not specified, the default action will | |
640 | -# define HAVE_OPENMP. | |
641 | -# | |
642 | -# LICENSE | |
643 | -# | |
644 | -# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> | |
645 | -# Copyright (c) 2015 John W. Peterson <jwpeterson@gmail.com> | |
646 | -# Copyright (c) 2016 Nick R. Papior <nickpapior@gmail.com> | |
647 | -# | |
648 | -# This program is free software: you can redistribute it and/or modify it | |
649 | -# under the terms of the GNU General Public License as published by the | |
650 | -# Free Software Foundation, either version 3 of the License, or (at your | |
651 | -# option) any later version. | |
652 | -# | |
653 | -# This program is distributed in the hope that it will be useful, but | |
654 | -# WITHOUT ANY WARRANTY; without even the implied warranty of | |
655 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
656 | -# Public License for more details. | |
657 | -# | |
658 | -# You should have received a copy of the GNU General Public License along | |
659 | -# with this program. If not, see <https://www.gnu.org/licenses/>. | |
660 | -# | |
661 | -# As a special exception, the respective Autoconf Macro's copyright owner | |
662 | -# gives unlimited permission to copy, distribute and modify the configure | |
663 | -# scripts that are the output of Autoconf when processing the Macro. You | |
664 | -# need not follow the terms of the GNU General Public License when using | |
665 | -# or distributing such scripts, even though portions of the text of the | |
666 | -# Macro appear in them. The GNU General Public License (GPL) does govern | |
667 | -# all other use of the material that constitutes the Autoconf Macro. | |
668 | -# | |
669 | -# This special exception to the GPL applies to versions of the Autoconf | |
670 | -# Macro released by the Autoconf Archive. When you make and distribute a | |
671 | -# modified version of the Autoconf Macro, you may extend this special | |
672 | -# exception to the GPL to apply to your modified version as well. | |
673 | - | |
674 | -#serial 13 | |
675 | - | |
676 | -AC_DEFUN([AX_OPENMP], [ | |
677 | -AC_PREREQ([2.69]) dnl for _AC_LANG_PREFIX | |
678 | - | |
679 | -AC_CACHE_CHECK([for OpenMP flag of _AC_LANG compiler], ax_cv_[]_AC_LANG_ABBREV[]_openmp, [save[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS | |
680 | -ax_cv_[]_AC_LANG_ABBREV[]_openmp=unknown | |
681 | -# Flags to try: -fopenmp (gcc), -mp (SGI & PGI), | |
682 | -# -qopenmp (icc>=15), -openmp (icc), | |
683 | -# -xopenmp (Sun), -omp (Tru64), | |
684 | -# -qsmp=omp (AIX), | |
685 | -# none | |
686 | -ax_openmp_flags="-fopenmp -openmp -qopenmp -mp -xopenmp -omp -qsmp=omp none" | |
687 | -if test "x$OPENMP_[]_AC_LANG_PREFIX[]FLAGS" != x; then | |
688 | - ax_openmp_flags="$OPENMP_[]_AC_LANG_PREFIX[]FLAGS $ax_openmp_flags" | |
689 | -fi | |
690 | -for ax_openmp_flag in $ax_openmp_flags; do | |
691 | - case $ax_openmp_flag in | |
692 | - none) []_AC_LANG_PREFIX[]FLAGS=$save[]_AC_LANG_PREFIX[] ;; | |
693 | - *) []_AC_LANG_PREFIX[]FLAGS="$save[]_AC_LANG_PREFIX[]FLAGS $ax_openmp_flag" ;; | |
694 | - esac | |
695 | - AC_LINK_IFELSE([AC_LANG_SOURCE([[ | |
696 | -@%:@include <omp.h> | |
697 | - | |
698 | -static void | |
699 | -parallel_fill(int * data, int n) | |
700 | -{ | |
701 | - int i; | |
702 | -@%:@pragma omp parallel for | |
703 | - for (i = 0; i < n; ++i) | |
704 | - data[i] = i; | |
705 | -} | |
706 | - | |
707 | -int | |
708 | -main() | |
709 | -{ | |
710 | - int arr[100000]; | |
711 | - omp_set_num_threads(2); | |
712 | - parallel_fill(arr, 100000); | |
713 | - return 0; | |
714 | -} | |
715 | -]])],[ax_cv_[]_AC_LANG_ABBREV[]_openmp=$ax_openmp_flag; break],[]) | |
716 | -done | |
717 | -[]_AC_LANG_PREFIX[]FLAGS=$save[]_AC_LANG_PREFIX[]FLAGS | |
718 | -]) | |
719 | -if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" = "xunknown"; then | |
720 | - m4_default([$2],:) | |
721 | -else | |
722 | - if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" != "xnone"; then | |
723 | - OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ax_cv_[]_AC_LANG_ABBREV[]_openmp | |
724 | - fi | |
725 | - m4_default([$1], [AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])]) | |
726 | -fi | |
727 | -])dnl AX_OPENMP | |
728 | - | |
729 | -# ================================================================================= | |
730 | -# https://www.gnu.org/software/autoconf-archive/ax_restore_flags_with_prefix.html | |
731 | -# ================================================================================= | |
732 | -# | |
733 | -# SYNOPSIS | |
734 | -# | |
735 | -# AX_RESTORE_FLAGS_WITH_PREFIX(PREFIX, LIST-OF-FLAGS) | |
736 | -# | |
737 | -# DESCRIPTION | |
738 | -# | |
739 | -# Restore the flags saved by AX_SAVE_FLAGS_WITH_PREFIX. | |
740 | -# | |
741 | -# Expansion example: AX_RESTORE_FLAGS_WITH_PREFIX([GL], [[CFLAGS],[LIBS]]) | |
742 | -# expands to | |
743 | -# | |
744 | -# CFLAGS="$gl_saved_flag_cflags" | |
745 | -# LIBS="$gl_saved_flag_libs" | |
746 | -# | |
747 | -# One common use case is to define a package specific wrapper macro around | |
748 | -# this one, and also restore other variables if needed. For example: | |
749 | -# | |
750 | -# AC_DEFUN([_AX_CHECK_GL_RESTORE_FLAGS], [ | |
751 | -# AX_RESTORE_FLAGS_WITH_PREFIX([GL],[$1]) | |
752 | -# AC_LANG_POP([C]) | |
753 | -# ]) | |
754 | -# | |
755 | -# # Restores CFLAGS, LIBS and language state | |
756 | -# _AX_CHECK_GL_RESTORE_FLAGS([[CFLAGS],[LIBS]]) | |
757 | -# | |
758 | -# LICENSE | |
759 | -# | |
760 | -# Copyright (c) 2016 Felix Chern <idryman@gmail.com> | |
761 | -# | |
762 | -# This program is free software; you can redistribute it and/or modify it | |
763 | -# under the terms of the GNU General Public License as published by the | |
764 | -# Free Software Foundation; either version 2 of the License, or (at your | |
765 | -# option) any later version. | |
766 | -# | |
767 | -# This program is distributed in the hope that it will be useful, but | |
768 | -# WITHOUT ANY WARRANTY; without even the implied warranty of | |
769 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
770 | -# Public License for more details. | |
771 | -# | |
772 | -# You should have received a copy of the GNU General Public License along | |
773 | -# with this program. If not, see <https://www.gnu.org/licenses/>. | |
774 | -# | |
775 | -# As a special exception, the respective Autoconf Macro's copyright owner | |
776 | -# gives unlimited permission to copy, distribute and modify the configure | |
777 | -# scripts that are the output of Autoconf when processing the Macro. You | |
778 | -# need not follow the terms of the GNU General Public License when using | |
779 | -# or distributing such scripts, even though portions of the text of the | |
780 | -# Macro appear in them. The GNU General Public License (GPL) does govern | |
781 | -# all other use of the material that constitutes the Autoconf Macro. | |
782 | -# | |
783 | -# This special exception to the GPL applies to versions of the Autoconf | |
784 | -# Macro released by the Autoconf Archive. When you make and distribute a | |
785 | -# modified version of the Autoconf Macro, you may extend this special | |
786 | -# exception to the GPL to apply to your modified version as well. | |
787 | - | |
788 | -#serial 3 | |
789 | - | |
790 | -AC_DEFUN([AX_RESTORE_FLAGS_WITH_PREFIX],[ | |
791 | -m4_ifval([$2], [ | |
792 | -m4_car($2)="$_ax_[]m4_tolower($1)_saved_flag_[]m4_tolower(m4_car($2))" | |
793 | -$0($1, m4_cdr($2))]) | |
794 | -]) | |
795 | - | |
796 | -# ============================================================================== | |
797 | -# https://www.gnu.org/software/autoconf-archive/ax_save_flags_with_prefix.html | |
798 | -# ============================================================================== | |
799 | -# | |
800 | -# SYNOPSIS | |
801 | -# | |
802 | -# AX_SAVE_FLAGS_WITH_PREFIX(PREFIX, LIST-OF-FLAGS) | |
803 | -# | |
804 | -# DESCRIPTION | |
805 | -# | |
806 | -# For each flag in LIST-OF-FLAGS, it expands to lower-cased shell variable | |
807 | -# with the prefix holding the flag original value. The saved variables | |
808 | -# can be restored by AX_RESTORE_FLAGS_WITH_PREFIX | |
809 | -# | |
810 | -# As an example: AX_SAVE_FLAGS_WITH_PREFIX([GL], [[CFLAGS],[LIBS]]) | |
811 | -# expands to | |
812 | -# | |
813 | -# gl_saved_flag_cflags="$CFLAGS" | |
814 | -# gl_saved_flag_libs="$LIBS" | |
815 | -# CFLAGS="$GL_CFLAGS $CFLAGS" | |
816 | -# LIBS="$GL_LIBS $LIBS" | |
817 | -# | |
818 | -# One common use case is to define a package specific wrapper macro around | |
819 | -# this one, and also setup other variables if needed. For example: | |
820 | -# | |
821 | -# AC_DEFUN([_AX_CHECK_GL_SAVE_FLAGS], [ | |
822 | -# AX_SAVE_FLAGS_WITH_PREFIX([GL],[$1]) | |
823 | -# AC_LANG_PUSH([C]) | |
824 | -# ]) | |
825 | -# | |
826 | -# # pushes GL_CFLAGS and GL_LIBS to CFLAGS and LIBS | |
827 | -# # also set the current language to test to C | |
828 | -# _AX_CHECK_GL_SAVE_FLAGS([[CFLAGS],[LIBS]]) | |
829 | -# | |
830 | -# LICENSE | |
831 | -# | |
832 | -# Copyright (c) 2016 Felix Chern <idryman@gmail.com> | |
833 | -# | |
834 | -# This program is free software; you can redistribute it and/or modify it | |
835 | -# under the terms of the GNU General Public License as published by the | |
836 | -# Free Software Foundation; either version 2 of the License, or (at your | |
837 | -# option) any later version. | |
838 | -# | |
839 | -# This program is distributed in the hope that it will be useful, but | |
840 | -# WITHOUT ANY WARRANTY; without even the implied warranty of | |
841 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | |
842 | -# Public License for more details. | |
843 | -# | |
844 | -# You should have received a copy of the GNU General Public License along | |
845 | -# with this program. If not, see <https://www.gnu.org/licenses/>. | |
846 | -# | |
847 | -# As a special exception, the respective Autoconf Macro's copyright owner | |
848 | -# gives unlimited permission to copy, distribute and modify the configure | |
849 | -# scripts that are the output of Autoconf when processing the Macro. You | |
850 | -# need not follow the terms of the GNU General Public License when using | |
851 | -# or distributing such scripts, even though portions of the text of the | |
852 | -# Macro appear in them. The GNU General Public License (GPL) does govern | |
853 | -# all other use of the material that constitutes the Autoconf Macro. | |
854 | -# | |
855 | -# This special exception to the GPL applies to versions of the Autoconf | |
856 | -# Macro released by the Autoconf Archive. When you make and distribute a | |
857 | -# modified version of the Autoconf Macro, you may extend this special | |
858 | -# exception to the GPL to apply to your modified version as well. | |
859 | - | |
860 | -#serial 3 | |
861 | - | |
862 | -AC_DEFUN([AX_SAVE_FLAGS_WITH_PREFIX],[ | |
863 | -m4_ifval([$2], [ | |
864 | -_ax_[]m4_tolower($1)_saved_flag_[]m4_tolower(m4_car($2))="$m4_car($2)" | |
865 | -m4_car($2)="$$1_[]m4_car($2) $m4_car($2)" | |
866 | -$0($1, m4_cdr($2)) | |
867 | -])]) | |
868 | - | |
869 | -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
870 | -# serial 12 (pkg-config-0.29.2) | |
871 | - | |
872 | -dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
873 | -dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> | |
874 | -dnl | |
875 | -dnl This program is free software; you can redistribute it and/or modify | |
876 | -dnl it under the terms of the GNU General Public License as published by | |
877 | -dnl the Free Software Foundation; either version 2 of the License, or | |
878 | -dnl (at your option) any later version. | |
879 | -dnl | |
880 | -dnl This program is distributed in the hope that it will be useful, but | |
881 | -dnl WITHOUT ANY WARRANTY; without even the implied warranty of | |
882 | -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
883 | -dnl General Public License for more details. | |
884 | -dnl | |
885 | -dnl You should have received a copy of the GNU General Public License | |
886 | -dnl along with this program; if not, write to the Free Software | |
887 | -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
888 | -dnl 02111-1307, USA. | |
889 | -dnl | |
890 | -dnl As a special exception to the GNU General Public License, if you | |
891 | -dnl distribute this file as part of a program that contains a | |
892 | -dnl configuration script generated by Autoconf, you may include it under | |
893 | -dnl the same distribution terms that you use for the rest of that | |
894 | -dnl program. | |
895 | - | |
896 | -dnl PKG_PREREQ(MIN-VERSION) | |
897 | -dnl ----------------------- | |
898 | -dnl Since: 0.29 | |
899 | -dnl | |
900 | -dnl Verify that the version of the pkg-config macros are at least | |
901 | -dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's | |
902 | -dnl installed version of pkg-config, this checks the developer's version | |
903 | -dnl of pkg.m4 when generating configure. | |
904 | -dnl | |
905 | -dnl To ensure that this macro is defined, also add: | |
906 | -dnl m4_ifndef([PKG_PREREQ], | |
907 | -dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) | |
908 | -dnl | |
909 | -dnl See the "Since" comment for each macro you use to see what version | |
910 | -dnl of the macros you require. | |
911 | -m4_defun([PKG_PREREQ], | |
912 | -[m4_define([PKG_MACROS_VERSION], [0.29.2]) | |
913 | -m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, | |
914 | - [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) | |
915 | -])dnl PKG_PREREQ | |
916 | - | |
917 | -dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) | |
918 | -dnl ---------------------------------- | |
919 | -dnl Since: 0.16 | |
920 | -dnl | |
921 | -dnl Search for the pkg-config tool and set the PKG_CONFIG variable to | |
922 | -dnl first found in the path. Checks that the version of pkg-config found | |
923 | -dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is | |
924 | -dnl used since that's the first version where most current features of | |
925 | -dnl pkg-config existed. | |
926 | -AC_DEFUN([PKG_PROG_PKG_CONFIG], | |
927 | -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | |
928 | -m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) | |
929 | -m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) | |
930 | -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | |
931 | -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | |
932 | -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | |
933 | - | |
934 | -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
935 | - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | |
936 | -fi | |
937 | -if test -n "$PKG_CONFIG"; then | |
938 | - _pkg_min_version=m4_default([$1], [0.9.0]) | |
939 | - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | |
940 | - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
941 | - AC_MSG_RESULT([yes]) | |
942 | - else | |
943 | - AC_MSG_RESULT([no]) | |
944 | - PKG_CONFIG="" | |
945 | - fi | |
946 | -fi[]dnl | |
947 | -])dnl PKG_PROG_PKG_CONFIG | |
948 | - | |
949 | -dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
950 | -dnl ------------------------------------------------------------------- | |
951 | -dnl Since: 0.18 | |
952 | -dnl | |
953 | -dnl Check to see whether a particular set of modules exists. Similar to | |
954 | -dnl PKG_CHECK_MODULES(), but does not set variables or print errors. | |
955 | -dnl | |
956 | -dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
957 | -dnl only at the first occurence in configure.ac, so if the first place | |
958 | -dnl it's called might be skipped (such as if it is within an "if", you | |
959 | -dnl have to call PKG_CHECK_EXISTS manually | |
960 | -AC_DEFUN([PKG_CHECK_EXISTS], | |
961 | -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
962 | -if test -n "$PKG_CONFIG" && \ | |
963 | - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | |
964 | - m4_default([$2], [:]) | |
965 | -m4_ifvaln([$3], [else | |
966 | - $3])dnl | |
967 | -fi]) | |
968 | - | |
969 | -dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | |
970 | -dnl --------------------------------------------- | |
971 | -dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting | |
972 | -dnl pkg_failed based on the result. | |
973 | -m4_define([_PKG_CONFIG], | |
974 | -[if test -n "$$1"; then | |
975 | - pkg_cv_[]$1="$$1" | |
976 | - elif test -n "$PKG_CONFIG"; then | |
977 | - PKG_CHECK_EXISTS([$3], | |
978 | - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` | |
979 | - test "x$?" != "x0" && pkg_failed=yes ], | |
980 | - [pkg_failed=yes]) | |
981 | - else | |
982 | - pkg_failed=untried | |
983 | -fi[]dnl | |
984 | -])dnl _PKG_CONFIG | |
985 | - | |
986 | -dnl _PKG_SHORT_ERRORS_SUPPORTED | |
987 | -dnl --------------------------- | |
988 | -dnl Internal check to see if pkg-config supports short errors. | |
989 | -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | |
990 | -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
991 | -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
992 | - _pkg_short_errors_supported=yes | |
993 | -else | |
994 | - _pkg_short_errors_supported=no | |
995 | -fi[]dnl | |
996 | -])dnl _PKG_SHORT_ERRORS_SUPPORTED | |
997 | - | |
998 | - | |
999 | -dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
1000 | -dnl [ACTION-IF-NOT-FOUND]) | |
1001 | -dnl -------------------------------------------------------------- | |
1002 | -dnl Since: 0.4.0 | |
1003 | -dnl | |
1004 | -dnl Note that if there is a possibility the first call to | |
1005 | -dnl PKG_CHECK_MODULES might not happen, you should be sure to include an | |
1006 | -dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | |
1007 | -AC_DEFUN([PKG_CHECK_MODULES], | |
1008 | -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
1009 | -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | |
1010 | -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | |
1011 | - | |
1012 | -pkg_failed=no | |
1013 | -AC_MSG_CHECKING([for $2]) | |
1014 | - | |
1015 | -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | |
1016 | -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) | |
1017 | - | |
1018 | -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS | |
1019 | -and $1[]_LIBS to avoid the need to call pkg-config. | |
1020 | -See the pkg-config man page for more details.]) | |
1021 | - | |
1022 | -if test $pkg_failed = yes; then | |
1023 | - AC_MSG_RESULT([no]) | |
1024 | - _PKG_SHORT_ERRORS_SUPPORTED | |
1025 | - if test $_pkg_short_errors_supported = yes; then | |
1026 | - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` | |
1027 | - else | |
1028 | - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` | |
1029 | - fi | |
1030 | - # Put the nasty error message in config.log where it belongs | |
1031 | - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | |
1032 | - | |
1033 | - m4_default([$4], [AC_MSG_ERROR( | |
1034 | -[Package requirements ($2) were not met: | |
1035 | - | |
1036 | -$$1_PKG_ERRORS | |
1037 | - | |
1038 | -Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
1039 | -installed software in a non-standard prefix. | |
1040 | - | |
1041 | -_PKG_TEXT])[]dnl | |
1042 | - ]) | |
1043 | -elif test $pkg_failed = untried; then | |
1044 | - AC_MSG_RESULT([no]) | |
1045 | - m4_default([$4], [AC_MSG_FAILURE( | |
1046 | -[The pkg-config script could not be found or is too old. Make sure it | |
1047 | -is in your PATH or set the PKG_CONFIG environment variable to the full | |
1048 | -path to pkg-config. | |
1049 | - | |
1050 | -_PKG_TEXT | |
1051 | - | |
1052 | -To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl | |
1053 | - ]) | |
1054 | -else | |
1055 | - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | |
1056 | - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | |
1057 | - AC_MSG_RESULT([yes]) | |
1058 | - $3 | |
1059 | -fi[]dnl | |
1060 | -])dnl PKG_CHECK_MODULES | |
1061 | - | |
1062 | - | |
1063 | -dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
1064 | -dnl [ACTION-IF-NOT-FOUND]) | |
1065 | -dnl --------------------------------------------------------------------- | |
1066 | -dnl Since: 0.29 | |
1067 | -dnl | |
1068 | -dnl Checks for existence of MODULES and gathers its build flags with | |
1069 | -dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags | |
1070 | -dnl and VARIABLE-PREFIX_LIBS from --libs. | |
1071 | -dnl | |
1072 | -dnl Note that if there is a possibility the first call to | |
1073 | -dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to | |
1074 | -dnl include an explicit call to PKG_PROG_PKG_CONFIG in your | |
1075 | -dnl configure.ac. | |
1076 | -AC_DEFUN([PKG_CHECK_MODULES_STATIC], | |
1077 | -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
1078 | -_save_PKG_CONFIG=$PKG_CONFIG | |
1079 | -PKG_CONFIG="$PKG_CONFIG --static" | |
1080 | -PKG_CHECK_MODULES($@) | |
1081 | -PKG_CONFIG=$_save_PKG_CONFIG[]dnl | |
1082 | -])dnl PKG_CHECK_MODULES_STATIC | |
1083 | - | |
1084 | - | |
1085 | -dnl PKG_INSTALLDIR([DIRECTORY]) | |
1086 | -dnl ------------------------- | |
1087 | -dnl Since: 0.27 | |
1088 | -dnl | |
1089 | -dnl Substitutes the variable pkgconfigdir as the location where a module | |
1090 | -dnl should install pkg-config .pc files. By default the directory is | |
1091 | -dnl $libdir/pkgconfig, but the default can be changed by passing | |
1092 | -dnl DIRECTORY. The user can override through the --with-pkgconfigdir | |
1093 | -dnl parameter. | |
1094 | -AC_DEFUN([PKG_INSTALLDIR], | |
1095 | -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) | |
1096 | -m4_pushdef([pkg_description], | |
1097 | - [pkg-config installation directory @<:@]pkg_default[@:>@]) | |
1098 | -AC_ARG_WITH([pkgconfigdir], | |
1099 | - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, | |
1100 | - [with_pkgconfigdir=]pkg_default) | |
1101 | -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) | |
1102 | -m4_popdef([pkg_default]) | |
1103 | -m4_popdef([pkg_description]) | |
1104 | -])dnl PKG_INSTALLDIR | |
1105 | - | |
1106 | - | |
1107 | -dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) | |
1108 | -dnl -------------------------------- | |
1109 | -dnl Since: 0.27 | |
1110 | -dnl | |
1111 | -dnl Substitutes the variable noarch_pkgconfigdir as the location where a | |
1112 | -dnl module should install arch-independent pkg-config .pc files. By | |
1113 | -dnl default the directory is $datadir/pkgconfig, but the default can be | |
1114 | -dnl changed by passing DIRECTORY. The user can override through the | |
1115 | -dnl --with-noarch-pkgconfigdir parameter. | |
1116 | -AC_DEFUN([PKG_NOARCH_INSTALLDIR], | |
1117 | -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) | |
1118 | -m4_pushdef([pkg_description], | |
1119 | - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) | |
1120 | -AC_ARG_WITH([noarch-pkgconfigdir], | |
1121 | - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, | |
1122 | - [with_noarch_pkgconfigdir=]pkg_default) | |
1123 | -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) | |
1124 | -m4_popdef([pkg_default]) | |
1125 | -m4_popdef([pkg_description]) | |
1126 | -])dnl PKG_NOARCH_INSTALLDIR | |
1127 | - | |
1128 | - | |
1129 | -dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, | |
1130 | -dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
1131 | -dnl ------------------------------------------- | |
1132 | -dnl Since: 0.28 | |
1133 | -dnl | |
1134 | -dnl Retrieves the value of the pkg-config variable for the given module. | |
1135 | -AC_DEFUN([PKG_CHECK_VAR], | |
1136 | -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
1137 | -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl | |
1138 | - | |
1139 | -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) | |
1140 | -AS_VAR_COPY([$1], [pkg_cv_][$1]) | |
1141 | - | |
1142 | -AS_VAR_IF([$1], [""], [$5], [$4])dnl | |
1143 | -])dnl PKG_CHECK_VAR | |
1144 | - | |
1145 | 23 | dnl --------------------------------------------------------------------------- |
1146 | 24 | dnl Author: wxWidgets development team, |
1147 | 25 | dnl Francesco Montorsi, |
@@ -2930,53 +1808,6 @@ AC_DEFUN([_AM_SET_OPTIONS], | ||
2930 | 1808 | AC_DEFUN([_AM_IF_OPTION], |
2931 | 1809 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
2932 | 1810 | |
2933 | -# Copyright (C) 1999-2018 Free Software Foundation, Inc. | |
2934 | -# | |
2935 | -# This file is free software; the Free Software Foundation | |
2936 | -# gives unlimited permission to copy and/or distribute it, | |
2937 | -# with or without modifications, as long as this notice is preserved. | |
2938 | - | |
2939 | -# _AM_PROG_CC_C_O | |
2940 | -# --------------- | |
2941 | -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
2942 | -# to automatically call this. | |
2943 | -AC_DEFUN([_AM_PROG_CC_C_O], | |
2944 | -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
2945 | -AC_REQUIRE_AUX_FILE([compile])dnl | |
2946 | -AC_LANG_PUSH([C])dnl | |
2947 | -AC_CACHE_CHECK( | |
2948 | - [whether $CC understands -c and -o together], | |
2949 | - [am_cv_prog_cc_c_o], | |
2950 | - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
2951 | - # Make sure it works both with $CC and with simple cc. | |
2952 | - # Following AC_PROG_CC_C_O, we do the test twice because some | |
2953 | - # compilers refuse to overwrite an existing .o file with -o, | |
2954 | - # though they will create one. | |
2955 | - am_cv_prog_cc_c_o=yes | |
2956 | - for am_i in 1 2; do | |
2957 | - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
2958 | - && test -f conftest2.$ac_objext; then | |
2959 | - : OK | |
2960 | - else | |
2961 | - am_cv_prog_cc_c_o=no | |
2962 | - break | |
2963 | - fi | |
2964 | - done | |
2965 | - rm -f core conftest* | |
2966 | - unset am_i]) | |
2967 | -if test "$am_cv_prog_cc_c_o" != yes; then | |
2968 | - # Losing compiler, so override with the script. | |
2969 | - # FIXME: It is wrong to rewrite CC. | |
2970 | - # But if we don't then we get into trouble of one sort or another. | |
2971 | - # A longer-term fix would be to have automake use am__CC in this case, | |
2972 | - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
2973 | - CC="$am_aux_dir/compile $CC" | |
2974 | -fi | |
2975 | -AC_LANG_POP([C])]) | |
2976 | - | |
2977 | -# For backward compatibility. | |
2978 | -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
2979 | - | |
2980 | 1811 | # Copyright (C) 2001-2018 Free Software Foundation, Inc. |
2981 | 1812 | # |
2982 | 1813 | # This file is free software; the Free Software Foundation |
@@ -1,56 +1,5 @@ | ||
1 | 1 | /* config.h.in. Generated from configure.ac by autoheader. */ |
2 | 2 | |
3 | -/* Defined if a valid OpenGL implementation is found. */ | |
4 | -#undef HAVE_GL | |
5 | - | |
6 | -/* Defined if a valid GLU implementation is found. */ | |
7 | -#undef HAVE_GLU | |
8 | - | |
9 | -/* Define to 1 if you have the <GL/glu.h> header file. */ | |
10 | -#undef HAVE_GL_GLU_H | |
11 | - | |
12 | -/* Define to 1 if you have the <GL/gl.h> header file. */ | |
13 | -#undef HAVE_GL_GL_H | |
14 | - | |
15 | -/* Define to 1 if you have the <inttypes.h> header file. */ | |
16 | -#undef HAVE_INTTYPES_H | |
17 | - | |
18 | -/* Define to 1 if you have the <memory.h> header file. */ | |
19 | -#undef HAVE_MEMORY_H | |
20 | - | |
21 | -/* Define to 1 if you have the <OpenGL/glu.h> header file. */ | |
22 | -#undef HAVE_OPENGL_GLU_H | |
23 | - | |
24 | -/* Define to 1 if you have the <OpenGL/gl.h> header file. */ | |
25 | -#undef HAVE_OPENGL_GL_H | |
26 | - | |
27 | -/* Define to 1 if you have the <stdint.h> header file. */ | |
28 | -#undef HAVE_STDINT_H | |
29 | - | |
30 | -/* Define to 1 if you have the <stdlib.h> header file. */ | |
31 | -#undef HAVE_STDLIB_H | |
32 | - | |
33 | -/* Define to 1 if you have the <strings.h> header file. */ | |
34 | -#undef HAVE_STRINGS_H | |
35 | - | |
36 | -/* Define to 1 if you have the <string.h> header file. */ | |
37 | -#undef HAVE_STRING_H | |
38 | - | |
39 | -/* Define to 1 if you have the <sys/stat.h> header file. */ | |
40 | -#undef HAVE_SYS_STAT_H | |
41 | - | |
42 | -/* Define to 1 if you have the <sys/types.h> header file. */ | |
43 | -#undef HAVE_SYS_TYPES_H | |
44 | - | |
45 | -/* Define to 1 if you have the <unistd.h> header file. */ | |
46 | -#undef HAVE_UNISTD_H | |
47 | - | |
48 | -/* Use nonstandard varargs form for the GLU tesselator callback */ | |
49 | -#undef HAVE_VARARGS_GLU_TESSCB | |
50 | - | |
51 | -/* Define to 1 if you have the <windows.h> header file. */ | |
52 | -#undef HAVE_WINDOWS_H | |
53 | - | |
54 | 3 | /* Name of package */ |
55 | 4 | #undef PACKAGE |
56 | 5 |
@@ -72,8 +21,5 @@ | ||
72 | 21 | /* Define to the version of this package. */ |
73 | 22 | #undef PACKAGE_VERSION |
74 | 23 | |
75 | -/* Define to 1 if you have the ANSI C header files. */ | |
76 | -#undef STDC_HEADERS | |
77 | - | |
78 | 24 | /* Version number of package */ |
79 | 25 | #undef VERSION |
@@ -1,6 +1,6 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | -# Generated by GNU Autoconf 2.69 for fermisurfer 2.1.0. | |
3 | +# Generated by GNU Autoconf 2.69 for fermisurfer 2.2.1. | |
4 | 4 | # |
5 | 5 | # Report bugs to <mkawamura@issp.u-tokyo.ac.jp>. |
6 | 6 | # |
@@ -197,8 +197,7 @@ test -x / || exit 1" | ||
197 | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
199 | 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
200 | - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | -test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
202 | 201 | if (eval "$as_required") 2>/dev/null; then : |
203 | 202 | as_have_required=yes |
204 | 203 | else |
@@ -580,47 +579,11 @@ MAKEFLAGS= | ||
580 | 579 | # Identity of this package. |
581 | 580 | PACKAGE_NAME='fermisurfer' |
582 | 581 | PACKAGE_TARNAME='fermisurfer' |
583 | -PACKAGE_VERSION='2.1.0' | |
584 | -PACKAGE_STRING='fermisurfer 2.1.0' | |
582 | +PACKAGE_VERSION='2.2.1' | |
583 | +PACKAGE_STRING='fermisurfer 2.2.1' | |
585 | 584 | PACKAGE_BUGREPORT='mkawamura@issp.u-tokyo.ac.jp' |
586 | 585 | PACKAGE_URL='' |
587 | 586 | |
588 | -# Factoring default headers for most tests. | |
589 | -ac_includes_default="\ | |
590 | -#include <stdio.h> | |
591 | -#ifdef HAVE_SYS_TYPES_H | |
592 | -# include <sys/types.h> | |
593 | -#endif | |
594 | -#ifdef HAVE_SYS_STAT_H | |
595 | -# include <sys/stat.h> | |
596 | -#endif | |
597 | -#ifdef STDC_HEADERS | |
598 | -# include <stdlib.h> | |
599 | -# include <stddef.h> | |
600 | -#else | |
601 | -# ifdef HAVE_STDLIB_H | |
602 | -# include <stdlib.h> | |
603 | -# endif | |
604 | -#endif | |
605 | -#ifdef HAVE_STRING_H | |
606 | -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
607 | -# include <memory.h> | |
608 | -# endif | |
609 | -# include <string.h> | |
610 | -#endif | |
611 | -#ifdef HAVE_STRINGS_H | |
612 | -# include <strings.h> | |
613 | -#endif | |
614 | -#ifdef HAVE_INTTYPES_H | |
615 | -# include <inttypes.h> | |
616 | -#endif | |
617 | -#ifdef HAVE_STDINT_H | |
618 | -# include <stdint.h> | |
619 | -#endif | |
620 | -#ifdef HAVE_UNISTD_H | |
621 | -# include <unistd.h> | |
622 | -#endif" | |
623 | - | |
624 | 587 | ac_subst_vars='am__EXEEXT_FALSE |
625 | 588 | am__EXEEXT_TRUE |
626 | 589 | LTLIBOBJS |
@@ -638,30 +601,6 @@ WX_CXXFLAGS | ||
638 | 601 | WX_CFLAGS |
639 | 602 | WX_CPPFLAGS |
640 | 603 | WX_CONFIG_PATH |
641 | -GLU_LIBS | |
642 | -GLU_CFLAGS | |
643 | -EGREP | |
644 | -GREP | |
645 | -CPP | |
646 | -GL_LIBS | |
647 | -GL_CFLAGS | |
648 | -PKG_CONFIG_LIBDIR | |
649 | -PKG_CONFIG_PATH | |
650 | -PKG_CONFIG | |
651 | -host_os | |
652 | -host_vendor | |
653 | -host_cpu | |
654 | -host | |
655 | -build_os | |
656 | -build_vendor | |
657 | -build_cpu | |
658 | -build | |
659 | -am__fastdepCC_FALSE | |
660 | -am__fastdepCC_TRUE | |
661 | -CCDEPMODE | |
662 | -ac_ct_CC | |
663 | -CFLAGS | |
664 | -CC | |
665 | 604 | am__fastdepCXX_FALSE |
666 | 605 | am__fastdepCXX_TRUE |
667 | 606 | CXXDEPMODE |
@@ -724,6 +663,7 @@ infodir | ||
724 | 663 | docdir |
725 | 664 | oldincludedir |
726 | 665 | includedir |
666 | +runstatedir | |
727 | 667 | localstatedir |
728 | 668 | sharedstatedir |
729 | 669 | sysconfdir |
@@ -750,7 +690,6 @@ enable_option_checking | ||
750 | 690 | enable_silent_rules |
751 | 691 | enable_dependency_tracking |
752 | 692 | with_openmp |
753 | -with_xquartz_gl | |
754 | 693 | with_wxdir |
755 | 694 | with_wx_config |
756 | 695 | with_wx_prefix |
@@ -764,17 +703,7 @@ CXXFLAGS | ||
764 | 703 | LDFLAGS |
765 | 704 | LIBS |
766 | 705 | CPPFLAGS |
767 | -CCC | |
768 | -CC | |
769 | -CFLAGS | |
770 | -PKG_CONFIG | |
771 | -PKG_CONFIG_PATH | |
772 | -PKG_CONFIG_LIBDIR | |
773 | -GL_CFLAGS | |
774 | -GL_LIBS | |
775 | -CPP | |
776 | -GLU_CFLAGS | |
777 | -GLU_LIBS' | |
706 | +CCC' | |
778 | 707 | |
779 | 708 | |
780 | 709 | # Initialize some variables set by options. |
@@ -813,6 +742,7 @@ datadir='${datarootdir}' | ||
813 | 742 | sysconfdir='${prefix}/etc' |
814 | 743 | sharedstatedir='${prefix}/com' |
815 | 744 | localstatedir='${prefix}/var' |
745 | +runstatedir='${localstatedir}/run' | |
816 | 746 | includedir='${prefix}/include' |
817 | 747 | oldincludedir='/usr/include' |
818 | 748 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
@@ -1065,6 +995,15 @@ do | ||
1065 | 995 | | -silent | --silent | --silen | --sile | --sil) |
1066 | 996 | silent=yes ;; |
1067 | 997 | |
998 | + -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
999 | + | --runstate | --runstat | --runsta | --runst | --runs \ | |
1000 | + | --run | --ru | --r) | |
1001 | + ac_prev=runstatedir ;; | |
1002 | + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1003 | + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1004 | + | --run=* | --ru=* | --r=*) | |
1005 | + runstatedir=$ac_optarg ;; | |
1006 | + | |
1068 | 1007 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1069 | 1008 | ac_prev=sbindir ;; |
1070 | 1009 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
@@ -1202,7 +1141,7 @@ fi | ||
1202 | 1141 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1203 | 1142 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1204 | 1143 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1205 | - libdir localedir mandir | |
1144 | + libdir localedir mandir runstatedir | |
1206 | 1145 | do |
1207 | 1146 | eval ac_val=\$$ac_var |
1208 | 1147 | # Remove trailing slashes. |
@@ -1315,7 +1254,7 @@ if test "$ac_init_help" = "long"; then | ||
1315 | 1254 | # Omit some internal or obsolete options to make the list less imposing. |
1316 | 1255 | # This message is too long to be a string in the A/UX 3.1 sh. |
1317 | 1256 | cat <<_ACEOF |
1318 | -\`configure' configures fermisurfer 2.1.0 to adapt to many kinds of systems. | |
1257 | +\`configure' configures fermisurfer 2.2.1 to adapt to many kinds of systems. | |
1319 | 1258 | |
1320 | 1259 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1321 | 1260 |
@@ -1355,6 +1294,7 @@ Fine tuning of the installation directories: | ||
1355 | 1294 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1356 | 1295 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1357 | 1296 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1297 | + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1358 | 1298 | --libdir=DIR object code libraries [EPREFIX/lib] |
1359 | 1299 | --includedir=DIR C header files [PREFIX/include] |
1360 | 1300 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
@@ -1376,16 +1316,12 @@ Program names: | ||
1376 | 1316 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1377 | 1317 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1378 | 1318 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1379 | - | |
1380 | -System types: | |
1381 | - --build=BUILD configure for building on BUILD [guessed] | |
1382 | - --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1383 | 1319 | _ACEOF |
1384 | 1320 | fi |
1385 | 1321 | |
1386 | 1322 | if test -n "$ac_init_help"; then |
1387 | 1323 | case $ac_init_help in |
1388 | - short | recursive ) echo "Configuration of fermisurfer 2.1.0:";; | |
1324 | + short | recursive ) echo "Configuration of fermisurfer 2.2.1:";; | |
1389 | 1325 | esac |
1390 | 1326 | cat <<\_ACEOF |
1391 | 1327 |
@@ -1405,10 +1341,6 @@ Optional Packages: | ||
1405 | 1341 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1406 | 1342 | --with-openmp compile with OpenMP (parallelization) support. If |
1407 | 1343 | none is found, OpenMP is not used. Default: yes |
1408 | - --with-xquartz-gl[=DIR] On Mac OSX, use opengl provided by X11/XQuartz | |
1409 | - instead of the built-in framework. If enabled, the | |
1410 | - default location is [DIR=/opt/X11]. This option is | |
1411 | - default to false. | |
1412 | 1344 | --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH |
1413 | 1345 | --with-wx-config=CONFIG wx-config script to use (optional) |
1414 | 1346 | --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional) |
@@ -1423,18 +1355,6 @@ Some influential environment variables: | ||
1423 | 1355 | LIBS libraries to pass to the linker, e.g. -l<library> |
1424 | 1356 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1425 | 1357 | you have headers in a nonstandard directory <include dir> |
1426 | - CC C compiler command | |
1427 | - CFLAGS C compiler flags | |
1428 | - PKG_CONFIG path to pkg-config utility | |
1429 | - PKG_CONFIG_PATH | |
1430 | - directories to add to pkg-config's search path | |
1431 | - PKG_CONFIG_LIBDIR | |
1432 | - path overriding pkg-config's built-in search path | |
1433 | - GL_CFLAGS C compiler flags for GL, overriding configure script defaults | |
1434 | - GL_LIBS Linker flags for GL, overriding configure script defaults | |
1435 | - CPP C preprocessor | |
1436 | - GLU_CFLAGS C compiler flags for GLU, overriding system check | |
1437 | - GLU_LIBS Linker flags for GLU, overriding system check | |
1438 | 1358 | |
1439 | 1359 | Use these variables to override the choices made by `configure' or to help |
1440 | 1360 | it to find libraries and programs with nonstandard names/locations. |
@@ -1502,7 +1422,7 @@ fi | ||
1502 | 1422 | test -n "$ac_init_help" && exit $ac_status |
1503 | 1423 | if $ac_init_version; then |
1504 | 1424 | cat <<\_ACEOF |
1505 | -fermisurfer configure 2.1.0 | |
1425 | +fermisurfer configure 2.2.1 | |
1506 | 1426 | generated by GNU Autoconf 2.69 |
1507 | 1427 | |
1508 | 1428 | Copyright (C) 2012 Free Software Foundation, Inc. |
@@ -1553,296 +1473,11 @@ fi | ||
1553 | 1473 | as_fn_set_status $ac_retval |
1554 | 1474 | |
1555 | 1475 | } # ac_fn_cxx_try_compile |
1556 | - | |
1557 | -# ac_fn_c_try_compile LINENO | |
1558 | -# -------------------------- | |
1559 | -# Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1560 | -ac_fn_c_try_compile () | |
1561 | -{ | |
1562 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1563 | - rm -f conftest.$ac_objext | |
1564 | - if { { ac_try="$ac_compile" | |
1565 | -case "(($ac_try" in | |
1566 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1567 | - *) ac_try_echo=$ac_try;; | |
1568 | -esac | |
1569 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1570 | -$as_echo "$ac_try_echo"; } >&5 | |
1571 | - (eval "$ac_compile") 2>conftest.err | |
1572 | - ac_status=$? | |
1573 | - if test -s conftest.err; then | |
1574 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1575 | - cat conftest.er1 >&5 | |
1576 | - mv -f conftest.er1 conftest.err | |
1577 | - fi | |
1578 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1579 | - test $ac_status = 0; } && { | |
1580 | - test -z "$ac_c_werror_flag" || | |
1581 | - test ! -s conftest.err | |
1582 | - } && test -s conftest.$ac_objext; then : | |
1583 | - ac_retval=0 | |
1584 | -else | |
1585 | - $as_echo "$as_me: failed program was:" >&5 | |
1586 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1587 | - | |
1588 | - ac_retval=1 | |
1589 | -fi | |
1590 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1591 | - as_fn_set_status $ac_retval | |
1592 | - | |
1593 | -} # ac_fn_c_try_compile | |
1594 | - | |
1595 | -# ac_fn_c_try_link LINENO | |
1596 | -# ----------------------- | |
1597 | -# Try to link conftest.$ac_ext, and return whether this succeeded. | |
1598 | -ac_fn_c_try_link () | |
1599 | -{ | |
1600 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1601 | - rm -f conftest.$ac_objext conftest$ac_exeext | |
1602 | - if { { ac_try="$ac_link" | |
1603 | -case "(($ac_try" in | |
1604 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1605 | - *) ac_try_echo=$ac_try;; | |
1606 | -esac | |
1607 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1608 | -$as_echo "$ac_try_echo"; } >&5 | |
1609 | - (eval "$ac_link") 2>conftest.err | |
1610 | - ac_status=$? | |
1611 | - if test -s conftest.err; then | |
1612 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1613 | - cat conftest.er1 >&5 | |
1614 | - mv -f conftest.er1 conftest.err | |
1615 | - fi | |
1616 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1617 | - test $ac_status = 0; } && { | |
1618 | - test -z "$ac_c_werror_flag" || | |
1619 | - test ! -s conftest.err | |
1620 | - } && test -s conftest$ac_exeext && { | |
1621 | - test "$cross_compiling" = yes || | |
1622 | - test -x conftest$ac_exeext | |
1623 | - }; then : | |
1624 | - ac_retval=0 | |
1625 | -else | |
1626 | - $as_echo "$as_me: failed program was:" >&5 | |
1627 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1628 | - | |
1629 | - ac_retval=1 | |
1630 | -fi | |
1631 | - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1632 | - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1633 | - # interfere with the next link command; also delete a directory that is | |
1634 | - # left behind by Apple's compiler. We do this before executing the actions. | |
1635 | - rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1636 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1637 | - as_fn_set_status $ac_retval | |
1638 | - | |
1639 | -} # ac_fn_c_try_link | |
1640 | - | |
1641 | -# ac_fn_c_try_cpp LINENO | |
1642 | -# ---------------------- | |
1643 | -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1644 | -ac_fn_c_try_cpp () | |
1645 | -{ | |
1646 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1647 | - if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1648 | -case "(($ac_try" in | |
1649 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1650 | - *) ac_try_echo=$ac_try;; | |
1651 | -esac | |
1652 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1653 | -$as_echo "$ac_try_echo"; } >&5 | |
1654 | - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1655 | - ac_status=$? | |
1656 | - if test -s conftest.err; then | |
1657 | - grep -v '^ *+' conftest.err >conftest.er1 | |
1658 | - cat conftest.er1 >&5 | |
1659 | - mv -f conftest.er1 conftest.err | |
1660 | - fi | |
1661 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1662 | - test $ac_status = 0; } > conftest.i && { | |
1663 | - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1664 | - test ! -s conftest.err | |
1665 | - }; then : | |
1666 | - ac_retval=0 | |
1667 | -else | |
1668 | - $as_echo "$as_me: failed program was:" >&5 | |
1669 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1670 | - | |
1671 | - ac_retval=1 | |
1672 | -fi | |
1673 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1674 | - as_fn_set_status $ac_retval | |
1675 | - | |
1676 | -} # ac_fn_c_try_cpp | |
1677 | - | |
1678 | -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1679 | -# ------------------------------------------------------- | |
1680 | -# Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1681 | -# the include files in INCLUDES and setting the cache variable VAR | |
1682 | -# accordingly. | |
1683 | -ac_fn_c_check_header_mongrel () | |
1684 | -{ | |
1685 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1686 | - if eval \${$3+:} false; then : | |
1687 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1688 | -$as_echo_n "checking for $2... " >&6; } | |
1689 | -if eval \${$3+:} false; then : | |
1690 | - $as_echo_n "(cached) " >&6 | |
1691 | -fi | |
1692 | -eval ac_res=\$$3 | |
1693 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1694 | -$as_echo "$ac_res" >&6; } | |
1695 | -else | |
1696 | - # Is the header compilable? | |
1697 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1698 | -$as_echo_n "checking $2 usability... " >&6; } | |
1699 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1700 | -/* end confdefs.h. */ | |
1701 | -$4 | |
1702 | -#include <$2> | |
1703 | -_ACEOF | |
1704 | -if ac_fn_c_try_compile "$LINENO"; then : | |
1705 | - ac_header_compiler=yes | |
1706 | -else | |
1707 | - ac_header_compiler=no | |
1708 | -fi | |
1709 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1710 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1711 | -$as_echo "$ac_header_compiler" >&6; } | |
1712 | - | |
1713 | -# Is the header present? | |
1714 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1715 | -$as_echo_n "checking $2 presence... " >&6; } | |
1716 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1717 | -/* end confdefs.h. */ | |
1718 | -#include <$2> | |
1719 | -_ACEOF | |
1720 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
1721 | - ac_header_preproc=yes | |
1722 | -else | |
1723 | - ac_header_preproc=no | |
1724 | -fi | |
1725 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
1726 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1727 | -$as_echo "$ac_header_preproc" >&6; } | |
1728 | - | |
1729 | -# So? What about this header? | |
1730 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1731 | - yes:no: ) | |
1732 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1733 | -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1734 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1735 | -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1736 | - ;; | |
1737 | - no:yes:* ) | |
1738 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1739 | -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1740 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1741 | -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1742 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1743 | -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1744 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1745 | -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1746 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1747 | -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1748 | -( $as_echo "## ------------------------------------------- ## | |
1749 | -## Report this to mkawamura@issp.u-tokyo.ac.jp ## | |
1750 | -## ------------------------------------------- ##" | |
1751 | - ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1752 | - ;; | |
1753 | -esac | |
1754 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1755 | -$as_echo_n "checking for $2... " >&6; } | |
1756 | -if eval \${$3+:} false; then : | |
1757 | - $as_echo_n "(cached) " >&6 | |
1758 | -else | |
1759 | - eval "$3=\$ac_header_compiler" | |
1760 | -fi | |
1761 | -eval ac_res=\$$3 | |
1762 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1763 | -$as_echo "$ac_res" >&6; } | |
1764 | -fi | |
1765 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1766 | - | |
1767 | -} # ac_fn_c_check_header_mongrel | |
1768 | - | |
1769 | -# ac_fn_c_try_run LINENO | |
1770 | -# ---------------------- | |
1771 | -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1772 | -# that executables *can* be run. | |
1773 | -ac_fn_c_try_run () | |
1774 | -{ | |
1775 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1776 | - if { { ac_try="$ac_link" | |
1777 | -case "(($ac_try" in | |
1778 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | - *) ac_try_echo=$ac_try;; | |
1780 | -esac | |
1781 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | -$as_echo "$ac_try_echo"; } >&5 | |
1783 | - (eval "$ac_link") 2>&5 | |
1784 | - ac_status=$? | |
1785 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1786 | - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1787 | - { { case "(($ac_try" in | |
1788 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1789 | - *) ac_try_echo=$ac_try;; | |
1790 | -esac | |
1791 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1792 | -$as_echo "$ac_try_echo"; } >&5 | |
1793 | - (eval "$ac_try") 2>&5 | |
1794 | - ac_status=$? | |
1795 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1796 | - test $ac_status = 0; }; }; then : | |
1797 | - ac_retval=0 | |
1798 | -else | |
1799 | - $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1800 | - $as_echo "$as_me: failed program was:" >&5 | |
1801 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
1802 | - | |
1803 | - ac_retval=$ac_status | |
1804 | -fi | |
1805 | - rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1806 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1807 | - as_fn_set_status $ac_retval | |
1808 | - | |
1809 | -} # ac_fn_c_try_run | |
1810 | - | |
1811 | -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1812 | -# ------------------------------------------------------- | |
1813 | -# Tests whether HEADER exists and can be compiled using the include files in | |
1814 | -# INCLUDES, setting the cache variable VAR accordingly. | |
1815 | -ac_fn_c_check_header_compile () | |
1816 | -{ | |
1817 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1818 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1819 | -$as_echo_n "checking for $2... " >&6; } | |
1820 | -if eval \${$3+:} false; then : | |
1821 | - $as_echo_n "(cached) " >&6 | |
1822 | -else | |
1823 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1824 | -/* end confdefs.h. */ | |
1825 | -$4 | |
1826 | -#include <$2> | |
1827 | -_ACEOF | |
1828 | -if ac_fn_c_try_compile "$LINENO"; then : | |
1829 | - eval "$3=yes" | |
1830 | -else | |
1831 | - eval "$3=no" | |
1832 | -fi | |
1833 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1834 | -fi | |
1835 | -eval ac_res=\$$3 | |
1836 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1837 | -$as_echo "$ac_res" >&6; } | |
1838 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1839 | - | |
1840 | -} # ac_fn_c_check_header_compile | |
1841 | 1476 | cat >config.log <<_ACEOF |
1842 | 1477 | This file contains any messages produced by compilers while |
1843 | 1478 | running configure, to aid debugging if configure makes a mistake. |
1844 | 1479 | |
1845 | -It was created by fermisurfer $as_me 2.1.0, which was | |
1480 | +It was created by fermisurfer $as_me 2.2.1, which was | |
1846 | 1481 | generated by GNU Autoconf 2.69. Invocation command line was |
1847 | 1482 | |
1848 | 1483 | $ $0 $@ |
@@ -2705,7 +2340,7 @@ fi | ||
2705 | 2340 | |
2706 | 2341 | # Define the identity of the package. |
2707 | 2342 | PACKAGE='fermisurfer' |
2708 | - VERSION='2.1.0' | |
2343 | + VERSION='2.2.1' | |
2709 | 2344 | |
2710 | 2345 | |
2711 | 2346 | cat >>confdefs.h <<_ACEOF |
@@ -3514,3230 +3149,48 @@ else | ||
3514 | 3149 | fi |
3515 | 3150 | |
3516 | 3151 | if test x"$with_openmp" != xno; then |
3517 | - ac_ext=c | |
3518 | -ac_cpp='$CPP $CPPFLAGS' | |
3519 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3520 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3521 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3522 | -if test -n "$ac_tool_prefix"; then | |
3523 | - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3524 | -set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3525 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3526 | -$as_echo_n "checking for $ac_word... " >&6; } | |
3527 | -if ${ac_cv_prog_CC+:} false; then : | |
3528 | - $as_echo_n "(cached) " >&6 | |
3529 | -else | |
3530 | - if test -n "$CC"; then | |
3531 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
3532 | -else | |
3533 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3534 | -for as_dir in $PATH | |
3535 | -do | |
3536 | - IFS=$as_save_IFS | |
3537 | - test -z "$as_dir" && as_dir=. | |
3538 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
3539 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3540 | - ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3541 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3542 | - break 2 | |
3543 | - fi | |
3544 | -done | |
3545 | - done | |
3546 | -IFS=$as_save_IFS | |
3547 | - | |
3548 | -fi | |
3549 | -fi | |
3550 | -CC=$ac_cv_prog_CC | |
3551 | -if test -n "$CC"; then | |
3552 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3553 | -$as_echo "$CC" >&6; } | |
3554 | -else | |
3555 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3556 | -$as_echo "no" >&6; } | |
3152 | + AX_OPENMP(CXXFLAGS="$CXXFLAGS $OPENMP_CFLAGS", | |
3153 | + AC_MSG_WARN([OpenMP requested, but couldn't use OpenMP.]) | |
3154 | + ) | |
3557 | 3155 | fi |
3156 | +echo "" | |
3157 | +echo " Check OpenGL" | |
3158 | +echo "" | |
3159 | +AX_CHECK_GL | |
3160 | +AX_CHECK_GLU | |
3161 | +CXXFLAGS="$CXXFLAGS $GL_CFLAGS $GLU_CFLAGS" | |
3162 | +LIBS="$LIBS $GLU_LIBS $GL_LIBS -lm" | |
3163 | +echo "" | |
3164 | +echo " Check wxWidgets" | |
3165 | +echo "" | |
3558 | 3166 | |
3559 | 3167 | |
3168 | +# Check whether --with-wxdir was given. | |
3169 | +if test "${with_wxdir+set}" = set; then : | |
3170 | + withval=$with_wxdir; wx_config_name="$withval/wx-config" | |
3171 | + wx_config_args="--inplace" | |
3560 | 3172 | fi |
3561 | -if test -z "$ac_cv_prog_CC"; then | |
3562 | - ac_ct_CC=$CC | |
3563 | - # Extract the first word of "gcc", so it can be a program name with args. | |
3564 | -set dummy gcc; ac_word=$2 | |
3565 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3566 | -$as_echo_n "checking for $ac_word... " >&6; } | |
3567 | -if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3568 | - $as_echo_n "(cached) " >&6 | |
3569 | -else | |
3570 | - if test -n "$ac_ct_CC"; then | |
3571 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3572 | -else | |
3573 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3574 | -for as_dir in $PATH | |
3575 | -do | |
3576 | - IFS=$as_save_IFS | |
3577 | - test -z "$as_dir" && as_dir=. | |
3578 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
3579 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3580 | - ac_cv_prog_ac_ct_CC="gcc" | |
3581 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3582 | - break 2 | |
3583 | - fi | |
3584 | -done | |
3585 | - done | |
3586 | -IFS=$as_save_IFS | |
3587 | 3173 | |
3174 | + | |
3175 | +# Check whether --with-wx-config was given. | |
3176 | +if test "${with_wx_config+set}" = set; then : | |
3177 | + withval=$with_wx_config; wx_config_name="$withval" | |
3588 | 3178 | fi |
3589 | -fi | |
3590 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3591 | -if test -n "$ac_ct_CC"; then | |
3592 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3593 | -$as_echo "$ac_ct_CC" >&6; } | |
3179 | + | |
3180 | + | |
3181 | +# Check whether --with-wx-prefix was given. | |
3182 | +if test "${with_wx_prefix+set}" = set; then : | |
3183 | + withval=$with_wx_prefix; wx_config_prefix="$withval" | |
3594 | 3184 | else |
3595 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3596 | -$as_echo "no" >&6; } | |
3185 | + wx_config_prefix="" | |
3597 | 3186 | fi |
3598 | 3187 | |
3599 | - if test "x$ac_ct_CC" = x; then | |
3600 | - CC="" | |
3601 | - else | |
3602 | - case $cross_compiling:$ac_tool_warned in | |
3603 | -yes:) | |
3604 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3605 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3606 | -ac_tool_warned=yes ;; | |
3607 | -esac | |
3608 | - CC=$ac_ct_CC | |
3609 | - fi | |
3188 | + | |
3189 | +# Check whether --with-wx-exec-prefix was given. | |
3190 | +if test "${with_wx_exec_prefix+set}" = set; then : | |
3191 | + withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval" | |
3610 | 3192 | else |
3611 | - CC="$ac_cv_prog_CC" | |
3612 | -fi | |
3613 | - | |
3614 | -if test -z "$CC"; then | |
3615 | - if test -n "$ac_tool_prefix"; then | |
3616 | - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3617 | -set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3618 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3619 | -$as_echo_n "checking for $ac_word... " >&6; } | |
3620 | -if ${ac_cv_prog_CC+:} false; then : | |
3621 | - $as_echo_n "(cached) " >&6 | |
3622 | -else | |
3623 | - if test -n "$CC"; then | |
3624 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
3625 | -else | |
3626 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3627 | -for as_dir in $PATH | |
3628 | -do | |
3629 | - IFS=$as_save_IFS | |
3630 | - test -z "$as_dir" && as_dir=. | |
3631 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
3632 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3633 | - ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3634 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3635 | - break 2 | |
3636 | - fi | |
3637 | -done | |
3638 | - done | |
3639 | -IFS=$as_save_IFS | |
3640 | - | |
3641 | -fi | |
3642 | -fi | |
3643 | -CC=$ac_cv_prog_CC | |
3644 | -if test -n "$CC"; then | |
3645 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3646 | -$as_echo "$CC" >&6; } | |
3647 | -else | |
3648 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3649 | -$as_echo "no" >&6; } | |
3650 | -fi | |
3651 | - | |
3652 | - | |
3653 | - fi | |
3654 | -fi | |
3655 | -if test -z "$CC"; then | |
3656 | - # Extract the first word of "cc", so it can be a program name with args. | |
3657 | -set dummy cc; ac_word=$2 | |
3658 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3659 | -$as_echo_n "checking for $ac_word... " >&6; } | |
3660 | -if ${ac_cv_prog_CC+:} false; then : | |
3661 | - $as_echo_n "(cached) " >&6 | |
3662 | -else | |
3663 | - if test -n "$CC"; then | |
3664 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
3665 | -else | |
3666 | - ac_prog_rejected=no | |
3667 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3668 | -for as_dir in $PATH | |
3669 | -do | |
3670 | - IFS=$as_save_IFS | |
3671 | - test -z "$as_dir" && as_dir=. | |
3672 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
3673 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3674 | - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3675 | - ac_prog_rejected=yes | |
3676 | - continue | |
3677 | - fi | |
3678 | - ac_cv_prog_CC="cc" | |
3679 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3680 | - break 2 | |
3681 | - fi | |
3682 | -done | |
3683 | - done | |
3684 | -IFS=$as_save_IFS | |
3685 | - | |
3686 | -if test $ac_prog_rejected = yes; then | |
3687 | - # We found a bogon in the path, so make sure we never use it. | |
3688 | - set dummy $ac_cv_prog_CC | |
3689 | - shift | |
3690 | - if test $# != 0; then | |
3691 | - # We chose a different compiler from the bogus one. | |
3692 | - # However, it has the same basename, so the bogon will be chosen | |
3693 | - # first if we set CC to just the basename; use the full file name. | |
3694 | - shift | |
3695 | - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3696 | - fi | |
3697 | -fi | |
3698 | -fi | |
3699 | -fi | |
3700 | -CC=$ac_cv_prog_CC | |
3701 | -if test -n "$CC"; then | |
3702 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3703 | -$as_echo "$CC" >&6; } | |
3704 | -else | |
3705 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3706 | -$as_echo "no" >&6; } | |
3707 | -fi | |
3708 | - | |
3709 | - | |
3710 | -fi | |
3711 | -if test -z "$CC"; then | |
3712 | - if test -n "$ac_tool_prefix"; then | |
3713 | - for ac_prog in cl.exe | |
3714 | - do | |
3715 | - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3716 | -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3717 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3718 | -$as_echo_n "checking for $ac_word... " >&6; } | |
3719 | -if ${ac_cv_prog_CC+:} false; then : | |
3720 | - $as_echo_n "(cached) " >&6 | |
3721 | -else | |
3722 | - if test -n "$CC"; then | |
3723 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
3724 | -else | |
3725 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3726 | -for as_dir in $PATH | |
3727 | -do | |
3728 | - IFS=$as_save_IFS | |
3729 | - test -z "$as_dir" && as_dir=. | |
3730 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
3731 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3732 | - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3733 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3734 | - break 2 | |
3735 | - fi | |
3736 | -done | |
3737 | - done | |
3738 | -IFS=$as_save_IFS | |
3739 | - | |
3740 | -fi | |
3741 | -fi | |
3742 | -CC=$ac_cv_prog_CC | |
3743 | -if test -n "$CC"; then | |
3744 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3745 | -$as_echo "$CC" >&6; } | |
3746 | -else | |
3747 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3748 | -$as_echo "no" >&6; } | |
3749 | -fi | |
3750 | - | |
3751 | - | |
3752 | - test -n "$CC" && break | |
3753 | - done | |
3754 | -fi | |
3755 | -if test -z "$CC"; then | |
3756 | - ac_ct_CC=$CC | |
3757 | - for ac_prog in cl.exe | |
3758 | -do | |
3759 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3760 | -set dummy $ac_prog; ac_word=$2 | |
3761 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3762 | -$as_echo_n "checking for $ac_word... " >&6; } | |
3763 | -if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3764 | - $as_echo_n "(cached) " >&6 | |
3765 | -else | |
3766 | - if test -n "$ac_ct_CC"; then | |
3767 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3768 | -else | |
3769 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3770 | -for as_dir in $PATH | |
3771 | -do | |
3772 | - IFS=$as_save_IFS | |
3773 | - test -z "$as_dir" && as_dir=. | |
3774 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
3775 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3776 | - ac_cv_prog_ac_ct_CC="$ac_prog" | |
3777 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3778 | - break 2 | |
3779 | - fi | |
3780 | -done | |
3781 | - done | |
3782 | -IFS=$as_save_IFS | |
3783 | - | |
3784 | -fi | |
3785 | -fi | |
3786 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3787 | -if test -n "$ac_ct_CC"; then | |
3788 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3789 | -$as_echo "$ac_ct_CC" >&6; } | |
3790 | -else | |
3791 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3792 | -$as_echo "no" >&6; } | |
3793 | -fi | |
3794 | - | |
3795 | - | |
3796 | - test -n "$ac_ct_CC" && break | |
3797 | -done | |
3798 | - | |
3799 | - if test "x$ac_ct_CC" = x; then | |
3800 | - CC="" | |
3801 | - else | |
3802 | - case $cross_compiling:$ac_tool_warned in | |
3803 | -yes:) | |
3804 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3805 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3806 | -ac_tool_warned=yes ;; | |
3807 | -esac | |
3808 | - CC=$ac_ct_CC | |
3809 | - fi | |
3810 | -fi | |
3811 | - | |
3812 | -fi | |
3813 | - | |
3814 | - | |
3815 | -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3816 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3817 | -as_fn_error $? "no acceptable C compiler found in \$PATH | |
3818 | -See \`config.log' for more details" "$LINENO" 5; } | |
3819 | - | |
3820 | -# Provide some information about the compiler. | |
3821 | -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3822 | -set X $ac_compile | |
3823 | -ac_compiler=$2 | |
3824 | -for ac_option in --version -v -V -qversion; do | |
3825 | - { { ac_try="$ac_compiler $ac_option >&5" | |
3826 | -case "(($ac_try" in | |
3827 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3828 | - *) ac_try_echo=$ac_try;; | |
3829 | -esac | |
3830 | -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3831 | -$as_echo "$ac_try_echo"; } >&5 | |
3832 | - (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3833 | - ac_status=$? | |
3834 | - if test -s conftest.err; then | |
3835 | - sed '10a\ | |
3836 | -... rest of stderr output deleted ... | |
3837 | - 10q' conftest.err >conftest.er1 | |
3838 | - cat conftest.er1 >&5 | |
3839 | - fi | |
3840 | - rm -f conftest.er1 conftest.err | |
3841 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3842 | - test $ac_status = 0; } | |
3843 | -done | |
3844 | - | |
3845 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3846 | -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3847 | -if ${ac_cv_c_compiler_gnu+:} false; then : | |
3848 | - $as_echo_n "(cached) " >&6 | |
3849 | -else | |
3850 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3851 | -/* end confdefs.h. */ | |
3852 | - | |
3853 | -int | |
3854 | -main () | |
3855 | -{ | |
3856 | -#ifndef __GNUC__ | |
3857 | - choke me | |
3858 | -#endif | |
3859 | - | |
3860 | - ; | |
3861 | - return 0; | |
3862 | -} | |
3863 | -_ACEOF | |
3864 | -if ac_fn_c_try_compile "$LINENO"; then : | |
3865 | - ac_compiler_gnu=yes | |
3866 | -else | |
3867 | - ac_compiler_gnu=no | |
3868 | -fi | |
3869 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3870 | -ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3871 | - | |
3872 | -fi | |
3873 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3874 | -$as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3875 | -if test $ac_compiler_gnu = yes; then | |
3876 | - GCC=yes | |
3877 | -else | |
3878 | - GCC= | |
3879 | -fi | |
3880 | -ac_test_CFLAGS=${CFLAGS+set} | |
3881 | -ac_save_CFLAGS=$CFLAGS | |
3882 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3883 | -$as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3884 | -if ${ac_cv_prog_cc_g+:} false; then : | |
3885 | - $as_echo_n "(cached) " >&6 | |
3886 | -else | |
3887 | - ac_save_c_werror_flag=$ac_c_werror_flag | |
3888 | - ac_c_werror_flag=yes | |
3889 | - ac_cv_prog_cc_g=no | |
3890 | - CFLAGS="-g" | |
3891 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3892 | -/* end confdefs.h. */ | |
3893 | - | |
3894 | -int | |
3895 | -main () | |
3896 | -{ | |
3897 | - | |
3898 | - ; | |
3899 | - return 0; | |
3900 | -} | |
3901 | -_ACEOF | |
3902 | -if ac_fn_c_try_compile "$LINENO"; then : | |
3903 | - ac_cv_prog_cc_g=yes | |
3904 | -else | |
3905 | - CFLAGS="" | |
3906 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3907 | -/* end confdefs.h. */ | |
3908 | - | |
3909 | -int | |
3910 | -main () | |
3911 | -{ | |
3912 | - | |
3913 | - ; | |
3914 | - return 0; | |
3915 | -} | |
3916 | -_ACEOF | |
3917 | -if ac_fn_c_try_compile "$LINENO"; then : | |
3918 | - | |
3919 | -else | |
3920 | - ac_c_werror_flag=$ac_save_c_werror_flag | |
3921 | - CFLAGS="-g" | |
3922 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3923 | -/* end confdefs.h. */ | |
3924 | - | |
3925 | -int | |
3926 | -main () | |
3927 | -{ | |
3928 | - | |
3929 | - ; | |
3930 | - return 0; | |
3931 | -} | |
3932 | -_ACEOF | |
3933 | -if ac_fn_c_try_compile "$LINENO"; then : | |
3934 | - ac_cv_prog_cc_g=yes | |
3935 | -fi | |
3936 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3937 | -fi | |
3938 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3939 | -fi | |
3940 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3941 | - ac_c_werror_flag=$ac_save_c_werror_flag | |
3942 | -fi | |
3943 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3944 | -$as_echo "$ac_cv_prog_cc_g" >&6; } | |
3945 | -if test "$ac_test_CFLAGS" = set; then | |
3946 | - CFLAGS=$ac_save_CFLAGS | |
3947 | -elif test $ac_cv_prog_cc_g = yes; then | |
3948 | - if test "$GCC" = yes; then | |
3949 | - CFLAGS="-g -O2" | |
3950 | - else | |
3951 | - CFLAGS="-g" | |
3952 | - fi | |
3953 | -else | |
3954 | - if test "$GCC" = yes; then | |
3955 | - CFLAGS="-O2" | |
3956 | - else | |
3957 | - CFLAGS= | |
3958 | - fi | |
3959 | -fi | |
3960 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3961 | -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3962 | -if ${ac_cv_prog_cc_c89+:} false; then : | |
3963 | - $as_echo_n "(cached) " >&6 | |
3964 | -else | |
3965 | - ac_cv_prog_cc_c89=no | |
3966 | -ac_save_CC=$CC | |
3967 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3968 | -/* end confdefs.h. */ | |
3969 | -#include <stdarg.h> | |
3970 | -#include <stdio.h> | |
3971 | -struct stat; | |
3972 | -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3973 | -struct buf { int x; }; | |
3974 | -FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3975 | -static char *e (p, i) | |
3976 | - char **p; | |
3977 | - int i; | |
3978 | -{ | |
3979 | - return p[i]; | |
3980 | -} | |
3981 | -static char *f (char * (*g) (char **, int), char **p, ...) | |
3982 | -{ | |
3983 | - char *s; | |
3984 | - va_list v; | |
3985 | - va_start (v,p); | |
3986 | - s = g (p, va_arg (v,int)); | |
3987 | - va_end (v); | |
3988 | - return s; | |
3989 | -} | |
3990 | - | |
3991 | -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3992 | - function prototypes and stuff, but not '\xHH' hex character constants. | |
3993 | - These don't provoke an error unfortunately, instead are silently treated | |
3994 | - as 'x'. The following induces an error, until -std is added to get | |
3995 | - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3996 | - array size at least. It's necessary to write '\x00'==0 to get something | |
3997 | - that's true only with -std. */ | |
3998 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3999 | - | |
4000 | -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4001 | - inside strings and character constants. */ | |
4002 | -#define FOO(x) 'x' | |
4003 | -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4004 | - | |
4005 | -int test (int i, double x); | |
4006 | -struct s1 {int (*f) (int a);}; | |
4007 | -struct s2 {int (*f) (double a);}; | |
4008 | -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4009 | -int argc; | |
4010 | -char **argv; | |
4011 | -int | |
4012 | -main () | |
4013 | -{ | |
4014 | -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4015 | - ; | |
4016 | - return 0; | |
4017 | -} | |
4018 | -_ACEOF | |
4019 | -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4020 | - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4021 | -do | |
4022 | - CC="$ac_save_CC $ac_arg" | |
4023 | - if ac_fn_c_try_compile "$LINENO"; then : | |
4024 | - ac_cv_prog_cc_c89=$ac_arg | |
4025 | -fi | |
4026 | -rm -f core conftest.err conftest.$ac_objext | |
4027 | - test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4028 | -done | |
4029 | -rm -f conftest.$ac_ext | |
4030 | -CC=$ac_save_CC | |
4031 | - | |
4032 | -fi | |
4033 | -# AC_CACHE_VAL | |
4034 | -case "x$ac_cv_prog_cc_c89" in | |
4035 | - x) | |
4036 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4037 | -$as_echo "none needed" >&6; } ;; | |
4038 | - xno) | |
4039 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4040 | -$as_echo "unsupported" >&6; } ;; | |
4041 | - *) | |
4042 | - CC="$CC $ac_cv_prog_cc_c89" | |
4043 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4044 | -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4045 | -esac | |
4046 | -if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4047 | - | |
4048 | -fi | |
4049 | - | |
4050 | -ac_ext=c | |
4051 | -ac_cpp='$CPP $CPPFLAGS' | |
4052 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4053 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4054 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4055 | - | |
4056 | -ac_ext=c | |
4057 | -ac_cpp='$CPP $CPPFLAGS' | |
4058 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4059 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4060 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4061 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4062 | -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4063 | -if ${am_cv_prog_cc_c_o+:} false; then : | |
4064 | - $as_echo_n "(cached) " >&6 | |
4065 | -else | |
4066 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4067 | -/* end confdefs.h. */ | |
4068 | - | |
4069 | -int | |
4070 | -main () | |
4071 | -{ | |
4072 | - | |
4073 | - ; | |
4074 | - return 0; | |
4075 | -} | |
4076 | -_ACEOF | |
4077 | - # Make sure it works both with $CC and with simple cc. | |
4078 | - # Following AC_PROG_CC_C_O, we do the test twice because some | |
4079 | - # compilers refuse to overwrite an existing .o file with -o, | |
4080 | - # though they will create one. | |
4081 | - am_cv_prog_cc_c_o=yes | |
4082 | - for am_i in 1 2; do | |
4083 | - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4084 | - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4085 | - ac_status=$? | |
4086 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4087 | - (exit $ac_status); } \ | |
4088 | - && test -f conftest2.$ac_objext; then | |
4089 | - : OK | |
4090 | - else | |
4091 | - am_cv_prog_cc_c_o=no | |
4092 | - break | |
4093 | - fi | |
4094 | - done | |
4095 | - rm -f core conftest* | |
4096 | - unset am_i | |
4097 | -fi | |
4098 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4099 | -$as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4100 | -if test "$am_cv_prog_cc_c_o" != yes; then | |
4101 | - # Losing compiler, so override with the script. | |
4102 | - # FIXME: It is wrong to rewrite CC. | |
4103 | - # But if we don't then we get into trouble of one sort or another. | |
4104 | - # A longer-term fix would be to have automake use am__CC in this case, | |
4105 | - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4106 | - CC="$am_aux_dir/compile $CC" | |
4107 | -fi | |
4108 | -ac_ext=c | |
4109 | -ac_cpp='$CPP $CPPFLAGS' | |
4110 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4111 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4112 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4113 | - | |
4114 | - | |
4115 | -depcc="$CC" am_compiler_list= | |
4116 | - | |
4117 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4118 | -$as_echo_n "checking dependency style of $depcc... " >&6; } | |
4119 | -if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4120 | - $as_echo_n "(cached) " >&6 | |
4121 | -else | |
4122 | - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4123 | - # We make a subdir and do the tests there. Otherwise we can end up | |
4124 | - # making bogus files that we don't know about and never remove. For | |
4125 | - # instance it was reported that on HP-UX the gcc test will end up | |
4126 | - # making a dummy file named 'D' -- because '-MD' means "put the output | |
4127 | - # in D". | |
4128 | - rm -rf conftest.dir | |
4129 | - mkdir conftest.dir | |
4130 | - # Copy depcomp to subdir because otherwise we won't find it if we're | |
4131 | - # using a relative directory. | |
4132 | - cp "$am_depcomp" conftest.dir | |
4133 | - cd conftest.dir | |
4134 | - # We will build objects and dependencies in a subdirectory because | |
4135 | - # it helps to detect inapplicable dependency modes. For instance | |
4136 | - # both Tru64's cc and ICC support -MD to output dependencies as a | |
4137 | - # side effect of compilation, but ICC will put the dependencies in | |
4138 | - # the current directory while Tru64 will put them in the object | |
4139 | - # directory. | |
4140 | - mkdir sub | |
4141 | - | |
4142 | - am_cv_CC_dependencies_compiler_type=none | |
4143 | - if test "$am_compiler_list" = ""; then | |
4144 | - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4145 | - fi | |
4146 | - am__universal=false | |
4147 | - case " $depcc " in #( | |
4148 | - *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4149 | - esac | |
4150 | - | |
4151 | - for depmode in $am_compiler_list; do | |
4152 | - # Setup a source with many dependencies, because some compilers | |
4153 | - # like to wrap large dependency lists on column 80 (with \), and | |
4154 | - # we should not choose a depcomp mode which is confused by this. | |
4155 | - # | |
4156 | - # We need to recreate these files for each test, as the compiler may | |
4157 | - # overwrite some of them when testing with obscure command lines. | |
4158 | - # This happens at least with the AIX C compiler. | |
4159 | - : > sub/conftest.c | |
4160 | - for i in 1 2 3 4 5 6; do | |
4161 | - echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4162 | - # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4163 | - # Solaris 10 /bin/sh. | |
4164 | - echo '/* dummy */' > sub/conftst$i.h | |
4165 | - done | |
4166 | - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4167 | - | |
4168 | - # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4169 | - # mode. It turns out that the SunPro C++ compiler does not properly | |
4170 | - # handle '-M -o', and we need to detect this. Also, some Intel | |
4171 | - # versions had trouble with output in subdirs. | |
4172 | - am__obj=sub/conftest.${OBJEXT-o} | |
4173 | - am__minus_obj="-o $am__obj" | |
4174 | - case $depmode in | |
4175 | - gcc) | |
4176 | - # This depmode causes a compiler race in universal mode. | |
4177 | - test "$am__universal" = false || continue | |
4178 | - ;; | |
4179 | - nosideeffect) | |
4180 | - # After this tag, mechanisms are not by side-effect, so they'll | |
4181 | - # only be used when explicitly requested. | |
4182 | - if test "x$enable_dependency_tracking" = xyes; then | |
4183 | - continue | |
4184 | - else | |
4185 | - break | |
4186 | - fi | |
4187 | - ;; | |
4188 | - msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4189 | - # This compiler won't grok '-c -o', but also, the minuso test has | |
4190 | - # not run yet. These depmodes are late enough in the game, and | |
4191 | - # so weak that their functioning should not be impacted. | |
4192 | - am__obj=conftest.${OBJEXT-o} | |
4193 | - am__minus_obj= | |
4194 | - ;; | |
4195 | - none) break ;; | |
4196 | - esac | |
4197 | - if depmode=$depmode \ | |
4198 | - source=sub/conftest.c object=$am__obj \ | |
4199 | - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4200 | - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4201 | - >/dev/null 2>conftest.err && | |
4202 | - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4203 | - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4204 | - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4205 | - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4206 | - # icc doesn't choke on unknown options, it will just issue warnings | |
4207 | - # or remarks (even with -Werror). So we grep stderr for any message | |
4208 | - # that says an option was ignored or not supported. | |
4209 | - # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4210 | - # icc: Command line warning: ignoring option '-M'; no argument required | |
4211 | - # The diagnosis changed in icc 8.0: | |
4212 | - # icc: Command line remark: option '-MP' not supported | |
4213 | - if (grep 'ignoring option' conftest.err || | |
4214 | - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4215 | - am_cv_CC_dependencies_compiler_type=$depmode | |
4216 | - break | |
4217 | - fi | |
4218 | - fi | |
4219 | - done | |
4220 | - | |
4221 | - cd .. | |
4222 | - rm -rf conftest.dir | |
4223 | -else | |
4224 | - am_cv_CC_dependencies_compiler_type=none | |
4225 | -fi | |
4226 | - | |
4227 | -fi | |
4228 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4229 | -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4230 | -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4231 | - | |
4232 | - if | |
4233 | - test "x$enable_dependency_tracking" != xno \ | |
4234 | - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4235 | - am__fastdepCC_TRUE= | |
4236 | - am__fastdepCC_FALSE='#' | |
4237 | -else | |
4238 | - am__fastdepCC_TRUE='#' | |
4239 | - am__fastdepCC_FALSE= | |
4240 | -fi | |
4241 | - | |
4242 | - | |
4243 | - | |
4244 | - | |
4245 | - | |
4246 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5 | |
4247 | -$as_echo_n "checking for OpenMP flag of C compiler... " >&6; } | |
4248 | -if ${ax_cv_c_openmp+:} false; then : | |
4249 | - $as_echo_n "(cached) " >&6 | |
4250 | -else | |
4251 | - saveCFLAGS=$CFLAGS | |
4252 | -ax_cv_c_openmp=unknown | |
4253 | -# Flags to try: -fopenmp (gcc), -mp (SGI & PGI), | |
4254 | -# -qopenmp (icc>=15), -openmp (icc), | |
4255 | -# -xopenmp (Sun), -omp (Tru64), | |
4256 | -# -qsmp=omp (AIX), | |
4257 | -# none | |
4258 | -ax_openmp_flags="-fopenmp -openmp -qopenmp -mp -xopenmp -omp -qsmp=omp none" | |
4259 | -if test "x$OPENMP_CFLAGS" != x; then | |
4260 | - ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags" | |
4261 | -fi | |
4262 | -for ax_openmp_flag in $ax_openmp_flags; do | |
4263 | - case $ax_openmp_flag in | |
4264 | - none) CFLAGS=$saveC ;; | |
4265 | - *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;; | |
4266 | - esac | |
4267 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4268 | -/* end confdefs.h. */ | |
4269 | - | |
4270 | -#include <omp.h> | |
4271 | - | |
4272 | -static void | |
4273 | -parallel_fill(int * data, int n) | |
4274 | -{ | |
4275 | - int i; | |
4276 | -#pragma omp parallel for | |
4277 | - for (i = 0; i < n; ++i) | |
4278 | - data[i] = i; | |
4279 | -} | |
4280 | - | |
4281 | -int | |
4282 | -main() | |
4283 | -{ | |
4284 | - int arr[100000]; | |
4285 | - omp_set_num_threads(2); | |
4286 | - parallel_fill(arr, 100000); | |
4287 | - return 0; | |
4288 | -} | |
4289 | - | |
4290 | -_ACEOF | |
4291 | -if ac_fn_c_try_link "$LINENO"; then : | |
4292 | - ax_cv_c_openmp=$ax_openmp_flag; break | |
4293 | -fi | |
4294 | -rm -f core conftest.err conftest.$ac_objext \ | |
4295 | - conftest$ac_exeext conftest.$ac_ext | |
4296 | -done | |
4297 | -CFLAGS=$saveCFLAGS | |
4298 | - | |
4299 | -fi | |
4300 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5 | |
4301 | -$as_echo "$ax_cv_c_openmp" >&6; } | |
4302 | -if test "x$ax_cv_c_openmp" = "xunknown"; then | |
4303 | - | |
4304 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMP requested, but couldn't use OpenMP." >&5 | |
4305 | -$as_echo "$as_me: WARNING: OpenMP requested, but couldn't use OpenMP." >&2;} | |
4306 | - | |
4307 | -else | |
4308 | - if test "x$ax_cv_c_openmp" != "xnone"; then | |
4309 | - OPENMP_CFLAGS=$ax_cv_c_openmp | |
4310 | - fi | |
4311 | - CXXFLAGS="$CXXFLAGS $OPENMP_CFLAGS" | |
4312 | -fi | |
4313 | - | |
4314 | -fi | |
4315 | -echo "" | |
4316 | -echo " Check OpenGL" | |
4317 | -echo "" | |
4318 | -# Make sure we can run config.sub. | |
4319 | -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4320 | - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4321 | - | |
4322 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4323 | -$as_echo_n "checking build system type... " >&6; } | |
4324 | -if ${ac_cv_build+:} false; then : | |
4325 | - $as_echo_n "(cached) " >&6 | |
4326 | -else | |
4327 | - ac_build_alias=$build_alias | |
4328 | -test "x$ac_build_alias" = x && | |
4329 | - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4330 | -test "x$ac_build_alias" = x && | |
4331 | - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4332 | -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4333 | - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4334 | - | |
4335 | -fi | |
4336 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4337 | -$as_echo "$ac_cv_build" >&6; } | |
4338 | -case $ac_cv_build in | |
4339 | -*-*-*) ;; | |
4340 | -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4341 | -esac | |
4342 | -build=$ac_cv_build | |
4343 | -ac_save_IFS=$IFS; IFS='-' | |
4344 | -set x $ac_cv_build | |
4345 | -shift | |
4346 | -build_cpu=$1 | |
4347 | -build_vendor=$2 | |
4348 | -shift; shift | |
4349 | -# Remember, the first character of IFS is used to create $*, | |
4350 | -# except with old shells: | |
4351 | -build_os=$* | |
4352 | -IFS=$ac_save_IFS | |
4353 | -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4354 | - | |
4355 | - | |
4356 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4357 | -$as_echo_n "checking host system type... " >&6; } | |
4358 | -if ${ac_cv_host+:} false; then : | |
4359 | - $as_echo_n "(cached) " >&6 | |
4360 | -else | |
4361 | - if test "x$host_alias" = x; then | |
4362 | - ac_cv_host=$ac_cv_build | |
4363 | -else | |
4364 | - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4365 | - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4366 | -fi | |
4367 | - | |
4368 | -fi | |
4369 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4370 | -$as_echo "$ac_cv_host" >&6; } | |
4371 | -case $ac_cv_host in | |
4372 | -*-*-*) ;; | |
4373 | -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4374 | -esac | |
4375 | -host=$ac_cv_host | |
4376 | -ac_save_IFS=$IFS; IFS='-' | |
4377 | -set x $ac_cv_host | |
4378 | -shift | |
4379 | -host_cpu=$1 | |
4380 | -host_vendor=$2 | |
4381 | -shift; shift | |
4382 | -# Remember, the first character of IFS is used to create $*, | |
4383 | -# except with old shells: | |
4384 | -host_os=$* | |
4385 | -IFS=$ac_save_IFS | |
4386 | -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4387 | - | |
4388 | - | |
4389 | - | |
4390 | - | |
4391 | - | |
4392 | - | |
4393 | - | |
4394 | - | |
4395 | - | |
4396 | -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4397 | - if test -n "$ac_tool_prefix"; then | |
4398 | - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4399 | -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4400 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4401 | -$as_echo_n "checking for $ac_word... " >&6; } | |
4402 | -if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
4403 | - $as_echo_n "(cached) " >&6 | |
4404 | -else | |
4405 | - case $PKG_CONFIG in | |
4406 | - [\\/]* | ?:[\\/]*) | |
4407 | - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4408 | - ;; | |
4409 | - *) | |
4410 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4411 | -for as_dir in $PATH | |
4412 | -do | |
4413 | - IFS=$as_save_IFS | |
4414 | - test -z "$as_dir" && as_dir=. | |
4415 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
4416 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4417 | - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4418 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4419 | - break 2 | |
4420 | - fi | |
4421 | -done | |
4422 | - done | |
4423 | -IFS=$as_save_IFS | |
4424 | - | |
4425 | - ;; | |
4426 | -esac | |
4427 | -fi | |
4428 | -PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4429 | -if test -n "$PKG_CONFIG"; then | |
4430 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4431 | -$as_echo "$PKG_CONFIG" >&6; } | |
4432 | -else | |
4433 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4434 | -$as_echo "no" >&6; } | |
4435 | -fi | |
4436 | - | |
4437 | - | |
4438 | -fi | |
4439 | -if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4440 | - ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4441 | - # Extract the first word of "pkg-config", so it can be a program name with args. | |
4442 | -set dummy pkg-config; ac_word=$2 | |
4443 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4444 | -$as_echo_n "checking for $ac_word... " >&6; } | |
4445 | -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
4446 | - $as_echo_n "(cached) " >&6 | |
4447 | -else | |
4448 | - case $ac_pt_PKG_CONFIG in | |
4449 | - [\\/]* | ?:[\\/]*) | |
4450 | - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4451 | - ;; | |
4452 | - *) | |
4453 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4454 | -for as_dir in $PATH | |
4455 | -do | |
4456 | - IFS=$as_save_IFS | |
4457 | - test -z "$as_dir" && as_dir=. | |
4458 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
4459 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4460 | - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4461 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4462 | - break 2 | |
4463 | - fi | |
4464 | -done | |
4465 | - done | |
4466 | -IFS=$as_save_IFS | |
4467 | - | |
4468 | - ;; | |
4469 | -esac | |
4470 | -fi | |
4471 | -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4472 | -if test -n "$ac_pt_PKG_CONFIG"; then | |
4473 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
4474 | -$as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
4475 | -else | |
4476 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4477 | -$as_echo "no" >&6; } | |
4478 | -fi | |
4479 | - | |
4480 | - if test "x$ac_pt_PKG_CONFIG" = x; then | |
4481 | - PKG_CONFIG="" | |
4482 | - else | |
4483 | - case $cross_compiling:$ac_tool_warned in | |
4484 | -yes:) | |
4485 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4486 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4487 | -ac_tool_warned=yes ;; | |
4488 | -esac | |
4489 | - PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4490 | - fi | |
4491 | -else | |
4492 | - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4493 | -fi | |
4494 | - | |
4495 | -fi | |
4496 | -if test -n "$PKG_CONFIG"; then | |
4497 | - _pkg_min_version=0.9.0 | |
4498 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4499 | -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
4500 | - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4501 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4502 | -$as_echo "yes" >&6; } | |
4503 | - else | |
4504 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4505 | -$as_echo "no" >&6; } | |
4506 | - PKG_CONFIG="" | |
4507 | - fi | |
4508 | -fi | |
4509 | - | |
4510 | - | |
4511 | -# Check whether --with-xquartz-gl was given. | |
4512 | -if test "${with_xquartz_gl+set}" = set; then : | |
4513 | - withval=$with_xquartz_gl; if test "X$with_xquartz_gl"="Xyes"; then : | |
4514 | - with_xquartz_gl="/opt/X11" | |
4515 | -fi | |
4516 | -else | |
4517 | - with_xquartz_gl=no | |
4518 | -fi | |
4519 | - | |
4520 | - if test "X$with_xquartz_gl" != "Xno"; then : | |
4521 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking OSX X11 path" >&5 | |
4522 | -$as_echo_n "checking OSX X11 path... " >&6; } | |
4523 | - if test -e "$with_xquartz_gl"; then : | |
4524 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_xquartz_gl\"" >&5 | |
4525 | -$as_echo "\"$with_xquartz_gl\"" >&6; } | |
4526 | - CFLAGS="-I$with_xquartz_gl/include $CFLAGS" | |
4527 | - LIBS="-L$with_xquartz_gl/lib $LIBS" | |
4528 | - | |
4529 | -else | |
4530 | - with_xquartz_gl=no | |
4531 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4532 | -$as_echo "no" >&6; } | |
4533 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-xquartz-gl was given, but test for X11 failed. Fallback to system framework" >&5 | |
4534 | -$as_echo "$as_me: WARNING: --with-xquartz-gl was given, but test for X11 failed. Fallback to system framework" >&2;} | |
4535 | - | |
4536 | -fi | |
4537 | - | |
4538 | -fi | |
4539 | - | |
4540 | -ac_ext=c | |
4541 | -ac_cpp='$CPP $CPPFLAGS' | |
4542 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4543 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4544 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4545 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4546 | -$as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4547 | -# On Suns, sometimes $CPP names a directory. | |
4548 | -if test -n "$CPP" && test -d "$CPP"; then | |
4549 | - CPP= | |
4550 | -fi | |
4551 | -if test -z "$CPP"; then | |
4552 | - if ${ac_cv_prog_CPP+:} false; then : | |
4553 | - $as_echo_n "(cached) " >&6 | |
4554 | -else | |
4555 | - # Double quotes because CPP needs to be expanded | |
4556 | - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4557 | - do | |
4558 | - ac_preproc_ok=false | |
4559 | -for ac_c_preproc_warn_flag in '' yes | |
4560 | -do | |
4561 | - # Use a header file that comes with gcc, so configuring glibc | |
4562 | - # with a fresh cross-compiler works. | |
4563 | - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4564 | - # <limits.h> exists even on freestanding compilers. | |
4565 | - # On the NeXT, cc -E runs the code through the compiler's parser, | |
4566 | - # not just through cpp. "Syntax error" is here to catch this case. | |
4567 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4568 | -/* end confdefs.h. */ | |
4569 | -#ifdef __STDC__ | |
4570 | -# include <limits.h> | |
4571 | -#else | |
4572 | -# include <assert.h> | |
4573 | -#endif | |
4574 | - Syntax error | |
4575 | -_ACEOF | |
4576 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
4577 | - | |
4578 | -else | |
4579 | - # Broken: fails on valid input. | |
4580 | -continue | |
4581 | -fi | |
4582 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
4583 | - | |
4584 | - # OK, works on sane cases. Now check whether nonexistent headers | |
4585 | - # can be detected and how. | |
4586 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4587 | -/* end confdefs.h. */ | |
4588 | -#include <ac_nonexistent.h> | |
4589 | -_ACEOF | |
4590 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
4591 | - # Broken: success on invalid input. | |
4592 | -continue | |
4593 | -else | |
4594 | - # Passes both tests. | |
4595 | -ac_preproc_ok=: | |
4596 | -break | |
4597 | -fi | |
4598 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
4599 | - | |
4600 | -done | |
4601 | -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4602 | -rm -f conftest.i conftest.err conftest.$ac_ext | |
4603 | -if $ac_preproc_ok; then : | |
4604 | - break | |
4605 | -fi | |
4606 | - | |
4607 | - done | |
4608 | - ac_cv_prog_CPP=$CPP | |
4609 | - | |
4610 | -fi | |
4611 | - CPP=$ac_cv_prog_CPP | |
4612 | -else | |
4613 | - ac_cv_prog_CPP=$CPP | |
4614 | -fi | |
4615 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4616 | -$as_echo "$CPP" >&6; } | |
4617 | -ac_preproc_ok=false | |
4618 | -for ac_c_preproc_warn_flag in '' yes | |
4619 | -do | |
4620 | - # Use a header file that comes with gcc, so configuring glibc | |
4621 | - # with a fresh cross-compiler works. | |
4622 | - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4623 | - # <limits.h> exists even on freestanding compilers. | |
4624 | - # On the NeXT, cc -E runs the code through the compiler's parser, | |
4625 | - # not just through cpp. "Syntax error" is here to catch this case. | |
4626 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4627 | -/* end confdefs.h. */ | |
4628 | -#ifdef __STDC__ | |
4629 | -# include <limits.h> | |
4630 | -#else | |
4631 | -# include <assert.h> | |
4632 | -#endif | |
4633 | - Syntax error | |
4634 | -_ACEOF | |
4635 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
4636 | - | |
4637 | -else | |
4638 | - # Broken: fails on valid input. | |
4639 | -continue | |
4640 | -fi | |
4641 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
4642 | - | |
4643 | - # OK, works on sane cases. Now check whether nonexistent headers | |
4644 | - # can be detected and how. | |
4645 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4646 | -/* end confdefs.h. */ | |
4647 | -#include <ac_nonexistent.h> | |
4648 | -_ACEOF | |
4649 | -if ac_fn_c_try_cpp "$LINENO"; then : | |
4650 | - # Broken: success on invalid input. | |
4651 | -continue | |
4652 | -else | |
4653 | - # Passes both tests. | |
4654 | -ac_preproc_ok=: | |
4655 | -break | |
4656 | -fi | |
4657 | -rm -f conftest.err conftest.i conftest.$ac_ext | |
4658 | - | |
4659 | -done | |
4660 | -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4661 | -rm -f conftest.i conftest.err conftest.$ac_ext | |
4662 | -if $ac_preproc_ok; then : | |
4663 | - | |
4664 | -else | |
4665 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4666 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4667 | -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4668 | -See \`config.log' for more details" "$LINENO" 5; } | |
4669 | -fi | |
4670 | - | |
4671 | -ac_ext=c | |
4672 | -ac_cpp='$CPP $CPPFLAGS' | |
4673 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4674 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4675 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4676 | - | |
4677 | - | |
4678 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4679 | -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4680 | -if ${ac_cv_path_GREP+:} false; then : | |
4681 | - $as_echo_n "(cached) " >&6 | |
4682 | -else | |
4683 | - if test -z "$GREP"; then | |
4684 | - ac_path_GREP_found=false | |
4685 | - # Loop through the user's path and test for each of PROGNAME-LIST | |
4686 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4687 | -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4688 | -do | |
4689 | - IFS=$as_save_IFS | |
4690 | - test -z "$as_dir" && as_dir=. | |
4691 | - for ac_prog in grep ggrep; do | |
4692 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
4693 | - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4694 | - as_fn_executable_p "$ac_path_GREP" || continue | |
4695 | -# Check for GNU ac_path_GREP and select it if it is found. | |
4696 | - # Check for GNU $ac_path_GREP | |
4697 | -case `"$ac_path_GREP" --version 2>&1` in | |
4698 | -*GNU*) | |
4699 | - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4700 | -*) | |
4701 | - ac_count=0 | |
4702 | - $as_echo_n 0123456789 >"conftest.in" | |
4703 | - while : | |
4704 | - do | |
4705 | - cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4706 | - mv "conftest.tmp" "conftest.in" | |
4707 | - cp "conftest.in" "conftest.nl" | |
4708 | - $as_echo 'GREP' >> "conftest.nl" | |
4709 | - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4710 | - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4711 | - as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4712 | - if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4713 | - # Best one so far, save it but keep looking for a better one | |
4714 | - ac_cv_path_GREP="$ac_path_GREP" | |
4715 | - ac_path_GREP_max=$ac_count | |
4716 | - fi | |
4717 | - # 10*(2^10) chars as input seems more than enough | |
4718 | - test $ac_count -gt 10 && break | |
4719 | - done | |
4720 | - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4721 | -esac | |
4722 | - | |
4723 | - $ac_path_GREP_found && break 3 | |
4724 | - done | |
4725 | - done | |
4726 | - done | |
4727 | -IFS=$as_save_IFS | |
4728 | - if test -z "$ac_cv_path_GREP"; then | |
4729 | - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4730 | - fi | |
4731 | -else | |
4732 | - ac_cv_path_GREP=$GREP | |
4733 | -fi | |
4734 | - | |
4735 | -fi | |
4736 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4737 | -$as_echo "$ac_cv_path_GREP" >&6; } | |
4738 | - GREP="$ac_cv_path_GREP" | |
4739 | - | |
4740 | - | |
4741 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4742 | -$as_echo_n "checking for egrep... " >&6; } | |
4743 | -if ${ac_cv_path_EGREP+:} false; then : | |
4744 | - $as_echo_n "(cached) " >&6 | |
4745 | -else | |
4746 | - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4747 | - then ac_cv_path_EGREP="$GREP -E" | |
4748 | - else | |
4749 | - if test -z "$EGREP"; then | |
4750 | - ac_path_EGREP_found=false | |
4751 | - # Loop through the user's path and test for each of PROGNAME-LIST | |
4752 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4753 | -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4754 | -do | |
4755 | - IFS=$as_save_IFS | |
4756 | - test -z "$as_dir" && as_dir=. | |
4757 | - for ac_prog in egrep; do | |
4758 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
4759 | - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4760 | - as_fn_executable_p "$ac_path_EGREP" || continue | |
4761 | -# Check for GNU ac_path_EGREP and select it if it is found. | |
4762 | - # Check for GNU $ac_path_EGREP | |
4763 | -case `"$ac_path_EGREP" --version 2>&1` in | |
4764 | -*GNU*) | |
4765 | - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4766 | -*) | |
4767 | - ac_count=0 | |
4768 | - $as_echo_n 0123456789 >"conftest.in" | |
4769 | - while : | |
4770 | - do | |
4771 | - cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4772 | - mv "conftest.tmp" "conftest.in" | |
4773 | - cp "conftest.in" "conftest.nl" | |
4774 | - $as_echo 'EGREP' >> "conftest.nl" | |
4775 | - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4776 | - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4777 | - as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4778 | - if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4779 | - # Best one so far, save it but keep looking for a better one | |
4780 | - ac_cv_path_EGREP="$ac_path_EGREP" | |
4781 | - ac_path_EGREP_max=$ac_count | |
4782 | - fi | |
4783 | - # 10*(2^10) chars as input seems more than enough | |
4784 | - test $ac_count -gt 10 && break | |
4785 | - done | |
4786 | - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4787 | -esac | |
4788 | - | |
4789 | - $ac_path_EGREP_found && break 3 | |
4790 | - done | |
4791 | - done | |
4792 | - done | |
4793 | -IFS=$as_save_IFS | |
4794 | - if test -z "$ac_cv_path_EGREP"; then | |
4795 | - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4796 | - fi | |
4797 | -else | |
4798 | - ac_cv_path_EGREP=$EGREP | |
4799 | -fi | |
4800 | - | |
4801 | - fi | |
4802 | -fi | |
4803 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4804 | -$as_echo "$ac_cv_path_EGREP" >&6; } | |
4805 | - EGREP="$ac_cv_path_EGREP" | |
4806 | - | |
4807 | - | |
4808 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4809 | -$as_echo_n "checking for ANSI C header files... " >&6; } | |
4810 | -if ${ac_cv_header_stdc+:} false; then : | |
4811 | - $as_echo_n "(cached) " >&6 | |
4812 | -else | |
4813 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4814 | -/* end confdefs.h. */ | |
4815 | -#include <stdlib.h> | |
4816 | -#include <stdarg.h> | |
4817 | -#include <string.h> | |
4818 | -#include <float.h> | |
4819 | - | |
4820 | -int | |
4821 | -main () | |
4822 | -{ | |
4823 | - | |
4824 | - ; | |
4825 | - return 0; | |
4826 | -} | |
4827 | -_ACEOF | |
4828 | -if ac_fn_c_try_compile "$LINENO"; then : | |
4829 | - ac_cv_header_stdc=yes | |
4830 | -else | |
4831 | - ac_cv_header_stdc=no | |
4832 | -fi | |
4833 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4834 | - | |
4835 | -if test $ac_cv_header_stdc = yes; then | |
4836 | - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4837 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4838 | -/* end confdefs.h. */ | |
4839 | -#include <string.h> | |
4840 | - | |
4841 | -_ACEOF | |
4842 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4843 | - $EGREP "memchr" >/dev/null 2>&1; then : | |
4844 | - | |
4845 | -else | |
4846 | - ac_cv_header_stdc=no | |
4847 | -fi | |
4848 | -rm -f conftest* | |
4849 | - | |
4850 | -fi | |
4851 | - | |
4852 | -if test $ac_cv_header_stdc = yes; then | |
4853 | - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4854 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4855 | -/* end confdefs.h. */ | |
4856 | -#include <stdlib.h> | |
4857 | - | |
4858 | -_ACEOF | |
4859 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4860 | - $EGREP "free" >/dev/null 2>&1; then : | |
4861 | - | |
4862 | -else | |
4863 | - ac_cv_header_stdc=no | |
4864 | -fi | |
4865 | -rm -f conftest* | |
4866 | - | |
4867 | -fi | |
4868 | - | |
4869 | -if test $ac_cv_header_stdc = yes; then | |
4870 | - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4871 | - if test "$cross_compiling" = yes; then : | |
4872 | - : | |
4873 | -else | |
4874 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4875 | -/* end confdefs.h. */ | |
4876 | -#include <ctype.h> | |
4877 | -#include <stdlib.h> | |
4878 | -#if ((' ' & 0x0FF) == 0x020) | |
4879 | -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4880 | -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4881 | -#else | |
4882 | -# define ISLOWER(c) \ | |
4883 | - (('a' <= (c) && (c) <= 'i') \ | |
4884 | - || ('j' <= (c) && (c) <= 'r') \ | |
4885 | - || ('s' <= (c) && (c) <= 'z')) | |
4886 | -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4887 | -#endif | |
4888 | - | |
4889 | -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4890 | -int | |
4891 | -main () | |
4892 | -{ | |
4893 | - int i; | |
4894 | - for (i = 0; i < 256; i++) | |
4895 | - if (XOR (islower (i), ISLOWER (i)) | |
4896 | - || toupper (i) != TOUPPER (i)) | |
4897 | - return 2; | |
4898 | - return 0; | |
4899 | -} | |
4900 | -_ACEOF | |
4901 | -if ac_fn_c_try_run "$LINENO"; then : | |
4902 | - | |
4903 | -else | |
4904 | - ac_cv_header_stdc=no | |
4905 | -fi | |
4906 | -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4907 | - conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4908 | -fi | |
4909 | - | |
4910 | -fi | |
4911 | -fi | |
4912 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4913 | -$as_echo "$ac_cv_header_stdc" >&6; } | |
4914 | -if test $ac_cv_header_stdc = yes; then | |
4915 | - | |
4916 | -$as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4917 | - | |
4918 | -fi | |
4919 | - | |
4920 | -# On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4921 | -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4922 | - inttypes.h stdint.h unistd.h | |
4923 | -do : | |
4924 | - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4925 | -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4926 | -" | |
4927 | -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4928 | - cat >>confdefs.h <<_ACEOF | |
4929 | -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4930 | -_ACEOF | |
4931 | - | |
4932 | -fi | |
4933 | - | |
4934 | -done | |
4935 | - | |
4936 | - | |
4937 | - | |
4938 | - | |
4939 | - | |
4940 | - | |
4941 | - | |
4942 | - case ${host} in #( | |
4943 | - *-darwin*) : | |
4944 | - | |
4945 | - | |
4946 | - if test "x$with_xquartz_gl" != "xno"; then : | |
4947 | - GL_LIBS="${GL_LIBS:--lGL}" | |
4948 | -else | |
4949 | - GL_LIBS="${GL_LIBS:--framework OpenGL}" | |
4950 | -fi | |
4951 | - ;; #( | |
4952 | - *-cygwin*|*-mingw*) : | |
4953 | - | |
4954 | - | |
4955 | - if test -n "$GL_LIBS"; then : | |
4956 | - | |
4957 | -else | |
4958 | - | |
4959 | - ax_check_gl_manual_libs_generic_extra_libs="opengl32 GL gl" | |
4960 | - if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then : | |
4961 | - as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5 | |
4962 | -fi | |
4963 | - | |
4964 | - | |
4965 | - | |
4966 | - | |
4967 | -_ax_gl_saved_flag_cflags="$CFLAGS" | |
4968 | -CFLAGS="$GL_CFLAGS $CFLAGS" | |
4969 | - | |
4970 | - | |
4971 | - | |
4972 | - ac_ext=c | |
4973 | -ac_cpp='$CPP $CPPFLAGS' | |
4974 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4975 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4976 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4977 | - | |
4978 | - | |
4979 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5 | |
4980 | -$as_echo_n "checking for library containing glBegin... " >&6; } | |
4981 | -if ${ac_cv_search_glBegin+:} false; then : | |
4982 | - $as_echo_n "(cached) " >&6 | |
4983 | -else | |
4984 | - ac_func_search_save_LIBS=$LIBS | |
4985 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4986 | -/* end confdefs.h. */ | |
4987 | - | |
4988 | -/* Override any GCC internal prototype to avoid an error. | |
4989 | - Use char because int might match the return type of a GCC | |
4990 | - builtin and then its argument prototype would still apply. */ | |
4991 | -#ifdef __cplusplus | |
4992 | -extern "C" | |
4993 | -#endif | |
4994 | -char glBegin (); | |
4995 | -int | |
4996 | -main () | |
4997 | -{ | |
4998 | -return glBegin (); | |
4999 | - ; | |
5000 | - return 0; | |
5001 | -} | |
5002 | -_ACEOF | |
5003 | -for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do | |
5004 | - if test -z "$ac_lib"; then | |
5005 | - ac_res="none required" | |
5006 | - else | |
5007 | - ac_res=-l$ac_lib | |
5008 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5009 | - fi | |
5010 | - if ac_fn_c_try_link "$LINENO"; then : | |
5011 | - ac_cv_search_glBegin=$ac_res | |
5012 | -fi | |
5013 | -rm -f core conftest.err conftest.$ac_objext \ | |
5014 | - conftest$ac_exeext | |
5015 | - if ${ac_cv_search_glBegin+:} false; then : | |
5016 | - break | |
5017 | -fi | |
5018 | -done | |
5019 | -if ${ac_cv_search_glBegin+:} false; then : | |
5020 | - | |
5021 | -else | |
5022 | - ac_cv_search_glBegin=no | |
5023 | -fi | |
5024 | -rm conftest.$ac_ext | |
5025 | -LIBS=$ac_func_search_save_LIBS | |
5026 | -fi | |
5027 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5 | |
5028 | -$as_echo "$ac_cv_search_glBegin" >&6; } | |
5029 | -ac_res=$ac_cv_search_glBegin | |
5030 | -if test "$ac_res" != no; then : | |
5031 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5032 | - | |
5033 | - ax_check_gl_lib_opengl="yes" | |
5034 | - break | |
5035 | - | |
5036 | -fi | |
5037 | - | |
5038 | - if test "X$ax_check_gl_lib_opengl"="Xyes"; then : | |
5039 | - GL_LIBS="${ac_cv_search_glBegin}" | |
5040 | -fi | |
5041 | - | |
5042 | - | |
5043 | - | |
5044 | -CFLAGS="$_ax_gl_saved_flag_cflags" | |
5045 | - | |
5046 | - | |
5047 | - | |
5048 | - | |
5049 | - ac_ext=c | |
5050 | -ac_cpp='$CPP $CPPFLAGS' | |
5051 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5052 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5053 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5054 | - | |
5055 | - | |
5056 | - | |
5057 | -fi | |
5058 | - | |
5059 | - for ac_header in windows.h | |
5060 | -do : | |
5061 | - ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | |
5062 | -if test "x$ac_cv_header_windows_h" = xyes; then : | |
5063 | - cat >>confdefs.h <<_ACEOF | |
5064 | -#define HAVE_WINDOWS_H 1 | |
5065 | -_ACEOF | |
5066 | - | |
5067 | -fi | |
5068 | - | |
5069 | -done | |
5070 | - | |
5071 | - ;; #( | |
5072 | - *) : | |
5073 | - | |
5074 | - | |
5075 | - | |
5076 | - | |
5077 | - | |
5078 | - | |
5079 | - | |
5080 | -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5081 | - if test -n "$ac_tool_prefix"; then | |
5082 | - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5083 | -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5084 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5085 | -$as_echo_n "checking for $ac_word... " >&6; } | |
5086 | -if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5087 | - $as_echo_n "(cached) " >&6 | |
5088 | -else | |
5089 | - case $PKG_CONFIG in | |
5090 | - [\\/]* | ?:[\\/]*) | |
5091 | - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5092 | - ;; | |
5093 | - *) | |
5094 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5095 | -for as_dir in $PATH | |
5096 | -do | |
5097 | - IFS=$as_save_IFS | |
5098 | - test -z "$as_dir" && as_dir=. | |
5099 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
5100 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5101 | - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5102 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5103 | - break 2 | |
5104 | - fi | |
5105 | -done | |
5106 | - done | |
5107 | -IFS=$as_save_IFS | |
5108 | - | |
5109 | - ;; | |
5110 | -esac | |
5111 | -fi | |
5112 | -PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5113 | -if test -n "$PKG_CONFIG"; then | |
5114 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5115 | -$as_echo "$PKG_CONFIG" >&6; } | |
5116 | -else | |
5117 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5118 | -$as_echo "no" >&6; } | |
5119 | -fi | |
5120 | - | |
5121 | - | |
5122 | -fi | |
5123 | -if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5124 | - ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5125 | - # Extract the first word of "pkg-config", so it can be a program name with args. | |
5126 | -set dummy pkg-config; ac_word=$2 | |
5127 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5128 | -$as_echo_n "checking for $ac_word... " >&6; } | |
5129 | -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5130 | - $as_echo_n "(cached) " >&6 | |
5131 | -else | |
5132 | - case $ac_pt_PKG_CONFIG in | |
5133 | - [\\/]* | ?:[\\/]*) | |
5134 | - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5135 | - ;; | |
5136 | - *) | |
5137 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5138 | -for as_dir in $PATH | |
5139 | -do | |
5140 | - IFS=$as_save_IFS | |
5141 | - test -z "$as_dir" && as_dir=. | |
5142 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
5143 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5144 | - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5145 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5146 | - break 2 | |
5147 | - fi | |
5148 | -done | |
5149 | - done | |
5150 | -IFS=$as_save_IFS | |
5151 | - | |
5152 | - ;; | |
5153 | -esac | |
5154 | -fi | |
5155 | -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5156 | -if test -n "$ac_pt_PKG_CONFIG"; then | |
5157 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5158 | -$as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5159 | -else | |
5160 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5161 | -$as_echo "no" >&6; } | |
5162 | -fi | |
5163 | - | |
5164 | - if test "x$ac_pt_PKG_CONFIG" = x; then | |
5165 | - PKG_CONFIG="" | |
5166 | - else | |
5167 | - case $cross_compiling:$ac_tool_warned in | |
5168 | -yes:) | |
5169 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5170 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5171 | -ac_tool_warned=yes ;; | |
5172 | -esac | |
5173 | - PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5174 | - fi | |
5175 | -else | |
5176 | - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5177 | -fi | |
5178 | - | |
5179 | -fi | |
5180 | -if test -n "$PKG_CONFIG"; then | |
5181 | - _pkg_min_version=0.9.0 | |
5182 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5183 | -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5184 | - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5185 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5186 | -$as_echo "yes" >&6; } | |
5187 | - else | |
5188 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5189 | -$as_echo "no" >&6; } | |
5190 | - PKG_CONFIG="" | |
5191 | - fi | |
5192 | -fi | |
5193 | - | |
5194 | -pkg_failed=no | |
5195 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl" >&5 | |
5196 | -$as_echo_n "checking for gl... " >&6; } | |
5197 | - | |
5198 | -if test -n "$GL_CFLAGS"; then | |
5199 | - pkg_cv_GL_CFLAGS="$GL_CFLAGS" | |
5200 | - elif test -n "$PKG_CONFIG"; then | |
5201 | - if test -n "$PKG_CONFIG" && \ | |
5202 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 | |
5203 | - ($PKG_CONFIG --exists --print-errors "gl") 2>&5 | |
5204 | - ac_status=$? | |
5205 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5206 | - test $ac_status = 0; }; then | |
5207 | - pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` | |
5208 | - test "x$?" != "x0" && pkg_failed=yes | |
5209 | -else | |
5210 | - pkg_failed=yes | |
5211 | -fi | |
5212 | - else | |
5213 | - pkg_failed=untried | |
5214 | -fi | |
5215 | -if test -n "$GL_LIBS"; then | |
5216 | - pkg_cv_GL_LIBS="$GL_LIBS" | |
5217 | - elif test -n "$PKG_CONFIG"; then | |
5218 | - if test -n "$PKG_CONFIG" && \ | |
5219 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 | |
5220 | - ($PKG_CONFIG --exists --print-errors "gl") 2>&5 | |
5221 | - ac_status=$? | |
5222 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5223 | - test $ac_status = 0; }; then | |
5224 | - pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` | |
5225 | - test "x$?" != "x0" && pkg_failed=yes | |
5226 | -else | |
5227 | - pkg_failed=yes | |
5228 | -fi | |
5229 | - else | |
5230 | - pkg_failed=untried | |
5231 | -fi | |
5232 | - | |
5233 | - | |
5234 | - | |
5235 | -if test $pkg_failed = yes; then | |
5236 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5237 | -$as_echo "no" >&6; } | |
5238 | - | |
5239 | -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
5240 | - _pkg_short_errors_supported=yes | |
5241 | -else | |
5242 | - _pkg_short_errors_supported=no | |
5243 | -fi | |
5244 | - if test $_pkg_short_errors_supported = yes; then | |
5245 | - GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` | |
5246 | - else | |
5247 | - GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` | |
5248 | - fi | |
5249 | - # Put the nasty error message in config.log where it belongs | |
5250 | - echo "$GL_PKG_ERRORS" >&5 | |
5251 | - | |
5252 | - | |
5253 | - if test -n "$GL_LIBS"; then : | |
5254 | - | |
5255 | -else | |
5256 | - | |
5257 | - ax_check_gl_manual_libs_generic_extra_libs="GL gl" | |
5258 | - if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then : | |
5259 | - as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5 | |
5260 | -fi | |
5261 | - | |
5262 | - | |
5263 | - | |
5264 | - | |
5265 | -_ax_gl_saved_flag_cflags="$CFLAGS" | |
5266 | -CFLAGS="$GL_CFLAGS $CFLAGS" | |
5267 | - | |
5268 | - | |
5269 | - | |
5270 | - ac_ext=c | |
5271 | -ac_cpp='$CPP $CPPFLAGS' | |
5272 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5273 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5274 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5275 | - | |
5276 | - | |
5277 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5 | |
5278 | -$as_echo_n "checking for library containing glBegin... " >&6; } | |
5279 | -if ${ac_cv_search_glBegin+:} false; then : | |
5280 | - $as_echo_n "(cached) " >&6 | |
5281 | -else | |
5282 | - ac_func_search_save_LIBS=$LIBS | |
5283 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5284 | -/* end confdefs.h. */ | |
5285 | - | |
5286 | -/* Override any GCC internal prototype to avoid an error. | |
5287 | - Use char because int might match the return type of a GCC | |
5288 | - builtin and then its argument prototype would still apply. */ | |
5289 | -#ifdef __cplusplus | |
5290 | -extern "C" | |
5291 | -#endif | |
5292 | -char glBegin (); | |
5293 | -int | |
5294 | -main () | |
5295 | -{ | |
5296 | -return glBegin (); | |
5297 | - ; | |
5298 | - return 0; | |
5299 | -} | |
5300 | -_ACEOF | |
5301 | -for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do | |
5302 | - if test -z "$ac_lib"; then | |
5303 | - ac_res="none required" | |
5304 | - else | |
5305 | - ac_res=-l$ac_lib | |
5306 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5307 | - fi | |
5308 | - if ac_fn_c_try_link "$LINENO"; then : | |
5309 | - ac_cv_search_glBegin=$ac_res | |
5310 | -fi | |
5311 | -rm -f core conftest.err conftest.$ac_objext \ | |
5312 | - conftest$ac_exeext | |
5313 | - if ${ac_cv_search_glBegin+:} false; then : | |
5314 | - break | |
5315 | -fi | |
5316 | -done | |
5317 | -if ${ac_cv_search_glBegin+:} false; then : | |
5318 | - | |
5319 | -else | |
5320 | - ac_cv_search_glBegin=no | |
5321 | -fi | |
5322 | -rm conftest.$ac_ext | |
5323 | -LIBS=$ac_func_search_save_LIBS | |
5324 | -fi | |
5325 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5 | |
5326 | -$as_echo "$ac_cv_search_glBegin" >&6; } | |
5327 | -ac_res=$ac_cv_search_glBegin | |
5328 | -if test "$ac_res" != no; then : | |
5329 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5330 | - | |
5331 | - ax_check_gl_lib_opengl="yes" | |
5332 | - break | |
5333 | - | |
5334 | -fi | |
5335 | - | |
5336 | - if test "X$ax_check_gl_lib_opengl"="Xyes"; then : | |
5337 | - GL_LIBS="${ac_cv_search_glBegin}" | |
5338 | -fi | |
5339 | - | |
5340 | - | |
5341 | - | |
5342 | -CFLAGS="$_ax_gl_saved_flag_cflags" | |
5343 | - | |
5344 | - | |
5345 | - | |
5346 | - | |
5347 | - ac_ext=c | |
5348 | -ac_cpp='$CPP $CPPFLAGS' | |
5349 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5350 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5351 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5352 | - | |
5353 | - | |
5354 | - | |
5355 | -fi | |
5356 | - | |
5357 | -elif test $pkg_failed = untried; then | |
5358 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5359 | -$as_echo "no" >&6; } | |
5360 | - | |
5361 | - if test -n "$GL_LIBS"; then : | |
5362 | - | |
5363 | -else | |
5364 | - | |
5365 | - ax_check_gl_manual_libs_generic_extra_libs="GL gl" | |
5366 | - if test "X$ax_check_gl_manual_libs_generic_extra_libs" = "X"; then : | |
5367 | - as_fn_error $? "AX_CHECK_GL_MANUAL_LIBS_GENERIC argument must no be empty" "$LINENO" 5 | |
5368 | -fi | |
5369 | - | |
5370 | - | |
5371 | - | |
5372 | - | |
5373 | -_ax_gl_saved_flag_cflags="$CFLAGS" | |
5374 | -CFLAGS="$GL_CFLAGS $CFLAGS" | |
5375 | - | |
5376 | - | |
5377 | - | |
5378 | - ac_ext=c | |
5379 | -ac_cpp='$CPP $CPPFLAGS' | |
5380 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5381 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5382 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5383 | - | |
5384 | - | |
5385 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5 | |
5386 | -$as_echo_n "checking for library containing glBegin... " >&6; } | |
5387 | -if ${ac_cv_search_glBegin+:} false; then : | |
5388 | - $as_echo_n "(cached) " >&6 | |
5389 | -else | |
5390 | - ac_func_search_save_LIBS=$LIBS | |
5391 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5392 | -/* end confdefs.h. */ | |
5393 | - | |
5394 | -/* Override any GCC internal prototype to avoid an error. | |
5395 | - Use char because int might match the return type of a GCC | |
5396 | - builtin and then its argument prototype would still apply. */ | |
5397 | -#ifdef __cplusplus | |
5398 | -extern "C" | |
5399 | -#endif | |
5400 | -char glBegin (); | |
5401 | -int | |
5402 | -main () | |
5403 | -{ | |
5404 | -return glBegin (); | |
5405 | - ; | |
5406 | - return 0; | |
5407 | -} | |
5408 | -_ACEOF | |
5409 | -for ac_lib in '' $ax_check_gl_manual_libs_generic_extra_libs; do | |
5410 | - if test -z "$ac_lib"; then | |
5411 | - ac_res="none required" | |
5412 | - else | |
5413 | - ac_res=-l$ac_lib | |
5414 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5415 | - fi | |
5416 | - if ac_fn_c_try_link "$LINENO"; then : | |
5417 | - ac_cv_search_glBegin=$ac_res | |
5418 | -fi | |
5419 | -rm -f core conftest.err conftest.$ac_objext \ | |
5420 | - conftest$ac_exeext | |
5421 | - if ${ac_cv_search_glBegin+:} false; then : | |
5422 | - break | |
5423 | -fi | |
5424 | -done | |
5425 | -if ${ac_cv_search_glBegin+:} false; then : | |
5426 | - | |
5427 | -else | |
5428 | - ac_cv_search_glBegin=no | |
5429 | -fi | |
5430 | -rm conftest.$ac_ext | |
5431 | -LIBS=$ac_func_search_save_LIBS | |
5432 | -fi | |
5433 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5 | |
5434 | -$as_echo "$ac_cv_search_glBegin" >&6; } | |
5435 | -ac_res=$ac_cv_search_glBegin | |
5436 | -if test "$ac_res" != no; then : | |
5437 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5438 | - | |
5439 | - ax_check_gl_lib_opengl="yes" | |
5440 | - break | |
5441 | - | |
5442 | -fi | |
5443 | - | |
5444 | - if test "X$ax_check_gl_lib_opengl"="Xyes"; then : | |
5445 | - GL_LIBS="${ac_cv_search_glBegin}" | |
5446 | -fi | |
5447 | - | |
5448 | - | |
5449 | - | |
5450 | -CFLAGS="$_ax_gl_saved_flag_cflags" | |
5451 | - | |
5452 | - | |
5453 | - | |
5454 | - | |
5455 | - ac_ext=c | |
5456 | -ac_cpp='$CPP $CPPFLAGS' | |
5457 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5458 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5459 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5460 | - | |
5461 | - | |
5462 | - | |
5463 | -fi | |
5464 | - | |
5465 | -else | |
5466 | - GL_CFLAGS=$pkg_cv_GL_CFLAGS | |
5467 | - GL_LIBS=$pkg_cv_GL_LIBS | |
5468 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5469 | -$as_echo "yes" >&6; } | |
5470 | - | |
5471 | -fi | |
5472 | - ;; | |
5473 | -esac | |
5474 | - | |
5475 | - | |
5476 | - | |
5477 | -_ax_gl_saved_flag_cflags="$CFLAGS" | |
5478 | -CFLAGS="$GL_CFLAGS $CFLAGS" | |
5479 | - | |
5480 | - | |
5481 | - | |
5482 | - ac_ext=c | |
5483 | -ac_cpp='$CPP $CPPFLAGS' | |
5484 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5485 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5486 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5487 | - | |
5488 | - | |
5489 | - for ac_header in GL/gl.h OpenGL/gl.h | |
5490 | -do : | |
5491 | - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5492 | -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5493 | -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5494 | - cat >>confdefs.h <<_ACEOF | |
5495 | -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5496 | -_ACEOF | |
5497 | - ax_check_gl_have_headers="yes";break | |
5498 | -fi | |
5499 | - | |
5500 | -done | |
5501 | - | |
5502 | - | |
5503 | - | |
5504 | - | |
5505 | -CFLAGS="$_ax_gl_saved_flag_cflags" | |
5506 | - | |
5507 | - | |
5508 | - | |
5509 | - | |
5510 | - ac_ext=c | |
5511 | -ac_cpp='$CPP $CPPFLAGS' | |
5512 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5513 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5514 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5515 | - | |
5516 | - | |
5517 | - | |
5518 | - if test "X$ax_check_gl_have_headers" = "Xyes"; then : | |
5519 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL program" >&5 | |
5520 | -$as_echo_n "checking for compiling a minimal OpenGL program... " >&6; } | |
5521 | -if ${ax_cv_check_gl_compile_opengl+:} false; then : | |
5522 | - $as_echo_n "(cached) " >&6 | |
5523 | -else | |
5524 | - | |
5525 | - | |
5526 | - | |
5527 | -_ax_gl_saved_flag_cflags="$CFLAGS" | |
5528 | -CFLAGS="$GL_CFLAGS $CFLAGS" | |
5529 | - | |
5530 | - | |
5531 | - | |
5532 | - ac_ext=c | |
5533 | -ac_cpp='$CPP $CPPFLAGS' | |
5534 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5535 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5536 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5537 | - | |
5538 | - | |
5539 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5540 | -/* end confdefs.h. */ | |
5541 | - | |
5542 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
5543 | -# include <windows.h> | |
5544 | -# endif | |
5545 | -# ifdef HAVE_GL_GL_H | |
5546 | -# include <GL/gl.h> | |
5547 | -# elif defined(HAVE_OPENGL_GL_H) | |
5548 | -# include <OpenGL/gl.h> | |
5549 | -# else | |
5550 | -# error no gl.h | |
5551 | -# endif | |
5552 | - | |
5553 | -int | |
5554 | -main () | |
5555 | -{ | |
5556 | -glBegin(0) | |
5557 | - ; | |
5558 | - return 0; | |
5559 | -} | |
5560 | -_ACEOF | |
5561 | -if ac_fn_c_try_compile "$LINENO"; then : | |
5562 | - ax_check_gl_compile_opengl="yes" | |
5563 | -else | |
5564 | - ax_check_gl_compile_opengl="no" | |
5565 | -fi | |
5566 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5567 | - | |
5568 | - | |
5569 | - | |
5570 | -CFLAGS="$_ax_gl_saved_flag_cflags" | |
5571 | - | |
5572 | - | |
5573 | - | |
5574 | - | |
5575 | - ac_ext=c | |
5576 | -ac_cpp='$CPP $CPPFLAGS' | |
5577 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5578 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5579 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5580 | - | |
5581 | - | |
5582 | - | |
5583 | - ax_cv_check_gl_compile_opengl="${ax_check_gl_compile_opengl}" | |
5584 | -fi | |
5585 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_compile_opengl" >&5 | |
5586 | -$as_echo "$ax_cv_check_gl_compile_opengl" >&6; } | |
5587 | - ax_check_gl_compile_opengl="${ax_cv_check_gl_compile_opengl}" | |
5588 | - | |
5589 | -else | |
5590 | - no_gl=yes | |
5591 | -fi | |
5592 | - if test "X$ax_check_gl_compile_opengl" = "Xyes"; then : | |
5593 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal OpenGL program" >&5 | |
5594 | -$as_echo_n "checking for linking a minimal OpenGL program... " >&6; } | |
5595 | -if ${ax_cv_check_gl_link_opengl+:} false; then : | |
5596 | - $as_echo_n "(cached) " >&6 | |
5597 | -else | |
5598 | - | |
5599 | - | |
5600 | - | |
5601 | -_ax_gl_saved_flag_cflags="$CFLAGS" | |
5602 | -CFLAGS="$GL_CFLAGS $CFLAGS" | |
5603 | - | |
5604 | - | |
5605 | -_ax_gl_saved_flag_libs="$LIBS" | |
5606 | -LIBS="$GL_LIBS $LIBS" | |
5607 | - | |
5608 | - | |
5609 | -_ax_gl_saved_flag_ldflags="$LDFLAGS" | |
5610 | -LDFLAGS="$GL_LDFLAGS $LDFLAGS" | |
5611 | - | |
5612 | - | |
5613 | - | |
5614 | - | |
5615 | - | |
5616 | - ac_ext=c | |
5617 | -ac_cpp='$CPP $CPPFLAGS' | |
5618 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5619 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5620 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5621 | - | |
5622 | - | |
5623 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5624 | -/* end confdefs.h. */ | |
5625 | - | |
5626 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
5627 | -# include <windows.h> | |
5628 | -# endif | |
5629 | -# ifdef HAVE_GL_GL_H | |
5630 | -# include <GL/gl.h> | |
5631 | -# elif defined(HAVE_OPENGL_GL_H) | |
5632 | -# include <OpenGL/gl.h> | |
5633 | -# else | |
5634 | -# error no gl.h | |
5635 | -# endif | |
5636 | - | |
5637 | -int | |
5638 | -main () | |
5639 | -{ | |
5640 | -glBegin(0) | |
5641 | - ; | |
5642 | - return 0; | |
5643 | -} | |
5644 | -_ACEOF | |
5645 | -if ac_fn_c_try_link "$LINENO"; then : | |
5646 | - ax_check_gl_link_opengl="yes" | |
5647 | -else | |
5648 | - ax_check_gl_link_opengl="no" | |
5649 | -fi | |
5650 | -rm -f core conftest.err conftest.$ac_objext \ | |
5651 | - conftest$ac_exeext conftest.$ac_ext | |
5652 | - | |
5653 | - | |
5654 | - | |
5655 | -CFLAGS="$_ax_gl_saved_flag_cflags" | |
5656 | - | |
5657 | - | |
5658 | -LIBS="$_ax_gl_saved_flag_libs" | |
5659 | - | |
5660 | - | |
5661 | -LDFLAGS="$_ax_gl_saved_flag_ldflags" | |
5662 | - | |
5663 | - | |
5664 | - | |
5665 | - | |
5666 | - | |
5667 | - | |
5668 | - ac_ext=c | |
5669 | -ac_cpp='$CPP $CPPFLAGS' | |
5670 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5671 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5672 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5673 | - | |
5674 | - | |
5675 | - | |
5676 | - ax_cv_check_gl_link_opengl="${ax_check_gl_link_opengl}" | |
5677 | -fi | |
5678 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_link_opengl" >&5 | |
5679 | -$as_echo "$ax_cv_check_gl_link_opengl" >&6; } | |
5680 | - ax_check_gl_link_opengl="${ax_cv_check_gl_link_opengl}" | |
5681 | - | |
5682 | -else | |
5683 | - no_gl=yes | |
5684 | -fi | |
5685 | - if test "X$no_gl" = "X"; then : | |
5686 | - | |
5687 | -$as_echo "#define HAVE_GL 1" >>confdefs.h | |
5688 | - | |
5689 | - CFLAGS="$GL_CFLAGS $CFLAGS" | |
5690 | - LIBS="$GL_LIBS $LIBS" | |
5691 | - | |
5692 | -else | |
5693 | - as_fn_error $? "Could not find a valid OpenGL implementation" "$LINENO" 5 | |
5694 | - | |
5695 | -fi | |
5696 | - | |
5697 | - | |
5698 | - | |
5699 | - | |
5700 | - | |
5701 | - | |
5702 | - | |
5703 | - | |
5704 | - | |
5705 | - case ${host} in #( | |
5706 | - *-darwin*) : | |
5707 | - | |
5708 | - | |
5709 | - if test "x$with_xquartz_gl" != "xno"; then : | |
5710 | - GLU_LIBS="${GLU_LIBS:--lGLU}" | |
5711 | -else | |
5712 | - GLU_LIBS="${GLU_LIBS:--framework OpenGL}" | |
5713 | -fi | |
5714 | - ;; #( | |
5715 | - *-cygwin*) : | |
5716 | - | |
5717 | - | |
5718 | - ac_ext=c | |
5719 | -ac_cpp='$CPP $CPPFLAGS' | |
5720 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5721 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5722 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5723 | - | |
5724 | - | |
5725 | - | |
5726 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
5727 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
5728 | - | |
5729 | - | |
5730 | -_ax_glu_saved_flag_libs="$LIBS" | |
5731 | -LIBS="$GLU_LIBS $LIBS" | |
5732 | - | |
5733 | - | |
5734 | - | |
5735 | - | |
5736 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5 | |
5737 | -$as_echo_n "checking for library containing gluBeginCurve... " >&6; } | |
5738 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
5739 | - $as_echo_n "(cached) " >&6 | |
5740 | -else | |
5741 | - ac_func_search_save_LIBS=$LIBS | |
5742 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5743 | -/* end confdefs.h. */ | |
5744 | - | |
5745 | -/* Override any GCC internal prototype to avoid an error. | |
5746 | - Use char because int might match the return type of a GCC | |
5747 | - builtin and then its argument prototype would still apply. */ | |
5748 | -#ifdef __cplusplus | |
5749 | -extern "C" | |
5750 | -#endif | |
5751 | -char gluBeginCurve (); | |
5752 | -int | |
5753 | -main () | |
5754 | -{ | |
5755 | -return gluBeginCurve (); | |
5756 | - ; | |
5757 | - return 0; | |
5758 | -} | |
5759 | -_ACEOF | |
5760 | -for ac_lib in '' GLU glu MesaGLU glu32; do | |
5761 | - if test -z "$ac_lib"; then | |
5762 | - ac_res="none required" | |
5763 | - else | |
5764 | - ac_res=-l$ac_lib | |
5765 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5766 | - fi | |
5767 | - if ac_fn_c_try_link "$LINENO"; then : | |
5768 | - ac_cv_search_gluBeginCurve=$ac_res | |
5769 | -fi | |
5770 | -rm -f core conftest.err conftest.$ac_objext \ | |
5771 | - conftest$ac_exeext | |
5772 | - if ${ac_cv_search_gluBeginCurve+:} false; then : | |
5773 | - break | |
5774 | -fi | |
5775 | -done | |
5776 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
5777 | - | |
5778 | -else | |
5779 | - ac_cv_search_gluBeginCurve=no | |
5780 | -fi | |
5781 | -rm conftest.$ac_ext | |
5782 | -LIBS=$ac_func_search_save_LIBS | |
5783 | -fi | |
5784 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5 | |
5785 | -$as_echo "$ac_cv_search_gluBeginCurve" >&6; } | |
5786 | -ac_res=$ac_cv_search_gluBeginCurve | |
5787 | -if test "$ac_res" != no; then : | |
5788 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5789 | - GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}" | |
5790 | -fi | |
5791 | - | |
5792 | - | |
5793 | - | |
5794 | - | |
5795 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
5796 | - | |
5797 | - | |
5798 | -LIBS="$_ax_glu_saved_flag_libs" | |
5799 | - | |
5800 | - | |
5801 | - | |
5802 | - | |
5803 | - ac_ext=c | |
5804 | -ac_cpp='$CPP $CPPFLAGS' | |
5805 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5806 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5807 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5808 | - | |
5809 | - | |
5810 | - | |
5811 | - for ac_header in windows.h | |
5812 | -do : | |
5813 | - ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | |
5814 | -if test "x$ac_cv_header_windows_h" = xyes; then : | |
5815 | - cat >>confdefs.h <<_ACEOF | |
5816 | -#define HAVE_WINDOWS_H 1 | |
5817 | -_ACEOF | |
5818 | - | |
5819 | -fi | |
5820 | - | |
5821 | -done | |
5822 | - ;; #( | |
5823 | - # try first native | |
5824 | - *-mingw*) : | |
5825 | - | |
5826 | - | |
5827 | - ac_ext=c | |
5828 | -ac_cpp='$CPP $CPPFLAGS' | |
5829 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5830 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5831 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5832 | - | |
5833 | - | |
5834 | - | |
5835 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
5836 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
5837 | - | |
5838 | - | |
5839 | -_ax_glu_saved_flag_libs="$LIBS" | |
5840 | -LIBS="$GLU_LIBS $LIBS" | |
5841 | - | |
5842 | - | |
5843 | - | |
5844 | - | |
5845 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5 | |
5846 | -$as_echo_n "checking for library containing gluBeginCurve... " >&6; } | |
5847 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
5848 | - $as_echo_n "(cached) " >&6 | |
5849 | -else | |
5850 | - ac_func_search_save_LIBS=$LIBS | |
5851 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5852 | -/* end confdefs.h. */ | |
5853 | - | |
5854 | -/* Override any GCC internal prototype to avoid an error. | |
5855 | - Use char because int might match the return type of a GCC | |
5856 | - builtin and then its argument prototype would still apply. */ | |
5857 | -#ifdef __cplusplus | |
5858 | -extern "C" | |
5859 | -#endif | |
5860 | -char gluBeginCurve (); | |
5861 | -int | |
5862 | -main () | |
5863 | -{ | |
5864 | -return gluBeginCurve (); | |
5865 | - ; | |
5866 | - return 0; | |
5867 | -} | |
5868 | -_ACEOF | |
5869 | -for ac_lib in '' glu32 GLU glu MesaGLU; do | |
5870 | - if test -z "$ac_lib"; then | |
5871 | - ac_res="none required" | |
5872 | - else | |
5873 | - ac_res=-l$ac_lib | |
5874 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5875 | - fi | |
5876 | - if ac_fn_c_try_link "$LINENO"; then : | |
5877 | - ac_cv_search_gluBeginCurve=$ac_res | |
5878 | -fi | |
5879 | -rm -f core conftest.err conftest.$ac_objext \ | |
5880 | - conftest$ac_exeext | |
5881 | - if ${ac_cv_search_gluBeginCurve+:} false; then : | |
5882 | - break | |
5883 | -fi | |
5884 | -done | |
5885 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
5886 | - | |
5887 | -else | |
5888 | - ac_cv_search_gluBeginCurve=no | |
5889 | -fi | |
5890 | -rm conftest.$ac_ext | |
5891 | -LIBS=$ac_func_search_save_LIBS | |
5892 | -fi | |
5893 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5 | |
5894 | -$as_echo "$ac_cv_search_gluBeginCurve" >&6; } | |
5895 | -ac_res=$ac_cv_search_gluBeginCurve | |
5896 | -if test "$ac_res" != no; then : | |
5897 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5898 | - GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}" | |
5899 | -fi | |
5900 | - | |
5901 | - | |
5902 | - | |
5903 | - | |
5904 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
5905 | - | |
5906 | - | |
5907 | -LIBS="$_ax_glu_saved_flag_libs" | |
5908 | - | |
5909 | - | |
5910 | - | |
5911 | - | |
5912 | - ac_ext=c | |
5913 | -ac_cpp='$CPP $CPPFLAGS' | |
5914 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5915 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5916 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5917 | - | |
5918 | - | |
5919 | - | |
5920 | - for ac_header in windows.h | |
5921 | -do : | |
5922 | - ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | |
5923 | -if test "x$ac_cv_header_windows_h" = xyes; then : | |
5924 | - cat >>confdefs.h <<_ACEOF | |
5925 | -#define HAVE_WINDOWS_H 1 | |
5926 | -_ACEOF | |
5927 | - | |
5928 | -fi | |
5929 | - | |
5930 | -done | |
5931 | - ;; #( | |
5932 | - *) : | |
5933 | - | |
5934 | - | |
5935 | - | |
5936 | - | |
5937 | - | |
5938 | - | |
5939 | - | |
5940 | -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5941 | - if test -n "$ac_tool_prefix"; then | |
5942 | - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5943 | -set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5944 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5945 | -$as_echo_n "checking for $ac_word... " >&6; } | |
5946 | -if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5947 | - $as_echo_n "(cached) " >&6 | |
5948 | -else | |
5949 | - case $PKG_CONFIG in | |
5950 | - [\\/]* | ?:[\\/]*) | |
5951 | - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5952 | - ;; | |
5953 | - *) | |
5954 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5955 | -for as_dir in $PATH | |
5956 | -do | |
5957 | - IFS=$as_save_IFS | |
5958 | - test -z "$as_dir" && as_dir=. | |
5959 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
5960 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5961 | - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5962 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5963 | - break 2 | |
5964 | - fi | |
5965 | -done | |
5966 | - done | |
5967 | -IFS=$as_save_IFS | |
5968 | - | |
5969 | - ;; | |
5970 | -esac | |
5971 | -fi | |
5972 | -PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5973 | -if test -n "$PKG_CONFIG"; then | |
5974 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5975 | -$as_echo "$PKG_CONFIG" >&6; } | |
5976 | -else | |
5977 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5978 | -$as_echo "no" >&6; } | |
5979 | -fi | |
5980 | - | |
5981 | - | |
5982 | -fi | |
5983 | -if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5984 | - ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5985 | - # Extract the first word of "pkg-config", so it can be a program name with args. | |
5986 | -set dummy pkg-config; ac_word=$2 | |
5987 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5988 | -$as_echo_n "checking for $ac_word... " >&6; } | |
5989 | -if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5990 | - $as_echo_n "(cached) " >&6 | |
5991 | -else | |
5992 | - case $ac_pt_PKG_CONFIG in | |
5993 | - [\\/]* | ?:[\\/]*) | |
5994 | - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5995 | - ;; | |
5996 | - *) | |
5997 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5998 | -for as_dir in $PATH | |
5999 | -do | |
6000 | - IFS=$as_save_IFS | |
6001 | - test -z "$as_dir" && as_dir=. | |
6002 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
6003 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6004 | - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
6005 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6006 | - break 2 | |
6007 | - fi | |
6008 | -done | |
6009 | - done | |
6010 | -IFS=$as_save_IFS | |
6011 | - | |
6012 | - ;; | |
6013 | -esac | |
6014 | -fi | |
6015 | -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
6016 | -if test -n "$ac_pt_PKG_CONFIG"; then | |
6017 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
6018 | -$as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
6019 | -else | |
6020 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6021 | -$as_echo "no" >&6; } | |
6022 | -fi | |
6023 | - | |
6024 | - if test "x$ac_pt_PKG_CONFIG" = x; then | |
6025 | - PKG_CONFIG="" | |
6026 | - else | |
6027 | - case $cross_compiling:$ac_tool_warned in | |
6028 | -yes:) | |
6029 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6030 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6031 | -ac_tool_warned=yes ;; | |
6032 | -esac | |
6033 | - PKG_CONFIG=$ac_pt_PKG_CONFIG | |
6034 | - fi | |
6035 | -else | |
6036 | - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
6037 | -fi | |
6038 | - | |
6039 | -fi | |
6040 | -if test -n "$PKG_CONFIG"; then | |
6041 | - _pkg_min_version=0.9.0 | |
6042 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
6043 | -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
6044 | - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
6045 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6046 | -$as_echo "yes" >&6; } | |
6047 | - else | |
6048 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6049 | -$as_echo "no" >&6; } | |
6050 | - PKG_CONFIG="" | |
6051 | - fi | |
6052 | -fi | |
6053 | - | |
6054 | -pkg_failed=no | |
6055 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glu" >&5 | |
6056 | -$as_echo_n "checking for glu... " >&6; } | |
6057 | - | |
6058 | -if test -n "$GLU_CFLAGS"; then | |
6059 | - pkg_cv_GLU_CFLAGS="$GLU_CFLAGS" | |
6060 | - elif test -n "$PKG_CONFIG"; then | |
6061 | - if test -n "$PKG_CONFIG" && \ | |
6062 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5 | |
6063 | - ($PKG_CONFIG --exists --print-errors "glu") 2>&5 | |
6064 | - ac_status=$? | |
6065 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6066 | - test $ac_status = 0; }; then | |
6067 | - pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "glu" 2>/dev/null` | |
6068 | - test "x$?" != "x0" && pkg_failed=yes | |
6069 | -else | |
6070 | - pkg_failed=yes | |
6071 | -fi | |
6072 | - else | |
6073 | - pkg_failed=untried | |
6074 | -fi | |
6075 | -if test -n "$GLU_LIBS"; then | |
6076 | - pkg_cv_GLU_LIBS="$GLU_LIBS" | |
6077 | - elif test -n "$PKG_CONFIG"; then | |
6078 | - if test -n "$PKG_CONFIG" && \ | |
6079 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5 | |
6080 | - ($PKG_CONFIG --exists --print-errors "glu") 2>&5 | |
6081 | - ac_status=$? | |
6082 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6083 | - test $ac_status = 0; }; then | |
6084 | - pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "glu" 2>/dev/null` | |
6085 | - test "x$?" != "x0" && pkg_failed=yes | |
6086 | -else | |
6087 | - pkg_failed=yes | |
6088 | -fi | |
6089 | - else | |
6090 | - pkg_failed=untried | |
6091 | -fi | |
6092 | - | |
6093 | - | |
6094 | - | |
6095 | -if test $pkg_failed = yes; then | |
6096 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6097 | -$as_echo "no" >&6; } | |
6098 | - | |
6099 | -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
6100 | - _pkg_short_errors_supported=yes | |
6101 | -else | |
6102 | - _pkg_short_errors_supported=no | |
6103 | -fi | |
6104 | - if test $_pkg_short_errors_supported = yes; then | |
6105 | - GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glu" 2>&1` | |
6106 | - else | |
6107 | - GLU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glu" 2>&1` | |
6108 | - fi | |
6109 | - # Put the nasty error message in config.log where it belongs | |
6110 | - echo "$GLU_PKG_ERRORS" >&5 | |
6111 | - | |
6112 | - | |
6113 | - | |
6114 | - ac_ext=c | |
6115 | -ac_cpp='$CPP $CPPFLAGS' | |
6116 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6117 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6118 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6119 | - | |
6120 | - | |
6121 | - | |
6122 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6123 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6124 | - | |
6125 | - | |
6126 | -_ax_glu_saved_flag_libs="$LIBS" | |
6127 | -LIBS="$GLU_LIBS $LIBS" | |
6128 | - | |
6129 | - | |
6130 | - | |
6131 | - | |
6132 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5 | |
6133 | -$as_echo_n "checking for library containing gluBeginCurve... " >&6; } | |
6134 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
6135 | - $as_echo_n "(cached) " >&6 | |
6136 | -else | |
6137 | - ac_func_search_save_LIBS=$LIBS | |
6138 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6139 | -/* end confdefs.h. */ | |
6140 | - | |
6141 | -/* Override any GCC internal prototype to avoid an error. | |
6142 | - Use char because int might match the return type of a GCC | |
6143 | - builtin and then its argument prototype would still apply. */ | |
6144 | -#ifdef __cplusplus | |
6145 | -extern "C" | |
6146 | -#endif | |
6147 | -char gluBeginCurve (); | |
6148 | -int | |
6149 | -main () | |
6150 | -{ | |
6151 | -return gluBeginCurve (); | |
6152 | - ; | |
6153 | - return 0; | |
6154 | -} | |
6155 | -_ACEOF | |
6156 | -for ac_lib in '' GLU glu MesaGLU; do | |
6157 | - if test -z "$ac_lib"; then | |
6158 | - ac_res="none required" | |
6159 | - else | |
6160 | - ac_res=-l$ac_lib | |
6161 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6162 | - fi | |
6163 | - if ac_fn_c_try_link "$LINENO"; then : | |
6164 | - ac_cv_search_gluBeginCurve=$ac_res | |
6165 | -fi | |
6166 | -rm -f core conftest.err conftest.$ac_objext \ | |
6167 | - conftest$ac_exeext | |
6168 | - if ${ac_cv_search_gluBeginCurve+:} false; then : | |
6169 | - break | |
6170 | -fi | |
6171 | -done | |
6172 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
6173 | - | |
6174 | -else | |
6175 | - ac_cv_search_gluBeginCurve=no | |
6176 | -fi | |
6177 | -rm conftest.$ac_ext | |
6178 | -LIBS=$ac_func_search_save_LIBS | |
6179 | -fi | |
6180 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5 | |
6181 | -$as_echo "$ac_cv_search_gluBeginCurve" >&6; } | |
6182 | -ac_res=$ac_cv_search_gluBeginCurve | |
6183 | -if test "$ac_res" != no; then : | |
6184 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6185 | - GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}" | |
6186 | -fi | |
6187 | - | |
6188 | - | |
6189 | - | |
6190 | - | |
6191 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6192 | - | |
6193 | - | |
6194 | -LIBS="$_ax_glu_saved_flag_libs" | |
6195 | - | |
6196 | - | |
6197 | - | |
6198 | - | |
6199 | - ac_ext=c | |
6200 | -ac_cpp='$CPP $CPPFLAGS' | |
6201 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6202 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6203 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6204 | - | |
6205 | - | |
6206 | - | |
6207 | -elif test $pkg_failed = untried; then | |
6208 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6209 | -$as_echo "no" >&6; } | |
6210 | - | |
6211 | - | |
6212 | - ac_ext=c | |
6213 | -ac_cpp='$CPP $CPPFLAGS' | |
6214 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6215 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6216 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6217 | - | |
6218 | - | |
6219 | - | |
6220 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6221 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6222 | - | |
6223 | - | |
6224 | -_ax_glu_saved_flag_libs="$LIBS" | |
6225 | -LIBS="$GLU_LIBS $LIBS" | |
6226 | - | |
6227 | - | |
6228 | - | |
6229 | - | |
6230 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gluBeginCurve" >&5 | |
6231 | -$as_echo_n "checking for library containing gluBeginCurve... " >&6; } | |
6232 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
6233 | - $as_echo_n "(cached) " >&6 | |
6234 | -else | |
6235 | - ac_func_search_save_LIBS=$LIBS | |
6236 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6237 | -/* end confdefs.h. */ | |
6238 | - | |
6239 | -/* Override any GCC internal prototype to avoid an error. | |
6240 | - Use char because int might match the return type of a GCC | |
6241 | - builtin and then its argument prototype would still apply. */ | |
6242 | -#ifdef __cplusplus | |
6243 | -extern "C" | |
6244 | -#endif | |
6245 | -char gluBeginCurve (); | |
6246 | -int | |
6247 | -main () | |
6248 | -{ | |
6249 | -return gluBeginCurve (); | |
6250 | - ; | |
6251 | - return 0; | |
6252 | -} | |
6253 | -_ACEOF | |
6254 | -for ac_lib in '' GLU glu MesaGLU; do | |
6255 | - if test -z "$ac_lib"; then | |
6256 | - ac_res="none required" | |
6257 | - else | |
6258 | - ac_res=-l$ac_lib | |
6259 | - LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6260 | - fi | |
6261 | - if ac_fn_c_try_link "$LINENO"; then : | |
6262 | - ac_cv_search_gluBeginCurve=$ac_res | |
6263 | -fi | |
6264 | -rm -f core conftest.err conftest.$ac_objext \ | |
6265 | - conftest$ac_exeext | |
6266 | - if ${ac_cv_search_gluBeginCurve+:} false; then : | |
6267 | - break | |
6268 | -fi | |
6269 | -done | |
6270 | -if ${ac_cv_search_gluBeginCurve+:} false; then : | |
6271 | - | |
6272 | -else | |
6273 | - ac_cv_search_gluBeginCurve=no | |
6274 | -fi | |
6275 | -rm conftest.$ac_ext | |
6276 | -LIBS=$ac_func_search_save_LIBS | |
6277 | -fi | |
6278 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gluBeginCurve" >&5 | |
6279 | -$as_echo "$ac_cv_search_gluBeginCurve" >&6; } | |
6280 | -ac_res=$ac_cv_search_gluBeginCurve | |
6281 | -if test "$ac_res" != no; then : | |
6282 | - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6283 | - GLU_LIBS="${GLU_LIBS:-$ac_cv_search_gluBeginCurve}" | |
6284 | -fi | |
6285 | - | |
6286 | - | |
6287 | - | |
6288 | - | |
6289 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6290 | - | |
6291 | - | |
6292 | -LIBS="$_ax_glu_saved_flag_libs" | |
6293 | - | |
6294 | - | |
6295 | - | |
6296 | - | |
6297 | - ac_ext=c | |
6298 | -ac_cpp='$CPP $CPPFLAGS' | |
6299 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6300 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6301 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6302 | - | |
6303 | - | |
6304 | - | |
6305 | -else | |
6306 | - GLU_CFLAGS=$pkg_cv_GLU_CFLAGS | |
6307 | - GLU_LIBS=$pkg_cv_GLU_LIBS | |
6308 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6309 | -$as_echo "yes" >&6; } | |
6310 | - | |
6311 | -fi | |
6312 | - ;; | |
6313 | -esac | |
6314 | - | |
6315 | - case $host in #( | |
6316 | - *-darwin*) : | |
6317 | - if test "X$with_xquartz_gl" = "Xno"; then : | |
6318 | - | |
6319 | - | |
6320 | - ac_ext=c | |
6321 | -ac_cpp='$CPP $CPPFLAGS' | |
6322 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6323 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6324 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6325 | - | |
6326 | - | |
6327 | - | |
6328 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6329 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6330 | - | |
6331 | - | |
6332 | - | |
6333 | - for ac_header in OpenGL/glu.h | |
6334 | -do : | |
6335 | - ac_fn_c_check_header_compile "$LINENO" "OpenGL/glu.h" "ac_cv_header_OpenGL_glu_h" " | |
6336 | - $ac_includes_default | |
6337 | - | |
6338 | - # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
6339 | - # include <windows.h> | |
6340 | - # endif | |
6341 | - | |
6342 | - | |
6343 | -" | |
6344 | -if test "x$ac_cv_header_OpenGL_glu_h" = xyes; then : | |
6345 | - cat >>confdefs.h <<_ACEOF | |
6346 | -#define HAVE_OPENGL_GLU_H 1 | |
6347 | -_ACEOF | |
6348 | - ax_check_glu_have_headers="yes"; | |
6349 | -fi | |
6350 | - | |
6351 | -done | |
6352 | - | |
6353 | - | |
6354 | - | |
6355 | - | |
6356 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6357 | - | |
6358 | - | |
6359 | - | |
6360 | - ac_ext=c | |
6361 | -ac_cpp='$CPP $CPPFLAGS' | |
6362 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6363 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6364 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6365 | - | |
6366 | - | |
6367 | - | |
6368 | -else | |
6369 | - | |
6370 | - | |
6371 | - ac_ext=c | |
6372 | -ac_cpp='$CPP $CPPFLAGS' | |
6373 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6374 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6375 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6376 | - | |
6377 | - | |
6378 | - | |
6379 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6380 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6381 | - | |
6382 | - | |
6383 | - | |
6384 | - for ac_header in GL/glu.h | |
6385 | -do : | |
6386 | - ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" " | |
6387 | - $ac_includes_default | |
6388 | - | |
6389 | - # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
6390 | - # include <windows.h> | |
6391 | - # endif | |
6392 | - | |
6393 | - | |
6394 | -" | |
6395 | -if test "x$ac_cv_header_GL_glu_h" = xyes; then : | |
6396 | - cat >>confdefs.h <<_ACEOF | |
6397 | -#define HAVE_GL_GLU_H 1 | |
6398 | -_ACEOF | |
6399 | - ax_check_glu_have_headers="yes"; | |
6400 | -fi | |
6401 | - | |
6402 | -done | |
6403 | - | |
6404 | - | |
6405 | - | |
6406 | - | |
6407 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6408 | - | |
6409 | - | |
6410 | - | |
6411 | - ac_ext=c | |
6412 | -ac_cpp='$CPP $CPPFLAGS' | |
6413 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6414 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6415 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6416 | - | |
6417 | - | |
6418 | - | |
6419 | - | |
6420 | -fi ;; #( | |
6421 | - *) : | |
6422 | - | |
6423 | - | |
6424 | - ac_ext=c | |
6425 | -ac_cpp='$CPP $CPPFLAGS' | |
6426 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6427 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6428 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6429 | - | |
6430 | - | |
6431 | - | |
6432 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6433 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6434 | - | |
6435 | - | |
6436 | - | |
6437 | - for ac_header in GL/glu.h | |
6438 | -do : | |
6439 | - ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" " | |
6440 | - $ac_includes_default | |
6441 | - | |
6442 | - # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
6443 | - # include <windows.h> | |
6444 | - # endif | |
6445 | - | |
6446 | - | |
6447 | -" | |
6448 | -if test "x$ac_cv_header_GL_glu_h" = xyes; then : | |
6449 | - cat >>confdefs.h <<_ACEOF | |
6450 | -#define HAVE_GL_GLU_H 1 | |
6451 | -_ACEOF | |
6452 | - ax_check_glu_have_headers="yes"; | |
6453 | -fi | |
6454 | - | |
6455 | -done | |
6456 | - | |
6457 | - | |
6458 | - | |
6459 | - | |
6460 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6461 | - | |
6462 | - | |
6463 | - | |
6464 | - ac_ext=c | |
6465 | -ac_cpp='$CPP $CPPFLAGS' | |
6466 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6467 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6468 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6469 | - | |
6470 | - | |
6471 | - ;; | |
6472 | -esac | |
6473 | - | |
6474 | - if test "X$ax_check_glu_have_headers" = "Xyes"; then : | |
6475 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling a minimal OpenGL Utility (GLU) program" >&5 | |
6476 | -$as_echo_n "checking for compiling a minimal OpenGL Utility (GLU) program... " >&6; } | |
6477 | -if ${ax_cv_check_glu_compile+:} false; then : | |
6478 | - $as_echo_n "(cached) " >&6 | |
6479 | -else | |
6480 | - | |
6481 | - ac_ext=c | |
6482 | -ac_cpp='$CPP $CPPFLAGS' | |
6483 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6484 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6485 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6486 | - | |
6487 | - | |
6488 | - | |
6489 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6490 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6491 | - | |
6492 | - | |
6493 | - | |
6494 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6495 | -/* end confdefs.h. */ | |
6496 | - | |
6497 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
6498 | -# include <windows.h> | |
6499 | -# endif | |
6500 | -# ifdef HAVE_GL_GLU_H | |
6501 | -# include <GL/glu.h> | |
6502 | -# elif defined(HAVE_OPENGL_GLU_H) | |
6503 | -# include <OpenGL/glu.h> | |
6504 | -# else | |
6505 | -# error no glu.h | |
6506 | -# endif | |
6507 | - | |
6508 | -int | |
6509 | -main () | |
6510 | -{ | |
6511 | -gluBeginCurve(0) | |
6512 | - ; | |
6513 | - return 0; | |
6514 | -} | |
6515 | -_ACEOF | |
6516 | -if ac_fn_c_try_compile "$LINENO"; then : | |
6517 | - ax_cv_check_glu_compile="yes" | |
6518 | -else | |
6519 | - ax_cv_check_glu_compile="no" | |
6520 | -fi | |
6521 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6522 | - | |
6523 | - | |
6524 | - | |
6525 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6526 | - | |
6527 | - | |
6528 | - | |
6529 | - ac_ext=c | |
6530 | -ac_cpp='$CPP $CPPFLAGS' | |
6531 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6532 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6533 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6534 | - | |
6535 | - | |
6536 | -fi | |
6537 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_compile" >&5 | |
6538 | -$as_echo "$ax_cv_check_glu_compile" >&6; } | |
6539 | - | |
6540 | -fi | |
6541 | - | |
6542 | - if test "X$ax_cv_check_glu_compile" = "Xyes"; then : | |
6543 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking a minimal GLU program" >&5 | |
6544 | -$as_echo_n "checking for linking a minimal GLU program... " >&6; } | |
6545 | -if ${ax_cv_check_glu_link+:} false; then : | |
6546 | - $as_echo_n "(cached) " >&6 | |
6547 | -else | |
6548 | - | |
6549 | - ac_ext=c | |
6550 | -ac_cpp='$CPP $CPPFLAGS' | |
6551 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6552 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6553 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6554 | - | |
6555 | - | |
6556 | - | |
6557 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6558 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6559 | - | |
6560 | - | |
6561 | -_ax_glu_saved_flag_libs="$LIBS" | |
6562 | -LIBS="$GLU_LIBS $LIBS" | |
6563 | - | |
6564 | - | |
6565 | - | |
6566 | - | |
6567 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6568 | -/* end confdefs.h. */ | |
6569 | - | |
6570 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
6571 | -# include <windows.h> | |
6572 | -# endif | |
6573 | -# ifdef HAVE_GL_GLU_H | |
6574 | -# include <GL/glu.h> | |
6575 | -# elif defined(HAVE_OPENGL_GLU_H) | |
6576 | -# include <OpenGL/glu.h> | |
6577 | -# else | |
6578 | -# error no glu.h | |
6579 | -# endif | |
6580 | - | |
6581 | -int | |
6582 | -main () | |
6583 | -{ | |
6584 | -gluBeginCurve(0) | |
6585 | - ; | |
6586 | - return 0; | |
6587 | -} | |
6588 | -_ACEOF | |
6589 | -if ac_fn_c_try_link "$LINENO"; then : | |
6590 | - ax_cv_check_glu_link="yes" | |
6591 | -else | |
6592 | - ax_cv_check_glu_link="no" | |
6593 | -fi | |
6594 | -rm -f core conftest.err conftest.$ac_objext \ | |
6595 | - conftest$ac_exeext conftest.$ac_ext | |
6596 | - | |
6597 | - | |
6598 | - | |
6599 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6600 | - | |
6601 | - | |
6602 | -LIBS="$_ax_glu_saved_flag_libs" | |
6603 | - | |
6604 | - | |
6605 | - | |
6606 | - | |
6607 | - ac_ext=c | |
6608 | -ac_cpp='$CPP $CPPFLAGS' | |
6609 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6610 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6611 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6612 | - | |
6613 | - | |
6614 | -fi | |
6615 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_link" >&5 | |
6616 | -$as_echo "$ax_cv_check_glu_link" >&6; } | |
6617 | - | |
6618 | -fi | |
6619 | - | |
6620 | -# | |
6621 | -# Some versions of Mac OS X include a broken interpretation of the GLU | |
6622 | -# tesselation callback function signature. | |
6623 | - if test "X$ax_cv_check_glu_link" = "Xyes"; then : | |
6624 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GLU varargs tesselator is using non-standard form" >&5 | |
6625 | -$as_echo_n "checking if GLU varargs tesselator is using non-standard form... " >&6; } | |
6626 | -if ${ax_cv_varargs_glu_tesscb+:} false; then : | |
6627 | - $as_echo_n "(cached) " >&6 | |
6628 | -else | |
6629 | - | |
6630 | - ac_ext=cpp | |
6631 | -ac_cpp='$CXXCPP $CPPFLAGS' | |
6632 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6633 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6634 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6635 | - | |
6636 | - | |
6637 | - | |
6638 | -_ax_glu_saved_flag_cflags="$CFLAGS" | |
6639 | -CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6640 | - | |
6641 | - | |
6642 | - | |
6643 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6644 | -/* end confdefs.h. */ | |
6645 | - | |
6646 | -# if defined(HAVE_WINDOWS_H) && defined(_WIN32) | |
6647 | -# include <windows.h> | |
6648 | -# endif | |
6649 | -# ifdef HAVE_GL_GLU_H | |
6650 | -# include <GL/glu.h> | |
6651 | -# elif defined(HAVE_OPENGL_GLU_H) | |
6652 | -# include <OpenGL/glu.h> | |
6653 | -# else | |
6654 | -# error no glu.h | |
6655 | -# endif | |
6656 | - | |
6657 | -int | |
6658 | -main () | |
6659 | -{ | |
6660 | -GLvoid (*func)(...); gluTessCallback(0, 0, func) | |
6661 | - ; | |
6662 | - return 0; | |
6663 | -} | |
6664 | - | |
6665 | -_ACEOF | |
6666 | -if ac_fn_cxx_try_compile "$LINENO"; then : | |
6667 | - ax_cv_varargs_glu_tesscb="yes" | |
6668 | -else | |
6669 | - ax_cv_varargs_glu_tesscb="no" | |
6670 | -fi | |
6671 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6672 | - | |
6673 | - | |
6674 | - | |
6675 | -CFLAGS="$_ax_glu_saved_flag_cflags" | |
6676 | - | |
6677 | - | |
6678 | - | |
6679 | - ac_ext=c | |
6680 | -ac_cpp='$CPP $CPPFLAGS' | |
6681 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6682 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6683 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6684 | - | |
6685 | - | |
6686 | -fi | |
6687 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5 | |
6688 | -$as_echo "$ax_cv_varargs_glu_tesscb" >&6; } | |
6689 | - if test "X$ax_cv_varargs_glu_tesscb" = "yes"; then : | |
6690 | - | |
6691 | -$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h | |
6692 | - | |
6693 | -fi | |
6694 | - | |
6695 | -fi | |
6696 | - | |
6697 | - if test "X$ax_cv_check_glu_link" = "Xyes"; then : | |
6698 | - | |
6699 | -$as_echo "#define HAVE_GLU 1" >>confdefs.h | |
6700 | - | |
6701 | - CFLAGS="$GLU_CFLAGS $CFLAGS" | |
6702 | - LIBS="$GLU_LIBS $LIBS" | |
6703 | -else | |
6704 | - as_fn_error $? "Could not find a valid GLU implementation" "$LINENO" 5 | |
6705 | - | |
6706 | -fi | |
6707 | - | |
6708 | -CXXFLAGS="$CXXFLAGS $GL_CFLAGS $GLU_CFLAGS" | |
6709 | -LIBS="$LIBS $GLU_LIBS $GL_LIBS -lm" | |
6710 | -echo "" | |
6711 | -echo " Check wxWidgets" | |
6712 | -echo "" | |
6713 | - | |
6714 | - | |
6715 | -# Check whether --with-wxdir was given. | |
6716 | -if test "${with_wxdir+set}" = set; then : | |
6717 | - withval=$with_wxdir; wx_config_name="$withval/wx-config" | |
6718 | - wx_config_args="--inplace" | |
6719 | -fi | |
6720 | - | |
6721 | - | |
6722 | -# Check whether --with-wx-config was given. | |
6723 | -if test "${with_wx_config+set}" = set; then : | |
6724 | - withval=$with_wx_config; wx_config_name="$withval" | |
6725 | -fi | |
6726 | - | |
6727 | - | |
6728 | -# Check whether --with-wx-prefix was given. | |
6729 | -if test "${with_wx_prefix+set}" = set; then : | |
6730 | - withval=$with_wx_prefix; wx_config_prefix="$withval" | |
6731 | -else | |
6732 | - wx_config_prefix="" | |
6733 | -fi | |
6734 | - | |
6735 | - | |
6736 | -# Check whether --with-wx-exec-prefix was given. | |
6737 | -if test "${with_wx_exec_prefix+set}" = set; then : | |
6738 | - withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval" | |
6739 | -else | |
6740 | - wx_config_exec_prefix="" | |
3193 | + wx_config_exec_prefix="" | |
6741 | 3194 | fi |
6742 | 3195 | |
6743 | 3196 |
@@ -7162,10 +3615,6 @@ if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
7162 | 3615 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
7163 | 3616 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
7164 | 3617 | fi |
7165 | -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
7166 | - as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
7167 | -Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7168 | -fi | |
7169 | 3618 | |
7170 | 3619 | : "${CONFIG_STATUS=./config.status}" |
7171 | 3620 | ac_write_fail=0 |
@@ -7563,7 +4012,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
7563 | 4012 | # report actual input values of CONFIG_FILES etc. instead of their |
7564 | 4013 | # values after options handling. |
7565 | 4014 | ac_log=" |
7566 | -This file was extended by fermisurfer $as_me 2.1.0, which was | |
4015 | +This file was extended by fermisurfer $as_me 2.2.1, which was | |
7567 | 4016 | generated by GNU Autoconf 2.69. Invocation command line was |
7568 | 4017 | |
7569 | 4018 | CONFIG_FILES = $CONFIG_FILES |
@@ -7629,7 +4078,7 @@ _ACEOF | ||
7629 | 4078 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7630 | 4079 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
7631 | 4080 | ac_cs_version="\\ |
7632 | -fermisurfer config.status 2.1.0 | |
4081 | +fermisurfer config.status 2.2.1 | |
7633 | 4082 | configured by $0, generated by GNU Autoconf 2.69, |
7634 | 4083 | with options \\"\$ac_cs_config\\" |
7635 | 4084 |
@@ -1,5 +1,5 @@ | ||
1 | 1 | AC_PREREQ([2.69]) |
2 | -AC_INIT([fermisurfer], [2.1.0], [mkawamura@issp.u-tokyo.ac.jp]) | |
2 | +AC_INIT([fermisurfer], [2.2.1], [mkawamura@issp.u-tokyo.ac.jp]) | |
3 | 3 | AC_CONFIG_AUX_DIR([config]) |
4 | 4 | AM_INIT_AUTOMAKE([-Wall -Werror foreign]) |
5 | 5 | AC_CONFIG_HEADERS([config.h]) |
@@ -54,9 +54,9 @@ copyright = u'2017, kawamura' | ||
54 | 54 | # built documents. |
55 | 55 | # |
56 | 56 | # The short X.Y version. |
57 | -version = '2.1' | |
57 | +version = '2.2' | |
58 | 58 | # The full version, including alpha/beta/rc tags. |
59 | -release = '2.1.0' | |
59 | +release = '2.2.0' | |
60 | 60 | |
61 | 61 | # The language for content autogenerated by Sphinx. Refer to documentation |
62 | 62 | # for a list of supported languages. |
@@ -54,9 +54,9 @@ copyright = u'2017, kawamura' | ||
54 | 54 | # built documents. |
55 | 55 | # |
56 | 56 | # The short X.Y version. |
57 | -version = '2.1' | |
57 | +version = '2.2' | |
58 | 58 | # The full version, including alpha/beta/rc tags. |
59 | -release = '2.1.0' | |
59 | +release = '2.2.1' | |
60 | 60 | |
61 | 61 | # The language for content autogenerated by Sphinx. Refer to documentation |
62 | 62 | # for a list of supported languages. |
@@ -86,8 +86,6 @@ POST_INSTALL = : | ||
86 | 86 | NORMAL_UNINSTALL = : |
87 | 87 | PRE_UNINSTALL = : |
88 | 88 | POST_UNINSTALL = : |
89 | -build_triplet = @build@ | |
90 | -host_triplet = @host@ | |
91 | 89 | bin_PROGRAMS = fermisurfer$(EXEEXT) |
92 | 90 | subdir = src |
93 | 91 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
@@ -193,10 +191,6 @@ AUTOCONF = @AUTOCONF@ | ||
193 | 191 | AUTOHEADER = @AUTOHEADER@ |
194 | 192 | AUTOMAKE = @AUTOMAKE@ |
195 | 193 | AWK = @AWK@ |
196 | -CC = @CC@ | |
197 | -CCDEPMODE = @CCDEPMODE@ | |
198 | -CFLAGS = @CFLAGS@ | |
199 | -CPP = @CPP@ | |
200 | 194 | CPPFLAGS = @CPPFLAGS@ |
201 | 195 | CXX = @CXX@ |
202 | 196 | CXXDEPMODE = @CXXDEPMODE@ |
@@ -207,13 +201,7 @@ DEPDIR = @DEPDIR@ | ||
207 | 201 | ECHO_C = @ECHO_C@ |
208 | 202 | ECHO_N = @ECHO_N@ |
209 | 203 | ECHO_T = @ECHO_T@ |
210 | -EGREP = @EGREP@ | |
211 | 204 | EXEEXT = @EXEEXT@ |
212 | -GLU_CFLAGS = @GLU_CFLAGS@ | |
213 | -GLU_LIBS = @GLU_LIBS@ | |
214 | -GL_CFLAGS = @GL_CFLAGS@ | |
215 | -GL_LIBS = @GL_LIBS@ | |
216 | -GREP = @GREP@ | |
217 | 205 | INSTALL = @INSTALL@ |
218 | 206 | INSTALL_DATA = @INSTALL_DATA@ |
219 | 207 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
@@ -234,9 +222,6 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
234 | 222 | PACKAGE_URL = @PACKAGE_URL@ |
235 | 223 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
236 | 224 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
237 | -PKG_CONFIG = @PKG_CONFIG@ | |
238 | -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
239 | -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
240 | 225 | SET_MAKE = @SET_MAKE@ |
241 | 226 | SHELL = @SHELL@ |
242 | 227 | STRIP = @STRIP@ |
@@ -258,7 +243,6 @@ abs_builddir = @abs_builddir@ | ||
258 | 243 | abs_srcdir = @abs_srcdir@ |
259 | 244 | abs_top_builddir = @abs_top_builddir@ |
260 | 245 | abs_top_srcdir = @abs_top_srcdir@ |
261 | -ac_ct_CC = @ac_ct_CC@ | |
262 | 246 | ac_ct_CXX = @ac_ct_CXX@ |
263 | 247 | am__include = @am__include@ |
264 | 248 | am__leading_dot = @am__leading_dot@ |
@@ -266,22 +250,14 @@ am__quote = @am__quote@ | ||
266 | 250 | am__tar = @am__tar@ |
267 | 251 | am__untar = @am__untar@ |
268 | 252 | bindir = @bindir@ |
269 | -build = @build@ | |
270 | 253 | build_alias = @build_alias@ |
271 | -build_cpu = @build_cpu@ | |
272 | -build_os = @build_os@ | |
273 | -build_vendor = @build_vendor@ | |
274 | 254 | builddir = @builddir@ |
275 | 255 | datadir = @datadir@ |
276 | 256 | datarootdir = @datarootdir@ |
277 | 257 | docdir = @docdir@ |
278 | 258 | dvidir = @dvidir@ |
279 | 259 | exec_prefix = @exec_prefix@ |
280 | -host = @host@ | |
281 | 260 | host_alias = @host_alias@ |
282 | -host_cpu = @host_cpu@ | |
283 | -host_os = @host_os@ | |
284 | -host_vendor = @host_vendor@ | |
285 | 261 | htmldir = @htmldir@ |
286 | 262 | includedir = @includedir@ |
287 | 263 | infodir = @infodir@ |
@@ -297,6 +273,7 @@ pdfdir = @pdfdir@ | ||
297 | 273 | prefix = @prefix@ |
298 | 274 | program_transform_name = @program_transform_name@ |
299 | 275 | psdir = @psdir@ |
276 | +runstatedir = @runstatedir@ | |
300 | 277 | sbindir = @sbindir@ |
301 | 278 | sharedstatedir = @sharedstatedir@ |
302 | 279 | srcdir = @srcdir@ |