]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.0. | |
5 | # | |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
9 | # Free Software Foundation, Inc. | |
10 | # This configure script is free software; the Free Software Foundation | |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
15 | ||
16 | # Be Bourne compatible | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
26 | ||
27 | # Support unset when possible. | |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 | eval $as_var=C; export $as_var | |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
226 | ||
227 | as_executable_p="test -f" | |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
231 | ||
232 | # Sed expression to map a string onto a valid variable name. | |
233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
234 | ||
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
241 | ||
242 | # CDPATH. | |
243 | $as_unset CDPATH | |
244 | ||
245 | ||
246 | # Name of the host. | |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
256 | ac_default_prefix=/usr/local | |
257 | ac_config_libobj_dir=. | |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.0' | |
273 | PACKAGE_STRING='wxWindows 2.5.0' | |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' | |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_GUI UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_BUILD_DEBUG COND_BUILD_RELEASE COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN COND_PLATFORM_MAC_1 COND_SHARED_1 COND_SHARED_0 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK LIBOBJS LTLIBOBJS' | |
315 | ac_subst_files='' | |
316 | ||
317 | # Initialize some variables set by options. | |
318 | ac_init_help= | |
319 | ac_init_version=false | |
320 | # The variables have the same names as the options, with | |
321 | # dashes changed to underlines. | |
322 | cache_file=/dev/null | |
323 | exec_prefix=NONE | |
324 | no_create= | |
325 | no_recursion= | |
326 | prefix=NONE | |
327 | program_prefix=NONE | |
328 | program_suffix=NONE | |
329 | program_transform_name=s,x,x, | |
330 | silent= | |
331 | site= | |
332 | srcdir= | |
333 | verbose= | |
334 | x_includes=NONE | |
335 | x_libraries=NONE | |
336 | ||
337 | # Installation directory options. | |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
339 | # and all the variables that are supposed to be based on exec_prefix | |
340 | # by default will actually change. | |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
342 | bindir='${exec_prefix}/bin' | |
343 | sbindir='${exec_prefix}/sbin' | |
344 | libexecdir='${exec_prefix}/libexec' | |
345 | datadir='${prefix}/share' | |
346 | sysconfdir='${prefix}/etc' | |
347 | sharedstatedir='${prefix}/com' | |
348 | localstatedir='${prefix}/var' | |
349 | libdir='${exec_prefix}/lib' | |
350 | includedir='${prefix}/include' | |
351 | oldincludedir='/usr/include' | |
352 | infodir='${prefix}/info' | |
353 | mandir='${prefix}/man' | |
354 | ||
355 | ac_prev= | |
356 | for ac_option | |
357 | do | |
358 | # If the previous option needs an argument, assign it. | |
359 | if test -n "$ac_prev"; then | |
360 | eval "$ac_prev=\$ac_option" | |
361 | ac_prev= | |
362 | continue | |
363 | fi | |
364 | ||
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
366 | ||
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
369 | case $ac_option in | |
370 | ||
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
374 | bindir=$ac_optarg ;; | |
375 | ||
376 | -build | --build | --buil | --bui | --bu) | |
377 | ac_prev=build_alias ;; | |
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
379 | build_alias=$ac_optarg ;; | |
380 | ||
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 | ac_prev=cache_file ;; | |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
386 | cache_file=$ac_optarg ;; | |
387 | ||
388 | --config-cache | -C) | |
389 | cache_file=config.cache ;; | |
390 | ||
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
392 | ac_prev=datadir ;; | |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
394 | | --da=*) | |
395 | datadir=$ac_optarg ;; | |
396 | ||
397 | -disable-* | --disable-*) | |
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
399 | # Reject names that are not valid shell variable names. | |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
402 | { (exit 1); exit 1; }; } | |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
404 | eval "enable_$ac_feature=no" ;; | |
405 | ||
406 | -enable-* | --enable-*) | |
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
408 | # Reject names that are not valid shell variable names. | |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
411 | { (exit 1); exit 1; }; } | |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
413 | case $ac_option in | |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
415 | *) ac_optarg=yes ;; | |
416 | esac | |
417 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
418 | ||
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
421 | | --exec | --exe | --ex) | |
422 | ac_prev=exec_prefix ;; | |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
425 | | --exec=* | --exe=* | --ex=*) | |
426 | exec_prefix=$ac_optarg ;; | |
427 | ||
428 | -gas | --gas | --ga | --g) | |
429 | # Obsolete; use --with-gas. | |
430 | with_gas=yes ;; | |
431 | ||
432 | -help | --help | --hel | --he | -h) | |
433 | ac_init_help=long ;; | |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
435 | ac_init_help=recursive ;; | |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
437 | ac_init_help=short ;; | |
438 | ||
439 | -host | --host | --hos | --ho) | |
440 | ac_prev=host_alias ;; | |
441 | -host=* | --host=* | --hos=* | --ho=*) | |
442 | host_alias=$ac_optarg ;; | |
443 | ||
444 | -includedir | --includedir | --includedi | --included | --include \ | |
445 | | --includ | --inclu | --incl | --inc) | |
446 | ac_prev=includedir ;; | |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
449 | includedir=$ac_optarg ;; | |
450 | ||
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 | ac_prev=infodir ;; | |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
454 | infodir=$ac_optarg ;; | |
455 | ||
456 | -libdir | --libdir | --libdi | --libd) | |
457 | ac_prev=libdir ;; | |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
459 | libdir=$ac_optarg ;; | |
460 | ||
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
462 | | --libexe | --libex | --libe) | |
463 | ac_prev=libexecdir ;; | |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
465 | | --libexe=* | --libex=* | --libe=*) | |
466 | libexecdir=$ac_optarg ;; | |
467 | ||
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
469 | | --localstate | --localstat | --localsta | --localst \ | |
470 | | --locals | --local | --loca | --loc | --lo) | |
471 | ac_prev=localstatedir ;; | |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
475 | localstatedir=$ac_optarg ;; | |
476 | ||
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 | ac_prev=mandir ;; | |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
480 | mandir=$ac_optarg ;; | |
481 | ||
482 | -nfp | --nfp | --nf) | |
483 | # Obsolete; use --without-fp. | |
484 | with_fp=no ;; | |
485 | ||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
487 | | --no-cr | --no-c | -n) | |
488 | no_create=yes ;; | |
489 | ||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
492 | no_recursion=yes ;; | |
493 | ||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
496 | | --oldin | --oldi | --old | --ol | --o) | |
497 | ac_prev=oldincludedir ;; | |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
501 | oldincludedir=$ac_optarg ;; | |
502 | ||
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 | ac_prev=prefix ;; | |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
506 | prefix=$ac_optarg ;; | |
507 | ||
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
509 | | --program-pre | --program-pr | --program-p) | |
510 | ac_prev=program_prefix ;; | |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
513 | program_prefix=$ac_optarg ;; | |
514 | ||
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
516 | | --program-suf | --program-su | --program-s) | |
517 | ac_prev=program_suffix ;; | |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
520 | program_suffix=$ac_optarg ;; | |
521 | ||
522 | -program-transform-name | --program-transform-name \ | |
523 | | --program-transform-nam | --program-transform-na \ | |
524 | | --program-transform-n | --program-transform- \ | |
525 | | --program-transform | --program-transfor \ | |
526 | | --program-transfo | --program-transf \ | |
527 | | --program-trans | --program-tran \ | |
528 | | --progr-tra | --program-tr | --program-t) | |
529 | ac_prev=program_transform_name ;; | |
530 | -program-transform-name=* | --program-transform-name=* \ | |
531 | | --program-transform-nam=* | --program-transform-na=* \ | |
532 | | --program-transform-n=* | --program-transform-=* \ | |
533 | | --program-transform=* | --program-transfor=* \ | |
534 | | --program-transfo=* | --program-transf=* \ | |
535 | | --program-trans=* | --program-tran=* \ | |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
537 | program_transform_name=$ac_optarg ;; | |
538 | ||
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
540 | | -silent | --silent | --silen | --sile | --sil) | |
541 | silent=yes ;; | |
542 | ||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
544 | ac_prev=sbindir ;; | |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
546 | | --sbi=* | --sb=*) | |
547 | sbindir=$ac_optarg ;; | |
548 | ||
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
551 | | --sharedst | --shareds | --shared | --share | --shar \ | |
552 | | --sha | --sh) | |
553 | ac_prev=sharedstatedir ;; | |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
557 | | --sha=* | --sh=*) | |
558 | sharedstatedir=$ac_optarg ;; | |
559 | ||
560 | -site | --site | --sit) | |
561 | ac_prev=site ;; | |
562 | -site=* | --site=* | --sit=*) | |
563 | site=$ac_optarg ;; | |
564 | ||
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
566 | ac_prev=srcdir ;; | |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
568 | srcdir=$ac_optarg ;; | |
569 | ||
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
571 | | --syscon | --sysco | --sysc | --sys | --sy) | |
572 | ac_prev=sysconfdir ;; | |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
575 | sysconfdir=$ac_optarg ;; | |
576 | ||
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
578 | ac_prev=target_alias ;; | |
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
580 | target_alias=$ac_optarg ;; | |
581 | ||
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 | verbose=yes ;; | |
584 | ||
585 | -version | --version | --versio | --versi | --vers | -V) | |
586 | ac_init_version=: ;; | |
587 | ||
588 | -with-* | --with-*) | |
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
590 | # Reject names that are not valid shell variable names. | |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
593 | { (exit 1); exit 1; }; } | |
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
595 | case $ac_option in | |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
597 | *) ac_optarg=yes ;; | |
598 | esac | |
599 | eval "with_$ac_package='$ac_optarg'" ;; | |
600 | ||
601 | -without-* | --without-*) | |
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
603 | # Reject names that are not valid shell variable names. | |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
606 | { (exit 1); exit 1; }; } | |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
608 | eval "with_$ac_package=no" ;; | |
609 | ||
610 | --x) | |
611 | # Obsolete; use --with-x. | |
612 | with_x=yes ;; | |
613 | ||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
615 | | --x-incl | --x-inc | --x-in | --x-i) | |
616 | ac_prev=x_includes ;; | |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
619 | x_includes=$ac_optarg ;; | |
620 | ||
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
623 | ac_prev=x_libraries ;; | |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
626 | x_libraries=$ac_optarg ;; | |
627 | ||
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
629 | Try \`$0 --help' for more information." >&2 | |
630 | { (exit 1); exit 1; }; } | |
631 | ;; | |
632 | ||
633 | *=*) | |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
635 | # Reject names that are not valid shell variable names. | |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
638 | { (exit 1); exit 1; }; } | |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
640 | eval "$ac_envvar='$ac_optarg'" | |
641 | export $ac_envvar ;; | |
642 | ||
643 | *) | |
644 | # FIXME: should be removed in autoconf 3.0. | |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
649 | ;; | |
650 | ||
651 | esac | |
652 | done | |
653 | ||
654 | if test -n "$ac_prev"; then | |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
657 | { (exit 1); exit 1; }; } | |
658 | fi | |
659 | ||
660 | # Be sure to have absolute paths. | |
661 | for ac_var in exec_prefix prefix | |
662 | do | |
663 | eval ac_val=$`echo $ac_var` | |
664 | case $ac_val in | |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
667 | { (exit 1); exit 1; }; };; | |
668 | esac | |
669 | done | |
670 | ||
671 | # Be sure to have absolute paths. | |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
673 | localstatedir libdir includedir oldincludedir infodir mandir | |
674 | do | |
675 | eval ac_val=$`echo $ac_var` | |
676 | case $ac_val in | |
677 | [\\/$]* | ?:[\\/]* ) ;; | |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
679 | { (exit 1); exit 1; }; };; | |
680 | esac | |
681 | done | |
682 | ||
683 | # There might be people who depend on the old broken behavior: `$host' | |
684 | # used to hold the argument of --host etc. | |
685 | # FIXME: To remove some day. | |
686 | build=$build_alias | |
687 | host=$host_alias | |
688 | target=$target_alias | |
689 | ||
690 | # FIXME: To remove some day. | |
691 | if test "x$host_alias" != x; then | |
692 | if test "x$build_alias" = x; then | |
693 | cross_compiling=maybe | |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
696 | elif test "x$build_alias" != "x$host_alias"; then | |
697 | cross_compiling=yes | |
698 | fi | |
699 | fi | |
700 | ||
701 | ac_tool_prefix= | |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | ||
704 | test "$silent" = yes && exec 6>/dev/null | |
705 | ||
706 | ||
707 | # Find the source files, if location was not specified. | |
708 | if test -z "$srcdir"; then | |
709 | ac_srcdir_defaulted=yes | |
710 | # Try the directory containing this script, then its parent. | |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
713 | X"$0" : 'X\(//\)[^/]' \| \ | |
714 | X"$0" : 'X\(//\)$' \| \ | |
715 | X"$0" : 'X\(/\)' \| \ | |
716 | . : '\(.\)' 2>/dev/null || | |
717 | echo X"$0" | | |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
720 | /^X\(\/\/\)$/{ s//\1/; q; } | |
721 | /^X\(\/\).*/{ s//\1/; q; } | |
722 | s/.*/./; q'` | |
723 | srcdir=$ac_confdir | |
724 | if test ! -r $srcdir/$ac_unique_file; then | |
725 | srcdir=.. | |
726 | fi | |
727 | else | |
728 | ac_srcdir_defaulted=no | |
729 | fi | |
730 | if test ! -r $srcdir/$ac_unique_file; then | |
731 | if test "$ac_srcdir_defaulted" = yes; then | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | else | |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
736 | { (exit 1); exit 1; }; } | |
737 | fi | |
738 | fi | |
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
741 | { (exit 1); exit 1; }; } | |
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
743 | ac_env_build_alias_set=${build_alias+set} | |
744 | ac_env_build_alias_value=$build_alias | |
745 | ac_cv_env_build_alias_set=${build_alias+set} | |
746 | ac_cv_env_build_alias_value=$build_alias | |
747 | ac_env_host_alias_set=${host_alias+set} | |
748 | ac_env_host_alias_value=$host_alias | |
749 | ac_cv_env_host_alias_set=${host_alias+set} | |
750 | ac_cv_env_host_alias_value=$host_alias | |
751 | ac_env_target_alias_set=${target_alias+set} | |
752 | ac_env_target_alias_value=$target_alias | |
753 | ac_cv_env_target_alias_set=${target_alias+set} | |
754 | ac_cv_env_target_alias_value=$target_alias | |
755 | ac_env_CC_set=${CC+set} | |
756 | ac_env_CC_value=$CC | |
757 | ac_cv_env_CC_set=${CC+set} | |
758 | ac_cv_env_CC_value=$CC | |
759 | ac_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_env_CFLAGS_value=$CFLAGS | |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_cv_env_CFLAGS_value=$CFLAGS | |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_env_CPP_set=${CPP+set} | |
772 | ac_env_CPP_value=$CPP | |
773 | ac_cv_env_CPP_set=${CPP+set} | |
774 | ac_cv_env_CPP_value=$CPP | |
775 | ac_env_CXX_set=${CXX+set} | |
776 | ac_env_CXX_value=$CXX | |
777 | ac_cv_env_CXX_set=${CXX+set} | |
778 | ac_cv_env_CXX_value=$CXX | |
779 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
780 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
781 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_env_CXXCPP_set=${CXXCPP+set} | |
784 | ac_env_CXXCPP_value=$CXXCPP | |
785 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_cv_env_CXXCPP_value=$CXXCPP | |
787 | ||
788 | # | |
789 | # Report the --help message. | |
790 | # | |
791 | if test "$ac_init_help" = "long"; then | |
792 | # Omit some internal or obsolete options to make the list less imposing. | |
793 | # This message is too long to be a string in the A/UX 3.1 sh. | |
794 | cat <<_ACEOF | |
795 | \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems. | |
796 | ||
797 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
798 | ||
799 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
800 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
801 | ||
802 | Defaults for the options are specified in brackets. | |
803 | ||
804 | Configuration: | |
805 | -h, --help display this help and exit | |
806 | --help=short display options specific to this package | |
807 | --help=recursive display the short help of all the included packages | |
808 | -V, --version display version information and exit | |
809 | -q, --quiet, --silent do not print \`checking...' messages | |
810 | --cache-file=FILE cache test results in FILE [disabled] | |
811 | -C, --config-cache alias for \`--cache-file=config.cache' | |
812 | -n, --no-create do not create output files | |
813 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
814 | ||
815 | _ACEOF | |
816 | ||
817 | cat <<_ACEOF | |
818 | Installation directories: | |
819 | --prefix=PREFIX install architecture-independent files in PREFIX | |
820 | [$ac_default_prefix] | |
821 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
822 | [PREFIX] | |
823 | ||
824 | By default, \`make install' will install all the files in | |
825 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
826 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
827 | for instance \`--prefix=\$HOME'. | |
828 | ||
829 | For better control, use the options below. | |
830 | ||
831 | Fine tuning of the installation directories: | |
832 | --bindir=DIR user executables [EPREFIX/bin] | |
833 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
834 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
835 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
836 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
837 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
838 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
839 | --libdir=DIR object code libraries [EPREFIX/lib] | |
840 | --includedir=DIR C header files [PREFIX/include] | |
841 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
842 | --infodir=DIR info documentation [PREFIX/info] | |
843 | --mandir=DIR man documentation [PREFIX/man] | |
844 | _ACEOF | |
845 | ||
846 | cat <<\_ACEOF | |
847 | ||
848 | X features: | |
849 | --x-includes=DIR X include files are in DIR | |
850 | --x-libraries=DIR X library files are in DIR | |
851 | ||
852 | System types: | |
853 | --build=BUILD configure for building on BUILD [guessed] | |
854 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
855 | --target=TARGET configure for building compilers for TARGET [HOST] | |
856 | _ACEOF | |
857 | fi | |
858 | ||
859 | if test -n "$ac_init_help"; then | |
860 | case $ac_init_help in | |
861 | short | recursive ) echo "Configuration of wxWindows 2.5.0:";; | |
862 | esac | |
863 | cat <<\_ACEOF | |
864 | ||
865 | Optional Features: | |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
868 | --enable-gui use GUI classes | |
869 | --disable-monolithic don't build wxWindows as single library | |
870 | --enable-universal use wxWindows GUI controls instead of native ones | |
871 | --enable-nanox use NanoX | |
872 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
873 | --enable-shared create shared library code | |
874 | --enable-optimise create optimised code | |
875 | --enable-debug same as debug_flag and debug_info | |
876 | --enable-stl use STL for containers | |
877 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
878 | --enable-debug_info create code with debugging information | |
879 | --enable-debug_gdb create code with extra GDB debugging information | |
880 | --enable-debug_cntxt use wxDebugContext | |
881 | --enable-mem_tracing create code with memory tracing | |
882 | --enable-profile create code with profiling information | |
883 | --enable-no_rtti create code without RTTI information | |
884 | --enable-no_exceptions create code without C++ exceptions handling | |
885 | --enable-permissive compile code disregarding strict ANSI | |
886 | --enable-no_deps create code without dependency information | |
887 | --enable-compat20 enable wxWindows 2.0 compatibility | |
888 | --enable-compat22 enable wxWindows 2.2 compatibility | |
889 | --disable-compat24 disable wxWindows 2.4 compatibility | |
890 | --enable-rpath=DIR output the rpath flag from wx-config | |
891 | --enable-intl use internationalization system | |
892 | --enable-config use wxConfig (and derived) classes | |
893 | --enable-protocols use wxProtocol and derived classes | |
894 | --enable-ftp use wxFTP (requires wxProtocol | |
895 | --enable-http use wxHTTP (requires wxProtocol | |
896 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
897 | --enable-sockets use socket/network classes | |
898 | --enable-ole use OLE classes | |
899 | --enable-dataobj use data object classes | |
900 | --enable-ipc use interprocess communication (wxSocket etc.) | |
901 | --enable-cmdline use wxCmdLineParser class | |
902 | --enable-datetime use wxDateTime class | |
903 | --enable-stopwatch use wxStopWatch class | |
904 | --enable-dialupman use dialup network classes | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-timer use wxTimer class | |
907 | --enable-wave use wxWave class | |
908 | --enable-fraction use wxFraction class | |
909 | --enable-dynlib use wxLibrary class for DLL loading | |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
911 | --enable-longlong use wxLongLong class | |
912 | --enable-geometry use geometry class | |
913 | --enable-log use logging system | |
914 | --enable-streams use wxStream etc classes | |
915 | --enable-file use wxFile classes | |
916 | --enable-ffile use wxFFile classes | |
917 | --enable-textbuf use wxTextBuffer class | |
918 | --enable-textfile use wxTextFile class | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-unicode compile wxString with Unicode support | |
921 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
922 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
923 | --enable-std_iostreams use standard C++ stream classes | |
924 | --enable-filesystem use virtual file systems classes | |
925 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
926 | --enable-fs_zip use virtual ZIP filesystems | |
927 | --enable-zipstream use wxZipInputStream | |
928 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
929 | --enable-snglinst use wxSingleInstanceChecker class | |
930 | --enable-mimetype use wxMimeTypesManager | |
931 | --enable-sysoptions use wxSystemOptions | |
932 | --enable-url use wxURL class | |
933 | --enable-protocol use wxProtocol class | |
934 | --enable-protocol-http HTTP support in wxProtocol | |
935 | --enable-protocol-ftp FTP support in wxProtocol | |
936 | --enable-protocol-file FILE support in wxProtocol | |
937 | --enable-threads use threads | |
938 | --enable-docview use document view architecture | |
939 | --enable-help use help subsystem | |
940 | --enable-mshtmlhelp use MS HTML Help (win32) | |
941 | --enable-html use wxHTML sub-library | |
942 | --enable-htmlhelp use wxHTML-based help | |
943 | --enable-constraints use layout-constraints system | |
944 | --enable-printarch use printing architecture | |
945 | --enable-mdi use multiple document interface architecture | |
946 | --enable-loggui use standard GUI logger | |
947 | --enable-logwin use wxLogWindow | |
948 | --enable-logdialog use wxLogDialog | |
949 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
950 | --enable-prologio not available; see contrib | |
951 | --enable-resources not available; see contrib | |
952 | --enable-clipboard use wxClipboard class | |
953 | --enable-dnd use Drag'n'Drop classes | |
954 | --enable-metafile use win32 metafiles | |
955 | --enable-controls use all usual controls | |
956 | --enable-accel use accelerators | |
957 | --enable-button use wxButton class | |
958 | --enable-bmpbutton use wxBitmapButton class | |
959 | --enable-calendar use wxCalendarCtrl class | |
960 | --enable-caret use wxCaret class | |
961 | --enable-checkbox use wxCheckBox class | |
962 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
963 | --enable-choice use wxChoice class | |
964 | --enable-combobox use wxComboBox class | |
965 | --enable-display use wxDisplay class | |
966 | --enable-gauge use wxGauge class | |
967 | --enable-grid use wxGrid class | |
968 | --enable-imaglist use wxImageList class | |
969 | --enable-listbox use wxListBox class | |
970 | --enable-listctrl use wxListCtrl class | |
971 | --enable-notebook use wxNotebook class | |
972 | --enable-radiobox use wxRadioBox class | |
973 | --enable-radiobtn use wxRadioButton class | |
974 | --enable-sash use wxSashWindow class | |
975 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
976 | --enable-slider use wxSlider class | |
977 | --enable-spinbtn use wxSpinButton class | |
978 | --enable-spinctrl use wxSpinCtrl class | |
979 | --enable-splitter use wxSplitterWindow class | |
980 | --enable-statbmp use wxStaticBitmap class | |
981 | --enable-statbox use wxStaticBox class | |
982 | --enable-statline use wxStaticLine class | |
983 | --enable-stattext use wxStaticText class | |
984 | --enable-statusbar use wxStatusBar class | |
985 | --enable-tabdialog use wxTabControl class | |
986 | --enable-textctrl use wxTextCtrl class | |
987 | --enable-togglebtn use wxToggleButton class | |
988 | --enable-toolbar use wxToolBar class | |
989 | --enable-tbarnative use native wxToolBar class | |
990 | --enable-tbarsmpl use wxToolBarSimple class | |
991 | --enable-treectrl use wxTreeCtrl class | |
992 | --enable-tipwindow use wxTipWindow class | |
993 | --enable-popupwin use wxPopUpWindow class | |
994 | --enable-commondlg use all common dialogs | |
995 | --enable-choicedlg use wxChoiceDialog | |
996 | --enable-coldlg use wxColourDialog | |
997 | --enable-filedlg use wxFileDialog | |
998 | --enable-finddlg use wxFindReplaceDialog | |
999 | --enable-fontdlg use wxFontDialog | |
1000 | --enable-dirdlg use wxDirDialog | |
1001 | --enable-msgdlg use wxMessageDialog | |
1002 | --enable-numberdlg use wxNumberEntryDialog | |
1003 | --enable-splash use wxSplashScreen | |
1004 | --enable-textdlg use wxTextDialog | |
1005 | --enable-tipdlg use startup tips | |
1006 | --enable-progressdlg use wxProgressDialog | |
1007 | --enable-wizarddlg use wxWizard | |
1008 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1009 | --enable-miniframe use wxMiniFrame class | |
1010 | --enable-tooltips use wxToolTip class | |
1011 | --enable-splines use spline drawing code | |
1012 | --enable-validators use wxValidator and derived classes | |
1013 | --enable-busyinfo use wxBusyInfo | |
1014 | --enable-joystick use wxJoystick (Linux only) | |
1015 | --enable-metafiles use wxMetaFile (Windows only) | |
1016 | --enable-dragimage use wxDragImage | |
1017 | --enable-accessibility enable accessibility support | |
1018 | --enable-palette use wxPalette class | |
1019 | --enable-image use wxImage class | |
1020 | --enable-gif use gif images (GIF file format) | |
1021 | --enable-pcx use pcx images (PCX file format) | |
1022 | --enable-iff use iff images (IFF file format) | |
1023 | --enable-pnm use pnm images (PNM file format) | |
1024 | --enable-xpm use xpm images (XPM file format) | |
1025 | --enable-icocur use Windows ICO and CUR formats | |
1026 | --disable-largefile omit support for large files | |
1027 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1028 | --disable-gtktest Do not try to compile and run a test GTK program | |
1029 | ||
1030 | Optional Packages: | |
1031 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1032 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1033 | --with-gtk use GTK+ | |
1034 | --with-motif use Motif/Lesstif | |
1035 | --with-mac use Mac OS X | |
1036 | --with-cocoa use Cocoa | |
1037 | --with-wine use Wine | |
1038 | --with-msw use MS-Windows | |
1039 | --with-pm use OS/2 Presentation Manager | |
1040 | --with-mgl use SciTech MGL | |
1041 | --with-microwin use MicroWindows | |
1042 | --with-x11 use X11 | |
1043 | --with-libpng use libpng (PNG image format) | |
1044 | --with-libjpeg use libjpeg (JPEG file format) | |
1045 | --with-libtiff use libtiff (TIFF file format) | |
1046 | --with-opengl use OpenGL (or Mesa) | |
1047 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1048 | --with-regex enable support for wxRegEx class | |
1049 | --with-zlib use zlib for LZW compression | |
1050 | --with-odbc use the IODBC and wxODBC classes | |
1051 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1052 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1053 | --with-x use the X Window System | |
1054 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1055 | ||
1056 | Some influential environment variables: | |
1057 | CC C compiler command | |
1058 | CFLAGS C compiler flags | |
1059 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1060 | nonstandard directory <lib dir> | |
1061 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1062 | headers in a nonstandard directory <include dir> | |
1063 | CPP C preprocessor | |
1064 | CXX C++ compiler command | |
1065 | CXXFLAGS C++ compiler flags | |
1066 | CXXCPP C++ preprocessor | |
1067 | ||
1068 | Use these variables to override the choices made by `configure' or to help | |
1069 | it to find libraries and programs with nonstandard names/locations. | |
1070 | ||
1071 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1072 | _ACEOF | |
1073 | fi | |
1074 | ||
1075 | if test "$ac_init_help" = "recursive"; then | |
1076 | # If there are subdirs, report their specific --help. | |
1077 | ac_popdir=`pwd` | |
1078 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1079 | test -d $ac_dir || continue | |
1080 | ac_builddir=. | |
1081 | ||
1082 | if test "$ac_dir" != .; then | |
1083 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1084 | # A "../" for each directory in $ac_dir_suffix. | |
1085 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1086 | else | |
1087 | ac_dir_suffix= ac_top_builddir= | |
1088 | fi | |
1089 | ||
1090 | case $srcdir in | |
1091 | .) # No --srcdir option. We are building in place. | |
1092 | ac_srcdir=. | |
1093 | if test -z "$ac_top_builddir"; then | |
1094 | ac_top_srcdir=. | |
1095 | else | |
1096 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1097 | fi ;; | |
1098 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1099 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1100 | ac_top_srcdir=$srcdir ;; | |
1101 | *) # Relative path. | |
1102 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1103 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1104 | esac | |
1105 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1106 | # absolute. | |
1107 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1108 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1109 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1110 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1111 | ||
1112 | cd $ac_dir | |
1113 | # Check for guested configure; otherwise get Cygnus style configure. | |
1114 | if test -f $ac_srcdir/configure.gnu; then | |
1115 | echo | |
1116 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1117 | elif test -f $ac_srcdir/configure; then | |
1118 | echo | |
1119 | $SHELL $ac_srcdir/configure --help=recursive | |
1120 | elif test -f $ac_srcdir/configure.ac || | |
1121 | test -f $ac_srcdir/configure.in; then | |
1122 | echo | |
1123 | $ac_configure --help | |
1124 | else | |
1125 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1126 | fi | |
1127 | cd $ac_popdir | |
1128 | done | |
1129 | fi | |
1130 | ||
1131 | test -n "$ac_init_help" && exit 0 | |
1132 | if $ac_init_version; then | |
1133 | cat <<\_ACEOF | |
1134 | wxWindows configure 2.5.0 | |
1135 | generated by GNU Autoconf 2.57 | |
1136 | ||
1137 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
1138 | Free Software Foundation, Inc. | |
1139 | This configure script is free software; the Free Software Foundation | |
1140 | gives unlimited permission to copy, distribute and modify it. | |
1141 | _ACEOF | |
1142 | exit 0 | |
1143 | fi | |
1144 | exec 5>config.log | |
1145 | cat >&5 <<_ACEOF | |
1146 | This file contains any messages produced by compilers while | |
1147 | running configure, to aid debugging if configure makes a mistake. | |
1148 | ||
1149 | It was created by wxWindows $as_me 2.5.0, which was | |
1150 | generated by GNU Autoconf 2.57. Invocation command line was | |
1151 | ||
1152 | $ $0 $@ | |
1153 | ||
1154 | _ACEOF | |
1155 | { | |
1156 | cat <<_ASUNAME | |
1157 | ## --------- ## | |
1158 | ## Platform. ## | |
1159 | ## --------- ## | |
1160 | ||
1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1166 | ||
1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1169 | ||
1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | _ASUNAME | |
1179 | ||
1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1181 | for as_dir in $PATH | |
1182 | do | |
1183 | IFS=$as_save_IFS | |
1184 | test -z "$as_dir" && as_dir=. | |
1185 | echo "PATH: $as_dir" | |
1186 | done | |
1187 | ||
1188 | } >&5 | |
1189 | ||
1190 | cat >&5 <<_ACEOF | |
1191 | ||
1192 | ||
1193 | ## ----------- ## | |
1194 | ## Core tests. ## | |
1195 | ## ----------- ## | |
1196 | ||
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | # Keep a trace of the command line. | |
1201 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1202 | # Strip out --silent because we don't want to record it for future runs. | |
1203 | # Also quote any args containing shell meta-characters. | |
1204 | # Make two passes to allow for proper duplicate-argument suppression. | |
1205 | ac_configure_args= | |
1206 | ac_configure_args0= | |
1207 | ac_configure_args1= | |
1208 | ac_sep= | |
1209 | ac_must_keep_next=false | |
1210 | for ac_pass in 1 2 | |
1211 | do | |
1212 | for ac_arg | |
1213 | do | |
1214 | case $ac_arg in | |
1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1217 | | -silent | --silent | --silen | --sile | --sil) | |
1218 | continue ;; | |
1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1221 | esac | |
1222 | case $ac_pass in | |
1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1224 | 2) | |
1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1226 | if test $ac_must_keep_next = true; then | |
1227 | ac_must_keep_next=false # Got value, back to normal. | |
1228 | else | |
1229 | case $ac_arg in | |
1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1233 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1234 | case "$ac_configure_args0 " in | |
1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1236 | esac | |
1237 | ;; | |
1238 | -* ) ac_must_keep_next=true ;; | |
1239 | esac | |
1240 | fi | |
1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1242 | # Get rid of the leading space. | |
1243 | ac_sep=" " | |
1244 | ;; | |
1245 | esac | |
1246 | done | |
1247 | done | |
1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1250 | ||
1251 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1252 | # config.log. We remove comments because anyway the quotes in there | |
1253 | # would cause problems or look ugly. | |
1254 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1255 | # such as our DU 5.0 friend, will then `close' the trap. | |
1256 | trap 'exit_status=$? | |
1257 | # Save into config.log some information that might help in debugging. | |
1258 | { | |
1259 | echo | |
1260 | ||
1261 | cat <<\_ASBOX | |
1262 | ## ---------------- ## | |
1263 | ## Cache variables. ## | |
1264 | ## ---------------- ## | |
1265 | _ASBOX | |
1266 | echo | |
1267 | # The following way of writing the cache mishandles newlines in values, | |
1268 | { | |
1269 | (set) 2>&1 | | |
1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1271 | *ac_space=\ *) | |
1272 | sed -n \ | |
1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1275 | ;; | |
1276 | *) | |
1277 | sed -n \ | |
1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1279 | ;; | |
1280 | esac; | |
1281 | } | |
1282 | echo | |
1283 | ||
1284 | cat <<\_ASBOX | |
1285 | ## ----------------- ## | |
1286 | ## Output variables. ## | |
1287 | ## ----------------- ## | |
1288 | _ASBOX | |
1289 | echo | |
1290 | for ac_var in $ac_subst_vars | |
1291 | do | |
1292 | eval ac_val=$`echo $ac_var` | |
1293 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1294 | done | sort | |
1295 | echo | |
1296 | ||
1297 | if test -n "$ac_subst_files"; then | |
1298 | cat <<\_ASBOX | |
1299 | ## ------------- ## | |
1300 | ## Output files. ## | |
1301 | ## ------------- ## | |
1302 | _ASBOX | |
1303 | echo | |
1304 | for ac_var in $ac_subst_files | |
1305 | do | |
1306 | eval ac_val=$`echo $ac_var` | |
1307 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1308 | done | sort | |
1309 | echo | |
1310 | fi | |
1311 | ||
1312 | if test -s confdefs.h; then | |
1313 | cat <<\_ASBOX | |
1314 | ## ----------- ## | |
1315 | ## confdefs.h. ## | |
1316 | ## ----------- ## | |
1317 | _ASBOX | |
1318 | echo | |
1319 | sed "/^$/d" confdefs.h | sort | |
1320 | echo | |
1321 | fi | |
1322 | test "$ac_signal" != 0 && | |
1323 | echo "$as_me: caught signal $ac_signal" | |
1324 | echo "$as_me: exit $exit_status" | |
1325 | } >&5 | |
1326 | rm -f core core.* *.core && | |
1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1328 | exit $exit_status | |
1329 | ' 0 | |
1330 | for ac_signal in 1 2 13 15; do | |
1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1332 | done | |
1333 | ac_signal=0 | |
1334 | ||
1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1336 | rm -rf conftest* confdefs.h | |
1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1338 | echo >confdefs.h | |
1339 | ||
1340 | # Predefined preprocessor variables. | |
1341 | ||
1342 | cat >>confdefs.h <<_ACEOF | |
1343 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1344 | _ACEOF | |
1345 | ||
1346 | ||
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | # Let the site file select an alternate cache file if it wants to. | |
1368 | # Prefer explicitly selected file to automatically selected ones. | |
1369 | if test -z "$CONFIG_SITE"; then | |
1370 | if test "x$prefix" != xNONE; then | |
1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1372 | else | |
1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1374 | fi | |
1375 | fi | |
1376 | for ac_site_file in $CONFIG_SITE; do | |
1377 | if test -r "$ac_site_file"; then | |
1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1379 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1380 | sed 's/^/| /' "$ac_site_file" >&5 | |
1381 | . "$ac_site_file" | |
1382 | fi | |
1383 | done | |
1384 | ||
1385 | if test -r "$cache_file"; then | |
1386 | # Some versions of bash will fail to source /dev/null (special | |
1387 | # files actually), so we avoid doing that. | |
1388 | if test -f "$cache_file"; then | |
1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1390 | echo "$as_me: loading cache $cache_file" >&6;} | |
1391 | case $cache_file in | |
1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1393 | *) . ./$cache_file;; | |
1394 | esac | |
1395 | fi | |
1396 | else | |
1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1398 | echo "$as_me: creating cache $cache_file" >&6;} | |
1399 | >$cache_file | |
1400 | fi | |
1401 | ||
1402 | # Check that the precious variables saved in the cache have kept the same | |
1403 | # value. | |
1404 | ac_cache_corrupted=false | |
1405 | for ac_var in `(set) 2>&1 | | |
1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1408 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1410 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1411 | case $ac_old_set,$ac_new_set in | |
1412 | set,) | |
1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1415 | ac_cache_corrupted=: ;; | |
1416 | ,set) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,);; | |
1421 | *) | |
1422 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1426 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1428 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1429 | ac_cache_corrupted=: | |
1430 | fi;; | |
1431 | esac | |
1432 | # Pass precious variables to config.status. | |
1433 | if test "$ac_new_set" = set; then | |
1434 | case $ac_new_val in | |
1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1437 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1438 | esac | |
1439 | case " $ac_configure_args " in | |
1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1442 | esac | |
1443 | fi | |
1444 | done | |
1445 | if $ac_cache_corrupted; then | |
1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1450 | { (exit 1); exit 1; }; } | |
1451 | fi | |
1452 | ||
1453 | ac_ext=c | |
1454 | ac_cpp='$CPP $CPPFLAGS' | |
1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ac_aux_dir= | |
1489 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1490 | if test -f $ac_dir/install-sh; then | |
1491 | ac_aux_dir=$ac_dir | |
1492 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1493 | break | |
1494 | elif test -f $ac_dir/install.sh; then | |
1495 | ac_aux_dir=$ac_dir | |
1496 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1497 | break | |
1498 | elif test -f $ac_dir/shtool; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1501 | break | |
1502 | fi | |
1503 | done | |
1504 | if test -z "$ac_aux_dir"; then | |
1505 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1506 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1507 | { (exit 1); exit 1; }; } | |
1508 | fi | |
1509 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1510 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1511 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1512 | ||
1513 | # Make sure we can run config.sub. | |
1514 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1515 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1516 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1517 | { (exit 1); exit 1; }; } | |
1518 | ||
1519 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1520 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_build+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 | else | |
1524 | ac_cv_build_alias=$build_alias | |
1525 | test -z "$ac_cv_build_alias" && | |
1526 | ac_cv_build_alias=`$ac_config_guess` | |
1527 | test -z "$ac_cv_build_alias" && | |
1528 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1529 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1532 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1533 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ||
1536 | fi | |
1537 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1538 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1539 | build=$ac_cv_build | |
1540 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1541 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1542 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1543 | ||
1544 | ||
1545 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1546 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1547 | if test "${ac_cv_host+set}" = set; then | |
1548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1549 | else | |
1550 | ac_cv_host_alias=$host_alias | |
1551 | test -z "$ac_cv_host_alias" && | |
1552 | ac_cv_host_alias=$ac_cv_build_alias | |
1553 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1554 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1555 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1556 | { (exit 1); exit 1; }; } | |
1557 | ||
1558 | fi | |
1559 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1560 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1561 | host=$ac_cv_host | |
1562 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1563 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1564 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1565 | ||
1566 | ||
1567 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1568 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1569 | if test "${ac_cv_target+set}" = set; then | |
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1571 | else | |
1572 | ac_cv_target_alias=$target_alias | |
1573 | test "x$ac_cv_target_alias" = "x" && | |
1574 | ac_cv_target_alias=$ac_cv_host_alias | |
1575 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1576 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1577 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | fi | |
1581 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1582 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1583 | target=$ac_cv_target | |
1584 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1585 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1586 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1587 | ||
1588 | ||
1589 | # The aliases save the names the user supplied, while $host etc. | |
1590 | # will get canonicalized. | |
1591 | test -n "$target_alias" && | |
1592 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1593 | NONENONEs,x,x, && | |
1594 | program_prefix=${target_alias}- | |
1595 | ||
1596 | ||
1597 | ||
1598 | WX_MAJOR_VERSION_NUMBER=2 | |
1599 | WX_MINOR_VERSION_NUMBER=5 | |
1600 | WX_RELEASE_NUMBER=0 | |
1601 | ||
1602 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1603 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1604 | ||
1605 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1606 | ||
1607 | WX_CURRENT=0 | |
1608 | WX_REVISION=0 | |
1609 | WX_AGE=0 | |
1610 | ||
1611 | ||
1612 | ||
1613 | USE_UNIX=1 | |
1614 | USE_WIN32=0 | |
1615 | USE_DOS=0 | |
1616 | USE_BEOS=0 | |
1617 | USE_MAC=0 | |
1618 | ||
1619 | USE_AIX= | |
1620 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1621 | USE_GNU= USE_HPUX= | |
1622 | USE_LINUX= | |
1623 | USE_NETBSD= | |
1624 | USE_OPENBSD= | |
1625 | USE_OSF= USE_SGI= | |
1626 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1627 | USE_ULTRIX= | |
1628 | USE_UNIXWARE= | |
1629 | ||
1630 | USE_ALPHA= | |
1631 | ||
1632 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1633 | ||
1634 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1635 | ||
1636 | DEFAULT_wxUSE_COCOA=0 | |
1637 | DEFAULT_wxUSE_GTK=0 | |
1638 | DEFAULT_wxUSE_MAC=0 | |
1639 | DEFAULT_wxUSE_MGL=0 | |
1640 | DEFAULT_wxUSE_MICROWIN=0 | |
1641 | DEFAULT_wxUSE_MOTIF=0 | |
1642 | DEFAULT_wxUSE_MSW=0 | |
1643 | DEFAULT_wxUSE_PM=0 | |
1644 | DEFAULT_wxUSE_X11=0 | |
1645 | ||
1646 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1647 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1648 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1649 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1650 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1651 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1652 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1653 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1654 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1655 | ||
1656 | PROGRAM_EXT= | |
1657 | SO_SUFFIX=so | |
1658 | SAMPLES_RPATH_FLAG= | |
1659 | ||
1660 | case "${host}" in | |
1661 | *-hp-hpux* ) | |
1662 | USE_HPUX=1 | |
1663 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1664 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1665 | SO_SUFFIX=sl | |
1666 | cat >>confdefs.h <<\_ACEOF | |
1667 | #define __HPUX__ 1 | |
1668 | _ACEOF | |
1669 | ||
1670 | ;; | |
1671 | *-*-linux* ) | |
1672 | USE_LINUX=1 | |
1673 | cat >>confdefs.h <<\_ACEOF | |
1674 | #define __LINUX__ 1 | |
1675 | _ACEOF | |
1676 | ||
1677 | TMP=`uname -m` | |
1678 | if test "x$TMP" = "xalpha"; then | |
1679 | USE_ALPHA=1 | |
1680 | cat >>confdefs.h <<\_ACEOF | |
1681 | #define __ALPHA__ 1 | |
1682 | _ACEOF | |
1683 | ||
1684 | fi | |
1685 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1686 | ;; | |
1687 | *-*-gnu* ) | |
1688 | USE_GNU=1 | |
1689 | cat >>confdefs.h <<\_ACEOF | |
1690 | #define __GNU__ 1 | |
1691 | _ACEOF | |
1692 | ||
1693 | TMP=`uname -m` | |
1694 | if test "x$TMP" = "xalpha"; then | |
1695 | USE_ALPHA=1 | |
1696 | cat >>confdefs.h <<\_ACEOF | |
1697 | #define __ALPHA__ 1 | |
1698 | _ACEOF | |
1699 | ||
1700 | fi | |
1701 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1702 | ;; | |
1703 | *-*-irix5* | *-*-irix6* ) | |
1704 | USE_SGI=1 | |
1705 | USE_SVR4=1 | |
1706 | cat >>confdefs.h <<\_ACEOF | |
1707 | #define __SGI__ 1 | |
1708 | _ACEOF | |
1709 | ||
1710 | cat >>confdefs.h <<\_ACEOF | |
1711 | #define __SVR4__ 1 | |
1712 | _ACEOF | |
1713 | ||
1714 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1715 | ;; | |
1716 | *-*-solaris2* ) | |
1717 | USE_SUN=1 | |
1718 | USE_SOLARIS=1 | |
1719 | USE_SVR4=1 | |
1720 | cat >>confdefs.h <<\_ACEOF | |
1721 | #define __SUN__ 1 | |
1722 | _ACEOF | |
1723 | ||
1724 | cat >>confdefs.h <<\_ACEOF | |
1725 | #define __SOLARIS__ 1 | |
1726 | _ACEOF | |
1727 | ||
1728 | cat >>confdefs.h <<\_ACEOF | |
1729 | #define __SVR4__ 1 | |
1730 | _ACEOF | |
1731 | ||
1732 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1733 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1734 | ;; | |
1735 | *-*-sunos4* ) | |
1736 | USE_SUN=1 | |
1737 | USE_SUNOS=1 | |
1738 | USE_BSD=1 | |
1739 | cat >>confdefs.h <<\_ACEOF | |
1740 | #define __SUN__ 1 | |
1741 | _ACEOF | |
1742 | ||
1743 | cat >>confdefs.h <<\_ACEOF | |
1744 | #define __SUNOS__ 1 | |
1745 | _ACEOF | |
1746 | ||
1747 | cat >>confdefs.h <<\_ACEOF | |
1748 | #define __BSD__ 1 | |
1749 | _ACEOF | |
1750 | ||
1751 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1752 | ;; | |
1753 | *-*-freebsd*) | |
1754 | USE_BSD=1 | |
1755 | USE_FREEBSD=1 | |
1756 | cat >>confdefs.h <<\_ACEOF | |
1757 | #define __FREEBSD__ 1 | |
1758 | _ACEOF | |
1759 | ||
1760 | cat >>confdefs.h <<\_ACEOF | |
1761 | #define __BSD__ 1 | |
1762 | _ACEOF | |
1763 | ||
1764 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1765 | ;; | |
1766 | *-*-openbsd*) | |
1767 | USE_BSD=1 | |
1768 | USE_OPENBSD=1 | |
1769 | cat >>confdefs.h <<\_ACEOF | |
1770 | #define __OPENBSD__ 1 | |
1771 | _ACEOF | |
1772 | ||
1773 | cat >>confdefs.h <<\_ACEOF | |
1774 | #define __BSD__ 1 | |
1775 | _ACEOF | |
1776 | ||
1777 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1778 | ;; | |
1779 | *-*-netbsd*) | |
1780 | USE_BSD=1 | |
1781 | USE_NETBSD=1 | |
1782 | cat >>confdefs.h <<\_ACEOF | |
1783 | #define __NETBSD__ 1 | |
1784 | _ACEOF | |
1785 | ||
1786 | cat >>confdefs.h <<\_ACEOF | |
1787 | #define __BSD__ 1 | |
1788 | _ACEOF | |
1789 | ||
1790 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1791 | ;; | |
1792 | *-*-osf* ) | |
1793 | USE_ALPHA=1 | |
1794 | USE_OSF=1 | |
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __ALPHA__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | cat >>confdefs.h <<\_ACEOF | |
1800 | #define __OSF__ 1 | |
1801 | _ACEOF | |
1802 | ||
1803 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1804 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1805 | ;; | |
1806 | *-*-dgux5* ) | |
1807 | USE_ALPHA=1 | |
1808 | USE_SVR4=1 | |
1809 | cat >>confdefs.h <<\_ACEOF | |
1810 | #define __ALPHA__ 1 | |
1811 | _ACEOF | |
1812 | ||
1813 | cat >>confdefs.h <<\_ACEOF | |
1814 | #define __SVR4__ 1 | |
1815 | _ACEOF | |
1816 | ||
1817 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1818 | ;; | |
1819 | *-*-sysv5* ) | |
1820 | USE_SYSV=1 | |
1821 | USE_SVR4=1 | |
1822 | cat >>confdefs.h <<\_ACEOF | |
1823 | #define __SYSV__ 1 | |
1824 | _ACEOF | |
1825 | ||
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __SVR4__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1831 | ;; | |
1832 | *-*-aix* ) | |
1833 | USE_AIX=1 | |
1834 | USE_SYSV=1 | |
1835 | USE_SVR4=1 | |
1836 | SO_SUFFIX=a | |
1837 | cat >>confdefs.h <<\_ACEOF | |
1838 | #define __AIX__ 1 | |
1839 | _ACEOF | |
1840 | ||
1841 | cat >>confdefs.h <<\_ACEOF | |
1842 | #define __SYSV__ 1 | |
1843 | _ACEOF | |
1844 | ||
1845 | cat >>confdefs.h <<\_ACEOF | |
1846 | #define __SVR4__ 1 | |
1847 | _ACEOF | |
1848 | ||
1849 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1850 | ;; | |
1851 | ||
1852 | *-*-*UnixWare*) | |
1853 | USE_SYSV=1 | |
1854 | USE_SVR4=1 | |
1855 | USE_UNIXWARE=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __UNIXWARE__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | ;; | |
1861 | ||
1862 | *-*-cygwin* | *-*-mingw32* ) | |
1863 | SO_SUFFIX=dll | |
1864 | PROGRAM_EXT=".exe" | |
1865 | RESCOMP=windres | |
1866 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1867 | ;; | |
1868 | ||
1869 | *-pc-msdosdjgpp ) | |
1870 | USE_UNIX=0 | |
1871 | USE_DOS=1 | |
1872 | cat >>confdefs.h <<\_ACEOF | |
1873 | #define __DOS__ 1 | |
1874 | _ACEOF | |
1875 | ||
1876 | PROGRAM_EXT=".exe" | |
1877 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1878 | LIBS="$LIBS -lstdc++" | |
1879 | ;; | |
1880 | ||
1881 | *-pc-os2_emx | *-pc-os2-emx ) | |
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __EMX__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | PROGRAM_EXT=".exe" | |
1887 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1888 | ;; | |
1889 | ||
1890 | powerpc-*-darwin* ) | |
1891 | USE_BSD=1 | |
1892 | USE_DARWIN=1 | |
1893 | SO_SUFFIX=dylib | |
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __BSD__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __DARWIN__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __POWERPC__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define TARGET_CARBON 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1911 | ;; | |
1912 | ||
1913 | *-*-beos* ) | |
1914 | USE_BEOS=1 | |
1915 | cat >>confdefs.h <<\_ACEOF | |
1916 | #define __BEOS__ 1 | |
1917 | _ACEOF | |
1918 | ||
1919 | ;; | |
1920 | ||
1921 | *) | |
1922 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1923 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1924 | { (exit 1); exit 1; }; } | |
1925 | esac | |
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | wx_arg_cache_file="configarg.cache" | |
1931 | echo "loading argument cache $wx_arg_cache_file" | |
1932 | rm -f ${wx_arg_cache_file}.tmp | |
1933 | touch ${wx_arg_cache_file}.tmp | |
1934 | touch ${wx_arg_cache_file} | |
1935 | ||
1936 | ||
1937 | DEBUG_CONFIGURE=0 | |
1938 | if test $DEBUG_CONFIGURE = 1; then | |
1939 | DEFAULT_wxUSE_UNIVERSAL=no | |
1940 | DEFAULT_wxUSE_STL=no | |
1941 | ||
1942 | DEFAULT_wxUSE_NANOX=no | |
1943 | ||
1944 | DEFAULT_wxUSE_THREADS=yes | |
1945 | ||
1946 | DEFAULT_wxUSE_SHARED=yes | |
1947 | DEFAULT_wxUSE_OPTIMISE=no | |
1948 | DEFAULT_wxUSE_PROFILE=no | |
1949 | DEFAULT_wxUSE_NO_DEPS=no | |
1950 | DEFAULT_wxUSE_NO_RTTI=no | |
1951 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1952 | DEFAULT_wxUSE_PERMISSIVE=no | |
1953 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1954 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1955 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1956 | DEFAULT_wxUSE_MEM_TRACING=no | |
1957 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1958 | DEFAULT_wxUSE_DMALLOC=no | |
1959 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1960 | ||
1961 | DEFAULT_wxUSE_LOG=yes | |
1962 | DEFAULT_wxUSE_LOGWINDOW=no | |
1963 | DEFAULT_wxUSE_LOGGUI=no | |
1964 | DEFAULT_wxUSE_LOGDIALOG=no | |
1965 | ||
1966 | DEFAULT_wxUSE_GUI=yes | |
1967 | DEFAULT_wxUSE_CONTROLS=no | |
1968 | ||
1969 | DEFAULT_wxUSE_REGEX=no | |
1970 | DEFAULT_wxUSE_ZLIB=no | |
1971 | DEFAULT_wxUSE_LIBPNG=no | |
1972 | DEFAULT_wxUSE_LIBJPEG=no | |
1973 | DEFAULT_wxUSE_LIBTIFF=no | |
1974 | DEFAULT_wxUSE_ODBC=no | |
1975 | DEFAULT_wxUSE_OPENGL=no | |
1976 | ||
1977 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
1978 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
1979 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1980 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
1981 | DEFAULT_wxUSE_DATETIME=no | |
1982 | DEFAULT_wxUSE_TIMER=no | |
1983 | DEFAULT_wxUSE_STOPWATCH=no | |
1984 | DEFAULT_wxUSE_FILE=no | |
1985 | DEFAULT_wxUSE_FFILE=no | |
1986 | DEFAULT_wxUSE_TEXTBUFFER=no | |
1987 | DEFAULT_wxUSE_TEXTFILE=no | |
1988 | DEFAULT_wxUSE_WAVE=no | |
1989 | DEFAULT_wxUSE_INTL=no | |
1990 | DEFAULT_wxUSE_CONFIG=no | |
1991 | DEFAULT_wxUSE_FONTMAP=no | |
1992 | DEFAULT_wxUSE_STREAMS=no | |
1993 | DEFAULT_wxUSE_SOCKETS=no | |
1994 | DEFAULT_wxUSE_OLE=no | |
1995 | DEFAULT_wxUSE_DATAOBJ=no | |
1996 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1997 | DEFAULT_wxUSE_JOYSTICK=no | |
1998 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1999 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2000 | DEFAULT_wxUSE_LONGLONG=no | |
2001 | DEFAULT_wxUSE_GEOMETRY=no | |
2002 | ||
2003 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2004 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2005 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2006 | ||
2007 | DEFAULT_wxUSE_CLIPBOARD=no | |
2008 | DEFAULT_wxUSE_TOOLTIPS=no | |
2009 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2010 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2011 | DEFAULT_wxUSE_SPLINES=no | |
2012 | ||
2013 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2014 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2015 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2016 | ||
2017 | DEFAULT_wxUSE_RESOURCES=no | |
2018 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2019 | DEFAULT_wxUSE_IPC=no | |
2020 | DEFAULT_wxUSE_HELP=no | |
2021 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2022 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2023 | DEFAULT_wxUSE_TREELAYOUT=no | |
2024 | DEFAULT_wxUSE_METAFILE=no | |
2025 | DEFAULT_wxUSE_MIMETYPE=no | |
2026 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2027 | DEFAULT_wxUSE_PROTOCOL=no | |
2028 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2029 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2030 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2031 | DEFAULT_wxUSE_URL=no | |
2032 | ||
2033 | DEFAULT_wxUSE_COMMONDLGS=no | |
2034 | DEFAULT_wxUSE_CHOICEDLG=no | |
2035 | DEFAULT_wxUSE_COLOURDLG=no | |
2036 | DEFAULT_wxUSE_DIRDLG=no | |
2037 | DEFAULT_wxUSE_FILEDLG=no | |
2038 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2039 | DEFAULT_wxUSE_FONTDLG=no | |
2040 | DEFAULT_wxUSE_MSGDLG=no | |
2041 | DEFAULT_wxUSE_NUMBERDLG=no | |
2042 | DEFAULT_wxUSE_TEXTDLG=no | |
2043 | DEFAULT_wxUSE_SPLASH=no | |
2044 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2045 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2046 | DEFAULT_wxUSE_WIZARDDLG=no | |
2047 | ||
2048 | DEFAULT_wxUSE_MENUS=no | |
2049 | DEFAULT_wxUSE_MINIFRAME=no | |
2050 | DEFAULT_wxUSE_HTML=no | |
2051 | DEFAULT_wxUSE_FILESYSTEM=no | |
2052 | DEFAULT_wxUSE_FS_INET=no | |
2053 | DEFAULT_wxUSE_FS_ZIP=no | |
2054 | DEFAULT_wxUSE_BUSYINFO=no | |
2055 | DEFAULT_wxUSE_ZIPSTREAM=no | |
2056 | DEFAULT_wxUSE_VALIDATORS=no | |
2057 | ||
2058 | DEFAULT_wxUSE_ACCEL=no | |
2059 | DEFAULT_wxUSE_BUTTON=no | |
2060 | DEFAULT_wxUSE_BMPBUTTON=no | |
2061 | DEFAULT_wxUSE_CALCTRL=no | |
2062 | DEFAULT_wxUSE_CARET=no | |
2063 | DEFAULT_wxUSE_CHECKBOX=no | |
2064 | DEFAULT_wxUSE_CHECKLST=no | |
2065 | DEFAULT_wxUSE_CHOICE=no | |
2066 | DEFAULT_wxUSE_COMBOBOX=no | |
2067 | DEFAULT_wxUSE_DISPLAY=no | |
2068 | DEFAULT_wxUSE_GAUGE=no | |
2069 | DEFAULT_wxUSE_GRID=no | |
2070 | DEFAULT_wxUSE_IMAGLIST=no | |
2071 | DEFAULT_wxUSE_LISTBOX=no | |
2072 | DEFAULT_wxUSE_LISTCTRL=no | |
2073 | DEFAULT_wxUSE_NOTEBOOK=no | |
2074 | DEFAULT_wxUSE_RADIOBOX=no | |
2075 | DEFAULT_wxUSE_RADIOBTN=no | |
2076 | DEFAULT_wxUSE_SASH=no | |
2077 | DEFAULT_wxUSE_SCROLLBAR=no | |
2078 | DEFAULT_wxUSE_SLIDER=no | |
2079 | DEFAULT_wxUSE_SPINBTN=no | |
2080 | DEFAULT_wxUSE_SPINCTRL=no | |
2081 | DEFAULT_wxUSE_SPLITTER=no | |
2082 | DEFAULT_wxUSE_STATBMP=no | |
2083 | DEFAULT_wxUSE_STATBOX=no | |
2084 | DEFAULT_wxUSE_STATLINE=no | |
2085 | DEFAULT_wxUSE_STATTEXT=no | |
2086 | DEFAULT_wxUSE_STATUSBAR=yes | |
2087 | DEFAULT_wxUSE_TABDIALOG=no | |
2088 | DEFAULT_wxUSE_TEXTCTRL=no | |
2089 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2090 | DEFAULT_wxUSE_TOOLBAR=no | |
2091 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2092 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2093 | DEFAULT_wxUSE_TREECTRL=no | |
2094 | DEFAULT_wxUSE_POPUPWIN=no | |
2095 | DEFAULT_wxUSE_TIPWINDOW=no | |
2096 | ||
2097 | DEFAULT_wxUSE_UNICODE=no | |
2098 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2099 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2100 | ||
2101 | DEFAULT_wxUSE_PALETTE=no | |
2102 | DEFAULT_wxUSE_IMAGE=no | |
2103 | DEFAULT_wxUSE_GIF=no | |
2104 | DEFAULT_wxUSE_PCX=no | |
2105 | DEFAULT_wxUSE_PNM=no | |
2106 | DEFAULT_wxUSE_IFF=no | |
2107 | DEFAULT_wxUSE_XPM=no | |
2108 | DEFAULT_wxUSE_ICO_CUR=no | |
2109 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2110 | ||
2111 | DEFAULT_wxUSE_MONOLITHIC=yes | |
2112 | else | |
2113 | DEFAULT_wxUSE_UNIVERSAL=no | |
2114 | DEFAULT_wxUSE_STL=no | |
2115 | ||
2116 | DEFAULT_wxUSE_NANOX=no | |
2117 | ||
2118 | DEFAULT_wxUSE_THREADS=yes | |
2119 | ||
2120 | DEFAULT_wxUSE_SHARED=yes | |
2121 | DEFAULT_wxUSE_OPTIMISE=yes | |
2122 | DEFAULT_wxUSE_PROFILE=no | |
2123 | DEFAULT_wxUSE_NO_DEPS=no | |
2124 | DEFAULT_wxUSE_NO_RTTI=no | |
2125 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2126 | DEFAULT_wxUSE_PERMISSIVE=no | |
2127 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2128 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2129 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2130 | DEFAULT_wxUSE_MEM_TRACING=no | |
2131 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2132 | DEFAULT_wxUSE_DMALLOC=no | |
2133 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2134 | ||
2135 | DEFAULT_wxUSE_LOG=yes | |
2136 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2137 | DEFAULT_wxUSE_LOGGUI=yes | |
2138 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2139 | ||
2140 | DEFAULT_wxUSE_GUI=yes | |
2141 | ||
2142 | DEFAULT_wxUSE_REGEX=yes | |
2143 | DEFAULT_wxUSE_ZLIB=yes | |
2144 | DEFAULT_wxUSE_LIBPNG=yes | |
2145 | DEFAULT_wxUSE_LIBJPEG=yes | |
2146 | DEFAULT_wxUSE_LIBTIFF=yes | |
2147 | DEFAULT_wxUSE_ODBC=no | |
2148 | DEFAULT_wxUSE_OPENGL=no | |
2149 | ||
2150 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2151 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2152 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2153 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2154 | DEFAULT_wxUSE_DATETIME=yes | |
2155 | DEFAULT_wxUSE_TIMER=yes | |
2156 | DEFAULT_wxUSE_STOPWATCH=yes | |
2157 | DEFAULT_wxUSE_FILE=yes | |
2158 | DEFAULT_wxUSE_FFILE=yes | |
2159 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2160 | DEFAULT_wxUSE_TEXTFILE=yes | |
2161 | DEFAULT_wxUSE_WAVE=no | |
2162 | DEFAULT_wxUSE_INTL=yes | |
2163 | DEFAULT_wxUSE_CONFIG=yes | |
2164 | DEFAULT_wxUSE_FONTMAP=yes | |
2165 | DEFAULT_wxUSE_STREAMS=yes | |
2166 | DEFAULT_wxUSE_SOCKETS=yes | |
2167 | DEFAULT_wxUSE_OLE=yes | |
2168 | DEFAULT_wxUSE_DATAOBJ=yes | |
2169 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2170 | DEFAULT_wxUSE_JOYSTICK=yes | |
2171 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2172 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2173 | DEFAULT_wxUSE_LONGLONG=yes | |
2174 | DEFAULT_wxUSE_GEOMETRY=yes | |
2175 | ||
2176 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2177 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2178 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2179 | ||
2180 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2181 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2182 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2183 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2184 | DEFAULT_wxUSE_SPLINES=yes | |
2185 | ||
2186 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2187 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2188 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2189 | ||
2190 | DEFAULT_wxUSE_RESOURCES=no | |
2191 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2192 | DEFAULT_wxUSE_IPC=yes | |
2193 | DEFAULT_wxUSE_HELP=yes | |
2194 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2195 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2196 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2197 | DEFAULT_wxUSE_METAFILE=yes | |
2198 | DEFAULT_wxUSE_MIMETYPE=yes | |
2199 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2200 | DEFAULT_wxUSE_PROTOCOL=yes | |
2201 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2202 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2203 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2204 | DEFAULT_wxUSE_URL=yes | |
2205 | ||
2206 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2207 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2208 | DEFAULT_wxUSE_COLOURDLG=yes | |
2209 | DEFAULT_wxUSE_DIRDLG=yes | |
2210 | DEFAULT_wxUSE_FILEDLG=yes | |
2211 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2212 | DEFAULT_wxUSE_FONTDLG=yes | |
2213 | DEFAULT_wxUSE_MSGDLG=yes | |
2214 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2215 | DEFAULT_wxUSE_TEXTDLG=yes | |
2216 | DEFAULT_wxUSE_SPLASH=yes | |
2217 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2218 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2219 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2220 | ||
2221 | DEFAULT_wxUSE_MENUS=yes | |
2222 | DEFAULT_wxUSE_MINIFRAME=yes | |
2223 | DEFAULT_wxUSE_HTML=yes | |
2224 | DEFAULT_wxUSE_FILESYSTEM=yes | |
2225 | DEFAULT_wxUSE_FS_INET=yes | |
2226 | DEFAULT_wxUSE_FS_ZIP=yes | |
2227 | DEFAULT_wxUSE_BUSYINFO=yes | |
2228 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2229 | DEFAULT_wxUSE_VALIDATORS=yes | |
2230 | ||
2231 | DEFAULT_wxUSE_ACCEL=yes | |
2232 | DEFAULT_wxUSE_BUTTON=yes | |
2233 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2234 | DEFAULT_wxUSE_CALCTRL=yes | |
2235 | DEFAULT_wxUSE_CARET=yes | |
2236 | DEFAULT_wxUSE_CHECKBOX=yes | |
2237 | DEFAULT_wxUSE_CHECKLST=yes | |
2238 | DEFAULT_wxUSE_CHOICE=yes | |
2239 | DEFAULT_wxUSE_COMBOBOX=yes | |
2240 | DEFAULT_wxUSE_DISPLAY=no | |
2241 | DEFAULT_wxUSE_GAUGE=yes | |
2242 | DEFAULT_wxUSE_GRID=yes | |
2243 | DEFAULT_wxUSE_IMAGLIST=yes | |
2244 | DEFAULT_wxUSE_LISTBOX=yes | |
2245 | DEFAULT_wxUSE_LISTCTRL=yes | |
2246 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2247 | DEFAULT_wxUSE_RADIOBOX=yes | |
2248 | DEFAULT_wxUSE_RADIOBTN=yes | |
2249 | DEFAULT_wxUSE_SASH=yes | |
2250 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2251 | DEFAULT_wxUSE_SLIDER=yes | |
2252 | DEFAULT_wxUSE_SPINBTN=yes | |
2253 | DEFAULT_wxUSE_SPINCTRL=yes | |
2254 | DEFAULT_wxUSE_SPLITTER=yes | |
2255 | DEFAULT_wxUSE_STATBMP=yes | |
2256 | DEFAULT_wxUSE_STATBOX=yes | |
2257 | DEFAULT_wxUSE_STATLINE=yes | |
2258 | DEFAULT_wxUSE_STATTEXT=yes | |
2259 | DEFAULT_wxUSE_STATUSBAR=yes | |
2260 | DEFAULT_wxUSE_TABDIALOG=no | |
2261 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2262 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2263 | DEFAULT_wxUSE_TOOLBAR=yes | |
2264 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2265 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2266 | DEFAULT_wxUSE_TREECTRL=yes | |
2267 | DEFAULT_wxUSE_POPUPWIN=yes | |
2268 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2269 | ||
2270 | DEFAULT_wxUSE_UNICODE=no | |
2271 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2272 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2273 | ||
2274 | DEFAULT_wxUSE_PALETTE=yes | |
2275 | DEFAULT_wxUSE_IMAGE=yes | |
2276 | DEFAULT_wxUSE_GIF=yes | |
2277 | DEFAULT_wxUSE_PCX=yes | |
2278 | DEFAULT_wxUSE_IFF=no | |
2279 | DEFAULT_wxUSE_PNM=yes | |
2280 | DEFAULT_wxUSE_XPM=yes | |
2281 | DEFAULT_wxUSE_ICO_CUR=yes | |
2282 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2283 | ||
2284 | DEFAULT_wxUSE_MONOLITHIC=yes | |
2285 | fi | |
2286 | ||
2287 | ||
2288 | ||
2289 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2290 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2291 | if test "x$LINE" != "x" ; then | |
2292 | has_toolkit_in_cache=1 | |
2293 | eval "DEFAULT_$LINE" | |
2294 | eval "CACHE_$toolkit=1" | |
2295 | fi | |
2296 | done | |
2297 | ||
2298 | ||
2299 | ||
2300 | enablestring= | |
2301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2302 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2303 | no_cache=0 | |
2304 | # Check whether --enable-gui or --disable-gui was given. | |
2305 | if test "${enable_gui+set}" = set; then | |
2306 | enableval="$enable_gui" | |
2307 | ||
2308 | if test "$enableval" = yes; then | |
2309 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2310 | else | |
2311 | ac_cv_use_gui='wxUSE_GUI=no' | |
2312 | fi | |
2313 | ||
2314 | else | |
2315 | ||
2316 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2317 | if test "x$LINE" != x ; then | |
2318 | eval "DEFAULT_$LINE" | |
2319 | else | |
2320 | no_cache=1 | |
2321 | fi | |
2322 | ||
2323 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2324 | ||
2325 | fi; | |
2326 | ||
2327 | eval "$ac_cv_use_gui" | |
2328 | if test "$no_cache" != 1; then | |
2329 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2330 | fi | |
2331 | ||
2332 | if test "$wxUSE_GUI" = yes; then | |
2333 | echo "$as_me:$LINENO: result: yes" >&5 | |
2334 | echo "${ECHO_T}yes" >&6 | |
2335 | else | |
2336 | echo "$as_me:$LINENO: result: no" >&5 | |
2337 | echo "${ECHO_T}no" >&6 | |
2338 | fi | |
2339 | ||
2340 | ||
2341 | enablestring= | |
2342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2343 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2344 | no_cache=0 | |
2345 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2346 | if test "${enable_monolithic+set}" = set; then | |
2347 | enableval="$enable_monolithic" | |
2348 | ||
2349 | if test "$enableval" = yes; then | |
2350 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2351 | else | |
2352 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2353 | fi | |
2354 | ||
2355 | else | |
2356 | ||
2357 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2358 | if test "x$LINE" != x ; then | |
2359 | eval "DEFAULT_$LINE" | |
2360 | else | |
2361 | no_cache=1 | |
2362 | fi | |
2363 | ||
2364 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2365 | ||
2366 | fi; | |
2367 | ||
2368 | eval "$ac_cv_use_monolithic" | |
2369 | if test "$no_cache" != 1; then | |
2370 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2371 | fi | |
2372 | ||
2373 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2374 | echo "$as_me:$LINENO: result: yes" >&5 | |
2375 | echo "${ECHO_T}yes" >&6 | |
2376 | else | |
2377 | echo "$as_me:$LINENO: result: no" >&5 | |
2378 | echo "${ECHO_T}no" >&6 | |
2379 | fi | |
2380 | ||
2381 | ||
2382 | if test "$wxUSE_GUI" = "yes"; then | |
2383 | ||
2384 | ||
2385 | enablestring= | |
2386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2387 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2388 | no_cache=0 | |
2389 | # Check whether --enable-universal or --disable-universal was given. | |
2390 | if test "${enable_universal+set}" = set; then | |
2391 | enableval="$enable_universal" | |
2392 | ||
2393 | if test "$enableval" = yes; then | |
2394 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2395 | else | |
2396 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2397 | fi | |
2398 | ||
2399 | else | |
2400 | ||
2401 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2402 | if test "x$LINE" != x ; then | |
2403 | eval "DEFAULT_$LINE" | |
2404 | else | |
2405 | no_cache=1 | |
2406 | fi | |
2407 | ||
2408 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2409 | ||
2410 | fi; | |
2411 | ||
2412 | eval "$ac_cv_use_universal" | |
2413 | if test "$no_cache" != 1; then | |
2414 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2415 | fi | |
2416 | ||
2417 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2418 | echo "$as_me:$LINENO: result: yes" >&5 | |
2419 | echo "${ECHO_T}yes" >&6 | |
2420 | else | |
2421 | echo "$as_me:$LINENO: result: no" >&5 | |
2422 | echo "${ECHO_T}no" >&6 | |
2423 | fi | |
2424 | ||
2425 | ||
2426 | # Check whether --with-gtk or --without-gtk was given. | |
2427 | if test "${with_gtk+set}" = set; then | |
2428 | withval="$with_gtk" | |
2429 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2430 | fi; | |
2431 | ||
2432 | # Check whether --with-motif or --without-motif was given. | |
2433 | if test "${with_motif+set}" = set; then | |
2434 | withval="$with_motif" | |
2435 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2436 | fi; | |
2437 | ||
2438 | # Check whether --with-mac or --without-mac was given. | |
2439 | if test "${with_mac+set}" = set; then | |
2440 | withval="$with_mac" | |
2441 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2442 | fi; | |
2443 | ||
2444 | # Check whether --with-cocoa or --without-cocoa was given. | |
2445 | if test "${with_cocoa+set}" = set; then | |
2446 | withval="$with_cocoa" | |
2447 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2448 | fi; | |
2449 | ||
2450 | # Check whether --with-wine or --without-wine was given. | |
2451 | if test "${with_wine+set}" = set; then | |
2452 | withval="$with_wine" | |
2453 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2454 | fi; | |
2455 | ||
2456 | # Check whether --with-msw or --without-msw was given. | |
2457 | if test "${with_msw+set}" = set; then | |
2458 | withval="$with_msw" | |
2459 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2460 | fi; | |
2461 | ||
2462 | # Check whether --with-pm or --without-pm was given. | |
2463 | if test "${with_pm+set}" = set; then | |
2464 | withval="$with_pm" | |
2465 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2466 | fi; | |
2467 | ||
2468 | # Check whether --with-mgl or --without-mgl was given. | |
2469 | if test "${with_mgl+set}" = set; then | |
2470 | withval="$with_mgl" | |
2471 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2472 | fi; | |
2473 | ||
2474 | # Check whether --with-microwin or --without-microwin was given. | |
2475 | if test "${with_microwin+set}" = set; then | |
2476 | withval="$with_microwin" | |
2477 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2478 | fi; | |
2479 | ||
2480 | # Check whether --with-x11 or --without-x11 was given. | |
2481 | if test "${with_x11+set}" = set; then | |
2482 | withval="$with_x11" | |
2483 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2484 | fi; | |
2485 | ||
2486 | enablestring= | |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2489 | no_cache=0 | |
2490 | # Check whether --enable-nanox or --disable-nanox was given. | |
2491 | if test "${enable_nanox+set}" = set; then | |
2492 | enableval="$enable_nanox" | |
2493 | ||
2494 | if test "$enableval" = yes; then | |
2495 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2496 | else | |
2497 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2498 | fi | |
2499 | ||
2500 | else | |
2501 | ||
2502 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
2509 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2510 | ||
2511 | fi; | |
2512 | ||
2513 | eval "$ac_cv_use_nanox" | |
2514 | if test "$no_cache" != 1; then | |
2515 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2516 | fi | |
2517 | ||
2518 | if test "$wxUSE_NANOX" = yes; then | |
2519 | echo "$as_me:$LINENO: result: yes" >&5 | |
2520 | echo "${ECHO_T}yes" >&6 | |
2521 | else | |
2522 | echo "$as_me:$LINENO: result: no" >&5 | |
2523 | echo "${ECHO_T}no" >&6 | |
2524 | fi | |
2525 | ||
2526 | ||
2527 | ||
2528 | enablestring= | |
2529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2530 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2531 | no_cache=0 | |
2532 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2533 | if test "${enable_gtk2+set}" = set; then | |
2534 | enableval="$enable_gtk2" | |
2535 | ||
2536 | if test "$enableval" = yes; then | |
2537 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2538 | else | |
2539 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2540 | fi | |
2541 | ||
2542 | else | |
2543 | ||
2544 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2552 | ||
2553 | fi; | |
2554 | ||
2555 | eval "$ac_cv_use_gtk2" | |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_GTK2" = yes; then | |
2561 | echo "$as_me:$LINENO: result: yes" >&5 | |
2562 | echo "${ECHO_T}yes" >&6 | |
2563 | else | |
2564 | echo "$as_me:$LINENO: result: no" >&5 | |
2565 | echo "${ECHO_T}no" >&6 | |
2566 | fi | |
2567 | ||
2568 | ||
2569 | ||
2570 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2571 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2572 | no_cache=0 | |
2573 | ||
2574 | # Check whether --with-libpng or --without-libpng was given. | |
2575 | if test "${with_libpng+set}" = set; then | |
2576 | withval="$with_libpng" | |
2577 | ||
2578 | if test "$withval" = yes; then | |
2579 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2580 | elif test "$withval" = no; then | |
2581 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2582 | elif test "$withval" = sys; then | |
2583 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2584 | elif test "$withval" = builtin; then | |
2585 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2586 | else | |
2587 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2588 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2589 | { (exit 1); exit 1; }; } | |
2590 | fi | |
2591 | ||
2592 | else | |
2593 | ||
2594 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2595 | if test "x$LINE" != x ; then | |
2596 | eval "DEFAULT_$LINE" | |
2597 | else | |
2598 | no_cache=1 | |
2599 | fi | |
2600 | ||
2601 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2602 | ||
2603 | fi; | |
2604 | ||
2605 | eval "$ac_cv_use_libpng" | |
2606 | if test "$no_cache" != 1; then | |
2607 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2608 | fi | |
2609 | ||
2610 | if test "$wxUSE_LIBPNG" = yes; then | |
2611 | echo "$as_me:$LINENO: result: yes" >&5 | |
2612 | echo "${ECHO_T}yes" >&6 | |
2613 | elif test "$wxUSE_LIBPNG" = no; then | |
2614 | echo "$as_me:$LINENO: result: no" >&5 | |
2615 | echo "${ECHO_T}no" >&6 | |
2616 | elif test "$wxUSE_LIBPNG" = sys; then | |
2617 | echo "$as_me:$LINENO: result: system version" >&5 | |
2618 | echo "${ECHO_T}system version" >&6 | |
2619 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2620 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2621 | echo "${ECHO_T}builtin version" >&6 | |
2622 | else | |
2623 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2624 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2625 | { (exit 1); exit 1; }; } | |
2626 | fi | |
2627 | ||
2628 | ||
2629 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2630 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2631 | no_cache=0 | |
2632 | ||
2633 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2634 | if test "${with_libjpeg+set}" = set; then | |
2635 | withval="$with_libjpeg" | |
2636 | ||
2637 | if test "$withval" = yes; then | |
2638 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2639 | elif test "$withval" = no; then | |
2640 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2641 | elif test "$withval" = sys; then | |
2642 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2643 | elif test "$withval" = builtin; then | |
2644 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2645 | else | |
2646 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2647 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2648 | { (exit 1); exit 1; }; } | |
2649 | fi | |
2650 | ||
2651 | else | |
2652 | ||
2653 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2654 | if test "x$LINE" != x ; then | |
2655 | eval "DEFAULT_$LINE" | |
2656 | else | |
2657 | no_cache=1 | |
2658 | fi | |
2659 | ||
2660 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2661 | ||
2662 | fi; | |
2663 | ||
2664 | eval "$ac_cv_use_libjpeg" | |
2665 | if test "$no_cache" != 1; then | |
2666 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2667 | fi | |
2668 | ||
2669 | if test "$wxUSE_LIBJPEG" = yes; then | |
2670 | echo "$as_me:$LINENO: result: yes" >&5 | |
2671 | echo "${ECHO_T}yes" >&6 | |
2672 | elif test "$wxUSE_LIBJPEG" = no; then | |
2673 | echo "$as_me:$LINENO: result: no" >&5 | |
2674 | echo "${ECHO_T}no" >&6 | |
2675 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2676 | echo "$as_me:$LINENO: result: system version" >&5 | |
2677 | echo "${ECHO_T}system version" >&6 | |
2678 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2679 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2680 | echo "${ECHO_T}builtin version" >&6 | |
2681 | else | |
2682 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2683 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2684 | { (exit 1); exit 1; }; } | |
2685 | fi | |
2686 | ||
2687 | ||
2688 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2689 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2690 | no_cache=0 | |
2691 | ||
2692 | # Check whether --with-libtiff or --without-libtiff was given. | |
2693 | if test "${with_libtiff+set}" = set; then | |
2694 | withval="$with_libtiff" | |
2695 | ||
2696 | if test "$withval" = yes; then | |
2697 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2698 | elif test "$withval" = no; then | |
2699 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2700 | elif test "$withval" = sys; then | |
2701 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2702 | elif test "$withval" = builtin; then | |
2703 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2704 | else | |
2705 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2706 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2707 | { (exit 1); exit 1; }; } | |
2708 | fi | |
2709 | ||
2710 | else | |
2711 | ||
2712 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2713 | if test "x$LINE" != x ; then | |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
2719 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2720 | ||
2721 | fi; | |
2722 | ||
2723 | eval "$ac_cv_use_libtiff" | |
2724 | if test "$no_cache" != 1; then | |
2725 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2726 | fi | |
2727 | ||
2728 | if test "$wxUSE_LIBTIFF" = yes; then | |
2729 | echo "$as_me:$LINENO: result: yes" >&5 | |
2730 | echo "${ECHO_T}yes" >&6 | |
2731 | elif test "$wxUSE_LIBTIFF" = no; then | |
2732 | echo "$as_me:$LINENO: result: no" >&5 | |
2733 | echo "${ECHO_T}no" >&6 | |
2734 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2735 | echo "$as_me:$LINENO: result: system version" >&5 | |
2736 | echo "${ECHO_T}system version" >&6 | |
2737 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2738 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2739 | echo "${ECHO_T}builtin version" >&6 | |
2740 | else | |
2741 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2742 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2743 | { (exit 1); exit 1; }; } | |
2744 | fi | |
2745 | ||
2746 | ||
2747 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2748 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
2749 | no_cache=0 | |
2750 | ||
2751 | # Check whether --with-opengl or --without-opengl was given. | |
2752 | if test "${with_opengl+set}" = set; then | |
2753 | withval="$with_opengl" | |
2754 | ||
2755 | if test "$withval" = yes; then | |
2756 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
2757 | else | |
2758 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
2759 | fi | |
2760 | ||
2761 | else | |
2762 | ||
2763 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
2764 | if test "x$LINE" != x ; then | |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
2770 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
2771 | ||
2772 | fi; | |
2773 | ||
2774 | eval "$ac_cv_use_opengl" | |
2775 | if test "$no_cache" != 1; then | |
2776 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
2777 | fi | |
2778 | ||
2779 | if test "$wxUSE_OPENGL" = yes; then | |
2780 | echo "$as_me:$LINENO: result: yes" >&5 | |
2781 | echo "${ECHO_T}yes" >&6 | |
2782 | else | |
2783 | echo "$as_me:$LINENO: result: no" >&5 | |
2784 | echo "${ECHO_T}no" >&6 | |
2785 | fi | |
2786 | ||
2787 | ||
2788 | fi | |
2789 | ||
2790 | ||
2791 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
2792 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
2793 | no_cache=0 | |
2794 | ||
2795 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
2796 | if test "${with_dmalloc+set}" = set; then | |
2797 | withval="$with_dmalloc" | |
2798 | ||
2799 | if test "$withval" = yes; then | |
2800 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
2801 | else | |
2802 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
2803 | fi | |
2804 | ||
2805 | else | |
2806 | ||
2807 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
2808 | if test "x$LINE" != x ; then | |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
2814 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
2815 | ||
2816 | fi; | |
2817 | ||
2818 | eval "$ac_cv_use_dmalloc" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_DMALLOC" = yes; then | |
2824 | echo "$as_me:$LINENO: result: yes" >&5 | |
2825 | echo "${ECHO_T}yes" >&6 | |
2826 | else | |
2827 | echo "$as_me:$LINENO: result: no" >&5 | |
2828 | echo "${ECHO_T}no" >&6 | |
2829 | fi | |
2830 | ||
2831 | ||
2832 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2833 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
2834 | no_cache=0 | |
2835 | ||
2836 | # Check whether --with-regex or --without-regex was given. | |
2837 | if test "${with_regex+set}" = set; then | |
2838 | withval="$with_regex" | |
2839 | ||
2840 | if test "$withval" = yes; then | |
2841 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2842 | elif test "$withval" = no; then | |
2843 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2844 | elif test "$withval" = sys; then | |
2845 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2846 | elif test "$withval" = builtin; then | |
2847 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
2848 | else | |
2849 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
2850 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2851 | { (exit 1); exit 1; }; } | |
2852 | fi | |
2853 | ||
2854 | else | |
2855 | ||
2856 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2864 | ||
2865 | fi; | |
2866 | ||
2867 | eval "$ac_cv_use_regex" | |
2868 | if test "$no_cache" != 1; then | |
2869 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2870 | fi | |
2871 | ||
2872 | if test "$wxUSE_REGEX" = yes; then | |
2873 | echo "$as_me:$LINENO: result: yes" >&5 | |
2874 | echo "${ECHO_T}yes" >&6 | |
2875 | elif test "$wxUSE_REGEX" = no; then | |
2876 | echo "$as_me:$LINENO: result: no" >&5 | |
2877 | echo "${ECHO_T}no" >&6 | |
2878 | elif test "$wxUSE_REGEX" = sys; then | |
2879 | echo "$as_me:$LINENO: result: system version" >&5 | |
2880 | echo "${ECHO_T}system version" >&6 | |
2881 | elif test "$wxUSE_REGEX" = builtin; then | |
2882 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2883 | echo "${ECHO_T}builtin version" >&6 | |
2884 | else | |
2885 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
2886 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
2888 | fi | |
2889 | ||
2890 | ||
2891 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2892 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
2893 | no_cache=0 | |
2894 | ||
2895 | # Check whether --with-zlib or --without-zlib was given. | |
2896 | if test "${with_zlib+set}" = set; then | |
2897 | withval="$with_zlib" | |
2898 | ||
2899 | if test "$withval" = yes; then | |
2900 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
2901 | elif test "$withval" = no; then | |
2902 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
2903 | elif test "$withval" = sys; then | |
2904 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2905 | elif test "$withval" = builtin; then | |
2906 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
2907 | else | |
2908 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
2909 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2910 | { (exit 1); exit 1; }; } | |
2911 | fi | |
2912 | ||
2913 | else | |
2914 | ||
2915 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
2916 | if test "x$LINE" != x ; then | |
2917 | eval "DEFAULT_$LINE" | |
2918 | else | |
2919 | no_cache=1 | |
2920 | fi | |
2921 | ||
2922 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
2923 | ||
2924 | fi; | |
2925 | ||
2926 | eval "$ac_cv_use_zlib" | |
2927 | if test "$no_cache" != 1; then | |
2928 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
2929 | fi | |
2930 | ||
2931 | if test "$wxUSE_ZLIB" = yes; then | |
2932 | echo "$as_me:$LINENO: result: yes" >&5 | |
2933 | echo "${ECHO_T}yes" >&6 | |
2934 | elif test "$wxUSE_ZLIB" = no; then | |
2935 | echo "$as_me:$LINENO: result: no" >&5 | |
2936 | echo "${ECHO_T}no" >&6 | |
2937 | elif test "$wxUSE_ZLIB" = sys; then | |
2938 | echo "$as_me:$LINENO: result: system version" >&5 | |
2939 | echo "${ECHO_T}system version" >&6 | |
2940 | elif test "$wxUSE_ZLIB" = builtin; then | |
2941 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2942 | echo "${ECHO_T}builtin version" >&6 | |
2943 | else | |
2944 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
2945 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2946 | { (exit 1); exit 1; }; } | |
2947 | fi | |
2948 | ||
2949 | ||
2950 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2951 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
2952 | no_cache=0 | |
2953 | ||
2954 | # Check whether --with-odbc or --without-odbc was given. | |
2955 | if test "${with_odbc+set}" = set; then | |
2956 | withval="$with_odbc" | |
2957 | ||
2958 | if test "$withval" = yes; then | |
2959 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2960 | elif test "$withval" = no; then | |
2961 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2962 | elif test "$withval" = sys; then | |
2963 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2964 | elif test "$withval" = builtin; then | |
2965 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2966 | else | |
2967 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
2968 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2969 | { (exit 1); exit 1; }; } | |
2970 | fi | |
2971 | ||
2972 | else | |
2973 | ||
2974 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2975 | if test "x$LINE" != x ; then | |
2976 | eval "DEFAULT_$LINE" | |
2977 | else | |
2978 | no_cache=1 | |
2979 | fi | |
2980 | ||
2981 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2982 | ||
2983 | fi; | |
2984 | ||
2985 | eval "$ac_cv_use_odbc" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_ODBC" = yes; then | |
2991 | echo "$as_me:$LINENO: result: yes" >&5 | |
2992 | echo "${ECHO_T}yes" >&6 | |
2993 | elif test "$wxUSE_ODBC" = no; then | |
2994 | echo "$as_me:$LINENO: result: no" >&5 | |
2995 | echo "${ECHO_T}no" >&6 | |
2996 | elif test "$wxUSE_ODBC" = sys; then | |
2997 | echo "$as_me:$LINENO: result: system version" >&5 | |
2998 | echo "${ECHO_T}system version" >&6 | |
2999 | elif test "$wxUSE_ODBC" = builtin; then | |
3000 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3001 | echo "${ECHO_T}builtin version" >&6 | |
3002 | else | |
3003 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3004 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3005 | { (exit 1); exit 1; }; } | |
3006 | fi | |
3007 | ||
3008 | ||
3009 | ||
3010 | ||
3011 | enablestring= | |
3012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3013 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3014 | no_cache=0 | |
3015 | # Check whether --enable-shared or --disable-shared was given. | |
3016 | if test "${enable_shared+set}" = set; then | |
3017 | enableval="$enable_shared" | |
3018 | ||
3019 | if test "$enableval" = yes; then | |
3020 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3021 | else | |
3022 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3023 | fi | |
3024 | ||
3025 | else | |
3026 | ||
3027 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3035 | ||
3036 | fi; | |
3037 | ||
3038 | eval "$ac_cv_use_shared" | |
3039 | if test "$no_cache" != 1; then | |
3040 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3041 | fi | |
3042 | ||
3043 | if test "$wxUSE_SHARED" = yes; then | |
3044 | echo "$as_me:$LINENO: result: yes" >&5 | |
3045 | echo "${ECHO_T}yes" >&6 | |
3046 | else | |
3047 | echo "$as_me:$LINENO: result: no" >&5 | |
3048 | echo "${ECHO_T}no" >&6 | |
3049 | fi | |
3050 | ||
3051 | ||
3052 | enablestring= | |
3053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3054 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3055 | no_cache=0 | |
3056 | # Check whether --enable-optimise or --disable-optimise was given. | |
3057 | if test "${enable_optimise+set}" = set; then | |
3058 | enableval="$enable_optimise" | |
3059 | ||
3060 | if test "$enableval" = yes; then | |
3061 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3062 | else | |
3063 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3064 | fi | |
3065 | ||
3066 | else | |
3067 | ||
3068 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3069 | if test "x$LINE" != x ; then | |
3070 | eval "DEFAULT_$LINE" | |
3071 | else | |
3072 | no_cache=1 | |
3073 | fi | |
3074 | ||
3075 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3076 | ||
3077 | fi; | |
3078 | ||
3079 | eval "$ac_cv_use_optimise" | |
3080 | if test "$no_cache" != 1; then | |
3081 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3082 | fi | |
3083 | ||
3084 | if test "$wxUSE_OPTIMISE" = yes; then | |
3085 | echo "$as_me:$LINENO: result: yes" >&5 | |
3086 | echo "${ECHO_T}yes" >&6 | |
3087 | else | |
3088 | echo "$as_me:$LINENO: result: no" >&5 | |
3089 | echo "${ECHO_T}no" >&6 | |
3090 | fi | |
3091 | ||
3092 | ||
3093 | enablestring= | |
3094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3095 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3096 | no_cache=0 | |
3097 | # Check whether --enable-debug or --disable-debug was given. | |
3098 | if test "${enable_debug+set}" = set; then | |
3099 | enableval="$enable_debug" | |
3100 | ||
3101 | if test "$enableval" = yes; then | |
3102 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3103 | else | |
3104 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3105 | fi | |
3106 | ||
3107 | else | |
3108 | ||
3109 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3110 | if test "x$LINE" != x ; then | |
3111 | eval "DEFAULT_$LINE" | |
3112 | else | |
3113 | no_cache=1 | |
3114 | fi | |
3115 | ||
3116 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3117 | ||
3118 | fi; | |
3119 | ||
3120 | eval "$ac_cv_use_debug" | |
3121 | if test "$no_cache" != 1; then | |
3122 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3123 | fi | |
3124 | ||
3125 | if test "$wxUSE_DEBUG" = yes; then | |
3126 | echo "$as_me:$LINENO: result: yes" >&5 | |
3127 | echo "${ECHO_T}yes" >&6 | |
3128 | else | |
3129 | echo "$as_me:$LINENO: result: no" >&5 | |
3130 | echo "${ECHO_T}no" >&6 | |
3131 | fi | |
3132 | ||
3133 | ||
3134 | enablestring= | |
3135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3136 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3137 | no_cache=0 | |
3138 | # Check whether --enable-stl or --disable-stl was given. | |
3139 | if test "${enable_stl+set}" = set; then | |
3140 | enableval="$enable_stl" | |
3141 | ||
3142 | if test "$enableval" = yes; then | |
3143 | ac_cv_use_stl='wxUSE_STL=yes' | |
3144 | else | |
3145 | ac_cv_use_stl='wxUSE_STL=no' | |
3146 | fi | |
3147 | ||
3148 | else | |
3149 | ||
3150 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3151 | if test "x$LINE" != x ; then | |
3152 | eval "DEFAULT_$LINE" | |
3153 | else | |
3154 | no_cache=1 | |
3155 | fi | |
3156 | ||
3157 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3158 | ||
3159 | fi; | |
3160 | ||
3161 | eval "$ac_cv_use_stl" | |
3162 | if test "$no_cache" != 1; then | |
3163 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3164 | fi | |
3165 | ||
3166 | if test "$wxUSE_STL" = yes; then | |
3167 | echo "$as_me:$LINENO: result: yes" >&5 | |
3168 | echo "${ECHO_T}yes" >&6 | |
3169 | else | |
3170 | echo "$as_me:$LINENO: result: no" >&5 | |
3171 | echo "${ECHO_T}no" >&6 | |
3172 | fi | |
3173 | ||
3174 | ||
3175 | if test "$wxUSE_DEBUG" = "yes"; then | |
3176 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3177 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3178 | elif test "$wxUSE_DEBUG" = "no"; then | |
3179 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3180 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3181 | fi | |
3182 | ||
3183 | ||
3184 | enablestring= | |
3185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3186 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3187 | no_cache=0 | |
3188 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3189 | if test "${enable_debug_flag+set}" = set; then | |
3190 | enableval="$enable_debug_flag" | |
3191 | ||
3192 | if test "$enableval" = yes; then | |
3193 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3194 | else | |
3195 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3196 | fi | |
3197 | ||
3198 | else | |
3199 | ||
3200 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3201 | if test "x$LINE" != x ; then | |
3202 | eval "DEFAULT_$LINE" | |
3203 | else | |
3204 | no_cache=1 | |
3205 | fi | |
3206 | ||
3207 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3208 | ||
3209 | fi; | |
3210 | ||
3211 | eval "$ac_cv_use_debug_flag" | |
3212 | if test "$no_cache" != 1; then | |
3213 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3214 | fi | |
3215 | ||
3216 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3217 | echo "$as_me:$LINENO: result: yes" >&5 | |
3218 | echo "${ECHO_T}yes" >&6 | |
3219 | else | |
3220 | echo "$as_me:$LINENO: result: no" >&5 | |
3221 | echo "${ECHO_T}no" >&6 | |
3222 | fi | |
3223 | ||
3224 | ||
3225 | enablestring= | |
3226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3227 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3228 | no_cache=0 | |
3229 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3230 | if test "${enable_debug_info+set}" = set; then | |
3231 | enableval="$enable_debug_info" | |
3232 | ||
3233 | if test "$enableval" = yes; then | |
3234 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3235 | else | |
3236 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3237 | fi | |
3238 | ||
3239 | else | |
3240 | ||
3241 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3249 | ||
3250 | fi; | |
3251 | ||
3252 | eval "$ac_cv_use_debug_info" | |
3253 | if test "$no_cache" != 1; then | |
3254 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3255 | fi | |
3256 | ||
3257 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3258 | echo "$as_me:$LINENO: result: yes" >&5 | |
3259 | echo "${ECHO_T}yes" >&6 | |
3260 | else | |
3261 | echo "$as_me:$LINENO: result: no" >&5 | |
3262 | echo "${ECHO_T}no" >&6 | |
3263 | fi | |
3264 | ||
3265 | ||
3266 | enablestring= | |
3267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3268 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3269 | no_cache=0 | |
3270 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3271 | if test "${enable_debug_gdb+set}" = set; then | |
3272 | enableval="$enable_debug_gdb" | |
3273 | ||
3274 | if test "$enableval" = yes; then | |
3275 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3276 | else | |
3277 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3278 | fi | |
3279 | ||
3280 | else | |
3281 | ||
3282 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3283 | if test "x$LINE" != x ; then | |
3284 | eval "DEFAULT_$LINE" | |
3285 | else | |
3286 | no_cache=1 | |
3287 | fi | |
3288 | ||
3289 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3290 | ||
3291 | fi; | |
3292 | ||
3293 | eval "$ac_cv_use_debug_gdb" | |
3294 | if test "$no_cache" != 1; then | |
3295 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3296 | fi | |
3297 | ||
3298 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3299 | echo "$as_me:$LINENO: result: yes" >&5 | |
3300 | echo "${ECHO_T}yes" >&6 | |
3301 | else | |
3302 | echo "$as_me:$LINENO: result: no" >&5 | |
3303 | echo "${ECHO_T}no" >&6 | |
3304 | fi | |
3305 | ||
3306 | ||
3307 | enablestring= | |
3308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3309 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3310 | no_cache=0 | |
3311 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3312 | if test "${enable_debug_cntxt+set}" = set; then | |
3313 | enableval="$enable_debug_cntxt" | |
3314 | ||
3315 | if test "$enableval" = yes; then | |
3316 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3317 | else | |
3318 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3319 | fi | |
3320 | ||
3321 | else | |
3322 | ||
3323 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3324 | if test "x$LINE" != x ; then | |
3325 | eval "DEFAULT_$LINE" | |
3326 | else | |
3327 | no_cache=1 | |
3328 | fi | |
3329 | ||
3330 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3331 | ||
3332 | fi; | |
3333 | ||
3334 | eval "$ac_cv_use_debug_cntxt" | |
3335 | if test "$no_cache" != 1; then | |
3336 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3337 | fi | |
3338 | ||
3339 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3340 | echo "$as_me:$LINENO: result: yes" >&5 | |
3341 | echo "${ECHO_T}yes" >&6 | |
3342 | else | |
3343 | echo "$as_me:$LINENO: result: no" >&5 | |
3344 | echo "${ECHO_T}no" >&6 | |
3345 | fi | |
3346 | ||
3347 | ||
3348 | enablestring= | |
3349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3350 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3351 | no_cache=0 | |
3352 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3353 | if test "${enable_mem_tracing+set}" = set; then | |
3354 | enableval="$enable_mem_tracing" | |
3355 | ||
3356 | if test "$enableval" = yes; then | |
3357 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3358 | else | |
3359 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3360 | fi | |
3361 | ||
3362 | else | |
3363 | ||
3364 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3365 | if test "x$LINE" != x ; then | |
3366 | eval "DEFAULT_$LINE" | |
3367 | else | |
3368 | no_cache=1 | |
3369 | fi | |
3370 | ||
3371 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3372 | ||
3373 | fi; | |
3374 | ||
3375 | eval "$ac_cv_use_mem_tracing" | |
3376 | if test "$no_cache" != 1; then | |
3377 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3378 | fi | |
3379 | ||
3380 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3381 | echo "$as_me:$LINENO: result: yes" >&5 | |
3382 | echo "${ECHO_T}yes" >&6 | |
3383 | else | |
3384 | echo "$as_me:$LINENO: result: no" >&5 | |
3385 | echo "${ECHO_T}no" >&6 | |
3386 | fi | |
3387 | ||
3388 | ||
3389 | enablestring= | |
3390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3391 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3392 | no_cache=0 | |
3393 | # Check whether --enable-profile or --disable-profile was given. | |
3394 | if test "${enable_profile+set}" = set; then | |
3395 | enableval="$enable_profile" | |
3396 | ||
3397 | if test "$enableval" = yes; then | |
3398 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3399 | else | |
3400 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3401 | fi | |
3402 | ||
3403 | else | |
3404 | ||
3405 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3406 | if test "x$LINE" != x ; then | |
3407 | eval "DEFAULT_$LINE" | |
3408 | else | |
3409 | no_cache=1 | |
3410 | fi | |
3411 | ||
3412 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3413 | ||
3414 | fi; | |
3415 | ||
3416 | eval "$ac_cv_use_profile" | |
3417 | if test "$no_cache" != 1; then | |
3418 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3419 | fi | |
3420 | ||
3421 | if test "$wxUSE_PROFILE" = yes; then | |
3422 | echo "$as_me:$LINENO: result: yes" >&5 | |
3423 | echo "${ECHO_T}yes" >&6 | |
3424 | else | |
3425 | echo "$as_me:$LINENO: result: no" >&5 | |
3426 | echo "${ECHO_T}no" >&6 | |
3427 | fi | |
3428 | ||
3429 | ||
3430 | enablestring= | |
3431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3432 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3433 | no_cache=0 | |
3434 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3435 | if test "${enable_no_rtti+set}" = set; then | |
3436 | enableval="$enable_no_rtti" | |
3437 | ||
3438 | if test "$enableval" = yes; then | |
3439 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3440 | else | |
3441 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3442 | fi | |
3443 | ||
3444 | else | |
3445 | ||
3446 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3447 | if test "x$LINE" != x ; then | |
3448 | eval "DEFAULT_$LINE" | |
3449 | else | |
3450 | no_cache=1 | |
3451 | fi | |
3452 | ||
3453 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3454 | ||
3455 | fi; | |
3456 | ||
3457 | eval "$ac_cv_use_no_rtti" | |
3458 | if test "$no_cache" != 1; then | |
3459 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3460 | fi | |
3461 | ||
3462 | if test "$wxUSE_NO_RTTI" = yes; then | |
3463 | echo "$as_me:$LINENO: result: yes" >&5 | |
3464 | echo "${ECHO_T}yes" >&6 | |
3465 | else | |
3466 | echo "$as_me:$LINENO: result: no" >&5 | |
3467 | echo "${ECHO_T}no" >&6 | |
3468 | fi | |
3469 | ||
3470 | ||
3471 | enablestring= | |
3472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3473 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3474 | no_cache=0 | |
3475 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3476 | if test "${enable_no_exceptions+set}" = set; then | |
3477 | enableval="$enable_no_exceptions" | |
3478 | ||
3479 | if test "$enableval" = yes; then | |
3480 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3481 | else | |
3482 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3483 | fi | |
3484 | ||
3485 | else | |
3486 | ||
3487 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3488 | if test "x$LINE" != x ; then | |
3489 | eval "DEFAULT_$LINE" | |
3490 | else | |
3491 | no_cache=1 | |
3492 | fi | |
3493 | ||
3494 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3495 | ||
3496 | fi; | |
3497 | ||
3498 | eval "$ac_cv_use_no_exceptions" | |
3499 | if test "$no_cache" != 1; then | |
3500 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3501 | fi | |
3502 | ||
3503 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3504 | echo "$as_me:$LINENO: result: yes" >&5 | |
3505 | echo "${ECHO_T}yes" >&6 | |
3506 | else | |
3507 | echo "$as_me:$LINENO: result: no" >&5 | |
3508 | echo "${ECHO_T}no" >&6 | |
3509 | fi | |
3510 | ||
3511 | ||
3512 | enablestring= | |
3513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3514 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3515 | no_cache=0 | |
3516 | # Check whether --enable-permissive or --disable-permissive was given. | |
3517 | if test "${enable_permissive+set}" = set; then | |
3518 | enableval="$enable_permissive" | |
3519 | ||
3520 | if test "$enableval" = yes; then | |
3521 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3522 | else | |
3523 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3524 | fi | |
3525 | ||
3526 | else | |
3527 | ||
3528 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3529 | if test "x$LINE" != x ; then | |
3530 | eval "DEFAULT_$LINE" | |
3531 | else | |
3532 | no_cache=1 | |
3533 | fi | |
3534 | ||
3535 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3536 | ||
3537 | fi; | |
3538 | ||
3539 | eval "$ac_cv_use_permissive" | |
3540 | if test "$no_cache" != 1; then | |
3541 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3542 | fi | |
3543 | ||
3544 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3545 | echo "$as_me:$LINENO: result: yes" >&5 | |
3546 | echo "${ECHO_T}yes" >&6 | |
3547 | else | |
3548 | echo "$as_me:$LINENO: result: no" >&5 | |
3549 | echo "${ECHO_T}no" >&6 | |
3550 | fi | |
3551 | ||
3552 | ||
3553 | enablestring= | |
3554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3555 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3556 | no_cache=0 | |
3557 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3558 | if test "${enable_no_deps+set}" = set; then | |
3559 | enableval="$enable_no_deps" | |
3560 | ||
3561 | if test "$enableval" = yes; then | |
3562 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3563 | else | |
3564 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3565 | fi | |
3566 | ||
3567 | else | |
3568 | ||
3569 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3570 | if test "x$LINE" != x ; then | |
3571 | eval "DEFAULT_$LINE" | |
3572 | else | |
3573 | no_cache=1 | |
3574 | fi | |
3575 | ||
3576 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
3577 | ||
3578 | fi; | |
3579 | ||
3580 | eval "$ac_cv_use_no_deps" | |
3581 | if test "$no_cache" != 1; then | |
3582 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3583 | fi | |
3584 | ||
3585 | if test "$wxUSE_NO_DEPS" = yes; then | |
3586 | echo "$as_me:$LINENO: result: yes" >&5 | |
3587 | echo "${ECHO_T}yes" >&6 | |
3588 | else | |
3589 | echo "$as_me:$LINENO: result: no" >&5 | |
3590 | echo "${ECHO_T}no" >&6 | |
3591 | fi | |
3592 | ||
3593 | ||
3594 | ||
3595 | enablestring= | |
3596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5 | |
3597 | echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6 | |
3598 | no_cache=0 | |
3599 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3600 | if test "${enable_compat20+set}" = set; then | |
3601 | enableval="$enable_compat20" | |
3602 | ||
3603 | if test "$enableval" = yes; then | |
3604 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3605 | else | |
3606 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3607 | fi | |
3608 | ||
3609 | else | |
3610 | ||
3611 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
3612 | if test "x$LINE" != x ; then | |
3613 | eval "DEFAULT_$LINE" | |
3614 | else | |
3615 | no_cache=1 | |
3616 | fi | |
3617 | ||
3618 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
3619 | ||
3620 | fi; | |
3621 | ||
3622 | eval "$ac_cv_use_compat20" | |
3623 | if test "$no_cache" != 1; then | |
3624 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3625 | fi | |
3626 | ||
3627 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3628 | echo "$as_me:$LINENO: result: yes" >&5 | |
3629 | echo "${ECHO_T}yes" >&6 | |
3630 | else | |
3631 | echo "$as_me:$LINENO: result: no" >&5 | |
3632 | echo "${ECHO_T}no" >&6 | |
3633 | fi | |
3634 | ||
3635 | ||
3636 | enablestring= | |
3637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
3638 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
3639 | no_cache=0 | |
3640 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3641 | if test "${enable_compat22+set}" = set; then | |
3642 | enableval="$enable_compat22" | |
3643 | ||
3644 | if test "$enableval" = yes; then | |
3645 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3646 | else | |
3647 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3648 | fi | |
3649 | ||
3650 | else | |
3651 | ||
3652 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3653 | if test "x$LINE" != x ; then | |
3654 | eval "DEFAULT_$LINE" | |
3655 | else | |
3656 | no_cache=1 | |
3657 | fi | |
3658 | ||
3659 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3660 | ||
3661 | fi; | |
3662 | ||
3663 | eval "$ac_cv_use_compat22" | |
3664 | if test "$no_cache" != 1; then | |
3665 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3666 | fi | |
3667 | ||
3668 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3669 | echo "$as_me:$LINENO: result: yes" >&5 | |
3670 | echo "${ECHO_T}yes" >&6 | |
3671 | else | |
3672 | echo "$as_me:$LINENO: result: no" >&5 | |
3673 | echo "${ECHO_T}no" >&6 | |
3674 | fi | |
3675 | ||
3676 | ||
3677 | enablestring=disable | |
3678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
3679 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
3680 | no_cache=0 | |
3681 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3682 | if test "${enable_compat24+set}" = set; then | |
3683 | enableval="$enable_compat24" | |
3684 | ||
3685 | if test "$enableval" = yes; then | |
3686 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3687 | else | |
3688 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3689 | fi | |
3690 | ||
3691 | else | |
3692 | ||
3693 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3694 | if test "x$LINE" != x ; then | |
3695 | eval "DEFAULT_$LINE" | |
3696 | else | |
3697 | no_cache=1 | |
3698 | fi | |
3699 | ||
3700 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3701 | ||
3702 | fi; | |
3703 | ||
3704 | eval "$ac_cv_use_compat24" | |
3705 | if test "$no_cache" != 1; then | |
3706 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3707 | fi | |
3708 | ||
3709 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3710 | echo "$as_me:$LINENO: result: yes" >&5 | |
3711 | echo "${ECHO_T}yes" >&6 | |
3712 | else | |
3713 | echo "$as_me:$LINENO: result: no" >&5 | |
3714 | echo "${ECHO_T}no" >&6 | |
3715 | fi | |
3716 | ||
3717 | ||
3718 | # Check whether --enable-rpath or --disable-rpath was given. | |
3719 | if test "${enable_rpath+set}" = set; then | |
3720 | enableval="$enable_rpath" | |
3721 | wxRPATH_DIR="$enableval" | |
3722 | fi; | |
3723 | ||
3724 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3725 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3726 | fi | |
3727 | ||
3728 | ||
3729 | ||
3730 | ||
3731 | enablestring= | |
3732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
3733 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
3734 | no_cache=0 | |
3735 | # Check whether --enable-intl or --disable-intl was given. | |
3736 | if test "${enable_intl+set}" = set; then | |
3737 | enableval="$enable_intl" | |
3738 | ||
3739 | if test "$enableval" = yes; then | |
3740 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3741 | else | |
3742 | ac_cv_use_intl='wxUSE_INTL=no' | |
3743 | fi | |
3744 | ||
3745 | else | |
3746 | ||
3747 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
3748 | if test "x$LINE" != x ; then | |
3749 | eval "DEFAULT_$LINE" | |
3750 | else | |
3751 | no_cache=1 | |
3752 | fi | |
3753 | ||
3754 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
3755 | ||
3756 | fi; | |
3757 | ||
3758 | eval "$ac_cv_use_intl" | |
3759 | if test "$no_cache" != 1; then | |
3760 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3761 | fi | |
3762 | ||
3763 | if test "$wxUSE_INTL" = yes; then | |
3764 | echo "$as_me:$LINENO: result: yes" >&5 | |
3765 | echo "${ECHO_T}yes" >&6 | |
3766 | else | |
3767 | echo "$as_me:$LINENO: result: no" >&5 | |
3768 | echo "${ECHO_T}no" >&6 | |
3769 | fi | |
3770 | ||
3771 | ||
3772 | enablestring= | |
3773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
3774 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
3775 | no_cache=0 | |
3776 | # Check whether --enable-config or --disable-config was given. | |
3777 | if test "${enable_config+set}" = set; then | |
3778 | enableval="$enable_config" | |
3779 | ||
3780 | if test "$enableval" = yes; then | |
3781 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3782 | else | |
3783 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3784 | fi | |
3785 | ||
3786 | else | |
3787 | ||
3788 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
3789 | if test "x$LINE" != x ; then | |
3790 | eval "DEFAULT_$LINE" | |
3791 | else | |
3792 | no_cache=1 | |
3793 | fi | |
3794 | ||
3795 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
3796 | ||
3797 | fi; | |
3798 | ||
3799 | eval "$ac_cv_use_config" | |
3800 | if test "$no_cache" != 1; then | |
3801 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3802 | fi | |
3803 | ||
3804 | if test "$wxUSE_CONFIG" = yes; then | |
3805 | echo "$as_me:$LINENO: result: yes" >&5 | |
3806 | echo "${ECHO_T}yes" >&6 | |
3807 | else | |
3808 | echo "$as_me:$LINENO: result: no" >&5 | |
3809 | echo "${ECHO_T}no" >&6 | |
3810 | fi | |
3811 | ||
3812 | ||
3813 | ||
3814 | enablestring= | |
3815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
3816 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
3817 | no_cache=0 | |
3818 | # Check whether --enable-protocols or --disable-protocols was given. | |
3819 | if test "${enable_protocols+set}" = set; then | |
3820 | enableval="$enable_protocols" | |
3821 | ||
3822 | if test "$enableval" = yes; then | |
3823 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3824 | else | |
3825 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3826 | fi | |
3827 | ||
3828 | else | |
3829 | ||
3830 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3831 | if test "x$LINE" != x ; then | |
3832 | eval "DEFAULT_$LINE" | |
3833 | else | |
3834 | no_cache=1 | |
3835 | fi | |
3836 | ||
3837 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3838 | ||
3839 | fi; | |
3840 | ||
3841 | eval "$ac_cv_use_protocols" | |
3842 | if test "$no_cache" != 1; then | |
3843 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3844 | fi | |
3845 | ||
3846 | if test "$wxUSE_PROTOCOL" = yes; then | |
3847 | echo "$as_me:$LINENO: result: yes" >&5 | |
3848 | echo "${ECHO_T}yes" >&6 | |
3849 | else | |
3850 | echo "$as_me:$LINENO: result: no" >&5 | |
3851 | echo "${ECHO_T}no" >&6 | |
3852 | fi | |
3853 | ||
3854 | ||
3855 | enablestring= | |
3856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
3857 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
3858 | no_cache=0 | |
3859 | # Check whether --enable-ftp or --disable-ftp was given. | |
3860 | if test "${enable_ftp+set}" = set; then | |
3861 | enableval="$enable_ftp" | |
3862 | ||
3863 | if test "$enableval" = yes; then | |
3864 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3865 | else | |
3866 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3867 | fi | |
3868 | ||
3869 | else | |
3870 | ||
3871 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3872 | if test "x$LINE" != x ; then | |
3873 | eval "DEFAULT_$LINE" | |
3874 | else | |
3875 | no_cache=1 | |
3876 | fi | |
3877 | ||
3878 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3879 | ||
3880 | fi; | |
3881 | ||
3882 | eval "$ac_cv_use_ftp" | |
3883 | if test "$no_cache" != 1; then | |
3884 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3885 | fi | |
3886 | ||
3887 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3888 | echo "$as_me:$LINENO: result: yes" >&5 | |
3889 | echo "${ECHO_T}yes" >&6 | |
3890 | else | |
3891 | echo "$as_me:$LINENO: result: no" >&5 | |
3892 | echo "${ECHO_T}no" >&6 | |
3893 | fi | |
3894 | ||
3895 | ||
3896 | enablestring= | |
3897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
3898 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
3899 | no_cache=0 | |
3900 | # Check whether --enable-http or --disable-http was given. | |
3901 | if test "${enable_http+set}" = set; then | |
3902 | enableval="$enable_http" | |
3903 | ||
3904 | if test "$enableval" = yes; then | |
3905 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3906 | else | |
3907 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3908 | fi | |
3909 | ||
3910 | else | |
3911 | ||
3912 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3913 | if test "x$LINE" != x ; then | |
3914 | eval "DEFAULT_$LINE" | |
3915 | else | |
3916 | no_cache=1 | |
3917 | fi | |
3918 | ||
3919 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3920 | ||
3921 | fi; | |
3922 | ||
3923 | eval "$ac_cv_use_http" | |
3924 | if test "$no_cache" != 1; then | |
3925 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3926 | fi | |
3927 | ||
3928 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3929 | echo "$as_me:$LINENO: result: yes" >&5 | |
3930 | echo "${ECHO_T}yes" >&6 | |
3931 | else | |
3932 | echo "$as_me:$LINENO: result: no" >&5 | |
3933 | echo "${ECHO_T}no" >&6 | |
3934 | fi | |
3935 | ||
3936 | ||
3937 | enablestring= | |
3938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
3939 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
3940 | no_cache=0 | |
3941 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3942 | if test "${enable_fileproto+set}" = set; then | |
3943 | enableval="$enable_fileproto" | |
3944 | ||
3945 | if test "$enableval" = yes; then | |
3946 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3947 | else | |
3948 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3949 | fi | |
3950 | ||
3951 | else | |
3952 | ||
3953 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3954 | if test "x$LINE" != x ; then | |
3955 | eval "DEFAULT_$LINE" | |
3956 | else | |
3957 | no_cache=1 | |
3958 | fi | |
3959 | ||
3960 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3961 | ||
3962 | fi; | |
3963 | ||
3964 | eval "$ac_cv_use_fileproto" | |
3965 | if test "$no_cache" != 1; then | |
3966 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3967 | fi | |
3968 | ||
3969 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3970 | echo "$as_me:$LINENO: result: yes" >&5 | |
3971 | echo "${ECHO_T}yes" >&6 | |
3972 | else | |
3973 | echo "$as_me:$LINENO: result: no" >&5 | |
3974 | echo "${ECHO_T}no" >&6 | |
3975 | fi | |
3976 | ||
3977 | ||
3978 | enablestring= | |
3979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
3980 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
3981 | no_cache=0 | |
3982 | # Check whether --enable-sockets or --disable-sockets was given. | |
3983 | if test "${enable_sockets+set}" = set; then | |
3984 | enableval="$enable_sockets" | |
3985 | ||
3986 | if test "$enableval" = yes; then | |
3987 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3988 | else | |
3989 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3990 | fi | |
3991 | ||
3992 | else | |
3993 | ||
3994 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
3995 | if test "x$LINE" != x ; then | |
3996 | eval "DEFAULT_$LINE" | |
3997 | else | |
3998 | no_cache=1 | |
3999 | fi | |
4000 | ||
4001 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4002 | ||
4003 | fi; | |
4004 | ||
4005 | eval "$ac_cv_use_sockets" | |
4006 | if test "$no_cache" != 1; then | |
4007 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4008 | fi | |
4009 | ||
4010 | if test "$wxUSE_SOCKETS" = yes; then | |
4011 | echo "$as_me:$LINENO: result: yes" >&5 | |
4012 | echo "${ECHO_T}yes" >&6 | |
4013 | else | |
4014 | echo "$as_me:$LINENO: result: no" >&5 | |
4015 | echo "${ECHO_T}no" >&6 | |
4016 | fi | |
4017 | ||
4018 | ||
4019 | enablestring= | |
4020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4021 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4022 | no_cache=0 | |
4023 | # Check whether --enable-ole or --disable-ole was given. | |
4024 | if test "${enable_ole+set}" = set; then | |
4025 | enableval="$enable_ole" | |
4026 | ||
4027 | if test "$enableval" = yes; then | |
4028 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4029 | else | |
4030 | ac_cv_use_ole='wxUSE_OLE=no' | |
4031 | fi | |
4032 | ||
4033 | else | |
4034 | ||
4035 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4036 | if test "x$LINE" != x ; then | |
4037 | eval "DEFAULT_$LINE" | |
4038 | else | |
4039 | no_cache=1 | |
4040 | fi | |
4041 | ||
4042 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4043 | ||
4044 | fi; | |
4045 | ||
4046 | eval "$ac_cv_use_ole" | |
4047 | if test "$no_cache" != 1; then | |
4048 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4049 | fi | |
4050 | ||
4051 | if test "$wxUSE_OLE" = yes; then | |
4052 | echo "$as_me:$LINENO: result: yes" >&5 | |
4053 | echo "${ECHO_T}yes" >&6 | |
4054 | else | |
4055 | echo "$as_me:$LINENO: result: no" >&5 | |
4056 | echo "${ECHO_T}no" >&6 | |
4057 | fi | |
4058 | ||
4059 | ||
4060 | enablestring= | |
4061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4062 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4063 | no_cache=0 | |
4064 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4065 | if test "${enable_dataobj+set}" = set; then | |
4066 | enableval="$enable_dataobj" | |
4067 | ||
4068 | if test "$enableval" = yes; then | |
4069 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4070 | else | |
4071 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4072 | fi | |
4073 | ||
4074 | else | |
4075 | ||
4076 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4077 | if test "x$LINE" != x ; then | |
4078 | eval "DEFAULT_$LINE" | |
4079 | else | |
4080 | no_cache=1 | |
4081 | fi | |
4082 | ||
4083 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4084 | ||
4085 | fi; | |
4086 | ||
4087 | eval "$ac_cv_use_dataobj" | |
4088 | if test "$no_cache" != 1; then | |
4089 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4090 | fi | |
4091 | ||
4092 | if test "$wxUSE_DATAOBJ" = yes; then | |
4093 | echo "$as_me:$LINENO: result: yes" >&5 | |
4094 | echo "${ECHO_T}yes" >&6 | |
4095 | else | |
4096 | echo "$as_me:$LINENO: result: no" >&5 | |
4097 | echo "${ECHO_T}no" >&6 | |
4098 | fi | |
4099 | ||
4100 | ||
4101 | ||
4102 | enablestring= | |
4103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4104 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4105 | no_cache=0 | |
4106 | # Check whether --enable-ipc or --disable-ipc was given. | |
4107 | if test "${enable_ipc+set}" = set; then | |
4108 | enableval="$enable_ipc" | |
4109 | ||
4110 | if test "$enableval" = yes; then | |
4111 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4112 | else | |
4113 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4114 | fi | |
4115 | ||
4116 | else | |
4117 | ||
4118 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4119 | if test "x$LINE" != x ; then | |
4120 | eval "DEFAULT_$LINE" | |
4121 | else | |
4122 | no_cache=1 | |
4123 | fi | |
4124 | ||
4125 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4126 | ||
4127 | fi; | |
4128 | ||
4129 | eval "$ac_cv_use_ipc" | |
4130 | if test "$no_cache" != 1; then | |
4131 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4132 | fi | |
4133 | ||
4134 | if test "$wxUSE_IPC" = yes; then | |
4135 | echo "$as_me:$LINENO: result: yes" >&5 | |
4136 | echo "${ECHO_T}yes" >&6 | |
4137 | else | |
4138 | echo "$as_me:$LINENO: result: no" >&5 | |
4139 | echo "${ECHO_T}no" >&6 | |
4140 | fi | |
4141 | ||
4142 | ||
4143 | ||
4144 | enablestring= | |
4145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4146 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4147 | no_cache=0 | |
4148 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4149 | if test "${enable_cmdline+set}" = set; then | |
4150 | enableval="$enable_cmdline" | |
4151 | ||
4152 | if test "$enableval" = yes; then | |
4153 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4154 | else | |
4155 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4156 | fi | |
4157 | ||
4158 | else | |
4159 | ||
4160 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4161 | if test "x$LINE" != x ; then | |
4162 | eval "DEFAULT_$LINE" | |
4163 | else | |
4164 | no_cache=1 | |
4165 | fi | |
4166 | ||
4167 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4168 | ||
4169 | fi; | |
4170 | ||
4171 | eval "$ac_cv_use_cmdline" | |
4172 | if test "$no_cache" != 1; then | |
4173 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4174 | fi | |
4175 | ||
4176 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4177 | echo "$as_me:$LINENO: result: yes" >&5 | |
4178 | echo "${ECHO_T}yes" >&6 | |
4179 | else | |
4180 | echo "$as_me:$LINENO: result: no" >&5 | |
4181 | echo "${ECHO_T}no" >&6 | |
4182 | fi | |
4183 | ||
4184 | ||
4185 | enablestring= | |
4186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4187 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4188 | no_cache=0 | |
4189 | # Check whether --enable-datetime or --disable-datetime was given. | |
4190 | if test "${enable_datetime+set}" = set; then | |
4191 | enableval="$enable_datetime" | |
4192 | ||
4193 | if test "$enableval" = yes; then | |
4194 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4195 | else | |
4196 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4197 | fi | |
4198 | ||
4199 | else | |
4200 | ||
4201 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4202 | if test "x$LINE" != x ; then | |
4203 | eval "DEFAULT_$LINE" | |
4204 | else | |
4205 | no_cache=1 | |
4206 | fi | |
4207 | ||
4208 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4209 | ||
4210 | fi; | |
4211 | ||
4212 | eval "$ac_cv_use_datetime" | |
4213 | if test "$no_cache" != 1; then | |
4214 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4215 | fi | |
4216 | ||
4217 | if test "$wxUSE_DATETIME" = yes; then | |
4218 | echo "$as_me:$LINENO: result: yes" >&5 | |
4219 | echo "${ECHO_T}yes" >&6 | |
4220 | else | |
4221 | echo "$as_me:$LINENO: result: no" >&5 | |
4222 | echo "${ECHO_T}no" >&6 | |
4223 | fi | |
4224 | ||
4225 | ||
4226 | enablestring= | |
4227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
4228 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
4229 | no_cache=0 | |
4230 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4231 | if test "${enable_stopwatch+set}" = set; then | |
4232 | enableval="$enable_stopwatch" | |
4233 | ||
4234 | if test "$enableval" = yes; then | |
4235 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4236 | else | |
4237 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4238 | fi | |
4239 | ||
4240 | else | |
4241 | ||
4242 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
4243 | if test "x$LINE" != x ; then | |
4244 | eval "DEFAULT_$LINE" | |
4245 | else | |
4246 | no_cache=1 | |
4247 | fi | |
4248 | ||
4249 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
4250 | ||
4251 | fi; | |
4252 | ||
4253 | eval "$ac_cv_use_stopwatch" | |
4254 | if test "$no_cache" != 1; then | |
4255 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4256 | fi | |
4257 | ||
4258 | if test "$wxUSE_STOPWATCH" = yes; then | |
4259 | echo "$as_me:$LINENO: result: yes" >&5 | |
4260 | echo "${ECHO_T}yes" >&6 | |
4261 | else | |
4262 | echo "$as_me:$LINENO: result: no" >&5 | |
4263 | echo "${ECHO_T}no" >&6 | |
4264 | fi | |
4265 | ||
4266 | ||
4267 | enablestring= | |
4268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4269 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4270 | no_cache=0 | |
4271 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4272 | if test "${enable_dialupman+set}" = set; then | |
4273 | enableval="$enable_dialupman" | |
4274 | ||
4275 | if test "$enableval" = yes; then | |
4276 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4277 | else | |
4278 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4279 | fi | |
4280 | ||
4281 | else | |
4282 | ||
4283 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4291 | ||
4292 | fi; | |
4293 | ||
4294 | eval "$ac_cv_use_dialupman" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4300 | echo "$as_me:$LINENO: result: yes" >&5 | |
4301 | echo "${ECHO_T}yes" >&6 | |
4302 | else | |
4303 | echo "$as_me:$LINENO: result: no" >&5 | |
4304 | echo "${ECHO_T}no" >&6 | |
4305 | fi | |
4306 | ||
4307 | ||
4308 | enablestring= | |
4309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4310 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4311 | no_cache=0 | |
4312 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4313 | if test "${enable_apple_ieee+set}" = set; then | |
4314 | enableval="$enable_apple_ieee" | |
4315 | ||
4316 | if test "$enableval" = yes; then | |
4317 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4318 | else | |
4319 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4320 | fi | |
4321 | ||
4322 | else | |
4323 | ||
4324 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4325 | if test "x$LINE" != x ; then | |
4326 | eval "DEFAULT_$LINE" | |
4327 | else | |
4328 | no_cache=1 | |
4329 | fi | |
4330 | ||
4331 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4332 | ||
4333 | fi; | |
4334 | ||
4335 | eval "$ac_cv_use_apple_ieee" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4341 | echo "$as_me:$LINENO: result: yes" >&5 | |
4342 | echo "${ECHO_T}yes" >&6 | |
4343 | else | |
4344 | echo "$as_me:$LINENO: result: no" >&5 | |
4345 | echo "${ECHO_T}no" >&6 | |
4346 | fi | |
4347 | ||
4348 | ||
4349 | enablestring= | |
4350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
4351 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
4352 | no_cache=0 | |
4353 | # Check whether --enable-timer or --disable-timer was given. | |
4354 | if test "${enable_timer+set}" = set; then | |
4355 | enableval="$enable_timer" | |
4356 | ||
4357 | if test "$enableval" = yes; then | |
4358 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
4359 | else | |
4360 | ac_cv_use_timer='wxUSE_TIMER=no' | |
4361 | fi | |
4362 | ||
4363 | else | |
4364 | ||
4365 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
4366 | if test "x$LINE" != x ; then | |
4367 | eval "DEFAULT_$LINE" | |
4368 | else | |
4369 | no_cache=1 | |
4370 | fi | |
4371 | ||
4372 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
4373 | ||
4374 | fi; | |
4375 | ||
4376 | eval "$ac_cv_use_timer" | |
4377 | if test "$no_cache" != 1; then | |
4378 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
4379 | fi | |
4380 | ||
4381 | if test "$wxUSE_TIMER" = yes; then | |
4382 | echo "$as_me:$LINENO: result: yes" >&5 | |
4383 | echo "${ECHO_T}yes" >&6 | |
4384 | else | |
4385 | echo "$as_me:$LINENO: result: no" >&5 | |
4386 | echo "${ECHO_T}no" >&6 | |
4387 | fi | |
4388 | ||
4389 | ||
4390 | enablestring= | |
4391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 | |
4392 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
4393 | no_cache=0 | |
4394 | # Check whether --enable-wave or --disable-wave was given. | |
4395 | if test "${enable_wave+set}" = set; then | |
4396 | enableval="$enable_wave" | |
4397 | ||
4398 | if test "$enableval" = yes; then | |
4399 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4400 | else | |
4401 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4402 | fi | |
4403 | ||
4404 | else | |
4405 | ||
4406 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
4414 | ||
4415 | fi; | |
4416 | ||
4417 | eval "$ac_cv_use_wave" | |
4418 | if test "$no_cache" != 1; then | |
4419 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4420 | fi | |
4421 | ||
4422 | if test "$wxUSE_WAVE" = yes; then | |
4423 | echo "$as_me:$LINENO: result: yes" >&5 | |
4424 | echo "${ECHO_T}yes" >&6 | |
4425 | else | |
4426 | echo "$as_me:$LINENO: result: no" >&5 | |
4427 | echo "${ECHO_T}no" >&6 | |
4428 | fi | |
4429 | ||
4430 | ||
4431 | enablestring= | |
4432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 | |
4433 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
4434 | no_cache=0 | |
4435 | # Check whether --enable-fraction or --disable-fraction was given. | |
4436 | if test "${enable_fraction+set}" = set; then | |
4437 | enableval="$enable_fraction" | |
4438 | ||
4439 | if test "$enableval" = yes; then | |
4440 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4441 | else | |
4442 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4443 | fi | |
4444 | ||
4445 | else | |
4446 | ||
4447 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
4448 | if test "x$LINE" != x ; then | |
4449 | eval "DEFAULT_$LINE" | |
4450 | else | |
4451 | no_cache=1 | |
4452 | fi | |
4453 | ||
4454 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
4455 | ||
4456 | fi; | |
4457 | ||
4458 | eval "$ac_cv_use_fraction" | |
4459 | if test "$no_cache" != 1; then | |
4460 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4461 | fi | |
4462 | ||
4463 | if test "$wxUSE_FRACTION" = yes; then | |
4464 | echo "$as_me:$LINENO: result: yes" >&5 | |
4465 | echo "${ECHO_T}yes" >&6 | |
4466 | else | |
4467 | echo "$as_me:$LINENO: result: no" >&5 | |
4468 | echo "${ECHO_T}no" >&6 | |
4469 | fi | |
4470 | ||
4471 | ||
4472 | enablestring= | |
4473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4474 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4475 | no_cache=0 | |
4476 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4477 | if test "${enable_dynlib+set}" = set; then | |
4478 | enableval="$enable_dynlib" | |
4479 | ||
4480 | if test "$enableval" = yes; then | |
4481 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4482 | else | |
4483 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4484 | fi | |
4485 | ||
4486 | else | |
4487 | ||
4488 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4489 | if test "x$LINE" != x ; then | |
4490 | eval "DEFAULT_$LINE" | |
4491 | else | |
4492 | no_cache=1 | |
4493 | fi | |
4494 | ||
4495 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4496 | ||
4497 | fi; | |
4498 | ||
4499 | eval "$ac_cv_use_dynlib" | |
4500 | if test "$no_cache" != 1; then | |
4501 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4502 | fi | |
4503 | ||
4504 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4505 | echo "$as_me:$LINENO: result: yes" >&5 | |
4506 | echo "${ECHO_T}yes" >&6 | |
4507 | else | |
4508 | echo "$as_me:$LINENO: result: no" >&5 | |
4509 | echo "${ECHO_T}no" >&6 | |
4510 | fi | |
4511 | ||
4512 | ||
4513 | enablestring= | |
4514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4515 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4516 | no_cache=0 | |
4517 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4518 | if test "${enable_dynamicloader+set}" = set; then | |
4519 | enableval="$enable_dynamicloader" | |
4520 | ||
4521 | if test "$enableval" = yes; then | |
4522 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4523 | else | |
4524 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4525 | fi | |
4526 | ||
4527 | else | |
4528 | ||
4529 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4530 | if test "x$LINE" != x ; then | |
4531 | eval "DEFAULT_$LINE" | |
4532 | else | |
4533 | no_cache=1 | |
4534 | fi | |
4535 | ||
4536 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4537 | ||
4538 | fi; | |
4539 | ||
4540 | eval "$ac_cv_use_dynamicloader" | |
4541 | if test "$no_cache" != 1; then | |
4542 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4543 | fi | |
4544 | ||
4545 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4546 | echo "$as_me:$LINENO: result: yes" >&5 | |
4547 | echo "${ECHO_T}yes" >&6 | |
4548 | else | |
4549 | echo "$as_me:$LINENO: result: no" >&5 | |
4550 | echo "${ECHO_T}no" >&6 | |
4551 | fi | |
4552 | ||
4553 | ||
4554 | enablestring= | |
4555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
4556 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
4557 | no_cache=0 | |
4558 | # Check whether --enable-longlong or --disable-longlong was given. | |
4559 | if test "${enable_longlong+set}" = set; then | |
4560 | enableval="$enable_longlong" | |
4561 | ||
4562 | if test "$enableval" = yes; then | |
4563 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4564 | else | |
4565 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4566 | fi | |
4567 | ||
4568 | else | |
4569 | ||
4570 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
4571 | if test "x$LINE" != x ; then | |
4572 | eval "DEFAULT_$LINE" | |
4573 | else | |
4574 | no_cache=1 | |
4575 | fi | |
4576 | ||
4577 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
4578 | ||
4579 | fi; | |
4580 | ||
4581 | eval "$ac_cv_use_longlong" | |
4582 | if test "$no_cache" != 1; then | |
4583 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4584 | fi | |
4585 | ||
4586 | if test "$wxUSE_LONGLONG" = yes; then | |
4587 | echo "$as_me:$LINENO: result: yes" >&5 | |
4588 | echo "${ECHO_T}yes" >&6 | |
4589 | else | |
4590 | echo "$as_me:$LINENO: result: no" >&5 | |
4591 | echo "${ECHO_T}no" >&6 | |
4592 | fi | |
4593 | ||
4594 | ||
4595 | enablestring= | |
4596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
4597 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
4598 | no_cache=0 | |
4599 | # Check whether --enable-geometry or --disable-geometry was given. | |
4600 | if test "${enable_geometry+set}" = set; then | |
4601 | enableval="$enable_geometry" | |
4602 | ||
4603 | if test "$enableval" = yes; then | |
4604 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4605 | else | |
4606 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4607 | fi | |
4608 | ||
4609 | else | |
4610 | ||
4611 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
4612 | if test "x$LINE" != x ; then | |
4613 | eval "DEFAULT_$LINE" | |
4614 | else | |
4615 | no_cache=1 | |
4616 | fi | |
4617 | ||
4618 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
4619 | ||
4620 | fi; | |
4621 | ||
4622 | eval "$ac_cv_use_geometry" | |
4623 | if test "$no_cache" != 1; then | |
4624 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4625 | fi | |
4626 | ||
4627 | if test "$wxUSE_GEOMETRY" = yes; then | |
4628 | echo "$as_me:$LINENO: result: yes" >&5 | |
4629 | echo "${ECHO_T}yes" >&6 | |
4630 | else | |
4631 | echo "$as_me:$LINENO: result: no" >&5 | |
4632 | echo "${ECHO_T}no" >&6 | |
4633 | fi | |
4634 | ||
4635 | ||
4636 | enablestring= | |
4637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
4638 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
4639 | no_cache=0 | |
4640 | # Check whether --enable-log or --disable-log was given. | |
4641 | if test "${enable_log+set}" = set; then | |
4642 | enableval="$enable_log" | |
4643 | ||
4644 | if test "$enableval" = yes; then | |
4645 | ac_cv_use_log='wxUSE_LOG=yes' | |
4646 | else | |
4647 | ac_cv_use_log='wxUSE_LOG=no' | |
4648 | fi | |
4649 | ||
4650 | else | |
4651 | ||
4652 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
4653 | if test "x$LINE" != x ; then | |
4654 | eval "DEFAULT_$LINE" | |
4655 | else | |
4656 | no_cache=1 | |
4657 | fi | |
4658 | ||
4659 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
4660 | ||
4661 | fi; | |
4662 | ||
4663 | eval "$ac_cv_use_log" | |
4664 | if test "$no_cache" != 1; then | |
4665 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4666 | fi | |
4667 | ||
4668 | if test "$wxUSE_LOG" = yes; then | |
4669 | echo "$as_me:$LINENO: result: yes" >&5 | |
4670 | echo "${ECHO_T}yes" >&6 | |
4671 | else | |
4672 | echo "$as_me:$LINENO: result: no" >&5 | |
4673 | echo "${ECHO_T}no" >&6 | |
4674 | fi | |
4675 | ||
4676 | ||
4677 | enablestring= | |
4678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
4679 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
4680 | no_cache=0 | |
4681 | # Check whether --enable-streams or --disable-streams was given. | |
4682 | if test "${enable_streams+set}" = set; then | |
4683 | enableval="$enable_streams" | |
4684 | ||
4685 | if test "$enableval" = yes; then | |
4686 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4687 | else | |
4688 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4689 | fi | |
4690 | ||
4691 | else | |
4692 | ||
4693 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
4694 | if test "x$LINE" != x ; then | |
4695 | eval "DEFAULT_$LINE" | |
4696 | else | |
4697 | no_cache=1 | |
4698 | fi | |
4699 | ||
4700 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
4701 | ||
4702 | fi; | |
4703 | ||
4704 | eval "$ac_cv_use_streams" | |
4705 | if test "$no_cache" != 1; then | |
4706 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4707 | fi | |
4708 | ||
4709 | if test "$wxUSE_STREAMS" = yes; then | |
4710 | echo "$as_me:$LINENO: result: yes" >&5 | |
4711 | echo "${ECHO_T}yes" >&6 | |
4712 | else | |
4713 | echo "$as_me:$LINENO: result: no" >&5 | |
4714 | echo "${ECHO_T}no" >&6 | |
4715 | fi | |
4716 | ||
4717 | ||
4718 | enablestring= | |
4719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4720 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4721 | no_cache=0 | |
4722 | # Check whether --enable-file or --disable-file was given. | |
4723 | if test "${enable_file+set}" = set; then | |
4724 | enableval="$enable_file" | |
4725 | ||
4726 | if test "$enableval" = yes; then | |
4727 | ac_cv_use_file='wxUSE_FILE=yes' | |
4728 | else | |
4729 | ac_cv_use_file='wxUSE_FILE=no' | |
4730 | fi | |
4731 | ||
4732 | else | |
4733 | ||
4734 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4735 | if test "x$LINE" != x ; then | |
4736 | eval "DEFAULT_$LINE" | |
4737 | else | |
4738 | no_cache=1 | |
4739 | fi | |
4740 | ||
4741 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4742 | ||
4743 | fi; | |
4744 | ||
4745 | eval "$ac_cv_use_file" | |
4746 | if test "$no_cache" != 1; then | |
4747 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4748 | fi | |
4749 | ||
4750 | if test "$wxUSE_FILE" = yes; then | |
4751 | echo "$as_me:$LINENO: result: yes" >&5 | |
4752 | echo "${ECHO_T}yes" >&6 | |
4753 | else | |
4754 | echo "$as_me:$LINENO: result: no" >&5 | |
4755 | echo "${ECHO_T}no" >&6 | |
4756 | fi | |
4757 | ||
4758 | ||
4759 | enablestring= | |
4760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4761 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4762 | no_cache=0 | |
4763 | # Check whether --enable-ffile or --disable-ffile was given. | |
4764 | if test "${enable_ffile+set}" = set; then | |
4765 | enableval="$enable_ffile" | |
4766 | ||
4767 | if test "$enableval" = yes; then | |
4768 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4769 | else | |
4770 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4771 | fi | |
4772 | ||
4773 | else | |
4774 | ||
4775 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4776 | if test "x$LINE" != x ; then | |
4777 | eval "DEFAULT_$LINE" | |
4778 | else | |
4779 | no_cache=1 | |
4780 | fi | |
4781 | ||
4782 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4783 | ||
4784 | fi; | |
4785 | ||
4786 | eval "$ac_cv_use_ffile" | |
4787 | if test "$no_cache" != 1; then | |
4788 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4789 | fi | |
4790 | ||
4791 | if test "$wxUSE_FFILE" = yes; then | |
4792 | echo "$as_me:$LINENO: result: yes" >&5 | |
4793 | echo "${ECHO_T}yes" >&6 | |
4794 | else | |
4795 | echo "$as_me:$LINENO: result: no" >&5 | |
4796 | echo "${ECHO_T}no" >&6 | |
4797 | fi | |
4798 | ||
4799 | ||
4800 | enablestring= | |
4801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
4802 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
4803 | no_cache=0 | |
4804 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4805 | if test "${enable_textbuf+set}" = set; then | |
4806 | enableval="$enable_textbuf" | |
4807 | ||
4808 | if test "$enableval" = yes; then | |
4809 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4810 | else | |
4811 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4812 | fi | |
4813 | ||
4814 | else | |
4815 | ||
4816 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4817 | if test "x$LINE" != x ; then | |
4818 | eval "DEFAULT_$LINE" | |
4819 | else | |
4820 | no_cache=1 | |
4821 | fi | |
4822 | ||
4823 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4824 | ||
4825 | fi; | |
4826 | ||
4827 | eval "$ac_cv_use_textbuf" | |
4828 | if test "$no_cache" != 1; then | |
4829 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4830 | fi | |
4831 | ||
4832 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4833 | echo "$as_me:$LINENO: result: yes" >&5 | |
4834 | echo "${ECHO_T}yes" >&6 | |
4835 | else | |
4836 | echo "$as_me:$LINENO: result: no" >&5 | |
4837 | echo "${ECHO_T}no" >&6 | |
4838 | fi | |
4839 | ||
4840 | ||
4841 | enablestring= | |
4842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
4843 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
4844 | no_cache=0 | |
4845 | # Check whether --enable-textfile or --disable-textfile was given. | |
4846 | if test "${enable_textfile+set}" = set; then | |
4847 | enableval="$enable_textfile" | |
4848 | ||
4849 | if test "$enableval" = yes; then | |
4850 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
4851 | else | |
4852 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
4853 | fi | |
4854 | ||
4855 | else | |
4856 | ||
4857 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
4858 | if test "x$LINE" != x ; then | |
4859 | eval "DEFAULT_$LINE" | |
4860 | else | |
4861 | no_cache=1 | |
4862 | fi | |
4863 | ||
4864 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
4865 | ||
4866 | fi; | |
4867 | ||
4868 | eval "$ac_cv_use_textfile" | |
4869 | if test "$no_cache" != 1; then | |
4870 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
4871 | fi | |
4872 | ||
4873 | if test "$wxUSE_TEXTFILE" = yes; then | |
4874 | echo "$as_me:$LINENO: result: yes" >&5 | |
4875 | echo "${ECHO_T}yes" >&6 | |
4876 | else | |
4877 | echo "$as_me:$LINENO: result: no" >&5 | |
4878 | echo "${ECHO_T}no" >&6 | |
4879 | fi | |
4880 | ||
4881 | ||
4882 | enablestring= | |
4883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4884 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4885 | no_cache=0 | |
4886 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4887 | if test "${enable_fontmap+set}" = set; then | |
4888 | enableval="$enable_fontmap" | |
4889 | ||
4890 | if test "$enableval" = yes; then | |
4891 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4892 | else | |
4893 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4894 | fi | |
4895 | ||
4896 | else | |
4897 | ||
4898 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4899 | if test "x$LINE" != x ; then | |
4900 | eval "DEFAULT_$LINE" | |
4901 | else | |
4902 | no_cache=1 | |
4903 | fi | |
4904 | ||
4905 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
4906 | ||
4907 | fi; | |
4908 | ||
4909 | eval "$ac_cv_use_fontmap" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_FONTMAP" = yes; then | |
4915 | echo "$as_me:$LINENO: result: yes" >&5 | |
4916 | echo "${ECHO_T}yes" >&6 | |
4917 | else | |
4918 | echo "$as_me:$LINENO: result: no" >&5 | |
4919 | echo "${ECHO_T}no" >&6 | |
4920 | fi | |
4921 | ||
4922 | ||
4923 | enablestring= | |
4924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
4925 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4926 | no_cache=0 | |
4927 | # Check whether --enable-unicode or --disable-unicode was given. | |
4928 | if test "${enable_unicode+set}" = set; then | |
4929 | enableval="$enable_unicode" | |
4930 | ||
4931 | if test "$enableval" = yes; then | |
4932 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4933 | else | |
4934 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4935 | fi | |
4936 | ||
4937 | else | |
4938 | ||
4939 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4940 | if test "x$LINE" != x ; then | |
4941 | eval "DEFAULT_$LINE" | |
4942 | else | |
4943 | no_cache=1 | |
4944 | fi | |
4945 | ||
4946 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4947 | ||
4948 | fi; | |
4949 | ||
4950 | eval "$ac_cv_use_unicode" | |
4951 | if test "$no_cache" != 1; then | |
4952 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4953 | fi | |
4954 | ||
4955 | if test "$wxUSE_UNICODE" = yes; then | |
4956 | echo "$as_me:$LINENO: result: yes" >&5 | |
4957 | echo "${ECHO_T}yes" >&6 | |
4958 | else | |
4959 | echo "$as_me:$LINENO: result: no" >&5 | |
4960 | echo "${ECHO_T}no" >&6 | |
4961 | fi | |
4962 | ||
4963 | ||
4964 | enablestring= | |
4965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
4966 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
4967 | no_cache=0 | |
4968 | # Check whether --enable-mslu or --disable-mslu was given. | |
4969 | if test "${enable_mslu+set}" = set; then | |
4970 | enableval="$enable_mslu" | |
4971 | ||
4972 | if test "$enableval" = yes; then | |
4973 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4974 | else | |
4975 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4976 | fi | |
4977 | ||
4978 | else | |
4979 | ||
4980 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4981 | if test "x$LINE" != x ; then | |
4982 | eval "DEFAULT_$LINE" | |
4983 | else | |
4984 | no_cache=1 | |
4985 | fi | |
4986 | ||
4987 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4988 | ||
4989 | fi; | |
4990 | ||
4991 | eval "$ac_cv_use_mslu" | |
4992 | if test "$no_cache" != 1; then | |
4993 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4994 | fi | |
4995 | ||
4996 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4997 | echo "$as_me:$LINENO: result: yes" >&5 | |
4998 | echo "${ECHO_T}yes" >&6 | |
4999 | else | |
5000 | echo "$as_me:$LINENO: result: no" >&5 | |
5001 | echo "${ECHO_T}no" >&6 | |
5002 | fi | |
5003 | ||
5004 | ||
5005 | enablestring= | |
5006 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5007 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5008 | no_cache=0 | |
5009 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5010 | if test "${enable_wxprintfv+set}" = set; then | |
5011 | enableval="$enable_wxprintfv" | |
5012 | ||
5013 | if test "$enableval" = yes; then | |
5014 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5015 | else | |
5016 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5017 | fi | |
5018 | ||
5019 | else | |
5020 | ||
5021 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5022 | if test "x$LINE" != x ; then | |
5023 | eval "DEFAULT_$LINE" | |
5024 | else | |
5025 | no_cache=1 | |
5026 | fi | |
5027 | ||
5028 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5029 | ||
5030 | fi; | |
5031 | ||
5032 | eval "$ac_cv_use_wxprintfv" | |
5033 | if test "$no_cache" != 1; then | |
5034 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5035 | fi | |
5036 | ||
5037 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5038 | echo "$as_me:$LINENO: result: yes" >&5 | |
5039 | echo "${ECHO_T}yes" >&6 | |
5040 | else | |
5041 | echo "$as_me:$LINENO: result: no" >&5 | |
5042 | echo "${ECHO_T}no" >&6 | |
5043 | fi | |
5044 | ||
5045 | ||
5046 | enablestring= | |
5047 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5048 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5049 | no_cache=0 | |
5050 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5051 | if test "${enable_std_iostreams+set}" = set; then | |
5052 | enableval="$enable_std_iostreams" | |
5053 | ||
5054 | if test "$enableval" = yes; then | |
5055 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5056 | else | |
5057 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5058 | fi | |
5059 | ||
5060 | else | |
5061 | ||
5062 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5063 | if test "x$LINE" != x ; then | |
5064 | eval "DEFAULT_$LINE" | |
5065 | else | |
5066 | no_cache=1 | |
5067 | fi | |
5068 | ||
5069 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5070 | ||
5071 | fi; | |
5072 | ||
5073 | eval "$ac_cv_use_std_iostreams" | |
5074 | if test "$no_cache" != 1; then | |
5075 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5076 | fi | |
5077 | ||
5078 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5079 | echo "$as_me:$LINENO: result: yes" >&5 | |
5080 | echo "${ECHO_T}yes" >&6 | |
5081 | else | |
5082 | echo "$as_me:$LINENO: result: no" >&5 | |
5083 | echo "${ECHO_T}no" >&6 | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | enablestring= | |
5088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5089 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5090 | no_cache=0 | |
5091 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5092 | if test "${enable_filesystem+set}" = set; then | |
5093 | enableval="$enable_filesystem" | |
5094 | ||
5095 | if test "$enableval" = yes; then | |
5096 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5097 | else | |
5098 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5099 | fi | |
5100 | ||
5101 | else | |
5102 | ||
5103 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5104 | if test "x$LINE" != x ; then | |
5105 | eval "DEFAULT_$LINE" | |
5106 | else | |
5107 | no_cache=1 | |
5108 | fi | |
5109 | ||
5110 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5111 | ||
5112 | fi; | |
5113 | ||
5114 | eval "$ac_cv_use_filesystem" | |
5115 | if test "$no_cache" != 1; then | |
5116 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5117 | fi | |
5118 | ||
5119 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5120 | echo "$as_me:$LINENO: result: yes" >&5 | |
5121 | echo "${ECHO_T}yes" >&6 | |
5122 | else | |
5123 | echo "$as_me:$LINENO: result: no" >&5 | |
5124 | echo "${ECHO_T}no" >&6 | |
5125 | fi | |
5126 | ||
5127 | ||
5128 | enablestring= | |
5129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5130 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5131 | no_cache=0 | |
5132 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5133 | if test "${enable_fs_inet+set}" = set; then | |
5134 | enableval="$enable_fs_inet" | |
5135 | ||
5136 | if test "$enableval" = yes; then | |
5137 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5138 | else | |
5139 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5140 | fi | |
5141 | ||
5142 | else | |
5143 | ||
5144 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5145 | if test "x$LINE" != x ; then | |
5146 | eval "DEFAULT_$LINE" | |
5147 | else | |
5148 | no_cache=1 | |
5149 | fi | |
5150 | ||
5151 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5152 | ||
5153 | fi; | |
5154 | ||
5155 | eval "$ac_cv_use_fs_inet" | |
5156 | if test "$no_cache" != 1; then | |
5157 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5158 | fi | |
5159 | ||
5160 | if test "$wxUSE_FS_INET" = yes; then | |
5161 | echo "$as_me:$LINENO: result: yes" >&5 | |
5162 | echo "${ECHO_T}yes" >&6 | |
5163 | else | |
5164 | echo "$as_me:$LINENO: result: no" >&5 | |
5165 | echo "${ECHO_T}no" >&6 | |
5166 | fi | |
5167 | ||
5168 | ||
5169 | enablestring= | |
5170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5171 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5172 | no_cache=0 | |
5173 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5174 | if test "${enable_fs_zip+set}" = set; then | |
5175 | enableval="$enable_fs_zip" | |
5176 | ||
5177 | if test "$enableval" = yes; then | |
5178 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5179 | else | |
5180 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5181 | fi | |
5182 | ||
5183 | else | |
5184 | ||
5185 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5186 | if test "x$LINE" != x ; then | |
5187 | eval "DEFAULT_$LINE" | |
5188 | else | |
5189 | no_cache=1 | |
5190 | fi | |
5191 | ||
5192 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5193 | ||
5194 | fi; | |
5195 | ||
5196 | eval "$ac_cv_use_fs_zip" | |
5197 | if test "$no_cache" != 1; then | |
5198 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5199 | fi | |
5200 | ||
5201 | if test "$wxUSE_FS_ZIP" = yes; then | |
5202 | echo "$as_me:$LINENO: result: yes" >&5 | |
5203 | echo "${ECHO_T}yes" >&6 | |
5204 | else | |
5205 | echo "$as_me:$LINENO: result: no" >&5 | |
5206 | echo "${ECHO_T}no" >&6 | |
5207 | fi | |
5208 | ||
5209 | ||
5210 | enablestring= | |
5211 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5212 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5213 | no_cache=0 | |
5214 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5215 | if test "${enable_zipstream+set}" = set; then | |
5216 | enableval="$enable_zipstream" | |
5217 | ||
5218 | if test "$enableval" = yes; then | |
5219 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5220 | else | |
5221 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5222 | fi | |
5223 | ||
5224 | else | |
5225 | ||
5226 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5227 | if test "x$LINE" != x ; then | |
5228 | eval "DEFAULT_$LINE" | |
5229 | else | |
5230 | no_cache=1 | |
5231 | fi | |
5232 | ||
5233 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5234 | ||
5235 | fi; | |
5236 | ||
5237 | eval "$ac_cv_use_zipstream" | |
5238 | if test "$no_cache" != 1; then | |
5239 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5240 | fi | |
5241 | ||
5242 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5243 | echo "$as_me:$LINENO: result: yes" >&5 | |
5244 | echo "${ECHO_T}yes" >&6 | |
5245 | else | |
5246 | echo "$as_me:$LINENO: result: no" >&5 | |
5247 | echo "${ECHO_T}no" >&6 | |
5248 | fi | |
5249 | ||
5250 | ||
5251 | ||
5252 | enablestring= | |
5253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
5254 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
5255 | no_cache=0 | |
5256 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5257 | if test "${enable_catch_segvs+set}" = set; then | |
5258 | enableval="$enable_catch_segvs" | |
5259 | ||
5260 | if test "$enableval" = yes; then | |
5261 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5262 | else | |
5263 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5264 | fi | |
5265 | ||
5266 | else | |
5267 | ||
5268 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
5276 | ||
5277 | fi; | |
5278 | ||
5279 | eval "$ac_cv_use_catch_segvs" | |
5280 | if test "$no_cache" != 1; then | |
5281 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5282 | fi | |
5283 | ||
5284 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
5285 | echo "$as_me:$LINENO: result: yes" >&5 | |
5286 | echo "${ECHO_T}yes" >&6 | |
5287 | else | |
5288 | echo "$as_me:$LINENO: result: no" >&5 | |
5289 | echo "${ECHO_T}no" >&6 | |
5290 | fi | |
5291 | ||
5292 | ||
5293 | enablestring= | |
5294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5295 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5296 | no_cache=0 | |
5297 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5298 | if test "${enable_snglinst+set}" = set; then | |
5299 | enableval="$enable_snglinst" | |
5300 | ||
5301 | if test "$enableval" = yes; then | |
5302 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5303 | else | |
5304 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5305 | fi | |
5306 | ||
5307 | else | |
5308 | ||
5309 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5310 | if test "x$LINE" != x ; then | |
5311 | eval "DEFAULT_$LINE" | |
5312 | else | |
5313 | no_cache=1 | |
5314 | fi | |
5315 | ||
5316 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5317 | ||
5318 | fi; | |
5319 | ||
5320 | eval "$ac_cv_use_snglinst" | |
5321 | if test "$no_cache" != 1; then | |
5322 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5323 | fi | |
5324 | ||
5325 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5326 | echo "$as_me:$LINENO: result: yes" >&5 | |
5327 | echo "${ECHO_T}yes" >&6 | |
5328 | else | |
5329 | echo "$as_me:$LINENO: result: no" >&5 | |
5330 | echo "${ECHO_T}no" >&6 | |
5331 | fi | |
5332 | ||
5333 | ||
5334 | ||
5335 | enablestring= | |
5336 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5337 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5338 | no_cache=0 | |
5339 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5340 | if test "${enable_mimetype+set}" = set; then | |
5341 | enableval="$enable_mimetype" | |
5342 | ||
5343 | if test "$enableval" = yes; then | |
5344 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5345 | else | |
5346 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5347 | fi | |
5348 | ||
5349 | else | |
5350 | ||
5351 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5352 | if test "x$LINE" != x ; then | |
5353 | eval "DEFAULT_$LINE" | |
5354 | else | |
5355 | no_cache=1 | |
5356 | fi | |
5357 | ||
5358 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5359 | ||
5360 | fi; | |
5361 | ||
5362 | eval "$ac_cv_use_mimetype" | |
5363 | if test "$no_cache" != 1; then | |
5364 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5365 | fi | |
5366 | ||
5367 | if test "$wxUSE_MIMETYPE" = yes; then | |
5368 | echo "$as_me:$LINENO: result: yes" >&5 | |
5369 | echo "${ECHO_T}yes" >&6 | |
5370 | else | |
5371 | echo "$as_me:$LINENO: result: no" >&5 | |
5372 | echo "${ECHO_T}no" >&6 | |
5373 | fi | |
5374 | ||
5375 | ||
5376 | enablestring= | |
5377 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5378 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5379 | no_cache=0 | |
5380 | # Check whether --enable-system_options or --disable-system_options was given. | |
5381 | if test "${enable_system_options+set}" = set; then | |
5382 | enableval="$enable_system_options" | |
5383 | ||
5384 | if test "$enableval" = yes; then | |
5385 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5386 | else | |
5387 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5388 | fi | |
5389 | ||
5390 | else | |
5391 | ||
5392 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5393 | if test "x$LINE" != x ; then | |
5394 | eval "DEFAULT_$LINE" | |
5395 | else | |
5396 | no_cache=1 | |
5397 | fi | |
5398 | ||
5399 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5400 | ||
5401 | fi; | |
5402 | ||
5403 | eval "$ac_cv_use_system_options" | |
5404 | if test "$no_cache" != 1; then | |
5405 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5406 | fi | |
5407 | ||
5408 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5409 | echo "$as_me:$LINENO: result: yes" >&5 | |
5410 | echo "${ECHO_T}yes" >&6 | |
5411 | else | |
5412 | echo "$as_me:$LINENO: result: no" >&5 | |
5413 | echo "${ECHO_T}no" >&6 | |
5414 | fi | |
5415 | ||
5416 | ||
5417 | ||
5418 | enablestring= | |
5419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5420 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5421 | no_cache=0 | |
5422 | # Check whether --enable-url or --disable-url was given. | |
5423 | if test "${enable_url+set}" = set; then | |
5424 | enableval="$enable_url" | |
5425 | ||
5426 | if test "$enableval" = yes; then | |
5427 | ac_cv_use_url='wxUSE_URL=yes' | |
5428 | else | |
5429 | ac_cv_use_url='wxUSE_URL=no' | |
5430 | fi | |
5431 | ||
5432 | else | |
5433 | ||
5434 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5435 | if test "x$LINE" != x ; then | |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
5441 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5442 | ||
5443 | fi; | |
5444 | ||
5445 | eval "$ac_cv_use_url" | |
5446 | if test "$no_cache" != 1; then | |
5447 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5448 | fi | |
5449 | ||
5450 | if test "$wxUSE_URL" = yes; then | |
5451 | echo "$as_me:$LINENO: result: yes" >&5 | |
5452 | echo "${ECHO_T}yes" >&6 | |
5453 | else | |
5454 | echo "$as_me:$LINENO: result: no" >&5 | |
5455 | echo "${ECHO_T}no" >&6 | |
5456 | fi | |
5457 | ||
5458 | ||
5459 | enablestring= | |
5460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5461 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5462 | no_cache=0 | |
5463 | # Check whether --enable-protocol or --disable-protocol was given. | |
5464 | if test "${enable_protocol+set}" = set; then | |
5465 | enableval="$enable_protocol" | |
5466 | ||
5467 | if test "$enableval" = yes; then | |
5468 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5469 | else | |
5470 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5471 | fi | |
5472 | ||
5473 | else | |
5474 | ||
5475 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5476 | if test "x$LINE" != x ; then | |
5477 | eval "DEFAULT_$LINE" | |
5478 | else | |
5479 | no_cache=1 | |
5480 | fi | |
5481 | ||
5482 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5483 | ||
5484 | fi; | |
5485 | ||
5486 | eval "$ac_cv_use_protocol" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_PROTOCOL" = yes; then | |
5492 | echo "$as_me:$LINENO: result: yes" >&5 | |
5493 | echo "${ECHO_T}yes" >&6 | |
5494 | else | |
5495 | echo "$as_me:$LINENO: result: no" >&5 | |
5496 | echo "${ECHO_T}no" >&6 | |
5497 | fi | |
5498 | ||
5499 | ||
5500 | enablestring= | |
5501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5502 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5503 | no_cache=0 | |
5504 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5505 | if test "${enable_protocol_http+set}" = set; then | |
5506 | enableval="$enable_protocol_http" | |
5507 | ||
5508 | if test "$enableval" = yes; then | |
5509 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5510 | else | |
5511 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5512 | fi | |
5513 | ||
5514 | else | |
5515 | ||
5516 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5517 | if test "x$LINE" != x ; then | |
5518 | eval "DEFAULT_$LINE" | |
5519 | else | |
5520 | no_cache=1 | |
5521 | fi | |
5522 | ||
5523 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5524 | ||
5525 | fi; | |
5526 | ||
5527 | eval "$ac_cv_use_protocol_http" | |
5528 | if test "$no_cache" != 1; then | |
5529 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5530 | fi | |
5531 | ||
5532 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5533 | echo "$as_me:$LINENO: result: yes" >&5 | |
5534 | echo "${ECHO_T}yes" >&6 | |
5535 | else | |
5536 | echo "$as_me:$LINENO: result: no" >&5 | |
5537 | echo "${ECHO_T}no" >&6 | |
5538 | fi | |
5539 | ||
5540 | ||
5541 | enablestring= | |
5542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5543 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5544 | no_cache=0 | |
5545 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5546 | if test "${enable_protocol_ftp+set}" = set; then | |
5547 | enableval="$enable_protocol_ftp" | |
5548 | ||
5549 | if test "$enableval" = yes; then | |
5550 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5551 | else | |
5552 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5553 | fi | |
5554 | ||
5555 | else | |
5556 | ||
5557 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5558 | if test "x$LINE" != x ; then | |
5559 | eval "DEFAULT_$LINE" | |
5560 | else | |
5561 | no_cache=1 | |
5562 | fi | |
5563 | ||
5564 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5565 | ||
5566 | fi; | |
5567 | ||
5568 | eval "$ac_cv_use_protocol_ftp" | |
5569 | if test "$no_cache" != 1; then | |
5570 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5571 | fi | |
5572 | ||
5573 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5574 | echo "$as_me:$LINENO: result: yes" >&5 | |
5575 | echo "${ECHO_T}yes" >&6 | |
5576 | else | |
5577 | echo "$as_me:$LINENO: result: no" >&5 | |
5578 | echo "${ECHO_T}no" >&6 | |
5579 | fi | |
5580 | ||
5581 | ||
5582 | enablestring= | |
5583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5584 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5585 | no_cache=0 | |
5586 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5587 | if test "${enable_protocol_file+set}" = set; then | |
5588 | enableval="$enable_protocol_file" | |
5589 | ||
5590 | if test "$enableval" = yes; then | |
5591 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5592 | else | |
5593 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5594 | fi | |
5595 | ||
5596 | else | |
5597 | ||
5598 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5606 | ||
5607 | fi; | |
5608 | ||
5609 | eval "$ac_cv_use_protocol_file" | |
5610 | if test "$no_cache" != 1; then | |
5611 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5612 | fi | |
5613 | ||
5614 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
5615 | echo "$as_me:$LINENO: result: yes" >&5 | |
5616 | echo "${ECHO_T}yes" >&6 | |
5617 | else | |
5618 | echo "$as_me:$LINENO: result: no" >&5 | |
5619 | echo "${ECHO_T}no" >&6 | |
5620 | fi | |
5621 | ||
5622 | ||
5623 | ||
5624 | ||
5625 | ||
5626 | enablestring= | |
5627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
5628 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
5629 | no_cache=0 | |
5630 | # Check whether --enable-threads or --disable-threads was given. | |
5631 | if test "${enable_threads+set}" = set; then | |
5632 | enableval="$enable_threads" | |
5633 | ||
5634 | if test "$enableval" = yes; then | |
5635 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5636 | else | |
5637 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5638 | fi | |
5639 | ||
5640 | else | |
5641 | ||
5642 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
5643 | if test "x$LINE" != x ; then | |
5644 | eval "DEFAULT_$LINE" | |
5645 | else | |
5646 | no_cache=1 | |
5647 | fi | |
5648 | ||
5649 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
5650 | ||
5651 | fi; | |
5652 | ||
5653 | eval "$ac_cv_use_threads" | |
5654 | if test "$no_cache" != 1; then | |
5655 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5656 | fi | |
5657 | ||
5658 | if test "$wxUSE_THREADS" = yes; then | |
5659 | echo "$as_me:$LINENO: result: yes" >&5 | |
5660 | echo "${ECHO_T}yes" >&6 | |
5661 | else | |
5662 | echo "$as_me:$LINENO: result: no" >&5 | |
5663 | echo "${ECHO_T}no" >&6 | |
5664 | fi | |
5665 | ||
5666 | ||
5667 | if test "$wxUSE_GUI" = "yes"; then | |
5668 | ||
5669 | ||
5670 | ||
5671 | enablestring= | |
5672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
5673 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
5674 | no_cache=0 | |
5675 | # Check whether --enable-docview or --disable-docview was given. | |
5676 | if test "${enable_docview+set}" = set; then | |
5677 | enableval="$enable_docview" | |
5678 | ||
5679 | if test "$enableval" = yes; then | |
5680 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5681 | else | |
5682 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5683 | fi | |
5684 | ||
5685 | else | |
5686 | ||
5687 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
5688 | if test "x$LINE" != x ; then | |
5689 | eval "DEFAULT_$LINE" | |
5690 | else | |
5691 | no_cache=1 | |
5692 | fi | |
5693 | ||
5694 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
5695 | ||
5696 | fi; | |
5697 | ||
5698 | eval "$ac_cv_use_docview" | |
5699 | if test "$no_cache" != 1; then | |
5700 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5701 | fi | |
5702 | ||
5703 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
5704 | echo "$as_me:$LINENO: result: yes" >&5 | |
5705 | echo "${ECHO_T}yes" >&6 | |
5706 | else | |
5707 | echo "$as_me:$LINENO: result: no" >&5 | |
5708 | echo "${ECHO_T}no" >&6 | |
5709 | fi | |
5710 | ||
5711 | ||
5712 | enablestring= | |
5713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
5714 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
5715 | no_cache=0 | |
5716 | # Check whether --enable-help or --disable-help was given. | |
5717 | if test "${enable_help+set}" = set; then | |
5718 | enableval="$enable_help" | |
5719 | ||
5720 | if test "$enableval" = yes; then | |
5721 | ac_cv_use_help='wxUSE_HELP=yes' | |
5722 | else | |
5723 | ac_cv_use_help='wxUSE_HELP=no' | |
5724 | fi | |
5725 | ||
5726 | else | |
5727 | ||
5728 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
5729 | if test "x$LINE" != x ; then | |
5730 | eval "DEFAULT_$LINE" | |
5731 | else | |
5732 | no_cache=1 | |
5733 | fi | |
5734 | ||
5735 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
5736 | ||
5737 | fi; | |
5738 | ||
5739 | eval "$ac_cv_use_help" | |
5740 | if test "$no_cache" != 1; then | |
5741 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5742 | fi | |
5743 | ||
5744 | if test "$wxUSE_HELP" = yes; then | |
5745 | echo "$as_me:$LINENO: result: yes" >&5 | |
5746 | echo "${ECHO_T}yes" >&6 | |
5747 | else | |
5748 | echo "$as_me:$LINENO: result: no" >&5 | |
5749 | echo "${ECHO_T}no" >&6 | |
5750 | fi | |
5751 | ||
5752 | ||
5753 | enablestring= | |
5754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
5755 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
5756 | no_cache=0 | |
5757 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5758 | if test "${enable_mshtmlhelp+set}" = set; then | |
5759 | enableval="$enable_mshtmlhelp" | |
5760 | ||
5761 | if test "$enableval" = yes; then | |
5762 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5763 | else | |
5764 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5765 | fi | |
5766 | ||
5767 | else | |
5768 | ||
5769 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
5770 | if test "x$LINE" != x ; then | |
5771 | eval "DEFAULT_$LINE" | |
5772 | else | |
5773 | no_cache=1 | |
5774 | fi | |
5775 | ||
5776 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
5777 | ||
5778 | fi; | |
5779 | ||
5780 | eval "$ac_cv_use_mshtmlhelp" | |
5781 | if test "$no_cache" != 1; then | |
5782 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5783 | fi | |
5784 | ||
5785 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
5786 | echo "$as_me:$LINENO: result: yes" >&5 | |
5787 | echo "${ECHO_T}yes" >&6 | |
5788 | else | |
5789 | echo "$as_me:$LINENO: result: no" >&5 | |
5790 | echo "${ECHO_T}no" >&6 | |
5791 | fi | |
5792 | ||
5793 | ||
5794 | enablestring= | |
5795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
5796 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
5797 | no_cache=0 | |
5798 | # Check whether --enable-html or --disable-html was given. | |
5799 | if test "${enable_html+set}" = set; then | |
5800 | enableval="$enable_html" | |
5801 | ||
5802 | if test "$enableval" = yes; then | |
5803 | ac_cv_use_html='wxUSE_HTML=yes' | |
5804 | else | |
5805 | ac_cv_use_html='wxUSE_HTML=no' | |
5806 | fi | |
5807 | ||
5808 | else | |
5809 | ||
5810 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5811 | if test "x$LINE" != x ; then | |
5812 | eval "DEFAULT_$LINE" | |
5813 | else | |
5814 | no_cache=1 | |
5815 | fi | |
5816 | ||
5817 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5818 | ||
5819 | fi; | |
5820 | ||
5821 | eval "$ac_cv_use_html" | |
5822 | if test "$no_cache" != 1; then | |
5823 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5824 | fi | |
5825 | ||
5826 | if test "$wxUSE_HTML" = yes; then | |
5827 | echo "$as_me:$LINENO: result: yes" >&5 | |
5828 | echo "${ECHO_T}yes" >&6 | |
5829 | else | |
5830 | echo "$as_me:$LINENO: result: no" >&5 | |
5831 | echo "${ECHO_T}no" >&6 | |
5832 | fi | |
5833 | ||
5834 | ||
5835 | enablestring= | |
5836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
5837 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
5838 | no_cache=0 | |
5839 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5840 | if test "${enable_htmlhelp+set}" = set; then | |
5841 | enableval="$enable_htmlhelp" | |
5842 | ||
5843 | if test "$enableval" = yes; then | |
5844 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5845 | else | |
5846 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5847 | fi | |
5848 | ||
5849 | else | |
5850 | ||
5851 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5852 | if test "x$LINE" != x ; then | |
5853 | eval "DEFAULT_$LINE" | |
5854 | else | |
5855 | no_cache=1 | |
5856 | fi | |
5857 | ||
5858 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5859 | ||
5860 | fi; | |
5861 | ||
5862 | eval "$ac_cv_use_htmlhelp" | |
5863 | if test "$no_cache" != 1; then | |
5864 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5865 | fi | |
5866 | ||
5867 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5868 | echo "$as_me:$LINENO: result: yes" >&5 | |
5869 | echo "${ECHO_T}yes" >&6 | |
5870 | else | |
5871 | echo "$as_me:$LINENO: result: no" >&5 | |
5872 | echo "${ECHO_T}no" >&6 | |
5873 | fi | |
5874 | ||
5875 | ||
5876 | enablestring= | |
5877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
5878 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
5879 | no_cache=0 | |
5880 | # Check whether --enable-constraints or --disable-constraints was given. | |
5881 | if test "${enable_constraints+set}" = set; then | |
5882 | enableval="$enable_constraints" | |
5883 | ||
5884 | if test "$enableval" = yes; then | |
5885 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5886 | else | |
5887 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5888 | fi | |
5889 | ||
5890 | else | |
5891 | ||
5892 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
5893 | if test "x$LINE" != x ; then | |
5894 | eval "DEFAULT_$LINE" | |
5895 | else | |
5896 | no_cache=1 | |
5897 | fi | |
5898 | ||
5899 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
5900 | ||
5901 | fi; | |
5902 | ||
5903 | eval "$ac_cv_use_constraints" | |
5904 | if test "$no_cache" != 1; then | |
5905 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5906 | fi | |
5907 | ||
5908 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
5909 | echo "$as_me:$LINENO: result: yes" >&5 | |
5910 | echo "${ECHO_T}yes" >&6 | |
5911 | else | |
5912 | echo "$as_me:$LINENO: result: no" >&5 | |
5913 | echo "${ECHO_T}no" >&6 | |
5914 | fi | |
5915 | ||
5916 | ||
5917 | enablestring= | |
5918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
5919 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
5920 | no_cache=0 | |
5921 | # Check whether --enable-printarch or --disable-printarch was given. | |
5922 | if test "${enable_printarch+set}" = set; then | |
5923 | enableval="$enable_printarch" | |
5924 | ||
5925 | if test "$enableval" = yes; then | |
5926 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5927 | else | |
5928 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5929 | fi | |
5930 | ||
5931 | else | |
5932 | ||
5933 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
5934 | if test "x$LINE" != x ; then | |
5935 | eval "DEFAULT_$LINE" | |
5936 | else | |
5937 | no_cache=1 | |
5938 | fi | |
5939 | ||
5940 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
5941 | ||
5942 | fi; | |
5943 | ||
5944 | eval "$ac_cv_use_printarch" | |
5945 | if test "$no_cache" != 1; then | |
5946 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5947 | fi | |
5948 | ||
5949 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
5950 | echo "$as_me:$LINENO: result: yes" >&5 | |
5951 | echo "${ECHO_T}yes" >&6 | |
5952 | else | |
5953 | echo "$as_me:$LINENO: result: no" >&5 | |
5954 | echo "${ECHO_T}no" >&6 | |
5955 | fi | |
5956 | ||
5957 | ||
5958 | enablestring= | |
5959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
5960 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
5961 | no_cache=0 | |
5962 | # Check whether --enable-mdi or --disable-mdi was given. | |
5963 | if test "${enable_mdi+set}" = set; then | |
5964 | enableval="$enable_mdi" | |
5965 | ||
5966 | if test "$enableval" = yes; then | |
5967 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5968 | else | |
5969 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5970 | fi | |
5971 | ||
5972 | else | |
5973 | ||
5974 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
5975 | if test "x$LINE" != x ; then | |
5976 | eval "DEFAULT_$LINE" | |
5977 | else | |
5978 | no_cache=1 | |
5979 | fi | |
5980 | ||
5981 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
5982 | ||
5983 | fi; | |
5984 | ||
5985 | eval "$ac_cv_use_mdi" | |
5986 | if test "$no_cache" != 1; then | |
5987 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5988 | fi | |
5989 | ||
5990 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
5991 | echo "$as_me:$LINENO: result: yes" >&5 | |
5992 | echo "${ECHO_T}yes" >&6 | |
5993 | else | |
5994 | echo "$as_me:$LINENO: result: no" >&5 | |
5995 | echo "${ECHO_T}no" >&6 | |
5996 | fi | |
5997 | ||
5998 | ||
5999 | enablestring= | |
6000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6001 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6002 | no_cache=0 | |
6003 | # Check whether --enable-loggui or --disable-loggui was given. | |
6004 | if test "${enable_loggui+set}" = set; then | |
6005 | enableval="$enable_loggui" | |
6006 | ||
6007 | if test "$enableval" = yes; then | |
6008 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6009 | else | |
6010 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6011 | fi | |
6012 | ||
6013 | else | |
6014 | ||
6015 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6016 | if test "x$LINE" != x ; then | |
6017 | eval "DEFAULT_$LINE" | |
6018 | else | |
6019 | no_cache=1 | |
6020 | fi | |
6021 | ||
6022 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6023 | ||
6024 | fi; | |
6025 | ||
6026 | eval "$ac_cv_use_loggui" | |
6027 | if test "$no_cache" != 1; then | |
6028 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6029 | fi | |
6030 | ||
6031 | if test "$wxUSE_LOGGUI" = yes; then | |
6032 | echo "$as_me:$LINENO: result: yes" >&5 | |
6033 | echo "${ECHO_T}yes" >&6 | |
6034 | else | |
6035 | echo "$as_me:$LINENO: result: no" >&5 | |
6036 | echo "${ECHO_T}no" >&6 | |
6037 | fi | |
6038 | ||
6039 | ||
6040 | enablestring= | |
6041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6042 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6043 | no_cache=0 | |
6044 | # Check whether --enable-logwin or --disable-logwin was given. | |
6045 | if test "${enable_logwin+set}" = set; then | |
6046 | enableval="$enable_logwin" | |
6047 | ||
6048 | if test "$enableval" = yes; then | |
6049 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6050 | else | |
6051 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6052 | fi | |
6053 | ||
6054 | else | |
6055 | ||
6056 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6057 | if test "x$LINE" != x ; then | |
6058 | eval "DEFAULT_$LINE" | |
6059 | else | |
6060 | no_cache=1 | |
6061 | fi | |
6062 | ||
6063 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6064 | ||
6065 | fi; | |
6066 | ||
6067 | eval "$ac_cv_use_logwin" | |
6068 | if test "$no_cache" != 1; then | |
6069 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6070 | fi | |
6071 | ||
6072 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6073 | echo "$as_me:$LINENO: result: yes" >&5 | |
6074 | echo "${ECHO_T}yes" >&6 | |
6075 | else | |
6076 | echo "$as_me:$LINENO: result: no" >&5 | |
6077 | echo "${ECHO_T}no" >&6 | |
6078 | fi | |
6079 | ||
6080 | ||
6081 | enablestring= | |
6082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6083 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6084 | no_cache=0 | |
6085 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6086 | if test "${enable_logdialog+set}" = set; then | |
6087 | enableval="$enable_logdialog" | |
6088 | ||
6089 | if test "$enableval" = yes; then | |
6090 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6091 | else | |
6092 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6093 | fi | |
6094 | ||
6095 | else | |
6096 | ||
6097 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6098 | if test "x$LINE" != x ; then | |
6099 | eval "DEFAULT_$LINE" | |
6100 | else | |
6101 | no_cache=1 | |
6102 | fi | |
6103 | ||
6104 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6105 | ||
6106 | fi; | |
6107 | ||
6108 | eval "$ac_cv_use_logdialog" | |
6109 | if test "$no_cache" != 1; then | |
6110 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6111 | fi | |
6112 | ||
6113 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6114 | echo "$as_me:$LINENO: result: yes" >&5 | |
6115 | echo "${ECHO_T}yes" >&6 | |
6116 | else | |
6117 | echo "$as_me:$LINENO: result: no" >&5 | |
6118 | echo "${ECHO_T}no" >&6 | |
6119 | fi | |
6120 | ||
6121 | ||
6122 | ||
6123 | enablestring= | |
6124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6125 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6126 | no_cache=0 | |
6127 | # Check whether --enable-postscript or --disable-postscript was given. | |
6128 | if test "${enable_postscript+set}" = set; then | |
6129 | enableval="$enable_postscript" | |
6130 | ||
6131 | if test "$enableval" = yes; then | |
6132 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6133 | else | |
6134 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6135 | fi | |
6136 | ||
6137 | else | |
6138 | ||
6139 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6140 | if test "x$LINE" != x ; then | |
6141 | eval "DEFAULT_$LINE" | |
6142 | else | |
6143 | no_cache=1 | |
6144 | fi | |
6145 | ||
6146 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6147 | ||
6148 | fi; | |
6149 | ||
6150 | eval "$ac_cv_use_postscript" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6156 | echo "$as_me:$LINENO: result: yes" >&5 | |
6157 | echo "${ECHO_T}yes" >&6 | |
6158 | else | |
6159 | echo "$as_me:$LINENO: result: no" >&5 | |
6160 | echo "${ECHO_T}no" >&6 | |
6161 | fi | |
6162 | ||
6163 | ||
6164 | ||
6165 | ||
6166 | ||
6167 | enablestring= | |
6168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6169 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6170 | no_cache=0 | |
6171 | # Check whether --enable-prologio or --disable-prologio was given. | |
6172 | if test "${enable_prologio+set}" = set; then | |
6173 | enableval="$enable_prologio" | |
6174 | ||
6175 | if test "$enableval" = yes; then | |
6176 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6177 | else | |
6178 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6179 | fi | |
6180 | ||
6181 | else | |
6182 | ||
6183 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6184 | if test "x$LINE" != x ; then | |
6185 | eval "DEFAULT_$LINE" | |
6186 | else | |
6187 | no_cache=1 | |
6188 | fi | |
6189 | ||
6190 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6191 | ||
6192 | fi; | |
6193 | ||
6194 | eval "$ac_cv_use_prologio" | |
6195 | if test "$no_cache" != 1; then | |
6196 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6197 | fi | |
6198 | ||
6199 | if test "$wxUSE_PROLOGIO" = yes; then | |
6200 | echo "$as_me:$LINENO: result: yes" >&5 | |
6201 | echo "${ECHO_T}yes" >&6 | |
6202 | else | |
6203 | echo "$as_me:$LINENO: result: no" >&5 | |
6204 | echo "${ECHO_T}no" >&6 | |
6205 | fi | |
6206 | ||
6207 | ||
6208 | enablestring= | |
6209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6210 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6211 | no_cache=0 | |
6212 | # Check whether --enable-resources or --disable-resources was given. | |
6213 | if test "${enable_resources+set}" = set; then | |
6214 | enableval="$enable_resources" | |
6215 | ||
6216 | if test "$enableval" = yes; then | |
6217 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6218 | else | |
6219 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6220 | fi | |
6221 | ||
6222 | else | |
6223 | ||
6224 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6225 | if test "x$LINE" != x ; then | |
6226 | eval "DEFAULT_$LINE" | |
6227 | else | |
6228 | no_cache=1 | |
6229 | fi | |
6230 | ||
6231 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6232 | ||
6233 | fi; | |
6234 | ||
6235 | eval "$ac_cv_use_resources" | |
6236 | if test "$no_cache" != 1; then | |
6237 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6238 | fi | |
6239 | ||
6240 | if test "$wxUSE_RESOURCES" = yes; then | |
6241 | echo "$as_me:$LINENO: result: yes" >&5 | |
6242 | echo "${ECHO_T}yes" >&6 | |
6243 | else | |
6244 | echo "$as_me:$LINENO: result: no" >&5 | |
6245 | echo "${ECHO_T}no" >&6 | |
6246 | fi | |
6247 | ||
6248 | ||
6249 | ||
6250 | ||
6251 | enablestring= | |
6252 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6253 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6254 | no_cache=0 | |
6255 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6256 | if test "${enable_clipboard+set}" = set; then | |
6257 | enableval="$enable_clipboard" | |
6258 | ||
6259 | if test "$enableval" = yes; then | |
6260 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6261 | else | |
6262 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6263 | fi | |
6264 | ||
6265 | else | |
6266 | ||
6267 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6268 | if test "x$LINE" != x ; then | |
6269 | eval "DEFAULT_$LINE" | |
6270 | else | |
6271 | no_cache=1 | |
6272 | fi | |
6273 | ||
6274 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6275 | ||
6276 | fi; | |
6277 | ||
6278 | eval "$ac_cv_use_clipboard" | |
6279 | if test "$no_cache" != 1; then | |
6280 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6281 | fi | |
6282 | ||
6283 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6284 | echo "$as_me:$LINENO: result: yes" >&5 | |
6285 | echo "${ECHO_T}yes" >&6 | |
6286 | else | |
6287 | echo "$as_me:$LINENO: result: no" >&5 | |
6288 | echo "${ECHO_T}no" >&6 | |
6289 | fi | |
6290 | ||
6291 | ||
6292 | enablestring= | |
6293 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6294 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6295 | no_cache=0 | |
6296 | # Check whether --enable-dnd or --disable-dnd was given. | |
6297 | if test "${enable_dnd+set}" = set; then | |
6298 | enableval="$enable_dnd" | |
6299 | ||
6300 | if test "$enableval" = yes; then | |
6301 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6302 | else | |
6303 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6304 | fi | |
6305 | ||
6306 | else | |
6307 | ||
6308 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6309 | if test "x$LINE" != x ; then | |
6310 | eval "DEFAULT_$LINE" | |
6311 | else | |
6312 | no_cache=1 | |
6313 | fi | |
6314 | ||
6315 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6316 | ||
6317 | fi; | |
6318 | ||
6319 | eval "$ac_cv_use_dnd" | |
6320 | if test "$no_cache" != 1; then | |
6321 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6322 | fi | |
6323 | ||
6324 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6325 | echo "$as_me:$LINENO: result: yes" >&5 | |
6326 | echo "${ECHO_T}yes" >&6 | |
6327 | else | |
6328 | echo "$as_me:$LINENO: result: no" >&5 | |
6329 | echo "${ECHO_T}no" >&6 | |
6330 | fi | |
6331 | ||
6332 | ||
6333 | enablestring= | |
6334 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6335 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6336 | no_cache=0 | |
6337 | # Check whether --enable-metafile or --disable-metafile was given. | |
6338 | if test "${enable_metafile+set}" = set; then | |
6339 | enableval="$enable_metafile" | |
6340 | ||
6341 | if test "$enableval" = yes; then | |
6342 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6343 | else | |
6344 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6345 | fi | |
6346 | ||
6347 | else | |
6348 | ||
6349 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6350 | if test "x$LINE" != x ; then | |
6351 | eval "DEFAULT_$LINE" | |
6352 | else | |
6353 | no_cache=1 | |
6354 | fi | |
6355 | ||
6356 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6357 | ||
6358 | fi; | |
6359 | ||
6360 | eval "$ac_cv_use_metafile" | |
6361 | if test "$no_cache" != 1; then | |
6362 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6363 | fi | |
6364 | ||
6365 | if test "$wxUSE_METAFILE" = yes; then | |
6366 | echo "$as_me:$LINENO: result: yes" >&5 | |
6367 | echo "${ECHO_T}yes" >&6 | |
6368 | else | |
6369 | echo "$as_me:$LINENO: result: no" >&5 | |
6370 | echo "${ECHO_T}no" >&6 | |
6371 | fi | |
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | enablestring= | |
6378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6379 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6380 | no_cache=0 | |
6381 | # Check whether --enable-controls or --disable-controls was given. | |
6382 | if test "${enable_controls+set}" = set; then | |
6383 | enableval="$enable_controls" | |
6384 | ||
6385 | if test "$enableval" = yes; then | |
6386 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6387 | else | |
6388 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6389 | fi | |
6390 | ||
6391 | else | |
6392 | ||
6393 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6394 | if test "x$LINE" != x ; then | |
6395 | eval "DEFAULT_$LINE" | |
6396 | else | |
6397 | no_cache=1 | |
6398 | fi | |
6399 | ||
6400 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6401 | ||
6402 | fi; | |
6403 | ||
6404 | eval "$ac_cv_use_controls" | |
6405 | if test "$no_cache" != 1; then | |
6406 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6407 | fi | |
6408 | ||
6409 | if test "$wxUSE_CONTROLS" = yes; then | |
6410 | echo "$as_me:$LINENO: result: yes" >&5 | |
6411 | echo "${ECHO_T}yes" >&6 | |
6412 | else | |
6413 | echo "$as_me:$LINENO: result: no" >&5 | |
6414 | echo "${ECHO_T}no" >&6 | |
6415 | fi | |
6416 | ||
6417 | ||
6418 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6419 | DEFAULT_wxUSE_ACCEL=yes | |
6420 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6421 | DEFAULT_wxUSE_BUTTON=yes | |
6422 | DEFAULT_wxUSE_CALCTRL=no | |
6423 | DEFAULT_wxUSE_CARET=yes | |
6424 | DEFAULT_wxUSE_COMBOBOX=yes | |
6425 | DEFAULT_wxUSE_CHECKBOX=yes | |
6426 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6427 | DEFAULT_wxUSE_CHOICE=yes | |
6428 | DEFAULT_wxUSE_GAUGE=yes | |
6429 | DEFAULT_wxUSE_GRID=yes | |
6430 | DEFAULT_wxUSE_IMAGLIST=yes | |
6431 | DEFAULT_wxUSE_LISTBOX=yes | |
6432 | DEFAULT_wxUSE_LISTCTRL=yes | |
6433 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6434 | DEFAULT_wxUSE_RADIOBOX=yes | |
6435 | DEFAULT_wxUSE_RADIOBTN=yes | |
6436 | DEFAULT_wxUSE_SASH=yes | |
6437 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6438 | DEFAULT_wxUSE_SLIDER=yes | |
6439 | DEFAULT_wxUSE_SPINBTN=yes | |
6440 | DEFAULT_wxUSE_SPINCTRL=yes | |
6441 | DEFAULT_wxUSE_SPLITTER=yes | |
6442 | DEFAULT_wxUSE_STATBMP=yes | |
6443 | DEFAULT_wxUSE_STATBOX=yes | |
6444 | DEFAULT_wxUSE_STATLINE=yes | |
6445 | DEFAULT_wxUSE_STATUSBAR=yes | |
6446 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6447 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6448 | DEFAULT_wxUSE_TOOLBAR=yes | |
6449 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6450 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6451 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6452 | DEFAULT_wxUSE_TREECTRL=yes | |
6453 | DEFAULT_wxUSE_POPUPWIN=yes | |
6454 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6455 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6456 | DEFAULT_wxUSE_ACCEL=no | |
6457 | DEFAULT_wxUSE_BMPBUTTON=no | |
6458 | DEFAULT_wxUSE_BUTTON=no | |
6459 | DEFAULT_wxUSE_CALCTRL=no | |
6460 | DEFAULT_wxUSE_CARET=no | |
6461 | DEFAULT_wxUSE_COMBOBOX=no | |
6462 | DEFAULT_wxUSE_CHECKBOX=no | |
6463 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6464 | DEFAULT_wxUSE_CHOICE=no | |
6465 | DEFAULT_wxUSE_GAUGE=no | |
6466 | DEFAULT_wxUSE_GRID=no | |
6467 | DEFAULT_wxUSE_IMAGLIST=no | |
6468 | DEFAULT_wxUSE_LISTBOX=no | |
6469 | DEFAULT_wxUSE_LISTCTRL=no | |
6470 | DEFAULT_wxUSE_NOTEBOOK=no | |
6471 | DEFAULT_wxUSE_RADIOBOX=no | |
6472 | DEFAULT_wxUSE_RADIOBTN=no | |
6473 | DEFAULT_wxUSE_SASH=no | |
6474 | DEFAULT_wxUSE_SCROLLBAR=no | |
6475 | DEFAULT_wxUSE_SLIDER=no | |
6476 | DEFAULT_wxUSE_SPINBTN=no | |
6477 | DEFAULT_wxUSE_SPINCTRL=no | |
6478 | DEFAULT_wxUSE_SPLITTER=no | |
6479 | DEFAULT_wxUSE_STATBMP=no | |
6480 | DEFAULT_wxUSE_STATBOX=no | |
6481 | DEFAULT_wxUSE_STATLINE=no | |
6482 | DEFAULT_wxUSE_STATUSBAR=no | |
6483 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6484 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6485 | DEFAULT_wxUSE_TOOLBAR=no | |
6486 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6487 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6488 | DEFAULT_wxUSE_TOOLTIPS=no | |
6489 | DEFAULT_wxUSE_TREECTRL=no | |
6490 | DEFAULT_wxUSE_POPUPWIN=no | |
6491 | DEFAULT_wxUSE_TIPWINDOW=no | |
6492 | fi | |
6493 | ||
6494 | ## FIXME: This is a blatant hack | |
6495 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6496 | wxUSE_PRINTING_ARCHITECTURE=no | |
6497 | wxUSE_HELP=no | |
6498 | wxUSE_CLIPBOARD=no | |
6499 | wxUSE_DRAG_AND_DROP=no | |
6500 | wxUSE_DATAOBJ=no | |
6501 | # Generic notebook requires tab dialog | |
6502 | DEFAULT_wxUSE_TABDIALOG=yes | |
6503 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6504 | DEFAULT_wxUSE_GAUGE=no | |
6505 | DEFAULT_wxUSE_SCROLLBAR=no | |
6506 | DEFAULT_wxUSE_COMBOBOX=no | |
6507 | DEFAULT_wxUSE_CALCTRL=no | |
6508 | DEFAULT_wxUSE_SPINBTN=no | |
6509 | DEFAULT_wxUSE_SPINCTRL=no | |
6510 | DEFAULT_wxUSE_TOOLTIPS=no | |
6511 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6512 | DEFAULT_wxUSE_PROGRESSDLG=no | |
6513 | fi | |
6514 | ||
6515 | ||
6516 | enablestring= | |
6517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6518 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6519 | no_cache=0 | |
6520 | # Check whether --enable-accel or --disable-accel was given. | |
6521 | if test "${enable_accel+set}" = set; then | |
6522 | enableval="$enable_accel" | |
6523 | ||
6524 | if test "$enableval" = yes; then | |
6525 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6526 | else | |
6527 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6528 | fi | |
6529 | ||
6530 | else | |
6531 | ||
6532 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6533 | if test "x$LINE" != x ; then | |
6534 | eval "DEFAULT_$LINE" | |
6535 | else | |
6536 | no_cache=1 | |
6537 | fi | |
6538 | ||
6539 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6540 | ||
6541 | fi; | |
6542 | ||
6543 | eval "$ac_cv_use_accel" | |
6544 | if test "$no_cache" != 1; then | |
6545 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6546 | fi | |
6547 | ||
6548 | if test "$wxUSE_ACCEL" = yes; then | |
6549 | echo "$as_me:$LINENO: result: yes" >&5 | |
6550 | echo "${ECHO_T}yes" >&6 | |
6551 | else | |
6552 | echo "$as_me:$LINENO: result: no" >&5 | |
6553 | echo "${ECHO_T}no" >&6 | |
6554 | fi | |
6555 | ||
6556 | ||
6557 | enablestring= | |
6558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
6559 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
6560 | no_cache=0 | |
6561 | # Check whether --enable-button or --disable-button was given. | |
6562 | if test "${enable_button+set}" = set; then | |
6563 | enableval="$enable_button" | |
6564 | ||
6565 | if test "$enableval" = yes; then | |
6566 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
6567 | else | |
6568 | ac_cv_use_button='wxUSE_BUTTON=no' | |
6569 | fi | |
6570 | ||
6571 | else | |
6572 | ||
6573 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
6574 | if test "x$LINE" != x ; then | |
6575 | eval "DEFAULT_$LINE" | |
6576 | else | |
6577 | no_cache=1 | |
6578 | fi | |
6579 | ||
6580 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
6581 | ||
6582 | fi; | |
6583 | ||
6584 | eval "$ac_cv_use_button" | |
6585 | if test "$no_cache" != 1; then | |
6586 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
6587 | fi | |
6588 | ||
6589 | if test "$wxUSE_BUTTON" = yes; then | |
6590 | echo "$as_me:$LINENO: result: yes" >&5 | |
6591 | echo "${ECHO_T}yes" >&6 | |
6592 | else | |
6593 | echo "$as_me:$LINENO: result: no" >&5 | |
6594 | echo "${ECHO_T}no" >&6 | |
6595 | fi | |
6596 | ||
6597 | ||
6598 | enablestring= | |
6599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
6600 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
6601 | no_cache=0 | |
6602 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6603 | if test "${enable_bmpbutton+set}" = set; then | |
6604 | enableval="$enable_bmpbutton" | |
6605 | ||
6606 | if test "$enableval" = yes; then | |
6607 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6608 | else | |
6609 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6610 | fi | |
6611 | ||
6612 | else | |
6613 | ||
6614 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
6615 | if test "x$LINE" != x ; then | |
6616 | eval "DEFAULT_$LINE" | |
6617 | else | |
6618 | no_cache=1 | |
6619 | fi | |
6620 | ||
6621 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
6622 | ||
6623 | fi; | |
6624 | ||
6625 | eval "$ac_cv_use_bmpbutton" | |
6626 | if test "$no_cache" != 1; then | |
6627 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6628 | fi | |
6629 | ||
6630 | if test "$wxUSE_BMPBUTTON" = yes; then | |
6631 | echo "$as_me:$LINENO: result: yes" >&5 | |
6632 | echo "${ECHO_T}yes" >&6 | |
6633 | else | |
6634 | echo "$as_me:$LINENO: result: no" >&5 | |
6635 | echo "${ECHO_T}no" >&6 | |
6636 | fi | |
6637 | ||
6638 | ||
6639 | enablestring= | |
6640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
6641 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
6642 | no_cache=0 | |
6643 | # Check whether --enable-calendar or --disable-calendar was given. | |
6644 | if test "${enable_calendar+set}" = set; then | |
6645 | enableval="$enable_calendar" | |
6646 | ||
6647 | if test "$enableval" = yes; then | |
6648 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6649 | else | |
6650 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6651 | fi | |
6652 | ||
6653 | else | |
6654 | ||
6655 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
6656 | if test "x$LINE" != x ; then | |
6657 | eval "DEFAULT_$LINE" | |
6658 | else | |
6659 | no_cache=1 | |
6660 | fi | |
6661 | ||
6662 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
6663 | ||
6664 | fi; | |
6665 | ||
6666 | eval "$ac_cv_use_calendar" | |
6667 | if test "$no_cache" != 1; then | |
6668 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6669 | fi | |
6670 | ||
6671 | if test "$wxUSE_CALCTRL" = yes; then | |
6672 | echo "$as_me:$LINENO: result: yes" >&5 | |
6673 | echo "${ECHO_T}yes" >&6 | |
6674 | else | |
6675 | echo "$as_me:$LINENO: result: no" >&5 | |
6676 | echo "${ECHO_T}no" >&6 | |
6677 | fi | |
6678 | ||
6679 | ||
6680 | enablestring= | |
6681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
6682 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
6683 | no_cache=0 | |
6684 | # Check whether --enable-caret or --disable-caret was given. | |
6685 | if test "${enable_caret+set}" = set; then | |
6686 | enableval="$enable_caret" | |
6687 | ||
6688 | if test "$enableval" = yes; then | |
6689 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6690 | else | |
6691 | ac_cv_use_caret='wxUSE_CARET=no' | |
6692 | fi | |
6693 | ||
6694 | else | |
6695 | ||
6696 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
6697 | if test "x$LINE" != x ; then | |
6698 | eval "DEFAULT_$LINE" | |
6699 | else | |
6700 | no_cache=1 | |
6701 | fi | |
6702 | ||
6703 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
6704 | ||
6705 | fi; | |
6706 | ||
6707 | eval "$ac_cv_use_caret" | |
6708 | if test "$no_cache" != 1; then | |
6709 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6710 | fi | |
6711 | ||
6712 | if test "$wxUSE_CARET" = yes; then | |
6713 | echo "$as_me:$LINENO: result: yes" >&5 | |
6714 | echo "${ECHO_T}yes" >&6 | |
6715 | else | |
6716 | echo "$as_me:$LINENO: result: no" >&5 | |
6717 | echo "${ECHO_T}no" >&6 | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | enablestring= | |
6722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
6723 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
6724 | no_cache=0 | |
6725 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6726 | if test "${enable_checkbox+set}" = set; then | |
6727 | enableval="$enable_checkbox" | |
6728 | ||
6729 | if test "$enableval" = yes; then | |
6730 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6731 | else | |
6732 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6733 | fi | |
6734 | ||
6735 | else | |
6736 | ||
6737 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
6738 | if test "x$LINE" != x ; then | |
6739 | eval "DEFAULT_$LINE" | |
6740 | else | |
6741 | no_cache=1 | |
6742 | fi | |
6743 | ||
6744 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
6745 | ||
6746 | fi; | |
6747 | ||
6748 | eval "$ac_cv_use_checkbox" | |
6749 | if test "$no_cache" != 1; then | |
6750 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6751 | fi | |
6752 | ||
6753 | if test "$wxUSE_CHECKBOX" = yes; then | |
6754 | echo "$as_me:$LINENO: result: yes" >&5 | |
6755 | echo "${ECHO_T}yes" >&6 | |
6756 | else | |
6757 | echo "$as_me:$LINENO: result: no" >&5 | |
6758 | echo "${ECHO_T}no" >&6 | |
6759 | fi | |
6760 | ||
6761 | ||
6762 | enablestring= | |
6763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
6764 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
6765 | no_cache=0 | |
6766 | # Check whether --enable-checklst or --disable-checklst was given. | |
6767 | if test "${enable_checklst+set}" = set; then | |
6768 | enableval="$enable_checklst" | |
6769 | ||
6770 | if test "$enableval" = yes; then | |
6771 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6772 | else | |
6773 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6774 | fi | |
6775 | ||
6776 | else | |
6777 | ||
6778 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
6779 | if test "x$LINE" != x ; then | |
6780 | eval "DEFAULT_$LINE" | |
6781 | else | |
6782 | no_cache=1 | |
6783 | fi | |
6784 | ||
6785 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
6786 | ||
6787 | fi; | |
6788 | ||
6789 | eval "$ac_cv_use_checklst" | |
6790 | if test "$no_cache" != 1; then | |
6791 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6792 | fi | |
6793 | ||
6794 | if test "$wxUSE_CHECKLST" = yes; then | |
6795 | echo "$as_me:$LINENO: result: yes" >&5 | |
6796 | echo "${ECHO_T}yes" >&6 | |
6797 | else | |
6798 | echo "$as_me:$LINENO: result: no" >&5 | |
6799 | echo "${ECHO_T}no" >&6 | |
6800 | fi | |
6801 | ||
6802 | ||
6803 | enablestring= | |
6804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
6805 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
6806 | no_cache=0 | |
6807 | # Check whether --enable-choice or --disable-choice was given. | |
6808 | if test "${enable_choice+set}" = set; then | |
6809 | enableval="$enable_choice" | |
6810 | ||
6811 | if test "$enableval" = yes; then | |
6812 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6813 | else | |
6814 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6815 | fi | |
6816 | ||
6817 | else | |
6818 | ||
6819 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
6820 | if test "x$LINE" != x ; then | |
6821 | eval "DEFAULT_$LINE" | |
6822 | else | |
6823 | no_cache=1 | |
6824 | fi | |
6825 | ||
6826 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
6827 | ||
6828 | fi; | |
6829 | ||
6830 | eval "$ac_cv_use_choice" | |
6831 | if test "$no_cache" != 1; then | |
6832 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6833 | fi | |
6834 | ||
6835 | if test "$wxUSE_CHOICE" = yes; then | |
6836 | echo "$as_me:$LINENO: result: yes" >&5 | |
6837 | echo "${ECHO_T}yes" >&6 | |
6838 | else | |
6839 | echo "$as_me:$LINENO: result: no" >&5 | |
6840 | echo "${ECHO_T}no" >&6 | |
6841 | fi | |
6842 | ||
6843 | ||
6844 | enablestring= | |
6845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
6846 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
6847 | no_cache=0 | |
6848 | # Check whether --enable-combobox or --disable-combobox was given. | |
6849 | if test "${enable_combobox+set}" = set; then | |
6850 | enableval="$enable_combobox" | |
6851 | ||
6852 | if test "$enableval" = yes; then | |
6853 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6854 | else | |
6855 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6856 | fi | |
6857 | ||
6858 | else | |
6859 | ||
6860 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
6861 | if test "x$LINE" != x ; then | |
6862 | eval "DEFAULT_$LINE" | |
6863 | else | |
6864 | no_cache=1 | |
6865 | fi | |
6866 | ||
6867 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
6868 | ||
6869 | fi; | |
6870 | ||
6871 | eval "$ac_cv_use_combobox" | |
6872 | if test "$no_cache" != 1; then | |
6873 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6874 | fi | |
6875 | ||
6876 | if test "$wxUSE_COMBOBOX" = yes; then | |
6877 | echo "$as_me:$LINENO: result: yes" >&5 | |
6878 | echo "${ECHO_T}yes" >&6 | |
6879 | else | |
6880 | echo "$as_me:$LINENO: result: no" >&5 | |
6881 | echo "${ECHO_T}no" >&6 | |
6882 | fi | |
6883 | ||
6884 | ||
6885 | enablestring= | |
6886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
6887 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
6888 | no_cache=0 | |
6889 | # Check whether --enable-display or --disable-display was given. | |
6890 | if test "${enable_display+set}" = set; then | |
6891 | enableval="$enable_display" | |
6892 | ||
6893 | if test "$enableval" = yes; then | |
6894 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6895 | else | |
6896 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6897 | fi | |
6898 | ||
6899 | else | |
6900 | ||
6901 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6902 | if test "x$LINE" != x ; then | |
6903 | eval "DEFAULT_$LINE" | |
6904 | else | |
6905 | no_cache=1 | |
6906 | fi | |
6907 | ||
6908 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6909 | ||
6910 | fi; | |
6911 | ||
6912 | eval "$ac_cv_use_display" | |
6913 | if test "$no_cache" != 1; then | |
6914 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6915 | fi | |
6916 | ||
6917 | if test "$wxUSE_DISPLAY" = yes; then | |
6918 | echo "$as_me:$LINENO: result: yes" >&5 | |
6919 | echo "${ECHO_T}yes" >&6 | |
6920 | else | |
6921 | echo "$as_me:$LINENO: result: no" >&5 | |
6922 | echo "${ECHO_T}no" >&6 | |
6923 | fi | |
6924 | ||
6925 | ||
6926 | enablestring= | |
6927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
6928 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
6929 | no_cache=0 | |
6930 | # Check whether --enable-gauge or --disable-gauge was given. | |
6931 | if test "${enable_gauge+set}" = set; then | |
6932 | enableval="$enable_gauge" | |
6933 | ||
6934 | if test "$enableval" = yes; then | |
6935 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6936 | else | |
6937 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6938 | fi | |
6939 | ||
6940 | else | |
6941 | ||
6942 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
6943 | if test "x$LINE" != x ; then | |
6944 | eval "DEFAULT_$LINE" | |
6945 | else | |
6946 | no_cache=1 | |
6947 | fi | |
6948 | ||
6949 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
6950 | ||
6951 | fi; | |
6952 | ||
6953 | eval "$ac_cv_use_gauge" | |
6954 | if test "$no_cache" != 1; then | |
6955 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6956 | fi | |
6957 | ||
6958 | if test "$wxUSE_GAUGE" = yes; then | |
6959 | echo "$as_me:$LINENO: result: yes" >&5 | |
6960 | echo "${ECHO_T}yes" >&6 | |
6961 | else | |
6962 | echo "$as_me:$LINENO: result: no" >&5 | |
6963 | echo "${ECHO_T}no" >&6 | |
6964 | fi | |
6965 | ||
6966 | ||
6967 | enablestring= | |
6968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
6969 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
6970 | no_cache=0 | |
6971 | # Check whether --enable-grid or --disable-grid was given. | |
6972 | if test "${enable_grid+set}" = set; then | |
6973 | enableval="$enable_grid" | |
6974 | ||
6975 | if test "$enableval" = yes; then | |
6976 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6977 | else | |
6978 | ac_cv_use_grid='wxUSE_GRID=no' | |
6979 | fi | |
6980 | ||
6981 | else | |
6982 | ||
6983 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
6984 | if test "x$LINE" != x ; then | |
6985 | eval "DEFAULT_$LINE" | |
6986 | else | |
6987 | no_cache=1 | |
6988 | fi | |
6989 | ||
6990 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
6991 | ||
6992 | fi; | |
6993 | ||
6994 | eval "$ac_cv_use_grid" | |
6995 | if test "$no_cache" != 1; then | |
6996 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6997 | fi | |
6998 | ||
6999 | if test "$wxUSE_GRID" = yes; then | |
7000 | echo "$as_me:$LINENO: result: yes" >&5 | |
7001 | echo "${ECHO_T}yes" >&6 | |
7002 | else | |
7003 | echo "$as_me:$LINENO: result: no" >&5 | |
7004 | echo "${ECHO_T}no" >&6 | |
7005 | fi | |
7006 | ||
7007 | ||
7008 | enablestring= | |
7009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7010 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7011 | no_cache=0 | |
7012 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7013 | if test "${enable_imaglist+set}" = set; then | |
7014 | enableval="$enable_imaglist" | |
7015 | ||
7016 | if test "$enableval" = yes; then | |
7017 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7018 | else | |
7019 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7020 | fi | |
7021 | ||
7022 | else | |
7023 | ||
7024 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7032 | ||
7033 | fi; | |
7034 | ||
7035 | eval "$ac_cv_use_imaglist" | |
7036 | if test "$no_cache" != 1; then | |
7037 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7038 | fi | |
7039 | ||
7040 | if test "$wxUSE_IMAGLIST" = yes; then | |
7041 | echo "$as_me:$LINENO: result: yes" >&5 | |
7042 | echo "${ECHO_T}yes" >&6 | |
7043 | else | |
7044 | echo "$as_me:$LINENO: result: no" >&5 | |
7045 | echo "${ECHO_T}no" >&6 | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | enablestring= | |
7050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7051 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7052 | no_cache=0 | |
7053 | # Check whether --enable-listbox or --disable-listbox was given. | |
7054 | if test "${enable_listbox+set}" = set; then | |
7055 | enableval="$enable_listbox" | |
7056 | ||
7057 | if test "$enableval" = yes; then | |
7058 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7059 | else | |
7060 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7061 | fi | |
7062 | ||
7063 | else | |
7064 | ||
7065 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7066 | if test "x$LINE" != x ; then | |
7067 | eval "DEFAULT_$LINE" | |
7068 | else | |
7069 | no_cache=1 | |
7070 | fi | |
7071 | ||
7072 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7073 | ||
7074 | fi; | |
7075 | ||
7076 | eval "$ac_cv_use_listbox" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_LISTBOX" = yes; then | |
7082 | echo "$as_me:$LINENO: result: yes" >&5 | |
7083 | echo "${ECHO_T}yes" >&6 | |
7084 | else | |
7085 | echo "$as_me:$LINENO: result: no" >&5 | |
7086 | echo "${ECHO_T}no" >&6 | |
7087 | fi | |
7088 | ||
7089 | ||
7090 | enablestring= | |
7091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7092 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7093 | no_cache=0 | |
7094 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7095 | if test "${enable_listctrl+set}" = set; then | |
7096 | enableval="$enable_listctrl" | |
7097 | ||
7098 | if test "$enableval" = yes; then | |
7099 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7100 | else | |
7101 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7102 | fi | |
7103 | ||
7104 | else | |
7105 | ||
7106 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7107 | if test "x$LINE" != x ; then | |
7108 | eval "DEFAULT_$LINE" | |
7109 | else | |
7110 | no_cache=1 | |
7111 | fi | |
7112 | ||
7113 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7114 | ||
7115 | fi; | |
7116 | ||
7117 | eval "$ac_cv_use_listctrl" | |
7118 | if test "$no_cache" != 1; then | |
7119 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7120 | fi | |
7121 | ||
7122 | if test "$wxUSE_LISTCTRL" = yes; then | |
7123 | echo "$as_me:$LINENO: result: yes" >&5 | |
7124 | echo "${ECHO_T}yes" >&6 | |
7125 | else | |
7126 | echo "$as_me:$LINENO: result: no" >&5 | |
7127 | echo "${ECHO_T}no" >&6 | |
7128 | fi | |
7129 | ||
7130 | ||
7131 | enablestring= | |
7132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7133 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7134 | no_cache=0 | |
7135 | # Check whether --enable-notebook or --disable-notebook was given. | |
7136 | if test "${enable_notebook+set}" = set; then | |
7137 | enableval="$enable_notebook" | |
7138 | ||
7139 | if test "$enableval" = yes; then | |
7140 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7141 | else | |
7142 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7143 | fi | |
7144 | ||
7145 | else | |
7146 | ||
7147 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7148 | if test "x$LINE" != x ; then | |
7149 | eval "DEFAULT_$LINE" | |
7150 | else | |
7151 | no_cache=1 | |
7152 | fi | |
7153 | ||
7154 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7155 | ||
7156 | fi; | |
7157 | ||
7158 | eval "$ac_cv_use_notebook" | |
7159 | if test "$no_cache" != 1; then | |
7160 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7161 | fi | |
7162 | ||
7163 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7164 | echo "$as_me:$LINENO: result: yes" >&5 | |
7165 | echo "${ECHO_T}yes" >&6 | |
7166 | else | |
7167 | echo "$as_me:$LINENO: result: no" >&5 | |
7168 | echo "${ECHO_T}no" >&6 | |
7169 | fi | |
7170 | ||
7171 | ||
7172 | enablestring= | |
7173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7174 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7175 | no_cache=0 | |
7176 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7177 | if test "${enable_radiobox+set}" = set; then | |
7178 | enableval="$enable_radiobox" | |
7179 | ||
7180 | if test "$enableval" = yes; then | |
7181 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7182 | else | |
7183 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7184 | fi | |
7185 | ||
7186 | else | |
7187 | ||
7188 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7189 | if test "x$LINE" != x ; then | |
7190 | eval "DEFAULT_$LINE" | |
7191 | else | |
7192 | no_cache=1 | |
7193 | fi | |
7194 | ||
7195 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7196 | ||
7197 | fi; | |
7198 | ||
7199 | eval "$ac_cv_use_radiobox" | |
7200 | if test "$no_cache" != 1; then | |
7201 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7202 | fi | |
7203 | ||
7204 | if test "$wxUSE_RADIOBOX" = yes; then | |
7205 | echo "$as_me:$LINENO: result: yes" >&5 | |
7206 | echo "${ECHO_T}yes" >&6 | |
7207 | else | |
7208 | echo "$as_me:$LINENO: result: no" >&5 | |
7209 | echo "${ECHO_T}no" >&6 | |
7210 | fi | |
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7218 | if test "${enable_radiobtn+set}" = set; then | |
7219 | enableval="$enable_radiobtn" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7223 | else | |
7224 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_radiobtn" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_RADIOBTN" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | enablestring= | |
7255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7256 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7257 | no_cache=0 | |
7258 | # Check whether --enable-sash or --disable-sash was given. | |
7259 | if test "${enable_sash+set}" = set; then | |
7260 | enableval="$enable_sash" | |
7261 | ||
7262 | if test "$enableval" = yes; then | |
7263 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7264 | else | |
7265 | ac_cv_use_sash='wxUSE_SASH=no' | |
7266 | fi | |
7267 | ||
7268 | else | |
7269 | ||
7270 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7271 | if test "x$LINE" != x ; then | |
7272 | eval "DEFAULT_$LINE" | |
7273 | else | |
7274 | no_cache=1 | |
7275 | fi | |
7276 | ||
7277 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7278 | ||
7279 | fi; | |
7280 | ||
7281 | eval "$ac_cv_use_sash" | |
7282 | if test "$no_cache" != 1; then | |
7283 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7284 | fi | |
7285 | ||
7286 | if test "$wxUSE_SASH" = yes; then | |
7287 | echo "$as_me:$LINENO: result: yes" >&5 | |
7288 | echo "${ECHO_T}yes" >&6 | |
7289 | else | |
7290 | echo "$as_me:$LINENO: result: no" >&5 | |
7291 | echo "${ECHO_T}no" >&6 | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | enablestring= | |
7296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7297 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7298 | no_cache=0 | |
7299 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7300 | if test "${enable_scrollbar+set}" = set; then | |
7301 | enableval="$enable_scrollbar" | |
7302 | ||
7303 | if test "$enableval" = yes; then | |
7304 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7305 | else | |
7306 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7307 | fi | |
7308 | ||
7309 | else | |
7310 | ||
7311 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7312 | if test "x$LINE" != x ; then | |
7313 | eval "DEFAULT_$LINE" | |
7314 | else | |
7315 | no_cache=1 | |
7316 | fi | |
7317 | ||
7318 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7319 | ||
7320 | fi; | |
7321 | ||
7322 | eval "$ac_cv_use_scrollbar" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7328 | echo "$as_me:$LINENO: result: yes" >&5 | |
7329 | echo "${ECHO_T}yes" >&6 | |
7330 | else | |
7331 | echo "$as_me:$LINENO: result: no" >&5 | |
7332 | echo "${ECHO_T}no" >&6 | |
7333 | fi | |
7334 | ||
7335 | ||
7336 | enablestring= | |
7337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7338 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7339 | no_cache=0 | |
7340 | # Check whether --enable-slider or --disable-slider was given. | |
7341 | if test "${enable_slider+set}" = set; then | |
7342 | enableval="$enable_slider" | |
7343 | ||
7344 | if test "$enableval" = yes; then | |
7345 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7346 | else | |
7347 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7348 | fi | |
7349 | ||
7350 | else | |
7351 | ||
7352 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7353 | if test "x$LINE" != x ; then | |
7354 | eval "DEFAULT_$LINE" | |
7355 | else | |
7356 | no_cache=1 | |
7357 | fi | |
7358 | ||
7359 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7360 | ||
7361 | fi; | |
7362 | ||
7363 | eval "$ac_cv_use_slider" | |
7364 | if test "$no_cache" != 1; then | |
7365 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7366 | fi | |
7367 | ||
7368 | if test "$wxUSE_SLIDER" = yes; then | |
7369 | echo "$as_me:$LINENO: result: yes" >&5 | |
7370 | echo "${ECHO_T}yes" >&6 | |
7371 | else | |
7372 | echo "$as_me:$LINENO: result: no" >&5 | |
7373 | echo "${ECHO_T}no" >&6 | |
7374 | fi | |
7375 | ||
7376 | ||
7377 | enablestring= | |
7378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7379 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7380 | no_cache=0 | |
7381 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7382 | if test "${enable_spinbtn+set}" = set; then | |
7383 | enableval="$enable_spinbtn" | |
7384 | ||
7385 | if test "$enableval" = yes; then | |
7386 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7387 | else | |
7388 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7389 | fi | |
7390 | ||
7391 | else | |
7392 | ||
7393 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7394 | if test "x$LINE" != x ; then | |
7395 | eval "DEFAULT_$LINE" | |
7396 | else | |
7397 | no_cache=1 | |
7398 | fi | |
7399 | ||
7400 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7401 | ||
7402 | fi; | |
7403 | ||
7404 | eval "$ac_cv_use_spinbtn" | |
7405 | if test "$no_cache" != 1; then | |
7406 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7407 | fi | |
7408 | ||
7409 | if test "$wxUSE_SPINBTN" = yes; then | |
7410 | echo "$as_me:$LINENO: result: yes" >&5 | |
7411 | echo "${ECHO_T}yes" >&6 | |
7412 | else | |
7413 | echo "$as_me:$LINENO: result: no" >&5 | |
7414 | echo "${ECHO_T}no" >&6 | |
7415 | fi | |
7416 | ||
7417 | ||
7418 | enablestring= | |
7419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7420 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7421 | no_cache=0 | |
7422 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7423 | if test "${enable_spinctrl+set}" = set; then | |
7424 | enableval="$enable_spinctrl" | |
7425 | ||
7426 | if test "$enableval" = yes; then | |
7427 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7428 | else | |
7429 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7430 | fi | |
7431 | ||
7432 | else | |
7433 | ||
7434 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
7435 | if test "x$LINE" != x ; then | |
7436 | eval "DEFAULT_$LINE" | |
7437 | else | |
7438 | no_cache=1 | |
7439 | fi | |
7440 | ||
7441 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7442 | ||
7443 | fi; | |
7444 | ||
7445 | eval "$ac_cv_use_spinctrl" | |
7446 | if test "$no_cache" != 1; then | |
7447 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7448 | fi | |
7449 | ||
7450 | if test "$wxUSE_SPINCTRL" = yes; then | |
7451 | echo "$as_me:$LINENO: result: yes" >&5 | |
7452 | echo "${ECHO_T}yes" >&6 | |
7453 | else | |
7454 | echo "$as_me:$LINENO: result: no" >&5 | |
7455 | echo "${ECHO_T}no" >&6 | |
7456 | fi | |
7457 | ||
7458 | ||
7459 | enablestring= | |
7460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
7461 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
7462 | no_cache=0 | |
7463 | # Check whether --enable-splitter or --disable-splitter was given. | |
7464 | if test "${enable_splitter+set}" = set; then | |
7465 | enableval="$enable_splitter" | |
7466 | ||
7467 | if test "$enableval" = yes; then | |
7468 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7469 | else | |
7470 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7471 | fi | |
7472 | ||
7473 | else | |
7474 | ||
7475 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
7476 | if test "x$LINE" != x ; then | |
7477 | eval "DEFAULT_$LINE" | |
7478 | else | |
7479 | no_cache=1 | |
7480 | fi | |
7481 | ||
7482 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
7483 | ||
7484 | fi; | |
7485 | ||
7486 | eval "$ac_cv_use_splitter" | |
7487 | if test "$no_cache" != 1; then | |
7488 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7489 | fi | |
7490 | ||
7491 | if test "$wxUSE_SPLITTER" = yes; then | |
7492 | echo "$as_me:$LINENO: result: yes" >&5 | |
7493 | echo "${ECHO_T}yes" >&6 | |
7494 | else | |
7495 | echo "$as_me:$LINENO: result: no" >&5 | |
7496 | echo "${ECHO_T}no" >&6 | |
7497 | fi | |
7498 | ||
7499 | ||
7500 | enablestring= | |
7501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
7502 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
7503 | no_cache=0 | |
7504 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7505 | if test "${enable_statbmp+set}" = set; then | |
7506 | enableval="$enable_statbmp" | |
7507 | ||
7508 | if test "$enableval" = yes; then | |
7509 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7510 | else | |
7511 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7512 | fi | |
7513 | ||
7514 | else | |
7515 | ||
7516 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
7517 | if test "x$LINE" != x ; then | |
7518 | eval "DEFAULT_$LINE" | |
7519 | else | |
7520 | no_cache=1 | |
7521 | fi | |
7522 | ||
7523 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
7524 | ||
7525 | fi; | |
7526 | ||
7527 | eval "$ac_cv_use_statbmp" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_STATBMP" = yes; then | |
7533 | echo "$as_me:$LINENO: result: yes" >&5 | |
7534 | echo "${ECHO_T}yes" >&6 | |
7535 | else | |
7536 | echo "$as_me:$LINENO: result: no" >&5 | |
7537 | echo "${ECHO_T}no" >&6 | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | enablestring= | |
7542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
7543 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
7544 | no_cache=0 | |
7545 | # Check whether --enable-statbox or --disable-statbox was given. | |
7546 | if test "${enable_statbox+set}" = set; then | |
7547 | enableval="$enable_statbox" | |
7548 | ||
7549 | if test "$enableval" = yes; then | |
7550 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7551 | else | |
7552 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7553 | fi | |
7554 | ||
7555 | else | |
7556 | ||
7557 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
7558 | if test "x$LINE" != x ; then | |
7559 | eval "DEFAULT_$LINE" | |
7560 | else | |
7561 | no_cache=1 | |
7562 | fi | |
7563 | ||
7564 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
7565 | ||
7566 | fi; | |
7567 | ||
7568 | eval "$ac_cv_use_statbox" | |
7569 | if test "$no_cache" != 1; then | |
7570 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7571 | fi | |
7572 | ||
7573 | if test "$wxUSE_STATBOX" = yes; then | |
7574 | echo "$as_me:$LINENO: result: yes" >&5 | |
7575 | echo "${ECHO_T}yes" >&6 | |
7576 | else | |
7577 | echo "$as_me:$LINENO: result: no" >&5 | |
7578 | echo "${ECHO_T}no" >&6 | |
7579 | fi | |
7580 | ||
7581 | ||
7582 | enablestring= | |
7583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
7584 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
7585 | no_cache=0 | |
7586 | # Check whether --enable-statline or --disable-statline was given. | |
7587 | if test "${enable_statline+set}" = set; then | |
7588 | enableval="$enable_statline" | |
7589 | ||
7590 | if test "$enableval" = yes; then | |
7591 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7592 | else | |
7593 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7594 | fi | |
7595 | ||
7596 | else | |
7597 | ||
7598 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
7599 | if test "x$LINE" != x ; then | |
7600 | eval "DEFAULT_$LINE" | |
7601 | else | |
7602 | no_cache=1 | |
7603 | fi | |
7604 | ||
7605 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
7606 | ||
7607 | fi; | |
7608 | ||
7609 | eval "$ac_cv_use_statline" | |
7610 | if test "$no_cache" != 1; then | |
7611 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7612 | fi | |
7613 | ||
7614 | if test "$wxUSE_STATLINE" = yes; then | |
7615 | echo "$as_me:$LINENO: result: yes" >&5 | |
7616 | echo "${ECHO_T}yes" >&6 | |
7617 | else | |
7618 | echo "$as_me:$LINENO: result: no" >&5 | |
7619 | echo "${ECHO_T}no" >&6 | |
7620 | fi | |
7621 | ||
7622 | ||
7623 | enablestring= | |
7624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
7625 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
7626 | no_cache=0 | |
7627 | # Check whether --enable-stattext or --disable-stattext was given. | |
7628 | if test "${enable_stattext+set}" = set; then | |
7629 | enableval="$enable_stattext" | |
7630 | ||
7631 | if test "$enableval" = yes; then | |
7632 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7633 | else | |
7634 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7635 | fi | |
7636 | ||
7637 | else | |
7638 | ||
7639 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
7640 | if test "x$LINE" != x ; then | |
7641 | eval "DEFAULT_$LINE" | |
7642 | else | |
7643 | no_cache=1 | |
7644 | fi | |
7645 | ||
7646 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
7647 | ||
7648 | fi; | |
7649 | ||
7650 | eval "$ac_cv_use_stattext" | |
7651 | if test "$no_cache" != 1; then | |
7652 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7653 | fi | |
7654 | ||
7655 | if test "$wxUSE_STATTEXT" = yes; then | |
7656 | echo "$as_me:$LINENO: result: yes" >&5 | |
7657 | echo "${ECHO_T}yes" >&6 | |
7658 | else | |
7659 | echo "$as_me:$LINENO: result: no" >&5 | |
7660 | echo "${ECHO_T}no" >&6 | |
7661 | fi | |
7662 | ||
7663 | ||
7664 | enablestring= | |
7665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
7666 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
7667 | no_cache=0 | |
7668 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7669 | if test "${enable_statusbar+set}" = set; then | |
7670 | enableval="$enable_statusbar" | |
7671 | ||
7672 | if test "$enableval" = yes; then | |
7673 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7674 | else | |
7675 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7676 | fi | |
7677 | ||
7678 | else | |
7679 | ||
7680 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
7681 | if test "x$LINE" != x ; then | |
7682 | eval "DEFAULT_$LINE" | |
7683 | else | |
7684 | no_cache=1 | |
7685 | fi | |
7686 | ||
7687 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
7688 | ||
7689 | fi; | |
7690 | ||
7691 | eval "$ac_cv_use_statusbar" | |
7692 | if test "$no_cache" != 1; then | |
7693 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7694 | fi | |
7695 | ||
7696 | if test "$wxUSE_STATUSBAR" = yes; then | |
7697 | echo "$as_me:$LINENO: result: yes" >&5 | |
7698 | echo "${ECHO_T}yes" >&6 | |
7699 | else | |
7700 | echo "$as_me:$LINENO: result: no" >&5 | |
7701 | echo "${ECHO_T}no" >&6 | |
7702 | fi | |
7703 | ||
7704 | ||
7705 | enablestring= | |
7706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
7707 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
7708 | no_cache=0 | |
7709 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7710 | if test "${enable_tabdialog+set}" = set; then | |
7711 | enableval="$enable_tabdialog" | |
7712 | ||
7713 | if test "$enableval" = yes; then | |
7714 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7715 | else | |
7716 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7717 | fi | |
7718 | ||
7719 | else | |
7720 | ||
7721 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
7722 | if test "x$LINE" != x ; then | |
7723 | eval "DEFAULT_$LINE" | |
7724 | else | |
7725 | no_cache=1 | |
7726 | fi | |
7727 | ||
7728 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
7729 | ||
7730 | fi; | |
7731 | ||
7732 | eval "$ac_cv_use_tabdialog" | |
7733 | if test "$no_cache" != 1; then | |
7734 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7735 | fi | |
7736 | ||
7737 | if test "$wxUSE_TABDIALOG" = yes; then | |
7738 | echo "$as_me:$LINENO: result: yes" >&5 | |
7739 | echo "${ECHO_T}yes" >&6 | |
7740 | else | |
7741 | echo "$as_me:$LINENO: result: no" >&5 | |
7742 | echo "${ECHO_T}no" >&6 | |
7743 | fi | |
7744 | ||
7745 | ||
7746 | enablestring= | |
7747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
7748 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
7749 | no_cache=0 | |
7750 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7751 | if test "${enable_textctrl+set}" = set; then | |
7752 | enableval="$enable_textctrl" | |
7753 | ||
7754 | if test "$enableval" = yes; then | |
7755 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7756 | else | |
7757 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7758 | fi | |
7759 | ||
7760 | else | |
7761 | ||
7762 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
7763 | if test "x$LINE" != x ; then | |
7764 | eval "DEFAULT_$LINE" | |
7765 | else | |
7766 | no_cache=1 | |
7767 | fi | |
7768 | ||
7769 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
7770 | ||
7771 | fi; | |
7772 | ||
7773 | eval "$ac_cv_use_textctrl" | |
7774 | if test "$no_cache" != 1; then | |
7775 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7776 | fi | |
7777 | ||
7778 | if test "$wxUSE_TEXTCTRL" = yes; then | |
7779 | echo "$as_me:$LINENO: result: yes" >&5 | |
7780 | echo "${ECHO_T}yes" >&6 | |
7781 | else | |
7782 | echo "$as_me:$LINENO: result: no" >&5 | |
7783 | echo "${ECHO_T}no" >&6 | |
7784 | fi | |
7785 | ||
7786 | ||
7787 | enablestring= | |
7788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
7789 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
7790 | no_cache=0 | |
7791 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7792 | if test "${enable_togglebtn+set}" = set; then | |
7793 | enableval="$enable_togglebtn" | |
7794 | ||
7795 | if test "$enableval" = yes; then | |
7796 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7797 | else | |
7798 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7799 | fi | |
7800 | ||
7801 | else | |
7802 | ||
7803 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
7804 | if test "x$LINE" != x ; then | |
7805 | eval "DEFAULT_$LINE" | |
7806 | else | |
7807 | no_cache=1 | |
7808 | fi | |
7809 | ||
7810 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
7811 | ||
7812 | fi; | |
7813 | ||
7814 | eval "$ac_cv_use_togglebtn" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
7820 | echo "$as_me:$LINENO: result: yes" >&5 | |
7821 | echo "${ECHO_T}yes" >&6 | |
7822 | else | |
7823 | echo "$as_me:$LINENO: result: no" >&5 | |
7824 | echo "${ECHO_T}no" >&6 | |
7825 | fi | |
7826 | ||
7827 | ||
7828 | enablestring= | |
7829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
7830 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
7831 | no_cache=0 | |
7832 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7833 | if test "${enable_toolbar+set}" = set; then | |
7834 | enableval="$enable_toolbar" | |
7835 | ||
7836 | if test "$enableval" = yes; then | |
7837 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7838 | else | |
7839 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7840 | fi | |
7841 | ||
7842 | else | |
7843 | ||
7844 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
7845 | if test "x$LINE" != x ; then | |
7846 | eval "DEFAULT_$LINE" | |
7847 | else | |
7848 | no_cache=1 | |
7849 | fi | |
7850 | ||
7851 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
7852 | ||
7853 | fi; | |
7854 | ||
7855 | eval "$ac_cv_use_toolbar" | |
7856 | if test "$no_cache" != 1; then | |
7857 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7858 | fi | |
7859 | ||
7860 | if test "$wxUSE_TOOLBAR" = yes; then | |
7861 | echo "$as_me:$LINENO: result: yes" >&5 | |
7862 | echo "${ECHO_T}yes" >&6 | |
7863 | else | |
7864 | echo "$as_me:$LINENO: result: no" >&5 | |
7865 | echo "${ECHO_T}no" >&6 | |
7866 | fi | |
7867 | ||
7868 | ||
7869 | enablestring= | |
7870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
7871 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
7872 | no_cache=0 | |
7873 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7874 | if test "${enable_tbarnative+set}" = set; then | |
7875 | enableval="$enable_tbarnative" | |
7876 | ||
7877 | if test "$enableval" = yes; then | |
7878 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7879 | else | |
7880 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7881 | fi | |
7882 | ||
7883 | else | |
7884 | ||
7885 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
7886 | if test "x$LINE" != x ; then | |
7887 | eval "DEFAULT_$LINE" | |
7888 | else | |
7889 | no_cache=1 | |
7890 | fi | |
7891 | ||
7892 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
7893 | ||
7894 | fi; | |
7895 | ||
7896 | eval "$ac_cv_use_tbarnative" | |
7897 | if test "$no_cache" != 1; then | |
7898 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7899 | fi | |
7900 | ||
7901 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
7902 | echo "$as_me:$LINENO: result: yes" >&5 | |
7903 | echo "${ECHO_T}yes" >&6 | |
7904 | else | |
7905 | echo "$as_me:$LINENO: result: no" >&5 | |
7906 | echo "${ECHO_T}no" >&6 | |
7907 | fi | |
7908 | ||
7909 | ||
7910 | enablestring= | |
7911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
7912 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
7913 | no_cache=0 | |
7914 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7915 | if test "${enable_tbarsmpl+set}" = set; then | |
7916 | enableval="$enable_tbarsmpl" | |
7917 | ||
7918 | if test "$enableval" = yes; then | |
7919 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7920 | else | |
7921 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7922 | fi | |
7923 | ||
7924 | else | |
7925 | ||
7926 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
7927 | if test "x$LINE" != x ; then | |
7928 | eval "DEFAULT_$LINE" | |
7929 | else | |
7930 | no_cache=1 | |
7931 | fi | |
7932 | ||
7933 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
7934 | ||
7935 | fi; | |
7936 | ||
7937 | eval "$ac_cv_use_tbarsmpl" | |
7938 | if test "$no_cache" != 1; then | |
7939 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7940 | fi | |
7941 | ||
7942 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
7943 | echo "$as_me:$LINENO: result: yes" >&5 | |
7944 | echo "${ECHO_T}yes" >&6 | |
7945 | else | |
7946 | echo "$as_me:$LINENO: result: no" >&5 | |
7947 | echo "${ECHO_T}no" >&6 | |
7948 | fi | |
7949 | ||
7950 | ||
7951 | enablestring= | |
7952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
7953 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
7954 | no_cache=0 | |
7955 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7956 | if test "${enable_treectrl+set}" = set; then | |
7957 | enableval="$enable_treectrl" | |
7958 | ||
7959 | if test "$enableval" = yes; then | |
7960 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7961 | else | |
7962 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7963 | fi | |
7964 | ||
7965 | else | |
7966 | ||
7967 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
7968 | if test "x$LINE" != x ; then | |
7969 | eval "DEFAULT_$LINE" | |
7970 | else | |
7971 | no_cache=1 | |
7972 | fi | |
7973 | ||
7974 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
7975 | ||
7976 | fi; | |
7977 | ||
7978 | eval "$ac_cv_use_treectrl" | |
7979 | if test "$no_cache" != 1; then | |
7980 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7981 | fi | |
7982 | ||
7983 | if test "$wxUSE_TREECTRL" = yes; then | |
7984 | echo "$as_me:$LINENO: result: yes" >&5 | |
7985 | echo "${ECHO_T}yes" >&6 | |
7986 | else | |
7987 | echo "$as_me:$LINENO: result: no" >&5 | |
7988 | echo "${ECHO_T}no" >&6 | |
7989 | fi | |
7990 | ||
7991 | ||
7992 | enablestring= | |
7993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
7994 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
7995 | no_cache=0 | |
7996 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7997 | if test "${enable_tipwindow+set}" = set; then | |
7998 | enableval="$enable_tipwindow" | |
7999 | ||
8000 | if test "$enableval" = yes; then | |
8001 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8002 | else | |
8003 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8004 | fi | |
8005 | ||
8006 | else | |
8007 | ||
8008 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8009 | if test "x$LINE" != x ; then | |
8010 | eval "DEFAULT_$LINE" | |
8011 | else | |
8012 | no_cache=1 | |
8013 | fi | |
8014 | ||
8015 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8016 | ||
8017 | fi; | |
8018 | ||
8019 | eval "$ac_cv_use_tipwindow" | |
8020 | if test "$no_cache" != 1; then | |
8021 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8022 | fi | |
8023 | ||
8024 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8025 | echo "$as_me:$LINENO: result: yes" >&5 | |
8026 | echo "${ECHO_T}yes" >&6 | |
8027 | else | |
8028 | echo "$as_me:$LINENO: result: no" >&5 | |
8029 | echo "${ECHO_T}no" >&6 | |
8030 | fi | |
8031 | ||
8032 | ||
8033 | enablestring= | |
8034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8035 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8036 | no_cache=0 | |
8037 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8038 | if test "${enable_popupwin+set}" = set; then | |
8039 | enableval="$enable_popupwin" | |
8040 | ||
8041 | if test "$enableval" = yes; then | |
8042 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8043 | else | |
8044 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8045 | fi | |
8046 | ||
8047 | else | |
8048 | ||
8049 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8050 | if test "x$LINE" != x ; then | |
8051 | eval "DEFAULT_$LINE" | |
8052 | else | |
8053 | no_cache=1 | |
8054 | fi | |
8055 | ||
8056 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8057 | ||
8058 | fi; | |
8059 | ||
8060 | eval "$ac_cv_use_popupwin" | |
8061 | if test "$no_cache" != 1; then | |
8062 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8063 | fi | |
8064 | ||
8065 | if test "$wxUSE_POPUPWIN" = yes; then | |
8066 | echo "$as_me:$LINENO: result: yes" >&5 | |
8067 | echo "${ECHO_T}yes" >&6 | |
8068 | else | |
8069 | echo "$as_me:$LINENO: result: no" >&5 | |
8070 | echo "${ECHO_T}no" >&6 | |
8071 | fi | |
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | enablestring= | |
8077 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8078 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8079 | no_cache=0 | |
8080 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8081 | if test "${enable_commondlg+set}" = set; then | |
8082 | enableval="$enable_commondlg" | |
8083 | ||
8084 | if test "$enableval" = yes; then | |
8085 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8086 | else | |
8087 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8088 | fi | |
8089 | ||
8090 | else | |
8091 | ||
8092 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8093 | if test "x$LINE" != x ; then | |
8094 | eval "DEFAULT_$LINE" | |
8095 | else | |
8096 | no_cache=1 | |
8097 | fi | |
8098 | ||
8099 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8100 | ||
8101 | fi; | |
8102 | ||
8103 | eval "$ac_cv_use_commondlg" | |
8104 | if test "$no_cache" != 1; then | |
8105 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8106 | fi | |
8107 | ||
8108 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8109 | echo "$as_me:$LINENO: result: yes" >&5 | |
8110 | echo "${ECHO_T}yes" >&6 | |
8111 | else | |
8112 | echo "$as_me:$LINENO: result: no" >&5 | |
8113 | echo "${ECHO_T}no" >&6 | |
8114 | fi | |
8115 | ||
8116 | ||
8117 | enablestring= | |
8118 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8119 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8120 | no_cache=0 | |
8121 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8122 | if test "${enable_choicedlg+set}" = set; then | |
8123 | enableval="$enable_choicedlg" | |
8124 | ||
8125 | if test "$enableval" = yes; then | |
8126 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8127 | else | |
8128 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8129 | fi | |
8130 | ||
8131 | else | |
8132 | ||
8133 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8134 | if test "x$LINE" != x ; then | |
8135 | eval "DEFAULT_$LINE" | |
8136 | else | |
8137 | no_cache=1 | |
8138 | fi | |
8139 | ||
8140 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8141 | ||
8142 | fi; | |
8143 | ||
8144 | eval "$ac_cv_use_choicedlg" | |
8145 | if test "$no_cache" != 1; then | |
8146 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8147 | fi | |
8148 | ||
8149 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8150 | echo "$as_me:$LINENO: result: yes" >&5 | |
8151 | echo "${ECHO_T}yes" >&6 | |
8152 | else | |
8153 | echo "$as_me:$LINENO: result: no" >&5 | |
8154 | echo "${ECHO_T}no" >&6 | |
8155 | fi | |
8156 | ||
8157 | ||
8158 | enablestring= | |
8159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8160 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8161 | no_cache=0 | |
8162 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8163 | if test "${enable_coldlg+set}" = set; then | |
8164 | enableval="$enable_coldlg" | |
8165 | ||
8166 | if test "$enableval" = yes; then | |
8167 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8168 | else | |
8169 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8170 | fi | |
8171 | ||
8172 | else | |
8173 | ||
8174 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8175 | if test "x$LINE" != x ; then | |
8176 | eval "DEFAULT_$LINE" | |
8177 | else | |
8178 | no_cache=1 | |
8179 | fi | |
8180 | ||
8181 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8182 | ||
8183 | fi; | |
8184 | ||
8185 | eval "$ac_cv_use_coldlg" | |
8186 | if test "$no_cache" != 1; then | |
8187 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8188 | fi | |
8189 | ||
8190 | if test "$wxUSE_COLOURDLG" = yes; then | |
8191 | echo "$as_me:$LINENO: result: yes" >&5 | |
8192 | echo "${ECHO_T}yes" >&6 | |
8193 | else | |
8194 | echo "$as_me:$LINENO: result: no" >&5 | |
8195 | echo "${ECHO_T}no" >&6 | |
8196 | fi | |
8197 | ||
8198 | ||
8199 | enablestring= | |
8200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8201 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8202 | no_cache=0 | |
8203 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8204 | if test "${enable_filedlg+set}" = set; then | |
8205 | enableval="$enable_filedlg" | |
8206 | ||
8207 | if test "$enableval" = yes; then | |
8208 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8209 | else | |
8210 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8211 | fi | |
8212 | ||
8213 | else | |
8214 | ||
8215 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8216 | if test "x$LINE" != x ; then | |
8217 | eval "DEFAULT_$LINE" | |
8218 | else | |
8219 | no_cache=1 | |
8220 | fi | |
8221 | ||
8222 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8223 | ||
8224 | fi; | |
8225 | ||
8226 | eval "$ac_cv_use_filedlg" | |
8227 | if test "$no_cache" != 1; then | |
8228 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8229 | fi | |
8230 | ||
8231 | if test "$wxUSE_FILEDLG" = yes; then | |
8232 | echo "$as_me:$LINENO: result: yes" >&5 | |
8233 | echo "${ECHO_T}yes" >&6 | |
8234 | else | |
8235 | echo "$as_me:$LINENO: result: no" >&5 | |
8236 | echo "${ECHO_T}no" >&6 | |
8237 | fi | |
8238 | ||
8239 | ||
8240 | enablestring= | |
8241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8242 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8243 | no_cache=0 | |
8244 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8245 | if test "${enable_finddlg+set}" = set; then | |
8246 | enableval="$enable_finddlg" | |
8247 | ||
8248 | if test "$enableval" = yes; then | |
8249 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8250 | else | |
8251 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8252 | fi | |
8253 | ||
8254 | else | |
8255 | ||
8256 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8257 | if test "x$LINE" != x ; then | |
8258 | eval "DEFAULT_$LINE" | |
8259 | else | |
8260 | no_cache=1 | |
8261 | fi | |
8262 | ||
8263 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8264 | ||
8265 | fi; | |
8266 | ||
8267 | eval "$ac_cv_use_finddlg" | |
8268 | if test "$no_cache" != 1; then | |
8269 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8270 | fi | |
8271 | ||
8272 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8273 | echo "$as_me:$LINENO: result: yes" >&5 | |
8274 | echo "${ECHO_T}yes" >&6 | |
8275 | else | |
8276 | echo "$as_me:$LINENO: result: no" >&5 | |
8277 | echo "${ECHO_T}no" >&6 | |
8278 | fi | |
8279 | ||
8280 | ||
8281 | enablestring= | |
8282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8283 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8284 | no_cache=0 | |
8285 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8286 | if test "${enable_fontdlg+set}" = set; then | |
8287 | enableval="$enable_fontdlg" | |
8288 | ||
8289 | if test "$enableval" = yes; then | |
8290 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8291 | else | |
8292 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8293 | fi | |
8294 | ||
8295 | else | |
8296 | ||
8297 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8298 | if test "x$LINE" != x ; then | |
8299 | eval "DEFAULT_$LINE" | |
8300 | else | |
8301 | no_cache=1 | |
8302 | fi | |
8303 | ||
8304 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8305 | ||
8306 | fi; | |
8307 | ||
8308 | eval "$ac_cv_use_fontdlg" | |
8309 | if test "$no_cache" != 1; then | |
8310 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8311 | fi | |
8312 | ||
8313 | if test "$wxUSE_FONTDLG" = yes; then | |
8314 | echo "$as_me:$LINENO: result: yes" >&5 | |
8315 | echo "${ECHO_T}yes" >&6 | |
8316 | else | |
8317 | echo "$as_me:$LINENO: result: no" >&5 | |
8318 | echo "${ECHO_T}no" >&6 | |
8319 | fi | |
8320 | ||
8321 | ||
8322 | enablestring= | |
8323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8324 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8325 | no_cache=0 | |
8326 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8327 | if test "${enable_dirdlg+set}" = set; then | |
8328 | enableval="$enable_dirdlg" | |
8329 | ||
8330 | if test "$enableval" = yes; then | |
8331 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8332 | else | |
8333 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8334 | fi | |
8335 | ||
8336 | else | |
8337 | ||
8338 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8339 | if test "x$LINE" != x ; then | |
8340 | eval "DEFAULT_$LINE" | |
8341 | else | |
8342 | no_cache=1 | |
8343 | fi | |
8344 | ||
8345 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8346 | ||
8347 | fi; | |
8348 | ||
8349 | eval "$ac_cv_use_dirdlg" | |
8350 | if test "$no_cache" != 1; then | |
8351 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8352 | fi | |
8353 | ||
8354 | if test "$wxUSE_DIRDLG" = yes; then | |
8355 | echo "$as_me:$LINENO: result: yes" >&5 | |
8356 | echo "${ECHO_T}yes" >&6 | |
8357 | else | |
8358 | echo "$as_me:$LINENO: result: no" >&5 | |
8359 | echo "${ECHO_T}no" >&6 | |
8360 | fi | |
8361 | ||
8362 | ||
8363 | enablestring= | |
8364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8365 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8366 | no_cache=0 | |
8367 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8368 | if test "${enable_msgdlg+set}" = set; then | |
8369 | enableval="$enable_msgdlg" | |
8370 | ||
8371 | if test "$enableval" = yes; then | |
8372 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8373 | else | |
8374 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8375 | fi | |
8376 | ||
8377 | else | |
8378 | ||
8379 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8380 | if test "x$LINE" != x ; then | |
8381 | eval "DEFAULT_$LINE" | |
8382 | else | |
8383 | no_cache=1 | |
8384 | fi | |
8385 | ||
8386 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8387 | ||
8388 | fi; | |
8389 | ||
8390 | eval "$ac_cv_use_msgdlg" | |
8391 | if test "$no_cache" != 1; then | |
8392 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8393 | fi | |
8394 | ||
8395 | if test "$wxUSE_MSGDLG" = yes; then | |
8396 | echo "$as_me:$LINENO: result: yes" >&5 | |
8397 | echo "${ECHO_T}yes" >&6 | |
8398 | else | |
8399 | echo "$as_me:$LINENO: result: no" >&5 | |
8400 | echo "${ECHO_T}no" >&6 | |
8401 | fi | |
8402 | ||
8403 | ||
8404 | enablestring= | |
8405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8406 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8407 | no_cache=0 | |
8408 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8409 | if test "${enable_numberdlg+set}" = set; then | |
8410 | enableval="$enable_numberdlg" | |
8411 | ||
8412 | if test "$enableval" = yes; then | |
8413 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8414 | else | |
8415 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8416 | fi | |
8417 | ||
8418 | else | |
8419 | ||
8420 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8421 | if test "x$LINE" != x ; then | |
8422 | eval "DEFAULT_$LINE" | |
8423 | else | |
8424 | no_cache=1 | |
8425 | fi | |
8426 | ||
8427 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8428 | ||
8429 | fi; | |
8430 | ||
8431 | eval "$ac_cv_use_numberdlg" | |
8432 | if test "$no_cache" != 1; then | |
8433 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8434 | fi | |
8435 | ||
8436 | if test "$wxUSE_NUMBERDLG" = yes; then | |
8437 | echo "$as_me:$LINENO: result: yes" >&5 | |
8438 | echo "${ECHO_T}yes" >&6 | |
8439 | else | |
8440 | echo "$as_me:$LINENO: result: no" >&5 | |
8441 | echo "${ECHO_T}no" >&6 | |
8442 | fi | |
8443 | ||
8444 | ||
8445 | enablestring= | |
8446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
8447 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8448 | no_cache=0 | |
8449 | # Check whether --enable-splash or --disable-splash was given. | |
8450 | if test "${enable_splash+set}" = set; then | |
8451 | enableval="$enable_splash" | |
8452 | ||
8453 | if test "$enableval" = yes; then | |
8454 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8455 | else | |
8456 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8457 | fi | |
8458 | ||
8459 | else | |
8460 | ||
8461 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
8462 | if test "x$LINE" != x ; then | |
8463 | eval "DEFAULT_$LINE" | |
8464 | else | |
8465 | no_cache=1 | |
8466 | fi | |
8467 | ||
8468 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8469 | ||
8470 | fi; | |
8471 | ||
8472 | eval "$ac_cv_use_splash" | |
8473 | if test "$no_cache" != 1; then | |
8474 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8475 | fi | |
8476 | ||
8477 | if test "$wxUSE_SPLASH" = yes; then | |
8478 | echo "$as_me:$LINENO: result: yes" >&5 | |
8479 | echo "${ECHO_T}yes" >&6 | |
8480 | else | |
8481 | echo "$as_me:$LINENO: result: no" >&5 | |
8482 | echo "${ECHO_T}no" >&6 | |
8483 | fi | |
8484 | ||
8485 | ||
8486 | enablestring= | |
8487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
8488 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
8489 | no_cache=0 | |
8490 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8491 | if test "${enable_textdlg+set}" = set; then | |
8492 | enableval="$enable_textdlg" | |
8493 | ||
8494 | if test "$enableval" = yes; then | |
8495 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8496 | else | |
8497 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8498 | fi | |
8499 | ||
8500 | else | |
8501 | ||
8502 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
8503 | if test "x$LINE" != x ; then | |
8504 | eval "DEFAULT_$LINE" | |
8505 | else | |
8506 | no_cache=1 | |
8507 | fi | |
8508 | ||
8509 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
8510 | ||
8511 | fi; | |
8512 | ||
8513 | eval "$ac_cv_use_textdlg" | |
8514 | if test "$no_cache" != 1; then | |
8515 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8516 | fi | |
8517 | ||
8518 | if test "$wxUSE_TEXTDLG" = yes; then | |
8519 | echo "$as_me:$LINENO: result: yes" >&5 | |
8520 | echo "${ECHO_T}yes" >&6 | |
8521 | else | |
8522 | echo "$as_me:$LINENO: result: no" >&5 | |
8523 | echo "${ECHO_T}no" >&6 | |
8524 | fi | |
8525 | ||
8526 | ||
8527 | enablestring= | |
8528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
8529 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
8530 | no_cache=0 | |
8531 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8532 | if test "${enable_tipdlg+set}" = set; then | |
8533 | enableval="$enable_tipdlg" | |
8534 | ||
8535 | if test "$enableval" = yes; then | |
8536 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8537 | else | |
8538 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8539 | fi | |
8540 | ||
8541 | else | |
8542 | ||
8543 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
8544 | if test "x$LINE" != x ; then | |
8545 | eval "DEFAULT_$LINE" | |
8546 | else | |
8547 | no_cache=1 | |
8548 | fi | |
8549 | ||
8550 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
8551 | ||
8552 | fi; | |
8553 | ||
8554 | eval "$ac_cv_use_tipdlg" | |
8555 | if test "$no_cache" != 1; then | |
8556 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8557 | fi | |
8558 | ||
8559 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
8560 | echo "$as_me:$LINENO: result: yes" >&5 | |
8561 | echo "${ECHO_T}yes" >&6 | |
8562 | else | |
8563 | echo "$as_me:$LINENO: result: no" >&5 | |
8564 | echo "${ECHO_T}no" >&6 | |
8565 | fi | |
8566 | ||
8567 | ||
8568 | enablestring= | |
8569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
8570 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
8571 | no_cache=0 | |
8572 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8573 | if test "${enable_progressdlg+set}" = set; then | |
8574 | enableval="$enable_progressdlg" | |
8575 | ||
8576 | if test "$enableval" = yes; then | |
8577 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8578 | else | |
8579 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8580 | fi | |
8581 | ||
8582 | else | |
8583 | ||
8584 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
8585 | if test "x$LINE" != x ; then | |
8586 | eval "DEFAULT_$LINE" | |
8587 | else | |
8588 | no_cache=1 | |
8589 | fi | |
8590 | ||
8591 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
8592 | ||
8593 | fi; | |
8594 | ||
8595 | eval "$ac_cv_use_progressdlg" | |
8596 | if test "$no_cache" != 1; then | |
8597 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8598 | fi | |
8599 | ||
8600 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
8601 | echo "$as_me:$LINENO: result: yes" >&5 | |
8602 | echo "${ECHO_T}yes" >&6 | |
8603 | else | |
8604 | echo "$as_me:$LINENO: result: no" >&5 | |
8605 | echo "${ECHO_T}no" >&6 | |
8606 | fi | |
8607 | ||
8608 | ||
8609 | enablestring= | |
8610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
8611 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
8612 | no_cache=0 | |
8613 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8614 | if test "${enable_wizarddlg+set}" = set; then | |
8615 | enableval="$enable_wizarddlg" | |
8616 | ||
8617 | if test "$enableval" = yes; then | |
8618 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8619 | else | |
8620 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8621 | fi | |
8622 | ||
8623 | else | |
8624 | ||
8625 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
8626 | if test "x$LINE" != x ; then | |
8627 | eval "DEFAULT_$LINE" | |
8628 | else | |
8629 | no_cache=1 | |
8630 | fi | |
8631 | ||
8632 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
8633 | ||
8634 | fi; | |
8635 | ||
8636 | eval "$ac_cv_use_wizarddlg" | |
8637 | if test "$no_cache" != 1; then | |
8638 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8639 | fi | |
8640 | ||
8641 | if test "$wxUSE_WIZARDDLG" = yes; then | |
8642 | echo "$as_me:$LINENO: result: yes" >&5 | |
8643 | echo "${ECHO_T}yes" >&6 | |
8644 | else | |
8645 | echo "$as_me:$LINENO: result: no" >&5 | |
8646 | echo "${ECHO_T}no" >&6 | |
8647 | fi | |
8648 | ||
8649 | ||
8650 | ||
8651 | ||
8652 | enablestring= | |
8653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
8654 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
8655 | no_cache=0 | |
8656 | # Check whether --enable-menus or --disable-menus was given. | |
8657 | if test "${enable_menus+set}" = set; then | |
8658 | enableval="$enable_menus" | |
8659 | ||
8660 | if test "$enableval" = yes; then | |
8661 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8662 | else | |
8663 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8664 | fi | |
8665 | ||
8666 | else | |
8667 | ||
8668 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
8669 | if test "x$LINE" != x ; then | |
8670 | eval "DEFAULT_$LINE" | |
8671 | else | |
8672 | no_cache=1 | |
8673 | fi | |
8674 | ||
8675 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
8676 | ||
8677 | fi; | |
8678 | ||
8679 | eval "$ac_cv_use_menus" | |
8680 | if test "$no_cache" != 1; then | |
8681 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8682 | fi | |
8683 | ||
8684 | if test "$wxUSE_MENUS" = yes; then | |
8685 | echo "$as_me:$LINENO: result: yes" >&5 | |
8686 | echo "${ECHO_T}yes" >&6 | |
8687 | else | |
8688 | echo "$as_me:$LINENO: result: no" >&5 | |
8689 | echo "${ECHO_T}no" >&6 | |
8690 | fi | |
8691 | ||
8692 | ||
8693 | enablestring= | |
8694 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
8695 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
8696 | no_cache=0 | |
8697 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8698 | if test "${enable_miniframe+set}" = set; then | |
8699 | enableval="$enable_miniframe" | |
8700 | ||
8701 | if test "$enableval" = yes; then | |
8702 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8703 | else | |
8704 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8705 | fi | |
8706 | ||
8707 | else | |
8708 | ||
8709 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
8710 | if test "x$LINE" != x ; then | |
8711 | eval "DEFAULT_$LINE" | |
8712 | else | |
8713 | no_cache=1 | |
8714 | fi | |
8715 | ||
8716 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
8717 | ||
8718 | fi; | |
8719 | ||
8720 | eval "$ac_cv_use_miniframe" | |
8721 | if test "$no_cache" != 1; then | |
8722 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8723 | fi | |
8724 | ||
8725 | if test "$wxUSE_MINIFRAME" = yes; then | |
8726 | echo "$as_me:$LINENO: result: yes" >&5 | |
8727 | echo "${ECHO_T}yes" >&6 | |
8728 | else | |
8729 | echo "$as_me:$LINENO: result: no" >&5 | |
8730 | echo "${ECHO_T}no" >&6 | |
8731 | fi | |
8732 | ||
8733 | ||
8734 | enablestring= | |
8735 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
8736 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
8737 | no_cache=0 | |
8738 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8739 | if test "${enable_tooltips+set}" = set; then | |
8740 | enableval="$enable_tooltips" | |
8741 | ||
8742 | if test "$enableval" = yes; then | |
8743 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8744 | else | |
8745 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8746 | fi | |
8747 | ||
8748 | else | |
8749 | ||
8750 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
8751 | if test "x$LINE" != x ; then | |
8752 | eval "DEFAULT_$LINE" | |
8753 | else | |
8754 | no_cache=1 | |
8755 | fi | |
8756 | ||
8757 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
8758 | ||
8759 | fi; | |
8760 | ||
8761 | eval "$ac_cv_use_tooltips" | |
8762 | if test "$no_cache" != 1; then | |
8763 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8764 | fi | |
8765 | ||
8766 | if test "$wxUSE_TOOLTIPS" = yes; then | |
8767 | echo "$as_me:$LINENO: result: yes" >&5 | |
8768 | echo "${ECHO_T}yes" >&6 | |
8769 | else | |
8770 | echo "$as_me:$LINENO: result: no" >&5 | |
8771 | echo "${ECHO_T}no" >&6 | |
8772 | fi | |
8773 | ||
8774 | ||
8775 | enablestring= | |
8776 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
8777 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
8778 | no_cache=0 | |
8779 | # Check whether --enable-splines or --disable-splines was given. | |
8780 | if test "${enable_splines+set}" = set; then | |
8781 | enableval="$enable_splines" | |
8782 | ||
8783 | if test "$enableval" = yes; then | |
8784 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8785 | else | |
8786 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8787 | fi | |
8788 | ||
8789 | else | |
8790 | ||
8791 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
8792 | if test "x$LINE" != x ; then | |
8793 | eval "DEFAULT_$LINE" | |
8794 | else | |
8795 | no_cache=1 | |
8796 | fi | |
8797 | ||
8798 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
8799 | ||
8800 | fi; | |
8801 | ||
8802 | eval "$ac_cv_use_splines" | |
8803 | if test "$no_cache" != 1; then | |
8804 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8805 | fi | |
8806 | ||
8807 | if test "$wxUSE_SPLINES" = yes; then | |
8808 | echo "$as_me:$LINENO: result: yes" >&5 | |
8809 | echo "${ECHO_T}yes" >&6 | |
8810 | else | |
8811 | echo "$as_me:$LINENO: result: no" >&5 | |
8812 | echo "${ECHO_T}no" >&6 | |
8813 | fi | |
8814 | ||
8815 | ||
8816 | enablestring= | |
8817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
8818 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
8819 | no_cache=0 | |
8820 | # Check whether --enable-validators or --disable-validators was given. | |
8821 | if test "${enable_validators+set}" = set; then | |
8822 | enableval="$enable_validators" | |
8823 | ||
8824 | if test "$enableval" = yes; then | |
8825 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8826 | else | |
8827 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8828 | fi | |
8829 | ||
8830 | else | |
8831 | ||
8832 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
8833 | if test "x$LINE" != x ; then | |
8834 | eval "DEFAULT_$LINE" | |
8835 | else | |
8836 | no_cache=1 | |
8837 | fi | |
8838 | ||
8839 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
8840 | ||
8841 | fi; | |
8842 | ||
8843 | eval "$ac_cv_use_validators" | |
8844 | if test "$no_cache" != 1; then | |
8845 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8846 | fi | |
8847 | ||
8848 | if test "$wxUSE_VALIDATORS" = yes; then | |
8849 | echo "$as_me:$LINENO: result: yes" >&5 | |
8850 | echo "${ECHO_T}yes" >&6 | |
8851 | else | |
8852 | echo "$as_me:$LINENO: result: no" >&5 | |
8853 | echo "${ECHO_T}no" >&6 | |
8854 | fi | |
8855 | ||
8856 | ||
8857 | enablestring= | |
8858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
8859 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
8860 | no_cache=0 | |
8861 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8862 | if test "${enable_busyinfo+set}" = set; then | |
8863 | enableval="$enable_busyinfo" | |
8864 | ||
8865 | if test "$enableval" = yes; then | |
8866 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8867 | else | |
8868 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8869 | fi | |
8870 | ||
8871 | else | |
8872 | ||
8873 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
8874 | if test "x$LINE" != x ; then | |
8875 | eval "DEFAULT_$LINE" | |
8876 | else | |
8877 | no_cache=1 | |
8878 | fi | |
8879 | ||
8880 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
8881 | ||
8882 | fi; | |
8883 | ||
8884 | eval "$ac_cv_use_busyinfo" | |
8885 | if test "$no_cache" != 1; then | |
8886 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8887 | fi | |
8888 | ||
8889 | if test "$wxUSE_BUSYINFO" = yes; then | |
8890 | echo "$as_me:$LINENO: result: yes" >&5 | |
8891 | echo "${ECHO_T}yes" >&6 | |
8892 | else | |
8893 | echo "$as_me:$LINENO: result: no" >&5 | |
8894 | echo "${ECHO_T}no" >&6 | |
8895 | fi | |
8896 | ||
8897 | ||
8898 | enablestring= | |
8899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
8900 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
8901 | no_cache=0 | |
8902 | # Check whether --enable-joystick or --disable-joystick was given. | |
8903 | if test "${enable_joystick+set}" = set; then | |
8904 | enableval="$enable_joystick" | |
8905 | ||
8906 | if test "$enableval" = yes; then | |
8907 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8908 | else | |
8909 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8910 | fi | |
8911 | ||
8912 | else | |
8913 | ||
8914 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
8915 | if test "x$LINE" != x ; then | |
8916 | eval "DEFAULT_$LINE" | |
8917 | else | |
8918 | no_cache=1 | |
8919 | fi | |
8920 | ||
8921 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
8922 | ||
8923 | fi; | |
8924 | ||
8925 | eval "$ac_cv_use_joystick" | |
8926 | if test "$no_cache" != 1; then | |
8927 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8928 | fi | |
8929 | ||
8930 | if test "$wxUSE_JOYSTICK" = yes; then | |
8931 | echo "$as_me:$LINENO: result: yes" >&5 | |
8932 | echo "${ECHO_T}yes" >&6 | |
8933 | else | |
8934 | echo "$as_me:$LINENO: result: no" >&5 | |
8935 | echo "${ECHO_T}no" >&6 | |
8936 | fi | |
8937 | ||
8938 | ||
8939 | enablestring= | |
8940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
8941 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
8942 | no_cache=0 | |
8943 | # Check whether --enable-metafile or --disable-metafile was given. | |
8944 | if test "${enable_metafile+set}" = set; then | |
8945 | enableval="$enable_metafile" | |
8946 | ||
8947 | if test "$enableval" = yes; then | |
8948 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8949 | else | |
8950 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8951 | fi | |
8952 | ||
8953 | else | |
8954 | ||
8955 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8956 | if test "x$LINE" != x ; then | |
8957 | eval "DEFAULT_$LINE" | |
8958 | else | |
8959 | no_cache=1 | |
8960 | fi | |
8961 | ||
8962 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8963 | ||
8964 | fi; | |
8965 | ||
8966 | eval "$ac_cv_use_metafile" | |
8967 | if test "$no_cache" != 1; then | |
8968 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8969 | fi | |
8970 | ||
8971 | if test "$wxUSE_METAFILE" = yes; then | |
8972 | echo "$as_me:$LINENO: result: yes" >&5 | |
8973 | echo "${ECHO_T}yes" >&6 | |
8974 | else | |
8975 | echo "$as_me:$LINENO: result: no" >&5 | |
8976 | echo "${ECHO_T}no" >&6 | |
8977 | fi | |
8978 | ||
8979 | ||
8980 | enablestring= | |
8981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
8982 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
8983 | no_cache=0 | |
8984 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8985 | if test "${enable_dragimage+set}" = set; then | |
8986 | enableval="$enable_dragimage" | |
8987 | ||
8988 | if test "$enableval" = yes; then | |
8989 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8990 | else | |
8991 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8992 | fi | |
8993 | ||
8994 | else | |
8995 | ||
8996 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8997 | if test "x$LINE" != x ; then | |
8998 | eval "DEFAULT_$LINE" | |
8999 | else | |
9000 | no_cache=1 | |
9001 | fi | |
9002 | ||
9003 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9004 | ||
9005 | fi; | |
9006 | ||
9007 | eval "$ac_cv_use_dragimage" | |
9008 | if test "$no_cache" != 1; then | |
9009 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9010 | fi | |
9011 | ||
9012 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9013 | echo "$as_me:$LINENO: result: yes" >&5 | |
9014 | echo "${ECHO_T}yes" >&6 | |
9015 | else | |
9016 | echo "$as_me:$LINENO: result: no" >&5 | |
9017 | echo "${ECHO_T}no" >&6 | |
9018 | fi | |
9019 | ||
9020 | ||
9021 | enablestring= | |
9022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9023 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9024 | no_cache=0 | |
9025 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9026 | if test "${enable_accessibility+set}" = set; then | |
9027 | enableval="$enable_accessibility" | |
9028 | ||
9029 | if test "$enableval" = yes; then | |
9030 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9031 | else | |
9032 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9033 | fi | |
9034 | ||
9035 | else | |
9036 | ||
9037 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9038 | if test "x$LINE" != x ; then | |
9039 | eval "DEFAULT_$LINE" | |
9040 | else | |
9041 | no_cache=1 | |
9042 | fi | |
9043 | ||
9044 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9045 | ||
9046 | fi; | |
9047 | ||
9048 | eval "$ac_cv_use_accessibility" | |
9049 | if test "$no_cache" != 1; then | |
9050 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9051 | fi | |
9052 | ||
9053 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9054 | echo "$as_me:$LINENO: result: yes" >&5 | |
9055 | echo "${ECHO_T}yes" >&6 | |
9056 | else | |
9057 | echo "$as_me:$LINENO: result: no" >&5 | |
9058 | echo "${ECHO_T}no" >&6 | |
9059 | fi | |
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | enablestring= | |
9065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9066 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9067 | no_cache=0 | |
9068 | # Check whether --enable-palette or --disable-palette was given. | |
9069 | if test "${enable_palette+set}" = set; then | |
9070 | enableval="$enable_palette" | |
9071 | ||
9072 | if test "$enableval" = yes; then | |
9073 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9074 | else | |
9075 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9076 | fi | |
9077 | ||
9078 | else | |
9079 | ||
9080 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9081 | if test "x$LINE" != x ; then | |
9082 | eval "DEFAULT_$LINE" | |
9083 | else | |
9084 | no_cache=1 | |
9085 | fi | |
9086 | ||
9087 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9088 | ||
9089 | fi; | |
9090 | ||
9091 | eval "$ac_cv_use_palette" | |
9092 | if test "$no_cache" != 1; then | |
9093 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9094 | fi | |
9095 | ||
9096 | if test "$wxUSE_PALETTE" = yes; then | |
9097 | echo "$as_me:$LINENO: result: yes" >&5 | |
9098 | echo "${ECHO_T}yes" >&6 | |
9099 | else | |
9100 | echo "$as_me:$LINENO: result: no" >&5 | |
9101 | echo "${ECHO_T}no" >&6 | |
9102 | fi | |
9103 | ||
9104 | ||
9105 | enablestring= | |
9106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9107 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9108 | no_cache=0 | |
9109 | # Check whether --enable-image or --disable-image was given. | |
9110 | if test "${enable_image+set}" = set; then | |
9111 | enableval="$enable_image" | |
9112 | ||
9113 | if test "$enableval" = yes; then | |
9114 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9115 | else | |
9116 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9117 | fi | |
9118 | ||
9119 | else | |
9120 | ||
9121 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9122 | if test "x$LINE" != x ; then | |
9123 | eval "DEFAULT_$LINE" | |
9124 | else | |
9125 | no_cache=1 | |
9126 | fi | |
9127 | ||
9128 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9129 | ||
9130 | fi; | |
9131 | ||
9132 | eval "$ac_cv_use_image" | |
9133 | if test "$no_cache" != 1; then | |
9134 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9135 | fi | |
9136 | ||
9137 | if test "$wxUSE_IMAGE" = yes; then | |
9138 | echo "$as_me:$LINENO: result: yes" >&5 | |
9139 | echo "${ECHO_T}yes" >&6 | |
9140 | else | |
9141 | echo "$as_me:$LINENO: result: no" >&5 | |
9142 | echo "${ECHO_T}no" >&6 | |
9143 | fi | |
9144 | ||
9145 | ||
9146 | enablestring= | |
9147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9148 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9149 | no_cache=0 | |
9150 | # Check whether --enable-gif or --disable-gif was given. | |
9151 | if test "${enable_gif+set}" = set; then | |
9152 | enableval="$enable_gif" | |
9153 | ||
9154 | if test "$enableval" = yes; then | |
9155 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9156 | else | |
9157 | ac_cv_use_gif='wxUSE_GIF=no' | |
9158 | fi | |
9159 | ||
9160 | else | |
9161 | ||
9162 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9163 | if test "x$LINE" != x ; then | |
9164 | eval "DEFAULT_$LINE" | |
9165 | else | |
9166 | no_cache=1 | |
9167 | fi | |
9168 | ||
9169 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9170 | ||
9171 | fi; | |
9172 | ||
9173 | eval "$ac_cv_use_gif" | |
9174 | if test "$no_cache" != 1; then | |
9175 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9176 | fi | |
9177 | ||
9178 | if test "$wxUSE_GIF" = yes; then | |
9179 | echo "$as_me:$LINENO: result: yes" >&5 | |
9180 | echo "${ECHO_T}yes" >&6 | |
9181 | else | |
9182 | echo "$as_me:$LINENO: result: no" >&5 | |
9183 | echo "${ECHO_T}no" >&6 | |
9184 | fi | |
9185 | ||
9186 | ||
9187 | enablestring= | |
9188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9189 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9190 | no_cache=0 | |
9191 | # Check whether --enable-pcx or --disable-pcx was given. | |
9192 | if test "${enable_pcx+set}" = set; then | |
9193 | enableval="$enable_pcx" | |
9194 | ||
9195 | if test "$enableval" = yes; then | |
9196 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9197 | else | |
9198 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9199 | fi | |
9200 | ||
9201 | else | |
9202 | ||
9203 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9204 | if test "x$LINE" != x ; then | |
9205 | eval "DEFAULT_$LINE" | |
9206 | else | |
9207 | no_cache=1 | |
9208 | fi | |
9209 | ||
9210 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9211 | ||
9212 | fi; | |
9213 | ||
9214 | eval "$ac_cv_use_pcx" | |
9215 | if test "$no_cache" != 1; then | |
9216 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9217 | fi | |
9218 | ||
9219 | if test "$wxUSE_PCX" = yes; then | |
9220 | echo "$as_me:$LINENO: result: yes" >&5 | |
9221 | echo "${ECHO_T}yes" >&6 | |
9222 | else | |
9223 | echo "$as_me:$LINENO: result: no" >&5 | |
9224 | echo "${ECHO_T}no" >&6 | |
9225 | fi | |
9226 | ||
9227 | ||
9228 | enablestring= | |
9229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9230 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9231 | no_cache=0 | |
9232 | # Check whether --enable-iff or --disable-iff was given. | |
9233 | if test "${enable_iff+set}" = set; then | |
9234 | enableval="$enable_iff" | |
9235 | ||
9236 | if test "$enableval" = yes; then | |
9237 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9238 | else | |
9239 | ac_cv_use_iff='wxUSE_IFF=no' | |
9240 | fi | |
9241 | ||
9242 | else | |
9243 | ||
9244 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9245 | if test "x$LINE" != x ; then | |
9246 | eval "DEFAULT_$LINE" | |
9247 | else | |
9248 | no_cache=1 | |
9249 | fi | |
9250 | ||
9251 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9252 | ||
9253 | fi; | |
9254 | ||
9255 | eval "$ac_cv_use_iff" | |
9256 | if test "$no_cache" != 1; then | |
9257 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9258 | fi | |
9259 | ||
9260 | if test "$wxUSE_IFF" = yes; then | |
9261 | echo "$as_me:$LINENO: result: yes" >&5 | |
9262 | echo "${ECHO_T}yes" >&6 | |
9263 | else | |
9264 | echo "$as_me:$LINENO: result: no" >&5 | |
9265 | echo "${ECHO_T}no" >&6 | |
9266 | fi | |
9267 | ||
9268 | ||
9269 | enablestring= | |
9270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9271 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9272 | no_cache=0 | |
9273 | # Check whether --enable-pnm or --disable-pnm was given. | |
9274 | if test "${enable_pnm+set}" = set; then | |
9275 | enableval="$enable_pnm" | |
9276 | ||
9277 | if test "$enableval" = yes; then | |
9278 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9279 | else | |
9280 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9281 | fi | |
9282 | ||
9283 | else | |
9284 | ||
9285 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9286 | if test "x$LINE" != x ; then | |
9287 | eval "DEFAULT_$LINE" | |
9288 | else | |
9289 | no_cache=1 | |
9290 | fi | |
9291 | ||
9292 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9293 | ||
9294 | fi; | |
9295 | ||
9296 | eval "$ac_cv_use_pnm" | |
9297 | if test "$no_cache" != 1; then | |
9298 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9299 | fi | |
9300 | ||
9301 | if test "$wxUSE_PNM" = yes; then | |
9302 | echo "$as_me:$LINENO: result: yes" >&5 | |
9303 | echo "${ECHO_T}yes" >&6 | |
9304 | else | |
9305 | echo "$as_me:$LINENO: result: no" >&5 | |
9306 | echo "${ECHO_T}no" >&6 | |
9307 | fi | |
9308 | ||
9309 | ||
9310 | enablestring= | |
9311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9312 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9313 | no_cache=0 | |
9314 | # Check whether --enable-xpm or --disable-xpm was given. | |
9315 | if test "${enable_xpm+set}" = set; then | |
9316 | enableval="$enable_xpm" | |
9317 | ||
9318 | if test "$enableval" = yes; then | |
9319 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9320 | else | |
9321 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9322 | fi | |
9323 | ||
9324 | else | |
9325 | ||
9326 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9327 | if test "x$LINE" != x ; then | |
9328 | eval "DEFAULT_$LINE" | |
9329 | else | |
9330 | no_cache=1 | |
9331 | fi | |
9332 | ||
9333 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9334 | ||
9335 | fi; | |
9336 | ||
9337 | eval "$ac_cv_use_xpm" | |
9338 | if test "$no_cache" != 1; then | |
9339 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9340 | fi | |
9341 | ||
9342 | if test "$wxUSE_XPM" = yes; then | |
9343 | echo "$as_me:$LINENO: result: yes" >&5 | |
9344 | echo "${ECHO_T}yes" >&6 | |
9345 | else | |
9346 | echo "$as_me:$LINENO: result: no" >&5 | |
9347 | echo "${ECHO_T}no" >&6 | |
9348 | fi | |
9349 | ||
9350 | ||
9351 | enablestring= | |
9352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9353 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9354 | no_cache=0 | |
9355 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9356 | if test "${enable_ico_cur+set}" = set; then | |
9357 | enableval="$enable_ico_cur" | |
9358 | ||
9359 | if test "$enableval" = yes; then | |
9360 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9361 | else | |
9362 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9363 | fi | |
9364 | ||
9365 | else | |
9366 | ||
9367 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9368 | if test "x$LINE" != x ; then | |
9369 | eval "DEFAULT_$LINE" | |
9370 | else | |
9371 | no_cache=1 | |
9372 | fi | |
9373 | ||
9374 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9375 | ||
9376 | fi; | |
9377 | ||
9378 | eval "$ac_cv_use_ico_cur" | |
9379 | if test "$no_cache" != 1; then | |
9380 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9381 | fi | |
9382 | ||
9383 | if test "$wxUSE_ICO_CUR" = yes; then | |
9384 | echo "$as_me:$LINENO: result: yes" >&5 | |
9385 | echo "${ECHO_T}yes" >&6 | |
9386 | else | |
9387 | echo "$as_me:$LINENO: result: no" >&5 | |
9388 | echo "${ECHO_T}no" >&6 | |
9389 | fi | |
9390 | ||
9391 | ||
9392 | fi | |
9393 | ||
9394 | case "${host}" in | |
9395 | *-pc-os2_emx | *-pc-os2-emx ) | |
9396 | PATH_IFS=';' | |
9397 | LEX_STEM="lexyy" | |
9398 | ;; | |
9399 | *) | |
9400 | PATH_IFS=':' | |
9401 | LEX_STEM="lex.yy" | |
9402 | ;; | |
9403 | esac | |
9404 | ||
9405 | ||
9406 | ||
9407 | echo "saving argument cache $wx_arg_cache_file" | |
9408 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9409 | ||
9410 | ||
9411 | ||
9412 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9413 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
9414 | ||
9415 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9416 | if test "$wxUSE_WINE" = "yes"; then | |
9417 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9418 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9419 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9420 | fi | |
9421 | ||
9422 | if test "$wxUSE_GUI" = "yes"; then | |
9423 | ||
9424 | if test "$USE_BEOS" = 1; then | |
9425 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
9426 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9427 | { (exit 1); exit 1; }; } | |
9428 | fi | |
9429 | ||
9430 | if test "$TOOLKIT_GIVEN" = 1; then | |
9431 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9432 | var=wxUSE_$toolkit | |
9433 | eval "value=\$${var}" | |
9434 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9435 | done | |
9436 | else | |
9437 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9438 | if test "$has_toolkit_in_cache" != 1; then | |
9439 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9440 | else | |
9441 | var=DEFAULT_wxUSE_$toolkit | |
9442 | fi | |
9443 | eval "wxUSE_$toolkit=\$${var}" | |
9444 | done | |
9445 | fi | |
9446 | ||
9447 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
9448 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9449 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
9450 | ||
9451 | case "${host}" in | |
9452 | *-pc-os2_emx | *-pc-os2-emx ) | |
9453 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
9454 | esac | |
9455 | ||
9456 | case "$NUM_TOOLKITS" in | |
9457 | 1) | |
9458 | ;; | |
9459 | 0) | |
9460 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
9461 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9462 | { (exit 1); exit 1; }; } | |
9463 | ;; | |
9464 | *) | |
9465 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
9466 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9467 | { (exit 1); exit 1; }; } | |
9468 | esac | |
9469 | ||
9470 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9471 | var=wxUSE_$toolkit | |
9472 | eval "value=\$${var}" | |
9473 | if test "x$value" != x; then | |
9474 | cache_var=CACHE_$toolkit | |
9475 | eval "cache=\$${cache_var}" | |
9476 | if test "$cache" = 1; then | |
9477 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9478 | fi | |
9479 | if test "$value" = 1; then | |
9480 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
9481 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
9482 | echo "${ECHO_T}$toolkit_echo" >&6 | |
9483 | fi | |
9484 | fi | |
9485 | done | |
9486 | else | |
9487 | if test "x$host_alias" != "x"; then | |
9488 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
9489 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
9490 | else | |
9491 | echo "$as_me:$LINENO: result: base only" >&5 | |
9492 | echo "${ECHO_T}base only" >&6 | |
9493 | fi | |
9494 | fi | |
9495 | ||
9496 | wants_win32=0 | |
9497 | doesnt_want_win32=0 | |
9498 | case "${host}" in | |
9499 | *-*-cygwin*) | |
9500 | if test "$wxUSE_MSW" = 1 ; then | |
9501 | wants_win32=1 | |
9502 | else | |
9503 | doesnt_want_win32=1 | |
9504 | fi | |
9505 | ;; | |
9506 | *-*-mingw*) | |
9507 | wants_win32=1 | |
9508 | ;; | |
9509 | esac | |
9510 | ||
9511 | if test "$wxUSE_WINE" = "yes"; then | |
9512 | wants_win32=1 | |
9513 | CC=winegcc | |
9514 | CXX=wineg++ | |
9515 | RESCOMP=wrc | |
9516 | fi | |
9517 | ||
9518 | if test "$wants_win32" = 1 ; then | |
9519 | USE_UNIX=0 | |
9520 | USE_WIN32=1 | |
9521 | cat >>confdefs.h <<\_ACEOF | |
9522 | #define __WIN32__ 1 | |
9523 | _ACEOF | |
9524 | ||
9525 | cat >>confdefs.h <<\_ACEOF | |
9526 | #define __WIN95__ 1 | |
9527 | _ACEOF | |
9528 | ||
9529 | cat >>confdefs.h <<\_ACEOF | |
9530 | #define __WINDOWS__ 1 | |
9531 | _ACEOF | |
9532 | ||
9533 | cat >>confdefs.h <<\_ACEOF | |
9534 | #define __GNUWIN32__ 1 | |
9535 | _ACEOF | |
9536 | ||
9537 | cat >>confdefs.h <<\_ACEOF | |
9538 | #define STRICT 1 | |
9539 | _ACEOF | |
9540 | ||
9541 | cat >>confdefs.h <<\_ACEOF | |
9542 | #define WINVER 0x0400 | |
9543 | _ACEOF | |
9544 | ||
9545 | fi | |
9546 | if test "$doesnt_want_win32" = 1 ; then | |
9547 | USE_UNIX=1 | |
9548 | USE_WIN32=0 | |
9549 | fi | |
9550 | ||
9551 | if test "$USE_UNIX" = 1 ; then | |
9552 | wxUSE_UNIX=yes | |
9553 | cat >>confdefs.h <<\_ACEOF | |
9554 | #define __UNIX__ 1 | |
9555 | _ACEOF | |
9556 | ||
9557 | fi | |
9558 | ||
9559 | ||
9560 | cat >confcache <<\_ACEOF | |
9561 | # This file is a shell script that caches the results of configure | |
9562 | # tests run on this system so they can be shared between configure | |
9563 | # scripts and configure runs, see configure's option --config-cache. | |
9564 | # It is not useful on other systems. If it contains results you don't | |
9565 | # want to keep, you may remove or edit it. | |
9566 | # | |
9567 | # config.status only pays attention to the cache file if you give it | |
9568 | # the --recheck option to rerun configure. | |
9569 | # | |
9570 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9571 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9572 | # following values. | |
9573 | ||
9574 | _ACEOF | |
9575 | ||
9576 | # The following way of writing the cache mishandles newlines in values, | |
9577 | # but we know of no workaround that is simple, portable, and efficient. | |
9578 | # So, don't put newlines in cache variables' values. | |
9579 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9580 | # and sets the high bit in the cache file unless we assign to the vars. | |
9581 | { | |
9582 | (set) 2>&1 | | |
9583 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9584 | *ac_space=\ *) | |
9585 | # `set' does not quote correctly, so add quotes (double-quote | |
9586 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9587 | sed -n \ | |
9588 | "s/'/'\\\\''/g; | |
9589 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9590 | ;; | |
9591 | *) | |
9592 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9593 | sed -n \ | |
9594 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9595 | ;; | |
9596 | esac; | |
9597 | } | | |
9598 | sed ' | |
9599 | t clear | |
9600 | : clear | |
9601 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9602 | t end | |
9603 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9604 | : end' >>confcache | |
9605 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
9606 | if test -w $cache_file; then | |
9607 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
9608 | cat confcache >$cache_file | |
9609 | else | |
9610 | echo "not updating unwritable cache $cache_file" | |
9611 | fi | |
9612 | fi | |
9613 | rm -f confcache | |
9614 | ||
9615 | if test "$build" != "$host" ; then | |
9616 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
9617 | CC=$host_alias-gcc | |
9618 | CXX=$host_alias-c++ | |
9619 | AR=$host_alias-ar | |
9620 | RANLIB=$host_alias-ranlib | |
9621 | DLLTOOL=$host_alias-dlltool | |
9622 | RESCOMP=$host_alias-windres | |
9623 | LD=$host_alias-ld | |
9624 | NM=$host_alias-nm | |
9625 | STRIP=$host_alias-strip | |
9626 | else | |
9627 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
9628 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9629 | { (exit 1); exit 1; }; } | |
9630 | fi | |
9631 | fi | |
9632 | ||
9633 | CFLAGS=${CFLAGS:=} | |
9634 | ac_ext=c | |
9635 | ac_cpp='$CPP $CPPFLAGS' | |
9636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9639 | if test -n "$ac_tool_prefix"; then | |
9640 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9641 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9644 | if test "${ac_cv_prog_CC+set}" = set; then | |
9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9646 | else | |
9647 | if test -n "$CC"; then | |
9648 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9649 | else | |
9650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9651 | for as_dir in $PATH | |
9652 | do | |
9653 | IFS=$as_save_IFS | |
9654 | test -z "$as_dir" && as_dir=. | |
9655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9657 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9659 | break 2 | |
9660 | fi | |
9661 | done | |
9662 | done | |
9663 | ||
9664 | fi | |
9665 | fi | |
9666 | CC=$ac_cv_prog_CC | |
9667 | if test -n "$CC"; then | |
9668 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9669 | echo "${ECHO_T}$CC" >&6 | |
9670 | else | |
9671 | echo "$as_me:$LINENO: result: no" >&5 | |
9672 | echo "${ECHO_T}no" >&6 | |
9673 | fi | |
9674 | ||
9675 | fi | |
9676 | if test -z "$ac_cv_prog_CC"; then | |
9677 | ac_ct_CC=$CC | |
9678 | # Extract the first word of "gcc", so it can be a program name with args. | |
9679 | set dummy gcc; ac_word=$2 | |
9680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9682 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9684 | else | |
9685 | if test -n "$ac_ct_CC"; then | |
9686 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9687 | else | |
9688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9689 | for as_dir in $PATH | |
9690 | do | |
9691 | IFS=$as_save_IFS | |
9692 | test -z "$as_dir" && as_dir=. | |
9693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9695 | ac_cv_prog_ac_ct_CC="gcc" | |
9696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9697 | break 2 | |
9698 | fi | |
9699 | done | |
9700 | done | |
9701 | ||
9702 | fi | |
9703 | fi | |
9704 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9705 | if test -n "$ac_ct_CC"; then | |
9706 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9707 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9708 | else | |
9709 | echo "$as_me:$LINENO: result: no" >&5 | |
9710 | echo "${ECHO_T}no" >&6 | |
9711 | fi | |
9712 | ||
9713 | CC=$ac_ct_CC | |
9714 | else | |
9715 | CC="$ac_cv_prog_CC" | |
9716 | fi | |
9717 | ||
9718 | if test -z "$CC"; then | |
9719 | if test -n "$ac_tool_prefix"; then | |
9720 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9721 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9724 | if test "${ac_cv_prog_CC+set}" = set; then | |
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9726 | else | |
9727 | if test -n "$CC"; then | |
9728 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9729 | else | |
9730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9731 | for as_dir in $PATH | |
9732 | do | |
9733 | IFS=$as_save_IFS | |
9734 | test -z "$as_dir" && as_dir=. | |
9735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9737 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9739 | break 2 | |
9740 | fi | |
9741 | done | |
9742 | done | |
9743 | ||
9744 | fi | |
9745 | fi | |
9746 | CC=$ac_cv_prog_CC | |
9747 | if test -n "$CC"; then | |
9748 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9749 | echo "${ECHO_T}$CC" >&6 | |
9750 | else | |
9751 | echo "$as_me:$LINENO: result: no" >&5 | |
9752 | echo "${ECHO_T}no" >&6 | |
9753 | fi | |
9754 | ||
9755 | fi | |
9756 | if test -z "$ac_cv_prog_CC"; then | |
9757 | ac_ct_CC=$CC | |
9758 | # Extract the first word of "cc", so it can be a program name with args. | |
9759 | set dummy cc; ac_word=$2 | |
9760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9762 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9764 | else | |
9765 | if test -n "$ac_ct_CC"; then | |
9766 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9767 | else | |
9768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9769 | for as_dir in $PATH | |
9770 | do | |
9771 | IFS=$as_save_IFS | |
9772 | test -z "$as_dir" && as_dir=. | |
9773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9775 | ac_cv_prog_ac_ct_CC="cc" | |
9776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9777 | break 2 | |
9778 | fi | |
9779 | done | |
9780 | done | |
9781 | ||
9782 | fi | |
9783 | fi | |
9784 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9785 | if test -n "$ac_ct_CC"; then | |
9786 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9787 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9788 | else | |
9789 | echo "$as_me:$LINENO: result: no" >&5 | |
9790 | echo "${ECHO_T}no" >&6 | |
9791 | fi | |
9792 | ||
9793 | CC=$ac_ct_CC | |
9794 | else | |
9795 | CC="$ac_cv_prog_CC" | |
9796 | fi | |
9797 | ||
9798 | fi | |
9799 | if test -z "$CC"; then | |
9800 | # Extract the first word of "cc", so it can be a program name with args. | |
9801 | set dummy cc; ac_word=$2 | |
9802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9804 | if test "${ac_cv_prog_CC+set}" = set; then | |
9805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9806 | else | |
9807 | if test -n "$CC"; then | |
9808 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9809 | else | |
9810 | ac_prog_rejected=no | |
9811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9812 | for as_dir in $PATH | |
9813 | do | |
9814 | IFS=$as_save_IFS | |
9815 | test -z "$as_dir" && as_dir=. | |
9816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9818 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9819 | ac_prog_rejected=yes | |
9820 | continue | |
9821 | fi | |
9822 | ac_cv_prog_CC="cc" | |
9823 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9824 | break 2 | |
9825 | fi | |
9826 | done | |
9827 | done | |
9828 | ||
9829 | if test $ac_prog_rejected = yes; then | |
9830 | # We found a bogon in the path, so make sure we never use it. | |
9831 | set dummy $ac_cv_prog_CC | |
9832 | shift | |
9833 | if test $# != 0; then | |
9834 | # We chose a different compiler from the bogus one. | |
9835 | # However, it has the same basename, so the bogon will be chosen | |
9836 | # first if we set CC to just the basename; use the full file name. | |
9837 | shift | |
9838 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
9839 | fi | |
9840 | fi | |
9841 | fi | |
9842 | fi | |
9843 | CC=$ac_cv_prog_CC | |
9844 | if test -n "$CC"; then | |
9845 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9846 | echo "${ECHO_T}$CC" >&6 | |
9847 | else | |
9848 | echo "$as_me:$LINENO: result: no" >&5 | |
9849 | echo "${ECHO_T}no" >&6 | |
9850 | fi | |
9851 | ||
9852 | fi | |
9853 | if test -z "$CC"; then | |
9854 | if test -n "$ac_tool_prefix"; then | |
9855 | for ac_prog in cl | |
9856 | do | |
9857 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9858 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9861 | if test "${ac_cv_prog_CC+set}" = set; then | |
9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9863 | else | |
9864 | if test -n "$CC"; then | |
9865 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9866 | else | |
9867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9868 | for as_dir in $PATH | |
9869 | do | |
9870 | IFS=$as_save_IFS | |
9871 | test -z "$as_dir" && as_dir=. | |
9872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9874 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9876 | break 2 | |
9877 | fi | |
9878 | done | |
9879 | done | |
9880 | ||
9881 | fi | |
9882 | fi | |
9883 | CC=$ac_cv_prog_CC | |
9884 | if test -n "$CC"; then | |
9885 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9886 | echo "${ECHO_T}$CC" >&6 | |
9887 | else | |
9888 | echo "$as_me:$LINENO: result: no" >&5 | |
9889 | echo "${ECHO_T}no" >&6 | |
9890 | fi | |
9891 | ||
9892 | test -n "$CC" && break | |
9893 | done | |
9894 | fi | |
9895 | if test -z "$CC"; then | |
9896 | ac_ct_CC=$CC | |
9897 | for ac_prog in cl | |
9898 | do | |
9899 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9900 | set dummy $ac_prog; ac_word=$2 | |
9901 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9903 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9905 | else | |
9906 | if test -n "$ac_ct_CC"; then | |
9907 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9908 | else | |
9909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9910 | for as_dir in $PATH | |
9911 | do | |
9912 | IFS=$as_save_IFS | |
9913 | test -z "$as_dir" && as_dir=. | |
9914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9916 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
9917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9918 | break 2 | |
9919 | fi | |
9920 | done | |
9921 | done | |
9922 | ||
9923 | fi | |
9924 | fi | |
9925 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9926 | if test -n "$ac_ct_CC"; then | |
9927 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9928 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9929 | else | |
9930 | echo "$as_me:$LINENO: result: no" >&5 | |
9931 | echo "${ECHO_T}no" >&6 | |
9932 | fi | |
9933 | ||
9934 | test -n "$ac_ct_CC" && break | |
9935 | done | |
9936 | ||
9937 | CC=$ac_ct_CC | |
9938 | fi | |
9939 | ||
9940 | fi | |
9941 | ||
9942 | ||
9943 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
9944 | See \`config.log' for more details." >&5 | |
9945 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
9946 | See \`config.log' for more details." >&2;} | |
9947 | { (exit 1); exit 1; }; } | |
9948 | ||
9949 | # Provide some information about the compiler. | |
9950 | echo "$as_me:$LINENO:" \ | |
9951 | "checking for C compiler version" >&5 | |
9952 | ac_compiler=`set X $ac_compile; echo $2` | |
9953 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
9954 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
9955 | ac_status=$? | |
9956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9957 | (exit $ac_status); } | |
9958 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
9959 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
9960 | ac_status=$? | |
9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9962 | (exit $ac_status); } | |
9963 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
9964 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
9965 | ac_status=$? | |
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9967 | (exit $ac_status); } | |
9968 | ||
9969 | cat >conftest.$ac_ext <<_ACEOF | |
9970 | #line $LINENO "configure" | |
9971 | /* confdefs.h. */ | |
9972 | _ACEOF | |
9973 | cat confdefs.h >>conftest.$ac_ext | |
9974 | cat >>conftest.$ac_ext <<_ACEOF | |
9975 | /* end confdefs.h. */ | |
9976 | ||
9977 | int | |
9978 | main () | |
9979 | { | |
9980 | ||
9981 | ; | |
9982 | return 0; | |
9983 | } | |
9984 | _ACEOF | |
9985 | ac_clean_files_save=$ac_clean_files | |
9986 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
9987 | # Try to create an executable without -o first, disregard a.out. | |
9988 | # It will help us diagnose broken compilers, and finding out an intuition | |
9989 | # of exeext. | |
9990 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
9991 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
9992 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
9993 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
9994 | (eval $ac_link_default) 2>&5 | |
9995 | ac_status=$? | |
9996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9997 | (exit $ac_status); }; then | |
9998 | # Find the output, starting from the most likely. This scheme is | |
9999 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10000 | # resort. | |
10001 | ||
10002 | # Be careful to initialize this variable, since it used to be cached. | |
10003 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10004 | ac_cv_exeext= | |
10005 | # b.out is created by i960 compilers. | |
10006 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10007 | do | |
10008 | test -f "$ac_file" || continue | |
10009 | case $ac_file in | |
10010 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10011 | ;; | |
10012 | conftest.$ac_ext ) | |
10013 | # This is the source file. | |
10014 | ;; | |
10015 | [ab].out ) | |
10016 | # We found the default executable, but exeext='' is most | |
10017 | # certainly right. | |
10018 | break;; | |
10019 | *.* ) | |
10020 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10021 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10022 | # but it would be cool to find out if it's true. Does anybody | |
10023 | # maintain Libtool? --akim. | |
10024 | export ac_cv_exeext | |
10025 | break;; | |
10026 | * ) | |
10027 | break;; | |
10028 | esac | |
10029 | done | |
10030 | else | |
10031 | echo "$as_me: failed program was:" >&5 | |
10032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10033 | ||
10034 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10035 | See \`config.log' for more details." >&5 | |
10036 | echo "$as_me: error: C compiler cannot create executables | |
10037 | See \`config.log' for more details." >&2;} | |
10038 | { (exit 77); exit 77; }; } | |
10039 | fi | |
10040 | ||
10041 | ac_exeext=$ac_cv_exeext | |
10042 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10043 | echo "${ECHO_T}$ac_file" >&6 | |
10044 | ||
10045 | # Check the compiler produces executables we can run. If not, either | |
10046 | # the compiler is broken, or we cross compile. | |
10047 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10048 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10049 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10050 | # If not cross compiling, check that we can run a simple program. | |
10051 | if test "$cross_compiling" != yes; then | |
10052 | if { ac_try='./$ac_file' | |
10053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10054 | (eval $ac_try) 2>&5 | |
10055 | ac_status=$? | |
10056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10057 | (exit $ac_status); }; }; then | |
10058 | cross_compiling=no | |
10059 | else | |
10060 | if test "$cross_compiling" = maybe; then | |
10061 | cross_compiling=yes | |
10062 | else | |
10063 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10064 | If you meant to cross compile, use \`--host'. | |
10065 | See \`config.log' for more details." >&5 | |
10066 | echo "$as_me: error: cannot run C compiled programs. | |
10067 | If you meant to cross compile, use \`--host'. | |
10068 | See \`config.log' for more details." >&2;} | |
10069 | { (exit 1); exit 1; }; } | |
10070 | fi | |
10071 | fi | |
10072 | fi | |
10073 | echo "$as_me:$LINENO: result: yes" >&5 | |
10074 | echo "${ECHO_T}yes" >&6 | |
10075 | ||
10076 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10077 | ac_clean_files=$ac_clean_files_save | |
10078 | # Check the compiler produces executables we can run. If not, either | |
10079 | # the compiler is broken, or we cross compile. | |
10080 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10081 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10082 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10083 | echo "${ECHO_T}$cross_compiling" >&6 | |
10084 | ||
10085 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10086 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10088 | (eval $ac_link) 2>&5 | |
10089 | ac_status=$? | |
10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10091 | (exit $ac_status); }; then | |
10092 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10093 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10094 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10095 | # `rm'. | |
10096 | for ac_file in conftest.exe conftest conftest.*; do | |
10097 | test -f "$ac_file" || continue | |
10098 | case $ac_file in | |
10099 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10100 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10101 | export ac_cv_exeext | |
10102 | break;; | |
10103 | * ) break;; | |
10104 | esac | |
10105 | done | |
10106 | else | |
10107 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10108 | See \`config.log' for more details." >&5 | |
10109 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10110 | See \`config.log' for more details." >&2;} | |
10111 | { (exit 1); exit 1; }; } | |
10112 | fi | |
10113 | ||
10114 | rm -f conftest$ac_cv_exeext | |
10115 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10116 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10117 | ||
10118 | rm -f conftest.$ac_ext | |
10119 | EXEEXT=$ac_cv_exeext | |
10120 | ac_exeext=$EXEEXT | |
10121 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10122 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10123 | if test "${ac_cv_objext+set}" = set; then | |
10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10125 | else | |
10126 | cat >conftest.$ac_ext <<_ACEOF | |
10127 | #line $LINENO "configure" | |
10128 | /* confdefs.h. */ | |
10129 | _ACEOF | |
10130 | cat confdefs.h >>conftest.$ac_ext | |
10131 | cat >>conftest.$ac_ext <<_ACEOF | |
10132 | /* end confdefs.h. */ | |
10133 | ||
10134 | int | |
10135 | main () | |
10136 | { | |
10137 | ||
10138 | ; | |
10139 | return 0; | |
10140 | } | |
10141 | _ACEOF | |
10142 | rm -f conftest.o conftest.obj | |
10143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10144 | (eval $ac_compile) 2>&5 | |
10145 | ac_status=$? | |
10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10147 | (exit $ac_status); }; then | |
10148 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10149 | case $ac_file in | |
10150 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10151 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10152 | break;; | |
10153 | esac | |
10154 | done | |
10155 | else | |
10156 | echo "$as_me: failed program was:" >&5 | |
10157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10158 | ||
10159 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10160 | See \`config.log' for more details." >&5 | |
10161 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10162 | See \`config.log' for more details." >&2;} | |
10163 | { (exit 1); exit 1; }; } | |
10164 | fi | |
10165 | ||
10166 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10167 | fi | |
10168 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10169 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10170 | OBJEXT=$ac_cv_objext | |
10171 | ac_objext=$OBJEXT | |
10172 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10173 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10174 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10176 | else | |
10177 | cat >conftest.$ac_ext <<_ACEOF | |
10178 | #line $LINENO "configure" | |
10179 | /* confdefs.h. */ | |
10180 | _ACEOF | |
10181 | cat confdefs.h >>conftest.$ac_ext | |
10182 | cat >>conftest.$ac_ext <<_ACEOF | |
10183 | /* end confdefs.h. */ | |
10184 | ||
10185 | int | |
10186 | main () | |
10187 | { | |
10188 | #ifndef __GNUC__ | |
10189 | choke me | |
10190 | #endif | |
10191 | ||
10192 | ; | |
10193 | return 0; | |
10194 | } | |
10195 | _ACEOF | |
10196 | rm -f conftest.$ac_objext | |
10197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10198 | (eval $ac_compile) 2>&5 | |
10199 | ac_status=$? | |
10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10201 | (exit $ac_status); } && | |
10202 | { ac_try='test -s conftest.$ac_objext' | |
10203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10204 | (eval $ac_try) 2>&5 | |
10205 | ac_status=$? | |
10206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10207 | (exit $ac_status); }; }; then | |
10208 | ac_compiler_gnu=yes | |
10209 | else | |
10210 | echo "$as_me: failed program was:" >&5 | |
10211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10212 | ||
10213 | ac_compiler_gnu=no | |
10214 | fi | |
10215 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10216 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10217 | ||
10218 | fi | |
10219 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10220 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10221 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10222 | ac_test_CFLAGS=${CFLAGS+set} | |
10223 | ac_save_CFLAGS=$CFLAGS | |
10224 | CFLAGS="-g" | |
10225 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10226 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10227 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10229 | else | |
10230 | cat >conftest.$ac_ext <<_ACEOF | |
10231 | #line $LINENO "configure" | |
10232 | /* confdefs.h. */ | |
10233 | _ACEOF | |
10234 | cat confdefs.h >>conftest.$ac_ext | |
10235 | cat >>conftest.$ac_ext <<_ACEOF | |
10236 | /* end confdefs.h. */ | |
10237 | ||
10238 | int | |
10239 | main () | |
10240 | { | |
10241 | ||
10242 | ; | |
10243 | return 0; | |
10244 | } | |
10245 | _ACEOF | |
10246 | rm -f conftest.$ac_objext | |
10247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10248 | (eval $ac_compile) 2>&5 | |
10249 | ac_status=$? | |
10250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10251 | (exit $ac_status); } && | |
10252 | { ac_try='test -s conftest.$ac_objext' | |
10253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10254 | (eval $ac_try) 2>&5 | |
10255 | ac_status=$? | |
10256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10257 | (exit $ac_status); }; }; then | |
10258 | ac_cv_prog_cc_g=yes | |
10259 | else | |
10260 | echo "$as_me: failed program was:" >&5 | |
10261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10262 | ||
10263 | ac_cv_prog_cc_g=no | |
10264 | fi | |
10265 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10266 | fi | |
10267 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10268 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10269 | if test "$ac_test_CFLAGS" = set; then | |
10270 | CFLAGS=$ac_save_CFLAGS | |
10271 | elif test $ac_cv_prog_cc_g = yes; then | |
10272 | if test "$GCC" = yes; then | |
10273 | CFLAGS="-g -O2" | |
10274 | else | |
10275 | CFLAGS="-g" | |
10276 | fi | |
10277 | else | |
10278 | if test "$GCC" = yes; then | |
10279 | CFLAGS="-O2" | |
10280 | else | |
10281 | CFLAGS= | |
10282 | fi | |
10283 | fi | |
10284 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10285 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10286 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10288 | else | |
10289 | ac_cv_prog_cc_stdc=no | |
10290 | ac_save_CC=$CC | |
10291 | cat >conftest.$ac_ext <<_ACEOF | |
10292 | #line $LINENO "configure" | |
10293 | /* confdefs.h. */ | |
10294 | _ACEOF | |
10295 | cat confdefs.h >>conftest.$ac_ext | |
10296 | cat >>conftest.$ac_ext <<_ACEOF | |
10297 | /* end confdefs.h. */ | |
10298 | #include <stdarg.h> | |
10299 | #include <stdio.h> | |
10300 | #include <sys/types.h> | |
10301 | #include <sys/stat.h> | |
10302 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10303 | struct buf { int x; }; | |
10304 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10305 | static char *e (p, i) | |
10306 | char **p; | |
10307 | int i; | |
10308 | { | |
10309 | return p[i]; | |
10310 | } | |
10311 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10312 | { | |
10313 | char *s; | |
10314 | va_list v; | |
10315 | va_start (v,p); | |
10316 | s = g (p, va_arg (v,int)); | |
10317 | va_end (v); | |
10318 | return s; | |
10319 | } | |
10320 | int test (int i, double x); | |
10321 | struct s1 {int (*f) (int a);}; | |
10322 | struct s2 {int (*f) (double a);}; | |
10323 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10324 | int argc; | |
10325 | char **argv; | |
10326 | int | |
10327 | main () | |
10328 | { | |
10329 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10330 | ; | |
10331 | return 0; | |
10332 | } | |
10333 | _ACEOF | |
10334 | # Don't try gcc -ansi; that turns off useful extensions and | |
10335 | # breaks some systems' header files. | |
10336 | # AIX -qlanglvl=ansi | |
10337 | # Ultrix and OSF/1 -std1 | |
10338 | # HP-UX 10.20 and later -Ae | |
10339 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10340 | # SVR4 -Xc -D__EXTENSIONS__ | |
10341 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10342 | do | |
10343 | CC="$ac_save_CC $ac_arg" | |
10344 | rm -f conftest.$ac_objext | |
10345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10346 | (eval $ac_compile) 2>&5 | |
10347 | ac_status=$? | |
10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10349 | (exit $ac_status); } && | |
10350 | { ac_try='test -s conftest.$ac_objext' | |
10351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10352 | (eval $ac_try) 2>&5 | |
10353 | ac_status=$? | |
10354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10355 | (exit $ac_status); }; }; then | |
10356 | ac_cv_prog_cc_stdc=$ac_arg | |
10357 | break | |
10358 | else | |
10359 | echo "$as_me: failed program was:" >&5 | |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10361 | ||
10362 | fi | |
10363 | rm -f conftest.$ac_objext | |
10364 | done | |
10365 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10366 | CC=$ac_save_CC | |
10367 | ||
10368 | fi | |
10369 | ||
10370 | case "x$ac_cv_prog_cc_stdc" in | |
10371 | x|xno) | |
10372 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10373 | echo "${ECHO_T}none needed" >&6 ;; | |
10374 | *) | |
10375 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10376 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10377 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10378 | esac | |
10379 | ||
10380 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10381 | # in C++ we need to declare it. In case someone uses the same compiler | |
10382 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10383 | # the declaration of exit, since it's the most demanding environment. | |
10384 | cat >conftest.$ac_ext <<_ACEOF | |
10385 | #ifndef __cplusplus | |
10386 | choke me | |
10387 | #endif | |
10388 | _ACEOF | |
10389 | rm -f conftest.$ac_objext | |
10390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10391 | (eval $ac_compile) 2>&5 | |
10392 | ac_status=$? | |
10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10394 | (exit $ac_status); } && | |
10395 | { ac_try='test -s conftest.$ac_objext' | |
10396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10397 | (eval $ac_try) 2>&5 | |
10398 | ac_status=$? | |
10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10400 | (exit $ac_status); }; }; then | |
10401 | for ac_declaration in \ | |
10402 | ''\ | |
10403 | '#include <stdlib.h>' \ | |
10404 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
10405 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10406 | 'extern "C" void exit (int) throw ();' \ | |
10407 | 'extern "C" void exit (int);' \ | |
10408 | 'void exit (int);' | |
10409 | do | |
10410 | cat >conftest.$ac_ext <<_ACEOF | |
10411 | #line $LINENO "configure" | |
10412 | /* confdefs.h. */ | |
10413 | _ACEOF | |
10414 | cat confdefs.h >>conftest.$ac_ext | |
10415 | cat >>conftest.$ac_ext <<_ACEOF | |
10416 | /* end confdefs.h. */ | |
10417 | #include <stdlib.h> | |
10418 | $ac_declaration | |
10419 | int | |
10420 | main () | |
10421 | { | |
10422 | exit (42); | |
10423 | ; | |
10424 | return 0; | |
10425 | } | |
10426 | _ACEOF | |
10427 | rm -f conftest.$ac_objext | |
10428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10429 | (eval $ac_compile) 2>&5 | |
10430 | ac_status=$? | |
10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10432 | (exit $ac_status); } && | |
10433 | { ac_try='test -s conftest.$ac_objext' | |
10434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10435 | (eval $ac_try) 2>&5 | |
10436 | ac_status=$? | |
10437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10438 | (exit $ac_status); }; }; then | |
10439 | : | |
10440 | else | |
10441 | echo "$as_me: failed program was:" >&5 | |
10442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10443 | ||
10444 | continue | |
10445 | fi | |
10446 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10447 | cat >conftest.$ac_ext <<_ACEOF | |
10448 | #line $LINENO "configure" | |
10449 | /* confdefs.h. */ | |
10450 | _ACEOF | |
10451 | cat confdefs.h >>conftest.$ac_ext | |
10452 | cat >>conftest.$ac_ext <<_ACEOF | |
10453 | /* end confdefs.h. */ | |
10454 | $ac_declaration | |
10455 | int | |
10456 | main () | |
10457 | { | |
10458 | exit (42); | |
10459 | ; | |
10460 | return 0; | |
10461 | } | |
10462 | _ACEOF | |
10463 | rm -f conftest.$ac_objext | |
10464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10465 | (eval $ac_compile) 2>&5 | |
10466 | ac_status=$? | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); } && | |
10469 | { ac_try='test -s conftest.$ac_objext' | |
10470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10471 | (eval $ac_try) 2>&5 | |
10472 | ac_status=$? | |
10473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10474 | (exit $ac_status); }; }; then | |
10475 | break | |
10476 | else | |
10477 | echo "$as_me: failed program was:" >&5 | |
10478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10479 | ||
10480 | fi | |
10481 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10482 | done | |
10483 | rm -f conftest* | |
10484 | if test -n "$ac_declaration"; then | |
10485 | echo '#ifdef __cplusplus' >>confdefs.h | |
10486 | echo $ac_declaration >>confdefs.h | |
10487 | echo '#endif' >>confdefs.h | |
10488 | fi | |
10489 | ||
10490 | else | |
10491 | echo "$as_me: failed program was:" >&5 | |
10492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10493 | ||
10494 | fi | |
10495 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10496 | ac_ext=c | |
10497 | ac_cpp='$CPP $CPPFLAGS' | |
10498 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10499 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10500 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10501 | ||
10502 | ||
10503 | ||
10504 | ac_ext=c | |
10505 | ac_cpp='$CPP $CPPFLAGS' | |
10506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10509 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10510 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10511 | # On Suns, sometimes $CPP names a directory. | |
10512 | if test -n "$CPP" && test -d "$CPP"; then | |
10513 | CPP= | |
10514 | fi | |
10515 | if test -z "$CPP"; then | |
10516 | if test "${ac_cv_prog_CPP+set}" = set; then | |
10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10518 | else | |
10519 | # Double quotes because CPP needs to be expanded | |
10520 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10521 | do | |
10522 | ac_preproc_ok=false | |
10523 | for ac_c_preproc_warn_flag in '' yes | |
10524 | do | |
10525 | # Use a header file that comes with gcc, so configuring glibc | |
10526 | # with a fresh cross-compiler works. | |
10527 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10528 | # <limits.h> exists even on freestanding compilers. | |
10529 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10530 | # not just through cpp. "Syntax error" is here to catch this case. | |
10531 | cat >conftest.$ac_ext <<_ACEOF | |
10532 | #line $LINENO "configure" | |
10533 | /* confdefs.h. */ | |
10534 | _ACEOF | |
10535 | cat confdefs.h >>conftest.$ac_ext | |
10536 | cat >>conftest.$ac_ext <<_ACEOF | |
10537 | /* end confdefs.h. */ | |
10538 | #ifdef __STDC__ | |
10539 | # include <limits.h> | |
10540 | #else | |
10541 | # include <assert.h> | |
10542 | #endif | |
10543 | Syntax error | |
10544 | _ACEOF | |
10545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10547 | ac_status=$? | |
10548 | grep -v '^ *+' conftest.er1 >conftest.err | |
10549 | rm -f conftest.er1 | |
10550 | cat conftest.err >&5 | |
10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10552 | (exit $ac_status); } >/dev/null; then | |
10553 | if test -s conftest.err; then | |
10554 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10555 | else | |
10556 | ac_cpp_err= | |
10557 | fi | |
10558 | else | |
10559 | ac_cpp_err=yes | |
10560 | fi | |
10561 | if test -z "$ac_cpp_err"; then | |
10562 | : | |
10563 | else | |
10564 | echo "$as_me: failed program was:" >&5 | |
10565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10566 | ||
10567 | # Broken: fails on valid input. | |
10568 | continue | |
10569 | fi | |
10570 | rm -f conftest.err conftest.$ac_ext | |
10571 | ||
10572 | # OK, works on sane cases. Now check whether non-existent headers | |
10573 | # can be detected and how. | |
10574 | cat >conftest.$ac_ext <<_ACEOF | |
10575 | #line $LINENO "configure" | |
10576 | /* confdefs.h. */ | |
10577 | _ACEOF | |
10578 | cat confdefs.h >>conftest.$ac_ext | |
10579 | cat >>conftest.$ac_ext <<_ACEOF | |
10580 | /* end confdefs.h. */ | |
10581 | #include <ac_nonexistent.h> | |
10582 | _ACEOF | |
10583 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10584 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10585 | ac_status=$? | |
10586 | grep -v '^ *+' conftest.er1 >conftest.err | |
10587 | rm -f conftest.er1 | |
10588 | cat conftest.err >&5 | |
10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10590 | (exit $ac_status); } >/dev/null; then | |
10591 | if test -s conftest.err; then | |
10592 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10593 | else | |
10594 | ac_cpp_err= | |
10595 | fi | |
10596 | else | |
10597 | ac_cpp_err=yes | |
10598 | fi | |
10599 | if test -z "$ac_cpp_err"; then | |
10600 | # Broken: success on invalid input. | |
10601 | continue | |
10602 | else | |
10603 | echo "$as_me: failed program was:" >&5 | |
10604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10605 | ||
10606 | # Passes both tests. | |
10607 | ac_preproc_ok=: | |
10608 | break | |
10609 | fi | |
10610 | rm -f conftest.err conftest.$ac_ext | |
10611 | ||
10612 | done | |
10613 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10614 | rm -f conftest.err conftest.$ac_ext | |
10615 | if $ac_preproc_ok; then | |
10616 | break | |
10617 | fi | |
10618 | ||
10619 | done | |
10620 | ac_cv_prog_CPP=$CPP | |
10621 | ||
10622 | fi | |
10623 | CPP=$ac_cv_prog_CPP | |
10624 | else | |
10625 | ac_cv_prog_CPP=$CPP | |
10626 | fi | |
10627 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10628 | echo "${ECHO_T}$CPP" >&6 | |
10629 | ac_preproc_ok=false | |
10630 | for ac_c_preproc_warn_flag in '' yes | |
10631 | do | |
10632 | # Use a header file that comes with gcc, so configuring glibc | |
10633 | # with a fresh cross-compiler works. | |
10634 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10635 | # <limits.h> exists even on freestanding compilers. | |
10636 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10637 | # not just through cpp. "Syntax error" is here to catch this case. | |
10638 | cat >conftest.$ac_ext <<_ACEOF | |
10639 | #line $LINENO "configure" | |
10640 | /* confdefs.h. */ | |
10641 | _ACEOF | |
10642 | cat confdefs.h >>conftest.$ac_ext | |
10643 | cat >>conftest.$ac_ext <<_ACEOF | |
10644 | /* end confdefs.h. */ | |
10645 | #ifdef __STDC__ | |
10646 | # include <limits.h> | |
10647 | #else | |
10648 | # include <assert.h> | |
10649 | #endif | |
10650 | Syntax error | |
10651 | _ACEOF | |
10652 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10653 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10654 | ac_status=$? | |
10655 | grep -v '^ *+' conftest.er1 >conftest.err | |
10656 | rm -f conftest.er1 | |
10657 | cat conftest.err >&5 | |
10658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10659 | (exit $ac_status); } >/dev/null; then | |
10660 | if test -s conftest.err; then | |
10661 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10662 | else | |
10663 | ac_cpp_err= | |
10664 | fi | |
10665 | else | |
10666 | ac_cpp_err=yes | |
10667 | fi | |
10668 | if test -z "$ac_cpp_err"; then | |
10669 | : | |
10670 | else | |
10671 | echo "$as_me: failed program was:" >&5 | |
10672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10673 | ||
10674 | # Broken: fails on valid input. | |
10675 | continue | |
10676 | fi | |
10677 | rm -f conftest.err conftest.$ac_ext | |
10678 | ||
10679 | # OK, works on sane cases. Now check whether non-existent headers | |
10680 | # can be detected and how. | |
10681 | cat >conftest.$ac_ext <<_ACEOF | |
10682 | #line $LINENO "configure" | |
10683 | /* confdefs.h. */ | |
10684 | _ACEOF | |
10685 | cat confdefs.h >>conftest.$ac_ext | |
10686 | cat >>conftest.$ac_ext <<_ACEOF | |
10687 | /* end confdefs.h. */ | |
10688 | #include <ac_nonexistent.h> | |
10689 | _ACEOF | |
10690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10692 | ac_status=$? | |
10693 | grep -v '^ *+' conftest.er1 >conftest.err | |
10694 | rm -f conftest.er1 | |
10695 | cat conftest.err >&5 | |
10696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10697 | (exit $ac_status); } >/dev/null; then | |
10698 | if test -s conftest.err; then | |
10699 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10700 | else | |
10701 | ac_cpp_err= | |
10702 | fi | |
10703 | else | |
10704 | ac_cpp_err=yes | |
10705 | fi | |
10706 | if test -z "$ac_cpp_err"; then | |
10707 | # Broken: success on invalid input. | |
10708 | continue | |
10709 | else | |
10710 | echo "$as_me: failed program was:" >&5 | |
10711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10712 | ||
10713 | # Passes both tests. | |
10714 | ac_preproc_ok=: | |
10715 | break | |
10716 | fi | |
10717 | rm -f conftest.err conftest.$ac_ext | |
10718 | ||
10719 | done | |
10720 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10721 | rm -f conftest.err conftest.$ac_ext | |
10722 | if $ac_preproc_ok; then | |
10723 | : | |
10724 | else | |
10725 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10726 | See \`config.log' for more details." >&5 | |
10727 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10728 | See \`config.log' for more details." >&2;} | |
10729 | { (exit 1); exit 1; }; } | |
10730 | fi | |
10731 | ||
10732 | ac_ext=c | |
10733 | ac_cpp='$CPP $CPPFLAGS' | |
10734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10737 | ||
10738 | ||
10739 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10740 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10741 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10743 | else | |
10744 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
10745 | then ac_cv_prog_egrep='grep -E' | |
10746 | else ac_cv_prog_egrep='egrep' | |
10747 | fi | |
10748 | fi | |
10749 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
10750 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10751 | EGREP=$ac_cv_prog_egrep | |
10752 | ||
10753 | ||
10754 | if test $ac_cv_c_compiler_gnu = yes; then | |
10755 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10756 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10757 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10759 | else | |
10760 | ac_pattern="Autoconf.*'x'" | |
10761 | cat >conftest.$ac_ext <<_ACEOF | |
10762 | #line $LINENO "configure" | |
10763 | /* confdefs.h. */ | |
10764 | _ACEOF | |
10765 | cat confdefs.h >>conftest.$ac_ext | |
10766 | cat >>conftest.$ac_ext <<_ACEOF | |
10767 | /* end confdefs.h. */ | |
10768 | #include <sgtty.h> | |
10769 | Autoconf TIOCGETP | |
10770 | _ACEOF | |
10771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10772 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
10773 | ac_cv_prog_gcc_traditional=yes | |
10774 | else | |
10775 | ac_cv_prog_gcc_traditional=no | |
10776 | fi | |
10777 | rm -f conftest* | |
10778 | ||
10779 | ||
10780 | if test $ac_cv_prog_gcc_traditional = no; then | |
10781 | cat >conftest.$ac_ext <<_ACEOF | |
10782 | #line $LINENO "configure" | |
10783 | /* confdefs.h. */ | |
10784 | _ACEOF | |
10785 | cat confdefs.h >>conftest.$ac_ext | |
10786 | cat >>conftest.$ac_ext <<_ACEOF | |
10787 | /* end confdefs.h. */ | |
10788 | #include <termio.h> | |
10789 | Autoconf TCGETA | |
10790 | _ACEOF | |
10791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10792 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
10793 | ac_cv_prog_gcc_traditional=yes | |
10794 | fi | |
10795 | rm -f conftest* | |
10796 | ||
10797 | fi | |
10798 | fi | |
10799 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
10800 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10801 | if test $ac_cv_prog_gcc_traditional = yes; then | |
10802 | CC="$CC -traditional" | |
10803 | fi | |
10804 | fi | |
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ac_ext=cc | |
10810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10814 | ||
10815 | ||
10816 | CXXFLAGS=${CXXFLAGS:=} | |
10817 | ac_ext=cc | |
10818 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10822 | if test -n "$ac_tool_prefix"; then | |
10823 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10824 | do | |
10825 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10826 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10829 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10831 | else | |
10832 | if test -n "$CXX"; then | |
10833 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10834 | else | |
10835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10836 | for as_dir in $PATH | |
10837 | do | |
10838 | IFS=$as_save_IFS | |
10839 | test -z "$as_dir" && as_dir=. | |
10840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10842 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10844 | break 2 | |
10845 | fi | |
10846 | done | |
10847 | done | |
10848 | ||
10849 | fi | |
10850 | fi | |
10851 | CXX=$ac_cv_prog_CXX | |
10852 | if test -n "$CXX"; then | |
10853 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
10854 | echo "${ECHO_T}$CXX" >&6 | |
10855 | else | |
10856 | echo "$as_me:$LINENO: result: no" >&5 | |
10857 | echo "${ECHO_T}no" >&6 | |
10858 | fi | |
10859 | ||
10860 | test -n "$CXX" && break | |
10861 | done | |
10862 | fi | |
10863 | if test -z "$CXX"; then | |
10864 | ac_ct_CXX=$CXX | |
10865 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10866 | do | |
10867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10868 | set dummy $ac_prog; ac_word=$2 | |
10869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10871 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10873 | else | |
10874 | if test -n "$ac_ct_CXX"; then | |
10875 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10876 | else | |
10877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10878 | for as_dir in $PATH | |
10879 | do | |
10880 | IFS=$as_save_IFS | |
10881 | test -z "$as_dir" && as_dir=. | |
10882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10884 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10886 | break 2 | |
10887 | fi | |
10888 | done | |
10889 | done | |
10890 | ||
10891 | fi | |
10892 | fi | |
10893 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10894 | if test -n "$ac_ct_CXX"; then | |
10895 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10896 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
10897 | else | |
10898 | echo "$as_me:$LINENO: result: no" >&5 | |
10899 | echo "${ECHO_T}no" >&6 | |
10900 | fi | |
10901 | ||
10902 | test -n "$ac_ct_CXX" && break | |
10903 | done | |
10904 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10905 | ||
10906 | CXX=$ac_ct_CXX | |
10907 | fi | |
10908 | ||
10909 | ||
10910 | # Provide some information about the compiler. | |
10911 | echo "$as_me:$LINENO:" \ | |
10912 | "checking for C++ compiler version" >&5 | |
10913 | ac_compiler=`set X $ac_compile; echo $2` | |
10914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10915 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10916 | ac_status=$? | |
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10918 | (exit $ac_status); } | |
10919 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10920 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10921 | ac_status=$? | |
10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10923 | (exit $ac_status); } | |
10924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10925 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10926 | ac_status=$? | |
10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); } | |
10929 | ||
10930 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
10931 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
10932 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
10933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10934 | else | |
10935 | cat >conftest.$ac_ext <<_ACEOF | |
10936 | #line $LINENO "configure" | |
10937 | /* confdefs.h. */ | |
10938 | _ACEOF | |
10939 | cat confdefs.h >>conftest.$ac_ext | |
10940 | cat >>conftest.$ac_ext <<_ACEOF | |
10941 | /* end confdefs.h. */ | |
10942 | ||
10943 | int | |
10944 | main () | |
10945 | { | |
10946 | #ifndef __GNUC__ | |
10947 | choke me | |
10948 | #endif | |
10949 | ||
10950 | ; | |
10951 | return 0; | |
10952 | } | |
10953 | _ACEOF | |
10954 | rm -f conftest.$ac_objext | |
10955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10956 | (eval $ac_compile) 2>&5 | |
10957 | ac_status=$? | |
10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10959 | (exit $ac_status); } && | |
10960 | { ac_try='test -s conftest.$ac_objext' | |
10961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10962 | (eval $ac_try) 2>&5 | |
10963 | ac_status=$? | |
10964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10965 | (exit $ac_status); }; }; then | |
10966 | ac_compiler_gnu=yes | |
10967 | else | |
10968 | echo "$as_me: failed program was:" >&5 | |
10969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10970 | ||
10971 | ac_compiler_gnu=no | |
10972 | fi | |
10973 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10974 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10975 | ||
10976 | fi | |
10977 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10978 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
10979 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
10980 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10981 | ac_save_CXXFLAGS=$CXXFLAGS | |
10982 | CXXFLAGS="-g" | |
10983 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
10984 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
10985 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
10986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10987 | else | |
10988 | cat >conftest.$ac_ext <<_ACEOF | |
10989 | #line $LINENO "configure" | |
10990 | /* confdefs.h. */ | |
10991 | _ACEOF | |
10992 | cat confdefs.h >>conftest.$ac_ext | |
10993 | cat >>conftest.$ac_ext <<_ACEOF | |
10994 | /* end confdefs.h. */ | |
10995 | ||
10996 | int | |
10997 | main () | |
10998 | { | |
10999 | ||
11000 | ; | |
11001 | return 0; | |
11002 | } | |
11003 | _ACEOF | |
11004 | rm -f conftest.$ac_objext | |
11005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11006 | (eval $ac_compile) 2>&5 | |
11007 | ac_status=$? | |
11008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11009 | (exit $ac_status); } && | |
11010 | { ac_try='test -s conftest.$ac_objext' | |
11011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11012 | (eval $ac_try) 2>&5 | |
11013 | ac_status=$? | |
11014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11015 | (exit $ac_status); }; }; then | |
11016 | ac_cv_prog_cxx_g=yes | |
11017 | else | |
11018 | echo "$as_me: failed program was:" >&5 | |
11019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11020 | ||
11021 | ac_cv_prog_cxx_g=no | |
11022 | fi | |
11023 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11024 | fi | |
11025 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11026 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11027 | if test "$ac_test_CXXFLAGS" = set; then | |
11028 | CXXFLAGS=$ac_save_CXXFLAGS | |
11029 | elif test $ac_cv_prog_cxx_g = yes; then | |
11030 | if test "$GXX" = yes; then | |
11031 | CXXFLAGS="-g -O2" | |
11032 | else | |
11033 | CXXFLAGS="-g" | |
11034 | fi | |
11035 | else | |
11036 | if test "$GXX" = yes; then | |
11037 | CXXFLAGS="-O2" | |
11038 | else | |
11039 | CXXFLAGS= | |
11040 | fi | |
11041 | fi | |
11042 | for ac_declaration in \ | |
11043 | ''\ | |
11044 | '#include <stdlib.h>' \ | |
11045 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
11046 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11047 | 'extern "C" void exit (int) throw ();' \ | |
11048 | 'extern "C" void exit (int);' \ | |
11049 | 'void exit (int);' | |
11050 | do | |
11051 | cat >conftest.$ac_ext <<_ACEOF | |
11052 | #line $LINENO "configure" | |
11053 | /* confdefs.h. */ | |
11054 | _ACEOF | |
11055 | cat confdefs.h >>conftest.$ac_ext | |
11056 | cat >>conftest.$ac_ext <<_ACEOF | |
11057 | /* end confdefs.h. */ | |
11058 | #include <stdlib.h> | |
11059 | $ac_declaration | |
11060 | int | |
11061 | main () | |
11062 | { | |
11063 | exit (42); | |
11064 | ; | |
11065 | return 0; | |
11066 | } | |
11067 | _ACEOF | |
11068 | rm -f conftest.$ac_objext | |
11069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11070 | (eval $ac_compile) 2>&5 | |
11071 | ac_status=$? | |
11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11073 | (exit $ac_status); } && | |
11074 | { ac_try='test -s conftest.$ac_objext' | |
11075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11076 | (eval $ac_try) 2>&5 | |
11077 | ac_status=$? | |
11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11079 | (exit $ac_status); }; }; then | |
11080 | : | |
11081 | else | |
11082 | echo "$as_me: failed program was:" >&5 | |
11083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11084 | ||
11085 | continue | |
11086 | fi | |
11087 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11088 | cat >conftest.$ac_ext <<_ACEOF | |
11089 | #line $LINENO "configure" | |
11090 | /* confdefs.h. */ | |
11091 | _ACEOF | |
11092 | cat confdefs.h >>conftest.$ac_ext | |
11093 | cat >>conftest.$ac_ext <<_ACEOF | |
11094 | /* end confdefs.h. */ | |
11095 | $ac_declaration | |
11096 | int | |
11097 | main () | |
11098 | { | |
11099 | exit (42); | |
11100 | ; | |
11101 | return 0; | |
11102 | } | |
11103 | _ACEOF | |
11104 | rm -f conftest.$ac_objext | |
11105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11106 | (eval $ac_compile) 2>&5 | |
11107 | ac_status=$? | |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11109 | (exit $ac_status); } && | |
11110 | { ac_try='test -s conftest.$ac_objext' | |
11111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11112 | (eval $ac_try) 2>&5 | |
11113 | ac_status=$? | |
11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11115 | (exit $ac_status); }; }; then | |
11116 | break | |
11117 | else | |
11118 | echo "$as_me: failed program was:" >&5 | |
11119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11120 | ||
11121 | fi | |
11122 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11123 | done | |
11124 | rm -f conftest* | |
11125 | if test -n "$ac_declaration"; then | |
11126 | echo '#ifdef __cplusplus' >>confdefs.h | |
11127 | echo $ac_declaration >>confdefs.h | |
11128 | echo '#endif' >>confdefs.h | |
11129 | fi | |
11130 | ||
11131 | ac_ext=cc | |
11132 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11136 | ||
11137 | ||
11138 | ac_ext=c | |
11139 | ac_cpp='$CPP $CPPFLAGS' | |
11140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11143 | ||
11144 | ||
11145 | if test -n "$ac_tool_prefix"; then | |
11146 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11147 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11148 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11150 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11152 | else | |
11153 | if test -n "$RANLIB"; then | |
11154 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11155 | else | |
11156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11157 | for as_dir in $PATH | |
11158 | do | |
11159 | IFS=$as_save_IFS | |
11160 | test -z "$as_dir" && as_dir=. | |
11161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11163 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11165 | break 2 | |
11166 | fi | |
11167 | done | |
11168 | done | |
11169 | ||
11170 | fi | |
11171 | fi | |
11172 | RANLIB=$ac_cv_prog_RANLIB | |
11173 | if test -n "$RANLIB"; then | |
11174 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11175 | echo "${ECHO_T}$RANLIB" >&6 | |
11176 | else | |
11177 | echo "$as_me:$LINENO: result: no" >&5 | |
11178 | echo "${ECHO_T}no" >&6 | |
11179 | fi | |
11180 | ||
11181 | fi | |
11182 | if test -z "$ac_cv_prog_RANLIB"; then | |
11183 | ac_ct_RANLIB=$RANLIB | |
11184 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11185 | set dummy ranlib; ac_word=$2 | |
11186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11188 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11190 | else | |
11191 | if test -n "$ac_ct_RANLIB"; then | |
11192 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11193 | else | |
11194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11195 | for as_dir in $PATH | |
11196 | do | |
11197 | IFS=$as_save_IFS | |
11198 | test -z "$as_dir" && as_dir=. | |
11199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11201 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11203 | break 2 | |
11204 | fi | |
11205 | done | |
11206 | done | |
11207 | ||
11208 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11209 | fi | |
11210 | fi | |
11211 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11212 | if test -n "$ac_ct_RANLIB"; then | |
11213 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11214 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11215 | else | |
11216 | echo "$as_me:$LINENO: result: no" >&5 | |
11217 | echo "${ECHO_T}no" >&6 | |
11218 | fi | |
11219 | ||
11220 | RANLIB=$ac_ct_RANLIB | |
11221 | else | |
11222 | RANLIB="$ac_cv_prog_RANLIB" | |
11223 | fi | |
11224 | ||
11225 | ||
11226 | # Extract the first word of "ar", so it can be a program name with args. | |
11227 | set dummy ar; ac_word=$2 | |
11228 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11230 | if test "${ac_cv_prog_AR+set}" = set; then | |
11231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11232 | else | |
11233 | if test -n "$AR"; then | |
11234 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11235 | else | |
11236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11237 | for as_dir in $PATH | |
11238 | do | |
11239 | IFS=$as_save_IFS | |
11240 | test -z "$as_dir" && as_dir=. | |
11241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11242 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11243 | ac_cv_prog_AR="ar" | |
11244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11245 | break 2 | |
11246 | fi | |
11247 | done | |
11248 | done | |
11249 | ||
11250 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
11251 | fi | |
11252 | fi | |
11253 | AR=$ac_cv_prog_AR | |
11254 | if test -n "$AR"; then | |
11255 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11256 | echo "${ECHO_T}$AR" >&6 | |
11257 | else | |
11258 | echo "$as_me:$LINENO: result: no" >&5 | |
11259 | echo "${ECHO_T}no" >&6 | |
11260 | fi | |
11261 | ||
11262 | ||
11263 | # Find a good install program. We prefer a C program (faster), | |
11264 | # so one script is as good as another. But avoid the broken or | |
11265 | # incompatible versions: | |
11266 | # SysV /etc/install, /usr/sbin/install | |
11267 | # SunOS /usr/etc/install | |
11268 | # IRIX /sbin/install | |
11269 | # AIX /bin/install | |
11270 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11271 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11272 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11273 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11274 | # ./install, which can be erroneously created by make from ./install.sh. | |
11275 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11276 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11277 | if test -z "$INSTALL"; then | |
11278 | if test "${ac_cv_path_install+set}" = set; then | |
11279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11280 | else | |
11281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11282 | for as_dir in $PATH | |
11283 | do | |
11284 | IFS=$as_save_IFS | |
11285 | test -z "$as_dir" && as_dir=. | |
11286 | # Account for people who put trailing slashes in PATH elements. | |
11287 | case $as_dir/ in | |
11288 | ./ | .// | /cC/* | \ | |
11289 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11290 | /usr/ucb/* ) ;; | |
11291 | *) | |
11292 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11293 | # Don't use installbsd from OSF since it installs stuff as root | |
11294 | # by default. | |
11295 | for ac_prog in ginstall scoinst install; do | |
11296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11297 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11298 | if test $ac_prog = install && | |
11299 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11300 | # AIX install. It has an incompatible calling convention. | |
11301 | : | |
11302 | elif test $ac_prog = install && | |
11303 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11304 | # program-specific install script used by HP pwplus--don't use. | |
11305 | : | |
11306 | else | |
11307 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11308 | break 3 | |
11309 | fi | |
11310 | fi | |
11311 | done | |
11312 | done | |
11313 | ;; | |
11314 | esac | |
11315 | done | |
11316 | ||
11317 | ||
11318 | fi | |
11319 | if test "${ac_cv_path_install+set}" = set; then | |
11320 | INSTALL=$ac_cv_path_install | |
11321 | else | |
11322 | # As a last resort, use the slow shell script. We don't cache a | |
11323 | # path for INSTALL within a source directory, because that will | |
11324 | # break other packages using the cache if that directory is | |
11325 | # removed, or if the path is relative. | |
11326 | INSTALL=$ac_install_sh | |
11327 | fi | |
11328 | fi | |
11329 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11330 | echo "${ECHO_T}$INSTALL" >&6 | |
11331 | ||
11332 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11333 | # It thinks the first close brace ends the variable substitution. | |
11334 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11335 | ||
11336 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
11337 | ||
11338 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
11339 | ||
11340 | ||
11341 | case ${INSTALL} in | |
11342 | /* ) # Absolute | |
11343 | ;; | |
11344 | ?:* ) # Drive letter, considered as absolute. | |
11345 | ;; | |
11346 | *) | |
11347 | INSTALL=`pwd`/${INSTALL} ;; | |
11348 | esac | |
11349 | ||
11350 | case ${host} in | |
11351 | *-hp-hpux* ) | |
11352 | INSTALL_DIR="mkdir" | |
11353 | ;; | |
11354 | ||
11355 | *) INSTALL_DIR="$INSTALL -d" | |
11356 | ;; | |
11357 | esac | |
11358 | ||
11359 | ||
11360 | case "${host}" in | |
11361 | ||
11362 | powerpc-*-darwin* ) | |
11363 | INSTALL_PROGRAM="cp -fp" | |
11364 | INSTALL_DATA="cp -fp" | |
11365 | ;; | |
11366 | *) | |
11367 | ;; | |
11368 | esac | |
11369 | ||
11370 | # Extract the first word of "strip", so it can be a program name with args. | |
11371 | set dummy strip; ac_word=$2 | |
11372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11374 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11376 | else | |
11377 | if test -n "$STRIP"; then | |
11378 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11379 | else | |
11380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11381 | for as_dir in $PATH | |
11382 | do | |
11383 | IFS=$as_save_IFS | |
11384 | test -z "$as_dir" && as_dir=. | |
11385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11387 | ac_cv_prog_STRIP="strip" | |
11388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11389 | break 2 | |
11390 | fi | |
11391 | done | |
11392 | done | |
11393 | ||
11394 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
11395 | fi | |
11396 | fi | |
11397 | STRIP=$ac_cv_prog_STRIP | |
11398 | if test -n "$STRIP"; then | |
11399 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
11400 | echo "${ECHO_T}$STRIP" >&6 | |
11401 | else | |
11402 | echo "$as_me:$LINENO: result: no" >&5 | |
11403 | echo "${ECHO_T}no" >&6 | |
11404 | fi | |
11405 | ||
11406 | ||
11407 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
11408 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11409 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11411 | else | |
11412 | ||
11413 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
11414 | egrep -s GNU > /dev/null); then | |
11415 | wx_cv_prog_makeisgnu="yes" | |
11416 | else | |
11417 | wx_cv_prog_makeisgnu="no" | |
11418 | fi | |
11419 | ||
11420 | fi | |
11421 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
11422 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
11423 | ||
11424 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11425 | IF_GNU_MAKE="" | |
11426 | else | |
11427 | IF_GNU_MAKE="#" | |
11428 | fi | |
11429 | ||
11430 | ||
11431 | ||
11432 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
11433 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
11434 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11435 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11437 | else | |
11438 | ||
11439 | cat - << EOF > confMake | |
11440 | check : file | |
11441 | cp \$? \$@ | |
11442 | cp \$? final_file | |
11443 | EOF | |
11444 | ||
11445 | if test ! -d sub ; then | |
11446 | mkdir sub | |
11447 | fi | |
11448 | echo dummy > sub/file | |
11449 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
11450 | RESULT=$? | |
11451 | rm -f sub/file check final_file confMake | |
11452 | rmdir sub | |
11453 | if test "$RESULT" = 0; then | |
11454 | wx_cv_prog_makevpath="yes" | |
11455 | else | |
11456 | wx_cv_prog_makevpath="no" | |
11457 | fi | |
11458 | ||
11459 | fi | |
11460 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
11461 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
11462 | ||
11463 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
11464 | { { echo "$as_me:$LINENO: error: | |
11465 | You need a make-utility that is able to use the variable | |
11466 | VPATH correctly. | |
11467 | If your version of make does not support VPATH correctly, | |
11468 | please install GNU-make (possibly as gmake), and start | |
11469 | configure with the following command: | |
11470 | export MAKE=gmake; ./configure for sh-type shells | |
11471 | setenv MAKE gmake; ./configure for csh-type shells | |
11472 | Also please do remember to use gmake in this case every time | |
11473 | you are trying to compile. | |
11474 | " >&5 | |
11475 | echo "$as_me: error: | |
11476 | You need a make-utility that is able to use the variable | |
11477 | VPATH correctly. | |
11478 | If your version of make does not support VPATH correctly, | |
11479 | please install GNU-make (possibly as gmake), and start | |
11480 | configure with the following command: | |
11481 | export MAKE=gmake; ./configure for sh-type shells | |
11482 | setenv MAKE gmake; ./configure for csh-type shells | |
11483 | Also please do remember to use gmake in this case every time | |
11484 | you are trying to compile. | |
11485 | " >&2;} | |
11486 | { (exit 1); exit 1; }; } | |
11487 | fi fi | |
11488 | for ac_prog in 'bison -y' byacc | |
11489 | do | |
11490 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11491 | set dummy $ac_prog; ac_word=$2 | |
11492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11494 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11496 | else | |
11497 | if test -n "$YACC"; then | |
11498 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11499 | else | |
11500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11501 | for as_dir in $PATH | |
11502 | do | |
11503 | IFS=$as_save_IFS | |
11504 | test -z "$as_dir" && as_dir=. | |
11505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11507 | ac_cv_prog_YACC="$ac_prog" | |
11508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11509 | break 2 | |
11510 | fi | |
11511 | done | |
11512 | done | |
11513 | ||
11514 | fi | |
11515 | fi | |
11516 | YACC=$ac_cv_prog_YACC | |
11517 | if test -n "$YACC"; then | |
11518 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
11519 | echo "${ECHO_T}$YACC" >&6 | |
11520 | else | |
11521 | echo "$as_me:$LINENO: result: no" >&5 | |
11522 | echo "${ECHO_T}no" >&6 | |
11523 | fi | |
11524 | ||
11525 | test -n "$YACC" && break | |
11526 | done | |
11527 | test -n "$YACC" || YACC="yacc" | |
11528 | ||
11529 | ||
11530 | for ac_prog in flex lex | |
11531 | do | |
11532 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11533 | set dummy $ac_prog; ac_word=$2 | |
11534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11536 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11538 | else | |
11539 | if test -n "$LEX"; then | |
11540 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11541 | else | |
11542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11543 | for as_dir in $PATH | |
11544 | do | |
11545 | IFS=$as_save_IFS | |
11546 | test -z "$as_dir" && as_dir=. | |
11547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11549 | ac_cv_prog_LEX="$ac_prog" | |
11550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11551 | break 2 | |
11552 | fi | |
11553 | done | |
11554 | done | |
11555 | ||
11556 | fi | |
11557 | fi | |
11558 | LEX=$ac_cv_prog_LEX | |
11559 | if test -n "$LEX"; then | |
11560 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
11561 | echo "${ECHO_T}$LEX" >&6 | |
11562 | else | |
11563 | echo "$as_me:$LINENO: result: no" >&5 | |
11564 | echo "${ECHO_T}no" >&6 | |
11565 | fi | |
11566 | ||
11567 | test -n "$LEX" && break | |
11568 | done | |
11569 | test -n "$LEX" || LEX=":" | |
11570 | ||
11571 | if test -z "$LEXLIB" | |
11572 | then | |
11573 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
11574 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11575 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11577 | else | |
11578 | ac_check_lib_save_LIBS=$LIBS | |
11579 | LIBS="-lfl $LIBS" | |
11580 | cat >conftest.$ac_ext <<_ACEOF | |
11581 | #line $LINENO "configure" | |
11582 | /* confdefs.h. */ | |
11583 | _ACEOF | |
11584 | cat confdefs.h >>conftest.$ac_ext | |
11585 | cat >>conftest.$ac_ext <<_ACEOF | |
11586 | /* end confdefs.h. */ | |
11587 | ||
11588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11589 | #ifdef __cplusplus | |
11590 | extern "C" | |
11591 | #endif | |
11592 | /* We use char because int might match the return type of a gcc2 | |
11593 | builtin and then its argument prototype would still apply. */ | |
11594 | char yywrap (); | |
11595 | int | |
11596 | main () | |
11597 | { | |
11598 | yywrap (); | |
11599 | ; | |
11600 | return 0; | |
11601 | } | |
11602 | _ACEOF | |
11603 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11605 | (eval $ac_link) 2>&5 | |
11606 | ac_status=$? | |
11607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11608 | (exit $ac_status); } && | |
11609 | { ac_try='test -s conftest$ac_exeext' | |
11610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11611 | (eval $ac_try) 2>&5 | |
11612 | ac_status=$? | |
11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11614 | (exit $ac_status); }; }; then | |
11615 | ac_cv_lib_fl_yywrap=yes | |
11616 | else | |
11617 | echo "$as_me: failed program was:" >&5 | |
11618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11619 | ||
11620 | ac_cv_lib_fl_yywrap=no | |
11621 | fi | |
11622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11623 | LIBS=$ac_check_lib_save_LIBS | |
11624 | fi | |
11625 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11626 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11627 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11628 | LEXLIB="-lfl" | |
11629 | else | |
11630 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11631 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11632 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11634 | else | |
11635 | ac_check_lib_save_LIBS=$LIBS | |
11636 | LIBS="-ll $LIBS" | |
11637 | cat >conftest.$ac_ext <<_ACEOF | |
11638 | #line $LINENO "configure" | |
11639 | /* confdefs.h. */ | |
11640 | _ACEOF | |
11641 | cat confdefs.h >>conftest.$ac_ext | |
11642 | cat >>conftest.$ac_ext <<_ACEOF | |
11643 | /* end confdefs.h. */ | |
11644 | ||
11645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11646 | #ifdef __cplusplus | |
11647 | extern "C" | |
11648 | #endif | |
11649 | /* We use char because int might match the return type of a gcc2 | |
11650 | builtin and then its argument prototype would still apply. */ | |
11651 | char yywrap (); | |
11652 | int | |
11653 | main () | |
11654 | { | |
11655 | yywrap (); | |
11656 | ; | |
11657 | return 0; | |
11658 | } | |
11659 | _ACEOF | |
11660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11662 | (eval $ac_link) 2>&5 | |
11663 | ac_status=$? | |
11664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11665 | (exit $ac_status); } && | |
11666 | { ac_try='test -s conftest$ac_exeext' | |
11667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11668 | (eval $ac_try) 2>&5 | |
11669 | ac_status=$? | |
11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11671 | (exit $ac_status); }; }; then | |
11672 | ac_cv_lib_l_yywrap=yes | |
11673 | else | |
11674 | echo "$as_me: failed program was:" >&5 | |
11675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11676 | ||
11677 | ac_cv_lib_l_yywrap=no | |
11678 | fi | |
11679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11680 | LIBS=$ac_check_lib_save_LIBS | |
11681 | fi | |
11682 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11683 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11684 | if test $ac_cv_lib_l_yywrap = yes; then | |
11685 | LEXLIB="-ll" | |
11686 | fi | |
11687 | ||
11688 | fi | |
11689 | ||
11690 | fi | |
11691 | ||
11692 | if test "x$LEX" != "x:"; then | |
11693 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11694 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11695 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11697 | else | |
11698 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11699 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11700 | cat >conftest.l <<_ACEOF | |
11701 | %% | |
11702 | %% | |
11703 | _ACEOF | |
11704 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11705 | (eval $LEX conftest.l) 2>&5 | |
11706 | ac_status=$? | |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11708 | (exit $ac_status); } | |
11709 | if test -f lex.yy.c; then | |
11710 | ac_cv_prog_lex_root=lex.yy | |
11711 | elif test -f lexyy.c; then | |
11712 | ac_cv_prog_lex_root=lexyy | |
11713 | else | |
11714 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
11715 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11716 | { (exit 1); exit 1; }; } | |
11717 | fi | |
11718 | fi | |
11719 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
11720 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11721 | rm -f conftest.l | |
11722 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
11723 | ||
11724 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
11725 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11726 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11728 | else | |
11729 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
11730 | # default is implementation-dependent. Figure out which it is, since | |
11731 | # not all implementations provide the %pointer and %array declarations. | |
11732 | ac_cv_prog_lex_yytext_pointer=no | |
11733 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11734 | ac_save_LIBS=$LIBS | |
11735 | LIBS="$LIBS $LEXLIB" | |
11736 | cat >conftest.$ac_ext <<_ACEOF | |
11737 | `cat $LEX_OUTPUT_ROOT.c` | |
11738 | _ACEOF | |
11739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11741 | (eval $ac_link) 2>&5 | |
11742 | ac_status=$? | |
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); } && | |
11745 | { ac_try='test -s conftest$ac_exeext' | |
11746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11747 | (eval $ac_try) 2>&5 | |
11748 | ac_status=$? | |
11749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11750 | (exit $ac_status); }; }; then | |
11751 | ac_cv_prog_lex_yytext_pointer=yes | |
11752 | else | |
11753 | echo "$as_me: failed program was:" >&5 | |
11754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11755 | ||
11756 | fi | |
11757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11758 | LIBS=$ac_save_LIBS | |
11759 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11760 | ||
11761 | fi | |
11762 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11763 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11764 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11765 | ||
11766 | cat >>confdefs.h <<\_ACEOF | |
11767 | #define YYTEXT_POINTER 1 | |
11768 | _ACEOF | |
11769 | ||
11770 | fi | |
11771 | ||
11772 | fi | |
11773 | ||
11774 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11775 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11776 | LN_S=$as_ln_s | |
11777 | if test "$LN_S" = "ln -s"; then | |
11778 | echo "$as_me:$LINENO: result: yes" >&5 | |
11779 | echo "${ECHO_T}yes" >&6 | |
11780 | else | |
11781 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
11782 | echo "${ECHO_T}no, using $LN_S" >&6 | |
11783 | fi | |
11784 | ||
11785 | ||
11786 | case "${host}" in | |
11787 | *-pc-os2_emx | *-pc-os2-emx ) | |
11788 | LIBS="$LIBS -lstdcpp" | |
11789 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
11790 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
11791 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11792 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11794 | else | |
11795 | ac_check_lib_save_LIBS=$LIBS | |
11796 | LIBS="-lcExt $LIBS" | |
11797 | cat >conftest.$ac_ext <<_ACEOF | |
11798 | #line $LINENO "configure" | |
11799 | /* confdefs.h. */ | |
11800 | _ACEOF | |
11801 | cat confdefs.h >>conftest.$ac_ext | |
11802 | cat >>conftest.$ac_ext <<_ACEOF | |
11803 | /* end confdefs.h. */ | |
11804 | ||
11805 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11806 | #ifdef __cplusplus | |
11807 | extern "C" | |
11808 | #endif | |
11809 | /* We use char because int might match the return type of a gcc2 | |
11810 | builtin and then its argument prototype would still apply. */ | |
11811 | char drand48 (); | |
11812 | int | |
11813 | main () | |
11814 | { | |
11815 | drand48 (); | |
11816 | ; | |
11817 | return 0; | |
11818 | } | |
11819 | _ACEOF | |
11820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11822 | (eval $ac_link) 2>&5 | |
11823 | ac_status=$? | |
11824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11825 | (exit $ac_status); } && | |
11826 | { ac_try='test -s conftest$ac_exeext' | |
11827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11828 | (eval $ac_try) 2>&5 | |
11829 | ac_status=$? | |
11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11831 | (exit $ac_status); }; }; then | |
11832 | ac_cv_lib_cExt_drand48=yes | |
11833 | else | |
11834 | echo "$as_me: failed program was:" >&5 | |
11835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11836 | ||
11837 | ac_cv_lib_cExt_drand48=no | |
11838 | fi | |
11839 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11840 | LIBS=$ac_check_lib_save_LIBS | |
11841 | fi | |
11842 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11843 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11844 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
11845 | LIBS="$LIBS -lcExt" | |
11846 | fi | |
11847 | ||
11848 | else | |
11849 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11850 | fi | |
11851 | ;; | |
11852 | esac | |
11853 | ||
11854 | ||
11855 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
11856 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11857 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11858 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11860 | else | |
11861 | ac_cv_header_strings_h=no | |
11862 | fi | |
11863 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11864 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11865 | if test "$ac_cv_header_strings_h" = "no"; then | |
11866 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11867 | echo "${ECHO_T}forced no into cache" >&6 | |
11868 | else | |
11869 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11870 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11871 | fi | |
11872 | fi | |
11873 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
11874 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
11875 | if test "${ac_cv_header_stdc+set}" = set; then | |
11876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11877 | else | |
11878 | cat >conftest.$ac_ext <<_ACEOF | |
11879 | #line $LINENO "configure" | |
11880 | /* confdefs.h. */ | |
11881 | _ACEOF | |
11882 | cat confdefs.h >>conftest.$ac_ext | |
11883 | cat >>conftest.$ac_ext <<_ACEOF | |
11884 | /* end confdefs.h. */ | |
11885 | #include <stdlib.h> | |
11886 | #include <stdarg.h> | |
11887 | #include <string.h> | |
11888 | #include <float.h> | |
11889 | ||
11890 | int | |
11891 | main () | |
11892 | { | |
11893 | ||
11894 | ; | |
11895 | return 0; | |
11896 | } | |
11897 | _ACEOF | |
11898 | rm -f conftest.$ac_objext | |
11899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11900 | (eval $ac_compile) 2>&5 | |
11901 | ac_status=$? | |
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11903 | (exit $ac_status); } && | |
11904 | { ac_try='test -s conftest.$ac_objext' | |
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11906 | (eval $ac_try) 2>&5 | |
11907 | ac_status=$? | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); }; }; then | |
11910 | ac_cv_header_stdc=yes | |
11911 | else | |
11912 | echo "$as_me: failed program was:" >&5 | |
11913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11914 | ||
11915 | ac_cv_header_stdc=no | |
11916 | fi | |
11917 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11918 | ||
11919 | if test $ac_cv_header_stdc = yes; then | |
11920 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11921 | cat >conftest.$ac_ext <<_ACEOF | |
11922 | #line $LINENO "configure" | |
11923 | /* confdefs.h. */ | |
11924 | _ACEOF | |
11925 | cat confdefs.h >>conftest.$ac_ext | |
11926 | cat >>conftest.$ac_ext <<_ACEOF | |
11927 | /* end confdefs.h. */ | |
11928 | #include <string.h> | |
11929 | ||
11930 | _ACEOF | |
11931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11932 | $EGREP "memchr" >/dev/null 2>&1; then | |
11933 | : | |
11934 | else | |
11935 | ac_cv_header_stdc=no | |
11936 | fi | |
11937 | rm -f conftest* | |
11938 | ||
11939 | fi | |
11940 | ||
11941 | if test $ac_cv_header_stdc = yes; then | |
11942 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11943 | cat >conftest.$ac_ext <<_ACEOF | |
11944 | #line $LINENO "configure" | |
11945 | /* confdefs.h. */ | |
11946 | _ACEOF | |
11947 | cat confdefs.h >>conftest.$ac_ext | |
11948 | cat >>conftest.$ac_ext <<_ACEOF | |
11949 | /* end confdefs.h. */ | |
11950 | #include <stdlib.h> | |
11951 | ||
11952 | _ACEOF | |
11953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11954 | $EGREP "free" >/dev/null 2>&1; then | |
11955 | : | |
11956 | else | |
11957 | ac_cv_header_stdc=no | |
11958 | fi | |
11959 | rm -f conftest* | |
11960 | ||
11961 | fi | |
11962 | ||
11963 | if test $ac_cv_header_stdc = yes; then | |
11964 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11965 | if test "$cross_compiling" = yes; then | |
11966 | : | |
11967 | else | |
11968 | cat >conftest.$ac_ext <<_ACEOF | |
11969 | #line $LINENO "configure" | |
11970 | /* confdefs.h. */ | |
11971 | _ACEOF | |
11972 | cat confdefs.h >>conftest.$ac_ext | |
11973 | cat >>conftest.$ac_ext <<_ACEOF | |
11974 | /* end confdefs.h. */ | |
11975 | #include <ctype.h> | |
11976 | #if ((' ' & 0x0FF) == 0x020) | |
11977 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11978 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11979 | #else | |
11980 | # define ISLOWER(c) \ | |
11981 | (('a' <= (c) && (c) <= 'i') \ | |
11982 | || ('j' <= (c) && (c) <= 'r') \ | |
11983 | || ('s' <= (c) && (c) <= 'z')) | |
11984 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11985 | #endif | |
11986 | ||
11987 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11988 | int | |
11989 | main () | |
11990 | { | |
11991 | int i; | |
11992 | for (i = 0; i < 256; i++) | |
11993 | if (XOR (islower (i), ISLOWER (i)) | |
11994 | || toupper (i) != TOUPPER (i)) | |
11995 | exit(2); | |
11996 | exit (0); | |
11997 | } | |
11998 | _ACEOF | |
11999 | rm -f conftest$ac_exeext | |
12000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12001 | (eval $ac_link) 2>&5 | |
12002 | ac_status=$? | |
12003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12004 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12006 | (eval $ac_try) 2>&5 | |
12007 | ac_status=$? | |
12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12009 | (exit $ac_status); }; }; then | |
12010 | : | |
12011 | else | |
12012 | echo "$as_me: program exited with status $ac_status" >&5 | |
12013 | echo "$as_me: failed program was:" >&5 | |
12014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12015 | ||
12016 | ( exit $ac_status ) | |
12017 | ac_cv_header_stdc=no | |
12018 | fi | |
12019 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12020 | fi | |
12021 | fi | |
12022 | fi | |
12023 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12024 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12025 | if test $ac_cv_header_stdc = yes; then | |
12026 | ||
12027 | cat >>confdefs.h <<\_ACEOF | |
12028 | #define STDC_HEADERS 1 | |
12029 | _ACEOF | |
12030 | ||
12031 | fi | |
12032 | ||
12033 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | ||
12041 | ||
12042 | ||
12043 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12044 | inttypes.h stdint.h unistd.h | |
12045 | do | |
12046 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12051 | else | |
12052 | cat >conftest.$ac_ext <<_ACEOF | |
12053 | #line $LINENO "configure" | |
12054 | /* confdefs.h. */ | |
12055 | _ACEOF | |
12056 | cat confdefs.h >>conftest.$ac_ext | |
12057 | cat >>conftest.$ac_ext <<_ACEOF | |
12058 | /* end confdefs.h. */ | |
12059 | $ac_includes_default | |
12060 | ||
12061 | #include <$ac_header> | |
12062 | _ACEOF | |
12063 | rm -f conftest.$ac_objext | |
12064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12065 | (eval $ac_compile) 2>&5 | |
12066 | ac_status=$? | |
12067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12068 | (exit $ac_status); } && | |
12069 | { ac_try='test -s conftest.$ac_objext' | |
12070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12071 | (eval $ac_try) 2>&5 | |
12072 | ac_status=$? | |
12073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12074 | (exit $ac_status); }; }; then | |
12075 | eval "$as_ac_Header=yes" | |
12076 | else | |
12077 | echo "$as_me: failed program was:" >&5 | |
12078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12079 | ||
12080 | eval "$as_ac_Header=no" | |
12081 | fi | |
12082 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12083 | fi | |
12084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12087 | cat >>confdefs.h <<_ACEOF | |
12088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12089 | _ACEOF | |
12090 | ||
12091 | fi | |
12092 | ||
12093 | done | |
12094 | ||
12095 | ||
12096 | ||
12097 | for ac_header in strings.h | |
12098 | do | |
12099 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12105 | fi | |
12106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12107 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12108 | else | |
12109 | # Is the header compilable? | |
12110 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12111 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12112 | cat >conftest.$ac_ext <<_ACEOF | |
12113 | #line $LINENO "configure" | |
12114 | /* confdefs.h. */ | |
12115 | _ACEOF | |
12116 | cat confdefs.h >>conftest.$ac_ext | |
12117 | cat >>conftest.$ac_ext <<_ACEOF | |
12118 | /* end confdefs.h. */ | |
12119 | $ac_includes_default | |
12120 | #include <$ac_header> | |
12121 | _ACEOF | |
12122 | rm -f conftest.$ac_objext | |
12123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12124 | (eval $ac_compile) 2>&5 | |
12125 | ac_status=$? | |
12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12127 | (exit $ac_status); } && | |
12128 | { ac_try='test -s conftest.$ac_objext' | |
12129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12130 | (eval $ac_try) 2>&5 | |
12131 | ac_status=$? | |
12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12133 | (exit $ac_status); }; }; then | |
12134 | ac_header_compiler=yes | |
12135 | else | |
12136 | echo "$as_me: failed program was:" >&5 | |
12137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12138 | ||
12139 | ac_header_compiler=no | |
12140 | fi | |
12141 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12144 | ||
12145 | # Is the header present? | |
12146 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12148 | cat >conftest.$ac_ext <<_ACEOF | |
12149 | #line $LINENO "configure" | |
12150 | /* confdefs.h. */ | |
12151 | _ACEOF | |
12152 | cat confdefs.h >>conftest.$ac_ext | |
12153 | cat >>conftest.$ac_ext <<_ACEOF | |
12154 | /* end confdefs.h. */ | |
12155 | #include <$ac_header> | |
12156 | _ACEOF | |
12157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12159 | ac_status=$? | |
12160 | grep -v '^ *+' conftest.er1 >conftest.err | |
12161 | rm -f conftest.er1 | |
12162 | cat conftest.err >&5 | |
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); } >/dev/null; then | |
12165 | if test -s conftest.err; then | |
12166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12167 | else | |
12168 | ac_cpp_err= | |
12169 | fi | |
12170 | else | |
12171 | ac_cpp_err=yes | |
12172 | fi | |
12173 | if test -z "$ac_cpp_err"; then | |
12174 | ac_header_preproc=yes | |
12175 | else | |
12176 | echo "$as_me: failed program was:" >&5 | |
12177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12178 | ||
12179 | ac_header_preproc=no | |
12180 | fi | |
12181 | rm -f conftest.err conftest.$ac_ext | |
12182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12183 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12184 | ||
12185 | # So? What about this header? | |
12186 | case $ac_header_compiler:$ac_header_preproc in | |
12187 | yes:no ) | |
12188 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12189 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12192 | ( | |
12193 | cat <<\_ASBOX | |
12194 | ## ------------------------------------ ## | |
12195 | ## Report this to bug-autoconf@gnu.org. ## | |
12196 | ## ------------------------------------ ## | |
12197 | _ASBOX | |
12198 | ) | | |
12199 | sed "s/^/$as_me: WARNING: /" >&2 | |
12200 | ;; | |
12201 | no:yes ) | |
12202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12207 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12208 | ( | |
12209 | cat <<\_ASBOX | |
12210 | ## ------------------------------------ ## | |
12211 | ## Report this to bug-autoconf@gnu.org. ## | |
12212 | ## ------------------------------------ ## | |
12213 | _ASBOX | |
12214 | ) | | |
12215 | sed "s/^/$as_me: WARNING: /" >&2 | |
12216 | ;; | |
12217 | esac | |
12218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12222 | else | |
12223 | eval "$as_ac_Header=$ac_header_preproc" | |
12224 | fi | |
12225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12227 | ||
12228 | fi | |
12229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12230 | cat >>confdefs.h <<_ACEOF | |
12231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12232 | _ACEOF | |
12233 | ||
12234 | fi | |
12235 | ||
12236 | done | |
12237 | ||
12238 | ||
12239 | ||
12240 | for ac_header in stdlib.h | |
12241 | do | |
12242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12248 | fi | |
12249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12250 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12251 | else | |
12252 | # Is the header compilable? | |
12253 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12254 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12255 | cat >conftest.$ac_ext <<_ACEOF | |
12256 | #line $LINENO "configure" | |
12257 | /* confdefs.h. */ | |
12258 | _ACEOF | |
12259 | cat confdefs.h >>conftest.$ac_ext | |
12260 | cat >>conftest.$ac_ext <<_ACEOF | |
12261 | /* end confdefs.h. */ | |
12262 | $ac_includes_default | |
12263 | #include <$ac_header> | |
12264 | _ACEOF | |
12265 | rm -f conftest.$ac_objext | |
12266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12267 | (eval $ac_compile) 2>&5 | |
12268 | ac_status=$? | |
12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12270 | (exit $ac_status); } && | |
12271 | { ac_try='test -s conftest.$ac_objext' | |
12272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12273 | (eval $ac_try) 2>&5 | |
12274 | ac_status=$? | |
12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12276 | (exit $ac_status); }; }; then | |
12277 | ac_header_compiler=yes | |
12278 | else | |
12279 | echo "$as_me: failed program was:" >&5 | |
12280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12281 | ||
12282 | ac_header_compiler=no | |
12283 | fi | |
12284 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12286 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12287 | ||
12288 | # Is the header present? | |
12289 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12291 | cat >conftest.$ac_ext <<_ACEOF | |
12292 | #line $LINENO "configure" | |
12293 | /* confdefs.h. */ | |
12294 | _ACEOF | |
12295 | cat confdefs.h >>conftest.$ac_ext | |
12296 | cat >>conftest.$ac_ext <<_ACEOF | |
12297 | /* end confdefs.h. */ | |
12298 | #include <$ac_header> | |
12299 | _ACEOF | |
12300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12302 | ac_status=$? | |
12303 | grep -v '^ *+' conftest.er1 >conftest.err | |
12304 | rm -f conftest.er1 | |
12305 | cat conftest.err >&5 | |
12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12307 | (exit $ac_status); } >/dev/null; then | |
12308 | if test -s conftest.err; then | |
12309 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12310 | else | |
12311 | ac_cpp_err= | |
12312 | fi | |
12313 | else | |
12314 | ac_cpp_err=yes | |
12315 | fi | |
12316 | if test -z "$ac_cpp_err"; then | |
12317 | ac_header_preproc=yes | |
12318 | else | |
12319 | echo "$as_me: failed program was:" >&5 | |
12320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12321 | ||
12322 | ac_header_preproc=no | |
12323 | fi | |
12324 | rm -f conftest.err conftest.$ac_ext | |
12325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12326 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12327 | ||
12328 | # So? What about this header? | |
12329 | case $ac_header_compiler:$ac_header_preproc in | |
12330 | yes:no ) | |
12331 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12332 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12335 | ( | |
12336 | cat <<\_ASBOX | |
12337 | ## ------------------------------------ ## | |
12338 | ## Report this to bug-autoconf@gnu.org. ## | |
12339 | ## ------------------------------------ ## | |
12340 | _ASBOX | |
12341 | ) | | |
12342 | sed "s/^/$as_me: WARNING: /" >&2 | |
12343 | ;; | |
12344 | no:yes ) | |
12345 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12346 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12347 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12348 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12351 | ( | |
12352 | cat <<\_ASBOX | |
12353 | ## ------------------------------------ ## | |
12354 | ## Report this to bug-autoconf@gnu.org. ## | |
12355 | ## ------------------------------------ ## | |
12356 | _ASBOX | |
12357 | ) | | |
12358 | sed "s/^/$as_me: WARNING: /" >&2 | |
12359 | ;; | |
12360 | esac | |
12361 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12365 | else | |
12366 | eval "$as_ac_Header=$ac_header_preproc" | |
12367 | fi | |
12368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12370 | ||
12371 | fi | |
12372 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12373 | cat >>confdefs.h <<_ACEOF | |
12374 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12375 | _ACEOF | |
12376 | ||
12377 | fi | |
12378 | ||
12379 | done | |
12380 | ||
12381 | ||
12382 | for ac_header in malloc.h | |
12383 | do | |
12384 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12386 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12387 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12390 | fi | |
12391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12393 | else | |
12394 | # Is the header compilable? | |
12395 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12396 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12397 | cat >conftest.$ac_ext <<_ACEOF | |
12398 | #line $LINENO "configure" | |
12399 | /* confdefs.h. */ | |
12400 | _ACEOF | |
12401 | cat confdefs.h >>conftest.$ac_ext | |
12402 | cat >>conftest.$ac_ext <<_ACEOF | |
12403 | /* end confdefs.h. */ | |
12404 | $ac_includes_default | |
12405 | #include <$ac_header> | |
12406 | _ACEOF | |
12407 | rm -f conftest.$ac_objext | |
12408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12409 | (eval $ac_compile) 2>&5 | |
12410 | ac_status=$? | |
12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12412 | (exit $ac_status); } && | |
12413 | { ac_try='test -s conftest.$ac_objext' | |
12414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12415 | (eval $ac_try) 2>&5 | |
12416 | ac_status=$? | |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12418 | (exit $ac_status); }; }; then | |
12419 | ac_header_compiler=yes | |
12420 | else | |
12421 | echo "$as_me: failed program was:" >&5 | |
12422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12423 | ||
12424 | ac_header_compiler=no | |
12425 | fi | |
12426 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12427 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12428 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12429 | ||
12430 | # Is the header present? | |
12431 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12432 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12433 | cat >conftest.$ac_ext <<_ACEOF | |
12434 | #line $LINENO "configure" | |
12435 | /* confdefs.h. */ | |
12436 | _ACEOF | |
12437 | cat confdefs.h >>conftest.$ac_ext | |
12438 | cat >>conftest.$ac_ext <<_ACEOF | |
12439 | /* end confdefs.h. */ | |
12440 | #include <$ac_header> | |
12441 | _ACEOF | |
12442 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12444 | ac_status=$? | |
12445 | grep -v '^ *+' conftest.er1 >conftest.err | |
12446 | rm -f conftest.er1 | |
12447 | cat conftest.err >&5 | |
12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12449 | (exit $ac_status); } >/dev/null; then | |
12450 | if test -s conftest.err; then | |
12451 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12452 | else | |
12453 | ac_cpp_err= | |
12454 | fi | |
12455 | else | |
12456 | ac_cpp_err=yes | |
12457 | fi | |
12458 | if test -z "$ac_cpp_err"; then | |
12459 | ac_header_preproc=yes | |
12460 | else | |
12461 | echo "$as_me: failed program was:" >&5 | |
12462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12463 | ||
12464 | ac_header_preproc=no | |
12465 | fi | |
12466 | rm -f conftest.err conftest.$ac_ext | |
12467 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12468 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12469 | ||
12470 | # So? What about this header? | |
12471 | case $ac_header_compiler:$ac_header_preproc in | |
12472 | yes:no ) | |
12473 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12474 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12476 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12477 | ( | |
12478 | cat <<\_ASBOX | |
12479 | ## ------------------------------------ ## | |
12480 | ## Report this to bug-autoconf@gnu.org. ## | |
12481 | ## ------------------------------------ ## | |
12482 | _ASBOX | |
12483 | ) | | |
12484 | sed "s/^/$as_me: WARNING: /" >&2 | |
12485 | ;; | |
12486 | no:yes ) | |
12487 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12488 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12489 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12490 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12493 | ( | |
12494 | cat <<\_ASBOX | |
12495 | ## ------------------------------------ ## | |
12496 | ## Report this to bug-autoconf@gnu.org. ## | |
12497 | ## ------------------------------------ ## | |
12498 | _ASBOX | |
12499 | ) | | |
12500 | sed "s/^/$as_me: WARNING: /" >&2 | |
12501 | ;; | |
12502 | esac | |
12503 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12505 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12507 | else | |
12508 | eval "$as_ac_Header=$ac_header_preproc" | |
12509 | fi | |
12510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12512 | ||
12513 | fi | |
12514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12515 | cat >>confdefs.h <<_ACEOF | |
12516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12517 | _ACEOF | |
12518 | ||
12519 | fi | |
12520 | ||
12521 | done | |
12522 | ||
12523 | ||
12524 | for ac_header in unistd.h | |
12525 | do | |
12526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12532 | fi | |
12533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12535 | else | |
12536 | # Is the header compilable? | |
12537 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12539 | cat >conftest.$ac_ext <<_ACEOF | |
12540 | #line $LINENO "configure" | |
12541 | /* confdefs.h. */ | |
12542 | _ACEOF | |
12543 | cat confdefs.h >>conftest.$ac_ext | |
12544 | cat >>conftest.$ac_ext <<_ACEOF | |
12545 | /* end confdefs.h. */ | |
12546 | $ac_includes_default | |
12547 | #include <$ac_header> | |
12548 | _ACEOF | |
12549 | rm -f conftest.$ac_objext | |
12550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12551 | (eval $ac_compile) 2>&5 | |
12552 | ac_status=$? | |
12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12554 | (exit $ac_status); } && | |
12555 | { ac_try='test -s conftest.$ac_objext' | |
12556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12557 | (eval $ac_try) 2>&5 | |
12558 | ac_status=$? | |
12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12560 | (exit $ac_status); }; }; then | |
12561 | ac_header_compiler=yes | |
12562 | else | |
12563 | echo "$as_me: failed program was:" >&5 | |
12564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12565 | ||
12566 | ac_header_compiler=no | |
12567 | fi | |
12568 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12569 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12570 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12571 | ||
12572 | # Is the header present? | |
12573 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12574 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12575 | cat >conftest.$ac_ext <<_ACEOF | |
12576 | #line $LINENO "configure" | |
12577 | /* confdefs.h. */ | |
12578 | _ACEOF | |
12579 | cat confdefs.h >>conftest.$ac_ext | |
12580 | cat >>conftest.$ac_ext <<_ACEOF | |
12581 | /* end confdefs.h. */ | |
12582 | #include <$ac_header> | |
12583 | _ACEOF | |
12584 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12585 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12586 | ac_status=$? | |
12587 | grep -v '^ *+' conftest.er1 >conftest.err | |
12588 | rm -f conftest.er1 | |
12589 | cat conftest.err >&5 | |
12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12591 | (exit $ac_status); } >/dev/null; then | |
12592 | if test -s conftest.err; then | |
12593 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12594 | else | |
12595 | ac_cpp_err= | |
12596 | fi | |
12597 | else | |
12598 | ac_cpp_err=yes | |
12599 | fi | |
12600 | if test -z "$ac_cpp_err"; then | |
12601 | ac_header_preproc=yes | |
12602 | else | |
12603 | echo "$as_me: failed program was:" >&5 | |
12604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12605 | ||
12606 | ac_header_preproc=no | |
12607 | fi | |
12608 | rm -f conftest.err conftest.$ac_ext | |
12609 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12610 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12611 | ||
12612 | # So? What about this header? | |
12613 | case $ac_header_compiler:$ac_header_preproc in | |
12614 | yes:no ) | |
12615 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12616 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12618 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12619 | ( | |
12620 | cat <<\_ASBOX | |
12621 | ## ------------------------------------ ## | |
12622 | ## Report this to bug-autoconf@gnu.org. ## | |
12623 | ## ------------------------------------ ## | |
12624 | _ASBOX | |
12625 | ) | | |
12626 | sed "s/^/$as_me: WARNING: /" >&2 | |
12627 | ;; | |
12628 | no:yes ) | |
12629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12635 | ( | |
12636 | cat <<\_ASBOX | |
12637 | ## ------------------------------------ ## | |
12638 | ## Report this to bug-autoconf@gnu.org. ## | |
12639 | ## ------------------------------------ ## | |
12640 | _ASBOX | |
12641 | ) | | |
12642 | sed "s/^/$as_me: WARNING: /" >&2 | |
12643 | ;; | |
12644 | esac | |
12645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12649 | else | |
12650 | eval "$as_ac_Header=$ac_header_preproc" | |
12651 | fi | |
12652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12654 | ||
12655 | fi | |
12656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12657 | cat >>confdefs.h <<_ACEOF | |
12658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12659 | _ACEOF | |
12660 | ||
12661 | fi | |
12662 | ||
12663 | done | |
12664 | ||
12665 | ||
12666 | for ac_header in wchar.h | |
12667 | do | |
12668 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12670 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12674 | fi | |
12675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12677 | else | |
12678 | # Is the header compilable? | |
12679 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12680 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12681 | cat >conftest.$ac_ext <<_ACEOF | |
12682 | #line $LINENO "configure" | |
12683 | /* confdefs.h. */ | |
12684 | _ACEOF | |
12685 | cat confdefs.h >>conftest.$ac_ext | |
12686 | cat >>conftest.$ac_ext <<_ACEOF | |
12687 | /* end confdefs.h. */ | |
12688 | $ac_includes_default | |
12689 | #include <$ac_header> | |
12690 | _ACEOF | |
12691 | rm -f conftest.$ac_objext | |
12692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12693 | (eval $ac_compile) 2>&5 | |
12694 | ac_status=$? | |
12695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12696 | (exit $ac_status); } && | |
12697 | { ac_try='test -s conftest.$ac_objext' | |
12698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12699 | (eval $ac_try) 2>&5 | |
12700 | ac_status=$? | |
12701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12702 | (exit $ac_status); }; }; then | |
12703 | ac_header_compiler=yes | |
12704 | else | |
12705 | echo "$as_me: failed program was:" >&5 | |
12706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12707 | ||
12708 | ac_header_compiler=no | |
12709 | fi | |
12710 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12713 | ||
12714 | # Is the header present? | |
12715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12717 | cat >conftest.$ac_ext <<_ACEOF | |
12718 | #line $LINENO "configure" | |
12719 | /* confdefs.h. */ | |
12720 | _ACEOF | |
12721 | cat confdefs.h >>conftest.$ac_ext | |
12722 | cat >>conftest.$ac_ext <<_ACEOF | |
12723 | /* end confdefs.h. */ | |
12724 | #include <$ac_header> | |
12725 | _ACEOF | |
12726 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12727 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12728 | ac_status=$? | |
12729 | grep -v '^ *+' conftest.er1 >conftest.err | |
12730 | rm -f conftest.er1 | |
12731 | cat conftest.err >&5 | |
12732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12733 | (exit $ac_status); } >/dev/null; then | |
12734 | if test -s conftest.err; then | |
12735 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12736 | else | |
12737 | ac_cpp_err= | |
12738 | fi | |
12739 | else | |
12740 | ac_cpp_err=yes | |
12741 | fi | |
12742 | if test -z "$ac_cpp_err"; then | |
12743 | ac_header_preproc=yes | |
12744 | else | |
12745 | echo "$as_me: failed program was:" >&5 | |
12746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12747 | ||
12748 | ac_header_preproc=no | |
12749 | fi | |
12750 | rm -f conftest.err conftest.$ac_ext | |
12751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12753 | ||
12754 | # So? What about this header? | |
12755 | case $ac_header_compiler:$ac_header_preproc in | |
12756 | yes:no ) | |
12757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12760 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12761 | ( | |
12762 | cat <<\_ASBOX | |
12763 | ## ------------------------------------ ## | |
12764 | ## Report this to bug-autoconf@gnu.org. ## | |
12765 | ## ------------------------------------ ## | |
12766 | _ASBOX | |
12767 | ) | | |
12768 | sed "s/^/$as_me: WARNING: /" >&2 | |
12769 | ;; | |
12770 | no:yes ) | |
12771 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12772 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12773 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12774 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12776 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12777 | ( | |
12778 | cat <<\_ASBOX | |
12779 | ## ------------------------------------ ## | |
12780 | ## Report this to bug-autoconf@gnu.org. ## | |
12781 | ## ------------------------------------ ## | |
12782 | _ASBOX | |
12783 | ) | | |
12784 | sed "s/^/$as_me: WARNING: /" >&2 | |
12785 | ;; | |
12786 | esac | |
12787 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12791 | else | |
12792 | eval "$as_ac_Header=$ac_header_preproc" | |
12793 | fi | |
12794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12796 | ||
12797 | fi | |
12798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12799 | cat >>confdefs.h <<_ACEOF | |
12800 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12801 | _ACEOF | |
12802 | ||
12803 | fi | |
12804 | ||
12805 | done | |
12806 | ||
12807 | ||
12808 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12809 | ||
12810 | for ac_header in wcstr.h | |
12811 | do | |
12812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12818 | fi | |
12819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12821 | else | |
12822 | # Is the header compilable? | |
12823 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12824 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12825 | cat >conftest.$ac_ext <<_ACEOF | |
12826 | #line $LINENO "configure" | |
12827 | /* confdefs.h. */ | |
12828 | _ACEOF | |
12829 | cat confdefs.h >>conftest.$ac_ext | |
12830 | cat >>conftest.$ac_ext <<_ACEOF | |
12831 | /* end confdefs.h. */ | |
12832 | $ac_includes_default | |
12833 | #include <$ac_header> | |
12834 | _ACEOF | |
12835 | rm -f conftest.$ac_objext | |
12836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12837 | (eval $ac_compile) 2>&5 | |
12838 | ac_status=$? | |
12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12840 | (exit $ac_status); } && | |
12841 | { ac_try='test -s conftest.$ac_objext' | |
12842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12843 | (eval $ac_try) 2>&5 | |
12844 | ac_status=$? | |
12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12846 | (exit $ac_status); }; }; then | |
12847 | ac_header_compiler=yes | |
12848 | else | |
12849 | echo "$as_me: failed program was:" >&5 | |
12850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12851 | ||
12852 | ac_header_compiler=no | |
12853 | fi | |
12854 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12856 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12857 | ||
12858 | # Is the header present? | |
12859 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12861 | cat >conftest.$ac_ext <<_ACEOF | |
12862 | #line $LINENO "configure" | |
12863 | /* confdefs.h. */ | |
12864 | _ACEOF | |
12865 | cat confdefs.h >>conftest.$ac_ext | |
12866 | cat >>conftest.$ac_ext <<_ACEOF | |
12867 | /* end confdefs.h. */ | |
12868 | #include <$ac_header> | |
12869 | _ACEOF | |
12870 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12871 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12872 | ac_status=$? | |
12873 | grep -v '^ *+' conftest.er1 >conftest.err | |
12874 | rm -f conftest.er1 | |
12875 | cat conftest.err >&5 | |
12876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12877 | (exit $ac_status); } >/dev/null; then | |
12878 | if test -s conftest.err; then | |
12879 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12880 | else | |
12881 | ac_cpp_err= | |
12882 | fi | |
12883 | else | |
12884 | ac_cpp_err=yes | |
12885 | fi | |
12886 | if test -z "$ac_cpp_err"; then | |
12887 | ac_header_preproc=yes | |
12888 | else | |
12889 | echo "$as_me: failed program was:" >&5 | |
12890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12891 | ||
12892 | ac_header_preproc=no | |
12893 | fi | |
12894 | rm -f conftest.err conftest.$ac_ext | |
12895 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12896 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12897 | ||
12898 | # So? What about this header? | |
12899 | case $ac_header_compiler:$ac_header_preproc in | |
12900 | yes:no ) | |
12901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12905 | ( | |
12906 | cat <<\_ASBOX | |
12907 | ## ------------------------------------ ## | |
12908 | ## Report this to bug-autoconf@gnu.org. ## | |
12909 | ## ------------------------------------ ## | |
12910 | _ASBOX | |
12911 | ) | | |
12912 | sed "s/^/$as_me: WARNING: /" >&2 | |
12913 | ;; | |
12914 | no:yes ) | |
12915 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12916 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12918 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12921 | ( | |
12922 | cat <<\_ASBOX | |
12923 | ## ------------------------------------ ## | |
12924 | ## Report this to bug-autoconf@gnu.org. ## | |
12925 | ## ------------------------------------ ## | |
12926 | _ASBOX | |
12927 | ) | | |
12928 | sed "s/^/$as_me: WARNING: /" >&2 | |
12929 | ;; | |
12930 | esac | |
12931 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12935 | else | |
12936 | eval "$as_ac_Header=$ac_header_preproc" | |
12937 | fi | |
12938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12939 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12940 | ||
12941 | fi | |
12942 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12943 | cat >>confdefs.h <<_ACEOF | |
12944 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12945 | _ACEOF | |
12946 | ||
12947 | fi | |
12948 | ||
12949 | done | |
12950 | ||
12951 | fi | |
12952 | ||
12953 | ||
12954 | for ac_header in fnmatch.h | |
12955 | do | |
12956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12962 | fi | |
12963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12965 | else | |
12966 | # Is the header compilable? | |
12967 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12969 | cat >conftest.$ac_ext <<_ACEOF | |
12970 | #line $LINENO "configure" | |
12971 | /* confdefs.h. */ | |
12972 | _ACEOF | |
12973 | cat confdefs.h >>conftest.$ac_ext | |
12974 | cat >>conftest.$ac_ext <<_ACEOF | |
12975 | /* end confdefs.h. */ | |
12976 | $ac_includes_default | |
12977 | #include <$ac_header> | |
12978 | _ACEOF | |
12979 | rm -f conftest.$ac_objext | |
12980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12981 | (eval $ac_compile) 2>&5 | |
12982 | ac_status=$? | |
12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12984 | (exit $ac_status); } && | |
12985 | { ac_try='test -s conftest.$ac_objext' | |
12986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12987 | (eval $ac_try) 2>&5 | |
12988 | ac_status=$? | |
12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 | (exit $ac_status); }; }; then | |
12991 | ac_header_compiler=yes | |
12992 | else | |
12993 | echo "$as_me: failed program was:" >&5 | |
12994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12995 | ||
12996 | ac_header_compiler=no | |
12997 | fi | |
12998 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12999 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13000 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13001 | ||
13002 | # Is the header present? | |
13003 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13004 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13005 | cat >conftest.$ac_ext <<_ACEOF | |
13006 | #line $LINENO "configure" | |
13007 | /* confdefs.h. */ | |
13008 | _ACEOF | |
13009 | cat confdefs.h >>conftest.$ac_ext | |
13010 | cat >>conftest.$ac_ext <<_ACEOF | |
13011 | /* end confdefs.h. */ | |
13012 | #include <$ac_header> | |
13013 | _ACEOF | |
13014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13016 | ac_status=$? | |
13017 | grep -v '^ *+' conftest.er1 >conftest.err | |
13018 | rm -f conftest.er1 | |
13019 | cat conftest.err >&5 | |
13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13021 | (exit $ac_status); } >/dev/null; then | |
13022 | if test -s conftest.err; then | |
13023 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13024 | else | |
13025 | ac_cpp_err= | |
13026 | fi | |
13027 | else | |
13028 | ac_cpp_err=yes | |
13029 | fi | |
13030 | if test -z "$ac_cpp_err"; then | |
13031 | ac_header_preproc=yes | |
13032 | else | |
13033 | echo "$as_me: failed program was:" >&5 | |
13034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13035 | ||
13036 | ac_header_preproc=no | |
13037 | fi | |
13038 | rm -f conftest.err conftest.$ac_ext | |
13039 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13040 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13041 | ||
13042 | # So? What about this header? | |
13043 | case $ac_header_compiler:$ac_header_preproc in | |
13044 | yes:no ) | |
13045 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13046 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13049 | ( | |
13050 | cat <<\_ASBOX | |
13051 | ## ------------------------------------ ## | |
13052 | ## Report this to bug-autoconf@gnu.org. ## | |
13053 | ## ------------------------------------ ## | |
13054 | _ASBOX | |
13055 | ) | | |
13056 | sed "s/^/$as_me: WARNING: /" >&2 | |
13057 | ;; | |
13058 | no:yes ) | |
13059 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13060 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13061 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13062 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13065 | ( | |
13066 | cat <<\_ASBOX | |
13067 | ## ------------------------------------ ## | |
13068 | ## Report this to bug-autoconf@gnu.org. ## | |
13069 | ## ------------------------------------ ## | |
13070 | _ASBOX | |
13071 | ) | | |
13072 | sed "s/^/$as_me: WARNING: /" >&2 | |
13073 | ;; | |
13074 | esac | |
13075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13079 | else | |
13080 | eval "$as_ac_Header=$ac_header_preproc" | |
13081 | fi | |
13082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13084 | ||
13085 | fi | |
13086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13087 | cat >>confdefs.h <<_ACEOF | |
13088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13089 | _ACEOF | |
13090 | ||
13091 | fi | |
13092 | ||
13093 | done | |
13094 | ||
13095 | ||
13096 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13097 | ||
13098 | for ac_func in fnmatch | |
13099 | do | |
13100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13101 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13103 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13105 | else | |
13106 | cat >conftest.$ac_ext <<_ACEOF | |
13107 | #line $LINENO "configure" | |
13108 | /* confdefs.h. */ | |
13109 | _ACEOF | |
13110 | cat confdefs.h >>conftest.$ac_ext | |
13111 | cat >>conftest.$ac_ext <<_ACEOF | |
13112 | /* end confdefs.h. */ | |
13113 | /* System header to define __stub macros and hopefully few prototypes, | |
13114 | which can conflict with char $ac_func (); below. | |
13115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13116 | <limits.h> exists even on freestanding compilers. */ | |
13117 | #ifdef __STDC__ | |
13118 | # include <limits.h> | |
13119 | #else | |
13120 | # include <assert.h> | |
13121 | #endif | |
13122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13123 | #ifdef __cplusplus | |
13124 | extern "C" | |
13125 | { | |
13126 | #endif | |
13127 | /* We use char because int might match the return type of a gcc2 | |
13128 | builtin and then its argument prototype would still apply. */ | |
13129 | char $ac_func (); | |
13130 | /* The GNU C library defines this for functions which it implements | |
13131 | to always fail with ENOSYS. Some functions are actually named | |
13132 | something starting with __ and the normal name is an alias. */ | |
13133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13134 | choke me | |
13135 | #else | |
13136 | char (*f) () = $ac_func; | |
13137 | #endif | |
13138 | #ifdef __cplusplus | |
13139 | } | |
13140 | #endif | |
13141 | ||
13142 | int | |
13143 | main () | |
13144 | { | |
13145 | return f != $ac_func; | |
13146 | ; | |
13147 | return 0; | |
13148 | } | |
13149 | _ACEOF | |
13150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13152 | (eval $ac_link) 2>&5 | |
13153 | ac_status=$? | |
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); } && | |
13156 | { ac_try='test -s conftest$ac_exeext' | |
13157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13158 | (eval $ac_try) 2>&5 | |
13159 | ac_status=$? | |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13161 | (exit $ac_status); }; }; then | |
13162 | eval "$as_ac_var=yes" | |
13163 | else | |
13164 | echo "$as_me: failed program was:" >&5 | |
13165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13166 | ||
13167 | eval "$as_ac_var=no" | |
13168 | fi | |
13169 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13170 | fi | |
13171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13172 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13173 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13174 | cat >>confdefs.h <<_ACEOF | |
13175 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13176 | _ACEOF | |
13177 | ||
13178 | fi | |
13179 | done | |
13180 | ||
13181 | fi | |
13182 | ||
13183 | ||
13184 | for ac_header in langinfo.h | |
13185 | do | |
13186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13192 | fi | |
13193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13195 | else | |
13196 | # Is the header compilable? | |
13197 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13198 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13199 | cat >conftest.$ac_ext <<_ACEOF | |
13200 | #line $LINENO "configure" | |
13201 | /* confdefs.h. */ | |
13202 | _ACEOF | |
13203 | cat confdefs.h >>conftest.$ac_ext | |
13204 | cat >>conftest.$ac_ext <<_ACEOF | |
13205 | /* end confdefs.h. */ | |
13206 | $ac_includes_default | |
13207 | #include <$ac_header> | |
13208 | _ACEOF | |
13209 | rm -f conftest.$ac_objext | |
13210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13211 | (eval $ac_compile) 2>&5 | |
13212 | ac_status=$? | |
13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13214 | (exit $ac_status); } && | |
13215 | { ac_try='test -s conftest.$ac_objext' | |
13216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13217 | (eval $ac_try) 2>&5 | |
13218 | ac_status=$? | |
13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13220 | (exit $ac_status); }; }; then | |
13221 | ac_header_compiler=yes | |
13222 | else | |
13223 | echo "$as_me: failed program was:" >&5 | |
13224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13225 | ||
13226 | ac_header_compiler=no | |
13227 | fi | |
13228 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13229 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13230 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13231 | ||
13232 | # Is the header present? | |
13233 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13234 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13235 | cat >conftest.$ac_ext <<_ACEOF | |
13236 | #line $LINENO "configure" | |
13237 | /* confdefs.h. */ | |
13238 | _ACEOF | |
13239 | cat confdefs.h >>conftest.$ac_ext | |
13240 | cat >>conftest.$ac_ext <<_ACEOF | |
13241 | /* end confdefs.h. */ | |
13242 | #include <$ac_header> | |
13243 | _ACEOF | |
13244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13246 | ac_status=$? | |
13247 | grep -v '^ *+' conftest.er1 >conftest.err | |
13248 | rm -f conftest.er1 | |
13249 | cat conftest.err >&5 | |
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); } >/dev/null; then | |
13252 | if test -s conftest.err; then | |
13253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13254 | else | |
13255 | ac_cpp_err= | |
13256 | fi | |
13257 | else | |
13258 | ac_cpp_err=yes | |
13259 | fi | |
13260 | if test -z "$ac_cpp_err"; then | |
13261 | ac_header_preproc=yes | |
13262 | else | |
13263 | echo "$as_me: failed program was:" >&5 | |
13264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13265 | ||
13266 | ac_header_preproc=no | |
13267 | fi | |
13268 | rm -f conftest.err conftest.$ac_ext | |
13269 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13270 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13271 | ||
13272 | # So? What about this header? | |
13273 | case $ac_header_compiler:$ac_header_preproc in | |
13274 | yes:no ) | |
13275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13278 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13279 | ( | |
13280 | cat <<\_ASBOX | |
13281 | ## ------------------------------------ ## | |
13282 | ## Report this to bug-autoconf@gnu.org. ## | |
13283 | ## ------------------------------------ ## | |
13284 | _ASBOX | |
13285 | ) | | |
13286 | sed "s/^/$as_me: WARNING: /" >&2 | |
13287 | ;; | |
13288 | no:yes ) | |
13289 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13290 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13291 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13292 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13294 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13295 | ( | |
13296 | cat <<\_ASBOX | |
13297 | ## ------------------------------------ ## | |
13298 | ## Report this to bug-autoconf@gnu.org. ## | |
13299 | ## ------------------------------------ ## | |
13300 | _ASBOX | |
13301 | ) | | |
13302 | sed "s/^/$as_me: WARNING: /" >&2 | |
13303 | ;; | |
13304 | esac | |
13305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13309 | else | |
13310 | eval "$as_ac_Header=$ac_header_preproc" | |
13311 | fi | |
13312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13314 | ||
13315 | fi | |
13316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13317 | cat >>confdefs.h <<_ACEOF | |
13318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13319 | _ACEOF | |
13320 | ||
13321 | fi | |
13322 | ||
13323 | done | |
13324 | ||
13325 | ||
13326 | case "${host}" in | |
13327 | *-pc-os2_emx | *-pc-os2-emx ) | |
13328 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13329 | LIBS="$LIBS -lintl" | |
13330 | fi | |
13331 | ;; | |
13332 | esac | |
13333 | ||
13334 | if test "$wxUSE_GUI" = "yes"; then | |
13335 | if test "$wxUSE_UNIX" = "yes"; then | |
13336 | ||
13337 | for ac_header in X11/XKBlib.h | |
13338 | do | |
13339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13341 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13345 | fi | |
13346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13348 | else | |
13349 | # Is the header compilable? | |
13350 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13351 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13352 | cat >conftest.$ac_ext <<_ACEOF | |
13353 | #line $LINENO "configure" | |
13354 | /* confdefs.h. */ | |
13355 | _ACEOF | |
13356 | cat confdefs.h >>conftest.$ac_ext | |
13357 | cat >>conftest.$ac_ext <<_ACEOF | |
13358 | /* end confdefs.h. */ | |
13359 | $ac_includes_default | |
13360 | #include <$ac_header> | |
13361 | _ACEOF | |
13362 | rm -f conftest.$ac_objext | |
13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13364 | (eval $ac_compile) 2>&5 | |
13365 | ac_status=$? | |
13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13367 | (exit $ac_status); } && | |
13368 | { ac_try='test -s conftest.$ac_objext' | |
13369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13370 | (eval $ac_try) 2>&5 | |
13371 | ac_status=$? | |
13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13373 | (exit $ac_status); }; }; then | |
13374 | ac_header_compiler=yes | |
13375 | else | |
13376 | echo "$as_me: failed program was:" >&5 | |
13377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13378 | ||
13379 | ac_header_compiler=no | |
13380 | fi | |
13381 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13382 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13383 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13384 | ||
13385 | # Is the header present? | |
13386 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13387 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13388 | cat >conftest.$ac_ext <<_ACEOF | |
13389 | #line $LINENO "configure" | |
13390 | /* confdefs.h. */ | |
13391 | _ACEOF | |
13392 | cat confdefs.h >>conftest.$ac_ext | |
13393 | cat >>conftest.$ac_ext <<_ACEOF | |
13394 | /* end confdefs.h. */ | |
13395 | #include <$ac_header> | |
13396 | _ACEOF | |
13397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13399 | ac_status=$? | |
13400 | grep -v '^ *+' conftest.er1 >conftest.err | |
13401 | rm -f conftest.er1 | |
13402 | cat conftest.err >&5 | |
13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13404 | (exit $ac_status); } >/dev/null; then | |
13405 | if test -s conftest.err; then | |
13406 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13407 | else | |
13408 | ac_cpp_err= | |
13409 | fi | |
13410 | else | |
13411 | ac_cpp_err=yes | |
13412 | fi | |
13413 | if test -z "$ac_cpp_err"; then | |
13414 | ac_header_preproc=yes | |
13415 | else | |
13416 | echo "$as_me: failed program was:" >&5 | |
13417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13418 | ||
13419 | ac_header_preproc=no | |
13420 | fi | |
13421 | rm -f conftest.err conftest.$ac_ext | |
13422 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13423 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13424 | ||
13425 | # So? What about this header? | |
13426 | case $ac_header_compiler:$ac_header_preproc in | |
13427 | yes:no ) | |
13428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13431 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13432 | ( | |
13433 | cat <<\_ASBOX | |
13434 | ## ------------------------------------ ## | |
13435 | ## Report this to bug-autoconf@gnu.org. ## | |
13436 | ## ------------------------------------ ## | |
13437 | _ASBOX | |
13438 | ) | | |
13439 | sed "s/^/$as_me: WARNING: /" >&2 | |
13440 | ;; | |
13441 | no:yes ) | |
13442 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13443 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13444 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13445 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13446 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13447 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13448 | ( | |
13449 | cat <<\_ASBOX | |
13450 | ## ------------------------------------ ## | |
13451 | ## Report this to bug-autoconf@gnu.org. ## | |
13452 | ## ------------------------------------ ## | |
13453 | _ASBOX | |
13454 | ) | | |
13455 | sed "s/^/$as_me: WARNING: /" >&2 | |
13456 | ;; | |
13457 | esac | |
13458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13462 | else | |
13463 | eval "$as_ac_Header=$ac_header_preproc" | |
13464 | fi | |
13465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13467 | ||
13468 | fi | |
13469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13470 | cat >>confdefs.h <<_ACEOF | |
13471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13472 | _ACEOF | |
13473 | ||
13474 | fi | |
13475 | ||
13476 | done | |
13477 | ||
13478 | fi | |
13479 | fi | |
13480 | ||
13481 | ||
13482 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
13483 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13484 | if test "${ac_cv_c_const+set}" = set; then | |
13485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13486 | else | |
13487 | cat >conftest.$ac_ext <<_ACEOF | |
13488 | #line $LINENO "configure" | |
13489 | /* confdefs.h. */ | |
13490 | _ACEOF | |
13491 | cat confdefs.h >>conftest.$ac_ext | |
13492 | cat >>conftest.$ac_ext <<_ACEOF | |
13493 | /* end confdefs.h. */ | |
13494 | ||
13495 | int | |
13496 | main () | |
13497 | { | |
13498 | /* FIXME: Include the comments suggested by Paul. */ | |
13499 | #ifndef __cplusplus | |
13500 | /* Ultrix mips cc rejects this. */ | |
13501 | typedef int charset[2]; | |
13502 | const charset x; | |
13503 | /* SunOS 4.1.1 cc rejects this. */ | |
13504 | char const *const *ccp; | |
13505 | char **p; | |
13506 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13507 | struct point {int x, y;}; | |
13508 | static struct point const zero = {0,0}; | |
13509 | /* AIX XL C 1.02.0.0 rejects this. | |
13510 | It does not let you subtract one const X* pointer from another in | |
13511 | an arm of an if-expression whose if-part is not a constant | |
13512 | expression */ | |
13513 | const char *g = "string"; | |
13514 | ccp = &g + (g ? g-g : 0); | |
13515 | /* HPUX 7.0 cc rejects these. */ | |
13516 | ++ccp; | |
13517 | p = (char**) ccp; | |
13518 | ccp = (char const *const *) p; | |
13519 | { /* SCO 3.2v4 cc rejects this. */ | |
13520 | char *t; | |
13521 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13522 | ||
13523 | *t++ = 0; | |
13524 | } | |
13525 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13526 | int x[] = {25, 17}; | |
13527 | const int *foo = &x[0]; | |
13528 | ++foo; | |
13529 | } | |
13530 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13531 | typedef const int *iptr; | |
13532 | iptr p = 0; | |
13533 | ++p; | |
13534 | } | |
13535 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13536 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13537 | struct s { int j; const int *ap[3]; }; | |
13538 | struct s *b; b->j = 5; | |
13539 | } | |
13540 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13541 | const int foo = 10; | |
13542 | } | |
13543 | #endif | |
13544 | ||
13545 | ; | |
13546 | return 0; | |
13547 | } | |
13548 | _ACEOF | |
13549 | rm -f conftest.$ac_objext | |
13550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13551 | (eval $ac_compile) 2>&5 | |
13552 | ac_status=$? | |
13553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13554 | (exit $ac_status); } && | |
13555 | { ac_try='test -s conftest.$ac_objext' | |
13556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13557 | (eval $ac_try) 2>&5 | |
13558 | ac_status=$? | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); }; }; then | |
13561 | ac_cv_c_const=yes | |
13562 | else | |
13563 | echo "$as_me: failed program was:" >&5 | |
13564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13565 | ||
13566 | ac_cv_c_const=no | |
13567 | fi | |
13568 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13569 | fi | |
13570 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
13571 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
13572 | if test $ac_cv_c_const = no; then | |
13573 | ||
13574 | cat >>confdefs.h <<\_ACEOF | |
13575 | #define const | |
13576 | _ACEOF | |
13577 | ||
13578 | fi | |
13579 | ||
13580 | echo "$as_me:$LINENO: checking for inline" >&5 | |
13581 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13582 | if test "${ac_cv_c_inline+set}" = set; then | |
13583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13584 | else | |
13585 | ac_cv_c_inline=no | |
13586 | for ac_kw in inline __inline__ __inline; do | |
13587 | cat >conftest.$ac_ext <<_ACEOF | |
13588 | #line $LINENO "configure" | |
13589 | /* confdefs.h. */ | |
13590 | _ACEOF | |
13591 | cat confdefs.h >>conftest.$ac_ext | |
13592 | cat >>conftest.$ac_ext <<_ACEOF | |
13593 | /* end confdefs.h. */ | |
13594 | #ifndef __cplusplus | |
13595 | typedef int foo_t; | |
13596 | static $ac_kw foo_t static_foo () {return 0; } | |
13597 | $ac_kw foo_t foo () {return 0; } | |
13598 | #endif | |
13599 | ||
13600 | _ACEOF | |
13601 | rm -f conftest.$ac_objext | |
13602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13603 | (eval $ac_compile) 2>&5 | |
13604 | ac_status=$? | |
13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13606 | (exit $ac_status); } && | |
13607 | { ac_try='test -s conftest.$ac_objext' | |
13608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13609 | (eval $ac_try) 2>&5 | |
13610 | ac_status=$? | |
13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13612 | (exit $ac_status); }; }; then | |
13613 | ac_cv_c_inline=$ac_kw; break | |
13614 | else | |
13615 | echo "$as_me: failed program was:" >&5 | |
13616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13617 | ||
13618 | fi | |
13619 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13620 | done | |
13621 | ||
13622 | fi | |
13623 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
13624 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13625 | case $ac_cv_c_inline in | |
13626 | inline | yes) ;; | |
13627 | no) | |
13628 | cat >>confdefs.h <<\_ACEOF | |
13629 | #define inline | |
13630 | _ACEOF | |
13631 | ;; | |
13632 | *) cat >>confdefs.h <<_ACEOF | |
13633 | #define inline $ac_cv_c_inline | |
13634 | _ACEOF | |
13635 | ;; | |
13636 | esac | |
13637 | ||
13638 | ||
13639 | echo "$as_me:$LINENO: checking for char" >&5 | |
13640 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13641 | if test "${ac_cv_type_char+set}" = set; then | |
13642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13643 | else | |
13644 | cat >conftest.$ac_ext <<_ACEOF | |
13645 | #line $LINENO "configure" | |
13646 | /* confdefs.h. */ | |
13647 | _ACEOF | |
13648 | cat confdefs.h >>conftest.$ac_ext | |
13649 | cat >>conftest.$ac_ext <<_ACEOF | |
13650 | /* end confdefs.h. */ | |
13651 | $ac_includes_default | |
13652 | int | |
13653 | main () | |
13654 | { | |
13655 | if ((char *) 0) | |
13656 | return 0; | |
13657 | if (sizeof (char)) | |
13658 | return 0; | |
13659 | ; | |
13660 | return 0; | |
13661 | } | |
13662 | _ACEOF | |
13663 | rm -f conftest.$ac_objext | |
13664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13665 | (eval $ac_compile) 2>&5 | |
13666 | ac_status=$? | |
13667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13668 | (exit $ac_status); } && | |
13669 | { ac_try='test -s conftest.$ac_objext' | |
13670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13671 | (eval $ac_try) 2>&5 | |
13672 | ac_status=$? | |
13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13674 | (exit $ac_status); }; }; then | |
13675 | ac_cv_type_char=yes | |
13676 | else | |
13677 | echo "$as_me: failed program was:" >&5 | |
13678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13679 | ||
13680 | ac_cv_type_char=no | |
13681 | fi | |
13682 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13683 | fi | |
13684 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13685 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13686 | ||
13687 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13688 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13689 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13691 | else | |
13692 | if test "$ac_cv_type_char" = yes; then | |
13693 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13694 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13695 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13696 | # This bug is HP SR number 8606223364. | |
13697 | if test "$cross_compiling" = yes; then | |
13698 | # Depending upon the size, compute the lo and hi bounds. | |
13699 | cat >conftest.$ac_ext <<_ACEOF | |
13700 | #line $LINENO "configure" | |
13701 | /* confdefs.h. */ | |
13702 | _ACEOF | |
13703 | cat confdefs.h >>conftest.$ac_ext | |
13704 | cat >>conftest.$ac_ext <<_ACEOF | |
13705 | /* end confdefs.h. */ | |
13706 | $ac_includes_default | |
13707 | int | |
13708 | main () | |
13709 | { | |
13710 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13711 | test_array [0] = 0 | |
13712 | ||
13713 | ; | |
13714 | return 0; | |
13715 | } | |
13716 | _ACEOF | |
13717 | rm -f conftest.$ac_objext | |
13718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13719 | (eval $ac_compile) 2>&5 | |
13720 | ac_status=$? | |
13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13722 | (exit $ac_status); } && | |
13723 | { ac_try='test -s conftest.$ac_objext' | |
13724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13725 | (eval $ac_try) 2>&5 | |
13726 | ac_status=$? | |
13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13728 | (exit $ac_status); }; }; then | |
13729 | ac_lo=0 ac_mid=0 | |
13730 | while :; do | |
13731 | cat >conftest.$ac_ext <<_ACEOF | |
13732 | #line $LINENO "configure" | |
13733 | /* confdefs.h. */ | |
13734 | _ACEOF | |
13735 | cat confdefs.h >>conftest.$ac_ext | |
13736 | cat >>conftest.$ac_ext <<_ACEOF | |
13737 | /* end confdefs.h. */ | |
13738 | $ac_includes_default | |
13739 | int | |
13740 | main () | |
13741 | { | |
13742 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13743 | test_array [0] = 0 | |
13744 | ||
13745 | ; | |
13746 | return 0; | |
13747 | } | |
13748 | _ACEOF | |
13749 | rm -f conftest.$ac_objext | |
13750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13751 | (eval $ac_compile) 2>&5 | |
13752 | ac_status=$? | |
13753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13754 | (exit $ac_status); } && | |
13755 | { ac_try='test -s conftest.$ac_objext' | |
13756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13757 | (eval $ac_try) 2>&5 | |
13758 | ac_status=$? | |
13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13760 | (exit $ac_status); }; }; then | |
13761 | ac_hi=$ac_mid; break | |
13762 | else | |
13763 | echo "$as_me: failed program was:" >&5 | |
13764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13765 | ||
13766 | ac_lo=`expr $ac_mid + 1` | |
13767 | if test $ac_lo -le $ac_mid; then | |
13768 | ac_lo= ac_hi= | |
13769 | break | |
13770 | fi | |
13771 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13772 | fi | |
13773 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13774 | done | |
13775 | else | |
13776 | echo "$as_me: failed program was:" >&5 | |
13777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13778 | ||
13779 | cat >conftest.$ac_ext <<_ACEOF | |
13780 | #line $LINENO "configure" | |
13781 | /* confdefs.h. */ | |
13782 | _ACEOF | |
13783 | cat confdefs.h >>conftest.$ac_ext | |
13784 | cat >>conftest.$ac_ext <<_ACEOF | |
13785 | /* end confdefs.h. */ | |
13786 | $ac_includes_default | |
13787 | int | |
13788 | main () | |
13789 | { | |
13790 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13791 | test_array [0] = 0 | |
13792 | ||
13793 | ; | |
13794 | return 0; | |
13795 | } | |
13796 | _ACEOF | |
13797 | rm -f conftest.$ac_objext | |
13798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13799 | (eval $ac_compile) 2>&5 | |
13800 | ac_status=$? | |
13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13802 | (exit $ac_status); } && | |
13803 | { ac_try='test -s conftest.$ac_objext' | |
13804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13805 | (eval $ac_try) 2>&5 | |
13806 | ac_status=$? | |
13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13808 | (exit $ac_status); }; }; then | |
13809 | ac_hi=-1 ac_mid=-1 | |
13810 | while :; do | |
13811 | cat >conftest.$ac_ext <<_ACEOF | |
13812 | #line $LINENO "configure" | |
13813 | /* confdefs.h. */ | |
13814 | _ACEOF | |
13815 | cat confdefs.h >>conftest.$ac_ext | |
13816 | cat >>conftest.$ac_ext <<_ACEOF | |
13817 | /* end confdefs.h. */ | |
13818 | $ac_includes_default | |
13819 | int | |
13820 | main () | |
13821 | { | |
13822 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13823 | test_array [0] = 0 | |
13824 | ||
13825 | ; | |
13826 | return 0; | |
13827 | } | |
13828 | _ACEOF | |
13829 | rm -f conftest.$ac_objext | |
13830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13831 | (eval $ac_compile) 2>&5 | |
13832 | ac_status=$? | |
13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13834 | (exit $ac_status); } && | |
13835 | { ac_try='test -s conftest.$ac_objext' | |
13836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13837 | (eval $ac_try) 2>&5 | |
13838 | ac_status=$? | |
13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13840 | (exit $ac_status); }; }; then | |
13841 | ac_lo=$ac_mid; break | |
13842 | else | |
13843 | echo "$as_me: failed program was:" >&5 | |
13844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13845 | ||
13846 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13847 | if test $ac_mid -le $ac_hi; then | |
13848 | ac_lo= ac_hi= | |
13849 | break | |
13850 | fi | |
13851 | ac_mid=`expr 2 '*' $ac_mid` | |
13852 | fi | |
13853 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13854 | done | |
13855 | else | |
13856 | echo "$as_me: failed program was:" >&5 | |
13857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13858 | ||
13859 | ac_lo= ac_hi= | |
13860 | fi | |
13861 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13862 | fi | |
13863 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13864 | # Binary search between lo and hi bounds. | |
13865 | while test "x$ac_lo" != "x$ac_hi"; do | |
13866 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13867 | cat >conftest.$ac_ext <<_ACEOF | |
13868 | #line $LINENO "configure" | |
13869 | /* confdefs.h. */ | |
13870 | _ACEOF | |
13871 | cat confdefs.h >>conftest.$ac_ext | |
13872 | cat >>conftest.$ac_ext <<_ACEOF | |
13873 | /* end confdefs.h. */ | |
13874 | $ac_includes_default | |
13875 | int | |
13876 | main () | |
13877 | { | |
13878 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13879 | test_array [0] = 0 | |
13880 | ||
13881 | ; | |
13882 | return 0; | |
13883 | } | |
13884 | _ACEOF | |
13885 | rm -f conftest.$ac_objext | |
13886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13887 | (eval $ac_compile) 2>&5 | |
13888 | ac_status=$? | |
13889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13890 | (exit $ac_status); } && | |
13891 | { ac_try='test -s conftest.$ac_objext' | |
13892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13893 | (eval $ac_try) 2>&5 | |
13894 | ac_status=$? | |
13895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13896 | (exit $ac_status); }; }; then | |
13897 | ac_hi=$ac_mid | |
13898 | else | |
13899 | echo "$as_me: failed program was:" >&5 | |
13900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13901 | ||
13902 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13903 | fi | |
13904 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13905 | done | |
13906 | case $ac_lo in | |
13907 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13908 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13909 | See \`config.log' for more details." >&5 | |
13910 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13911 | See \`config.log' for more details." >&2;} | |
13912 | { (exit 1); exit 1; }; } ;; | |
13913 | esac | |
13914 | else | |
13915 | if test "$cross_compiling" = yes; then | |
13916 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13917 | See \`config.log' for more details." >&5 | |
13918 | echo "$as_me: error: cannot run test program while cross compiling | |
13919 | See \`config.log' for more details." >&2;} | |
13920 | { (exit 1); exit 1; }; } | |
13921 | else | |
13922 | cat >conftest.$ac_ext <<_ACEOF | |
13923 | #line $LINENO "configure" | |
13924 | /* confdefs.h. */ | |
13925 | _ACEOF | |
13926 | cat confdefs.h >>conftest.$ac_ext | |
13927 | cat >>conftest.$ac_ext <<_ACEOF | |
13928 | /* end confdefs.h. */ | |
13929 | $ac_includes_default | |
13930 | long longval () { return (long) (sizeof (char)); } | |
13931 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
13932 | #include <stdio.h> | |
13933 | #include <stdlib.h> | |
13934 | int | |
13935 | main () | |
13936 | { | |
13937 | ||
13938 | FILE *f = fopen ("conftest.val", "w"); | |
13939 | if (! f) | |
13940 | exit (1); | |
13941 | if (((long) (sizeof (char))) < 0) | |
13942 | { | |
13943 | long i = longval (); | |
13944 | if (i != ((long) (sizeof (char)))) | |
13945 | exit (1); | |
13946 | fprintf (f, "%ld\n", i); | |
13947 | } | |
13948 | else | |
13949 | { | |
13950 | unsigned long i = ulongval (); | |
13951 | if (i != ((long) (sizeof (char)))) | |
13952 | exit (1); | |
13953 | fprintf (f, "%lu\n", i); | |
13954 | } | |
13955 | exit (ferror (f) || fclose (f) != 0); | |
13956 | ||
13957 | ; | |
13958 | return 0; | |
13959 | } | |
13960 | _ACEOF | |
13961 | rm -f conftest$ac_exeext | |
13962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13963 | (eval $ac_link) 2>&5 | |
13964 | ac_status=$? | |
13965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13966 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13968 | (eval $ac_try) 2>&5 | |
13969 | ac_status=$? | |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 | (exit $ac_status); }; }; then | |
13972 | ac_cv_sizeof_char=`cat conftest.val` | |
13973 | else | |
13974 | echo "$as_me: program exited with status $ac_status" >&5 | |
13975 | echo "$as_me: failed program was:" >&5 | |
13976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13977 | ||
13978 | ( exit $ac_status ) | |
13979 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13980 | See \`config.log' for more details." >&5 | |
13981 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13982 | See \`config.log' for more details." >&2;} | |
13983 | { (exit 1); exit 1; }; } | |
13984 | fi | |
13985 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13986 | fi | |
13987 | fi | |
13988 | rm -f conftest.val | |
13989 | else | |
13990 | ac_cv_sizeof_char=0 | |
13991 | fi | |
13992 | fi | |
13993 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
13994 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
13995 | cat >>confdefs.h <<_ACEOF | |
13996 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13997 | _ACEOF | |
13998 | ||
13999 | ||
14000 | echo "$as_me:$LINENO: checking for short" >&5 | |
14001 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14002 | if test "${ac_cv_type_short+set}" = set; then | |
14003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14004 | else | |
14005 | cat >conftest.$ac_ext <<_ACEOF | |
14006 | #line $LINENO "configure" | |
14007 | /* confdefs.h. */ | |
14008 | _ACEOF | |
14009 | cat confdefs.h >>conftest.$ac_ext | |
14010 | cat >>conftest.$ac_ext <<_ACEOF | |
14011 | /* end confdefs.h. */ | |
14012 | $ac_includes_default | |
14013 | int | |
14014 | main () | |
14015 | { | |
14016 | if ((short *) 0) | |
14017 | return 0; | |
14018 | if (sizeof (short)) | |
14019 | return 0; | |
14020 | ; | |
14021 | return 0; | |
14022 | } | |
14023 | _ACEOF | |
14024 | rm -f conftest.$ac_objext | |
14025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14026 | (eval $ac_compile) 2>&5 | |
14027 | ac_status=$? | |
14028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14029 | (exit $ac_status); } && | |
14030 | { ac_try='test -s conftest.$ac_objext' | |
14031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14032 | (eval $ac_try) 2>&5 | |
14033 | ac_status=$? | |
14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14035 | (exit $ac_status); }; }; then | |
14036 | ac_cv_type_short=yes | |
14037 | else | |
14038 | echo "$as_me: failed program was:" >&5 | |
14039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14040 | ||
14041 | ac_cv_type_short=no | |
14042 | fi | |
14043 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14044 | fi | |
14045 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14046 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14047 | ||
14048 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14049 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14050 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14052 | else | |
14053 | if test "$ac_cv_type_short" = yes; then | |
14054 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14055 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14056 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14057 | # This bug is HP SR number 8606223364. | |
14058 | if test "$cross_compiling" = yes; then | |
14059 | # Depending upon the size, compute the lo and hi bounds. | |
14060 | cat >conftest.$ac_ext <<_ACEOF | |
14061 | #line $LINENO "configure" | |
14062 | /* confdefs.h. */ | |
14063 | _ACEOF | |
14064 | cat confdefs.h >>conftest.$ac_ext | |
14065 | cat >>conftest.$ac_ext <<_ACEOF | |
14066 | /* end confdefs.h. */ | |
14067 | $ac_includes_default | |
14068 | int | |
14069 | main () | |
14070 | { | |
14071 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14072 | test_array [0] = 0 | |
14073 | ||
14074 | ; | |
14075 | return 0; | |
14076 | } | |
14077 | _ACEOF | |
14078 | rm -f conftest.$ac_objext | |
14079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14080 | (eval $ac_compile) 2>&5 | |
14081 | ac_status=$? | |
14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14083 | (exit $ac_status); } && | |
14084 | { ac_try='test -s conftest.$ac_objext' | |
14085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14086 | (eval $ac_try) 2>&5 | |
14087 | ac_status=$? | |
14088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14089 | (exit $ac_status); }; }; then | |
14090 | ac_lo=0 ac_mid=0 | |
14091 | while :; do | |
14092 | cat >conftest.$ac_ext <<_ACEOF | |
14093 | #line $LINENO "configure" | |
14094 | /* confdefs.h. */ | |
14095 | _ACEOF | |
14096 | cat confdefs.h >>conftest.$ac_ext | |
14097 | cat >>conftest.$ac_ext <<_ACEOF | |
14098 | /* end confdefs.h. */ | |
14099 | $ac_includes_default | |
14100 | int | |
14101 | main () | |
14102 | { | |
14103 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14104 | test_array [0] = 0 | |
14105 | ||
14106 | ; | |
14107 | return 0; | |
14108 | } | |
14109 | _ACEOF | |
14110 | rm -f conftest.$ac_objext | |
14111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14112 | (eval $ac_compile) 2>&5 | |
14113 | ac_status=$? | |
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14115 | (exit $ac_status); } && | |
14116 | { ac_try='test -s conftest.$ac_objext' | |
14117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14118 | (eval $ac_try) 2>&5 | |
14119 | ac_status=$? | |
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14121 | (exit $ac_status); }; }; then | |
14122 | ac_hi=$ac_mid; break | |
14123 | else | |
14124 | echo "$as_me: failed program was:" >&5 | |
14125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14126 | ||
14127 | ac_lo=`expr $ac_mid + 1` | |
14128 | if test $ac_lo -le $ac_mid; then | |
14129 | ac_lo= ac_hi= | |
14130 | break | |
14131 | fi | |
14132 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14133 | fi | |
14134 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14135 | done | |
14136 | else | |
14137 | echo "$as_me: failed program was:" >&5 | |
14138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14139 | ||
14140 | cat >conftest.$ac_ext <<_ACEOF | |
14141 | #line $LINENO "configure" | |
14142 | /* confdefs.h. */ | |
14143 | _ACEOF | |
14144 | cat confdefs.h >>conftest.$ac_ext | |
14145 | cat >>conftest.$ac_ext <<_ACEOF | |
14146 | /* end confdefs.h. */ | |
14147 | $ac_includes_default | |
14148 | int | |
14149 | main () | |
14150 | { | |
14151 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14152 | test_array [0] = 0 | |
14153 | ||
14154 | ; | |
14155 | return 0; | |
14156 | } | |
14157 | _ACEOF | |
14158 | rm -f conftest.$ac_objext | |
14159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14160 | (eval $ac_compile) 2>&5 | |
14161 | ac_status=$? | |
14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14163 | (exit $ac_status); } && | |
14164 | { ac_try='test -s conftest.$ac_objext' | |
14165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14166 | (eval $ac_try) 2>&5 | |
14167 | ac_status=$? | |
14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14169 | (exit $ac_status); }; }; then | |
14170 | ac_hi=-1 ac_mid=-1 | |
14171 | while :; do | |
14172 | cat >conftest.$ac_ext <<_ACEOF | |
14173 | #line $LINENO "configure" | |
14174 | /* confdefs.h. */ | |
14175 | _ACEOF | |
14176 | cat confdefs.h >>conftest.$ac_ext | |
14177 | cat >>conftest.$ac_ext <<_ACEOF | |
14178 | /* end confdefs.h. */ | |
14179 | $ac_includes_default | |
14180 | int | |
14181 | main () | |
14182 | { | |
14183 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14184 | test_array [0] = 0 | |
14185 | ||
14186 | ; | |
14187 | return 0; | |
14188 | } | |
14189 | _ACEOF | |
14190 | rm -f conftest.$ac_objext | |
14191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14192 | (eval $ac_compile) 2>&5 | |
14193 | ac_status=$? | |
14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14195 | (exit $ac_status); } && | |
14196 | { ac_try='test -s conftest.$ac_objext' | |
14197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14198 | (eval $ac_try) 2>&5 | |
14199 | ac_status=$? | |
14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14201 | (exit $ac_status); }; }; then | |
14202 | ac_lo=$ac_mid; break | |
14203 | else | |
14204 | echo "$as_me: failed program was:" >&5 | |
14205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14206 | ||
14207 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14208 | if test $ac_mid -le $ac_hi; then | |
14209 | ac_lo= ac_hi= | |
14210 | break | |
14211 | fi | |
14212 | ac_mid=`expr 2 '*' $ac_mid` | |
14213 | fi | |
14214 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14215 | done | |
14216 | else | |
14217 | echo "$as_me: failed program was:" >&5 | |
14218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14219 | ||
14220 | ac_lo= ac_hi= | |
14221 | fi | |
14222 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14223 | fi | |
14224 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14225 | # Binary search between lo and hi bounds. | |
14226 | while test "x$ac_lo" != "x$ac_hi"; do | |
14227 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14228 | cat >conftest.$ac_ext <<_ACEOF | |
14229 | #line $LINENO "configure" | |
14230 | /* confdefs.h. */ | |
14231 | _ACEOF | |
14232 | cat confdefs.h >>conftest.$ac_ext | |
14233 | cat >>conftest.$ac_ext <<_ACEOF | |
14234 | /* end confdefs.h. */ | |
14235 | $ac_includes_default | |
14236 | int | |
14237 | main () | |
14238 | { | |
14239 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14240 | test_array [0] = 0 | |
14241 | ||
14242 | ; | |
14243 | return 0; | |
14244 | } | |
14245 | _ACEOF | |
14246 | rm -f conftest.$ac_objext | |
14247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14248 | (eval $ac_compile) 2>&5 | |
14249 | ac_status=$? | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); } && | |
14252 | { ac_try='test -s conftest.$ac_objext' | |
14253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14254 | (eval $ac_try) 2>&5 | |
14255 | ac_status=$? | |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14257 | (exit $ac_status); }; }; then | |
14258 | ac_hi=$ac_mid | |
14259 | else | |
14260 | echo "$as_me: failed program was:" >&5 | |
14261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14262 | ||
14263 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14264 | fi | |
14265 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14266 | done | |
14267 | case $ac_lo in | |
14268 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14269 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14270 | See \`config.log' for more details." >&5 | |
14271 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14272 | See \`config.log' for more details." >&2;} | |
14273 | { (exit 1); exit 1; }; } ;; | |
14274 | esac | |
14275 | else | |
14276 | if test "$cross_compiling" = yes; then | |
14277 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14278 | See \`config.log' for more details." >&5 | |
14279 | echo "$as_me: error: cannot run test program while cross compiling | |
14280 | See \`config.log' for more details." >&2;} | |
14281 | { (exit 1); exit 1; }; } | |
14282 | else | |
14283 | cat >conftest.$ac_ext <<_ACEOF | |
14284 | #line $LINENO "configure" | |
14285 | /* confdefs.h. */ | |
14286 | _ACEOF | |
14287 | cat confdefs.h >>conftest.$ac_ext | |
14288 | cat >>conftest.$ac_ext <<_ACEOF | |
14289 | /* end confdefs.h. */ | |
14290 | $ac_includes_default | |
14291 | long longval () { return (long) (sizeof (short)); } | |
14292 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
14293 | #include <stdio.h> | |
14294 | #include <stdlib.h> | |
14295 | int | |
14296 | main () | |
14297 | { | |
14298 | ||
14299 | FILE *f = fopen ("conftest.val", "w"); | |
14300 | if (! f) | |
14301 | exit (1); | |
14302 | if (((long) (sizeof (short))) < 0) | |
14303 | { | |
14304 | long i = longval (); | |
14305 | if (i != ((long) (sizeof (short)))) | |
14306 | exit (1); | |
14307 | fprintf (f, "%ld\n", i); | |
14308 | } | |
14309 | else | |
14310 | { | |
14311 | unsigned long i = ulongval (); | |
14312 | if (i != ((long) (sizeof (short)))) | |
14313 | exit (1); | |
14314 | fprintf (f, "%lu\n", i); | |
14315 | } | |
14316 | exit (ferror (f) || fclose (f) != 0); | |
14317 | ||
14318 | ; | |
14319 | return 0; | |
14320 | } | |
14321 | _ACEOF | |
14322 | rm -f conftest$ac_exeext | |
14323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14324 | (eval $ac_link) 2>&5 | |
14325 | ac_status=$? | |
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14329 | (eval $ac_try) 2>&5 | |
14330 | ac_status=$? | |
14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14332 | (exit $ac_status); }; }; then | |
14333 | ac_cv_sizeof_short=`cat conftest.val` | |
14334 | else | |
14335 | echo "$as_me: program exited with status $ac_status" >&5 | |
14336 | echo "$as_me: failed program was:" >&5 | |
14337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14338 | ||
14339 | ( exit $ac_status ) | |
14340 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14341 | See \`config.log' for more details." >&5 | |
14342 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14343 | See \`config.log' for more details." >&2;} | |
14344 | { (exit 1); exit 1; }; } | |
14345 | fi | |
14346 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14347 | fi | |
14348 | fi | |
14349 | rm -f conftest.val | |
14350 | else | |
14351 | ac_cv_sizeof_short=0 | |
14352 | fi | |
14353 | fi | |
14354 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
14355 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14356 | cat >>confdefs.h <<_ACEOF | |
14357 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14358 | _ACEOF | |
14359 | ||
14360 | ||
14361 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14362 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14363 | if test "${ac_cv_type_void_p+set}" = set; then | |
14364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14365 | else | |
14366 | cat >conftest.$ac_ext <<_ACEOF | |
14367 | #line $LINENO "configure" | |
14368 | /* confdefs.h. */ | |
14369 | _ACEOF | |
14370 | cat confdefs.h >>conftest.$ac_ext | |
14371 | cat >>conftest.$ac_ext <<_ACEOF | |
14372 | /* end confdefs.h. */ | |
14373 | $ac_includes_default | |
14374 | int | |
14375 | main () | |
14376 | { | |
14377 | if ((void * *) 0) | |
14378 | return 0; | |
14379 | if (sizeof (void *)) | |
14380 | return 0; | |
14381 | ; | |
14382 | return 0; | |
14383 | } | |
14384 | _ACEOF | |
14385 | rm -f conftest.$ac_objext | |
14386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14387 | (eval $ac_compile) 2>&5 | |
14388 | ac_status=$? | |
14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14390 | (exit $ac_status); } && | |
14391 | { ac_try='test -s conftest.$ac_objext' | |
14392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14393 | (eval $ac_try) 2>&5 | |
14394 | ac_status=$? | |
14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14396 | (exit $ac_status); }; }; then | |
14397 | ac_cv_type_void_p=yes | |
14398 | else | |
14399 | echo "$as_me: failed program was:" >&5 | |
14400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14401 | ||
14402 | ac_cv_type_void_p=no | |
14403 | fi | |
14404 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14405 | fi | |
14406 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14407 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14408 | ||
14409 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14410 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14411 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14413 | else | |
14414 | if test "$ac_cv_type_void_p" = yes; then | |
14415 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14418 | # This bug is HP SR number 8606223364. | |
14419 | if test "$cross_compiling" = yes; then | |
14420 | # Depending upon the size, compute the lo and hi bounds. | |
14421 | cat >conftest.$ac_ext <<_ACEOF | |
14422 | #line $LINENO "configure" | |
14423 | /* confdefs.h. */ | |
14424 | _ACEOF | |
14425 | cat confdefs.h >>conftest.$ac_ext | |
14426 | cat >>conftest.$ac_ext <<_ACEOF | |
14427 | /* end confdefs.h. */ | |
14428 | $ac_includes_default | |
14429 | int | |
14430 | main () | |
14431 | { | |
14432 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14433 | test_array [0] = 0 | |
14434 | ||
14435 | ; | |
14436 | return 0; | |
14437 | } | |
14438 | _ACEOF | |
14439 | rm -f conftest.$ac_objext | |
14440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14441 | (eval $ac_compile) 2>&5 | |
14442 | ac_status=$? | |
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14444 | (exit $ac_status); } && | |
14445 | { ac_try='test -s conftest.$ac_objext' | |
14446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14447 | (eval $ac_try) 2>&5 | |
14448 | ac_status=$? | |
14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14450 | (exit $ac_status); }; }; then | |
14451 | ac_lo=0 ac_mid=0 | |
14452 | while :; do | |
14453 | cat >conftest.$ac_ext <<_ACEOF | |
14454 | #line $LINENO "configure" | |
14455 | /* confdefs.h. */ | |
14456 | _ACEOF | |
14457 | cat confdefs.h >>conftest.$ac_ext | |
14458 | cat >>conftest.$ac_ext <<_ACEOF | |
14459 | /* end confdefs.h. */ | |
14460 | $ac_includes_default | |
14461 | int | |
14462 | main () | |
14463 | { | |
14464 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14465 | test_array [0] = 0 | |
14466 | ||
14467 | ; | |
14468 | return 0; | |
14469 | } | |
14470 | _ACEOF | |
14471 | rm -f conftest.$ac_objext | |
14472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14473 | (eval $ac_compile) 2>&5 | |
14474 | ac_status=$? | |
14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14476 | (exit $ac_status); } && | |
14477 | { ac_try='test -s conftest.$ac_objext' | |
14478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14479 | (eval $ac_try) 2>&5 | |
14480 | ac_status=$? | |
14481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14482 | (exit $ac_status); }; }; then | |
14483 | ac_hi=$ac_mid; break | |
14484 | else | |
14485 | echo "$as_me: failed program was:" >&5 | |
14486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14487 | ||
14488 | ac_lo=`expr $ac_mid + 1` | |
14489 | if test $ac_lo -le $ac_mid; then | |
14490 | ac_lo= ac_hi= | |
14491 | break | |
14492 | fi | |
14493 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14494 | fi | |
14495 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14496 | done | |
14497 | else | |
14498 | echo "$as_me: failed program was:" >&5 | |
14499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14500 | ||
14501 | cat >conftest.$ac_ext <<_ACEOF | |
14502 | #line $LINENO "configure" | |
14503 | /* confdefs.h. */ | |
14504 | _ACEOF | |
14505 | cat confdefs.h >>conftest.$ac_ext | |
14506 | cat >>conftest.$ac_ext <<_ACEOF | |
14507 | /* end confdefs.h. */ | |
14508 | $ac_includes_default | |
14509 | int | |
14510 | main () | |
14511 | { | |
14512 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14513 | test_array [0] = 0 | |
14514 | ||
14515 | ; | |
14516 | return 0; | |
14517 | } | |
14518 | _ACEOF | |
14519 | rm -f conftest.$ac_objext | |
14520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14521 | (eval $ac_compile) 2>&5 | |
14522 | ac_status=$? | |
14523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14524 | (exit $ac_status); } && | |
14525 | { ac_try='test -s conftest.$ac_objext' | |
14526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14527 | (eval $ac_try) 2>&5 | |
14528 | ac_status=$? | |
14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14530 | (exit $ac_status); }; }; then | |
14531 | ac_hi=-1 ac_mid=-1 | |
14532 | while :; do | |
14533 | cat >conftest.$ac_ext <<_ACEOF | |
14534 | #line $LINENO "configure" | |
14535 | /* confdefs.h. */ | |
14536 | _ACEOF | |
14537 | cat confdefs.h >>conftest.$ac_ext | |
14538 | cat >>conftest.$ac_ext <<_ACEOF | |
14539 | /* end confdefs.h. */ | |
14540 | $ac_includes_default | |
14541 | int | |
14542 | main () | |
14543 | { | |
14544 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14545 | test_array [0] = 0 | |
14546 | ||
14547 | ; | |
14548 | return 0; | |
14549 | } | |
14550 | _ACEOF | |
14551 | rm -f conftest.$ac_objext | |
14552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14553 | (eval $ac_compile) 2>&5 | |
14554 | ac_status=$? | |
14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14556 | (exit $ac_status); } && | |
14557 | { ac_try='test -s conftest.$ac_objext' | |
14558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14559 | (eval $ac_try) 2>&5 | |
14560 | ac_status=$? | |
14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14562 | (exit $ac_status); }; }; then | |
14563 | ac_lo=$ac_mid; break | |
14564 | else | |
14565 | echo "$as_me: failed program was:" >&5 | |
14566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14567 | ||
14568 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14569 | if test $ac_mid -le $ac_hi; then | |
14570 | ac_lo= ac_hi= | |
14571 | break | |
14572 | fi | |
14573 | ac_mid=`expr 2 '*' $ac_mid` | |
14574 | fi | |
14575 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14576 | done | |
14577 | else | |
14578 | echo "$as_me: failed program was:" >&5 | |
14579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14580 | ||
14581 | ac_lo= ac_hi= | |
14582 | fi | |
14583 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14584 | fi | |
14585 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14586 | # Binary search between lo and hi bounds. | |
14587 | while test "x$ac_lo" != "x$ac_hi"; do | |
14588 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14589 | cat >conftest.$ac_ext <<_ACEOF | |
14590 | #line $LINENO "configure" | |
14591 | /* confdefs.h. */ | |
14592 | _ACEOF | |
14593 | cat confdefs.h >>conftest.$ac_ext | |
14594 | cat >>conftest.$ac_ext <<_ACEOF | |
14595 | /* end confdefs.h. */ | |
14596 | $ac_includes_default | |
14597 | int | |
14598 | main () | |
14599 | { | |
14600 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14601 | test_array [0] = 0 | |
14602 | ||
14603 | ; | |
14604 | return 0; | |
14605 | } | |
14606 | _ACEOF | |
14607 | rm -f conftest.$ac_objext | |
14608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14609 | (eval $ac_compile) 2>&5 | |
14610 | ac_status=$? | |
14611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14612 | (exit $ac_status); } && | |
14613 | { ac_try='test -s conftest.$ac_objext' | |
14614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14615 | (eval $ac_try) 2>&5 | |
14616 | ac_status=$? | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); }; }; then | |
14619 | ac_hi=$ac_mid | |
14620 | else | |
14621 | echo "$as_me: failed program was:" >&5 | |
14622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14623 | ||
14624 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14625 | fi | |
14626 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14627 | done | |
14628 | case $ac_lo in | |
14629 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14630 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14631 | See \`config.log' for more details." >&5 | |
14632 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14633 | See \`config.log' for more details." >&2;} | |
14634 | { (exit 1); exit 1; }; } ;; | |
14635 | esac | |
14636 | else | |
14637 | if test "$cross_compiling" = yes; then | |
14638 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14639 | See \`config.log' for more details." >&5 | |
14640 | echo "$as_me: error: cannot run test program while cross compiling | |
14641 | See \`config.log' for more details." >&2;} | |
14642 | { (exit 1); exit 1; }; } | |
14643 | else | |
14644 | cat >conftest.$ac_ext <<_ACEOF | |
14645 | #line $LINENO "configure" | |
14646 | /* confdefs.h. */ | |
14647 | _ACEOF | |
14648 | cat confdefs.h >>conftest.$ac_ext | |
14649 | cat >>conftest.$ac_ext <<_ACEOF | |
14650 | /* end confdefs.h. */ | |
14651 | $ac_includes_default | |
14652 | long longval () { return (long) (sizeof (void *)); } | |
14653 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
14654 | #include <stdio.h> | |
14655 | #include <stdlib.h> | |
14656 | int | |
14657 | main () | |
14658 | { | |
14659 | ||
14660 | FILE *f = fopen ("conftest.val", "w"); | |
14661 | if (! f) | |
14662 | exit (1); | |
14663 | if (((long) (sizeof (void *))) < 0) | |
14664 | { | |
14665 | long i = longval (); | |
14666 | if (i != ((long) (sizeof (void *)))) | |
14667 | exit (1); | |
14668 | fprintf (f, "%ld\n", i); | |
14669 | } | |
14670 | else | |
14671 | { | |
14672 | unsigned long i = ulongval (); | |
14673 | if (i != ((long) (sizeof (void *)))) | |
14674 | exit (1); | |
14675 | fprintf (f, "%lu\n", i); | |
14676 | } | |
14677 | exit (ferror (f) || fclose (f) != 0); | |
14678 | ||
14679 | ; | |
14680 | return 0; | |
14681 | } | |
14682 | _ACEOF | |
14683 | rm -f conftest$ac_exeext | |
14684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14685 | (eval $ac_link) 2>&5 | |
14686 | ac_status=$? | |
14687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14688 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14690 | (eval $ac_try) 2>&5 | |
14691 | ac_status=$? | |
14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14693 | (exit $ac_status); }; }; then | |
14694 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14695 | else | |
14696 | echo "$as_me: program exited with status $ac_status" >&5 | |
14697 | echo "$as_me: failed program was:" >&5 | |
14698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14699 | ||
14700 | ( exit $ac_status ) | |
14701 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14702 | See \`config.log' for more details." >&5 | |
14703 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14704 | See \`config.log' for more details." >&2;} | |
14705 | { (exit 1); exit 1; }; } | |
14706 | fi | |
14707 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14708 | fi | |
14709 | fi | |
14710 | rm -f conftest.val | |
14711 | else | |
14712 | ac_cv_sizeof_void_p=0 | |
14713 | fi | |
14714 | fi | |
14715 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
14716 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14717 | cat >>confdefs.h <<_ACEOF | |
14718 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14719 | _ACEOF | |
14720 | ||
14721 | ||
14722 | echo "$as_me:$LINENO: checking for int" >&5 | |
14723 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14724 | if test "${ac_cv_type_int+set}" = set; then | |
14725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14726 | else | |
14727 | cat >conftest.$ac_ext <<_ACEOF | |
14728 | #line $LINENO "configure" | |
14729 | /* confdefs.h. */ | |
14730 | _ACEOF | |
14731 | cat confdefs.h >>conftest.$ac_ext | |
14732 | cat >>conftest.$ac_ext <<_ACEOF | |
14733 | /* end confdefs.h. */ | |
14734 | $ac_includes_default | |
14735 | int | |
14736 | main () | |
14737 | { | |
14738 | if ((int *) 0) | |
14739 | return 0; | |
14740 | if (sizeof (int)) | |
14741 | return 0; | |
14742 | ; | |
14743 | return 0; | |
14744 | } | |
14745 | _ACEOF | |
14746 | rm -f conftest.$ac_objext | |
14747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14748 | (eval $ac_compile) 2>&5 | |
14749 | ac_status=$? | |
14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14751 | (exit $ac_status); } && | |
14752 | { ac_try='test -s conftest.$ac_objext' | |
14753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14754 | (eval $ac_try) 2>&5 | |
14755 | ac_status=$? | |
14756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14757 | (exit $ac_status); }; }; then | |
14758 | ac_cv_type_int=yes | |
14759 | else | |
14760 | echo "$as_me: failed program was:" >&5 | |
14761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14762 | ||
14763 | ac_cv_type_int=no | |
14764 | fi | |
14765 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14766 | fi | |
14767 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14768 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14769 | ||
14770 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14771 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14772 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14774 | else | |
14775 | if test "$ac_cv_type_int" = yes; then | |
14776 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14777 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14778 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14779 | # This bug is HP SR number 8606223364. | |
14780 | if test "$cross_compiling" = yes; then | |
14781 | # Depending upon the size, compute the lo and hi bounds. | |
14782 | cat >conftest.$ac_ext <<_ACEOF | |
14783 | #line $LINENO "configure" | |
14784 | /* confdefs.h. */ | |
14785 | _ACEOF | |
14786 | cat confdefs.h >>conftest.$ac_ext | |
14787 | cat >>conftest.$ac_ext <<_ACEOF | |
14788 | /* end confdefs.h. */ | |
14789 | $ac_includes_default | |
14790 | int | |
14791 | main () | |
14792 | { | |
14793 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14794 | test_array [0] = 0 | |
14795 | ||
14796 | ; | |
14797 | return 0; | |
14798 | } | |
14799 | _ACEOF | |
14800 | rm -f conftest.$ac_objext | |
14801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14802 | (eval $ac_compile) 2>&5 | |
14803 | ac_status=$? | |
14804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14805 | (exit $ac_status); } && | |
14806 | { ac_try='test -s conftest.$ac_objext' | |
14807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14808 | (eval $ac_try) 2>&5 | |
14809 | ac_status=$? | |
14810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14811 | (exit $ac_status); }; }; then | |
14812 | ac_lo=0 ac_mid=0 | |
14813 | while :; do | |
14814 | cat >conftest.$ac_ext <<_ACEOF | |
14815 | #line $LINENO "configure" | |
14816 | /* confdefs.h. */ | |
14817 | _ACEOF | |
14818 | cat confdefs.h >>conftest.$ac_ext | |
14819 | cat >>conftest.$ac_ext <<_ACEOF | |
14820 | /* end confdefs.h. */ | |
14821 | $ac_includes_default | |
14822 | int | |
14823 | main () | |
14824 | { | |
14825 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14826 | test_array [0] = 0 | |
14827 | ||
14828 | ; | |
14829 | return 0; | |
14830 | } | |
14831 | _ACEOF | |
14832 | rm -f conftest.$ac_objext | |
14833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14834 | (eval $ac_compile) 2>&5 | |
14835 | ac_status=$? | |
14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14837 | (exit $ac_status); } && | |
14838 | { ac_try='test -s conftest.$ac_objext' | |
14839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14840 | (eval $ac_try) 2>&5 | |
14841 | ac_status=$? | |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14843 | (exit $ac_status); }; }; then | |
14844 | ac_hi=$ac_mid; break | |
14845 | else | |
14846 | echo "$as_me: failed program was:" >&5 | |
14847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14848 | ||
14849 | ac_lo=`expr $ac_mid + 1` | |
14850 | if test $ac_lo -le $ac_mid; then | |
14851 | ac_lo= ac_hi= | |
14852 | break | |
14853 | fi | |
14854 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14855 | fi | |
14856 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14857 | done | |
14858 | else | |
14859 | echo "$as_me: failed program was:" >&5 | |
14860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14861 | ||
14862 | cat >conftest.$ac_ext <<_ACEOF | |
14863 | #line $LINENO "configure" | |
14864 | /* confdefs.h. */ | |
14865 | _ACEOF | |
14866 | cat confdefs.h >>conftest.$ac_ext | |
14867 | cat >>conftest.$ac_ext <<_ACEOF | |
14868 | /* end confdefs.h. */ | |
14869 | $ac_includes_default | |
14870 | int | |
14871 | main () | |
14872 | { | |
14873 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14874 | test_array [0] = 0 | |
14875 | ||
14876 | ; | |
14877 | return 0; | |
14878 | } | |
14879 | _ACEOF | |
14880 | rm -f conftest.$ac_objext | |
14881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14882 | (eval $ac_compile) 2>&5 | |
14883 | ac_status=$? | |
14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14885 | (exit $ac_status); } && | |
14886 | { ac_try='test -s conftest.$ac_objext' | |
14887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14888 | (eval $ac_try) 2>&5 | |
14889 | ac_status=$? | |
14890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14891 | (exit $ac_status); }; }; then | |
14892 | ac_hi=-1 ac_mid=-1 | |
14893 | while :; do | |
14894 | cat >conftest.$ac_ext <<_ACEOF | |
14895 | #line $LINENO "configure" | |
14896 | /* confdefs.h. */ | |
14897 | _ACEOF | |
14898 | cat confdefs.h >>conftest.$ac_ext | |
14899 | cat >>conftest.$ac_ext <<_ACEOF | |
14900 | /* end confdefs.h. */ | |
14901 | $ac_includes_default | |
14902 | int | |
14903 | main () | |
14904 | { | |
14905 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14906 | test_array [0] = 0 | |
14907 | ||
14908 | ; | |
14909 | return 0; | |
14910 | } | |
14911 | _ACEOF | |
14912 | rm -f conftest.$ac_objext | |
14913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14914 | (eval $ac_compile) 2>&5 | |
14915 | ac_status=$? | |
14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14917 | (exit $ac_status); } && | |
14918 | { ac_try='test -s conftest.$ac_objext' | |
14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14920 | (eval $ac_try) 2>&5 | |
14921 | ac_status=$? | |
14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14923 | (exit $ac_status); }; }; then | |
14924 | ac_lo=$ac_mid; break | |
14925 | else | |
14926 | echo "$as_me: failed program was:" >&5 | |
14927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14928 | ||
14929 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14930 | if test $ac_mid -le $ac_hi; then | |
14931 | ac_lo= ac_hi= | |
14932 | break | |
14933 | fi | |
14934 | ac_mid=`expr 2 '*' $ac_mid` | |
14935 | fi | |
14936 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14937 | done | |
14938 | else | |
14939 | echo "$as_me: failed program was:" >&5 | |
14940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14941 | ||
14942 | ac_lo= ac_hi= | |
14943 | fi | |
14944 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14945 | fi | |
14946 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14947 | # Binary search between lo and hi bounds. | |
14948 | while test "x$ac_lo" != "x$ac_hi"; do | |
14949 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14950 | cat >conftest.$ac_ext <<_ACEOF | |
14951 | #line $LINENO "configure" | |
14952 | /* confdefs.h. */ | |
14953 | _ACEOF | |
14954 | cat confdefs.h >>conftest.$ac_ext | |
14955 | cat >>conftest.$ac_ext <<_ACEOF | |
14956 | /* end confdefs.h. */ | |
14957 | $ac_includes_default | |
14958 | int | |
14959 | main () | |
14960 | { | |
14961 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14962 | test_array [0] = 0 | |
14963 | ||
14964 | ; | |
14965 | return 0; | |
14966 | } | |
14967 | _ACEOF | |
14968 | rm -f conftest.$ac_objext | |
14969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14970 | (eval $ac_compile) 2>&5 | |
14971 | ac_status=$? | |
14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14973 | (exit $ac_status); } && | |
14974 | { ac_try='test -s conftest.$ac_objext' | |
14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14979 | (exit $ac_status); }; }; then | |
14980 | ac_hi=$ac_mid | |
14981 | else | |
14982 | echo "$as_me: failed program was:" >&5 | |
14983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14984 | ||
14985 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14986 | fi | |
14987 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14988 | done | |
14989 | case $ac_lo in | |
14990 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14991 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14992 | See \`config.log' for more details." >&5 | |
14993 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14994 | See \`config.log' for more details." >&2;} | |
14995 | { (exit 1); exit 1; }; } ;; | |
14996 | esac | |
14997 | else | |
14998 | if test "$cross_compiling" = yes; then | |
14999 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15000 | See \`config.log' for more details." >&5 | |
15001 | echo "$as_me: error: cannot run test program while cross compiling | |
15002 | See \`config.log' for more details." >&2;} | |
15003 | { (exit 1); exit 1; }; } | |
15004 | else | |
15005 | cat >conftest.$ac_ext <<_ACEOF | |
15006 | #line $LINENO "configure" | |
15007 | /* confdefs.h. */ | |
15008 | _ACEOF | |
15009 | cat confdefs.h >>conftest.$ac_ext | |
15010 | cat >>conftest.$ac_ext <<_ACEOF | |
15011 | /* end confdefs.h. */ | |
15012 | $ac_includes_default | |
15013 | long longval () { return (long) (sizeof (int)); } | |
15014 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15015 | #include <stdio.h> | |
15016 | #include <stdlib.h> | |
15017 | int | |
15018 | main () | |
15019 | { | |
15020 | ||
15021 | FILE *f = fopen ("conftest.val", "w"); | |
15022 | if (! f) | |
15023 | exit (1); | |
15024 | if (((long) (sizeof (int))) < 0) | |
15025 | { | |
15026 | long i = longval (); | |
15027 | if (i != ((long) (sizeof (int)))) | |
15028 | exit (1); | |
15029 | fprintf (f, "%ld\n", i); | |
15030 | } | |
15031 | else | |
15032 | { | |
15033 | unsigned long i = ulongval (); | |
15034 | if (i != ((long) (sizeof (int)))) | |
15035 | exit (1); | |
15036 | fprintf (f, "%lu\n", i); | |
15037 | } | |
15038 | exit (ferror (f) || fclose (f) != 0); | |
15039 | ||
15040 | ; | |
15041 | return 0; | |
15042 | } | |
15043 | _ACEOF | |
15044 | rm -f conftest$ac_exeext | |
15045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15046 | (eval $ac_link) 2>&5 | |
15047 | ac_status=$? | |
15048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15049 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15051 | (eval $ac_try) 2>&5 | |
15052 | ac_status=$? | |
15053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15054 | (exit $ac_status); }; }; then | |
15055 | ac_cv_sizeof_int=`cat conftest.val` | |
15056 | else | |
15057 | echo "$as_me: program exited with status $ac_status" >&5 | |
15058 | echo "$as_me: failed program was:" >&5 | |
15059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15060 | ||
15061 | ( exit $ac_status ) | |
15062 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15063 | See \`config.log' for more details." >&5 | |
15064 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15065 | See \`config.log' for more details." >&2;} | |
15066 | { (exit 1); exit 1; }; } | |
15067 | fi | |
15068 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15069 | fi | |
15070 | fi | |
15071 | rm -f conftest.val | |
15072 | else | |
15073 | ac_cv_sizeof_int=0 | |
15074 | fi | |
15075 | fi | |
15076 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15077 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15078 | cat >>confdefs.h <<_ACEOF | |
15079 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15080 | _ACEOF | |
15081 | ||
15082 | ||
15083 | echo "$as_me:$LINENO: checking for long" >&5 | |
15084 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15085 | if test "${ac_cv_type_long+set}" = set; then | |
15086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15087 | else | |
15088 | cat >conftest.$ac_ext <<_ACEOF | |
15089 | #line $LINENO "configure" | |
15090 | /* confdefs.h. */ | |
15091 | _ACEOF | |
15092 | cat confdefs.h >>conftest.$ac_ext | |
15093 | cat >>conftest.$ac_ext <<_ACEOF | |
15094 | /* end confdefs.h. */ | |
15095 | $ac_includes_default | |
15096 | int | |
15097 | main () | |
15098 | { | |
15099 | if ((long *) 0) | |
15100 | return 0; | |
15101 | if (sizeof (long)) | |
15102 | return 0; | |
15103 | ; | |
15104 | return 0; | |
15105 | } | |
15106 | _ACEOF | |
15107 | rm -f conftest.$ac_objext | |
15108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15109 | (eval $ac_compile) 2>&5 | |
15110 | ac_status=$? | |
15111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15112 | (exit $ac_status); } && | |
15113 | { ac_try='test -s conftest.$ac_objext' | |
15114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15115 | (eval $ac_try) 2>&5 | |
15116 | ac_status=$? | |
15117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15118 | (exit $ac_status); }; }; then | |
15119 | ac_cv_type_long=yes | |
15120 | else | |
15121 | echo "$as_me: failed program was:" >&5 | |
15122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15123 | ||
15124 | ac_cv_type_long=no | |
15125 | fi | |
15126 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15127 | fi | |
15128 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15129 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15130 | ||
15131 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15132 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15133 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15135 | else | |
15136 | if test "$ac_cv_type_long" = yes; then | |
15137 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15138 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15139 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15140 | # This bug is HP SR number 8606223364. | |
15141 | if test "$cross_compiling" = yes; then | |
15142 | # Depending upon the size, compute the lo and hi bounds. | |
15143 | cat >conftest.$ac_ext <<_ACEOF | |
15144 | #line $LINENO "configure" | |
15145 | /* confdefs.h. */ | |
15146 | _ACEOF | |
15147 | cat confdefs.h >>conftest.$ac_ext | |
15148 | cat >>conftest.$ac_ext <<_ACEOF | |
15149 | /* end confdefs.h. */ | |
15150 | $ac_includes_default | |
15151 | int | |
15152 | main () | |
15153 | { | |
15154 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15155 | test_array [0] = 0 | |
15156 | ||
15157 | ; | |
15158 | return 0; | |
15159 | } | |
15160 | _ACEOF | |
15161 | rm -f conftest.$ac_objext | |
15162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15163 | (eval $ac_compile) 2>&5 | |
15164 | ac_status=$? | |
15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15166 | (exit $ac_status); } && | |
15167 | { ac_try='test -s conftest.$ac_objext' | |
15168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15169 | (eval $ac_try) 2>&5 | |
15170 | ac_status=$? | |
15171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15172 | (exit $ac_status); }; }; then | |
15173 | ac_lo=0 ac_mid=0 | |
15174 | while :; do | |
15175 | cat >conftest.$ac_ext <<_ACEOF | |
15176 | #line $LINENO "configure" | |
15177 | /* confdefs.h. */ | |
15178 | _ACEOF | |
15179 | cat confdefs.h >>conftest.$ac_ext | |
15180 | cat >>conftest.$ac_ext <<_ACEOF | |
15181 | /* end confdefs.h. */ | |
15182 | $ac_includes_default | |
15183 | int | |
15184 | main () | |
15185 | { | |
15186 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15187 | test_array [0] = 0 | |
15188 | ||
15189 | ; | |
15190 | return 0; | |
15191 | } | |
15192 | _ACEOF | |
15193 | rm -f conftest.$ac_objext | |
15194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15195 | (eval $ac_compile) 2>&5 | |
15196 | ac_status=$? | |
15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15198 | (exit $ac_status); } && | |
15199 | { ac_try='test -s conftest.$ac_objext' | |
15200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15201 | (eval $ac_try) 2>&5 | |
15202 | ac_status=$? | |
15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15204 | (exit $ac_status); }; }; then | |
15205 | ac_hi=$ac_mid; break | |
15206 | else | |
15207 | echo "$as_me: failed program was:" >&5 | |
15208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15209 | ||
15210 | ac_lo=`expr $ac_mid + 1` | |
15211 | if test $ac_lo -le $ac_mid; then | |
15212 | ac_lo= ac_hi= | |
15213 | break | |
15214 | fi | |
15215 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15216 | fi | |
15217 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15218 | done | |
15219 | else | |
15220 | echo "$as_me: failed program was:" >&5 | |
15221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15222 | ||
15223 | cat >conftest.$ac_ext <<_ACEOF | |
15224 | #line $LINENO "configure" | |
15225 | /* confdefs.h. */ | |
15226 | _ACEOF | |
15227 | cat confdefs.h >>conftest.$ac_ext | |
15228 | cat >>conftest.$ac_ext <<_ACEOF | |
15229 | /* end confdefs.h. */ | |
15230 | $ac_includes_default | |
15231 | int | |
15232 | main () | |
15233 | { | |
15234 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15235 | test_array [0] = 0 | |
15236 | ||
15237 | ; | |
15238 | return 0; | |
15239 | } | |
15240 | _ACEOF | |
15241 | rm -f conftest.$ac_objext | |
15242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15243 | (eval $ac_compile) 2>&5 | |
15244 | ac_status=$? | |
15245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15246 | (exit $ac_status); } && | |
15247 | { ac_try='test -s conftest.$ac_objext' | |
15248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15249 | (eval $ac_try) 2>&5 | |
15250 | ac_status=$? | |
15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15252 | (exit $ac_status); }; }; then | |
15253 | ac_hi=-1 ac_mid=-1 | |
15254 | while :; do | |
15255 | cat >conftest.$ac_ext <<_ACEOF | |
15256 | #line $LINENO "configure" | |
15257 | /* confdefs.h. */ | |
15258 | _ACEOF | |
15259 | cat confdefs.h >>conftest.$ac_ext | |
15260 | cat >>conftest.$ac_ext <<_ACEOF | |
15261 | /* end confdefs.h. */ | |
15262 | $ac_includes_default | |
15263 | int | |
15264 | main () | |
15265 | { | |
15266 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15267 | test_array [0] = 0 | |
15268 | ||
15269 | ; | |
15270 | return 0; | |
15271 | } | |
15272 | _ACEOF | |
15273 | rm -f conftest.$ac_objext | |
15274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15275 | (eval $ac_compile) 2>&5 | |
15276 | ac_status=$? | |
15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15278 | (exit $ac_status); } && | |
15279 | { ac_try='test -s conftest.$ac_objext' | |
15280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15281 | (eval $ac_try) 2>&5 | |
15282 | ac_status=$? | |
15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15284 | (exit $ac_status); }; }; then | |
15285 | ac_lo=$ac_mid; break | |
15286 | else | |
15287 | echo "$as_me: failed program was:" >&5 | |
15288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15289 | ||
15290 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15291 | if test $ac_mid -le $ac_hi; then | |
15292 | ac_lo= ac_hi= | |
15293 | break | |
15294 | fi | |
15295 | ac_mid=`expr 2 '*' $ac_mid` | |
15296 | fi | |
15297 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15298 | done | |
15299 | else | |
15300 | echo "$as_me: failed program was:" >&5 | |
15301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15302 | ||
15303 | ac_lo= ac_hi= | |
15304 | fi | |
15305 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15306 | fi | |
15307 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15308 | # Binary search between lo and hi bounds. | |
15309 | while test "x$ac_lo" != "x$ac_hi"; do | |
15310 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15311 | cat >conftest.$ac_ext <<_ACEOF | |
15312 | #line $LINENO "configure" | |
15313 | /* confdefs.h. */ | |
15314 | _ACEOF | |
15315 | cat confdefs.h >>conftest.$ac_ext | |
15316 | cat >>conftest.$ac_ext <<_ACEOF | |
15317 | /* end confdefs.h. */ | |
15318 | $ac_includes_default | |
15319 | int | |
15320 | main () | |
15321 | { | |
15322 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15323 | test_array [0] = 0 | |
15324 | ||
15325 | ; | |
15326 | return 0; | |
15327 | } | |
15328 | _ACEOF | |
15329 | rm -f conftest.$ac_objext | |
15330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15331 | (eval $ac_compile) 2>&5 | |
15332 | ac_status=$? | |
15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15334 | (exit $ac_status); } && | |
15335 | { ac_try='test -s conftest.$ac_objext' | |
15336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15337 | (eval $ac_try) 2>&5 | |
15338 | ac_status=$? | |
15339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15340 | (exit $ac_status); }; }; then | |
15341 | ac_hi=$ac_mid | |
15342 | else | |
15343 | echo "$as_me: failed program was:" >&5 | |
15344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15345 | ||
15346 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15347 | fi | |
15348 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15349 | done | |
15350 | case $ac_lo in | |
15351 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15352 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15353 | See \`config.log' for more details." >&5 | |
15354 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15355 | See \`config.log' for more details." >&2;} | |
15356 | { (exit 1); exit 1; }; } ;; | |
15357 | esac | |
15358 | else | |
15359 | if test "$cross_compiling" = yes; then | |
15360 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15361 | See \`config.log' for more details." >&5 | |
15362 | echo "$as_me: error: cannot run test program while cross compiling | |
15363 | See \`config.log' for more details." >&2;} | |
15364 | { (exit 1); exit 1; }; } | |
15365 | else | |
15366 | cat >conftest.$ac_ext <<_ACEOF | |
15367 | #line $LINENO "configure" | |
15368 | /* confdefs.h. */ | |
15369 | _ACEOF | |
15370 | cat confdefs.h >>conftest.$ac_ext | |
15371 | cat >>conftest.$ac_ext <<_ACEOF | |
15372 | /* end confdefs.h. */ | |
15373 | $ac_includes_default | |
15374 | long longval () { return (long) (sizeof (long)); } | |
15375 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
15376 | #include <stdio.h> | |
15377 | #include <stdlib.h> | |
15378 | int | |
15379 | main () | |
15380 | { | |
15381 | ||
15382 | FILE *f = fopen ("conftest.val", "w"); | |
15383 | if (! f) | |
15384 | exit (1); | |
15385 | if (((long) (sizeof (long))) < 0) | |
15386 | { | |
15387 | long i = longval (); | |
15388 | if (i != ((long) (sizeof (long)))) | |
15389 | exit (1); | |
15390 | fprintf (f, "%ld\n", i); | |
15391 | } | |
15392 | else | |
15393 | { | |
15394 | unsigned long i = ulongval (); | |
15395 | if (i != ((long) (sizeof (long)))) | |
15396 | exit (1); | |
15397 | fprintf (f, "%lu\n", i); | |
15398 | } | |
15399 | exit (ferror (f) || fclose (f) != 0); | |
15400 | ||
15401 | ; | |
15402 | return 0; | |
15403 | } | |
15404 | _ACEOF | |
15405 | rm -f conftest$ac_exeext | |
15406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15407 | (eval $ac_link) 2>&5 | |
15408 | ac_status=$? | |
15409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15412 | (eval $ac_try) 2>&5 | |
15413 | ac_status=$? | |
15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15415 | (exit $ac_status); }; }; then | |
15416 | ac_cv_sizeof_long=`cat conftest.val` | |
15417 | else | |
15418 | echo "$as_me: program exited with status $ac_status" >&5 | |
15419 | echo "$as_me: failed program was:" >&5 | |
15420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15421 | ||
15422 | ( exit $ac_status ) | |
15423 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15424 | See \`config.log' for more details." >&5 | |
15425 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15426 | See \`config.log' for more details." >&2;} | |
15427 | { (exit 1); exit 1; }; } | |
15428 | fi | |
15429 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15430 | fi | |
15431 | fi | |
15432 | rm -f conftest.val | |
15433 | else | |
15434 | ac_cv_sizeof_long=0 | |
15435 | fi | |
15436 | fi | |
15437 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
15438 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15439 | cat >>confdefs.h <<_ACEOF | |
15440 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15441 | _ACEOF | |
15442 | ||
15443 | ||
15444 | ||
15445 | case "${host}" in | |
15446 | arm-*-linux* ) | |
15447 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15448 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15449 | if test "${ac_cv_type_long_long+set}" = set; then | |
15450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15451 | else | |
15452 | cat >conftest.$ac_ext <<_ACEOF | |
15453 | #line $LINENO "configure" | |
15454 | /* confdefs.h. */ | |
15455 | _ACEOF | |
15456 | cat confdefs.h >>conftest.$ac_ext | |
15457 | cat >>conftest.$ac_ext <<_ACEOF | |
15458 | /* end confdefs.h. */ | |
15459 | $ac_includes_default | |
15460 | int | |
15461 | main () | |
15462 | { | |
15463 | if ((long long *) 0) | |
15464 | return 0; | |
15465 | if (sizeof (long long)) | |
15466 | return 0; | |
15467 | ; | |
15468 | return 0; | |
15469 | } | |
15470 | _ACEOF | |
15471 | rm -f conftest.$ac_objext | |
15472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15473 | (eval $ac_compile) 2>&5 | |
15474 | ac_status=$? | |
15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15476 | (exit $ac_status); } && | |
15477 | { ac_try='test -s conftest.$ac_objext' | |
15478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15479 | (eval $ac_try) 2>&5 | |
15480 | ac_status=$? | |
15481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15482 | (exit $ac_status); }; }; then | |
15483 | ac_cv_type_long_long=yes | |
15484 | else | |
15485 | echo "$as_me: failed program was:" >&5 | |
15486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15487 | ||
15488 | ac_cv_type_long_long=no | |
15489 | fi | |
15490 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15491 | fi | |
15492 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15493 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15494 | ||
15495 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15496 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15497 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15499 | else | |
15500 | if test "$ac_cv_type_long_long" = yes; then | |
15501 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15502 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15503 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15504 | # This bug is HP SR number 8606223364. | |
15505 | if test "$cross_compiling" = yes; then | |
15506 | # Depending upon the size, compute the lo and hi bounds. | |
15507 | cat >conftest.$ac_ext <<_ACEOF | |
15508 | #line $LINENO "configure" | |
15509 | /* confdefs.h. */ | |
15510 | _ACEOF | |
15511 | cat confdefs.h >>conftest.$ac_ext | |
15512 | cat >>conftest.$ac_ext <<_ACEOF | |
15513 | /* end confdefs.h. */ | |
15514 | $ac_includes_default | |
15515 | int | |
15516 | main () | |
15517 | { | |
15518 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15519 | test_array [0] = 0 | |
15520 | ||
15521 | ; | |
15522 | return 0; | |
15523 | } | |
15524 | _ACEOF | |
15525 | rm -f conftest.$ac_objext | |
15526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15527 | (eval $ac_compile) 2>&5 | |
15528 | ac_status=$? | |
15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15530 | (exit $ac_status); } && | |
15531 | { ac_try='test -s conftest.$ac_objext' | |
15532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15533 | (eval $ac_try) 2>&5 | |
15534 | ac_status=$? | |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15536 | (exit $ac_status); }; }; then | |
15537 | ac_lo=0 ac_mid=0 | |
15538 | while :; do | |
15539 | cat >conftest.$ac_ext <<_ACEOF | |
15540 | #line $LINENO "configure" | |
15541 | /* confdefs.h. */ | |
15542 | _ACEOF | |
15543 | cat confdefs.h >>conftest.$ac_ext | |
15544 | cat >>conftest.$ac_ext <<_ACEOF | |
15545 | /* end confdefs.h. */ | |
15546 | $ac_includes_default | |
15547 | int | |
15548 | main () | |
15549 | { | |
15550 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15551 | test_array [0] = 0 | |
15552 | ||
15553 | ; | |
15554 | return 0; | |
15555 | } | |
15556 | _ACEOF | |
15557 | rm -f conftest.$ac_objext | |
15558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15559 | (eval $ac_compile) 2>&5 | |
15560 | ac_status=$? | |
15561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15562 | (exit $ac_status); } && | |
15563 | { ac_try='test -s conftest.$ac_objext' | |
15564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15565 | (eval $ac_try) 2>&5 | |
15566 | ac_status=$? | |
15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15568 | (exit $ac_status); }; }; then | |
15569 | ac_hi=$ac_mid; break | |
15570 | else | |
15571 | echo "$as_me: failed program was:" >&5 | |
15572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15573 | ||
15574 | ac_lo=`expr $ac_mid + 1` | |
15575 | if test $ac_lo -le $ac_mid; then | |
15576 | ac_lo= ac_hi= | |
15577 | break | |
15578 | fi | |
15579 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15580 | fi | |
15581 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15582 | done | |
15583 | else | |
15584 | echo "$as_me: failed program was:" >&5 | |
15585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15586 | ||
15587 | cat >conftest.$ac_ext <<_ACEOF | |
15588 | #line $LINENO "configure" | |
15589 | /* confdefs.h. */ | |
15590 | _ACEOF | |
15591 | cat confdefs.h >>conftest.$ac_ext | |
15592 | cat >>conftest.$ac_ext <<_ACEOF | |
15593 | /* end confdefs.h. */ | |
15594 | $ac_includes_default | |
15595 | int | |
15596 | main () | |
15597 | { | |
15598 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15599 | test_array [0] = 0 | |
15600 | ||
15601 | ; | |
15602 | return 0; | |
15603 | } | |
15604 | _ACEOF | |
15605 | rm -f conftest.$ac_objext | |
15606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15607 | (eval $ac_compile) 2>&5 | |
15608 | ac_status=$? | |
15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15610 | (exit $ac_status); } && | |
15611 | { ac_try='test -s conftest.$ac_objext' | |
15612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15613 | (eval $ac_try) 2>&5 | |
15614 | ac_status=$? | |
15615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15616 | (exit $ac_status); }; }; then | |
15617 | ac_hi=-1 ac_mid=-1 | |
15618 | while :; do | |
15619 | cat >conftest.$ac_ext <<_ACEOF | |
15620 | #line $LINENO "configure" | |
15621 | /* confdefs.h. */ | |
15622 | _ACEOF | |
15623 | cat confdefs.h >>conftest.$ac_ext | |
15624 | cat >>conftest.$ac_ext <<_ACEOF | |
15625 | /* end confdefs.h. */ | |
15626 | $ac_includes_default | |
15627 | int | |
15628 | main () | |
15629 | { | |
15630 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15631 | test_array [0] = 0 | |
15632 | ||
15633 | ; | |
15634 | return 0; | |
15635 | } | |
15636 | _ACEOF | |
15637 | rm -f conftest.$ac_objext | |
15638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15639 | (eval $ac_compile) 2>&5 | |
15640 | ac_status=$? | |
15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15642 | (exit $ac_status); } && | |
15643 | { ac_try='test -s conftest.$ac_objext' | |
15644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15645 | (eval $ac_try) 2>&5 | |
15646 | ac_status=$? | |
15647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15648 | (exit $ac_status); }; }; then | |
15649 | ac_lo=$ac_mid; break | |
15650 | else | |
15651 | echo "$as_me: failed program was:" >&5 | |
15652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15653 | ||
15654 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15655 | if test $ac_mid -le $ac_hi; then | |
15656 | ac_lo= ac_hi= | |
15657 | break | |
15658 | fi | |
15659 | ac_mid=`expr 2 '*' $ac_mid` | |
15660 | fi | |
15661 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15662 | done | |
15663 | else | |
15664 | echo "$as_me: failed program was:" >&5 | |
15665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15666 | ||
15667 | ac_lo= ac_hi= | |
15668 | fi | |
15669 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15670 | fi | |
15671 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15672 | # Binary search between lo and hi bounds. | |
15673 | while test "x$ac_lo" != "x$ac_hi"; do | |
15674 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15675 | cat >conftest.$ac_ext <<_ACEOF | |
15676 | #line $LINENO "configure" | |
15677 | /* confdefs.h. */ | |
15678 | _ACEOF | |
15679 | cat confdefs.h >>conftest.$ac_ext | |
15680 | cat >>conftest.$ac_ext <<_ACEOF | |
15681 | /* end confdefs.h. */ | |
15682 | $ac_includes_default | |
15683 | int | |
15684 | main () | |
15685 | { | |
15686 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15687 | test_array [0] = 0 | |
15688 | ||
15689 | ; | |
15690 | return 0; | |
15691 | } | |
15692 | _ACEOF | |
15693 | rm -f conftest.$ac_objext | |
15694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15695 | (eval $ac_compile) 2>&5 | |
15696 | ac_status=$? | |
15697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15698 | (exit $ac_status); } && | |
15699 | { ac_try='test -s conftest.$ac_objext' | |
15700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15701 | (eval $ac_try) 2>&5 | |
15702 | ac_status=$? | |
15703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15704 | (exit $ac_status); }; }; then | |
15705 | ac_hi=$ac_mid | |
15706 | else | |
15707 | echo "$as_me: failed program was:" >&5 | |
15708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15709 | ||
15710 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15711 | fi | |
15712 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15713 | done | |
15714 | case $ac_lo in | |
15715 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15716 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15717 | See \`config.log' for more details." >&5 | |
15718 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15719 | See \`config.log' for more details." >&2;} | |
15720 | { (exit 1); exit 1; }; } ;; | |
15721 | esac | |
15722 | else | |
15723 | if test "$cross_compiling" = yes; then | |
15724 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15725 | See \`config.log' for more details." >&5 | |
15726 | echo "$as_me: error: cannot run test program while cross compiling | |
15727 | See \`config.log' for more details." >&2;} | |
15728 | { (exit 1); exit 1; }; } | |
15729 | else | |
15730 | cat >conftest.$ac_ext <<_ACEOF | |
15731 | #line $LINENO "configure" | |
15732 | /* confdefs.h. */ | |
15733 | _ACEOF | |
15734 | cat confdefs.h >>conftest.$ac_ext | |
15735 | cat >>conftest.$ac_ext <<_ACEOF | |
15736 | /* end confdefs.h. */ | |
15737 | $ac_includes_default | |
15738 | long longval () { return (long) (sizeof (long long)); } | |
15739 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
15740 | #include <stdio.h> | |
15741 | #include <stdlib.h> | |
15742 | int | |
15743 | main () | |
15744 | { | |
15745 | ||
15746 | FILE *f = fopen ("conftest.val", "w"); | |
15747 | if (! f) | |
15748 | exit (1); | |
15749 | if (((long) (sizeof (long long))) < 0) | |
15750 | { | |
15751 | long i = longval (); | |
15752 | if (i != ((long) (sizeof (long long)))) | |
15753 | exit (1); | |
15754 | fprintf (f, "%ld\n", i); | |
15755 | } | |
15756 | else | |
15757 | { | |
15758 | unsigned long i = ulongval (); | |
15759 | if (i != ((long) (sizeof (long long)))) | |
15760 | exit (1); | |
15761 | fprintf (f, "%lu\n", i); | |
15762 | } | |
15763 | exit (ferror (f) || fclose (f) != 0); | |
15764 | ||
15765 | ; | |
15766 | return 0; | |
15767 | } | |
15768 | _ACEOF | |
15769 | rm -f conftest$ac_exeext | |
15770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15771 | (eval $ac_link) 2>&5 | |
15772 | ac_status=$? | |
15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15776 | (eval $ac_try) 2>&5 | |
15777 | ac_status=$? | |
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15779 | (exit $ac_status); }; }; then | |
15780 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15781 | else | |
15782 | echo "$as_me: program exited with status $ac_status" >&5 | |
15783 | echo "$as_me: failed program was:" >&5 | |
15784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15785 | ||
15786 | ( exit $ac_status ) | |
15787 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15788 | See \`config.log' for more details." >&5 | |
15789 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15790 | See \`config.log' for more details." >&2;} | |
15791 | { (exit 1); exit 1; }; } | |
15792 | fi | |
15793 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15794 | fi | |
15795 | fi | |
15796 | rm -f conftest.val | |
15797 | else | |
15798 | ac_cv_sizeof_long_long=0 | |
15799 | fi | |
15800 | fi | |
15801 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
15802 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15803 | cat >>confdefs.h <<_ACEOF | |
15804 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15805 | _ACEOF | |
15806 | ||
15807 | ||
15808 | ;; | |
15809 | *-hp-hpux* ) | |
15810 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15811 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15812 | if test "${ac_cv_type_long_long+set}" = set; then | |
15813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15814 | else | |
15815 | cat >conftest.$ac_ext <<_ACEOF | |
15816 | #line $LINENO "configure" | |
15817 | /* confdefs.h. */ | |
15818 | _ACEOF | |
15819 | cat confdefs.h >>conftest.$ac_ext | |
15820 | cat >>conftest.$ac_ext <<_ACEOF | |
15821 | /* end confdefs.h. */ | |
15822 | $ac_includes_default | |
15823 | int | |
15824 | main () | |
15825 | { | |
15826 | if ((long long *) 0) | |
15827 | return 0; | |
15828 | if (sizeof (long long)) | |
15829 | return 0; | |
15830 | ; | |
15831 | return 0; | |
15832 | } | |
15833 | _ACEOF | |
15834 | rm -f conftest.$ac_objext | |
15835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15836 | (eval $ac_compile) 2>&5 | |
15837 | ac_status=$? | |
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15839 | (exit $ac_status); } && | |
15840 | { ac_try='test -s conftest.$ac_objext' | |
15841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15842 | (eval $ac_try) 2>&5 | |
15843 | ac_status=$? | |
15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15845 | (exit $ac_status); }; }; then | |
15846 | ac_cv_type_long_long=yes | |
15847 | else | |
15848 | echo "$as_me: failed program was:" >&5 | |
15849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15850 | ||
15851 | ac_cv_type_long_long=no | |
15852 | fi | |
15853 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15854 | fi | |
15855 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15856 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15857 | ||
15858 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15859 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15860 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15862 | else | |
15863 | if test "$ac_cv_type_long_long" = yes; then | |
15864 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15865 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15866 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15867 | # This bug is HP SR number 8606223364. | |
15868 | if test "$cross_compiling" = yes; then | |
15869 | # Depending upon the size, compute the lo and hi bounds. | |
15870 | cat >conftest.$ac_ext <<_ACEOF | |
15871 | #line $LINENO "configure" | |
15872 | /* confdefs.h. */ | |
15873 | _ACEOF | |
15874 | cat confdefs.h >>conftest.$ac_ext | |
15875 | cat >>conftest.$ac_ext <<_ACEOF | |
15876 | /* end confdefs.h. */ | |
15877 | $ac_includes_default | |
15878 | int | |
15879 | main () | |
15880 | { | |
15881 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15882 | test_array [0] = 0 | |
15883 | ||
15884 | ; | |
15885 | return 0; | |
15886 | } | |
15887 | _ACEOF | |
15888 | rm -f conftest.$ac_objext | |
15889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15890 | (eval $ac_compile) 2>&5 | |
15891 | ac_status=$? | |
15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15893 | (exit $ac_status); } && | |
15894 | { ac_try='test -s conftest.$ac_objext' | |
15895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15896 | (eval $ac_try) 2>&5 | |
15897 | ac_status=$? | |
15898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15899 | (exit $ac_status); }; }; then | |
15900 | ac_lo=0 ac_mid=0 | |
15901 | while :; do | |
15902 | cat >conftest.$ac_ext <<_ACEOF | |
15903 | #line $LINENO "configure" | |
15904 | /* confdefs.h. */ | |
15905 | _ACEOF | |
15906 | cat confdefs.h >>conftest.$ac_ext | |
15907 | cat >>conftest.$ac_ext <<_ACEOF | |
15908 | /* end confdefs.h. */ | |
15909 | $ac_includes_default | |
15910 | int | |
15911 | main () | |
15912 | { | |
15913 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15914 | test_array [0] = 0 | |
15915 | ||
15916 | ; | |
15917 | return 0; | |
15918 | } | |
15919 | _ACEOF | |
15920 | rm -f conftest.$ac_objext | |
15921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15922 | (eval $ac_compile) 2>&5 | |
15923 | ac_status=$? | |
15924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15925 | (exit $ac_status); } && | |
15926 | { ac_try='test -s conftest.$ac_objext' | |
15927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15928 | (eval $ac_try) 2>&5 | |
15929 | ac_status=$? | |
15930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15931 | (exit $ac_status); }; }; then | |
15932 | ac_hi=$ac_mid; break | |
15933 | else | |
15934 | echo "$as_me: failed program was:" >&5 | |
15935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15936 | ||
15937 | ac_lo=`expr $ac_mid + 1` | |
15938 | if test $ac_lo -le $ac_mid; then | |
15939 | ac_lo= ac_hi= | |
15940 | break | |
15941 | fi | |
15942 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15943 | fi | |
15944 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15945 | done | |
15946 | else | |
15947 | echo "$as_me: failed program was:" >&5 | |
15948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15949 | ||
15950 | cat >conftest.$ac_ext <<_ACEOF | |
15951 | #line $LINENO "configure" | |
15952 | /* confdefs.h. */ | |
15953 | _ACEOF | |
15954 | cat confdefs.h >>conftest.$ac_ext | |
15955 | cat >>conftest.$ac_ext <<_ACEOF | |
15956 | /* end confdefs.h. */ | |
15957 | $ac_includes_default | |
15958 | int | |
15959 | main () | |
15960 | { | |
15961 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15962 | test_array [0] = 0 | |
15963 | ||
15964 | ; | |
15965 | return 0; | |
15966 | } | |
15967 | _ACEOF | |
15968 | rm -f conftest.$ac_objext | |
15969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15970 | (eval $ac_compile) 2>&5 | |
15971 | ac_status=$? | |
15972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15973 | (exit $ac_status); } && | |
15974 | { ac_try='test -s conftest.$ac_objext' | |
15975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15976 | (eval $ac_try) 2>&5 | |
15977 | ac_status=$? | |
15978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15979 | (exit $ac_status); }; }; then | |
15980 | ac_hi=-1 ac_mid=-1 | |
15981 | while :; do | |
15982 | cat >conftest.$ac_ext <<_ACEOF | |
15983 | #line $LINENO "configure" | |
15984 | /* confdefs.h. */ | |
15985 | _ACEOF | |
15986 | cat confdefs.h >>conftest.$ac_ext | |
15987 | cat >>conftest.$ac_ext <<_ACEOF | |
15988 | /* end confdefs.h. */ | |
15989 | $ac_includes_default | |
15990 | int | |
15991 | main () | |
15992 | { | |
15993 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15994 | test_array [0] = 0 | |
15995 | ||
15996 | ; | |
15997 | return 0; | |
15998 | } | |
15999 | _ACEOF | |
16000 | rm -f conftest.$ac_objext | |
16001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16002 | (eval $ac_compile) 2>&5 | |
16003 | ac_status=$? | |
16004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16005 | (exit $ac_status); } && | |
16006 | { ac_try='test -s conftest.$ac_objext' | |
16007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16008 | (eval $ac_try) 2>&5 | |
16009 | ac_status=$? | |
16010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16011 | (exit $ac_status); }; }; then | |
16012 | ac_lo=$ac_mid; break | |
16013 | else | |
16014 | echo "$as_me: failed program was:" >&5 | |
16015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16016 | ||
16017 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16018 | if test $ac_mid -le $ac_hi; then | |
16019 | ac_lo= ac_hi= | |
16020 | break | |
16021 | fi | |
16022 | ac_mid=`expr 2 '*' $ac_mid` | |
16023 | fi | |
16024 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16025 | done | |
16026 | else | |
16027 | echo "$as_me: failed program was:" >&5 | |
16028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16029 | ||
16030 | ac_lo= ac_hi= | |
16031 | fi | |
16032 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16033 | fi | |
16034 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16035 | # Binary search between lo and hi bounds. | |
16036 | while test "x$ac_lo" != "x$ac_hi"; do | |
16037 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16038 | cat >conftest.$ac_ext <<_ACEOF | |
16039 | #line $LINENO "configure" | |
16040 | /* confdefs.h. */ | |
16041 | _ACEOF | |
16042 | cat confdefs.h >>conftest.$ac_ext | |
16043 | cat >>conftest.$ac_ext <<_ACEOF | |
16044 | /* end confdefs.h. */ | |
16045 | $ac_includes_default | |
16046 | int | |
16047 | main () | |
16048 | { | |
16049 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16050 | test_array [0] = 0 | |
16051 | ||
16052 | ; | |
16053 | return 0; | |
16054 | } | |
16055 | _ACEOF | |
16056 | rm -f conftest.$ac_objext | |
16057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16058 | (eval $ac_compile) 2>&5 | |
16059 | ac_status=$? | |
16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16061 | (exit $ac_status); } && | |
16062 | { ac_try='test -s conftest.$ac_objext' | |
16063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16064 | (eval $ac_try) 2>&5 | |
16065 | ac_status=$? | |
16066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16067 | (exit $ac_status); }; }; then | |
16068 | ac_hi=$ac_mid | |
16069 | else | |
16070 | echo "$as_me: failed program was:" >&5 | |
16071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16072 | ||
16073 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16074 | fi | |
16075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16076 | done | |
16077 | case $ac_lo in | |
16078 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16079 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16080 | See \`config.log' for more details." >&5 | |
16081 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16082 | See \`config.log' for more details." >&2;} | |
16083 | { (exit 1); exit 1; }; } ;; | |
16084 | esac | |
16085 | else | |
16086 | if test "$cross_compiling" = yes; then | |
16087 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16088 | See \`config.log' for more details." >&5 | |
16089 | echo "$as_me: error: cannot run test program while cross compiling | |
16090 | See \`config.log' for more details." >&2;} | |
16091 | { (exit 1); exit 1; }; } | |
16092 | else | |
16093 | cat >conftest.$ac_ext <<_ACEOF | |
16094 | #line $LINENO "configure" | |
16095 | /* confdefs.h. */ | |
16096 | _ACEOF | |
16097 | cat confdefs.h >>conftest.$ac_ext | |
16098 | cat >>conftest.$ac_ext <<_ACEOF | |
16099 | /* end confdefs.h. */ | |
16100 | $ac_includes_default | |
16101 | long longval () { return (long) (sizeof (long long)); } | |
16102 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
16103 | #include <stdio.h> | |
16104 | #include <stdlib.h> | |
16105 | int | |
16106 | main () | |
16107 | { | |
16108 | ||
16109 | FILE *f = fopen ("conftest.val", "w"); | |
16110 | if (! f) | |
16111 | exit (1); | |
16112 | if (((long) (sizeof (long long))) < 0) | |
16113 | { | |
16114 | long i = longval (); | |
16115 | if (i != ((long) (sizeof (long long)))) | |
16116 | exit (1); | |
16117 | fprintf (f, "%ld\n", i); | |
16118 | } | |
16119 | else | |
16120 | { | |
16121 | unsigned long i = ulongval (); | |
16122 | if (i != ((long) (sizeof (long long)))) | |
16123 | exit (1); | |
16124 | fprintf (f, "%lu\n", i); | |
16125 | } | |
16126 | exit (ferror (f) || fclose (f) != 0); | |
16127 | ||
16128 | ; | |
16129 | return 0; | |
16130 | } | |
16131 | _ACEOF | |
16132 | rm -f conftest$ac_exeext | |
16133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16134 | (eval $ac_link) 2>&5 | |
16135 | ac_status=$? | |
16136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16139 | (eval $ac_try) 2>&5 | |
16140 | ac_status=$? | |
16141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16142 | (exit $ac_status); }; }; then | |
16143 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16144 | else | |
16145 | echo "$as_me: program exited with status $ac_status" >&5 | |
16146 | echo "$as_me: failed program was:" >&5 | |
16147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16148 | ||
16149 | ( exit $ac_status ) | |
16150 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16151 | See \`config.log' for more details." >&5 | |
16152 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16153 | See \`config.log' for more details." >&2;} | |
16154 | { (exit 1); exit 1; }; } | |
16155 | fi | |
16156 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16157 | fi | |
16158 | fi | |
16159 | rm -f conftest.val | |
16160 | else | |
16161 | ac_cv_sizeof_long_long=0 | |
16162 | fi | |
16163 | fi | |
16164 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
16165 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16166 | cat >>confdefs.h <<_ACEOF | |
16167 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16168 | _ACEOF | |
16169 | ||
16170 | ||
16171 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16172 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16173 | fi | |
16174 | ;; | |
16175 | * ) | |
16176 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16177 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16178 | if test "${ac_cv_type_long_long+set}" = set; then | |
16179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16180 | else | |
16181 | cat >conftest.$ac_ext <<_ACEOF | |
16182 | #line $LINENO "configure" | |
16183 | /* confdefs.h. */ | |
16184 | _ACEOF | |
16185 | cat confdefs.h >>conftest.$ac_ext | |
16186 | cat >>conftest.$ac_ext <<_ACEOF | |
16187 | /* end confdefs.h. */ | |
16188 | $ac_includes_default | |
16189 | int | |
16190 | main () | |
16191 | { | |
16192 | if ((long long *) 0) | |
16193 | return 0; | |
16194 | if (sizeof (long long)) | |
16195 | return 0; | |
16196 | ; | |
16197 | return 0; | |
16198 | } | |
16199 | _ACEOF | |
16200 | rm -f conftest.$ac_objext | |
16201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16202 | (eval $ac_compile) 2>&5 | |
16203 | ac_status=$? | |
16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16205 | (exit $ac_status); } && | |
16206 | { ac_try='test -s conftest.$ac_objext' | |
16207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16208 | (eval $ac_try) 2>&5 | |
16209 | ac_status=$? | |
16210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16211 | (exit $ac_status); }; }; then | |
16212 | ac_cv_type_long_long=yes | |
16213 | else | |
16214 | echo "$as_me: failed program was:" >&5 | |
16215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16216 | ||
16217 | ac_cv_type_long_long=no | |
16218 | fi | |
16219 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16220 | fi | |
16221 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16222 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16223 | ||
16224 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16225 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16226 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16228 | else | |
16229 | if test "$ac_cv_type_long_long" = yes; then | |
16230 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16231 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16232 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16233 | # This bug is HP SR number 8606223364. | |
16234 | if test "$cross_compiling" = yes; then | |
16235 | # Depending upon the size, compute the lo and hi bounds. | |
16236 | cat >conftest.$ac_ext <<_ACEOF | |
16237 | #line $LINENO "configure" | |
16238 | /* confdefs.h. */ | |
16239 | _ACEOF | |
16240 | cat confdefs.h >>conftest.$ac_ext | |
16241 | cat >>conftest.$ac_ext <<_ACEOF | |
16242 | /* end confdefs.h. */ | |
16243 | $ac_includes_default | |
16244 | int | |
16245 | main () | |
16246 | { | |
16247 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16248 | test_array [0] = 0 | |
16249 | ||
16250 | ; | |
16251 | return 0; | |
16252 | } | |
16253 | _ACEOF | |
16254 | rm -f conftest.$ac_objext | |
16255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16256 | (eval $ac_compile) 2>&5 | |
16257 | ac_status=$? | |
16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16259 | (exit $ac_status); } && | |
16260 | { ac_try='test -s conftest.$ac_objext' | |
16261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16262 | (eval $ac_try) 2>&5 | |
16263 | ac_status=$? | |
16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16265 | (exit $ac_status); }; }; then | |
16266 | ac_lo=0 ac_mid=0 | |
16267 | while :; do | |
16268 | cat >conftest.$ac_ext <<_ACEOF | |
16269 | #line $LINENO "configure" | |
16270 | /* confdefs.h. */ | |
16271 | _ACEOF | |
16272 | cat confdefs.h >>conftest.$ac_ext | |
16273 | cat >>conftest.$ac_ext <<_ACEOF | |
16274 | /* end confdefs.h. */ | |
16275 | $ac_includes_default | |
16276 | int | |
16277 | main () | |
16278 | { | |
16279 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16280 | test_array [0] = 0 | |
16281 | ||
16282 | ; | |
16283 | return 0; | |
16284 | } | |
16285 | _ACEOF | |
16286 | rm -f conftest.$ac_objext | |
16287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16288 | (eval $ac_compile) 2>&5 | |
16289 | ac_status=$? | |
16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16291 | (exit $ac_status); } && | |
16292 | { ac_try='test -s conftest.$ac_objext' | |
16293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16294 | (eval $ac_try) 2>&5 | |
16295 | ac_status=$? | |
16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16297 | (exit $ac_status); }; }; then | |
16298 | ac_hi=$ac_mid; break | |
16299 | else | |
16300 | echo "$as_me: failed program was:" >&5 | |
16301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16302 | ||
16303 | ac_lo=`expr $ac_mid + 1` | |
16304 | if test $ac_lo -le $ac_mid; then | |
16305 | ac_lo= ac_hi= | |
16306 | break | |
16307 | fi | |
16308 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16309 | fi | |
16310 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16311 | done | |
16312 | else | |
16313 | echo "$as_me: failed program was:" >&5 | |
16314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16315 | ||
16316 | cat >conftest.$ac_ext <<_ACEOF | |
16317 | #line $LINENO "configure" | |
16318 | /* confdefs.h. */ | |
16319 | _ACEOF | |
16320 | cat confdefs.h >>conftest.$ac_ext | |
16321 | cat >>conftest.$ac_ext <<_ACEOF | |
16322 | /* end confdefs.h. */ | |
16323 | $ac_includes_default | |
16324 | int | |
16325 | main () | |
16326 | { | |
16327 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16328 | test_array [0] = 0 | |
16329 | ||
16330 | ; | |
16331 | return 0; | |
16332 | } | |
16333 | _ACEOF | |
16334 | rm -f conftest.$ac_objext | |
16335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16336 | (eval $ac_compile) 2>&5 | |
16337 | ac_status=$? | |
16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16339 | (exit $ac_status); } && | |
16340 | { ac_try='test -s conftest.$ac_objext' | |
16341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16342 | (eval $ac_try) 2>&5 | |
16343 | ac_status=$? | |
16344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16345 | (exit $ac_status); }; }; then | |
16346 | ac_hi=-1 ac_mid=-1 | |
16347 | while :; do | |
16348 | cat >conftest.$ac_ext <<_ACEOF | |
16349 | #line $LINENO "configure" | |
16350 | /* confdefs.h. */ | |
16351 | _ACEOF | |
16352 | cat confdefs.h >>conftest.$ac_ext | |
16353 | cat >>conftest.$ac_ext <<_ACEOF | |
16354 | /* end confdefs.h. */ | |
16355 | $ac_includes_default | |
16356 | int | |
16357 | main () | |
16358 | { | |
16359 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16360 | test_array [0] = 0 | |
16361 | ||
16362 | ; | |
16363 | return 0; | |
16364 | } | |
16365 | _ACEOF | |
16366 | rm -f conftest.$ac_objext | |
16367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16368 | (eval $ac_compile) 2>&5 | |
16369 | ac_status=$? | |
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16371 | (exit $ac_status); } && | |
16372 | { ac_try='test -s conftest.$ac_objext' | |
16373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16374 | (eval $ac_try) 2>&5 | |
16375 | ac_status=$? | |
16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16377 | (exit $ac_status); }; }; then | |
16378 | ac_lo=$ac_mid; break | |
16379 | else | |
16380 | echo "$as_me: failed program was:" >&5 | |
16381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16382 | ||
16383 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16384 | if test $ac_mid -le $ac_hi; then | |
16385 | ac_lo= ac_hi= | |
16386 | break | |
16387 | fi | |
16388 | ac_mid=`expr 2 '*' $ac_mid` | |
16389 | fi | |
16390 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16391 | done | |
16392 | else | |
16393 | echo "$as_me: failed program was:" >&5 | |
16394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16395 | ||
16396 | ac_lo= ac_hi= | |
16397 | fi | |
16398 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16399 | fi | |
16400 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16401 | # Binary search between lo and hi bounds. | |
16402 | while test "x$ac_lo" != "x$ac_hi"; do | |
16403 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16404 | cat >conftest.$ac_ext <<_ACEOF | |
16405 | #line $LINENO "configure" | |
16406 | /* confdefs.h. */ | |
16407 | _ACEOF | |
16408 | cat confdefs.h >>conftest.$ac_ext | |
16409 | cat >>conftest.$ac_ext <<_ACEOF | |
16410 | /* end confdefs.h. */ | |
16411 | $ac_includes_default | |
16412 | int | |
16413 | main () | |
16414 | { | |
16415 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16416 | test_array [0] = 0 | |
16417 | ||
16418 | ; | |
16419 | return 0; | |
16420 | } | |
16421 | _ACEOF | |
16422 | rm -f conftest.$ac_objext | |
16423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16424 | (eval $ac_compile) 2>&5 | |
16425 | ac_status=$? | |
16426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16427 | (exit $ac_status); } && | |
16428 | { ac_try='test -s conftest.$ac_objext' | |
16429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16430 | (eval $ac_try) 2>&5 | |
16431 | ac_status=$? | |
16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16433 | (exit $ac_status); }; }; then | |
16434 | ac_hi=$ac_mid | |
16435 | else | |
16436 | echo "$as_me: failed program was:" >&5 | |
16437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16438 | ||
16439 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16440 | fi | |
16441 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16442 | done | |
16443 | case $ac_lo in | |
16444 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16445 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16446 | See \`config.log' for more details." >&5 | |
16447 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16448 | See \`config.log' for more details." >&2;} | |
16449 | { (exit 1); exit 1; }; } ;; | |
16450 | esac | |
16451 | else | |
16452 | if test "$cross_compiling" = yes; then | |
16453 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16454 | See \`config.log' for more details." >&5 | |
16455 | echo "$as_me: error: cannot run test program while cross compiling | |
16456 | See \`config.log' for more details." >&2;} | |
16457 | { (exit 1); exit 1; }; } | |
16458 | else | |
16459 | cat >conftest.$ac_ext <<_ACEOF | |
16460 | #line $LINENO "configure" | |
16461 | /* confdefs.h. */ | |
16462 | _ACEOF | |
16463 | cat confdefs.h >>conftest.$ac_ext | |
16464 | cat >>conftest.$ac_ext <<_ACEOF | |
16465 | /* end confdefs.h. */ | |
16466 | $ac_includes_default | |
16467 | long longval () { return (long) (sizeof (long long)); } | |
16468 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
16469 | #include <stdio.h> | |
16470 | #include <stdlib.h> | |
16471 | int | |
16472 | main () | |
16473 | { | |
16474 | ||
16475 | FILE *f = fopen ("conftest.val", "w"); | |
16476 | if (! f) | |
16477 | exit (1); | |
16478 | if (((long) (sizeof (long long))) < 0) | |
16479 | { | |
16480 | long i = longval (); | |
16481 | if (i != ((long) (sizeof (long long)))) | |
16482 | exit (1); | |
16483 | fprintf (f, "%ld\n", i); | |
16484 | } | |
16485 | else | |
16486 | { | |
16487 | unsigned long i = ulongval (); | |
16488 | if (i != ((long) (sizeof (long long)))) | |
16489 | exit (1); | |
16490 | fprintf (f, "%lu\n", i); | |
16491 | } | |
16492 | exit (ferror (f) || fclose (f) != 0); | |
16493 | ||
16494 | ; | |
16495 | return 0; | |
16496 | } | |
16497 | _ACEOF | |
16498 | rm -f conftest$ac_exeext | |
16499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16500 | (eval $ac_link) 2>&5 | |
16501 | ac_status=$? | |
16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16505 | (eval $ac_try) 2>&5 | |
16506 | ac_status=$? | |
16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16508 | (exit $ac_status); }; }; then | |
16509 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16510 | else | |
16511 | echo "$as_me: program exited with status $ac_status" >&5 | |
16512 | echo "$as_me: failed program was:" >&5 | |
16513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16514 | ||
16515 | ( exit $ac_status ) | |
16516 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16517 | See \`config.log' for more details." >&5 | |
16518 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16519 | See \`config.log' for more details." >&2;} | |
16520 | { (exit 1); exit 1; }; } | |
16521 | fi | |
16522 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16523 | fi | |
16524 | fi | |
16525 | rm -f conftest.val | |
16526 | else | |
16527 | ac_cv_sizeof_long_long=0 | |
16528 | fi | |
16529 | fi | |
16530 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
16531 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16532 | cat >>confdefs.h <<_ACEOF | |
16533 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16534 | _ACEOF | |
16535 | ||
16536 | ||
16537 | esac | |
16538 | ||
16539 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
16540 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16541 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16543 | else | |
16544 | ||
16545 | if test "$cross_compiling" = yes; then | |
16546 | ||
16547 | case "${host}" in | |
16548 | *-pc-msdosdjgpp ) | |
16549 | wx_cv_sizeof_wchar_t=0 | |
16550 | ;; | |
16551 | * ) | |
16552 | wx_cv_sizeof_wchar_t=4 | |
16553 | ;; | |
16554 | esac | |
16555 | ||
16556 | ||
16557 | else | |
16558 | cat >conftest.$ac_ext <<_ACEOF | |
16559 | #line $LINENO "configure" | |
16560 | /* confdefs.h. */ | |
16561 | _ACEOF | |
16562 | cat confdefs.h >>conftest.$ac_ext | |
16563 | cat >>conftest.$ac_ext <<_ACEOF | |
16564 | /* end confdefs.h. */ | |
16565 | ||
16566 | /* DJGPP only has fake wchar_t: */ | |
16567 | #ifdef __DJGPP__ | |
16568 | # error "fake wchar_t" | |
16569 | #endif | |
16570 | #ifdef HAVE_WCHAR_H | |
16571 | # ifdef __CYGWIN__ | |
16572 | # include <stddef.h> | |
16573 | # endif | |
16574 | # include <wchar.h> | |
16575 | #endif | |
16576 | #ifdef HAVE_STDLIB_H | |
16577 | # include <stdlib.h> | |
16578 | #endif | |
16579 | #include <stdio.h> | |
16580 | int main() | |
16581 | { | |
16582 | FILE *f=fopen("conftestval", "w"); | |
16583 | if (!f) exit(1); | |
16584 | fprintf(f, "%i", sizeof(wchar_t)); | |
16585 | exit(0); | |
16586 | } | |
16587 | ||
16588 | _ACEOF | |
16589 | rm -f conftest$ac_exeext | |
16590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16591 | (eval $ac_link) 2>&5 | |
16592 | ac_status=$? | |
16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16596 | (eval $ac_try) 2>&5 | |
16597 | ac_status=$? | |
16598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16599 | (exit $ac_status); }; }; then | |
16600 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
16601 | else | |
16602 | echo "$as_me: program exited with status $ac_status" >&5 | |
16603 | echo "$as_me: failed program was:" >&5 | |
16604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16605 | ||
16606 | ( exit $ac_status ) | |
16607 | wx_cv_sizeof_wchar_t=0 | |
16608 | fi | |
16609 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16610 | fi | |
16611 | ||
16612 | fi | |
16613 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
16614 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
16615 | ||
16616 | cat >>confdefs.h <<_ACEOF | |
16617 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
16618 | _ACEOF | |
16619 | ||
16620 | ||
16621 | # Check whether --enable-largefile or --disable-largefile was given. | |
16622 | if test "${enable_largefile+set}" = set; then | |
16623 | enableval="$enable_largefile" | |
16624 | ||
16625 | fi; | |
16626 | if test "$enable_largefile" != no; then | |
16627 | wx_largefile=no | |
16628 | ||
16629 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16630 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16631 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16633 | else | |
16634 | ||
16635 | cat >conftest.$ac_ext <<_ACEOF | |
16636 | #line $LINENO "configure" | |
16637 | /* confdefs.h. */ | |
16638 | _ACEOF | |
16639 | cat confdefs.h >>conftest.$ac_ext | |
16640 | cat >>conftest.$ac_ext <<_ACEOF | |
16641 | /* end confdefs.h. */ | |
16642 | #define _FILE_OFFSET_BITS 64 | |
16643 | #include <sys/types.h> | |
16644 | int | |
16645 | main () | |
16646 | { | |
16647 | typedef struct { | |
16648 | unsigned int field: sizeof(off_t) == 8; | |
16649 | } wxlf; | |
16650 | ||
16651 | ; | |
16652 | return 0; | |
16653 | } | |
16654 | _ACEOF | |
16655 | rm -f conftest.$ac_objext | |
16656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16657 | (eval $ac_compile) 2>&5 | |
16658 | ac_status=$? | |
16659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16660 | (exit $ac_status); } && | |
16661 | { ac_try='test -s conftest.$ac_objext' | |
16662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16663 | (eval $ac_try) 2>&5 | |
16664 | ac_status=$? | |
16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16666 | (exit $ac_status); }; }; then | |
16667 | ac_cv_sys_file_offset_bits=64 | |
16668 | else | |
16669 | echo "$as_me: failed program was:" >&5 | |
16670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16671 | ||
16672 | ac_cv_sys_file_offset_bits=no | |
16673 | fi | |
16674 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16675 | ||
16676 | ||
16677 | fi | |
16678 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16679 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
16680 | ||
16681 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16682 | wx_largefile=yes | |
16683 | cat >>confdefs.h <<_ACEOF | |
16684 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
16685 | _ACEOF | |
16686 | ||
16687 | fi | |
16688 | ||
16689 | if test "x$wx_largefile" != "xyes"; then | |
16690 | ||
16691 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16692 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16693 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16695 | else | |
16696 | ||
16697 | cat >conftest.$ac_ext <<_ACEOF | |
16698 | #line $LINENO "configure" | |
16699 | /* confdefs.h. */ | |
16700 | _ACEOF | |
16701 | cat confdefs.h >>conftest.$ac_ext | |
16702 | cat >>conftest.$ac_ext <<_ACEOF | |
16703 | /* end confdefs.h. */ | |
16704 | #define _LARGE_FILES 1 | |
16705 | #include <sys/types.h> | |
16706 | int | |
16707 | main () | |
16708 | { | |
16709 | typedef struct { | |
16710 | unsigned int field: sizeof(off_t) == 8; | |
16711 | } wxlf; | |
16712 | ||
16713 | ; | |
16714 | return 0; | |
16715 | } | |
16716 | _ACEOF | |
16717 | rm -f conftest.$ac_objext | |
16718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16719 | (eval $ac_compile) 2>&5 | |
16720 | ac_status=$? | |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 | (exit $ac_status); } && | |
16723 | { ac_try='test -s conftest.$ac_objext' | |
16724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16725 | (eval $ac_try) 2>&5 | |
16726 | ac_status=$? | |
16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16728 | (exit $ac_status); }; }; then | |
16729 | ac_cv_sys_large_files=1 | |
16730 | else | |
16731 | echo "$as_me: failed program was:" >&5 | |
16732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16733 | ||
16734 | ac_cv_sys_large_files=no | |
16735 | fi | |
16736 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16737 | ||
16738 | ||
16739 | fi | |
16740 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16741 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
16742 | ||
16743 | if test "$ac_cv_sys_large_files" != no; then | |
16744 | wx_largefile=yes | |
16745 | cat >>confdefs.h <<_ACEOF | |
16746 | #define _LARGE_FILES $ac_cv_sys_large_files | |
16747 | _ACEOF | |
16748 | ||
16749 | fi | |
16750 | ||
16751 | fi | |
16752 | ||
16753 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
16754 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
16755 | if test "x$wx_largefile" = "xyes"; then | |
16756 | cat >>confdefs.h <<\_ACEOF | |
16757 | #define HAVE_LARGEFILE_SUPPORT 1 | |
16758 | _ACEOF | |
16759 | ||
16760 | fi | |
16761 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
16762 | echo "${ECHO_T}$wx_largefile" >&6 | |
16763 | fi | |
16764 | ||
16765 | ||
16766 | if test "x$wx_largefile" = "xyes"; then | |
16767 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
16768 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
16769 | else | |
16770 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
16771 | fi | |
16772 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
16773 | fi | |
16774 | ||
16775 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
16776 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16777 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16779 | else | |
16780 | ac_cv_c_bigendian=unknown | |
16781 | # See if sys/param.h defines the BYTE_ORDER macro. | |
16782 | cat >conftest.$ac_ext <<_ACEOF | |
16783 | #line $LINENO "configure" | |
16784 | /* confdefs.h. */ | |
16785 | _ACEOF | |
16786 | cat confdefs.h >>conftest.$ac_ext | |
16787 | cat >>conftest.$ac_ext <<_ACEOF | |
16788 | /* end confdefs.h. */ | |
16789 | #include <sys/types.h> | |
16790 | #include <sys/param.h> | |
16791 | int | |
16792 | main () | |
16793 | { | |
16794 | ||
16795 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16796 | bogus endian macros | |
16797 | #endif | |
16798 | ; | |
16799 | return 0; | |
16800 | } | |
16801 | _ACEOF | |
16802 | rm -f conftest.$ac_objext | |
16803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16804 | (eval $ac_compile) 2>&5 | |
16805 | ac_status=$? | |
16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16807 | (exit $ac_status); } && | |
16808 | { ac_try='test -s conftest.$ac_objext' | |
16809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16810 | (eval $ac_try) 2>&5 | |
16811 | ac_status=$? | |
16812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16813 | (exit $ac_status); }; }; then | |
16814 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
16815 | cat >conftest.$ac_ext <<_ACEOF | |
16816 | #line $LINENO "configure" | |
16817 | /* confdefs.h. */ | |
16818 | _ACEOF | |
16819 | cat confdefs.h >>conftest.$ac_ext | |
16820 | cat >>conftest.$ac_ext <<_ACEOF | |
16821 | /* end confdefs.h. */ | |
16822 | #include <sys/types.h> | |
16823 | #include <sys/param.h> | |
16824 | int | |
16825 | main () | |
16826 | { | |
16827 | ||
16828 | #if BYTE_ORDER != BIG_ENDIAN | |
16829 | not big endian | |
16830 | #endif | |
16831 | ; | |
16832 | return 0; | |
16833 | } | |
16834 | _ACEOF | |
16835 | rm -f conftest.$ac_objext | |
16836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16837 | (eval $ac_compile) 2>&5 | |
16838 | ac_status=$? | |
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16840 | (exit $ac_status); } && | |
16841 | { ac_try='test -s conftest.$ac_objext' | |
16842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16843 | (eval $ac_try) 2>&5 | |
16844 | ac_status=$? | |
16845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16846 | (exit $ac_status); }; }; then | |
16847 | ac_cv_c_bigendian=yes | |
16848 | else | |
16849 | echo "$as_me: failed program was:" >&5 | |
16850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16851 | ||
16852 | ac_cv_c_bigendian=no | |
16853 | fi | |
16854 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16855 | else | |
16856 | echo "$as_me: failed program was:" >&5 | |
16857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16858 | ||
16859 | fi | |
16860 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16861 | if test $ac_cv_c_bigendian = unknown; then | |
16862 | if test "$cross_compiling" = yes; then | |
16863 | ac_cv_c_bigendian=unknown | |
16864 | else | |
16865 | cat >conftest.$ac_ext <<_ACEOF | |
16866 | #line $LINENO "configure" | |
16867 | /* confdefs.h. */ | |
16868 | _ACEOF | |
16869 | cat confdefs.h >>conftest.$ac_ext | |
16870 | cat >>conftest.$ac_ext <<_ACEOF | |
16871 | /* end confdefs.h. */ | |
16872 | main () { | |
16873 | /* Are we little or big endian? From Harbison&Steele. */ | |
16874 | union | |
16875 | { | |
16876 | long l; | |
16877 | char c[sizeof (long)]; | |
16878 | } u; | |
16879 | u.l = 1; | |
16880 | exit (u.c[sizeof (long) - 1] == 1); | |
16881 | } | |
16882 | _ACEOF | |
16883 | rm -f conftest$ac_exeext | |
16884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16885 | (eval $ac_link) 2>&5 | |
16886 | ac_status=$? | |
16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16890 | (eval $ac_try) 2>&5 | |
16891 | ac_status=$? | |
16892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16893 | (exit $ac_status); }; }; then | |
16894 | ac_cv_c_bigendian=no | |
16895 | else | |
16896 | echo "$as_me: program exited with status $ac_status" >&5 | |
16897 | echo "$as_me: failed program was:" >&5 | |
16898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16899 | ||
16900 | ( exit $ac_status ) | |
16901 | ac_cv_c_bigendian=yes | |
16902 | fi | |
16903 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16904 | fi | |
16905 | fi | |
16906 | fi | |
16907 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
16908 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
16909 | if test $ac_cv_c_bigendian = unknown; then | |
16910 | { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5 | |
16911 | echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;} | |
16912 | fi | |
16913 | if test $ac_cv_c_bigendian = yes; then | |
16914 | cat >>confdefs.h <<\_ACEOF | |
16915 | #define WORDS_BIGENDIAN 1 | |
16916 | _ACEOF | |
16917 | ||
16918 | fi | |
16919 | ||
16920 | ||
16921 | ||
16922 | ac_ext=cc | |
16923 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16924 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16925 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16926 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16927 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16928 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
16929 | if test -z "$CXXCPP"; then | |
16930 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
16931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16932 | else | |
16933 | # Double quotes because CXXCPP needs to be expanded | |
16934 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16935 | do | |
16936 | ac_preproc_ok=false | |
16937 | for ac_cxx_preproc_warn_flag in '' yes | |
16938 | do | |
16939 | # Use a header file that comes with gcc, so configuring glibc | |
16940 | # with a fresh cross-compiler works. | |
16941 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16942 | # <limits.h> exists even on freestanding compilers. | |
16943 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16944 | # not just through cpp. "Syntax error" is here to catch this case. | |
16945 | cat >conftest.$ac_ext <<_ACEOF | |
16946 | #line $LINENO "configure" | |
16947 | /* confdefs.h. */ | |
16948 | _ACEOF | |
16949 | cat confdefs.h >>conftest.$ac_ext | |
16950 | cat >>conftest.$ac_ext <<_ACEOF | |
16951 | /* end confdefs.h. */ | |
16952 | #ifdef __STDC__ | |
16953 | # include <limits.h> | |
16954 | #else | |
16955 | # include <assert.h> | |
16956 | #endif | |
16957 | Syntax error | |
16958 | _ACEOF | |
16959 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16961 | ac_status=$? | |
16962 | grep -v '^ *+' conftest.er1 >conftest.err | |
16963 | rm -f conftest.er1 | |
16964 | cat conftest.err >&5 | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); } >/dev/null; then | |
16967 | if test -s conftest.err; then | |
16968 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16969 | else | |
16970 | ac_cpp_err= | |
16971 | fi | |
16972 | else | |
16973 | ac_cpp_err=yes | |
16974 | fi | |
16975 | if test -z "$ac_cpp_err"; then | |
16976 | : | |
16977 | else | |
16978 | echo "$as_me: failed program was:" >&5 | |
16979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16980 | ||
16981 | # Broken: fails on valid input. | |
16982 | continue | |
16983 | fi | |
16984 | rm -f conftest.err conftest.$ac_ext | |
16985 | ||
16986 | # OK, works on sane cases. Now check whether non-existent headers | |
16987 | # can be detected and how. | |
16988 | cat >conftest.$ac_ext <<_ACEOF | |
16989 | #line $LINENO "configure" | |
16990 | /* confdefs.h. */ | |
16991 | _ACEOF | |
16992 | cat confdefs.h >>conftest.$ac_ext | |
16993 | cat >>conftest.$ac_ext <<_ACEOF | |
16994 | /* end confdefs.h. */ | |
16995 | #include <ac_nonexistent.h> | |
16996 | _ACEOF | |
16997 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16998 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16999 | ac_status=$? | |
17000 | grep -v '^ *+' conftest.er1 >conftest.err | |
17001 | rm -f conftest.er1 | |
17002 | cat conftest.err >&5 | |
17003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17004 | (exit $ac_status); } >/dev/null; then | |
17005 | if test -s conftest.err; then | |
17006 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17007 | else | |
17008 | ac_cpp_err= | |
17009 | fi | |
17010 | else | |
17011 | ac_cpp_err=yes | |
17012 | fi | |
17013 | if test -z "$ac_cpp_err"; then | |
17014 | # Broken: success on invalid input. | |
17015 | continue | |
17016 | else | |
17017 | echo "$as_me: failed program was:" >&5 | |
17018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17019 | ||
17020 | # Passes both tests. | |
17021 | ac_preproc_ok=: | |
17022 | break | |
17023 | fi | |
17024 | rm -f conftest.err conftest.$ac_ext | |
17025 | ||
17026 | done | |
17027 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17028 | rm -f conftest.err conftest.$ac_ext | |
17029 | if $ac_preproc_ok; then | |
17030 | break | |
17031 | fi | |
17032 | ||
17033 | done | |
17034 | ac_cv_prog_CXXCPP=$CXXCPP | |
17035 | ||
17036 | fi | |
17037 | CXXCPP=$ac_cv_prog_CXXCPP | |
17038 | else | |
17039 | ac_cv_prog_CXXCPP=$CXXCPP | |
17040 | fi | |
17041 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17042 | echo "${ECHO_T}$CXXCPP" >&6 | |
17043 | ac_preproc_ok=false | |
17044 | for ac_cxx_preproc_warn_flag in '' yes | |
17045 | do | |
17046 | # Use a header file that comes with gcc, so configuring glibc | |
17047 | # with a fresh cross-compiler works. | |
17048 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17049 | # <limits.h> exists even on freestanding compilers. | |
17050 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17051 | # not just through cpp. "Syntax error" is here to catch this case. | |
17052 | cat >conftest.$ac_ext <<_ACEOF | |
17053 | #line $LINENO "configure" | |
17054 | /* confdefs.h. */ | |
17055 | _ACEOF | |
17056 | cat confdefs.h >>conftest.$ac_ext | |
17057 | cat >>conftest.$ac_ext <<_ACEOF | |
17058 | /* end confdefs.h. */ | |
17059 | #ifdef __STDC__ | |
17060 | # include <limits.h> | |
17061 | #else | |
17062 | # include <assert.h> | |
17063 | #endif | |
17064 | Syntax error | |
17065 | _ACEOF | |
17066 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17067 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17068 | ac_status=$? | |
17069 | grep -v '^ *+' conftest.er1 >conftest.err | |
17070 | rm -f conftest.er1 | |
17071 | cat conftest.err >&5 | |
17072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17073 | (exit $ac_status); } >/dev/null; then | |
17074 | if test -s conftest.err; then | |
17075 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17076 | else | |
17077 | ac_cpp_err= | |
17078 | fi | |
17079 | else | |
17080 | ac_cpp_err=yes | |
17081 | fi | |
17082 | if test -z "$ac_cpp_err"; then | |
17083 | : | |
17084 | else | |
17085 | echo "$as_me: failed program was:" >&5 | |
17086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17087 | ||
17088 | # Broken: fails on valid input. | |
17089 | continue | |
17090 | fi | |
17091 | rm -f conftest.err conftest.$ac_ext | |
17092 | ||
17093 | # OK, works on sane cases. Now check whether non-existent headers | |
17094 | # can be detected and how. | |
17095 | cat >conftest.$ac_ext <<_ACEOF | |
17096 | #line $LINENO "configure" | |
17097 | /* confdefs.h. */ | |
17098 | _ACEOF | |
17099 | cat confdefs.h >>conftest.$ac_ext | |
17100 | cat >>conftest.$ac_ext <<_ACEOF | |
17101 | /* end confdefs.h. */ | |
17102 | #include <ac_nonexistent.h> | |
17103 | _ACEOF | |
17104 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17106 | ac_status=$? | |
17107 | grep -v '^ *+' conftest.er1 >conftest.err | |
17108 | rm -f conftest.er1 | |
17109 | cat conftest.err >&5 | |
17110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17111 | (exit $ac_status); } >/dev/null; then | |
17112 | if test -s conftest.err; then | |
17113 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17114 | else | |
17115 | ac_cpp_err= | |
17116 | fi | |
17117 | else | |
17118 | ac_cpp_err=yes | |
17119 | fi | |
17120 | if test -z "$ac_cpp_err"; then | |
17121 | # Broken: success on invalid input. | |
17122 | continue | |
17123 | else | |
17124 | echo "$as_me: failed program was:" >&5 | |
17125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17126 | ||
17127 | # Passes both tests. | |
17128 | ac_preproc_ok=: | |
17129 | break | |
17130 | fi | |
17131 | rm -f conftest.err conftest.$ac_ext | |
17132 | ||
17133 | done | |
17134 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17135 | rm -f conftest.err conftest.$ac_ext | |
17136 | if $ac_preproc_ok; then | |
17137 | : | |
17138 | else | |
17139 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17140 | See \`config.log' for more details." >&5 | |
17141 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17142 | See \`config.log' for more details." >&2;} | |
17143 | { (exit 1); exit 1; }; } | |
17144 | fi | |
17145 | ||
17146 | ac_ext=cc | |
17147 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17151 | ||
17152 | ||
17153 | ||
17154 | if test "$cross_compiling" = "yes"; then | |
17155 | cat >>confdefs.h <<\_ACEOF | |
17156 | #define wxUSE_IOSTREAMH 1 | |
17157 | _ACEOF | |
17158 | ||
17159 | else | |
17160 | ||
17161 | ||
17162 | ac_ext=cc | |
17163 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17167 | ||
17168 | ||
17169 | ||
17170 | for ac_header in iostream | |
17171 | do | |
17172 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17178 | fi | |
17179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17180 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17181 | else | |
17182 | # Is the header compilable? | |
17183 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17184 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17185 | cat >conftest.$ac_ext <<_ACEOF | |
17186 | #line $LINENO "configure" | |
17187 | /* confdefs.h. */ | |
17188 | _ACEOF | |
17189 | cat confdefs.h >>conftest.$ac_ext | |
17190 | cat >>conftest.$ac_ext <<_ACEOF | |
17191 | /* end confdefs.h. */ | |
17192 | $ac_includes_default | |
17193 | #include <$ac_header> | |
17194 | _ACEOF | |
17195 | rm -f conftest.$ac_objext | |
17196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17197 | (eval $ac_compile) 2>&5 | |
17198 | ac_status=$? | |
17199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17200 | (exit $ac_status); } && | |
17201 | { ac_try='test -s conftest.$ac_objext' | |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; }; then | |
17207 | ac_header_compiler=yes | |
17208 | else | |
17209 | echo "$as_me: failed program was:" >&5 | |
17210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17211 | ||
17212 | ac_header_compiler=no | |
17213 | fi | |
17214 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17215 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17216 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17217 | ||
17218 | # Is the header present? | |
17219 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17220 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17221 | cat >conftest.$ac_ext <<_ACEOF | |
17222 | #line $LINENO "configure" | |
17223 | /* confdefs.h. */ | |
17224 | _ACEOF | |
17225 | cat confdefs.h >>conftest.$ac_ext | |
17226 | cat >>conftest.$ac_ext <<_ACEOF | |
17227 | /* end confdefs.h. */ | |
17228 | #include <$ac_header> | |
17229 | _ACEOF | |
17230 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17231 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17232 | ac_status=$? | |
17233 | grep -v '^ *+' conftest.er1 >conftest.err | |
17234 | rm -f conftest.er1 | |
17235 | cat conftest.err >&5 | |
17236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17237 | (exit $ac_status); } >/dev/null; then | |
17238 | if test -s conftest.err; then | |
17239 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17240 | else | |
17241 | ac_cpp_err= | |
17242 | fi | |
17243 | else | |
17244 | ac_cpp_err=yes | |
17245 | fi | |
17246 | if test -z "$ac_cpp_err"; then | |
17247 | ac_header_preproc=yes | |
17248 | else | |
17249 | echo "$as_me: failed program was:" >&5 | |
17250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17251 | ||
17252 | ac_header_preproc=no | |
17253 | fi | |
17254 | rm -f conftest.err conftest.$ac_ext | |
17255 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17256 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17257 | ||
17258 | # So? What about this header? | |
17259 | case $ac_header_compiler:$ac_header_preproc in | |
17260 | yes:no ) | |
17261 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17262 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17263 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17264 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17265 | ( | |
17266 | cat <<\_ASBOX | |
17267 | ## ------------------------------------ ## | |
17268 | ## Report this to bug-autoconf@gnu.org. ## | |
17269 | ## ------------------------------------ ## | |
17270 | _ASBOX | |
17271 | ) | | |
17272 | sed "s/^/$as_me: WARNING: /" >&2 | |
17273 | ;; | |
17274 | no:yes ) | |
17275 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17276 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17277 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17278 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17281 | ( | |
17282 | cat <<\_ASBOX | |
17283 | ## ------------------------------------ ## | |
17284 | ## Report this to bug-autoconf@gnu.org. ## | |
17285 | ## ------------------------------------ ## | |
17286 | _ASBOX | |
17287 | ) | | |
17288 | sed "s/^/$as_me: WARNING: /" >&2 | |
17289 | ;; | |
17290 | esac | |
17291 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17292 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17295 | else | |
17296 | eval "$as_ac_Header=$ac_header_preproc" | |
17297 | fi | |
17298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17300 | ||
17301 | fi | |
17302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17303 | cat >>confdefs.h <<_ACEOF | |
17304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17305 | _ACEOF | |
17306 | ||
17307 | fi | |
17308 | ||
17309 | done | |
17310 | ||
17311 | ||
17312 | if test "$ac_cv_header_iostream" = "yes" ; then | |
17313 | : | |
17314 | else | |
17315 | cat >>confdefs.h <<\_ACEOF | |
17316 | #define wxUSE_IOSTREAMH 1 | |
17317 | _ACEOF | |
17318 | ||
17319 | fi | |
17320 | ||
17321 | ac_ext=c | |
17322 | ac_cpp='$CPP $CPPFLAGS' | |
17323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17326 | ||
17327 | fi | |
17328 | ||
17329 | ||
17330 | ||
17331 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
17332 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17333 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17335 | else | |
17336 | ||
17337 | ||
17338 | ||
17339 | ac_ext=cc | |
17340 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17341 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17342 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17343 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17344 | ||
17345 | ||
17346 | cat >conftest.$ac_ext <<_ACEOF | |
17347 | #line $LINENO "configure" | |
17348 | /* confdefs.h. */ | |
17349 | _ACEOF | |
17350 | cat confdefs.h >>conftest.$ac_ext | |
17351 | cat >>conftest.$ac_ext <<_ACEOF | |
17352 | /* end confdefs.h. */ | |
17353 | ||
17354 | ||
17355 | int | |
17356 | main () | |
17357 | { | |
17358 | ||
17359 | bool b = true; | |
17360 | ||
17361 | return 0; | |
17362 | ||
17363 | ; | |
17364 | return 0; | |
17365 | } | |
17366 | _ACEOF | |
17367 | rm -f conftest.$ac_objext | |
17368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17369 | (eval $ac_compile) 2>&5 | |
17370 | ac_status=$? | |
17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17372 | (exit $ac_status); } && | |
17373 | { ac_try='test -s conftest.$ac_objext' | |
17374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17375 | (eval $ac_try) 2>&5 | |
17376 | ac_status=$? | |
17377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17378 | (exit $ac_status); }; }; then | |
17379 | ||
17380 | wx_cv_cpp_bool=yes | |
17381 | ||
17382 | else | |
17383 | echo "$as_me: failed program was:" >&5 | |
17384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17385 | ||
17386 | ||
17387 | wx_cv_cpp_bool=no | |
17388 | ||
17389 | ||
17390 | fi | |
17391 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17392 | ||
17393 | ac_ext=c | |
17394 | ac_cpp='$CPP $CPPFLAGS' | |
17395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17398 | ||
17399 | ||
17400 | fi | |
17401 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17402 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
17403 | ||
17404 | if test "$wx_cv_cpp_bool" = "yes"; then | |
17405 | cat >>confdefs.h <<\_ACEOF | |
17406 | #define HAVE_BOOL 1 | |
17407 | _ACEOF | |
17408 | ||
17409 | fi | |
17410 | ||
17411 | ||
17412 | ||
17413 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
17414 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17415 | if test "${wx_cv_explicit+set}" = set; then | |
17416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17417 | else | |
17418 | ||
17419 | ||
17420 | ||
17421 | ac_ext=cc | |
17422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17426 | ||
17427 | ||
17428 | cat >conftest.$ac_ext <<_ACEOF | |
17429 | #line $LINENO "configure" | |
17430 | /* confdefs.h. */ | |
17431 | _ACEOF | |
17432 | cat confdefs.h >>conftest.$ac_ext | |
17433 | cat >>conftest.$ac_ext <<_ACEOF | |
17434 | /* end confdefs.h. */ | |
17435 | ||
17436 | class Foo { public: explicit Foo(int) {} }; | |
17437 | ||
17438 | int | |
17439 | main () | |
17440 | { | |
17441 | ||
17442 | return 0; | |
17443 | ||
17444 | ; | |
17445 | return 0; | |
17446 | } | |
17447 | _ACEOF | |
17448 | rm -f conftest.$ac_objext | |
17449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17450 | (eval $ac_compile) 2>&5 | |
17451 | ac_status=$? | |
17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17453 | (exit $ac_status); } && | |
17454 | { ac_try='test -s conftest.$ac_objext' | |
17455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17456 | (eval $ac_try) 2>&5 | |
17457 | ac_status=$? | |
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17459 | (exit $ac_status); }; }; then | |
17460 | ||
17461 | cat >conftest.$ac_ext <<_ACEOF | |
17462 | #line $LINENO "configure" | |
17463 | /* confdefs.h. */ | |
17464 | _ACEOF | |
17465 | cat confdefs.h >>conftest.$ac_ext | |
17466 | cat >>conftest.$ac_ext <<_ACEOF | |
17467 | /* end confdefs.h. */ | |
17468 | ||
17469 | class Foo { public: explicit Foo(int) {} }; | |
17470 | static void TakeFoo(const Foo& foo) { } | |
17471 | ||
17472 | int | |
17473 | main () | |
17474 | { | |
17475 | ||
17476 | TakeFoo(17); | |
17477 | return 0; | |
17478 | ||
17479 | ; | |
17480 | return 0; | |
17481 | } | |
17482 | _ACEOF | |
17483 | rm -f conftest.$ac_objext | |
17484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17485 | (eval $ac_compile) 2>&5 | |
17486 | ac_status=$? | |
17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17488 | (exit $ac_status); } && | |
17489 | { ac_try='test -s conftest.$ac_objext' | |
17490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17491 | (eval $ac_try) 2>&5 | |
17492 | ac_status=$? | |
17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17494 | (exit $ac_status); }; }; then | |
17495 | wx_cv_explicit=no | |
17496 | else | |
17497 | echo "$as_me: failed program was:" >&5 | |
17498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17499 | ||
17500 | wx_cv_explicit=yes | |
17501 | ||
17502 | fi | |
17503 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17504 | ||
17505 | else | |
17506 | echo "$as_me: failed program was:" >&5 | |
17507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17508 | ||
17509 | wx_cv_explicit=no | |
17510 | ||
17511 | fi | |
17512 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17513 | ||
17514 | ac_ext=c | |
17515 | ac_cpp='$CPP $CPPFLAGS' | |
17516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17519 | ||
17520 | ||
17521 | fi | |
17522 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17523 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
17524 | ||
17525 | if test "$wx_cv_explicit" = "yes"; then | |
17526 | cat >>confdefs.h <<\_ACEOF | |
17527 | #define HAVE_EXPLICIT 1 | |
17528 | _ACEOF | |
17529 | ||
17530 | fi | |
17531 | ||
17532 | ||
17533 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
17534 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17535 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17537 | else | |
17538 | ||
17539 | ||
17540 | ac_ext=cc | |
17541 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17542 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17543 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17544 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17545 | ||
17546 | cat >conftest.$ac_ext <<_ACEOF | |
17547 | #line $LINENO "configure" | |
17548 | /* confdefs.h. */ | |
17549 | _ACEOF | |
17550 | cat confdefs.h >>conftest.$ac_ext | |
17551 | cat >>conftest.$ac_ext <<_ACEOF | |
17552 | /* end confdefs.h. */ | |
17553 | ||
17554 | int | |
17555 | main () | |
17556 | { | |
17557 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
17558 | ; | |
17559 | return 0; | |
17560 | } | |
17561 | _ACEOF | |
17562 | rm -f conftest.$ac_objext | |
17563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17564 | (eval $ac_compile) 2>&5 | |
17565 | ac_status=$? | |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17567 | (exit $ac_status); } && | |
17568 | { ac_try='test -s conftest.$ac_objext' | |
17569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17570 | (eval $ac_try) 2>&5 | |
17571 | ac_status=$? | |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17573 | (exit $ac_status); }; }; then | |
17574 | ac_cv_cxx_const_cast=yes | |
17575 | else | |
17576 | echo "$as_me: failed program was:" >&5 | |
17577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17578 | ||
17579 | ac_cv_cxx_const_cast=no | |
17580 | fi | |
17581 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17582 | ac_ext=c | |
17583 | ac_cpp='$CPP $CPPFLAGS' | |
17584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17587 | ||
17588 | ||
17589 | fi | |
17590 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
17591 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
17592 | if test "$ac_cv_cxx_const_cast" = yes; then | |
17593 | ||
17594 | cat >>confdefs.h <<\_ACEOF | |
17595 | #define HAVE_CONST_CAST | |
17596 | _ACEOF | |
17597 | ||
17598 | fi | |
17599 | ||
17600 | ||
17601 | ||
17602 | SEARCH_INCLUDE="\ | |
17603 | /usr/local/include \ | |
17604 | \ | |
17605 | /usr/Motif-1.2/include \ | |
17606 | /usr/Motif-2.1/include \ | |
17607 | \ | |
17608 | /usr/include/Motif1.2 \ | |
17609 | /opt/xpm/include/X11 \ | |
17610 | /opt/GBxpm/include/ \ | |
17611 | /opt/GBxpm/X11/include/ \ | |
17612 | \ | |
17613 | /usr/Motif1.2/include \ | |
17614 | /usr/dt/include \ | |
17615 | /usr/openwin/include \ | |
17616 | \ | |
17617 | /usr/include/Xm \ | |
17618 | \ | |
17619 | /usr/X11R6/include \ | |
17620 | /usr/X11R6.4/include \ | |
17621 | /usr/X11R5/include \ | |
17622 | /usr/X11R4/include \ | |
17623 | \ | |
17624 | /usr/include/X11R6 \ | |
17625 | /usr/include/X11R5 \ | |
17626 | /usr/include/X11R4 \ | |
17627 | \ | |
17628 | /usr/local/X11R6/include \ | |
17629 | /usr/local/X11R5/include \ | |
17630 | /usr/local/X11R4/include \ | |
17631 | \ | |
17632 | /usr/local/include/X11R6 \ | |
17633 | /usr/local/include/X11R5 \ | |
17634 | /usr/local/include/X11R4 \ | |
17635 | \ | |
17636 | /usr/X11/include \ | |
17637 | /usr/include/X11 \ | |
17638 | /usr/local/X11/include \ | |
17639 | /usr/local/include/X11 \ | |
17640 | \ | |
17641 | /usr/X386/include \ | |
17642 | /usr/x386/include \ | |
17643 | /usr/XFree86/include/X11 \ | |
17644 | \ | |
17645 | X:/XFree86/include \ | |
17646 | X:/XFree86/include/X11 \ | |
17647 | \ | |
17648 | /usr/include/gtk \ | |
17649 | /usr/local/include/gtk \ | |
17650 | /usr/include/glib \ | |
17651 | /usr/local/include/glib \ | |
17652 | \ | |
17653 | /usr/include/qt \ | |
17654 | /usr/local/include/qt \ | |
17655 | \ | |
17656 | /usr/include/windows \ | |
17657 | /usr/include/wine \ | |
17658 | /usr/local/include/wine \ | |
17659 | \ | |
17660 | /usr/unsupported/include \ | |
17661 | /usr/athena/include \ | |
17662 | /usr/local/x11r5/include \ | |
17663 | /usr/lpp/Xamples/include \ | |
17664 | \ | |
17665 | /usr/openwin/share/include" | |
17666 | ||
17667 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17668 | ||
17669 | ||
17670 | cat >confcache <<\_ACEOF | |
17671 | # This file is a shell script that caches the results of configure | |
17672 | # tests run on this system so they can be shared between configure | |
17673 | # scripts and configure runs, see configure's option --config-cache. | |
17674 | # It is not useful on other systems. If it contains results you don't | |
17675 | # want to keep, you may remove or edit it. | |
17676 | # | |
17677 | # config.status only pays attention to the cache file if you give it | |
17678 | # the --recheck option to rerun configure. | |
17679 | # | |
17680 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17681 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17682 | # following values. | |
17683 | ||
17684 | _ACEOF | |
17685 | ||
17686 | # The following way of writing the cache mishandles newlines in values, | |
17687 | # but we know of no workaround that is simple, portable, and efficient. | |
17688 | # So, don't put newlines in cache variables' values. | |
17689 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17690 | # and sets the high bit in the cache file unless we assign to the vars. | |
17691 | { | |
17692 | (set) 2>&1 | | |
17693 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17694 | *ac_space=\ *) | |
17695 | # `set' does not quote correctly, so add quotes (double-quote | |
17696 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17697 | sed -n \ | |
17698 | "s/'/'\\\\''/g; | |
17699 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17700 | ;; | |
17701 | *) | |
17702 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17703 | sed -n \ | |
17704 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17705 | ;; | |
17706 | esac; | |
17707 | } | | |
17708 | sed ' | |
17709 | t clear | |
17710 | : clear | |
17711 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17712 | t end | |
17713 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17714 | : end' >>confcache | |
17715 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
17716 | if test -w $cache_file; then | |
17717 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
17718 | cat confcache >$cache_file | |
17719 | else | |
17720 | echo "not updating unwritable cache $cache_file" | |
17721 | fi | |
17722 | fi | |
17723 | rm -f confcache | |
17724 | ||
17725 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
17726 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
17727 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17728 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17730 | else | |
17731 | ||
17732 | cat >conftest.$ac_ext <<_ACEOF | |
17733 | #line $LINENO "configure" | |
17734 | /* confdefs.h. */ | |
17735 | _ACEOF | |
17736 | cat confdefs.h >>conftest.$ac_ext | |
17737 | cat >>conftest.$ac_ext <<_ACEOF | |
17738 | /* end confdefs.h. */ | |
17739 | #include <features.h> | |
17740 | int | |
17741 | main () | |
17742 | { | |
17743 | ||
17744 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
17745 | #error not glibc2.1 | |
17746 | #endif | |
17747 | ||
17748 | ; | |
17749 | return 0; | |
17750 | } | |
17751 | _ACEOF | |
17752 | rm -f conftest.$ac_objext | |
17753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17754 | (eval $ac_compile) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); } && | |
17758 | { ac_try='test -s conftest.$ac_objext' | |
17759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17760 | (eval $ac_try) 2>&5 | |
17761 | ac_status=$? | |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17763 | (exit $ac_status); }; }; then | |
17764 | ||
17765 | wx_cv_lib_glibc21=yes | |
17766 | ||
17767 | else | |
17768 | echo "$as_me: failed program was:" >&5 | |
17769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17770 | ||
17771 | ||
17772 | wx_cv_lib_glibc21=no | |
17773 | ||
17774 | ||
17775 | fi | |
17776 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17777 | ||
17778 | fi | |
17779 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17780 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
17781 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
17782 | cat >>confdefs.h <<\_ACEOF | |
17783 | #define wxHAVE_GLIBC2 1 | |
17784 | _ACEOF | |
17785 | ||
17786 | fi | |
17787 | fi | |
17788 | ||
17789 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
17790 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
17791 | cat >>confdefs.h <<\_ACEOF | |
17792 | #define _GNU_SOURCE 1 | |
17793 | _ACEOF | |
17794 | ||
17795 | fi | |
17796 | fi | |
17797 | ||
17798 | ||
17799 | ||
17800 | REGEX_INCLUDE= | |
17801 | if test "$wxUSE_REGEX" != "no"; then | |
17802 | cat >>confdefs.h <<\_ACEOF | |
17803 | #define wxUSE_REGEX 1 | |
17804 | _ACEOF | |
17805 | ||
17806 | ||
17807 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
17808 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17809 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17810 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17811 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17813 | fi | |
17814 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17815 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17816 | else | |
17817 | # Is the header compilable? | |
17818 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17819 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17820 | cat >conftest.$ac_ext <<_ACEOF | |
17821 | #line $LINENO "configure" | |
17822 | /* confdefs.h. */ | |
17823 | _ACEOF | |
17824 | cat confdefs.h >>conftest.$ac_ext | |
17825 | cat >>conftest.$ac_ext <<_ACEOF | |
17826 | /* end confdefs.h. */ | |
17827 | $ac_includes_default | |
17828 | #include <regex.h> | |
17829 | _ACEOF | |
17830 | rm -f conftest.$ac_objext | |
17831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17832 | (eval $ac_compile) 2>&5 | |
17833 | ac_status=$? | |
17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17835 | (exit $ac_status); } && | |
17836 | { ac_try='test -s conftest.$ac_objext' | |
17837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17838 | (eval $ac_try) 2>&5 | |
17839 | ac_status=$? | |
17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17841 | (exit $ac_status); }; }; then | |
17842 | ac_header_compiler=yes | |
17843 | else | |
17844 | echo "$as_me: failed program was:" >&5 | |
17845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17846 | ||
17847 | ac_header_compiler=no | |
17848 | fi | |
17849 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17850 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17851 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17852 | ||
17853 | # Is the header present? | |
17854 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17855 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17856 | cat >conftest.$ac_ext <<_ACEOF | |
17857 | #line $LINENO "configure" | |
17858 | /* confdefs.h. */ | |
17859 | _ACEOF | |
17860 | cat confdefs.h >>conftest.$ac_ext | |
17861 | cat >>conftest.$ac_ext <<_ACEOF | |
17862 | /* end confdefs.h. */ | |
17863 | #include <regex.h> | |
17864 | _ACEOF | |
17865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17867 | ac_status=$? | |
17868 | grep -v '^ *+' conftest.er1 >conftest.err | |
17869 | rm -f conftest.er1 | |
17870 | cat conftest.err >&5 | |
17871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17872 | (exit $ac_status); } >/dev/null; then | |
17873 | if test -s conftest.err; then | |
17874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17875 | else | |
17876 | ac_cpp_err= | |
17877 | fi | |
17878 | else | |
17879 | ac_cpp_err=yes | |
17880 | fi | |
17881 | if test -z "$ac_cpp_err"; then | |
17882 | ac_header_preproc=yes | |
17883 | else | |
17884 | echo "$as_me: failed program was:" >&5 | |
17885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17886 | ||
17887 | ac_header_preproc=no | |
17888 | fi | |
17889 | rm -f conftest.err conftest.$ac_ext | |
17890 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17891 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17892 | ||
17893 | # So? What about this header? | |
17894 | case $ac_header_compiler:$ac_header_preproc in | |
17895 | yes:no ) | |
17896 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17897 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17898 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17899 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17900 | ( | |
17901 | cat <<\_ASBOX | |
17902 | ## ------------------------------------ ## | |
17903 | ## Report this to bug-autoconf@gnu.org. ## | |
17904 | ## ------------------------------------ ## | |
17905 | _ASBOX | |
17906 | ) | | |
17907 | sed "s/^/$as_me: WARNING: /" >&2 | |
17908 | ;; | |
17909 | no:yes ) | |
17910 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
17911 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
17912 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
17913 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
17914 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17915 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17916 | ( | |
17917 | cat <<\_ASBOX | |
17918 | ## ------------------------------------ ## | |
17919 | ## Report this to bug-autoconf@gnu.org. ## | |
17920 | ## ------------------------------------ ## | |
17921 | _ASBOX | |
17922 | ) | | |
17923 | sed "s/^/$as_me: WARNING: /" >&2 | |
17924 | ;; | |
17925 | esac | |
17926 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17927 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17928 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17930 | else | |
17931 | ac_cv_header_regex_h=$ac_header_preproc | |
17932 | fi | |
17933 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17934 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17935 | ||
17936 | fi | |
17937 | if test $ac_cv_header_regex_h = yes; then | |
17938 | ||
17939 | for ac_func in regcomp | |
17940 | do | |
17941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17942 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17944 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17946 | else | |
17947 | cat >conftest.$ac_ext <<_ACEOF | |
17948 | #line $LINENO "configure" | |
17949 | /* confdefs.h. */ | |
17950 | _ACEOF | |
17951 | cat confdefs.h >>conftest.$ac_ext | |
17952 | cat >>conftest.$ac_ext <<_ACEOF | |
17953 | /* end confdefs.h. */ | |
17954 | /* System header to define __stub macros and hopefully few prototypes, | |
17955 | which can conflict with char $ac_func (); below. | |
17956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17957 | <limits.h> exists even on freestanding compilers. */ | |
17958 | #ifdef __STDC__ | |
17959 | # include <limits.h> | |
17960 | #else | |
17961 | # include <assert.h> | |
17962 | #endif | |
17963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17964 | #ifdef __cplusplus | |
17965 | extern "C" | |
17966 | { | |
17967 | #endif | |
17968 | /* We use char because int might match the return type of a gcc2 | |
17969 | builtin and then its argument prototype would still apply. */ | |
17970 | char $ac_func (); | |
17971 | /* The GNU C library defines this for functions which it implements | |
17972 | to always fail with ENOSYS. Some functions are actually named | |
17973 | something starting with __ and the normal name is an alias. */ | |
17974 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17975 | choke me | |
17976 | #else | |
17977 | char (*f) () = $ac_func; | |
17978 | #endif | |
17979 | #ifdef __cplusplus | |
17980 | } | |
17981 | #endif | |
17982 | ||
17983 | int | |
17984 | main () | |
17985 | { | |
17986 | return f != $ac_func; | |
17987 | ; | |
17988 | return 0; | |
17989 | } | |
17990 | _ACEOF | |
17991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17993 | (eval $ac_link) 2>&5 | |
17994 | ac_status=$? | |
17995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17996 | (exit $ac_status); } && | |
17997 | { ac_try='test -s conftest$ac_exeext' | |
17998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17999 | (eval $ac_try) 2>&5 | |
18000 | ac_status=$? | |
18001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18002 | (exit $ac_status); }; }; then | |
18003 | eval "$as_ac_var=yes" | |
18004 | else | |
18005 | echo "$as_me: failed program was:" >&5 | |
18006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18007 | ||
18008 | eval "$as_ac_var=no" | |
18009 | fi | |
18010 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18011 | fi | |
18012 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18013 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18014 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18015 | cat >>confdefs.h <<_ACEOF | |
18016 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18017 | _ACEOF | |
18018 | ||
18019 | fi | |
18020 | done | |
18021 | ||
18022 | fi | |
18023 | ||
18024 | ||
18025 | ||
18026 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
18027 | if test "$wxUSE_REGEX" = "sys" ; then | |
18028 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
18029 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18030 | { (exit 1); exit 1; }; } | |
18031 | else | |
18032 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
18033 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
18034 | wxUSE_REGEX=builtin | |
18035 | fi | |
18036 | else | |
18037 | wxUSE_REGEX=sys | |
18038 | fi | |
18039 | fi | |
18040 | ||
18041 | if test "$wxUSE_REGEX" = "builtin" ; then | |
18042 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
18043 | fi | |
18044 | fi | |
18045 | ||
18046 | ||
18047 | ZLIB_INCLUDE= | |
18048 | ZLIB_LINK= | |
18049 | if test "$wxUSE_ZLIB" != "no" ; then | |
18050 | cat >>confdefs.h <<\_ACEOF | |
18051 | #define wxUSE_ZLIB 1 | |
18052 | _ACEOF | |
18053 | ||
18054 | ||
18055 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
18056 | if test "$USE_DARWIN" = 1; then | |
18057 | system_zlib_h_ok="yes" | |
18058 | else | |
18059 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
18060 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18061 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18063 | else | |
18064 | if test "$cross_compiling" = yes; then | |
18065 | unset ac_cv_header_zlib_h | |
18066 | ||
18067 | else | |
18068 | cat >conftest.$ac_ext <<_ACEOF | |
18069 | #line $LINENO "configure" | |
18070 | /* confdefs.h. */ | |
18071 | _ACEOF | |
18072 | cat confdefs.h >>conftest.$ac_ext | |
18073 | cat >>conftest.$ac_ext <<_ACEOF | |
18074 | /* end confdefs.h. */ | |
18075 | ||
18076 | #include <zlib.h> | |
18077 | #include <stdio.h> | |
18078 | ||
18079 | int main() | |
18080 | { | |
18081 | FILE *f=fopen("conftestval", "w"); | |
18082 | if (!f) exit(1); | |
18083 | fprintf(f, "%s", | |
18084 | ZLIB_VERSION[0] == '1' && | |
18085 | (ZLIB_VERSION[2] > '1' || | |
18086 | (ZLIB_VERSION[2] == '1' && | |
18087 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18088 | exit(0); | |
18089 | } | |
18090 | ||
18091 | _ACEOF | |
18092 | rm -f conftest$ac_exeext | |
18093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18094 | (eval $ac_link) 2>&5 | |
18095 | ac_status=$? | |
18096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18097 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18099 | (eval $ac_try) 2>&5 | |
18100 | ac_status=$? | |
18101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18102 | (exit $ac_status); }; }; then | |
18103 | ac_cv_header_zlib_h=`cat conftestval` | |
18104 | else | |
18105 | echo "$as_me: program exited with status $ac_status" >&5 | |
18106 | echo "$as_me: failed program was:" >&5 | |
18107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18108 | ||
18109 | ( exit $ac_status ) | |
18110 | ac_cv_header_zlib_h=no | |
18111 | fi | |
18112 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18113 | fi | |
18114 | ||
18115 | fi | |
18116 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18117 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18118 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18119 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18120 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18121 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18123 | fi | |
18124 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18125 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18126 | else | |
18127 | # Is the header compilable? | |
18128 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18129 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18130 | cat >conftest.$ac_ext <<_ACEOF | |
18131 | #line $LINENO "configure" | |
18132 | /* confdefs.h. */ | |
18133 | _ACEOF | |
18134 | cat confdefs.h >>conftest.$ac_ext | |
18135 | cat >>conftest.$ac_ext <<_ACEOF | |
18136 | /* end confdefs.h. */ | |
18137 | $ac_includes_default | |
18138 | #include <zlib.h> | |
18139 | _ACEOF | |
18140 | rm -f conftest.$ac_objext | |
18141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18142 | (eval $ac_compile) 2>&5 | |
18143 | ac_status=$? | |
18144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18145 | (exit $ac_status); } && | |
18146 | { ac_try='test -s conftest.$ac_objext' | |
18147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18148 | (eval $ac_try) 2>&5 | |
18149 | ac_status=$? | |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18151 | (exit $ac_status); }; }; then | |
18152 | ac_header_compiler=yes | |
18153 | else | |
18154 | echo "$as_me: failed program was:" >&5 | |
18155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18156 | ||
18157 | ac_header_compiler=no | |
18158 | fi | |
18159 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18160 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18161 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18162 | ||
18163 | # Is the header present? | |
18164 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18165 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18166 | cat >conftest.$ac_ext <<_ACEOF | |
18167 | #line $LINENO "configure" | |
18168 | /* confdefs.h. */ | |
18169 | _ACEOF | |
18170 | cat confdefs.h >>conftest.$ac_ext | |
18171 | cat >>conftest.$ac_ext <<_ACEOF | |
18172 | /* end confdefs.h. */ | |
18173 | #include <zlib.h> | |
18174 | _ACEOF | |
18175 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18177 | ac_status=$? | |
18178 | grep -v '^ *+' conftest.er1 >conftest.err | |
18179 | rm -f conftest.er1 | |
18180 | cat conftest.err >&5 | |
18181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18182 | (exit $ac_status); } >/dev/null; then | |
18183 | if test -s conftest.err; then | |
18184 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18185 | else | |
18186 | ac_cpp_err= | |
18187 | fi | |
18188 | else | |
18189 | ac_cpp_err=yes | |
18190 | fi | |
18191 | if test -z "$ac_cpp_err"; then | |
18192 | ac_header_preproc=yes | |
18193 | else | |
18194 | echo "$as_me: failed program was:" >&5 | |
18195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18196 | ||
18197 | ac_header_preproc=no | |
18198 | fi | |
18199 | rm -f conftest.err conftest.$ac_ext | |
18200 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18201 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18202 | ||
18203 | # So? What about this header? | |
18204 | case $ac_header_compiler:$ac_header_preproc in | |
18205 | yes:no ) | |
18206 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18207 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18208 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18209 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18210 | ( | |
18211 | cat <<\_ASBOX | |
18212 | ## ------------------------------------ ## | |
18213 | ## Report this to bug-autoconf@gnu.org. ## | |
18214 | ## ------------------------------------ ## | |
18215 | _ASBOX | |
18216 | ) | | |
18217 | sed "s/^/$as_me: WARNING: /" >&2 | |
18218 | ;; | |
18219 | no:yes ) | |
18220 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18221 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18222 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18223 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18224 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18225 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18226 | ( | |
18227 | cat <<\_ASBOX | |
18228 | ## ------------------------------------ ## | |
18229 | ## Report this to bug-autoconf@gnu.org. ## | |
18230 | ## ------------------------------------ ## | |
18231 | _ASBOX | |
18232 | ) | | |
18233 | sed "s/^/$as_me: WARNING: /" >&2 | |
18234 | ;; | |
18235 | esac | |
18236 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18237 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18238 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18240 | else | |
18241 | ac_cv_header_zlib_h=$ac_header_preproc | |
18242 | fi | |
18243 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18244 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18245 | ||
18246 | fi | |
18247 | ||
18248 | ||
18249 | ||
18250 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
18251 | fi | |
18252 | ||
18253 | if test "$system_zlib_h_ok" = "yes"; then | |
18254 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
18255 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18256 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18258 | else | |
18259 | ac_check_lib_save_LIBS=$LIBS | |
18260 | LIBS="-lz $LIBS" | |
18261 | cat >conftest.$ac_ext <<_ACEOF | |
18262 | #line $LINENO "configure" | |
18263 | /* confdefs.h. */ | |
18264 | _ACEOF | |
18265 | cat confdefs.h >>conftest.$ac_ext | |
18266 | cat >>conftest.$ac_ext <<_ACEOF | |
18267 | /* end confdefs.h. */ | |
18268 | ||
18269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18270 | #ifdef __cplusplus | |
18271 | extern "C" | |
18272 | #endif | |
18273 | /* We use char because int might match the return type of a gcc2 | |
18274 | builtin and then its argument prototype would still apply. */ | |
18275 | char deflate (); | |
18276 | int | |
18277 | main () | |
18278 | { | |
18279 | deflate (); | |
18280 | ; | |
18281 | return 0; | |
18282 | } | |
18283 | _ACEOF | |
18284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18286 | (eval $ac_link) 2>&5 | |
18287 | ac_status=$? | |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18289 | (exit $ac_status); } && | |
18290 | { ac_try='test -s conftest$ac_exeext' | |
18291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18292 | (eval $ac_try) 2>&5 | |
18293 | ac_status=$? | |
18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18295 | (exit $ac_status); }; }; then | |
18296 | ac_cv_lib_z_deflate=yes | |
18297 | else | |
18298 | echo "$as_me: failed program was:" >&5 | |
18299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18300 | ||
18301 | ac_cv_lib_z_deflate=no | |
18302 | fi | |
18303 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18304 | LIBS=$ac_check_lib_save_LIBS | |
18305 | fi | |
18306 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18307 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18308 | if test $ac_cv_lib_z_deflate = yes; then | |
18309 | ZLIB_LINK=" -lz" | |
18310 | fi | |
18311 | ||
18312 | fi | |
18313 | ||
18314 | if test "x$ZLIB_LINK" = "x" ; then | |
18315 | if test "$wxUSE_ZLIB" = "sys" ; then | |
18316 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
18317 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18318 | { (exit 1); exit 1; }; } | |
18319 | else | |
18320 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
18321 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
18322 | wxUSE_ZLIB=builtin | |
18323 | fi | |
18324 | else | |
18325 | wxUSE_ZLIB=sys | |
18326 | fi | |
18327 | fi | |
18328 | ||
18329 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18330 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18331 | fi | |
18332 | fi | |
18333 | ||
18334 | ||
18335 | PNG_INCLUDE= | |
18336 | PNG_LINK= | |
18337 | if test "$wxUSE_LIBPNG" != "no" ; then | |
18338 | cat >>confdefs.h <<\_ACEOF | |
18339 | #define wxUSE_LIBPNG 1 | |
18340 | _ACEOF | |
18341 | ||
18342 | ||
18343 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
18344 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
18345 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
18346 | wxUSE_LIBPNG=sys | |
18347 | fi | |
18348 | ||
18349 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
18350 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
18351 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
18352 | wxUSE_LIBPNG=builtin | |
18353 | fi | |
18354 | ||
18355 | if test "$wxUSE_MGL" != 1 ; then | |
18356 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
18357 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
18358 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18359 | if test "${ac_cv_header_png_h+set}" = set; then | |
18360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18361 | else | |
18362 | if test "$cross_compiling" = yes; then | |
18363 | unset ac_cv_header_png_h | |
18364 | ||
18365 | else | |
18366 | cat >conftest.$ac_ext <<_ACEOF | |
18367 | #line $LINENO "configure" | |
18368 | /* confdefs.h. */ | |
18369 | _ACEOF | |
18370 | cat confdefs.h >>conftest.$ac_ext | |
18371 | cat >>conftest.$ac_ext <<_ACEOF | |
18372 | /* end confdefs.h. */ | |
18373 | ||
18374 | #include <png.h> | |
18375 | #include <stdio.h> | |
18376 | ||
18377 | int main() | |
18378 | { | |
18379 | FILE *f=fopen("conftestval", "w"); | |
18380 | if (!f) exit(1); | |
18381 | fprintf(f, "%s", | |
18382 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18383 | exit(0); | |
18384 | } | |
18385 | ||
18386 | _ACEOF | |
18387 | rm -f conftest$ac_exeext | |
18388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18389 | (eval $ac_link) 2>&5 | |
18390 | ac_status=$? | |
18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18392 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18394 | (eval $ac_try) 2>&5 | |
18395 | ac_status=$? | |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18397 | (exit $ac_status); }; }; then | |
18398 | ac_cv_header_png_h=`cat conftestval` | |
18399 | else | |
18400 | echo "$as_me: program exited with status $ac_status" >&5 | |
18401 | echo "$as_me: failed program was:" >&5 | |
18402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18403 | ||
18404 | ( exit $ac_status ) | |
18405 | ac_cv_header_png_h=no | |
18406 | fi | |
18407 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18408 | fi | |
18409 | ||
18410 | fi | |
18411 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18412 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18413 | if test "${ac_cv_header_png_h+set}" = set; then | |
18414 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18415 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18416 | if test "${ac_cv_header_png_h+set}" = set; then | |
18417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18418 | fi | |
18419 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18420 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18421 | else | |
18422 | # Is the header compilable? | |
18423 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18424 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18425 | cat >conftest.$ac_ext <<_ACEOF | |
18426 | #line $LINENO "configure" | |
18427 | /* confdefs.h. */ | |
18428 | _ACEOF | |
18429 | cat confdefs.h >>conftest.$ac_ext | |
18430 | cat >>conftest.$ac_ext <<_ACEOF | |
18431 | /* end confdefs.h. */ | |
18432 | $ac_includes_default | |
18433 | #include <png.h> | |
18434 | _ACEOF | |
18435 | rm -f conftest.$ac_objext | |
18436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18437 | (eval $ac_compile) 2>&5 | |
18438 | ac_status=$? | |
18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18440 | (exit $ac_status); } && | |
18441 | { ac_try='test -s conftest.$ac_objext' | |
18442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18443 | (eval $ac_try) 2>&5 | |
18444 | ac_status=$? | |
18445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18446 | (exit $ac_status); }; }; then | |
18447 | ac_header_compiler=yes | |
18448 | else | |
18449 | echo "$as_me: failed program was:" >&5 | |
18450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18451 | ||
18452 | ac_header_compiler=no | |
18453 | fi | |
18454 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18456 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18457 | ||
18458 | # Is the header present? | |
18459 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18460 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18461 | cat >conftest.$ac_ext <<_ACEOF | |
18462 | #line $LINENO "configure" | |
18463 | /* confdefs.h. */ | |
18464 | _ACEOF | |
18465 | cat confdefs.h >>conftest.$ac_ext | |
18466 | cat >>conftest.$ac_ext <<_ACEOF | |
18467 | /* end confdefs.h. */ | |
18468 | #include <png.h> | |
18469 | _ACEOF | |
18470 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18471 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18472 | ac_status=$? | |
18473 | grep -v '^ *+' conftest.er1 >conftest.err | |
18474 | rm -f conftest.er1 | |
18475 | cat conftest.err >&5 | |
18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18477 | (exit $ac_status); } >/dev/null; then | |
18478 | if test -s conftest.err; then | |
18479 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18480 | else | |
18481 | ac_cpp_err= | |
18482 | fi | |
18483 | else | |
18484 | ac_cpp_err=yes | |
18485 | fi | |
18486 | if test -z "$ac_cpp_err"; then | |
18487 | ac_header_preproc=yes | |
18488 | else | |
18489 | echo "$as_me: failed program was:" >&5 | |
18490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18491 | ||
18492 | ac_header_preproc=no | |
18493 | fi | |
18494 | rm -f conftest.err conftest.$ac_ext | |
18495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18496 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18497 | ||
18498 | # So? What about this header? | |
18499 | case $ac_header_compiler:$ac_header_preproc in | |
18500 | yes:no ) | |
18501 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18502 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18503 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18504 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18505 | ( | |
18506 | cat <<\_ASBOX | |
18507 | ## ------------------------------------ ## | |
18508 | ## Report this to bug-autoconf@gnu.org. ## | |
18509 | ## ------------------------------------ ## | |
18510 | _ASBOX | |
18511 | ) | | |
18512 | sed "s/^/$as_me: WARNING: /" >&2 | |
18513 | ;; | |
18514 | no:yes ) | |
18515 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18516 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18517 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18518 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18519 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18520 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18521 | ( | |
18522 | cat <<\_ASBOX | |
18523 | ## ------------------------------------ ## | |
18524 | ## Report this to bug-autoconf@gnu.org. ## | |
18525 | ## ------------------------------------ ## | |
18526 | _ASBOX | |
18527 | ) | | |
18528 | sed "s/^/$as_me: WARNING: /" >&2 | |
18529 | ;; | |
18530 | esac | |
18531 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18532 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18533 | if test "${ac_cv_header_png_h+set}" = set; then | |
18534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18535 | else | |
18536 | ac_cv_header_png_h=$ac_header_preproc | |
18537 | fi | |
18538 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18539 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18540 | ||
18541 | fi | |
18542 | ||
18543 | ||
18544 | ||
18545 | if test "$ac_cv_header_png_h" = "yes"; then | |
18546 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
18547 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18548 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18550 | else | |
18551 | ac_check_lib_save_LIBS=$LIBS | |
18552 | LIBS="-lpng -lz -lm $LIBS" | |
18553 | cat >conftest.$ac_ext <<_ACEOF | |
18554 | #line $LINENO "configure" | |
18555 | /* confdefs.h. */ | |
18556 | _ACEOF | |
18557 | cat confdefs.h >>conftest.$ac_ext | |
18558 | cat >>conftest.$ac_ext <<_ACEOF | |
18559 | /* end confdefs.h. */ | |
18560 | ||
18561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18562 | #ifdef __cplusplus | |
18563 | extern "C" | |
18564 | #endif | |
18565 | /* We use char because int might match the return type of a gcc2 | |
18566 | builtin and then its argument prototype would still apply. */ | |
18567 | char png_check_sig (); | |
18568 | int | |
18569 | main () | |
18570 | { | |
18571 | png_check_sig (); | |
18572 | ; | |
18573 | return 0; | |
18574 | } | |
18575 | _ACEOF | |
18576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18578 | (eval $ac_link) 2>&5 | |
18579 | ac_status=$? | |
18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18581 | (exit $ac_status); } && | |
18582 | { ac_try='test -s conftest$ac_exeext' | |
18583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18584 | (eval $ac_try) 2>&5 | |
18585 | ac_status=$? | |
18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18587 | (exit $ac_status); }; }; then | |
18588 | ac_cv_lib_png_png_check_sig=yes | |
18589 | else | |
18590 | echo "$as_me: failed program was:" >&5 | |
18591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18592 | ||
18593 | ac_cv_lib_png_png_check_sig=no | |
18594 | fi | |
18595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18596 | LIBS=$ac_check_lib_save_LIBS | |
18597 | fi | |
18598 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18599 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18600 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
18601 | PNG_LINK=" -lpng" | |
18602 | fi | |
18603 | ||
18604 | fi | |
18605 | ||
18606 | if test "x$PNG_LINK" = "x" ; then | |
18607 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
18608 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
18609 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18610 | { (exit 1); exit 1; }; } | |
18611 | else | |
18612 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
18613 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
18614 | wxUSE_LIBPNG=builtin | |
18615 | fi | |
18616 | else | |
18617 | wxUSE_LIBPNG=sys | |
18618 | fi | |
18619 | fi | |
18620 | fi | |
18621 | ||
18622 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
18623 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18624 | fi | |
18625 | ||
18626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
18627 | fi | |
18628 | ||
18629 | ||
18630 | JPEG_INCLUDE= | |
18631 | JPEG_LINK= | |
18632 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
18633 | cat >>confdefs.h <<\_ACEOF | |
18634 | #define wxUSE_LIBJPEG 1 | |
18635 | _ACEOF | |
18636 | ||
18637 | ||
18638 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
18639 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
18640 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
18641 | wxUSE_LIBJPEG=sys | |
18642 | fi | |
18643 | ||
18644 | if test "$wxUSE_MGL" != 1 ; then | |
18645 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
18646 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
18647 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18648 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18650 | else | |
18651 | cat >conftest.$ac_ext <<_ACEOF | |
18652 | #line $LINENO "configure" | |
18653 | /* confdefs.h. */ | |
18654 | _ACEOF | |
18655 | cat confdefs.h >>conftest.$ac_ext | |
18656 | cat >>conftest.$ac_ext <<_ACEOF | |
18657 | /* end confdefs.h. */ | |
18658 | ||
18659 | #undef HAVE_STDLIB_H | |
18660 | #include <stdio.h> | |
18661 | #include <jpeglib.h> | |
18662 | ||
18663 | int | |
18664 | main () | |
18665 | { | |
18666 | ||
18667 | ||
18668 | ; | |
18669 | return 0; | |
18670 | } | |
18671 | _ACEOF | |
18672 | rm -f conftest.$ac_objext | |
18673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18674 | (eval $ac_compile) 2>&5 | |
18675 | ac_status=$? | |
18676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18677 | (exit $ac_status); } && | |
18678 | { ac_try='test -s conftest.$ac_objext' | |
18679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18680 | (eval $ac_try) 2>&5 | |
18681 | ac_status=$? | |
18682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18683 | (exit $ac_status); }; }; then | |
18684 | ac_cv_header_jpeglib_h=yes | |
18685 | else | |
18686 | echo "$as_me: failed program was:" >&5 | |
18687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18688 | ||
18689 | ac_cv_header_jpeglib_h=no | |
18690 | ||
18691 | fi | |
18692 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18693 | ||
18694 | fi | |
18695 | ||
18696 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
18697 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
18698 | ||
18699 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
18700 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
18701 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18702 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18704 | else | |
18705 | ac_check_lib_save_LIBS=$LIBS | |
18706 | LIBS="-ljpeg $LIBS" | |
18707 | cat >conftest.$ac_ext <<_ACEOF | |
18708 | #line $LINENO "configure" | |
18709 | /* confdefs.h. */ | |
18710 | _ACEOF | |
18711 | cat confdefs.h >>conftest.$ac_ext | |
18712 | cat >>conftest.$ac_ext <<_ACEOF | |
18713 | /* end confdefs.h. */ | |
18714 | ||
18715 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18716 | #ifdef __cplusplus | |
18717 | extern "C" | |
18718 | #endif | |
18719 | /* We use char because int might match the return type of a gcc2 | |
18720 | builtin and then its argument prototype would still apply. */ | |
18721 | char jpeg_read_header (); | |
18722 | int | |
18723 | main () | |
18724 | { | |
18725 | jpeg_read_header (); | |
18726 | ; | |
18727 | return 0; | |
18728 | } | |
18729 | _ACEOF | |
18730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18732 | (eval $ac_link) 2>&5 | |
18733 | ac_status=$? | |
18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18735 | (exit $ac_status); } && | |
18736 | { ac_try='test -s conftest$ac_exeext' | |
18737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18738 | (eval $ac_try) 2>&5 | |
18739 | ac_status=$? | |
18740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18741 | (exit $ac_status); }; }; then | |
18742 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18743 | else | |
18744 | echo "$as_me: failed program was:" >&5 | |
18745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18746 | ||
18747 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18748 | fi | |
18749 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18750 | LIBS=$ac_check_lib_save_LIBS | |
18751 | fi | |
18752 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18753 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18754 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
18755 | JPEG_LINK=" -ljpeg" | |
18756 | fi | |
18757 | ||
18758 | fi | |
18759 | ||
18760 | if test "x$JPEG_LINK" = "x" ; then | |
18761 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
18762 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
18763 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18764 | { (exit 1); exit 1; }; } | |
18765 | else | |
18766 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
18767 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
18768 | wxUSE_LIBJPEG=builtin | |
18769 | fi | |
18770 | else | |
18771 | wxUSE_LIBJPEG=sys | |
18772 | fi | |
18773 | fi | |
18774 | fi | |
18775 | ||
18776 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
18777 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18778 | fi | |
18779 | fi | |
18780 | ||
18781 | ||
18782 | TIFF_INCLUDE= | |
18783 | TIFF_LINK= | |
18784 | TIFF_PREREQ_LINKS=-lm | |
18785 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
18786 | cat >>confdefs.h <<\_ACEOF | |
18787 | #define wxUSE_LIBTIFF 1 | |
18788 | _ACEOF | |
18789 | ||
18790 | ||
18791 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
18792 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
18793 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18794 | fi | |
18795 | if test "$wxUSE_ZLIB" = "sys"; then | |
18796 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18797 | fi | |
18798 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18799 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18800 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18801 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18803 | fi | |
18804 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18805 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18806 | else | |
18807 | # Is the header compilable? | |
18808 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18809 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18810 | cat >conftest.$ac_ext <<_ACEOF | |
18811 | #line $LINENO "configure" | |
18812 | /* confdefs.h. */ | |
18813 | _ACEOF | |
18814 | cat confdefs.h >>conftest.$ac_ext | |
18815 | cat >>conftest.$ac_ext <<_ACEOF | |
18816 | /* end confdefs.h. */ | |
18817 | $ac_includes_default | |
18818 | #include <tiffio.h> | |
18819 | _ACEOF | |
18820 | rm -f conftest.$ac_objext | |
18821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18822 | (eval $ac_compile) 2>&5 | |
18823 | ac_status=$? | |
18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18825 | (exit $ac_status); } && | |
18826 | { ac_try='test -s conftest.$ac_objext' | |
18827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18828 | (eval $ac_try) 2>&5 | |
18829 | ac_status=$? | |
18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18831 | (exit $ac_status); }; }; then | |
18832 | ac_header_compiler=yes | |
18833 | else | |
18834 | echo "$as_me: failed program was:" >&5 | |
18835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18836 | ||
18837 | ac_header_compiler=no | |
18838 | fi | |
18839 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18840 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18841 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18842 | ||
18843 | # Is the header present? | |
18844 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18845 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18846 | cat >conftest.$ac_ext <<_ACEOF | |
18847 | #line $LINENO "configure" | |
18848 | /* confdefs.h. */ | |
18849 | _ACEOF | |
18850 | cat confdefs.h >>conftest.$ac_ext | |
18851 | cat >>conftest.$ac_ext <<_ACEOF | |
18852 | /* end confdefs.h. */ | |
18853 | #include <tiffio.h> | |
18854 | _ACEOF | |
18855 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18856 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18857 | ac_status=$? | |
18858 | grep -v '^ *+' conftest.er1 >conftest.err | |
18859 | rm -f conftest.er1 | |
18860 | cat conftest.err >&5 | |
18861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18862 | (exit $ac_status); } >/dev/null; then | |
18863 | if test -s conftest.err; then | |
18864 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18865 | else | |
18866 | ac_cpp_err= | |
18867 | fi | |
18868 | else | |
18869 | ac_cpp_err=yes | |
18870 | fi | |
18871 | if test -z "$ac_cpp_err"; then | |
18872 | ac_header_preproc=yes | |
18873 | else | |
18874 | echo "$as_me: failed program was:" >&5 | |
18875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18876 | ||
18877 | ac_header_preproc=no | |
18878 | fi | |
18879 | rm -f conftest.err conftest.$ac_ext | |
18880 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18881 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18882 | ||
18883 | # So? What about this header? | |
18884 | case $ac_header_compiler:$ac_header_preproc in | |
18885 | yes:no ) | |
18886 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18887 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18888 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18889 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18890 | ( | |
18891 | cat <<\_ASBOX | |
18892 | ## ------------------------------------ ## | |
18893 | ## Report this to bug-autoconf@gnu.org. ## | |
18894 | ## ------------------------------------ ## | |
18895 | _ASBOX | |
18896 | ) | | |
18897 | sed "s/^/$as_me: WARNING: /" >&2 | |
18898 | ;; | |
18899 | no:yes ) | |
18900 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
18901 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
18902 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
18903 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
18904 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18905 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18906 | ( | |
18907 | cat <<\_ASBOX | |
18908 | ## ------------------------------------ ## | |
18909 | ## Report this to bug-autoconf@gnu.org. ## | |
18910 | ## ------------------------------------ ## | |
18911 | _ASBOX | |
18912 | ) | | |
18913 | sed "s/^/$as_me: WARNING: /" >&2 | |
18914 | ;; | |
18915 | esac | |
18916 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18917 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18918 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18920 | else | |
18921 | ac_cv_header_tiffio_h=$ac_header_preproc | |
18922 | fi | |
18923 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18924 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18925 | ||
18926 | fi | |
18927 | if test $ac_cv_header_tiffio_h = yes; then | |
18928 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
18929 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
18930 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
18931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18932 | else | |
18933 | ac_check_lib_save_LIBS=$LIBS | |
18934 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
18935 | cat >conftest.$ac_ext <<_ACEOF | |
18936 | #line $LINENO "configure" | |
18937 | /* confdefs.h. */ | |
18938 | _ACEOF | |
18939 | cat confdefs.h >>conftest.$ac_ext | |
18940 | cat >>conftest.$ac_ext <<_ACEOF | |
18941 | /* end confdefs.h. */ | |
18942 | ||
18943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18944 | #ifdef __cplusplus | |
18945 | extern "C" | |
18946 | #endif | |
18947 | /* We use char because int might match the return type of a gcc2 | |
18948 | builtin and then its argument prototype would still apply. */ | |
18949 | char TIFFError (); | |
18950 | int | |
18951 | main () | |
18952 | { | |
18953 | TIFFError (); | |
18954 | ; | |
18955 | return 0; | |
18956 | } | |
18957 | _ACEOF | |
18958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18960 | (eval $ac_link) 2>&5 | |
18961 | ac_status=$? | |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18963 | (exit $ac_status); } && | |
18964 | { ac_try='test -s conftest$ac_exeext' | |
18965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18966 | (eval $ac_try) 2>&5 | |
18967 | ac_status=$? | |
18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18969 | (exit $ac_status); }; }; then | |
18970 | ac_cv_lib_tiff_TIFFError=yes | |
18971 | else | |
18972 | echo "$as_me: failed program was:" >&5 | |
18973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18974 | ||
18975 | ac_cv_lib_tiff_TIFFError=no | |
18976 | fi | |
18977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18978 | LIBS=$ac_check_lib_save_LIBS | |
18979 | fi | |
18980 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
18981 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
18982 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
18983 | TIFF_LINK=" -ltiff" | |
18984 | fi | |
18985 | ||
18986 | ||
18987 | fi | |
18988 | ||
18989 | ||
18990 | ||
18991 | if test "x$TIFF_LINK" = "x" ; then | |
18992 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
18993 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
18994 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
18995 | { (exit 1); exit 1; }; } | |
18996 | else | |
18997 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
18998 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
18999 | wxUSE_LIBTIFF=builtin | |
19000 | fi | |
19001 | else | |
19002 | wxUSE_LIBTIFF=sys | |
19003 | fi | |
19004 | fi | |
19005 | ||
19006 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
19007 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
19008 | fi | |
19009 | fi | |
19010 | ||
19011 | ||
19012 | AFMINSTALL= | |
19013 | WIN32INSTALL= | |
19014 | ||
19015 | TOOLKIT= | |
19016 | TOOLKIT_INCLUDE= | |
19017 | WIDGET_SET= | |
19018 | ||
19019 | if test "$USE_WIN32" = 1 ; then | |
19020 | ||
19021 | for ac_header in w32api.h | |
19022 | do | |
19023 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19029 | fi | |
19030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19032 | else | |
19033 | # Is the header compilable? | |
19034 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19035 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19036 | cat >conftest.$ac_ext <<_ACEOF | |
19037 | #line $LINENO "configure" | |
19038 | /* confdefs.h. */ | |
19039 | _ACEOF | |
19040 | cat confdefs.h >>conftest.$ac_ext | |
19041 | cat >>conftest.$ac_ext <<_ACEOF | |
19042 | /* end confdefs.h. */ | |
19043 | $ac_includes_default | |
19044 | #include <$ac_header> | |
19045 | _ACEOF | |
19046 | rm -f conftest.$ac_objext | |
19047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19048 | (eval $ac_compile) 2>&5 | |
19049 | ac_status=$? | |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); } && | |
19052 | { ac_try='test -s conftest.$ac_objext' | |
19053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19054 | (eval $ac_try) 2>&5 | |
19055 | ac_status=$? | |
19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); }; }; then | |
19058 | ac_header_compiler=yes | |
19059 | else | |
19060 | echo "$as_me: failed program was:" >&5 | |
19061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19062 | ||
19063 | ac_header_compiler=no | |
19064 | fi | |
19065 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19066 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19067 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19068 | ||
19069 | # Is the header present? | |
19070 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19071 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19072 | cat >conftest.$ac_ext <<_ACEOF | |
19073 | #line $LINENO "configure" | |
19074 | /* confdefs.h. */ | |
19075 | _ACEOF | |
19076 | cat confdefs.h >>conftest.$ac_ext | |
19077 | cat >>conftest.$ac_ext <<_ACEOF | |
19078 | /* end confdefs.h. */ | |
19079 | #include <$ac_header> | |
19080 | _ACEOF | |
19081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19083 | ac_status=$? | |
19084 | grep -v '^ *+' conftest.er1 >conftest.err | |
19085 | rm -f conftest.er1 | |
19086 | cat conftest.err >&5 | |
19087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19088 | (exit $ac_status); } >/dev/null; then | |
19089 | if test -s conftest.err; then | |
19090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19091 | else | |
19092 | ac_cpp_err= | |
19093 | fi | |
19094 | else | |
19095 | ac_cpp_err=yes | |
19096 | fi | |
19097 | if test -z "$ac_cpp_err"; then | |
19098 | ac_header_preproc=yes | |
19099 | else | |
19100 | echo "$as_me: failed program was:" >&5 | |
19101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19102 | ||
19103 | ac_header_preproc=no | |
19104 | fi | |
19105 | rm -f conftest.err conftest.$ac_ext | |
19106 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19107 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19108 | ||
19109 | # So? What about this header? | |
19110 | case $ac_header_compiler:$ac_header_preproc in | |
19111 | yes:no ) | |
19112 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19113 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19115 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19116 | ( | |
19117 | cat <<\_ASBOX | |
19118 | ## ------------------------------------ ## | |
19119 | ## Report this to bug-autoconf@gnu.org. ## | |
19120 | ## ------------------------------------ ## | |
19121 | _ASBOX | |
19122 | ) | | |
19123 | sed "s/^/$as_me: WARNING: /" >&2 | |
19124 | ;; | |
19125 | no:yes ) | |
19126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19132 | ( | |
19133 | cat <<\_ASBOX | |
19134 | ## ------------------------------------ ## | |
19135 | ## Report this to bug-autoconf@gnu.org. ## | |
19136 | ## ------------------------------------ ## | |
19137 | _ASBOX | |
19138 | ) | | |
19139 | sed "s/^/$as_me: WARNING: /" >&2 | |
19140 | ;; | |
19141 | esac | |
19142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19146 | else | |
19147 | eval "$as_ac_Header=$ac_header_preproc" | |
19148 | fi | |
19149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19151 | ||
19152 | fi | |
19153 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19154 | cat >>confdefs.h <<_ACEOF | |
19155 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19156 | _ACEOF | |
19157 | ||
19158 | fi | |
19159 | ||
19160 | done | |
19161 | ||
19162 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19163 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19164 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19165 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19167 | fi | |
19168 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19169 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19170 | else | |
19171 | # Is the header compilable? | |
19172 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19173 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19174 | cat >conftest.$ac_ext <<_ACEOF | |
19175 | #line $LINENO "configure" | |
19176 | /* confdefs.h. */ | |
19177 | _ACEOF | |
19178 | cat confdefs.h >>conftest.$ac_ext | |
19179 | cat >>conftest.$ac_ext <<_ACEOF | |
19180 | /* end confdefs.h. */ | |
19181 | $ac_includes_default | |
19182 | #include <windows.h> | |
19183 | _ACEOF | |
19184 | rm -f conftest.$ac_objext | |
19185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19186 | (eval $ac_compile) 2>&5 | |
19187 | ac_status=$? | |
19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19189 | (exit $ac_status); } && | |
19190 | { ac_try='test -s conftest.$ac_objext' | |
19191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19192 | (eval $ac_try) 2>&5 | |
19193 | ac_status=$? | |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19195 | (exit $ac_status); }; }; then | |
19196 | ac_header_compiler=yes | |
19197 | else | |
19198 | echo "$as_me: failed program was:" >&5 | |
19199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19200 | ||
19201 | ac_header_compiler=no | |
19202 | fi | |
19203 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19204 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19205 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19206 | ||
19207 | # Is the header present? | |
19208 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19209 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19210 | cat >conftest.$ac_ext <<_ACEOF | |
19211 | #line $LINENO "configure" | |
19212 | /* confdefs.h. */ | |
19213 | _ACEOF | |
19214 | cat confdefs.h >>conftest.$ac_ext | |
19215 | cat >>conftest.$ac_ext <<_ACEOF | |
19216 | /* end confdefs.h. */ | |
19217 | #include <windows.h> | |
19218 | _ACEOF | |
19219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19221 | ac_status=$? | |
19222 | grep -v '^ *+' conftest.er1 >conftest.err | |
19223 | rm -f conftest.er1 | |
19224 | cat conftest.err >&5 | |
19225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19226 | (exit $ac_status); } >/dev/null; then | |
19227 | if test -s conftest.err; then | |
19228 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19229 | else | |
19230 | ac_cpp_err= | |
19231 | fi | |
19232 | else | |
19233 | ac_cpp_err=yes | |
19234 | fi | |
19235 | if test -z "$ac_cpp_err"; then | |
19236 | ac_header_preproc=yes | |
19237 | else | |
19238 | echo "$as_me: failed program was:" >&5 | |
19239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19240 | ||
19241 | ac_header_preproc=no | |
19242 | fi | |
19243 | rm -f conftest.err conftest.$ac_ext | |
19244 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19245 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19246 | ||
19247 | # So? What about this header? | |
19248 | case $ac_header_compiler:$ac_header_preproc in | |
19249 | yes:no ) | |
19250 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19251 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19252 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19253 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19254 | ( | |
19255 | cat <<\_ASBOX | |
19256 | ## ------------------------------------ ## | |
19257 | ## Report this to bug-autoconf@gnu.org. ## | |
19258 | ## ------------------------------------ ## | |
19259 | _ASBOX | |
19260 | ) | | |
19261 | sed "s/^/$as_me: WARNING: /" >&2 | |
19262 | ;; | |
19263 | no:yes ) | |
19264 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19265 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19266 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19267 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19268 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19269 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19270 | ( | |
19271 | cat <<\_ASBOX | |
19272 | ## ------------------------------------ ## | |
19273 | ## Report this to bug-autoconf@gnu.org. ## | |
19274 | ## ------------------------------------ ## | |
19275 | _ASBOX | |
19276 | ) | | |
19277 | sed "s/^/$as_me: WARNING: /" >&2 | |
19278 | ;; | |
19279 | esac | |
19280 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19281 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19282 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19284 | else | |
19285 | ac_cv_header_windows_h=$ac_header_preproc | |
19286 | fi | |
19287 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19288 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19289 | ||
19290 | fi | |
19291 | if test $ac_cv_header_windows_h = yes; then | |
19292 | : | |
19293 | else | |
19294 | ||
19295 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
19296 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19297 | { (exit 1); exit 1; }; } | |
19298 | ||
19299 | fi | |
19300 | ||
19301 | ||
19302 | ||
19303 | echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5 | |
19304 | echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6 | |
19305 | if test "${wx_cv_w32api_win32_ie+set}" = set; then | |
19306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19307 | else | |
19308 | ||
19309 | cat >conftest.$ac_ext <<_ACEOF | |
19310 | #line $LINENO "configure" | |
19311 | /* confdefs.h. */ | |
19312 | _ACEOF | |
19313 | cat confdefs.h >>conftest.$ac_ext | |
19314 | cat >>conftest.$ac_ext <<_ACEOF | |
19315 | /* end confdefs.h. */ | |
19316 | #include <w32api.h> | |
19317 | int | |
19318 | main () | |
19319 | { | |
19320 | ||
19321 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
19322 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
19323 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
19324 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
19325 | ||
19326 | #if !wxCHECK_W32API_VERSION(1,1) | |
19327 | #error You need w32api 1.1 or newer | |
19328 | #endif | |
19329 | ||
19330 | ; | |
19331 | return 0; | |
19332 | } | |
19333 | _ACEOF | |
19334 | rm -f conftest.$ac_objext | |
19335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19336 | (eval $ac_compile) 2>&5 | |
19337 | ac_status=$? | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19339 | (exit $ac_status); } && | |
19340 | { ac_try='test -s conftest.$ac_objext' | |
19341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19342 | (eval $ac_try) 2>&5 | |
19343 | ac_status=$? | |
19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19345 | (exit $ac_status); }; }; then | |
19346 | ||
19347 | wx_cv_w32api_win32_ie=yes | |
19348 | ||
19349 | else | |
19350 | echo "$as_me: failed program was:" >&5 | |
19351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19352 | ||
19353 | ||
19354 | wx_cv_w32api_win32_ie=no | |
19355 | ||
19356 | fi | |
19357 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19358 | ||
19359 | fi | |
19360 | echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5 | |
19361 | echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 | |
19362 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
19363 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
19364 | fi | |
19365 | ||
19366 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
19367 | ||
19368 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
19369 | LIBS="$LIBS -loleacc" | |
19370 | fi | |
19371 | ||
19372 | case "${host}" in | |
19373 | *-*-cygwin* ) | |
19374 | LIBS="$LIBS -lkernel32 -luser32" | |
19375 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
19376 | esac | |
19377 | ||
19378 | if test "$wxUSE_ODBC" = "sys" ; then | |
19379 | wxUSE_ODBC = "yes" | |
19380 | fi | |
19381 | if test "$wxUSE_ODBC" = "yes" ; then | |
19382 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
19383 | cat >>confdefs.h <<\_ACEOF | |
19384 | #define wxUSE_ODBC 1 | |
19385 | _ACEOF | |
19386 | ||
19387 | fi | |
19388 | ||
19389 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
19390 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
19391 | ||
19392 | WIN32INSTALL=win32install | |
19393 | fi | |
19394 | ||
19395 | if test "$wxUSE_GUI" = "yes"; then | |
19396 | USE_GUI=1 | |
19397 | ||
19398 | GUI_TK_LIBRARY= | |
19399 | ||
19400 | WXGTK12= | |
19401 | WXGTK127= | |
19402 | WXGTK20= | |
19403 | ||
19404 | if test "$wxUSE_MSW" = 1 ; then | |
19405 | TOOLKIT=MSW | |
19406 | GUIDIST=MSW_DIST | |
19407 | fi | |
19408 | ||
19409 | if test "$wxUSE_GTK" = 1; then | |
19410 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
19411 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
19412 | ||
19413 | gtk_version_cached=1 | |
19414 | if test "${wx_cv_lib_gtk+set}" = set; then | |
19415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19416 | else | |
19417 | ||
19418 | gtk_version_cached=0 | |
19419 | echo "$as_me:$LINENO: result: " >&5 | |
19420 | echo "${ECHO_T}" >&6 | |
19421 | ||
19422 | GTK_MODULES= | |
19423 | if test "$wxUSE_THREADS" = "yes"; then | |
19424 | GTK_MODULES=gthread | |
19425 | fi | |
19426 | ||
19427 | wx_cv_lib_gtk= | |
19428 | if test "x$wxUSE_GTK2" = "xyes"; then | |
19429 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19430 | if test "${enable_gtktest+set}" = set; then | |
19431 | enableval="$enable_gtktest" | |
19432 | ||
19433 | else | |
19434 | enable_gtktest=yes | |
19435 | fi; | |
19436 | ||
19437 | pkg_config_args=gtk+-2.0 | |
19438 | for module in . $GTK_MODULES | |
19439 | do | |
19440 | case "$module" in | |
19441 | gthread) | |
19442 | pkg_config_args="$pkg_config_args gthread-2.0" | |
19443 | ;; | |
19444 | esac | |
19445 | done | |
19446 | ||
19447 | no_gtk="" | |
19448 | ||
19449 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
19450 | set dummy pkg-config; ac_word=$2 | |
19451 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19452 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19453 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19455 | else | |
19456 | case $PKG_CONFIG in | |
19457 | [\\/]* | ?:[\\/]*) | |
19458 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
19459 | ;; | |
19460 | *) | |
19461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19462 | for as_dir in $PATH | |
19463 | do | |
19464 | IFS=$as_save_IFS | |
19465 | test -z "$as_dir" && as_dir=. | |
19466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19468 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19470 | break 2 | |
19471 | fi | |
19472 | done | |
19473 | done | |
19474 | ||
19475 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
19476 | ;; | |
19477 | esac | |
19478 | fi | |
19479 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
19480 | ||
19481 | if test -n "$PKG_CONFIG"; then | |
19482 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
19483 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
19484 | else | |
19485 | echo "$as_me:$LINENO: result: no" >&5 | |
19486 | echo "${ECHO_T}no" >&6 | |
19487 | fi | |
19488 | ||
19489 | ||
19490 | if test x$PKG_CONFIG != xno ; then | |
19491 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19492 | : | |
19493 | else | |
19494 | echo *** pkg-config too old; version 0.7 or better required. | |
19495 | no_gtk=yes | |
19496 | PKG_CONFIG=no | |
19497 | fi | |
19498 | else | |
19499 | no_gtk=yes | |
19500 | fi | |
19501 | ||
19502 | min_gtk_version=2.0.0 | |
19503 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
19504 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
19505 | ||
19506 | if test x$PKG_CONFIG != xno ; then | |
19507 | ## don't try to run the test against uninstalled libtool libs | |
19508 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19509 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19510 | enable_gtktest=no | |
19511 | fi | |
19512 | ||
19513 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
19514 | : | |
19515 | else | |
19516 | no_gtk=yes | |
19517 | fi | |
19518 | fi | |
19519 | ||
19520 | if test x"$no_gtk" = x ; then | |
19521 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19522 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19523 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19524 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19525 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19526 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19527 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19528 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19529 | if test "x$enable_gtktest" = "xyes" ; then | |
19530 | ac_save_CFLAGS="$CFLAGS" | |
19531 | ac_save_LIBS="$LIBS" | |
19532 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19533 | LIBS="$GTK_LIBS $LIBS" | |
19534 | rm -f conf.gtktest | |
19535 | if test "$cross_compiling" = yes; then | |
19536 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
19537 | else | |
19538 | cat >conftest.$ac_ext <<_ACEOF | |
19539 | #line $LINENO "configure" | |
19540 | /* confdefs.h. */ | |
19541 | _ACEOF | |
19542 | cat confdefs.h >>conftest.$ac_ext | |
19543 | cat >>conftest.$ac_ext <<_ACEOF | |
19544 | /* end confdefs.h. */ | |
19545 | ||
19546 | #include <gtk/gtk.h> | |
19547 | #include <stdio.h> | |
19548 | #include <stdlib.h> | |
19549 | ||
19550 | int | |
19551 | main () | |
19552 | { | |
19553 | int major, minor, micro; | |
19554 | char *tmp_version; | |
19555 | ||
19556 | system ("touch conf.gtktest"); | |
19557 | ||
19558 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
19559 | tmp_version = g_strdup("$min_gtk_version"); | |
19560 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19561 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19562 | exit(1); | |
19563 | } | |
19564 | ||
19565 | if ((gtk_major_version != $gtk_config_major_version) || | |
19566 | (gtk_minor_version != $gtk_config_minor_version) || | |
19567 | (gtk_micro_version != $gtk_config_micro_version)) | |
19568 | { | |
19569 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
19570 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
19571 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19572 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19573 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19574 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19575 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19576 | printf("*** required on your system.\n"); | |
19577 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19578 | printf("*** to point to the correct configuration files\n"); | |
19579 | } | |
19580 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
19581 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19582 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19583 | { | |
19584 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19585 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19586 | printf("*** library (version %d.%d.%d)\n", | |
19587 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19588 | } | |
19589 | else | |
19590 | { | |
19591 | if ((gtk_major_version > major) || | |
19592 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19593 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19594 | { | |
19595 | return 0; | |
19596 | } | |
19597 | else | |
19598 | { | |
19599 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19600 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19601 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19602 | major, minor, micro); | |
19603 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19604 | printf("***\n"); | |
19605 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19606 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19607 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19608 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19609 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19610 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19611 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19612 | } | |
19613 | } | |
19614 | return 1; | |
19615 | } | |
19616 | ||
19617 | _ACEOF | |
19618 | rm -f conftest$ac_exeext | |
19619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19620 | (eval $ac_link) 2>&5 | |
19621 | ac_status=$? | |
19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19625 | (eval $ac_try) 2>&5 | |
19626 | ac_status=$? | |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19628 | (exit $ac_status); }; }; then | |
19629 | : | |
19630 | else | |
19631 | echo "$as_me: program exited with status $ac_status" >&5 | |
19632 | echo "$as_me: failed program was:" >&5 | |
19633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19634 | ||
19635 | ( exit $ac_status ) | |
19636 | no_gtk=yes | |
19637 | fi | |
19638 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19639 | fi | |
19640 | CFLAGS="$ac_save_CFLAGS" | |
19641 | LIBS="$ac_save_LIBS" | |
19642 | fi | |
19643 | fi | |
19644 | if test "x$no_gtk" = x ; then | |
19645 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
19646 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
19647 | wx_cv_lib_gtk=2.0 | |
19648 | else | |
19649 | echo "$as_me:$LINENO: result: no" >&5 | |
19650 | echo "${ECHO_T}no" >&6 | |
19651 | if test "$PKG_CONFIG" = "no" ; then | |
19652 | echo "*** A new enough version of pkg-config was not found." | |
19653 | echo "*** See http://pkgconfig.sourceforge.net" | |
19654 | else | |
19655 | if test -f conf.gtktest ; then | |
19656 | : | |
19657 | else | |
19658 | echo "*** Could not run GTK+ test program, checking why..." | |
19659 | ac_save_CFLAGS="$CFLAGS" | |
19660 | ac_save_LIBS="$LIBS" | |
19661 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19662 | LIBS="$LIBS $GTK_LIBS" | |
19663 | cat >conftest.$ac_ext <<_ACEOF | |
19664 | #line $LINENO "configure" | |
19665 | /* confdefs.h. */ | |
19666 | _ACEOF | |
19667 | cat confdefs.h >>conftest.$ac_ext | |
19668 | cat >>conftest.$ac_ext <<_ACEOF | |
19669 | /* end confdefs.h. */ | |
19670 | ||
19671 | #include <gtk/gtk.h> | |
19672 | #include <stdio.h> | |
19673 | ||
19674 | int | |
19675 | main () | |
19676 | { | |
19677 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19678 | ; | |
19679 | return 0; | |
19680 | } | |
19681 | _ACEOF | |
19682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19684 | (eval $ac_link) 2>&5 | |
19685 | ac_status=$? | |
19686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19687 | (exit $ac_status); } && | |
19688 | { ac_try='test -s conftest$ac_exeext' | |
19689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19690 | (eval $ac_try) 2>&5 | |
19691 | ac_status=$? | |
19692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19693 | (exit $ac_status); }; }; then | |
19694 | echo "*** The test program compiled, but did not run. This usually means" | |
19695 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
19696 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
19697 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19698 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19699 | echo "*** is required on your system" | |
19700 | echo "***" | |
19701 | echo "*** If you have an old version installed, it is best to remove it, although" | |
19702 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
19703 | else | |
19704 | echo "$as_me: failed program was:" >&5 | |
19705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19706 | ||
19707 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
19708 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
19709 | fi | |
19710 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19711 | CFLAGS="$ac_save_CFLAGS" | |
19712 | LIBS="$ac_save_LIBS" | |
19713 | fi | |
19714 | fi | |
19715 | GTK_CFLAGS="" | |
19716 | GTK_LIBS="" | |
19717 | : | |
19718 | fi | |
19719 | ||
19720 | ||
19721 | rm -f conf.gtktest | |
19722 | ||
19723 | else | |
19724 | ||
19725 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
19726 | if test "${with_gtk_prefix+set}" = set; then | |
19727 | withval="$with_gtk_prefix" | |
19728 | gtk_config_prefix="$withval" | |
19729 | else | |
19730 | gtk_config_prefix="" | |
19731 | fi; | |
19732 | ||
19733 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
19734 | if test "${with_gtk_exec_prefix+set}" = set; then | |
19735 | withval="$with_gtk_exec_prefix" | |
19736 | gtk_config_exec_prefix="$withval" | |
19737 | else | |
19738 | gtk_config_exec_prefix="" | |
19739 | fi; | |
19740 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19741 | if test "${enable_gtktest+set}" = set; then | |
19742 | enableval="$enable_gtktest" | |
19743 | ||
19744 | else | |
19745 | enable_gtktest=yes | |
19746 | fi; | |
19747 | ||
19748 | for module in . $GTK_MODULES | |
19749 | do | |
19750 | case "$module" in | |
19751 | gthread) | |
19752 | gtk_config_args="$gtk_config_args gthread" | |
19753 | ;; | |
19754 | esac | |
19755 | done | |
19756 | ||
19757 | if test x$gtk_config_exec_prefix != x ; then | |
19758 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
19759 | if test x${GTK_CONFIG+set} != xset ; then | |
19760 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
19761 | fi | |
19762 | fi | |
19763 | if test x$gtk_config_prefix != x ; then | |
19764 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
19765 | if test x${GTK_CONFIG+set} != xset ; then | |
19766 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
19767 | fi | |
19768 | fi | |
19769 | ||
19770 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
19771 | set dummy gtk-config; ac_word=$2 | |
19772 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19773 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19774 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
19775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19776 | else | |
19777 | case $GTK_CONFIG in | |
19778 | [\\/]* | ?:[\\/]*) | |
19779 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
19780 | ;; | |
19781 | *) | |
19782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19783 | for as_dir in $PATH | |
19784 | do | |
19785 | IFS=$as_save_IFS | |
19786 | test -z "$as_dir" && as_dir=. | |
19787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19789 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19791 | break 2 | |
19792 | fi | |
19793 | done | |
19794 | done | |
19795 | ||
19796 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
19797 | ;; | |
19798 | esac | |
19799 | fi | |
19800 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
19801 | ||
19802 | if test -n "$GTK_CONFIG"; then | |
19803 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
19804 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
19805 | else | |
19806 | echo "$as_me:$LINENO: result: no" >&5 | |
19807 | echo "${ECHO_T}no" >&6 | |
19808 | fi | |
19809 | ||
19810 | min_gtk_version=1.2.7 | |
19811 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
19812 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
19813 | no_gtk="" | |
19814 | if test "$GTK_CONFIG" = "no" ; then | |
19815 | no_gtk=yes | |
19816 | else | |
19817 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
19818 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
19819 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19820 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19821 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19822 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19823 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19824 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19825 | if test "x$enable_gtktest" = "xyes" ; then | |
19826 | ac_save_CFLAGS="$CFLAGS" | |
19827 | ac_save_LIBS="$LIBS" | |
19828 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19829 | LIBS="$GTK_LIBS $LIBS" | |
19830 | rm -f conf.gtktest | |
19831 | if test "$cross_compiling" = yes; then | |
19832 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
19833 | else | |
19834 | cat >conftest.$ac_ext <<_ACEOF | |
19835 | #line $LINENO "configure" | |
19836 | /* confdefs.h. */ | |
19837 | _ACEOF | |
19838 | cat confdefs.h >>conftest.$ac_ext | |
19839 | cat >>conftest.$ac_ext <<_ACEOF | |
19840 | /* end confdefs.h. */ | |
19841 | ||
19842 | #include <gtk/gtk.h> | |
19843 | #include <stdio.h> | |
19844 | #include <stdlib.h> | |
19845 | ||
19846 | int | |
19847 | main () | |
19848 | { | |
19849 | int major, minor, micro; | |
19850 | char *tmp_version; | |
19851 | ||
19852 | system ("touch conf.gtktest"); | |
19853 | ||
19854 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
19855 | tmp_version = g_strdup("$min_gtk_version"); | |
19856 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19857 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19858 | exit(1); | |
19859 | } | |
19860 | ||
19861 | if ((gtk_major_version != $gtk_config_major_version) || | |
19862 | (gtk_minor_version != $gtk_config_minor_version) || | |
19863 | (gtk_micro_version != $gtk_config_micro_version)) | |
19864 | { | |
19865 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
19866 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
19867 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19868 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
19869 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19870 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19871 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19872 | printf("*** required on your system.\n"); | |
19873 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
19874 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
19875 | printf("*** before re-running configure\n"); | |
19876 | } | |
19877 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
19878 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
19879 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19880 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19881 | { | |
19882 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19883 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19884 | printf("*** library (version %d.%d.%d)\n", | |
19885 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19886 | } | |
19887 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
19888 | else | |
19889 | { | |
19890 | if ((gtk_major_version > major) || | |
19891 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19892 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19893 | { | |
19894 | return 0; | |
19895 | } | |
19896 | else | |
19897 | { | |
19898 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19899 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19900 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19901 | major, minor, micro); | |
19902 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19903 | printf("***\n"); | |
19904 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19905 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
19906 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19907 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
19908 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
19909 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19910 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19911 | } | |
19912 | } | |
19913 | return 1; | |
19914 | } | |
19915 | ||
19916 | _ACEOF | |
19917 | rm -f conftest$ac_exeext | |
19918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19919 | (eval $ac_link) 2>&5 | |
19920 | ac_status=$? | |
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19924 | (eval $ac_try) 2>&5 | |
19925 | ac_status=$? | |
19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19927 | (exit $ac_status); }; }; then | |
19928 | : | |
19929 | else | |
19930 | echo "$as_me: program exited with status $ac_status" >&5 | |
19931 | echo "$as_me: failed program was:" >&5 | |
19932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19933 | ||
19934 | ( exit $ac_status ) | |
19935 | no_gtk=yes | |
19936 | fi | |
19937 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19938 | fi | |
19939 | CFLAGS="$ac_save_CFLAGS" | |
19940 | LIBS="$ac_save_LIBS" | |
19941 | fi | |
19942 | fi | |
19943 | if test "x$no_gtk" = x ; then | |
19944 | echo "$as_me:$LINENO: result: yes" >&5 | |
19945 | echo "${ECHO_T}yes" >&6 | |
19946 | wx_cv_lib_gtk=1.2.7 | |
19947 | else | |
19948 | echo "$as_me:$LINENO: result: no" >&5 | |
19949 | echo "${ECHO_T}no" >&6 | |
19950 | if test "$GTK_CONFIG" = "no" ; then | |
19951 | echo "*** The gtk-config script installed by GTK could not be found" | |
19952 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
19953 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
19954 | echo "*** full path to gtk-config." | |
19955 | else | |
19956 | if test -f conf.gtktest ; then | |
19957 | : | |
19958 | else | |
19959 | echo "*** Could not run GTK test program, checking why..." | |
19960 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19961 | LIBS="$LIBS $GTK_LIBS" | |
19962 | cat >conftest.$ac_ext <<_ACEOF | |
19963 | #line $LINENO "configure" | |
19964 | /* confdefs.h. */ | |
19965 | _ACEOF | |
19966 | cat confdefs.h >>conftest.$ac_ext | |
19967 | cat >>conftest.$ac_ext <<_ACEOF | |
19968 | /* end confdefs.h. */ | |
19969 | ||
19970 | #include <gtk/gtk.h> | |
19971 | #include <stdio.h> | |
19972 | ||
19973 | int | |
19974 | main () | |
19975 | { | |
19976 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19977 | ; | |
19978 | return 0; | |
19979 | } | |
19980 | _ACEOF | |
19981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19983 | (eval $ac_link) 2>&5 | |
19984 | ac_status=$? | |
19985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19986 | (exit $ac_status); } && | |
19987 | { ac_try='test -s conftest$ac_exeext' | |
19988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19989 | (eval $ac_try) 2>&5 | |
19990 | ac_status=$? | |
19991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19992 | (exit $ac_status); }; }; then | |
19993 | echo "*** The test program compiled, but did not run. This usually means" | |
19994 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
19995 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
19996 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19997 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19998 | echo "*** is required on your system" | |
19999 | echo "***" | |
20000 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20001 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20002 | echo "***" | |
20003 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20004 | echo "*** came with the system with the command" | |
20005 | echo "***" | |
20006 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
20007 | else | |
20008 | echo "$as_me: failed program was:" >&5 | |
20009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20010 | ||
20011 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
20012 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
20013 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
20014 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
20015 | fi | |
20016 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20017 | CFLAGS="$ac_save_CFLAGS" | |
20018 | LIBS="$ac_save_LIBS" | |
20019 | fi | |
20020 | fi | |
20021 | GTK_CFLAGS="" | |
20022 | GTK_LIBS="" | |
20023 | : | |
20024 | fi | |
20025 | ||
20026 | ||
20027 | rm -f conf.gtktest | |
20028 | ||
20029 | ||
20030 | if test -z "$wx_cv_lib_gtk"; then | |
20031 | ||
20032 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
20033 | if test "${with_gtk_prefix+set}" = set; then | |
20034 | withval="$with_gtk_prefix" | |
20035 | gtk_config_prefix="$withval" | |
20036 | else | |
20037 | gtk_config_prefix="" | |
20038 | fi; | |
20039 | ||
20040 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
20041 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20042 | withval="$with_gtk_exec_prefix" | |
20043 | gtk_config_exec_prefix="$withval" | |
20044 | else | |
20045 | gtk_config_exec_prefix="" | |
20046 | fi; | |
20047 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
20048 | if test "${enable_gtktest+set}" = set; then | |
20049 | enableval="$enable_gtktest" | |
20050 | ||
20051 | else | |
20052 | enable_gtktest=yes | |
20053 | fi; | |
20054 | ||
20055 | for module in . $GTK_MODULES | |
20056 | do | |
20057 | case "$module" in | |
20058 | gthread) | |
20059 | gtk_config_args="$gtk_config_args gthread" | |
20060 | ;; | |
20061 | esac | |
20062 | done | |
20063 | ||
20064 | if test x$gtk_config_exec_prefix != x ; then | |
20065 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20066 | if test x${GTK_CONFIG+set} != xset ; then | |
20067 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20068 | fi | |
20069 | fi | |
20070 | if test x$gtk_config_prefix != x ; then | |
20071 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20072 | if test x${GTK_CONFIG+set} != xset ; then | |
20073 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20074 | fi | |
20075 | fi | |
20076 | ||
20077 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20078 | set dummy gtk-config; ac_word=$2 | |
20079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20081 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20083 | else | |
20084 | case $GTK_CONFIG in | |
20085 | [\\/]* | ?:[\\/]*) | |
20086 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
20087 | ;; | |
20088 | *) | |
20089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20090 | for as_dir in $PATH | |
20091 | do | |
20092 | IFS=$as_save_IFS | |
20093 | test -z "$as_dir" && as_dir=. | |
20094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20096 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20098 | break 2 | |
20099 | fi | |
20100 | done | |
20101 | done | |
20102 | ||
20103 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
20104 | ;; | |
20105 | esac | |
20106 | fi | |
20107 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
20108 | ||
20109 | if test -n "$GTK_CONFIG"; then | |
20110 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
20111 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
20112 | else | |
20113 | echo "$as_me:$LINENO: result: no" >&5 | |
20114 | echo "${ECHO_T}no" >&6 | |
20115 | fi | |
20116 | ||
20117 | min_gtk_version=1.2.3 | |
20118 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
20119 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
20120 | no_gtk="" | |
20121 | if test "$GTK_CONFIG" = "no" ; then | |
20122 | no_gtk=yes | |
20123 | else | |
20124 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20125 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20126 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20127 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20128 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20129 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20130 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20131 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20132 | if test "x$enable_gtktest" = "xyes" ; then | |
20133 | ac_save_CFLAGS="$CFLAGS" | |
20134 | ac_save_LIBS="$LIBS" | |
20135 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20136 | LIBS="$GTK_LIBS $LIBS" | |
20137 | rm -f conf.gtktest | |
20138 | if test "$cross_compiling" = yes; then | |
20139 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20140 | else | |
20141 | cat >conftest.$ac_ext <<_ACEOF | |
20142 | #line $LINENO "configure" | |
20143 | /* confdefs.h. */ | |
20144 | _ACEOF | |
20145 | cat confdefs.h >>conftest.$ac_ext | |
20146 | cat >>conftest.$ac_ext <<_ACEOF | |
20147 | /* end confdefs.h. */ | |
20148 | ||
20149 | #include <gtk/gtk.h> | |
20150 | #include <stdio.h> | |
20151 | #include <stdlib.h> | |
20152 | ||
20153 | int | |
20154 | main () | |
20155 | { | |
20156 | int major, minor, micro; | |
20157 | char *tmp_version; | |
20158 | ||
20159 | system ("touch conf.gtktest"); | |
20160 | ||
20161 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20162 | tmp_version = g_strdup("$min_gtk_version"); | |
20163 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20164 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20165 | exit(1); | |
20166 | } | |
20167 | ||
20168 | if ((gtk_major_version != $gtk_config_major_version) || | |
20169 | (gtk_minor_version != $gtk_config_minor_version) || | |
20170 | (gtk_micro_version != $gtk_config_micro_version)) | |
20171 | { | |
20172 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
20173 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
20174 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20175 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20176 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20177 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20178 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20179 | printf("*** required on your system.\n"); | |
20180 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20181 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20182 | printf("*** before re-running configure\n"); | |
20183 | } | |
20184 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
20185 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20186 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20187 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20188 | { | |
20189 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20190 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20191 | printf("*** library (version %d.%d.%d)\n", | |
20192 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20193 | } | |
20194 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20195 | else | |
20196 | { | |
20197 | if ((gtk_major_version > major) || | |
20198 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20199 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20200 | { | |
20201 | return 0; | |
20202 | } | |
20203 | else | |
20204 | { | |
20205 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20206 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20207 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20208 | major, minor, micro); | |
20209 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20210 | printf("***\n"); | |
20211 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20212 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20213 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20214 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20215 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20216 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20217 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20218 | } | |
20219 | } | |
20220 | return 1; | |
20221 | } | |
20222 | ||
20223 | _ACEOF | |
20224 | rm -f conftest$ac_exeext | |
20225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20226 | (eval $ac_link) 2>&5 | |
20227 | ac_status=$? | |
20228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20229 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20231 | (eval $ac_try) 2>&5 | |
20232 | ac_status=$? | |
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20234 | (exit $ac_status); }; }; then | |
20235 | : | |
20236 | else | |
20237 | echo "$as_me: program exited with status $ac_status" >&5 | |
20238 | echo "$as_me: failed program was:" >&5 | |
20239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20240 | ||
20241 | ( exit $ac_status ) | |
20242 | no_gtk=yes | |
20243 | fi | |
20244 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20245 | fi | |
20246 | CFLAGS="$ac_save_CFLAGS" | |
20247 | LIBS="$ac_save_LIBS" | |
20248 | fi | |
20249 | fi | |
20250 | if test "x$no_gtk" = x ; then | |
20251 | echo "$as_me:$LINENO: result: yes" >&5 | |
20252 | echo "${ECHO_T}yes" >&6 | |
20253 | wx_cv_lib_gtk=1.2.3 | |
20254 | else | |
20255 | echo "$as_me:$LINENO: result: no" >&5 | |
20256 | echo "${ECHO_T}no" >&6 | |
20257 | if test "$GTK_CONFIG" = "no" ; then | |
20258 | echo "*** The gtk-config script installed by GTK could not be found" | |
20259 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20260 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20261 | echo "*** full path to gtk-config." | |
20262 | else | |
20263 | if test -f conf.gtktest ; then | |
20264 | : | |
20265 | else | |
20266 | echo "*** Could not run GTK test program, checking why..." | |
20267 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20268 | LIBS="$LIBS $GTK_LIBS" | |
20269 | cat >conftest.$ac_ext <<_ACEOF | |
20270 | #line $LINENO "configure" | |
20271 | /* confdefs.h. */ | |
20272 | _ACEOF | |
20273 | cat confdefs.h >>conftest.$ac_ext | |
20274 | cat >>conftest.$ac_ext <<_ACEOF | |
20275 | /* end confdefs.h. */ | |
20276 | ||
20277 | #include <gtk/gtk.h> | |
20278 | #include <stdio.h> | |
20279 | ||
20280 | int | |
20281 | main () | |
20282 | { | |
20283 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20284 | ; | |
20285 | return 0; | |
20286 | } | |
20287 | _ACEOF | |
20288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20290 | (eval $ac_link) 2>&5 | |
20291 | ac_status=$? | |
20292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20293 | (exit $ac_status); } && | |
20294 | { ac_try='test -s conftest$ac_exeext' | |
20295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20296 | (eval $ac_try) 2>&5 | |
20297 | ac_status=$? | |
20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20299 | (exit $ac_status); }; }; then | |
20300 | echo "*** The test program compiled, but did not run. This usually means" | |
20301 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20302 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20303 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20304 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20305 | echo "*** is required on your system" | |
20306 | echo "***" | |
20307 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20308 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20309 | echo "***" | |
20310 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20311 | echo "*** came with the system with the command" | |
20312 | echo "***" | |
20313 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
20314 | else | |
20315 | echo "$as_me: failed program was:" >&5 | |
20316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20317 | ||
20318 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
20319 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
20320 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
20321 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
20322 | fi | |
20323 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20324 | CFLAGS="$ac_save_CFLAGS" | |
20325 | LIBS="$ac_save_LIBS" | |
20326 | fi | |
20327 | fi | |
20328 | GTK_CFLAGS="" | |
20329 | GTK_LIBS="" | |
20330 | : | |
20331 | fi | |
20332 | ||
20333 | ||
20334 | rm -f conf.gtktest | |
20335 | ||
20336 | fi | |
20337 | fi | |
20338 | ||
20339 | if test -z "$wx_cv_lib_gtk"; then | |
20340 | wx_cv_lib_gtk=none | |
20341 | else | |
20342 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20343 | wx_cv_libs_gtk=$GTK_LIBS | |
20344 | fi | |
20345 | ||
20346 | ||
20347 | fi | |
20348 | ||
20349 | ||
20350 | if test "$gtk_version_cached" = 1; then | |
20351 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
20352 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
20353 | fi | |
20354 | ||
20355 | case "$wx_cv_lib_gtk" in | |
20356 | 2.0) WXGTK20=1 | |
20357 | TOOLKIT_VERSION=2 | |
20358 | ;; | |
20359 | 1.2.7) WXGTK127=1 | |
20360 | WXGTK12=1 | |
20361 | ;; | |
20362 | 1.2.3) WXGTK12=1 | |
20363 | ;; | |
20364 | *) { { echo "$as_me:$LINENO: error: | |
20365 | Please check that gtk-config is in path, the directory | |
20366 | where GTK+ libraries are installed (returned by | |
20367 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20368 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20369 | " >&5 | |
20370 | echo "$as_me: error: | |
20371 | Please check that gtk-config is in path, the directory | |
20372 | where GTK+ libraries are installed (returned by | |
20373 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20374 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20375 | " >&2;} | |
20376 | { (exit 1); exit 1; }; } | |
20377 | ;; | |
20378 | esac | |
20379 | ||
20380 | if test "$WXGTK20" = 1; then | |
20381 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20382 | ||
20383 | succeeded=no | |
20384 | ||
20385 | if test -z "$PKG_CONFIG"; then | |
20386 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20387 | set dummy pkg-config; ac_word=$2 | |
20388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20390 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20392 | else | |
20393 | case $PKG_CONFIG in | |
20394 | [\\/]* | ?:[\\/]*) | |
20395 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
20396 | ;; | |
20397 | *) | |
20398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20399 | for as_dir in $PATH | |
20400 | do | |
20401 | IFS=$as_save_IFS | |
20402 | test -z "$as_dir" && as_dir=. | |
20403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20405 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20407 | break 2 | |
20408 | fi | |
20409 | done | |
20410 | done | |
20411 | ||
20412 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
20413 | ;; | |
20414 | esac | |
20415 | fi | |
20416 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
20417 | ||
20418 | if test -n "$PKG_CONFIG"; then | |
20419 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
20420 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
20421 | else | |
20422 | echo "$as_me:$LINENO: result: no" >&5 | |
20423 | echo "${ECHO_T}no" >&6 | |
20424 | fi | |
20425 | ||
20426 | fi | |
20427 | ||
20428 | if test "$PKG_CONFIG" = "no" ; then | |
20429 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20430 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20431 | echo "*** to the full path to pkg-config." | |
20432 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20433 | else | |
20434 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20435 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
20436 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
20437 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
20438 | ||
20439 | if $PKG_CONFIG --exists "pangoft2" ; then | |
20440 | echo "$as_me:$LINENO: result: yes" >&5 | |
20441 | echo "${ECHO_T}yes" >&6 | |
20442 | succeeded=yes | |
20443 | ||
20444 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
20445 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
20446 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
20447 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
20448 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
20449 | ||
20450 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
20451 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
20452 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
20453 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
20454 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
20455 | else | |
20456 | PANGOFT2_CFLAGS="" | |
20457 | PANGOFT2_LIBS="" | |
20458 | ## If we have a custom action on failure, don't print errors, but | |
20459 | ## do set a variable so people can do so. | |
20460 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
20461 | ||
20462 | fi | |
20463 | ||
20464 | ||
20465 | ||
20466 | else | |
20467 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20468 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20469 | fi | |
20470 | fi | |
20471 | ||
20472 | if test $succeeded = yes; then | |
20473 | ||
20474 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
20475 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
20476 | ||
20477 | else | |
20478 | ||
20479 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20480 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
20481 | wxUSE_PRINTING_ARCHITECTURE="no" | |
20482 | ||
20483 | ||
20484 | fi | |
20485 | ||
20486 | fi | |
20487 | else | |
20488 | if test "$wxUSE_UNICODE" = "yes"; then | |
20489 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
20490 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
20491 | wxUSE_UNICODE=no | |
20492 | fi | |
20493 | fi | |
20494 | ||
20495 | if test "$USE_DARWIN" != 1; then | |
20496 | ||
20497 | for ac_func in poll | |
20498 | do | |
20499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20500 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20502 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20504 | else | |
20505 | cat >conftest.$ac_ext <<_ACEOF | |
20506 | #line $LINENO "configure" | |
20507 | /* confdefs.h. */ | |
20508 | _ACEOF | |
20509 | cat confdefs.h >>conftest.$ac_ext | |
20510 | cat >>conftest.$ac_ext <<_ACEOF | |
20511 | /* end confdefs.h. */ | |
20512 | /* System header to define __stub macros and hopefully few prototypes, | |
20513 | which can conflict with char $ac_func (); below. | |
20514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20515 | <limits.h> exists even on freestanding compilers. */ | |
20516 | #ifdef __STDC__ | |
20517 | # include <limits.h> | |
20518 | #else | |
20519 | # include <assert.h> | |
20520 | #endif | |
20521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20522 | #ifdef __cplusplus | |
20523 | extern "C" | |
20524 | { | |
20525 | #endif | |
20526 | /* We use char because int might match the return type of a gcc2 | |
20527 | builtin and then its argument prototype would still apply. */ | |
20528 | char $ac_func (); | |
20529 | /* The GNU C library defines this for functions which it implements | |
20530 | to always fail with ENOSYS. Some functions are actually named | |
20531 | something starting with __ and the normal name is an alias. */ | |
20532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20533 | choke me | |
20534 | #else | |
20535 | char (*f) () = $ac_func; | |
20536 | #endif | |
20537 | #ifdef __cplusplus | |
20538 | } | |
20539 | #endif | |
20540 | ||
20541 | int | |
20542 | main () | |
20543 | { | |
20544 | return f != $ac_func; | |
20545 | ; | |
20546 | return 0; | |
20547 | } | |
20548 | _ACEOF | |
20549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20551 | (eval $ac_link) 2>&5 | |
20552 | ac_status=$? | |
20553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20554 | (exit $ac_status); } && | |
20555 | { ac_try='test -s conftest$ac_exeext' | |
20556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20557 | (eval $ac_try) 2>&5 | |
20558 | ac_status=$? | |
20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20560 | (exit $ac_status); }; }; then | |
20561 | eval "$as_ac_var=yes" | |
20562 | else | |
20563 | echo "$as_me: failed program was:" >&5 | |
20564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20565 | ||
20566 | eval "$as_ac_var=no" | |
20567 | fi | |
20568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20569 | fi | |
20570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20572 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20573 | cat >>confdefs.h <<_ACEOF | |
20574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20575 | _ACEOF | |
20576 | ||
20577 | fi | |
20578 | done | |
20579 | ||
20580 | fi | |
20581 | ||
20582 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
20583 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
20584 | ||
20585 | AFMINSTALL=afminstall | |
20586 | TOOLKIT=GTK | |
20587 | GUIDIST=GTK_DIST | |
20588 | ||
20589 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
20590 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20591 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20593 | else | |
20594 | ac_check_lib_save_LIBS=$LIBS | |
20595 | LIBS="-lgdk $LIBS" | |
20596 | cat >conftest.$ac_ext <<_ACEOF | |
20597 | #line $LINENO "configure" | |
20598 | /* confdefs.h. */ | |
20599 | _ACEOF | |
20600 | cat confdefs.h >>conftest.$ac_ext | |
20601 | cat >>conftest.$ac_ext <<_ACEOF | |
20602 | /* end confdefs.h. */ | |
20603 | ||
20604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20605 | #ifdef __cplusplus | |
20606 | extern "C" | |
20607 | #endif | |
20608 | /* We use char because int might match the return type of a gcc2 | |
20609 | builtin and then its argument prototype would still apply. */ | |
20610 | char gdk_im_open (); | |
20611 | int | |
20612 | main () | |
20613 | { | |
20614 | gdk_im_open (); | |
20615 | ; | |
20616 | return 0; | |
20617 | } | |
20618 | _ACEOF | |
20619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20621 | (eval $ac_link) 2>&5 | |
20622 | ac_status=$? | |
20623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20624 | (exit $ac_status); } && | |
20625 | { ac_try='test -s conftest$ac_exeext' | |
20626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20627 | (eval $ac_try) 2>&5 | |
20628 | ac_status=$? | |
20629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20630 | (exit $ac_status); }; }; then | |
20631 | ac_cv_lib_gdk_gdk_im_open=yes | |
20632 | else | |
20633 | echo "$as_me: failed program was:" >&5 | |
20634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20635 | ||
20636 | ac_cv_lib_gdk_gdk_im_open=no | |
20637 | fi | |
20638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20639 | LIBS=$ac_check_lib_save_LIBS | |
20640 | fi | |
20641 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
20642 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
20643 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
20644 | cat >>confdefs.h <<\_ACEOF | |
20645 | #define HAVE_XIM 1 | |
20646 | _ACEOF | |
20647 | ||
20648 | fi | |
20649 | ||
20650 | fi | |
20651 | ||
20652 | if test "$wxUSE_MGL" = 1; then | |
20653 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
20654 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
20655 | if test "x$MGL_ROOT" = x ; then | |
20656 | echo "$as_me:$LINENO: result: not found" >&5 | |
20657 | echo "${ECHO_T}not found" >&6 | |
20658 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
20659 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
20660 | { (exit 1); exit 1; }; } | |
20661 | else | |
20662 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
20663 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
20664 | fi | |
20665 | ||
20666 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
20667 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
20668 | case "${host}" in | |
20669 | *-*-linux* ) | |
20670 | if test "x$wxUSE_SHARED" = xyes ; then | |
20671 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
20672 | else | |
20673 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
20674 | fi | |
20675 | ;; | |
20676 | *-pc-msdosdjgpp ) | |
20677 | mgl_os_candidates="dos32/dj2" | |
20678 | ;; | |
20679 | *) | |
20680 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
20681 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
20682 | { (exit 1); exit 1; }; } | |
20683 | esac | |
20684 | ||
20685 | mgl_lib_type="" | |
20686 | mgl_os="" | |
20687 | ||
20688 | for mgl_os_i in $mgl_os_candidates ; do | |
20689 | if test "x$mgl_os" = x ; then | |
20690 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
20691 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
20692 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
20693 | mgl_lib_type=debug | |
20694 | mgl_os=$mgl_os_i | |
20695 | fi | |
20696 | fi | |
20697 | if test "x$mgl_lib_type" = x ; then | |
20698 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
20699 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
20700 | mgl_lib_type=release | |
20701 | mgl_os=$mgl_os_i | |
20702 | fi | |
20703 | fi | |
20704 | fi | |
20705 | done | |
20706 | ||
20707 | if test "x$mgl_os" = x ; then | |
20708 | echo "$as_me:$LINENO: result: not found" >&5 | |
20709 | echo "${ECHO_T}not found" >&6 | |
20710 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
20711 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
20712 | { (exit 1); exit 1; }; } | |
20713 | fi | |
20714 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
20715 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
20716 | ||
20717 | wxUSE_UNIVERSAL="yes" | |
20718 | ||
20719 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
20720 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
20721 | ||
20722 | AFMINSTALL=afminstall | |
20723 | TOOLKIT=MGL | |
20724 | GUIDIST=MGL_DIST | |
20725 | fi | |
20726 | ||
20727 | if test "$wxUSE_MICROWIN" = 1; then | |
20728 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
20729 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
20730 | if test "x$MICROWINDOWS" = x ; then | |
20731 | echo "$as_me:$LINENO: result: not found" >&5 | |
20732 | echo "${ECHO_T}not found" >&6 | |
20733 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
20734 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
20735 | { (exit 1); exit 1; }; } | |
20736 | else | |
20737 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
20738 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
20739 | fi | |
20740 | ||
20741 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
20742 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
20743 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
20744 | else | |
20745 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
20746 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
20747 | { (exit 1); exit 1; }; } | |
20748 | fi | |
20749 | ||
20750 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
20751 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
20752 | ||
20753 | wxUSE_UNIVERSAL="yes" | |
20754 | ||
20755 | AFMINSTALL=afminstall | |
20756 | TOOLKIT=MICROWIN | |
20757 | GUIDIST=MICROWIN_DIST | |
20758 | ||
20759 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
20760 | fi | |
20761 | ||
20762 | if test "$wxUSE_X11" = 1; then | |
20763 | echo "$as_me:$LINENO: checking for X" >&5 | |
20764 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
20765 | ||
20766 | ||
20767 | # Check whether --with-x or --without-x was given. | |
20768 | if test "${with_x+set}" = set; then | |
20769 | withval="$with_x" | |
20770 | ||
20771 | fi; | |
20772 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
20773 | if test "x$with_x" = xno; then | |
20774 | # The user explicitly disabled X. | |
20775 | have_x=disabled | |
20776 | else | |
20777 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
20778 | # Both variables are already set. | |
20779 | have_x=yes | |
20780 | else | |
20781 | if test "${ac_cv_have_x+set}" = set; then | |
20782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20783 | else | |
20784 | # One or both of the vars are not set, and there is no cached value. | |
20785 | ac_x_includes=no ac_x_libraries=no | |
20786 | rm -fr conftest.dir | |
20787 | if mkdir conftest.dir; then | |
20788 | cd conftest.dir | |
20789 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
20790 | cat >Imakefile <<'_ACEOF' | |
20791 | acfindx: | |
20792 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
20793 | _ACEOF | |
20794 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
20795 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20796 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
20797 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
20798 | for ac_extension in a so sl; do | |
20799 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
20800 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
20801 | ac_im_usrlibdir=$ac_im_libdir; break | |
20802 | fi | |
20803 | done | |
20804 | # Screen out bogus values from the imake configuration. They are | |
20805 | # bogus both because they are the default anyway, and because | |
20806 | # using them would break gcc on systems where it needs fixed includes. | |
20807 | case $ac_im_incroot in | |
20808 | /usr/include) ;; | |
20809 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
20810 | esac | |
20811 | case $ac_im_usrlibdir in | |
20812 | /usr/lib | /lib) ;; | |
20813 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
20814 | esac | |
20815 | fi | |
20816 | cd .. | |
20817 | rm -fr conftest.dir | |
20818 | fi | |
20819 | ||
20820 | # Standard set of common directories for X headers. | |
20821 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
20822 | ac_x_header_dirs=' | |
20823 | /usr/X11/include | |
20824 | /usr/X11R6/include | |
20825 | /usr/X11R5/include | |
20826 | /usr/X11R4/include | |
20827 | ||
20828 | /usr/include/X11 | |
20829 | /usr/include/X11R6 | |
20830 | /usr/include/X11R5 | |
20831 | /usr/include/X11R4 | |
20832 | ||
20833 | /usr/local/X11/include | |
20834 | /usr/local/X11R6/include | |
20835 | /usr/local/X11R5/include | |
20836 | /usr/local/X11R4/include | |
20837 | ||
20838 | /usr/local/include/X11 | |
20839 | /usr/local/include/X11R6 | |
20840 | /usr/local/include/X11R5 | |
20841 | /usr/local/include/X11R4 | |
20842 | ||
20843 | /usr/X386/include | |
20844 | /usr/x386/include | |
20845 | /usr/XFree86/include/X11 | |
20846 | ||
20847 | /usr/include | |
20848 | /usr/local/include | |
20849 | /usr/unsupported/include | |
20850 | /usr/athena/include | |
20851 | /usr/local/x11r5/include | |
20852 | /usr/lpp/Xamples/include | |
20853 | ||
20854 | /usr/openwin/include | |
20855 | /usr/openwin/share/include' | |
20856 | ||
20857 | if test "$ac_x_includes" = no; then | |
20858 | # Guess where to find include files, by looking for Intrinsic.h. | |
20859 | # First, try using that file with no special directory specified. | |
20860 | cat >conftest.$ac_ext <<_ACEOF | |
20861 | #line $LINENO "configure" | |
20862 | /* confdefs.h. */ | |
20863 | _ACEOF | |
20864 | cat confdefs.h >>conftest.$ac_ext | |
20865 | cat >>conftest.$ac_ext <<_ACEOF | |
20866 | /* end confdefs.h. */ | |
20867 | #include <X11/Intrinsic.h> | |
20868 | _ACEOF | |
20869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20871 | ac_status=$? | |
20872 | grep -v '^ *+' conftest.er1 >conftest.err | |
20873 | rm -f conftest.er1 | |
20874 | cat conftest.err >&5 | |
20875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20876 | (exit $ac_status); } >/dev/null; then | |
20877 | if test -s conftest.err; then | |
20878 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20879 | else | |
20880 | ac_cpp_err= | |
20881 | fi | |
20882 | else | |
20883 | ac_cpp_err=yes | |
20884 | fi | |
20885 | if test -z "$ac_cpp_err"; then | |
20886 | # We can compile using X headers with no special include directory. | |
20887 | ac_x_includes= | |
20888 | else | |
20889 | echo "$as_me: failed program was:" >&5 | |
20890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20891 | ||
20892 | for ac_dir in $ac_x_header_dirs; do | |
20893 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
20894 | ac_x_includes=$ac_dir | |
20895 | break | |
20896 | fi | |
20897 | done | |
20898 | fi | |
20899 | rm -f conftest.err conftest.$ac_ext | |
20900 | fi # $ac_x_includes = no | |
20901 | ||
20902 | if test "$ac_x_libraries" = no; then | |
20903 | # Check for the libraries. | |
20904 | # See if we find them without any special options. | |
20905 | # Don't add to $LIBS permanently. | |
20906 | ac_save_LIBS=$LIBS | |
20907 | LIBS="-lXt $LIBS" | |
20908 | cat >conftest.$ac_ext <<_ACEOF | |
20909 | #line $LINENO "configure" | |
20910 | /* confdefs.h. */ | |
20911 | _ACEOF | |
20912 | cat confdefs.h >>conftest.$ac_ext | |
20913 | cat >>conftest.$ac_ext <<_ACEOF | |
20914 | /* end confdefs.h. */ | |
20915 | #include <X11/Intrinsic.h> | |
20916 | int | |
20917 | main () | |
20918 | { | |
20919 | XtMalloc (0) | |
20920 | ; | |
20921 | return 0; | |
20922 | } | |
20923 | _ACEOF | |
20924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20926 | (eval $ac_link) 2>&5 | |
20927 | ac_status=$? | |
20928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20929 | (exit $ac_status); } && | |
20930 | { ac_try='test -s conftest$ac_exeext' | |
20931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20932 | (eval $ac_try) 2>&5 | |
20933 | ac_status=$? | |
20934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20935 | (exit $ac_status); }; }; then | |
20936 | LIBS=$ac_save_LIBS | |
20937 | # We can link X programs with no special library path. | |
20938 | ac_x_libraries= | |
20939 | else | |
20940 | echo "$as_me: failed program was:" >&5 | |
20941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20942 | ||
20943 | LIBS=$ac_save_LIBS | |
20944 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
20945 | do | |
20946 | # Don't even attempt the hair of trying to link an X program! | |
20947 | for ac_extension in a so sl; do | |
20948 | if test -r $ac_dir/libXt.$ac_extension; then | |
20949 | ac_x_libraries=$ac_dir | |
20950 | break 2 | |
20951 | fi | |
20952 | done | |
20953 | done | |
20954 | fi | |
20955 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20956 | fi # $ac_x_libraries = no | |
20957 | ||
20958 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
20959 | # Didn't find X anywhere. Cache the known absence of X. | |
20960 | ac_cv_have_x="have_x=no" | |
20961 | else | |
20962 | # Record where we found X for the cache. | |
20963 | ac_cv_have_x="have_x=yes \ | |
20964 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
20965 | fi | |
20966 | fi | |
20967 | ||
20968 | fi | |
20969 | eval "$ac_cv_have_x" | |
20970 | fi # $with_x != no | |
20971 | ||
20972 | if test "$have_x" != yes; then | |
20973 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
20974 | echo "${ECHO_T}$have_x" >&6 | |
20975 | no_x=yes | |
20976 | else | |
20977 | # If each of the values was on the command line, it overrides each guess. | |
20978 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
20979 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
20980 | # Update the cache value to reflect the command line values. | |
20981 | ac_cv_have_x="have_x=yes \ | |
20982 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
20983 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
20984 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
20985 | fi | |
20986 | ||
20987 | if test "$no_x" = yes; then | |
20988 | # Not all programs may use this symbol, but it does not hurt to define it. | |
20989 | ||
20990 | cat >>confdefs.h <<\_ACEOF | |
20991 | #define X_DISPLAY_MISSING 1 | |
20992 | _ACEOF | |
20993 | ||
20994 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
20995 | else | |
20996 | if test -n "$x_includes"; then | |
20997 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
20998 | fi | |
20999 | ||
21000 | # It would also be nice to do this for all -L options, not just this one. | |
21001 | if test -n "$x_libraries"; then | |
21002 | X_LIBS="$X_LIBS -L$x_libraries" | |
21003 | # For Solaris; some versions of Sun CC require a space after -R and | |
21004 | # others require no space. Words are not sufficient . . . . | |
21005 | case `(uname -sr) 2>/dev/null` in | |
21006 | "SunOS 5"*) | |
21007 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
21008 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21009 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21010 | cat >conftest.$ac_ext <<_ACEOF | |
21011 | #line $LINENO "configure" | |
21012 | /* confdefs.h. */ | |
21013 | _ACEOF | |
21014 | cat confdefs.h >>conftest.$ac_ext | |
21015 | cat >>conftest.$ac_ext <<_ACEOF | |
21016 | /* end confdefs.h. */ | |
21017 | ||
21018 | int | |
21019 | main () | |
21020 | { | |
21021 | ||
21022 | ; | |
21023 | return 0; | |
21024 | } | |
21025 | _ACEOF | |
21026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21028 | (eval $ac_link) 2>&5 | |
21029 | ac_status=$? | |
21030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21031 | (exit $ac_status); } && | |
21032 | { ac_try='test -s conftest$ac_exeext' | |
21033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21034 | (eval $ac_try) 2>&5 | |
21035 | ac_status=$? | |
21036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21037 | (exit $ac_status); }; }; then | |
21038 | ac_R_nospace=yes | |
21039 | else | |
21040 | echo "$as_me: failed program was:" >&5 | |
21041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21042 | ||
21043 | ac_R_nospace=no | |
21044 | fi | |
21045 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21046 | if test $ac_R_nospace = yes; then | |
21047 | echo "$as_me:$LINENO: result: no" >&5 | |
21048 | echo "${ECHO_T}no" >&6 | |
21049 | X_LIBS="$X_LIBS -R$x_libraries" | |
21050 | else | |
21051 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
21052 | cat >conftest.$ac_ext <<_ACEOF | |
21053 | #line $LINENO "configure" | |
21054 | /* confdefs.h. */ | |
21055 | _ACEOF | |
21056 | cat confdefs.h >>conftest.$ac_ext | |
21057 | cat >>conftest.$ac_ext <<_ACEOF | |
21058 | /* end confdefs.h. */ | |
21059 | ||
21060 | int | |
21061 | main () | |
21062 | { | |
21063 | ||
21064 | ; | |
21065 | return 0; | |
21066 | } | |
21067 | _ACEOF | |
21068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21070 | (eval $ac_link) 2>&5 | |
21071 | ac_status=$? | |
21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21073 | (exit $ac_status); } && | |
21074 | { ac_try='test -s conftest$ac_exeext' | |
21075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21076 | (eval $ac_try) 2>&5 | |
21077 | ac_status=$? | |
21078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21079 | (exit $ac_status); }; }; then | |
21080 | ac_R_space=yes | |
21081 | else | |
21082 | echo "$as_me: failed program was:" >&5 | |
21083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21084 | ||
21085 | ac_R_space=no | |
21086 | fi | |
21087 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21088 | if test $ac_R_space = yes; then | |
21089 | echo "$as_me:$LINENO: result: yes" >&5 | |
21090 | echo "${ECHO_T}yes" >&6 | |
21091 | X_LIBS="$X_LIBS -R $x_libraries" | |
21092 | else | |
21093 | echo "$as_me:$LINENO: result: neither works" >&5 | |
21094 | echo "${ECHO_T}neither works" >&6 | |
21095 | fi | |
21096 | fi | |
21097 | LIBS=$ac_xsave_LIBS | |
21098 | esac | |
21099 | fi | |
21100 | ||
21101 | # Check for system-dependent libraries X programs must link with. | |
21102 | # Do this before checking for the system-independent R6 libraries | |
21103 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
21104 | ||
21105 | if test "$ISC" = yes; then | |
21106 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21107 | else | |
21108 | # Martyn Johnson says this is needed for Ultrix, if the X | |
21109 | # libraries were built with DECnet support. And Karl Berry says | |
21110 | # the Alpha needs dnet_stub (dnet does not exist). | |
21111 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
21112 | cat >conftest.$ac_ext <<_ACEOF | |
21113 | #line $LINENO "configure" | |
21114 | /* confdefs.h. */ | |
21115 | _ACEOF | |
21116 | cat confdefs.h >>conftest.$ac_ext | |
21117 | cat >>conftest.$ac_ext <<_ACEOF | |
21118 | /* end confdefs.h. */ | |
21119 | ||
21120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21121 | #ifdef __cplusplus | |
21122 | extern "C" | |
21123 | #endif | |
21124 | /* We use char because int might match the return type of a gcc2 | |
21125 | builtin and then its argument prototype would still apply. */ | |
21126 | char XOpenDisplay (); | |
21127 | int | |
21128 | main () | |
21129 | { | |
21130 | XOpenDisplay (); | |
21131 | ; | |
21132 | return 0; | |
21133 | } | |
21134 | _ACEOF | |
21135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21137 | (eval $ac_link) 2>&5 | |
21138 | ac_status=$? | |
21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21140 | (exit $ac_status); } && | |
21141 | { ac_try='test -s conftest$ac_exeext' | |
21142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21143 | (eval $ac_try) 2>&5 | |
21144 | ac_status=$? | |
21145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21146 | (exit $ac_status); }; }; then | |
21147 | : | |
21148 | else | |
21149 | echo "$as_me: failed program was:" >&5 | |
21150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21151 | ||
21152 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
21153 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21154 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21156 | else | |
21157 | ac_check_lib_save_LIBS=$LIBS | |
21158 | LIBS="-ldnet $LIBS" | |
21159 | cat >conftest.$ac_ext <<_ACEOF | |
21160 | #line $LINENO "configure" | |
21161 | /* confdefs.h. */ | |
21162 | _ACEOF | |
21163 | cat confdefs.h >>conftest.$ac_ext | |
21164 | cat >>conftest.$ac_ext <<_ACEOF | |
21165 | /* end confdefs.h. */ | |
21166 | ||
21167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21168 | #ifdef __cplusplus | |
21169 | extern "C" | |
21170 | #endif | |
21171 | /* We use char because int might match the return type of a gcc2 | |
21172 | builtin and then its argument prototype would still apply. */ | |
21173 | char dnet_ntoa (); | |
21174 | int | |
21175 | main () | |
21176 | { | |
21177 | dnet_ntoa (); | |
21178 | ; | |
21179 | return 0; | |
21180 | } | |
21181 | _ACEOF | |
21182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21184 | (eval $ac_link) 2>&5 | |
21185 | ac_status=$? | |
21186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21187 | (exit $ac_status); } && | |
21188 | { ac_try='test -s conftest$ac_exeext' | |
21189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21190 | (eval $ac_try) 2>&5 | |
21191 | ac_status=$? | |
21192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21193 | (exit $ac_status); }; }; then | |
21194 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21195 | else | |
21196 | echo "$as_me: failed program was:" >&5 | |
21197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21198 | ||
21199 | ac_cv_lib_dnet_dnet_ntoa=no | |
21200 | fi | |
21201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21202 | LIBS=$ac_check_lib_save_LIBS | |
21203 | fi | |
21204 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21205 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21206 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21207 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
21208 | fi | |
21209 | ||
21210 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
21211 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
21212 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21213 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21215 | else | |
21216 | ac_check_lib_save_LIBS=$LIBS | |
21217 | LIBS="-ldnet_stub $LIBS" | |
21218 | cat >conftest.$ac_ext <<_ACEOF | |
21219 | #line $LINENO "configure" | |
21220 | /* confdefs.h. */ | |
21221 | _ACEOF | |
21222 | cat confdefs.h >>conftest.$ac_ext | |
21223 | cat >>conftest.$ac_ext <<_ACEOF | |
21224 | /* end confdefs.h. */ | |
21225 | ||
21226 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21227 | #ifdef __cplusplus | |
21228 | extern "C" | |
21229 | #endif | |
21230 | /* We use char because int might match the return type of a gcc2 | |
21231 | builtin and then its argument prototype would still apply. */ | |
21232 | char dnet_ntoa (); | |
21233 | int | |
21234 | main () | |
21235 | { | |
21236 | dnet_ntoa (); | |
21237 | ; | |
21238 | return 0; | |
21239 | } | |
21240 | _ACEOF | |
21241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21243 | (eval $ac_link) 2>&5 | |
21244 | ac_status=$? | |
21245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21246 | (exit $ac_status); } && | |
21247 | { ac_try='test -s conftest$ac_exeext' | |
21248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21249 | (eval $ac_try) 2>&5 | |
21250 | ac_status=$? | |
21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21252 | (exit $ac_status); }; }; then | |
21253 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21254 | else | |
21255 | echo "$as_me: failed program was:" >&5 | |
21256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21257 | ||
21258 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21259 | fi | |
21260 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21261 | LIBS=$ac_check_lib_save_LIBS | |
21262 | fi | |
21263 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21264 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21265 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21266 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
21267 | fi | |
21268 | ||
21269 | fi | |
21270 | fi | |
21271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21272 | LIBS="$ac_xsave_LIBS" | |
21273 | ||
21274 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
21275 | # to get the SysV transport functions. | |
21276 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
21277 | # needs -lnsl. | |
21278 | # The nsl library prevents programs from opening the X display | |
21279 | # on Irix 5.2, according to T.E. Dickey. | |
21280 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21281 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21282 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21283 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21284 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21286 | else | |
21287 | cat >conftest.$ac_ext <<_ACEOF | |
21288 | #line $LINENO "configure" | |
21289 | /* confdefs.h. */ | |
21290 | _ACEOF | |
21291 | cat confdefs.h >>conftest.$ac_ext | |
21292 | cat >>conftest.$ac_ext <<_ACEOF | |
21293 | /* end confdefs.h. */ | |
21294 | /* System header to define __stub macros and hopefully few prototypes, | |
21295 | which can conflict with char gethostbyname (); below. | |
21296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21297 | <limits.h> exists even on freestanding compilers. */ | |
21298 | #ifdef __STDC__ | |
21299 | # include <limits.h> | |
21300 | #else | |
21301 | # include <assert.h> | |
21302 | #endif | |
21303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21304 | #ifdef __cplusplus | |
21305 | extern "C" | |
21306 | { | |
21307 | #endif | |
21308 | /* We use char because int might match the return type of a gcc2 | |
21309 | builtin and then its argument prototype would still apply. */ | |
21310 | char gethostbyname (); | |
21311 | /* The GNU C library defines this for functions which it implements | |
21312 | to always fail with ENOSYS. Some functions are actually named | |
21313 | something starting with __ and the normal name is an alias. */ | |
21314 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21315 | choke me | |
21316 | #else | |
21317 | char (*f) () = gethostbyname; | |
21318 | #endif | |
21319 | #ifdef __cplusplus | |
21320 | } | |
21321 | #endif | |
21322 | ||
21323 | int | |
21324 | main () | |
21325 | { | |
21326 | return f != gethostbyname; | |
21327 | ; | |
21328 | return 0; | |
21329 | } | |
21330 | _ACEOF | |
21331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21333 | (eval $ac_link) 2>&5 | |
21334 | ac_status=$? | |
21335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21336 | (exit $ac_status); } && | |
21337 | { ac_try='test -s conftest$ac_exeext' | |
21338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21339 | (eval $ac_try) 2>&5 | |
21340 | ac_status=$? | |
21341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21342 | (exit $ac_status); }; }; then | |
21343 | ac_cv_func_gethostbyname=yes | |
21344 | else | |
21345 | echo "$as_me: failed program was:" >&5 | |
21346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21347 | ||
21348 | ac_cv_func_gethostbyname=no | |
21349 | fi | |
21350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21351 | fi | |
21352 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21353 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
21354 | ||
21355 | if test $ac_cv_func_gethostbyname = no; then | |
21356 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
21357 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21358 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21360 | else | |
21361 | ac_check_lib_save_LIBS=$LIBS | |
21362 | LIBS="-lnsl $LIBS" | |
21363 | cat >conftest.$ac_ext <<_ACEOF | |
21364 | #line $LINENO "configure" | |
21365 | /* confdefs.h. */ | |
21366 | _ACEOF | |
21367 | cat confdefs.h >>conftest.$ac_ext | |
21368 | cat >>conftest.$ac_ext <<_ACEOF | |
21369 | /* end confdefs.h. */ | |
21370 | ||
21371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21372 | #ifdef __cplusplus | |
21373 | extern "C" | |
21374 | #endif | |
21375 | /* We use char because int might match the return type of a gcc2 | |
21376 | builtin and then its argument prototype would still apply. */ | |
21377 | char gethostbyname (); | |
21378 | int | |
21379 | main () | |
21380 | { | |
21381 | gethostbyname (); | |
21382 | ; | |
21383 | return 0; | |
21384 | } | |
21385 | _ACEOF | |
21386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21388 | (eval $ac_link) 2>&5 | |
21389 | ac_status=$? | |
21390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21391 | (exit $ac_status); } && | |
21392 | { ac_try='test -s conftest$ac_exeext' | |
21393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21394 | (eval $ac_try) 2>&5 | |
21395 | ac_status=$? | |
21396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21397 | (exit $ac_status); }; }; then | |
21398 | ac_cv_lib_nsl_gethostbyname=yes | |
21399 | else | |
21400 | echo "$as_me: failed program was:" >&5 | |
21401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21402 | ||
21403 | ac_cv_lib_nsl_gethostbyname=no | |
21404 | fi | |
21405 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21406 | LIBS=$ac_check_lib_save_LIBS | |
21407 | fi | |
21408 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21409 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21410 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21411 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
21412 | fi | |
21413 | ||
21414 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
21415 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21416 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21417 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21419 | else | |
21420 | ac_check_lib_save_LIBS=$LIBS | |
21421 | LIBS="-lbsd $LIBS" | |
21422 | cat >conftest.$ac_ext <<_ACEOF | |
21423 | #line $LINENO "configure" | |
21424 | /* confdefs.h. */ | |
21425 | _ACEOF | |
21426 | cat confdefs.h >>conftest.$ac_ext | |
21427 | cat >>conftest.$ac_ext <<_ACEOF | |
21428 | /* end confdefs.h. */ | |
21429 | ||
21430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21431 | #ifdef __cplusplus | |
21432 | extern "C" | |
21433 | #endif | |
21434 | /* We use char because int might match the return type of a gcc2 | |
21435 | builtin and then its argument prototype would still apply. */ | |
21436 | char gethostbyname (); | |
21437 | int | |
21438 | main () | |
21439 | { | |
21440 | gethostbyname (); | |
21441 | ; | |
21442 | return 0; | |
21443 | } | |
21444 | _ACEOF | |
21445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21447 | (eval $ac_link) 2>&5 | |
21448 | ac_status=$? | |
21449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21450 | (exit $ac_status); } && | |
21451 | { ac_try='test -s conftest$ac_exeext' | |
21452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21453 | (eval $ac_try) 2>&5 | |
21454 | ac_status=$? | |
21455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21456 | (exit $ac_status); }; }; then | |
21457 | ac_cv_lib_bsd_gethostbyname=yes | |
21458 | else | |
21459 | echo "$as_me: failed program was:" >&5 | |
21460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21461 | ||
21462 | ac_cv_lib_bsd_gethostbyname=no | |
21463 | fi | |
21464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21465 | LIBS=$ac_check_lib_save_LIBS | |
21466 | fi | |
21467 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21468 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21469 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21470 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21471 | fi | |
21472 | ||
21473 | fi | |
21474 | fi | |
21475 | ||
21476 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21477 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21478 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
21479 | # on later versions), says Simon Leinen: it contains gethostby* | |
21480 | # variants that don't use the name server (or something). -lsocket | |
21481 | # must be given before -lnsl if both are needed. We assume that | |
21482 | # if connect needs -lnsl, so does gethostbyname. | |
21483 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21484 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21485 | if test "${ac_cv_func_connect+set}" = set; then | |
21486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21487 | else | |
21488 | cat >conftest.$ac_ext <<_ACEOF | |
21489 | #line $LINENO "configure" | |
21490 | /* confdefs.h. */ | |
21491 | _ACEOF | |
21492 | cat confdefs.h >>conftest.$ac_ext | |
21493 | cat >>conftest.$ac_ext <<_ACEOF | |
21494 | /* end confdefs.h. */ | |
21495 | /* System header to define __stub macros and hopefully few prototypes, | |
21496 | which can conflict with char connect (); below. | |
21497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21498 | <limits.h> exists even on freestanding compilers. */ | |
21499 | #ifdef __STDC__ | |
21500 | # include <limits.h> | |
21501 | #else | |
21502 | # include <assert.h> | |
21503 | #endif | |
21504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21505 | #ifdef __cplusplus | |
21506 | extern "C" | |
21507 | { | |
21508 | #endif | |
21509 | /* We use char because int might match the return type of a gcc2 | |
21510 | builtin and then its argument prototype would still apply. */ | |
21511 | char connect (); | |
21512 | /* The GNU C library defines this for functions which it implements | |
21513 | to always fail with ENOSYS. Some functions are actually named | |
21514 | something starting with __ and the normal name is an alias. */ | |
21515 | #if defined (__stub_connect) || defined (__stub___connect) | |
21516 | choke me | |
21517 | #else | |
21518 | char (*f) () = connect; | |
21519 | #endif | |
21520 | #ifdef __cplusplus | |
21521 | } | |
21522 | #endif | |
21523 | ||
21524 | int | |
21525 | main () | |
21526 | { | |
21527 | return f != connect; | |
21528 | ; | |
21529 | return 0; | |
21530 | } | |
21531 | _ACEOF | |
21532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21534 | (eval $ac_link) 2>&5 | |
21535 | ac_status=$? | |
21536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21537 | (exit $ac_status); } && | |
21538 | { ac_try='test -s conftest$ac_exeext' | |
21539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21540 | (eval $ac_try) 2>&5 | |
21541 | ac_status=$? | |
21542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21543 | (exit $ac_status); }; }; then | |
21544 | ac_cv_func_connect=yes | |
21545 | else | |
21546 | echo "$as_me: failed program was:" >&5 | |
21547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21548 | ||
21549 | ac_cv_func_connect=no | |
21550 | fi | |
21551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21552 | fi | |
21553 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21554 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
21555 | ||
21556 | if test $ac_cv_func_connect = no; then | |
21557 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
21558 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21559 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21561 | else | |
21562 | ac_check_lib_save_LIBS=$LIBS | |
21563 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
21564 | cat >conftest.$ac_ext <<_ACEOF | |
21565 | #line $LINENO "configure" | |
21566 | /* confdefs.h. */ | |
21567 | _ACEOF | |
21568 | cat confdefs.h >>conftest.$ac_ext | |
21569 | cat >>conftest.$ac_ext <<_ACEOF | |
21570 | /* end confdefs.h. */ | |
21571 | ||
21572 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21573 | #ifdef __cplusplus | |
21574 | extern "C" | |
21575 | #endif | |
21576 | /* We use char because int might match the return type of a gcc2 | |
21577 | builtin and then its argument prototype would still apply. */ | |
21578 | char connect (); | |
21579 | int | |
21580 | main () | |
21581 | { | |
21582 | connect (); | |
21583 | ; | |
21584 | return 0; | |
21585 | } | |
21586 | _ACEOF | |
21587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21589 | (eval $ac_link) 2>&5 | |
21590 | ac_status=$? | |
21591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21592 | (exit $ac_status); } && | |
21593 | { ac_try='test -s conftest$ac_exeext' | |
21594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21595 | (eval $ac_try) 2>&5 | |
21596 | ac_status=$? | |
21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21598 | (exit $ac_status); }; }; then | |
21599 | ac_cv_lib_socket_connect=yes | |
21600 | else | |
21601 | echo "$as_me: failed program was:" >&5 | |
21602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21603 | ||
21604 | ac_cv_lib_socket_connect=no | |
21605 | fi | |
21606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21607 | LIBS=$ac_check_lib_save_LIBS | |
21608 | fi | |
21609 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21610 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21611 | if test $ac_cv_lib_socket_connect = yes; then | |
21612 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
21613 | fi | |
21614 | ||
21615 | fi | |
21616 | ||
21617 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
21618 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21619 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21620 | if test "${ac_cv_func_remove+set}" = set; then | |
21621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21622 | else | |
21623 | cat >conftest.$ac_ext <<_ACEOF | |
21624 | #line $LINENO "configure" | |
21625 | /* confdefs.h. */ | |
21626 | _ACEOF | |
21627 | cat confdefs.h >>conftest.$ac_ext | |
21628 | cat >>conftest.$ac_ext <<_ACEOF | |
21629 | /* end confdefs.h. */ | |
21630 | /* System header to define __stub macros and hopefully few prototypes, | |
21631 | which can conflict with char remove (); below. | |
21632 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21633 | <limits.h> exists even on freestanding compilers. */ | |
21634 | #ifdef __STDC__ | |
21635 | # include <limits.h> | |
21636 | #else | |
21637 | # include <assert.h> | |
21638 | #endif | |
21639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21640 | #ifdef __cplusplus | |
21641 | extern "C" | |
21642 | { | |
21643 | #endif | |
21644 | /* We use char because int might match the return type of a gcc2 | |
21645 | builtin and then its argument prototype would still apply. */ | |
21646 | char remove (); | |
21647 | /* The GNU C library defines this for functions which it implements | |
21648 | to always fail with ENOSYS. Some functions are actually named | |
21649 | something starting with __ and the normal name is an alias. */ | |
21650 | #if defined (__stub_remove) || defined (__stub___remove) | |
21651 | choke me | |
21652 | #else | |
21653 | char (*f) () = remove; | |
21654 | #endif | |
21655 | #ifdef __cplusplus | |
21656 | } | |
21657 | #endif | |
21658 | ||
21659 | int | |
21660 | main () | |
21661 | { | |
21662 | return f != remove; | |
21663 | ; | |
21664 | return 0; | |
21665 | } | |
21666 | _ACEOF | |
21667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21669 | (eval $ac_link) 2>&5 | |
21670 | ac_status=$? | |
21671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21672 | (exit $ac_status); } && | |
21673 | { ac_try='test -s conftest$ac_exeext' | |
21674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21675 | (eval $ac_try) 2>&5 | |
21676 | ac_status=$? | |
21677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21678 | (exit $ac_status); }; }; then | |
21679 | ac_cv_func_remove=yes | |
21680 | else | |
21681 | echo "$as_me: failed program was:" >&5 | |
21682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21683 | ||
21684 | ac_cv_func_remove=no | |
21685 | fi | |
21686 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21687 | fi | |
21688 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21689 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
21690 | ||
21691 | if test $ac_cv_func_remove = no; then | |
21692 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
21693 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21694 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21696 | else | |
21697 | ac_check_lib_save_LIBS=$LIBS | |
21698 | LIBS="-lposix $LIBS" | |
21699 | cat >conftest.$ac_ext <<_ACEOF | |
21700 | #line $LINENO "configure" | |
21701 | /* confdefs.h. */ | |
21702 | _ACEOF | |
21703 | cat confdefs.h >>conftest.$ac_ext | |
21704 | cat >>conftest.$ac_ext <<_ACEOF | |
21705 | /* end confdefs.h. */ | |
21706 | ||
21707 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21708 | #ifdef __cplusplus | |
21709 | extern "C" | |
21710 | #endif | |
21711 | /* We use char because int might match the return type of a gcc2 | |
21712 | builtin and then its argument prototype would still apply. */ | |
21713 | char remove (); | |
21714 | int | |
21715 | main () | |
21716 | { | |
21717 | remove (); | |
21718 | ; | |
21719 | return 0; | |
21720 | } | |
21721 | _ACEOF | |
21722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21724 | (eval $ac_link) 2>&5 | |
21725 | ac_status=$? | |
21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); } && | |
21728 | { ac_try='test -s conftest$ac_exeext' | |
21729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21730 | (eval $ac_try) 2>&5 | |
21731 | ac_status=$? | |
21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21733 | (exit $ac_status); }; }; then | |
21734 | ac_cv_lib_posix_remove=yes | |
21735 | else | |
21736 | echo "$as_me: failed program was:" >&5 | |
21737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21738 | ||
21739 | ac_cv_lib_posix_remove=no | |
21740 | fi | |
21741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21742 | LIBS=$ac_check_lib_save_LIBS | |
21743 | fi | |
21744 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
21745 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
21746 | if test $ac_cv_lib_posix_remove = yes; then | |
21747 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
21748 | fi | |
21749 | ||
21750 | fi | |
21751 | ||
21752 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
21753 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
21754 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
21755 | if test "${ac_cv_func_shmat+set}" = set; then | |
21756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21757 | else | |
21758 | cat >conftest.$ac_ext <<_ACEOF | |
21759 | #line $LINENO "configure" | |
21760 | /* confdefs.h. */ | |
21761 | _ACEOF | |
21762 | cat confdefs.h >>conftest.$ac_ext | |
21763 | cat >>conftest.$ac_ext <<_ACEOF | |
21764 | /* end confdefs.h. */ | |
21765 | /* System header to define __stub macros and hopefully few prototypes, | |
21766 | which can conflict with char shmat (); below. | |
21767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21768 | <limits.h> exists even on freestanding compilers. */ | |
21769 | #ifdef __STDC__ | |
21770 | # include <limits.h> | |
21771 | #else | |
21772 | # include <assert.h> | |
21773 | #endif | |
21774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21775 | #ifdef __cplusplus | |
21776 | extern "C" | |
21777 | { | |
21778 | #endif | |
21779 | /* We use char because int might match the return type of a gcc2 | |
21780 | builtin and then its argument prototype would still apply. */ | |
21781 | char shmat (); | |
21782 | /* The GNU C library defines this for functions which it implements | |
21783 | to always fail with ENOSYS. Some functions are actually named | |
21784 | something starting with __ and the normal name is an alias. */ | |
21785 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
21786 | choke me | |
21787 | #else | |
21788 | char (*f) () = shmat; | |
21789 | #endif | |
21790 | #ifdef __cplusplus | |
21791 | } | |
21792 | #endif | |
21793 | ||
21794 | int | |
21795 | main () | |
21796 | { | |
21797 | return f != shmat; | |
21798 | ; | |
21799 | return 0; | |
21800 | } | |
21801 | _ACEOF | |
21802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21804 | (eval $ac_link) 2>&5 | |
21805 | ac_status=$? | |
21806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21807 | (exit $ac_status); } && | |
21808 | { ac_try='test -s conftest$ac_exeext' | |
21809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21810 | (eval $ac_try) 2>&5 | |
21811 | ac_status=$? | |
21812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21813 | (exit $ac_status); }; }; then | |
21814 | ac_cv_func_shmat=yes | |
21815 | else | |
21816 | echo "$as_me: failed program was:" >&5 | |
21817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21818 | ||
21819 | ac_cv_func_shmat=no | |
21820 | fi | |
21821 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21822 | fi | |
21823 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
21824 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
21825 | ||
21826 | if test $ac_cv_func_shmat = no; then | |
21827 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
21828 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
21829 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
21830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21831 | else | |
21832 | ac_check_lib_save_LIBS=$LIBS | |
21833 | LIBS="-lipc $LIBS" | |
21834 | cat >conftest.$ac_ext <<_ACEOF | |
21835 | #line $LINENO "configure" | |
21836 | /* confdefs.h. */ | |
21837 | _ACEOF | |
21838 | cat confdefs.h >>conftest.$ac_ext | |
21839 | cat >>conftest.$ac_ext <<_ACEOF | |
21840 | /* end confdefs.h. */ | |
21841 | ||
21842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21843 | #ifdef __cplusplus | |
21844 | extern "C" | |
21845 | #endif | |
21846 | /* We use char because int might match the return type of a gcc2 | |
21847 | builtin and then its argument prototype would still apply. */ | |
21848 | char shmat (); | |
21849 | int | |
21850 | main () | |
21851 | { | |
21852 | shmat (); | |
21853 | ; | |
21854 | return 0; | |
21855 | } | |
21856 | _ACEOF | |
21857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21859 | (eval $ac_link) 2>&5 | |
21860 | ac_status=$? | |
21861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21862 | (exit $ac_status); } && | |
21863 | { ac_try='test -s conftest$ac_exeext' | |
21864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21865 | (eval $ac_try) 2>&5 | |
21866 | ac_status=$? | |
21867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21868 | (exit $ac_status); }; }; then | |
21869 | ac_cv_lib_ipc_shmat=yes | |
21870 | else | |
21871 | echo "$as_me: failed program was:" >&5 | |
21872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21873 | ||
21874 | ac_cv_lib_ipc_shmat=no | |
21875 | fi | |
21876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21877 | LIBS=$ac_check_lib_save_LIBS | |
21878 | fi | |
21879 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
21880 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
21881 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21882 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
21883 | fi | |
21884 | ||
21885 | fi | |
21886 | fi | |
21887 | ||
21888 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
21889 | ac_save_LDFLAGS=$LDFLAGS | |
21890 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
21891 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
21892 | # check for ICE first), but we must link in the order -lSM -lICE or | |
21893 | # we get undefined symbols. So assume we have SM if we have ICE. | |
21894 | # These have to be linked with before -lX11, unlike the other | |
21895 | # libraries we check for below, so use a different variable. | |
21896 | # John Interrante, Karl Berry | |
21897 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
21898 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
21899 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
21900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21901 | else | |
21902 | ac_check_lib_save_LIBS=$LIBS | |
21903 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
21904 | cat >conftest.$ac_ext <<_ACEOF | |
21905 | #line $LINENO "configure" | |
21906 | /* confdefs.h. */ | |
21907 | _ACEOF | |
21908 | cat confdefs.h >>conftest.$ac_ext | |
21909 | cat >>conftest.$ac_ext <<_ACEOF | |
21910 | /* end confdefs.h. */ | |
21911 | ||
21912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21913 | #ifdef __cplusplus | |
21914 | extern "C" | |
21915 | #endif | |
21916 | /* We use char because int might match the return type of a gcc2 | |
21917 | builtin and then its argument prototype would still apply. */ | |
21918 | char IceConnectionNumber (); | |
21919 | int | |
21920 | main () | |
21921 | { | |
21922 | IceConnectionNumber (); | |
21923 | ; | |
21924 | return 0; | |
21925 | } | |
21926 | _ACEOF | |
21927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21929 | (eval $ac_link) 2>&5 | |
21930 | ac_status=$? | |
21931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21932 | (exit $ac_status); } && | |
21933 | { ac_try='test -s conftest$ac_exeext' | |
21934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21935 | (eval $ac_try) 2>&5 | |
21936 | ac_status=$? | |
21937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21938 | (exit $ac_status); }; }; then | |
21939 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
21940 | else | |
21941 | echo "$as_me: failed program was:" >&5 | |
21942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21943 | ||
21944 | ac_cv_lib_ICE_IceConnectionNumber=no | |
21945 | fi | |
21946 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21947 | LIBS=$ac_check_lib_save_LIBS | |
21948 | fi | |
21949 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
21950 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
21951 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21952 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
21953 | fi | |
21954 | ||
21955 | LDFLAGS=$ac_save_LDFLAGS | |
21956 | ||
21957 | fi | |
21958 | ||
21959 | ||
21960 | if test "$no_x" = "yes"; then | |
21961 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
21962 | echo "$as_me: error: X11 not found" >&2;} | |
21963 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21964 | fi | |
21965 | ||
21966 | GUI_TK_LIBRARY="$X_LIBS" | |
21967 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
21968 | AFMINSTALL=afminstall | |
21969 | COMPILED_X_PROGRAM=0 | |
21970 | ||
21971 | if test "$wxUSE_NANOX" = "yes"; then | |
21972 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
21973 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21974 | if test "x$MICROWIN" = x ; then | |
21975 | echo "$as_me:$LINENO: result: not found" >&5 | |
21976 | echo "${ECHO_T}not found" >&6 | |
21977 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
21978 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
21979 | { (exit 1); exit 1; }; } | |
21980 | else | |
21981 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
21982 | echo "${ECHO_T}$MICROWIN" >&6 | |
21983 | cat >>confdefs.h <<\_ACEOF | |
21984 | #define wxUSE_NANOX 1 | |
21985 | _ACEOF | |
21986 | ||
21987 | fi | |
21988 | fi | |
21989 | ||
21990 | xpm_link= | |
21991 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
21992 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
21993 | ||
21994 | ac_find_libraries= | |
21995 | for ac_dir in $SEARCH_LIB /usr/lib; | |
21996 | do | |
21997 | for ac_extension in a so sl dylib; do | |
21998 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
21999 | ac_find_libraries=$ac_dir | |
22000 | break 2 | |
22001 | fi | |
22002 | done | |
22003 | done | |
22004 | ||
22005 | if test "$ac_find_libraries" != "" ; then | |
22006 | ||
22007 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
22008 | result=$? | |
22009 | if test $result = 0; then | |
22010 | ac_path_to_link="" | |
22011 | else | |
22012 | ac_path_to_link=" -L$ac_find_libraries" | |
22013 | fi | |
22014 | ||
22015 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
22016 | xpm_link=" -lXpm" | |
22017 | cat >>confdefs.h <<\_ACEOF | |
22018 | #define wxHAVE_LIB_XPM 1 | |
22019 | _ACEOF | |
22020 | ||
22021 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
22022 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
22023 | else | |
22024 | cat >conftest.$ac_ext <<_ACEOF | |
22025 | #line $LINENO "configure" | |
22026 | /* confdefs.h. */ | |
22027 | _ACEOF | |
22028 | cat confdefs.h >>conftest.$ac_ext | |
22029 | cat >>conftest.$ac_ext <<_ACEOF | |
22030 | /* end confdefs.h. */ | |
22031 | ||
22032 | #include <X11/xpm.h> | |
22033 | ||
22034 | int | |
22035 | main () | |
22036 | { | |
22037 | ||
22038 | int version; | |
22039 | version = XpmLibraryVersion(); | |
22040 | ||
22041 | ; | |
22042 | return 0; | |
22043 | } | |
22044 | _ACEOF | |
22045 | rm -f conftest.$ac_objext | |
22046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22047 | (eval $ac_compile) 2>&5 | |
22048 | ac_status=$? | |
22049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22050 | (exit $ac_status); } && | |
22051 | { ac_try='test -s conftest.$ac_objext' | |
22052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22053 | (eval $ac_try) 2>&5 | |
22054 | ac_status=$? | |
22055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22056 | (exit $ac_status); }; }; then | |
22057 | ||
22058 | xpm_link=" -lXpm" | |
22059 | cat >>confdefs.h <<\_ACEOF | |
22060 | #define wxHAVE_LIB_XPM 1 | |
22061 | _ACEOF | |
22062 | ||
22063 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
22064 | echo "${ECHO_T}found in default search path" >&6 | |
22065 | COMPILED_X_PROGRAM=0 | |
22066 | ||
22067 | else | |
22068 | echo "$as_me: failed program was:" >&5 | |
22069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22070 | ||
22071 | ||
22072 | echo "$as_me:$LINENO: result: no" >&5 | |
22073 | echo "${ECHO_T}no" >&6 | |
22074 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22075 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22076 | ||
22077 | ||
22078 | fi | |
22079 | rm -f conftest.$ac_objext conftest.$ac_ext | |
22080 | fi | |
22081 | ||
22082 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
22083 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22084 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22086 | else | |
22087 | ac_check_lib_save_LIBS=$LIBS | |
22088 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
22089 | cat >conftest.$ac_ext <<_ACEOF | |
22090 | #line $LINENO "configure" | |
22091 | /* confdefs.h. */ | |
22092 | _ACEOF | |
22093 | cat confdefs.h >>conftest.$ac_ext | |
22094 | cat >>conftest.$ac_ext <<_ACEOF | |
22095 | /* end confdefs.h. */ | |
22096 | ||
22097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22098 | #ifdef __cplusplus | |
22099 | extern "C" | |
22100 | #endif | |
22101 | /* We use char because int might match the return type of a gcc2 | |
22102 | builtin and then its argument prototype would still apply. */ | |
22103 | char XShapeQueryExtension (); | |
22104 | int | |
22105 | main () | |
22106 | { | |
22107 | XShapeQueryExtension (); | |
22108 | ; | |
22109 | return 0; | |
22110 | } | |
22111 | _ACEOF | |
22112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22114 | (eval $ac_link) 2>&5 | |
22115 | ac_status=$? | |
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22117 | (exit $ac_status); } && | |
22118 | { ac_try='test -s conftest$ac_exeext' | |
22119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22120 | (eval $ac_try) 2>&5 | |
22121 | ac_status=$? | |
22122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22123 | (exit $ac_status); }; }; then | |
22124 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22125 | else | |
22126 | echo "$as_me: failed program was:" >&5 | |
22127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22128 | ||
22129 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22130 | fi | |
22131 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22132 | LIBS=$ac_check_lib_save_LIBS | |
22133 | fi | |
22134 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22135 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22136 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
22137 | ||
22138 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
22139 | wxHAVE_XEXT_LIB=1 | |
22140 | ||
22141 | fi | |
22142 | ||
22143 | ||
22144 | if test "$wxUSE_UNICODE" = "yes"; then | |
22145 | ||
22146 | succeeded=no | |
22147 | ||
22148 | if test -z "$PKG_CONFIG"; then | |
22149 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22150 | set dummy pkg-config; ac_word=$2 | |
22151 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22153 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22155 | else | |
22156 | case $PKG_CONFIG in | |
22157 | [\\/]* | ?:[\\/]*) | |
22158 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22159 | ;; | |
22160 | *) | |
22161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22162 | for as_dir in $PATH | |
22163 | do | |
22164 | IFS=$as_save_IFS | |
22165 | test -z "$as_dir" && as_dir=. | |
22166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22167 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22168 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22170 | break 2 | |
22171 | fi | |
22172 | done | |
22173 | done | |
22174 | ||
22175 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22176 | ;; | |
22177 | esac | |
22178 | fi | |
22179 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22180 | ||
22181 | if test -n "$PKG_CONFIG"; then | |
22182 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22183 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22184 | else | |
22185 | echo "$as_me:$LINENO: result: no" >&5 | |
22186 | echo "${ECHO_T}no" >&6 | |
22187 | fi | |
22188 | ||
22189 | fi | |
22190 | ||
22191 | if test "$PKG_CONFIG" = "no" ; then | |
22192 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22193 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22194 | echo "*** to the full path to pkg-config." | |
22195 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22196 | else | |
22197 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22198 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
22199 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
22200 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
22201 | ||
22202 | if $PKG_CONFIG --exists "pangox" ; then | |
22203 | echo "$as_me:$LINENO: result: yes" >&5 | |
22204 | echo "${ECHO_T}yes" >&6 | |
22205 | succeeded=yes | |
22206 | ||
22207 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
22208 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
22209 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
22210 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
22211 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
22212 | ||
22213 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
22214 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
22215 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
22216 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
22217 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
22218 | else | |
22219 | PANGOX_CFLAGS="" | |
22220 | PANGOX_LIBS="" | |
22221 | ## If we have a custom action on failure, don't print errors, but | |
22222 | ## do set a variable so people can do so. | |
22223 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
22224 | ||
22225 | fi | |
22226 | ||
22227 | ||
22228 | ||
22229 | else | |
22230 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22231 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22232 | fi | |
22233 | fi | |
22234 | ||
22235 | if test $succeeded = yes; then | |
22236 | ||
22237 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
22238 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
22239 | ||
22240 | else | |
22241 | ||
22242 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22243 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22244 | { (exit 1); exit 1; }; } | |
22245 | ||
22246 | ||
22247 | fi | |
22248 | ||
22249 | ||
22250 | succeeded=no | |
22251 | ||
22252 | if test -z "$PKG_CONFIG"; then | |
22253 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22254 | set dummy pkg-config; ac_word=$2 | |
22255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22257 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22259 | else | |
22260 | case $PKG_CONFIG in | |
22261 | [\\/]* | ?:[\\/]*) | |
22262 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22263 | ;; | |
22264 | *) | |
22265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22266 | for as_dir in $PATH | |
22267 | do | |
22268 | IFS=$as_save_IFS | |
22269 | test -z "$as_dir" && as_dir=. | |
22270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22272 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22274 | break 2 | |
22275 | fi | |
22276 | done | |
22277 | done | |
22278 | ||
22279 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22280 | ;; | |
22281 | esac | |
22282 | fi | |
22283 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22284 | ||
22285 | if test -n "$PKG_CONFIG"; then | |
22286 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22287 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22288 | else | |
22289 | echo "$as_me:$LINENO: result: no" >&5 | |
22290 | echo "${ECHO_T}no" >&6 | |
22291 | fi | |
22292 | ||
22293 | fi | |
22294 | ||
22295 | if test "$PKG_CONFIG" = "no" ; then | |
22296 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22297 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22298 | echo "*** to the full path to pkg-config." | |
22299 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22300 | else | |
22301 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22302 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
22303 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
22304 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
22305 | ||
22306 | if $PKG_CONFIG --exists "pangoft2" ; then | |
22307 | echo "$as_me:$LINENO: result: yes" >&5 | |
22308 | echo "${ECHO_T}yes" >&6 | |
22309 | succeeded=yes | |
22310 | ||
22311 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
22312 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
22313 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
22314 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
22315 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
22316 | ||
22317 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
22318 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
22319 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
22320 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
22321 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
22322 | else | |
22323 | PANGOFT2_CFLAGS="" | |
22324 | PANGOFT2_LIBS="" | |
22325 | ## If we have a custom action on failure, don't print errors, but | |
22326 | ## do set a variable so people can do so. | |
22327 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
22328 | ||
22329 | fi | |
22330 | ||
22331 | ||
22332 | ||
22333 | else | |
22334 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22335 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22336 | fi | |
22337 | fi | |
22338 | ||
22339 | if test $succeeded = yes; then | |
22340 | ||
22341 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
22342 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
22343 | ||
22344 | else | |
22345 | ||
22346 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22347 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
22348 | wxUSE_PRINTING_ARCHITECTURE="no" | |
22349 | ||
22350 | ||
22351 | fi | |
22352 | ||
22353 | ||
22354 | succeeded=no | |
22355 | ||
22356 | if test -z "$PKG_CONFIG"; then | |
22357 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22358 | set dummy pkg-config; ac_word=$2 | |
22359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22361 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22363 | else | |
22364 | case $PKG_CONFIG in | |
22365 | [\\/]* | ?:[\\/]*) | |
22366 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22367 | ;; | |
22368 | *) | |
22369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22370 | for as_dir in $PATH | |
22371 | do | |
22372 | IFS=$as_save_IFS | |
22373 | test -z "$as_dir" && as_dir=. | |
22374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22375 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22376 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22378 | break 2 | |
22379 | fi | |
22380 | done | |
22381 | done | |
22382 | ||
22383 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22384 | ;; | |
22385 | esac | |
22386 | fi | |
22387 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22388 | ||
22389 | if test -n "$PKG_CONFIG"; then | |
22390 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22391 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22392 | else | |
22393 | echo "$as_me:$LINENO: result: no" >&5 | |
22394 | echo "${ECHO_T}no" >&6 | |
22395 | fi | |
22396 | ||
22397 | fi | |
22398 | ||
22399 | if test "$PKG_CONFIG" = "no" ; then | |
22400 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22401 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22402 | echo "*** to the full path to pkg-config." | |
22403 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22404 | else | |
22405 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22406 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
22407 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
22408 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
22409 | ||
22410 | if $PKG_CONFIG --exists "pangoxft" ; then | |
22411 | echo "$as_me:$LINENO: result: yes" >&5 | |
22412 | echo "${ECHO_T}yes" >&6 | |
22413 | succeeded=yes | |
22414 | ||
22415 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
22416 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
22417 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
22418 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
22419 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
22420 | ||
22421 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
22422 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
22423 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
22424 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
22425 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
22426 | else | |
22427 | PANGOXFT_CFLAGS="" | |
22428 | PANGOXFT_LIBS="" | |
22429 | ## If we have a custom action on failure, don't print errors, but | |
22430 | ## do set a variable so people can do so. | |
22431 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
22432 | ||
22433 | fi | |
22434 | ||
22435 | ||
22436 | ||
22437 | else | |
22438 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22439 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22440 | fi | |
22441 | fi | |
22442 | ||
22443 | if test $succeeded = yes; then | |
22444 | ||
22445 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
22446 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
22447 | ||
22448 | else | |
22449 | ||
22450 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22451 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22452 | ||
22453 | ||
22454 | fi | |
22455 | ||
22456 | fi | |
22457 | ||
22458 | wxUSE_UNIVERSAL="yes" | |
22459 | ||
22460 | if test "$wxUSE_NANOX" = "yes"; then | |
22461 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
22462 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
22463 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
22464 | else | |
22465 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22466 | fi | |
22467 | ||
22468 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22469 | TOOLKIT=X11 | |
22470 | GUIDIST=X11_DIST | |
22471 | fi | |
22472 | ||
22473 | if test "$wxUSE_MOTIF" = 1; then | |
22474 | if test "$no_x" = yes; then | |
22475 | # Not all programs may use this symbol, but it does not hurt to define it. | |
22476 | ||
22477 | cat >>confdefs.h <<\_ACEOF | |
22478 | #define X_DISPLAY_MISSING 1 | |
22479 | _ACEOF | |
22480 | ||
22481 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22482 | else | |
22483 | if test -n "$x_includes"; then | |
22484 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
22485 | fi | |
22486 | ||
22487 | # It would also be nice to do this for all -L options, not just this one. | |
22488 | if test -n "$x_libraries"; then | |
22489 | X_LIBS="$X_LIBS -L$x_libraries" | |
22490 | # For Solaris; some versions of Sun CC require a space after -R and | |
22491 | # others require no space. Words are not sufficient . . . . | |
22492 | case `(uname -sr) 2>/dev/null` in | |
22493 | "SunOS 5"*) | |
22494 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
22495 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22496 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22497 | cat >conftest.$ac_ext <<_ACEOF | |
22498 | #line $LINENO "configure" | |
22499 | /* confdefs.h. */ | |
22500 | _ACEOF | |
22501 | cat confdefs.h >>conftest.$ac_ext | |
22502 | cat >>conftest.$ac_ext <<_ACEOF | |
22503 | /* end confdefs.h. */ | |
22504 | ||
22505 | int | |
22506 | main () | |
22507 | { | |
22508 | ||
22509 | ; | |
22510 | return 0; | |
22511 | } | |
22512 | _ACEOF | |
22513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22515 | (eval $ac_link) 2>&5 | |
22516 | ac_status=$? | |
22517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22518 | (exit $ac_status); } && | |
22519 | { ac_try='test -s conftest$ac_exeext' | |
22520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22521 | (eval $ac_try) 2>&5 | |
22522 | ac_status=$? | |
22523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22524 | (exit $ac_status); }; }; then | |
22525 | ac_R_nospace=yes | |
22526 | else | |
22527 | echo "$as_me: failed program was:" >&5 | |
22528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22529 | ||
22530 | ac_R_nospace=no | |
22531 | fi | |
22532 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22533 | if test $ac_R_nospace = yes; then | |
22534 | echo "$as_me:$LINENO: result: no" >&5 | |
22535 | echo "${ECHO_T}no" >&6 | |
22536 | X_LIBS="$X_LIBS -R$x_libraries" | |
22537 | else | |
22538 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
22539 | cat >conftest.$ac_ext <<_ACEOF | |
22540 | #line $LINENO "configure" | |
22541 | /* confdefs.h. */ | |
22542 | _ACEOF | |
22543 | cat confdefs.h >>conftest.$ac_ext | |
22544 | cat >>conftest.$ac_ext <<_ACEOF | |
22545 | /* end confdefs.h. */ | |
22546 | ||
22547 | int | |
22548 | main () | |
22549 | { | |
22550 | ||
22551 | ; | |
22552 | return 0; | |
22553 | } | |
22554 | _ACEOF | |
22555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22557 | (eval $ac_link) 2>&5 | |
22558 | ac_status=$? | |
22559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22560 | (exit $ac_status); } && | |
22561 | { ac_try='test -s conftest$ac_exeext' | |
22562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22563 | (eval $ac_try) 2>&5 | |
22564 | ac_status=$? | |
22565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22566 | (exit $ac_status); }; }; then | |
22567 | ac_R_space=yes | |
22568 | else | |
22569 | echo "$as_me: failed program was:" >&5 | |
22570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22571 | ||
22572 | ac_R_space=no | |
22573 | fi | |
22574 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22575 | if test $ac_R_space = yes; then | |
22576 | echo "$as_me:$LINENO: result: yes" >&5 | |
22577 | echo "${ECHO_T}yes" >&6 | |
22578 | X_LIBS="$X_LIBS -R $x_libraries" | |
22579 | else | |
22580 | echo "$as_me:$LINENO: result: neither works" >&5 | |
22581 | echo "${ECHO_T}neither works" >&6 | |
22582 | fi | |
22583 | fi | |
22584 | LIBS=$ac_xsave_LIBS | |
22585 | esac | |
22586 | fi | |
22587 | ||
22588 | # Check for system-dependent libraries X programs must link with. | |
22589 | # Do this before checking for the system-independent R6 libraries | |
22590 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22591 | ||
22592 | if test "$ISC" = yes; then | |
22593 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22594 | else | |
22595 | # Martyn Johnson says this is needed for Ultrix, if the X | |
22596 | # libraries were built with DECnet support. And Karl Berry says | |
22597 | # the Alpha needs dnet_stub (dnet does not exist). | |
22598 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
22599 | cat >conftest.$ac_ext <<_ACEOF | |
22600 | #line $LINENO "configure" | |
22601 | /* confdefs.h. */ | |
22602 | _ACEOF | |
22603 | cat confdefs.h >>conftest.$ac_ext | |
22604 | cat >>conftest.$ac_ext <<_ACEOF | |
22605 | /* end confdefs.h. */ | |
22606 | ||
22607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22608 | #ifdef __cplusplus | |
22609 | extern "C" | |
22610 | #endif | |
22611 | /* We use char because int might match the return type of a gcc2 | |
22612 | builtin and then its argument prototype would still apply. */ | |
22613 | char XOpenDisplay (); | |
22614 | int | |
22615 | main () | |
22616 | { | |
22617 | XOpenDisplay (); | |
22618 | ; | |
22619 | return 0; | |
22620 | } | |
22621 | _ACEOF | |
22622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22624 | (eval $ac_link) 2>&5 | |
22625 | ac_status=$? | |
22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22627 | (exit $ac_status); } && | |
22628 | { ac_try='test -s conftest$ac_exeext' | |
22629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22630 | (eval $ac_try) 2>&5 | |
22631 | ac_status=$? | |
22632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22633 | (exit $ac_status); }; }; then | |
22634 | : | |
22635 | else | |
22636 | echo "$as_me: failed program was:" >&5 | |
22637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22638 | ||
22639 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
22640 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22641 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22643 | else | |
22644 | ac_check_lib_save_LIBS=$LIBS | |
22645 | LIBS="-ldnet $LIBS" | |
22646 | cat >conftest.$ac_ext <<_ACEOF | |
22647 | #line $LINENO "configure" | |
22648 | /* confdefs.h. */ | |
22649 | _ACEOF | |
22650 | cat confdefs.h >>conftest.$ac_ext | |
22651 | cat >>conftest.$ac_ext <<_ACEOF | |
22652 | /* end confdefs.h. */ | |
22653 | ||
22654 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22655 | #ifdef __cplusplus | |
22656 | extern "C" | |
22657 | #endif | |
22658 | /* We use char because int might match the return type of a gcc2 | |
22659 | builtin and then its argument prototype would still apply. */ | |
22660 | char dnet_ntoa (); | |
22661 | int | |
22662 | main () | |
22663 | { | |
22664 | dnet_ntoa (); | |
22665 | ; | |
22666 | return 0; | |
22667 | } | |
22668 | _ACEOF | |
22669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22671 | (eval $ac_link) 2>&5 | |
22672 | ac_status=$? | |
22673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22674 | (exit $ac_status); } && | |
22675 | { ac_try='test -s conftest$ac_exeext' | |
22676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22677 | (eval $ac_try) 2>&5 | |
22678 | ac_status=$? | |
22679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22680 | (exit $ac_status); }; }; then | |
22681 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22682 | else | |
22683 | echo "$as_me: failed program was:" >&5 | |
22684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22685 | ||
22686 | ac_cv_lib_dnet_dnet_ntoa=no | |
22687 | fi | |
22688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22689 | LIBS=$ac_check_lib_save_LIBS | |
22690 | fi | |
22691 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22692 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22693 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
22694 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
22695 | fi | |
22696 | ||
22697 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
22698 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
22699 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22700 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22702 | else | |
22703 | ac_check_lib_save_LIBS=$LIBS | |
22704 | LIBS="-ldnet_stub $LIBS" | |
22705 | cat >conftest.$ac_ext <<_ACEOF | |
22706 | #line $LINENO "configure" | |
22707 | /* confdefs.h. */ | |
22708 | _ACEOF | |
22709 | cat confdefs.h >>conftest.$ac_ext | |
22710 | cat >>conftest.$ac_ext <<_ACEOF | |
22711 | /* end confdefs.h. */ | |
22712 | ||
22713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22714 | #ifdef __cplusplus | |
22715 | extern "C" | |
22716 | #endif | |
22717 | /* We use char because int might match the return type of a gcc2 | |
22718 | builtin and then its argument prototype would still apply. */ | |
22719 | char dnet_ntoa (); | |
22720 | int | |
22721 | main () | |
22722 | { | |
22723 | dnet_ntoa (); | |
22724 | ; | |
22725 | return 0; | |
22726 | } | |
22727 | _ACEOF | |
22728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22730 | (eval $ac_link) 2>&5 | |
22731 | ac_status=$? | |
22732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22733 | (exit $ac_status); } && | |
22734 | { ac_try='test -s conftest$ac_exeext' | |
22735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22736 | (eval $ac_try) 2>&5 | |
22737 | ac_status=$? | |
22738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22739 | (exit $ac_status); }; }; then | |
22740 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22741 | else | |
22742 | echo "$as_me: failed program was:" >&5 | |
22743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22744 | ||
22745 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22746 | fi | |
22747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22748 | LIBS=$ac_check_lib_save_LIBS | |
22749 | fi | |
22750 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22751 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22752 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
22753 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
22754 | fi | |
22755 | ||
22756 | fi | |
22757 | fi | |
22758 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22759 | LIBS="$ac_xsave_LIBS" | |
22760 | ||
22761 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
22762 | # to get the SysV transport functions. | |
22763 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
22764 | # needs -lnsl. | |
22765 | # The nsl library prevents programs from opening the X display | |
22766 | # on Irix 5.2, according to T.E. Dickey. | |
22767 | # The functions gethostbyname, getservbyname, and inet_addr are | |
22768 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
22769 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
22770 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
22771 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
22772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22773 | else | |
22774 | cat >conftest.$ac_ext <<_ACEOF | |
22775 | #line $LINENO "configure" | |
22776 | /* confdefs.h. */ | |
22777 | _ACEOF | |
22778 | cat confdefs.h >>conftest.$ac_ext | |
22779 | cat >>conftest.$ac_ext <<_ACEOF | |
22780 | /* end confdefs.h. */ | |
22781 | /* System header to define __stub macros and hopefully few prototypes, | |
22782 | which can conflict with char gethostbyname (); below. | |
22783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22784 | <limits.h> exists even on freestanding compilers. */ | |
22785 | #ifdef __STDC__ | |
22786 | # include <limits.h> | |
22787 | #else | |
22788 | # include <assert.h> | |
22789 | #endif | |
22790 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22791 | #ifdef __cplusplus | |
22792 | extern "C" | |
22793 | { | |
22794 | #endif | |
22795 | /* We use char because int might match the return type of a gcc2 | |
22796 | builtin and then its argument prototype would still apply. */ | |
22797 | char gethostbyname (); | |
22798 | /* The GNU C library defines this for functions which it implements | |
22799 | to always fail with ENOSYS. Some functions are actually named | |
22800 | something starting with __ and the normal name is an alias. */ | |
22801 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22802 | choke me | |
22803 | #else | |
22804 | char (*f) () = gethostbyname; | |
22805 | #endif | |
22806 | #ifdef __cplusplus | |
22807 | } | |
22808 | #endif | |
22809 | ||
22810 | int | |
22811 | main () | |
22812 | { | |
22813 | return f != gethostbyname; | |
22814 | ; | |
22815 | return 0; | |
22816 | } | |
22817 | _ACEOF | |
22818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22820 | (eval $ac_link) 2>&5 | |
22821 | ac_status=$? | |
22822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22823 | (exit $ac_status); } && | |
22824 | { ac_try='test -s conftest$ac_exeext' | |
22825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22826 | (eval $ac_try) 2>&5 | |
22827 | ac_status=$? | |
22828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22829 | (exit $ac_status); }; }; then | |
22830 | ac_cv_func_gethostbyname=yes | |
22831 | else | |
22832 | echo "$as_me: failed program was:" >&5 | |
22833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22834 | ||
22835 | ac_cv_func_gethostbyname=no | |
22836 | fi | |
22837 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22838 | fi | |
22839 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22840 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
22841 | ||
22842 | if test $ac_cv_func_gethostbyname = no; then | |
22843 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
22844 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22845 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22847 | else | |
22848 | ac_check_lib_save_LIBS=$LIBS | |
22849 | LIBS="-lnsl $LIBS" | |
22850 | cat >conftest.$ac_ext <<_ACEOF | |
22851 | #line $LINENO "configure" | |
22852 | /* confdefs.h. */ | |
22853 | _ACEOF | |
22854 | cat confdefs.h >>conftest.$ac_ext | |
22855 | cat >>conftest.$ac_ext <<_ACEOF | |
22856 | /* end confdefs.h. */ | |
22857 | ||
22858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22859 | #ifdef __cplusplus | |
22860 | extern "C" | |
22861 | #endif | |
22862 | /* We use char because int might match the return type of a gcc2 | |
22863 | builtin and then its argument prototype would still apply. */ | |
22864 | char gethostbyname (); | |
22865 | int | |
22866 | main () | |
22867 | { | |
22868 | gethostbyname (); | |
22869 | ; | |
22870 | return 0; | |
22871 | } | |
22872 | _ACEOF | |
22873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22875 | (eval $ac_link) 2>&5 | |
22876 | ac_status=$? | |
22877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22878 | (exit $ac_status); } && | |
22879 | { ac_try='test -s conftest$ac_exeext' | |
22880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22881 | (eval $ac_try) 2>&5 | |
22882 | ac_status=$? | |
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22884 | (exit $ac_status); }; }; then | |
22885 | ac_cv_lib_nsl_gethostbyname=yes | |
22886 | else | |
22887 | echo "$as_me: failed program was:" >&5 | |
22888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22889 | ||
22890 | ac_cv_lib_nsl_gethostbyname=no | |
22891 | fi | |
22892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22893 | LIBS=$ac_check_lib_save_LIBS | |
22894 | fi | |
22895 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22896 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22897 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22898 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
22899 | fi | |
22900 | ||
22901 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
22902 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
22903 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
22904 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22906 | else | |
22907 | ac_check_lib_save_LIBS=$LIBS | |
22908 | LIBS="-lbsd $LIBS" | |
22909 | cat >conftest.$ac_ext <<_ACEOF | |
22910 | #line $LINENO "configure" | |
22911 | /* confdefs.h. */ | |
22912 | _ACEOF | |
22913 | cat confdefs.h >>conftest.$ac_ext | |
22914 | cat >>conftest.$ac_ext <<_ACEOF | |
22915 | /* end confdefs.h. */ | |
22916 | ||
22917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22918 | #ifdef __cplusplus | |
22919 | extern "C" | |
22920 | #endif | |
22921 | /* We use char because int might match the return type of a gcc2 | |
22922 | builtin and then its argument prototype would still apply. */ | |
22923 | char gethostbyname (); | |
22924 | int | |
22925 | main () | |
22926 | { | |
22927 | gethostbyname (); | |
22928 | ; | |
22929 | return 0; | |
22930 | } | |
22931 | _ACEOF | |
22932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22934 | (eval $ac_link) 2>&5 | |
22935 | ac_status=$? | |
22936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22937 | (exit $ac_status); } && | |
22938 | { ac_try='test -s conftest$ac_exeext' | |
22939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22940 | (eval $ac_try) 2>&5 | |
22941 | ac_status=$? | |
22942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22943 | (exit $ac_status); }; }; then | |
22944 | ac_cv_lib_bsd_gethostbyname=yes | |
22945 | else | |
22946 | echo "$as_me: failed program was:" >&5 | |
22947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22948 | ||
22949 | ac_cv_lib_bsd_gethostbyname=no | |
22950 | fi | |
22951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22952 | LIBS=$ac_check_lib_save_LIBS | |
22953 | fi | |
22954 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
22955 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
22956 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
22957 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
22958 | fi | |
22959 | ||
22960 | fi | |
22961 | fi | |
22962 | ||
22963 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
22964 | # socket/setsockopt and other routines are undefined under SCO ODT | |
22965 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
22966 | # on later versions), says Simon Leinen: it contains gethostby* | |
22967 | # variants that don't use the name server (or something). -lsocket | |
22968 | # must be given before -lnsl if both are needed. We assume that | |
22969 | # if connect needs -lnsl, so does gethostbyname. | |
22970 | echo "$as_me:$LINENO: checking for connect" >&5 | |
22971 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
22972 | if test "${ac_cv_func_connect+set}" = set; then | |
22973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22974 | else | |
22975 | cat >conftest.$ac_ext <<_ACEOF | |
22976 | #line $LINENO "configure" | |
22977 | /* confdefs.h. */ | |
22978 | _ACEOF | |
22979 | cat confdefs.h >>conftest.$ac_ext | |
22980 | cat >>conftest.$ac_ext <<_ACEOF | |
22981 | /* end confdefs.h. */ | |
22982 | /* System header to define __stub macros and hopefully few prototypes, | |
22983 | which can conflict with char connect (); below. | |
22984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22985 | <limits.h> exists even on freestanding compilers. */ | |
22986 | #ifdef __STDC__ | |
22987 | # include <limits.h> | |
22988 | #else | |
22989 | # include <assert.h> | |
22990 | #endif | |
22991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22992 | #ifdef __cplusplus | |
22993 | extern "C" | |
22994 | { | |
22995 | #endif | |
22996 | /* We use char because int might match the return type of a gcc2 | |
22997 | builtin and then its argument prototype would still apply. */ | |
22998 | char connect (); | |
22999 | /* The GNU C library defines this for functions which it implements | |
23000 | to always fail with ENOSYS. Some functions are actually named | |
23001 | something starting with __ and the normal name is an alias. */ | |
23002 | #if defined (__stub_connect) || defined (__stub___connect) | |
23003 | choke me | |
23004 | #else | |
23005 | char (*f) () = connect; | |
23006 | #endif | |
23007 | #ifdef __cplusplus | |
23008 | } | |
23009 | #endif | |
23010 | ||
23011 | int | |
23012 | main () | |
23013 | { | |
23014 | return f != connect; | |
23015 | ; | |
23016 | return 0; | |
23017 | } | |
23018 | _ACEOF | |
23019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23021 | (eval $ac_link) 2>&5 | |
23022 | ac_status=$? | |
23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23024 | (exit $ac_status); } && | |
23025 | { ac_try='test -s conftest$ac_exeext' | |
23026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23027 | (eval $ac_try) 2>&5 | |
23028 | ac_status=$? | |
23029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23030 | (exit $ac_status); }; }; then | |
23031 | ac_cv_func_connect=yes | |
23032 | else | |
23033 | echo "$as_me: failed program was:" >&5 | |
23034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23035 | ||
23036 | ac_cv_func_connect=no | |
23037 | fi | |
23038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23039 | fi | |
23040 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23041 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
23042 | ||
23043 | if test $ac_cv_func_connect = no; then | |
23044 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
23045 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23046 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23048 | else | |
23049 | ac_check_lib_save_LIBS=$LIBS | |
23050 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
23051 | cat >conftest.$ac_ext <<_ACEOF | |
23052 | #line $LINENO "configure" | |
23053 | /* confdefs.h. */ | |
23054 | _ACEOF | |
23055 | cat confdefs.h >>conftest.$ac_ext | |
23056 | cat >>conftest.$ac_ext <<_ACEOF | |
23057 | /* end confdefs.h. */ | |
23058 | ||
23059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23060 | #ifdef __cplusplus | |
23061 | extern "C" | |
23062 | #endif | |
23063 | /* We use char because int might match the return type of a gcc2 | |
23064 | builtin and then its argument prototype would still apply. */ | |
23065 | char connect (); | |
23066 | int | |
23067 | main () | |
23068 | { | |
23069 | connect (); | |
23070 | ; | |
23071 | return 0; | |
23072 | } | |
23073 | _ACEOF | |
23074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23076 | (eval $ac_link) 2>&5 | |
23077 | ac_status=$? | |
23078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23079 | (exit $ac_status); } && | |
23080 | { ac_try='test -s conftest$ac_exeext' | |
23081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23082 | (eval $ac_try) 2>&5 | |
23083 | ac_status=$? | |
23084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23085 | (exit $ac_status); }; }; then | |
23086 | ac_cv_lib_socket_connect=yes | |
23087 | else | |
23088 | echo "$as_me: failed program was:" >&5 | |
23089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23090 | ||
23091 | ac_cv_lib_socket_connect=no | |
23092 | fi | |
23093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23094 | LIBS=$ac_check_lib_save_LIBS | |
23095 | fi | |
23096 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23097 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23098 | if test $ac_cv_lib_socket_connect = yes; then | |
23099 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
23100 | fi | |
23101 | ||
23102 | fi | |
23103 | ||
23104 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
23105 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23106 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23107 | if test "${ac_cv_func_remove+set}" = set; then | |
23108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23109 | else | |
23110 | cat >conftest.$ac_ext <<_ACEOF | |
23111 | #line $LINENO "configure" | |
23112 | /* confdefs.h. */ | |
23113 | _ACEOF | |
23114 | cat confdefs.h >>conftest.$ac_ext | |
23115 | cat >>conftest.$ac_ext <<_ACEOF | |
23116 | /* end confdefs.h. */ | |
23117 | /* System header to define __stub macros and hopefully few prototypes, | |
23118 | which can conflict with char remove (); below. | |
23119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23120 | <limits.h> exists even on freestanding compilers. */ | |
23121 | #ifdef __STDC__ | |
23122 | # include <limits.h> | |
23123 | #else | |
23124 | # include <assert.h> | |
23125 | #endif | |
23126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23127 | #ifdef __cplusplus | |
23128 | extern "C" | |
23129 | { | |
23130 | #endif | |
23131 | /* We use char because int might match the return type of a gcc2 | |
23132 | builtin and then its argument prototype would still apply. */ | |
23133 | char remove (); | |
23134 | /* The GNU C library defines this for functions which it implements | |
23135 | to always fail with ENOSYS. Some functions are actually named | |
23136 | something starting with __ and the normal name is an alias. */ | |
23137 | #if defined (__stub_remove) || defined (__stub___remove) | |
23138 | choke me | |
23139 | #else | |
23140 | char (*f) () = remove; | |
23141 | #endif | |
23142 | #ifdef __cplusplus | |
23143 | } | |
23144 | #endif | |
23145 | ||
23146 | int | |
23147 | main () | |
23148 | { | |
23149 | return f != remove; | |
23150 | ; | |
23151 | return 0; | |
23152 | } | |
23153 | _ACEOF | |
23154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23156 | (eval $ac_link) 2>&5 | |
23157 | ac_status=$? | |
23158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23159 | (exit $ac_status); } && | |
23160 | { ac_try='test -s conftest$ac_exeext' | |
23161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23162 | (eval $ac_try) 2>&5 | |
23163 | ac_status=$? | |
23164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23165 | (exit $ac_status); }; }; then | |
23166 | ac_cv_func_remove=yes | |
23167 | else | |
23168 | echo "$as_me: failed program was:" >&5 | |
23169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23170 | ||
23171 | ac_cv_func_remove=no | |
23172 | fi | |
23173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23174 | fi | |
23175 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23176 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
23177 | ||
23178 | if test $ac_cv_func_remove = no; then | |
23179 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
23180 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23181 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23183 | else | |
23184 | ac_check_lib_save_LIBS=$LIBS | |
23185 | LIBS="-lposix $LIBS" | |
23186 | cat >conftest.$ac_ext <<_ACEOF | |
23187 | #line $LINENO "configure" | |
23188 | /* confdefs.h. */ | |
23189 | _ACEOF | |
23190 | cat confdefs.h >>conftest.$ac_ext | |
23191 | cat >>conftest.$ac_ext <<_ACEOF | |
23192 | /* end confdefs.h. */ | |
23193 | ||
23194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23195 | #ifdef __cplusplus | |
23196 | extern "C" | |
23197 | #endif | |
23198 | /* We use char because int might match the return type of a gcc2 | |
23199 | builtin and then its argument prototype would still apply. */ | |
23200 | char remove (); | |
23201 | int | |
23202 | main () | |
23203 | { | |
23204 | remove (); | |
23205 | ; | |
23206 | return 0; | |
23207 | } | |
23208 | _ACEOF | |
23209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23211 | (eval $ac_link) 2>&5 | |
23212 | ac_status=$? | |
23213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23214 | (exit $ac_status); } && | |
23215 | { ac_try='test -s conftest$ac_exeext' | |
23216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23217 | (eval $ac_try) 2>&5 | |
23218 | ac_status=$? | |
23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23220 | (exit $ac_status); }; }; then | |
23221 | ac_cv_lib_posix_remove=yes | |
23222 | else | |
23223 | echo "$as_me: failed program was:" >&5 | |
23224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23225 | ||
23226 | ac_cv_lib_posix_remove=no | |
23227 | fi | |
23228 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23229 | LIBS=$ac_check_lib_save_LIBS | |
23230 | fi | |
23231 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23232 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23233 | if test $ac_cv_lib_posix_remove = yes; then | |
23234 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
23235 | fi | |
23236 | ||
23237 | fi | |
23238 | ||
23239 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
23240 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
23241 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23242 | if test "${ac_cv_func_shmat+set}" = set; then | |
23243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23244 | else | |
23245 | cat >conftest.$ac_ext <<_ACEOF | |
23246 | #line $LINENO "configure" | |
23247 | /* confdefs.h. */ | |
23248 | _ACEOF | |
23249 | cat confdefs.h >>conftest.$ac_ext | |
23250 | cat >>conftest.$ac_ext <<_ACEOF | |
23251 | /* end confdefs.h. */ | |
23252 | /* System header to define __stub macros and hopefully few prototypes, | |
23253 | which can conflict with char shmat (); below. | |
23254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23255 | <limits.h> exists even on freestanding compilers. */ | |
23256 | #ifdef __STDC__ | |
23257 | # include <limits.h> | |
23258 | #else | |
23259 | # include <assert.h> | |
23260 | #endif | |
23261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23262 | #ifdef __cplusplus | |
23263 | extern "C" | |
23264 | { | |
23265 | #endif | |
23266 | /* We use char because int might match the return type of a gcc2 | |
23267 | builtin and then its argument prototype would still apply. */ | |
23268 | char shmat (); | |
23269 | /* The GNU C library defines this for functions which it implements | |
23270 | to always fail with ENOSYS. Some functions are actually named | |
23271 | something starting with __ and the normal name is an alias. */ | |
23272 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23273 | choke me | |
23274 | #else | |
23275 | char (*f) () = shmat; | |
23276 | #endif | |
23277 | #ifdef __cplusplus | |
23278 | } | |
23279 | #endif | |
23280 | ||
23281 | int | |
23282 | main () | |
23283 | { | |
23284 | return f != shmat; | |
23285 | ; | |
23286 | return 0; | |
23287 | } | |
23288 | _ACEOF | |
23289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23291 | (eval $ac_link) 2>&5 | |
23292 | ac_status=$? | |
23293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23294 | (exit $ac_status); } && | |
23295 | { ac_try='test -s conftest$ac_exeext' | |
23296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23297 | (eval $ac_try) 2>&5 | |
23298 | ac_status=$? | |
23299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23300 | (exit $ac_status); }; }; then | |
23301 | ac_cv_func_shmat=yes | |
23302 | else | |
23303 | echo "$as_me: failed program was:" >&5 | |
23304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23305 | ||
23306 | ac_cv_func_shmat=no | |
23307 | fi | |
23308 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23309 | fi | |
23310 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23311 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
23312 | ||
23313 | if test $ac_cv_func_shmat = no; then | |
23314 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
23315 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23316 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23318 | else | |
23319 | ac_check_lib_save_LIBS=$LIBS | |
23320 | LIBS="-lipc $LIBS" | |
23321 | cat >conftest.$ac_ext <<_ACEOF | |
23322 | #line $LINENO "configure" | |
23323 | /* confdefs.h. */ | |
23324 | _ACEOF | |
23325 | cat confdefs.h >>conftest.$ac_ext | |
23326 | cat >>conftest.$ac_ext <<_ACEOF | |
23327 | /* end confdefs.h. */ | |
23328 | ||
23329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23330 | #ifdef __cplusplus | |
23331 | extern "C" | |
23332 | #endif | |
23333 | /* We use char because int might match the return type of a gcc2 | |
23334 | builtin and then its argument prototype would still apply. */ | |
23335 | char shmat (); | |
23336 | int | |
23337 | main () | |
23338 | { | |
23339 | shmat (); | |
23340 | ; | |
23341 | return 0; | |
23342 | } | |
23343 | _ACEOF | |
23344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23346 | (eval $ac_link) 2>&5 | |
23347 | ac_status=$? | |
23348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23349 | (exit $ac_status); } && | |
23350 | { ac_try='test -s conftest$ac_exeext' | |
23351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23352 | (eval $ac_try) 2>&5 | |
23353 | ac_status=$? | |
23354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23355 | (exit $ac_status); }; }; then | |
23356 | ac_cv_lib_ipc_shmat=yes | |
23357 | else | |
23358 | echo "$as_me: failed program was:" >&5 | |
23359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23360 | ||
23361 | ac_cv_lib_ipc_shmat=no | |
23362 | fi | |
23363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23364 | LIBS=$ac_check_lib_save_LIBS | |
23365 | fi | |
23366 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23367 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23368 | if test $ac_cv_lib_ipc_shmat = yes; then | |
23369 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
23370 | fi | |
23371 | ||
23372 | fi | |
23373 | fi | |
23374 | ||
23375 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
23376 | ac_save_LDFLAGS=$LDFLAGS | |
23377 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
23378 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23379 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23380 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23381 | # These have to be linked with before -lX11, unlike the other | |
23382 | # libraries we check for below, so use a different variable. | |
23383 | # John Interrante, Karl Berry | |
23384 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23385 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23386 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23388 | else | |
23389 | ac_check_lib_save_LIBS=$LIBS | |
23390 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
23391 | cat >conftest.$ac_ext <<_ACEOF | |
23392 | #line $LINENO "configure" | |
23393 | /* confdefs.h. */ | |
23394 | _ACEOF | |
23395 | cat confdefs.h >>conftest.$ac_ext | |
23396 | cat >>conftest.$ac_ext <<_ACEOF | |
23397 | /* end confdefs.h. */ | |
23398 | ||
23399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23400 | #ifdef __cplusplus | |
23401 | extern "C" | |
23402 | #endif | |
23403 | /* We use char because int might match the return type of a gcc2 | |
23404 | builtin and then its argument prototype would still apply. */ | |
23405 | char IceConnectionNumber (); | |
23406 | int | |
23407 | main () | |
23408 | { | |
23409 | IceConnectionNumber (); | |
23410 | ; | |
23411 | return 0; | |
23412 | } | |
23413 | _ACEOF | |
23414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23416 | (eval $ac_link) 2>&5 | |
23417 | ac_status=$? | |
23418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23419 | (exit $ac_status); } && | |
23420 | { ac_try='test -s conftest$ac_exeext' | |
23421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23422 | (eval $ac_try) 2>&5 | |
23423 | ac_status=$? | |
23424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23425 | (exit $ac_status); }; }; then | |
23426 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23427 | else | |
23428 | echo "$as_me: failed program was:" >&5 | |
23429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23430 | ||
23431 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23432 | fi | |
23433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23434 | LIBS=$ac_check_lib_save_LIBS | |
23435 | fi | |
23436 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23437 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23438 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
23439 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
23440 | fi | |
23441 | ||
23442 | LDFLAGS=$ac_save_LDFLAGS | |
23443 | ||
23444 | fi | |
23445 | ||
23446 | ||
23447 | if test "$no_x" = "yes"; then | |
23448 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
23449 | echo "$as_me: error: X11 not found" >&2;} | |
23450 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
23451 | fi | |
23452 | ||
23453 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` | |
23454 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
23455 | AFMINSTALL=afminstall | |
23456 | COMPILED_X_PROGRAM=0 | |
23457 | ||
23458 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 | |
23459 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23460 | ||
23461 | ac_find_includes= | |
23462 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23463 | do | |
23464 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23465 | ac_find_includes=$ac_dir | |
23466 | break | |
23467 | fi | |
23468 | done | |
23469 | ||
23470 | if test "$ac_find_includes" != "" ; then | |
23471 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
23472 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23473 | ||
23474 | if test "x$ac_find_includes" = "x/usr/include"; then | |
23475 | ac_path_to_include="" | |
23476 | else | |
23477 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
23478 | result=$? | |
23479 | if test $result = 0; then | |
23480 | ac_path_to_include="" | |
23481 | else | |
23482 | ac_path_to_include=" -I$ac_find_includes" | |
23483 | fi | |
23484 | fi | |
23485 | ||
23486 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
23487 | else | |
23488 | cat >conftest.$ac_ext <<_ACEOF | |
23489 | #line $LINENO "configure" | |
23490 | /* confdefs.h. */ | |
23491 | _ACEOF | |
23492 | cat confdefs.h >>conftest.$ac_ext | |
23493 | cat >>conftest.$ac_ext <<_ACEOF | |
23494 | /* end confdefs.h. */ | |
23495 | ||
23496 | #include <Xm/Xm.h> | |
23497 | ||
23498 | int | |
23499 | main () | |
23500 | { | |
23501 | ||
23502 | int version; | |
23503 | version = xmUseVersion; | |
23504 | ||
23505 | ; | |
23506 | return 0; | |
23507 | } | |
23508 | _ACEOF | |
23509 | rm -f conftest.$ac_objext | |
23510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23511 | (eval $ac_compile) 2>&5 | |
23512 | ac_status=$? | |
23513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23514 | (exit $ac_status); } && | |
23515 | { ac_try='test -s conftest.$ac_objext' | |
23516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23517 | (eval $ac_try) 2>&5 | |
23518 | ac_status=$? | |
23519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23520 | (exit $ac_status); }; }; then | |
23521 | ||
23522 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23523 | echo "${ECHO_T}found in default search path" >&6 | |
23524 | COMPILED_X_PROGRAM=1 | |
23525 | ||
23526 | else | |
23527 | echo "$as_me: failed program was:" >&5 | |
23528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23529 | ||
23530 | ||
23531 | echo "$as_me:$LINENO: result: no" >&5 | |
23532 | echo "${ECHO_T}no" >&6 | |
23533 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23534 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23535 | { (exit 1); exit 1; }; } | |
23536 | ||
23537 | ||
23538 | fi | |
23539 | rm -f conftest.$ac_objext conftest.$ac_ext | |
23540 | fi | |
23541 | ||
23542 | if test "$COMPILED_X_PROGRAM" = 0; then | |
23543 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
23544 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23545 | ||
23546 | ac_find_libraries= | |
23547 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23548 | do | |
23549 | for ac_extension in a so sl dylib; do | |
23550 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23551 | ac_find_libraries=$ac_dir | |
23552 | break 2 | |
23553 | fi | |
23554 | done | |
23555 | done | |
23556 | ||
23557 | if test "$ac_find_libraries" != "" ; then | |
23558 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23559 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23560 | ||
23561 | ||
23562 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23563 | result=$? | |
23564 | if test $result = 0; then | |
23565 | ac_path_to_link="" | |
23566 | else | |
23567 | ac_path_to_link=" -L$ac_find_libraries" | |
23568 | fi | |
23569 | ||
23570 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
23571 | else | |
23572 | save_CFLAGS=$CFLAGS | |
23573 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23574 | ||
23575 | cat >conftest.$ac_ext <<_ACEOF | |
23576 | #line $LINENO "configure" | |
23577 | /* confdefs.h. */ | |
23578 | _ACEOF | |
23579 | cat confdefs.h >>conftest.$ac_ext | |
23580 | cat >>conftest.$ac_ext <<_ACEOF | |
23581 | /* end confdefs.h. */ | |
23582 | ||
23583 | #include <Xm/Xm.h> | |
23584 | ||
23585 | int | |
23586 | main () | |
23587 | { | |
23588 | ||
23589 | int version; | |
23590 | version = xmUseVersion; | |
23591 | ||
23592 | ; | |
23593 | return 0; | |
23594 | } | |
23595 | _ACEOF | |
23596 | rm -f conftest.$ac_objext | |
23597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23598 | (eval $ac_compile) 2>&5 | |
23599 | ac_status=$? | |
23600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23601 | (exit $ac_status); } && | |
23602 | { ac_try='test -s conftest.$ac_objext' | |
23603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23604 | (eval $ac_try) 2>&5 | |
23605 | ac_status=$? | |
23606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23607 | (exit $ac_status); }; }; then | |
23608 | ||
23609 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23610 | echo "${ECHO_T}found in default search path" >&6 | |
23611 | COMPILED_X_PROGRAM=1 | |
23612 | ||
23613 | else | |
23614 | echo "$as_me: failed program was:" >&5 | |
23615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23616 | ||
23617 | ||
23618 | echo "$as_me:$LINENO: result: no" >&5 | |
23619 | echo "${ECHO_T}no" >&6 | |
23620 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23621 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23622 | { (exit 1); exit 1; }; } | |
23623 | ||
23624 | ||
23625 | fi | |
23626 | rm -f conftest.$ac_objext conftest.$ac_ext | |
23627 | ||
23628 | CFLAGS=$save_CFLAGS | |
23629 | fi | |
23630 | fi | |
23631 | ||
23632 | xpm_link= | |
23633 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
23634 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
23635 | ||
23636 | ac_find_libraries= | |
23637 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23638 | do | |
23639 | for ac_extension in a so sl dylib; do | |
23640 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
23641 | ac_find_libraries=$ac_dir | |
23642 | break 2 | |
23643 | fi | |
23644 | done | |
23645 | done | |
23646 | ||
23647 | if test "$ac_find_libraries" != "" ; then | |
23648 | ||
23649 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23650 | result=$? | |
23651 | if test $result = 0; then | |
23652 | ac_path_to_link="" | |
23653 | else | |
23654 | ac_path_to_link=" -L$ac_find_libraries" | |
23655 | fi | |
23656 | ||
23657 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
23658 | ||
23659 | xpm_link=" -lXpm" | |
23660 | cat >>confdefs.h <<\_ACEOF | |
23661 | #define wxHAVE_LIB_XPM 1 | |
23662 | _ACEOF | |
23663 | ||
23664 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23665 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23666 | else | |
23667 | save_CFLAGS=$CFLAGS | |
23668 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23669 | ||
23670 | cat >conftest.$ac_ext <<_ACEOF | |
23671 | #line $LINENO "configure" | |
23672 | /* confdefs.h. */ | |
23673 | _ACEOF | |
23674 | cat confdefs.h >>conftest.$ac_ext | |
23675 | cat >>conftest.$ac_ext <<_ACEOF | |
23676 | /* end confdefs.h. */ | |
23677 | ||
23678 | #include <X11/xpm.h> | |
23679 | ||
23680 | int | |
23681 | main () | |
23682 | { | |
23683 | ||
23684 | int version; | |
23685 | version = XpmLibraryVersion(); | |
23686 | ||
23687 | ; | |
23688 | return 0; | |
23689 | } | |
23690 | _ACEOF | |
23691 | rm -f conftest.$ac_objext | |
23692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23693 | (eval $ac_compile) 2>&5 | |
23694 | ac_status=$? | |
23695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23696 | (exit $ac_status); } && | |
23697 | { ac_try='test -s conftest.$ac_objext' | |
23698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23699 | (eval $ac_try) 2>&5 | |
23700 | ac_status=$? | |
23701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23702 | (exit $ac_status); }; }; then | |
23703 | ||
23704 | xpm_link=" -lXpm" | |
23705 | cat >>confdefs.h <<\_ACEOF | |
23706 | #define wxHAVE_LIB_XPM 1 | |
23707 | _ACEOF | |
23708 | ||
23709 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23710 | echo "${ECHO_T}found in default search path" >&6 | |
23711 | COMPILED_X_PROGRAM=0 | |
23712 | ||
23713 | else | |
23714 | echo "$as_me: failed program was:" >&5 | |
23715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23716 | ||
23717 | ||
23718 | echo "$as_me:$LINENO: result: no" >&5 | |
23719 | echo "${ECHO_T}no" >&6 | |
23720 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
23721 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
23722 | ||
23723 | ||
23724 | fi | |
23725 | rm -f conftest.$ac_objext conftest.$ac_ext | |
23726 | ||
23727 | CFLAGS=$save_CFLAGS | |
23728 | fi | |
23729 | ||
23730 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
23731 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
23732 | libp_link="" | |
23733 | libsm_ice_link="" | |
23734 | libs_found=0 | |
23735 | for libp in "" " -lXp"; do | |
23736 | if test "$libs_found" = "0"; then | |
23737 | for libsm_ice in " -lSM -lICE"; do | |
23738 | if test "$libs_found" = "0"; then | |
23739 | save_LIBS="$LIBS" | |
23740 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
23741 | save_CFLAGS=$CFLAGS | |
23742 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23743 | ||
23744 | cat >conftest.$ac_ext <<_ACEOF | |
23745 | #line $LINENO "configure" | |
23746 | /* confdefs.h. */ | |
23747 | _ACEOF | |
23748 | cat confdefs.h >>conftest.$ac_ext | |
23749 | cat >>conftest.$ac_ext <<_ACEOF | |
23750 | /* end confdefs.h. */ | |
23751 | ||
23752 | #include <Xm/Xm.h> | |
23753 | #include <Xm/List.h> | |
23754 | ||
23755 | int | |
23756 | main () | |
23757 | { | |
23758 | ||
23759 | XmString string = NULL; | |
23760 | Widget w = NULL; | |
23761 | int position = 0; | |
23762 | XmListAddItem(w, string, position); | |
23763 | ||
23764 | ; | |
23765 | return 0; | |
23766 | } | |
23767 | _ACEOF | |
23768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23770 | (eval $ac_link) 2>&5 | |
23771 | ac_status=$? | |
23772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23773 | (exit $ac_status); } && | |
23774 | { ac_try='test -s conftest$ac_exeext' | |
23775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23776 | (eval $ac_try) 2>&5 | |
23777 | ac_status=$? | |
23778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23779 | (exit $ac_status); }; }; then | |
23780 | ||
23781 | libp_link="$libp" | |
23782 | libsm_ice_link="$libsm_ice" | |
23783 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
23784 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
23785 | libs_found=1 | |
23786 | ||
23787 | else | |
23788 | echo "$as_me: failed program was:" >&5 | |
23789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23790 | ||
23791 | ||
23792 | ||
23793 | fi | |
23794 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23795 | ||
23796 | LIBS="$save_LIBS" | |
23797 | CFLAGS=$save_CFLAGS | |
23798 | fi | |
23799 | done | |
23800 | fi | |
23801 | done | |
23802 | ||
23803 | if test "$libs_found" = "0"; then | |
23804 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
23805 | echo "${ECHO_T}can't find the right libraries" >&6 | |
23806 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
23807 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
23808 | { (exit 1); exit 1; }; } | |
23809 | fi | |
23810 | ||
23811 | save_CFLAGS=$CFLAGS | |
23812 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23813 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
23814 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
23815 | cat >conftest.$ac_ext <<_ACEOF | |
23816 | #line $LINENO "configure" | |
23817 | /* confdefs.h. */ | |
23818 | _ACEOF | |
23819 | cat confdefs.h >>conftest.$ac_ext | |
23820 | cat >>conftest.$ac_ext <<_ACEOF | |
23821 | /* end confdefs.h. */ | |
23822 | ||
23823 | #include <Xm/Xm.h> | |
23824 | ||
23825 | int | |
23826 | main () | |
23827 | { | |
23828 | ||
23829 | #if XmVersion < 2000 | |
23830 | #error "Not Motif 2" | |
23831 | #endif | |
23832 | ||
23833 | ; | |
23834 | return 0; | |
23835 | } | |
23836 | _ACEOF | |
23837 | rm -f conftest.$ac_objext | |
23838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23839 | (eval $ac_compile) 2>&5 | |
23840 | ac_status=$? | |
23841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23842 | (exit $ac_status); } && | |
23843 | { ac_try='test -s conftest.$ac_objext' | |
23844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23845 | (eval $ac_try) 2>&5 | |
23846 | ac_status=$? | |
23847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23848 | (exit $ac_status); }; }; then | |
23849 | ||
23850 | cat >>confdefs.h <<\_ACEOF | |
23851 | #define __WXMOTIF20__ 1 | |
23852 | _ACEOF | |
23853 | ||
23854 | echo "$as_me:$LINENO: result: found" >&5 | |
23855 | echo "${ECHO_T}found" >&6 | |
23856 | ||
23857 | else | |
23858 | echo "$as_me: failed program was:" >&5 | |
23859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23860 | ||
23861 | ||
23862 | cat >>confdefs.h <<\_ACEOF | |
23863 | #define __WXMOTIF20__ 0 | |
23864 | _ACEOF | |
23865 | ||
23866 | echo "$as_me:$LINENO: result: not found" >&5 | |
23867 | echo "${ECHO_T}not found" >&6 | |
23868 | ||
23869 | fi | |
23870 | rm -f conftest.$ac_objext conftest.$ac_ext | |
23871 | CFLAGS=$save_CFLAGS | |
23872 | ||
23873 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
23874 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
23875 | TOOLKIT=MOTIF | |
23876 | GUIDIST=MOTIF_DIST | |
23877 | wxHAVE_XEXT_LIB=1 | |
23878 | fi | |
23879 | ||
23880 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
23881 | test "$wxHAVE_XEXT_LIB" = 1; then | |
23882 | save_CFLAGS="$CFLAGS" | |
23883 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23884 | ||
23885 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
23886 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
23887 | cat >conftest.$ac_ext <<_ACEOF | |
23888 | #line $LINENO "configure" | |
23889 | /* confdefs.h. */ | |
23890 | _ACEOF | |
23891 | cat confdefs.h >>conftest.$ac_ext | |
23892 | cat >>conftest.$ac_ext <<_ACEOF | |
23893 | /* end confdefs.h. */ | |
23894 | ||
23895 | #include <X11/Xlib.h> | |
23896 | #include <X11/extensions/shape.h> | |
23897 | ||
23898 | int | |
23899 | main () | |
23900 | { | |
23901 | ||
23902 | int dummy1, dummy2; | |
23903 | XShapeQueryExtension((Display*)NULL, | |
23904 | (int*)NULL, (int*)NULL); | |
23905 | ||
23906 | ; | |
23907 | return 0; | |
23908 | } | |
23909 | _ACEOF | |
23910 | rm -f conftest.$ac_objext | |
23911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23912 | (eval $ac_compile) 2>&5 | |
23913 | ac_status=$? | |
23914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23915 | (exit $ac_status); } && | |
23916 | { ac_try='test -s conftest.$ac_objext' | |
23917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23918 | (eval $ac_try) 2>&5 | |
23919 | ac_status=$? | |
23920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23921 | (exit $ac_status); }; }; then | |
23922 | ||
23923 | cat >>confdefs.h <<\_ACEOF | |
23924 | #define HAVE_XSHAPE 1 | |
23925 | _ACEOF | |
23926 | ||
23927 | echo "$as_me:$LINENO: result: found" >&5 | |
23928 | echo "${ECHO_T}found" >&6 | |
23929 | ||
23930 | else | |
23931 | echo "$as_me: failed program was:" >&5 | |
23932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23933 | ||
23934 | ||
23935 | echo "$as_me:$LINENO: result: not found" >&5 | |
23936 | echo "${ECHO_T}not found" >&6 | |
23937 | ||
23938 | fi | |
23939 | rm -f conftest.$ac_objext conftest.$ac_ext | |
23940 | CFLAGS="$save_CFLAGS" | |
23941 | fi | |
23942 | ||
23943 | if test "$wxUSE_MAC" = 1; then | |
23944 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
23945 | ||
23946 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" | |
23947 | TOOLKIT=MAC | |
23948 | GUIDIST=MACX_DIST | |
23949 | fi | |
23950 | ||
23951 | if test "$wxUSE_COCOA" = 1; then | |
23952 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
23953 | TOOLKIT=COCOA | |
23954 | GUIDIST=COCOA_DIST | |
23955 | fi | |
23956 | ||
23957 | if test "$wxUSE_PM" = 1; then | |
23958 | TOOLKIT=PM | |
23959 | GUIDIST=GTK_DIST | |
23960 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 | |
23961 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
23962 | wxUSE_THREADS="no" | |
23963 | fi | |
23964 | ||
23965 | if test "$TOOLKIT" = "PM" ; then | |
23966 | TOOLKIT_DIR="os2" | |
23967 | else | |
23968 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
23969 | fi | |
23970 | ||
23971 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
23972 | ||
23973 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
23974 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
23975 | ||
23976 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
23977 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
23978 | ||
23979 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
23980 | if test "$wxUSE_X11" = 1; then | |
23981 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
23982 | else | |
23983 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
23984 | fi | |
23985 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
23986 | WIDGET_SET=univ | |
23987 | else | |
23988 | ALL_OBJECTS="\$(GUIOBJS)" | |
23989 | ALL_SOURCES="\$(ALL_SOURCES)" | |
23990 | ALL_HEADERS="\$(ALL_HEADERS)" | |
23991 | fi | |
23992 | ||
23993 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
23994 | ||
23995 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
23996 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
23997 | fi | |
23998 | ||
23999 | if test "$wxUSE_HTML" = "yes"; then | |
24000 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24001 | fi | |
24002 | ||
24003 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24004 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24005 | fi | |
24006 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24007 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24008 | fi | |
24009 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24010 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24011 | fi | |
24012 | ||
24013 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24014 | DISTDIR="wx\$(TOOLKIT)" | |
24015 | else | |
24016 | USE_GUI=0 | |
24017 | ||
24018 | TOOLKIT_DIR="base" | |
24019 | ||
24020 | if test "$USE_WIN32" = 1 ; then | |
24021 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24022 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24023 | ||
24024 | TOOLKIT="MSW" | |
24025 | else | |
24026 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24027 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24028 | fi | |
24029 | ||
24030 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24031 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24032 | ||
24033 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24034 | ||
24035 | GUIDIST="BASE_DIST" | |
24036 | DISTDIR="wxBase" | |
24037 | fi | |
24038 | ||
24039 | ||
24040 | ||
24041 | ||
24042 | IODBC_C_SRC="" | |
24043 | ||
24044 | ||
24045 | if test "$TOOLKIT" != "MSW" ; then | |
24046 | ||
24047 | if test "$wxUSE_ODBC" != "no" ; then | |
24048 | cat >>confdefs.h <<\_ACEOF | |
24049 | #define wxUSE_ODBC 1 | |
24050 | _ACEOF | |
24051 | ||
24052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
24053 | ||
24054 | WXODBCFLAG="-D_IODBC_" | |
24055 | ||
24056 | ||
24057 | if test "$wxUSE_ODBC" = "sys" ; then | |
24058 | ||
24059 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24060 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24061 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24062 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24064 | fi | |
24065 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24066 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24067 | else | |
24068 | # Is the header compilable? | |
24069 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24070 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24071 | cat >conftest.$ac_ext <<_ACEOF | |
24072 | #line $LINENO "configure" | |
24073 | /* confdefs.h. */ | |
24074 | _ACEOF | |
24075 | cat confdefs.h >>conftest.$ac_ext | |
24076 | cat >>conftest.$ac_ext <<_ACEOF | |
24077 | /* end confdefs.h. */ | |
24078 | $ac_includes_default | |
24079 | #include <sql.h> | |
24080 | _ACEOF | |
24081 | rm -f conftest.$ac_objext | |
24082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24083 | (eval $ac_compile) 2>&5 | |
24084 | ac_status=$? | |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24086 | (exit $ac_status); } && | |
24087 | { ac_try='test -s conftest.$ac_objext' | |
24088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24089 | (eval $ac_try) 2>&5 | |
24090 | ac_status=$? | |
24091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24092 | (exit $ac_status); }; }; then | |
24093 | ac_header_compiler=yes | |
24094 | else | |
24095 | echo "$as_me: failed program was:" >&5 | |
24096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24097 | ||
24098 | ac_header_compiler=no | |
24099 | fi | |
24100 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24101 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24102 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24103 | ||
24104 | # Is the header present? | |
24105 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24106 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24107 | cat >conftest.$ac_ext <<_ACEOF | |
24108 | #line $LINENO "configure" | |
24109 | /* confdefs.h. */ | |
24110 | _ACEOF | |
24111 | cat confdefs.h >>conftest.$ac_ext | |
24112 | cat >>conftest.$ac_ext <<_ACEOF | |
24113 | /* end confdefs.h. */ | |
24114 | #include <sql.h> | |
24115 | _ACEOF | |
24116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24118 | ac_status=$? | |
24119 | grep -v '^ *+' conftest.er1 >conftest.err | |
24120 | rm -f conftest.er1 | |
24121 | cat conftest.err >&5 | |
24122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24123 | (exit $ac_status); } >/dev/null; then | |
24124 | if test -s conftest.err; then | |
24125 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24126 | else | |
24127 | ac_cpp_err= | |
24128 | fi | |
24129 | else | |
24130 | ac_cpp_err=yes | |
24131 | fi | |
24132 | if test -z "$ac_cpp_err"; then | |
24133 | ac_header_preproc=yes | |
24134 | else | |
24135 | echo "$as_me: failed program was:" >&5 | |
24136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24137 | ||
24138 | ac_header_preproc=no | |
24139 | fi | |
24140 | rm -f conftest.err conftest.$ac_ext | |
24141 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24142 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24143 | ||
24144 | # So? What about this header? | |
24145 | case $ac_header_compiler:$ac_header_preproc in | |
24146 | yes:no ) | |
24147 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24148 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24149 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24150 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24151 | ( | |
24152 | cat <<\_ASBOX | |
24153 | ## ------------------------------------ ## | |
24154 | ## Report this to bug-autoconf@gnu.org. ## | |
24155 | ## ------------------------------------ ## | |
24156 | _ASBOX | |
24157 | ) | | |
24158 | sed "s/^/$as_me: WARNING: /" >&2 | |
24159 | ;; | |
24160 | no:yes ) | |
24161 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24162 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24163 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24164 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24165 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24166 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24167 | ( | |
24168 | cat <<\_ASBOX | |
24169 | ## ------------------------------------ ## | |
24170 | ## Report this to bug-autoconf@gnu.org. ## | |
24171 | ## ------------------------------------ ## | |
24172 | _ASBOX | |
24173 | ) | | |
24174 | sed "s/^/$as_me: WARNING: /" >&2 | |
24175 | ;; | |
24176 | esac | |
24177 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24178 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24179 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24181 | else | |
24182 | ac_cv_header_sql_h=$ac_header_preproc | |
24183 | fi | |
24184 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24185 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24186 | ||
24187 | fi | |
24188 | ||
24189 | ||
24190 | echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5 | |
24191 | echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6 | |
24192 | if test "${ac_cv_search_SQLAllocEnv+set}" = set; then | |
24193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24194 | else | |
24195 | ac_func_search_save_LIBS=$LIBS | |
24196 | ac_cv_search_SQLAllocEnv=no | |
24197 | cat >conftest.$ac_ext <<_ACEOF | |
24198 | #line $LINENO "configure" | |
24199 | /* confdefs.h. */ | |
24200 | _ACEOF | |
24201 | cat confdefs.h >>conftest.$ac_ext | |
24202 | cat >>conftest.$ac_ext <<_ACEOF | |
24203 | /* end confdefs.h. */ | |
24204 | ||
24205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24206 | #ifdef __cplusplus | |
24207 | extern "C" | |
24208 | #endif | |
24209 | /* We use char because int might match the return type of a gcc2 | |
24210 | builtin and then its argument prototype would still apply. */ | |
24211 | char SQLAllocEnv (); | |
24212 | int | |
24213 | main () | |
24214 | { | |
24215 | SQLAllocEnv (); | |
24216 | ; | |
24217 | return 0; | |
24218 | } | |
24219 | _ACEOF | |
24220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24222 | (eval $ac_link) 2>&5 | |
24223 | ac_status=$? | |
24224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24225 | (exit $ac_status); } && | |
24226 | { ac_try='test -s conftest$ac_exeext' | |
24227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24228 | (eval $ac_try) 2>&5 | |
24229 | ac_status=$? | |
24230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24231 | (exit $ac_status); }; }; then | |
24232 | ac_cv_search_SQLAllocEnv="none required" | |
24233 | else | |
24234 | echo "$as_me: failed program was:" >&5 | |
24235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24236 | ||
24237 | fi | |
24238 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24239 | if test "$ac_cv_search_SQLAllocEnv" = no; then | |
24240 | for ac_lib in iodbc unixodbc odbc ; do | |
24241 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
24242 | cat >conftest.$ac_ext <<_ACEOF | |
24243 | #line $LINENO "configure" | |
24244 | /* confdefs.h. */ | |
24245 | _ACEOF | |
24246 | cat confdefs.h >>conftest.$ac_ext | |
24247 | cat >>conftest.$ac_ext <<_ACEOF | |
24248 | /* end confdefs.h. */ | |
24249 | ||
24250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24251 | #ifdef __cplusplus | |
24252 | extern "C" | |
24253 | #endif | |
24254 | /* We use char because int might match the return type of a gcc2 | |
24255 | builtin and then its argument prototype would still apply. */ | |
24256 | char SQLAllocEnv (); | |
24257 | int | |
24258 | main () | |
24259 | { | |
24260 | SQLAllocEnv (); | |
24261 | ; | |
24262 | return 0; | |
24263 | } | |
24264 | _ACEOF | |
24265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24267 | (eval $ac_link) 2>&5 | |
24268 | ac_status=$? | |
24269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24270 | (exit $ac_status); } && | |
24271 | { ac_try='test -s conftest$ac_exeext' | |
24272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24273 | (eval $ac_try) 2>&5 | |
24274 | ac_status=$? | |
24275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24276 | (exit $ac_status); }; }; then | |
24277 | ac_cv_search_SQLAllocEnv="-l$ac_lib" | |
24278 | break | |
24279 | else | |
24280 | echo "$as_me: failed program was:" >&5 | |
24281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24282 | ||
24283 | fi | |
24284 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24285 | done | |
24286 | fi | |
24287 | LIBS=$ac_func_search_save_LIBS | |
24288 | fi | |
24289 | echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5 | |
24290 | echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6 | |
24291 | if test "$ac_cv_search_SQLAllocEnv" != no; then | |
24292 | test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS" | |
24293 | ||
24294 | else | |
24295 | ||
24296 | wxUSE_ODBC=builtin; | |
24297 | { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5 | |
24298 | echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;} | |
24299 | ||
24300 | fi | |
24301 | ||
24302 | fi | |
24303 | if test "$wxUSE_ODBC" != "sys" ; then | |
24304 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
24305 | fi | |
24306 | ||
24307 | fi | |
24308 | ||
24309 | fi | |
24310 | ||
24311 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24312 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
24313 | fi | |
24314 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
24315 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
24316 | fi | |
24317 | ||
24318 | ||
24319 | if test "$wxUSE_OPENGL" = "yes"; then | |
24320 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
24321 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
24322 | elif test "$wxUSE_MSW" = 1; then | |
24323 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24324 | else | |
24325 | ||
24326 | ||
24327 | ac_find_includes= | |
24328 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24329 | do | |
24330 | if test -f "$ac_dir/GL/gl.h"; then | |
24331 | ac_find_includes=$ac_dir | |
24332 | break | |
24333 | fi | |
24334 | done | |
24335 | ||
24336 | if test "$ac_find_includes" != "" ; then | |
24337 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24338 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24339 | set -x | |
24340 | ||
24341 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24342 | ac_path_to_include="" | |
24343 | else | |
24344 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24345 | result=$? | |
24346 | if test $result = 0; then | |
24347 | ac_path_to_include="" | |
24348 | else | |
24349 | ac_path_to_include=" -I$ac_find_includes" | |
24350 | fi | |
24351 | fi | |
24352 | ||
24353 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
24354 | set +x | |
24355 | fi | |
24356 | ||
24357 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24358 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24359 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24360 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24362 | fi | |
24363 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24364 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24365 | else | |
24366 | # Is the header compilable? | |
24367 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24368 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24369 | cat >conftest.$ac_ext <<_ACEOF | |
24370 | #line $LINENO "configure" | |
24371 | /* confdefs.h. */ | |
24372 | _ACEOF | |
24373 | cat confdefs.h >>conftest.$ac_ext | |
24374 | cat >>conftest.$ac_ext <<_ACEOF | |
24375 | /* end confdefs.h. */ | |
24376 | $ac_includes_default | |
24377 | #include <GL/gl.h> | |
24378 | _ACEOF | |
24379 | rm -f conftest.$ac_objext | |
24380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24381 | (eval $ac_compile) 2>&5 | |
24382 | ac_status=$? | |
24383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24384 | (exit $ac_status); } && | |
24385 | { ac_try='test -s conftest.$ac_objext' | |
24386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24387 | (eval $ac_try) 2>&5 | |
24388 | ac_status=$? | |
24389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24390 | (exit $ac_status); }; }; then | |
24391 | ac_header_compiler=yes | |
24392 | else | |
24393 | echo "$as_me: failed program was:" >&5 | |
24394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24395 | ||
24396 | ac_header_compiler=no | |
24397 | fi | |
24398 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24399 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24400 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24401 | ||
24402 | # Is the header present? | |
24403 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24404 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24405 | cat >conftest.$ac_ext <<_ACEOF | |
24406 | #line $LINENO "configure" | |
24407 | /* confdefs.h. */ | |
24408 | _ACEOF | |
24409 | cat confdefs.h >>conftest.$ac_ext | |
24410 | cat >>conftest.$ac_ext <<_ACEOF | |
24411 | /* end confdefs.h. */ | |
24412 | #include <GL/gl.h> | |
24413 | _ACEOF | |
24414 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24415 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24416 | ac_status=$? | |
24417 | grep -v '^ *+' conftest.er1 >conftest.err | |
24418 | rm -f conftest.er1 | |
24419 | cat conftest.err >&5 | |
24420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24421 | (exit $ac_status); } >/dev/null; then | |
24422 | if test -s conftest.err; then | |
24423 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24424 | else | |
24425 | ac_cpp_err= | |
24426 | fi | |
24427 | else | |
24428 | ac_cpp_err=yes | |
24429 | fi | |
24430 | if test -z "$ac_cpp_err"; then | |
24431 | ac_header_preproc=yes | |
24432 | else | |
24433 | echo "$as_me: failed program was:" >&5 | |
24434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24435 | ||
24436 | ac_header_preproc=no | |
24437 | fi | |
24438 | rm -f conftest.err conftest.$ac_ext | |
24439 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24440 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24441 | ||
24442 | # So? What about this header? | |
24443 | case $ac_header_compiler:$ac_header_preproc in | |
24444 | yes:no ) | |
24445 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24446 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24447 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24448 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24449 | ( | |
24450 | cat <<\_ASBOX | |
24451 | ## ------------------------------------ ## | |
24452 | ## Report this to bug-autoconf@gnu.org. ## | |
24453 | ## ------------------------------------ ## | |
24454 | _ASBOX | |
24455 | ) | | |
24456 | sed "s/^/$as_me: WARNING: /" >&2 | |
24457 | ;; | |
24458 | no:yes ) | |
24459 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24460 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24461 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24462 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24463 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24464 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24465 | ( | |
24466 | cat <<\_ASBOX | |
24467 | ## ------------------------------------ ## | |
24468 | ## Report this to bug-autoconf@gnu.org. ## | |
24469 | ## ------------------------------------ ## | |
24470 | _ASBOX | |
24471 | ) | | |
24472 | sed "s/^/$as_me: WARNING: /" >&2 | |
24473 | ;; | |
24474 | esac | |
24475 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24476 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24477 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24479 | else | |
24480 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
24481 | fi | |
24482 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24483 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24484 | ||
24485 | fi | |
24486 | if test $ac_cv_header_GL_gl_h = yes; then | |
24487 | ||
24488 | found_gl=0 | |
24489 | ||
24490 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
24491 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24492 | ||
24493 | ac_find_libraries= | |
24494 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24495 | do | |
24496 | for ac_extension in a so sl dylib; do | |
24497 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24498 | ac_find_libraries=$ac_dir | |
24499 | break 2 | |
24500 | fi | |
24501 | done | |
24502 | done | |
24503 | ||
24504 | if test "$ac_find_libraries" != "" ; then | |
24505 | ||
24506 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
24507 | result=$? | |
24508 | if test $result = 0; then | |
24509 | ac_path_to_link="" | |
24510 | else | |
24511 | ac_path_to_link=" -L$ac_find_libraries" | |
24512 | fi | |
24513 | ||
24514 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
24515 | LDFLAGS_GL="$ac_path_to_link" | |
24516 | fi | |
24517 | ||
24518 | ||
24519 | ac_find_libraries= | |
24520 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24521 | do | |
24522 | for ac_extension in a so sl dylib; do | |
24523 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24524 | ac_find_libraries=$ac_dir | |
24525 | break 2 | |
24526 | fi | |
24527 | done | |
24528 | done | |
24529 | ||
24530 | if test "$ac_find_libraries" != "" ; then | |
24531 | ||
24532 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
24533 | result=$? | |
24534 | if test $result = 0; then | |
24535 | ac_path_to_link="" | |
24536 | else | |
24537 | ac_path_to_link=" -L$ac_find_libraries" | |
24538 | fi | |
24539 | ||
24540 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24541 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24542 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24543 | fi | |
24544 | ||
24545 | found_gl=1 | |
24546 | OPENGL_LIBS="-lGL -lGLU" | |
24547 | echo "$as_me:$LINENO: result: yes" >&5 | |
24548 | echo "${ECHO_T}yes" >&6 | |
24549 | fi | |
24550 | fi | |
24551 | ||
24552 | if "$found_gl" != 1; then | |
24553 | echo "$as_me:$LINENO: result: no" >&5 | |
24554 | echo "${ECHO_T}no" >&6 | |
24555 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
24556 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
24557 | ||
24558 | ac_find_libraries= | |
24559 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24560 | do | |
24561 | for ac_extension in a so sl dylib; do | |
24562 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
24563 | ac_find_libraries=$ac_dir | |
24564 | break 2 | |
24565 | fi | |
24566 | done | |
24567 | done | |
24568 | ||
24569 | if test "$ac_find_libraries" != "" ; then | |
24570 | ||
24571 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
24572 | result=$? | |
24573 | if test $result = 0; then | |
24574 | ac_path_to_link="" | |
24575 | else | |
24576 | ac_path_to_link=" -L$ac_find_libraries" | |
24577 | fi | |
24578 | ||
24579 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
24580 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
24581 | echo "$as_me:$LINENO: result: yes" >&5 | |
24582 | echo "${ECHO_T}yes" >&6 | |
24583 | else | |
24584 | echo "$as_me:$LINENO: result: no" >&5 | |
24585 | echo "${ECHO_T}no" >&6 | |
24586 | fi | |
24587 | fi | |
24588 | ||
24589 | fi | |
24590 | ||
24591 | ||
24592 | ||
24593 | if test "x$OPENGL_LIBS" = "x"; then | |
24594 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
24595 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
24596 | { (exit 1); exit 1; }; } | |
24597 | fi | |
24598 | fi | |
24599 | ||
24600 | if test "$wxUSE_OPENGL" = "yes"; then | |
24601 | cat >>confdefs.h <<\_ACEOF | |
24602 | #define wxUSE_OPENGL 1 | |
24603 | _ACEOF | |
24604 | ||
24605 | cat >>confdefs.h <<\_ACEOF | |
24606 | #define wxUSE_GLCANVAS 1 | |
24607 | _ACEOF | |
24608 | ||
24609 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
24610 | fi | |
24611 | fi | |
24612 | ||
24613 | if test -z "$TOOLKIT_VPATH" ; then | |
24614 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24615 | fi | |
24616 | ||
24617 | if test -n "$TOOLKIT" ; then | |
24618 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
24619 | fi | |
24620 | ||
24621 | UNICODE=0 | |
24622 | lib_unicode_suffix= | |
24623 | if test "$wxUSE_UNICODE" = "yes"; then | |
24624 | lib_unicode_suffix=u | |
24625 | UNICODE=1 | |
24626 | fi | |
24627 | ||
24628 | lib_debug_suffix= | |
24629 | BUILD=release | |
24630 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
24631 | lib_debug_suffix=d | |
24632 | BUILD=debug | |
24633 | fi | |
24634 | ||
24635 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
24636 | ||
24637 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
24638 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
24639 | ||
24640 | if test "$cross_compiling" = "yes"; then | |
24641 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
24642 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
24643 | fi | |
24644 | ||
24645 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
24646 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
24647 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
24648 | ||
24649 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24650 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24651 | ||
24652 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
24653 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24654 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
24655 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24656 | ||
24657 | case "${host}" in | |
24658 | *-*-cygwin* | *-*-mingw32* ) | |
24659 | ||
24660 | ||
24661 | ||
24662 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then | |
24663 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
24664 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
24665 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
24666 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24667 | else | |
24668 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24669 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24670 | fi | |
24671 | ;; | |
24672 | ||
24673 | *-*-darwin* ) | |
24674 | ||
24675 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
24676 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
24677 | ||
24678 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
24679 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24680 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
24681 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24682 | ||
24683 | if test "$wxUSE_MAC" = 1; then | |
24684 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
24685 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
24686 | fi | |
24687 | ;; | |
24688 | esac | |
24689 | ||
24690 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
24691 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
24692 | ||
24693 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
24694 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
24695 | ||
24696 | if test "$wxUSE_OPENGL" = "yes"; then | |
24697 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
24698 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
24699 | fi | |
24700 | ||
24701 | ||
24702 | ||
24703 | if test "$wxUSE_SHARED" = "yes"; then | |
24704 | case "${host}" in | |
24705 | *-pc-os2_emx | *-pc-os2-emx | \ | |
24706 | *-pc-msdosdjgpp ) | |
24707 | wxUSE_SHARED=no | |
24708 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
24709 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
24710 | ;; | |
24711 | esac | |
24712 | fi | |
24713 | ||
24714 | SHARED=0 | |
24715 | if test "$wxUSE_SHARED" = "yes"; then | |
24716 | SHARED=1 | |
24717 | ||
24718 | ||
24719 | found_versioning=no | |
24720 | ||
24721 | ||
24722 | if test $found_versioning = no ; then | |
24723 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
24724 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
24725 | if test "${wx_cv_version_script+set}" = set; then | |
24726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24727 | else | |
24728 | ||
24729 | echo "VER_1 { *; };" >conftest.sym | |
24730 | echo "int main() { return 0; }" >conftest.cpp | |
24731 | ||
24732 | if { ac_try=' | |
24733 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
24734 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
24735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24736 | (eval $ac_try) 2>&5 | |
24737 | ac_status=$? | |
24738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24739 | (exit $ac_status); }; } ; then | |
24740 | if test -s conftest.stderr ; then | |
24741 | wx_cv_version_script=no | |
24742 | else | |
24743 | wx_cv_version_script=yes | |
24744 | fi | |
24745 | else | |
24746 | wx_cv_version_script=no | |
24747 | fi | |
24748 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
24749 | ||
24750 | fi | |
24751 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
24752 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
24753 | if test $wx_cv_version_script = yes ; then | |
24754 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
24755 | fi | |
24756 | fi | |
24757 | ||
24758 | ||
24759 | case "${host}" in | |
24760 | *-*-linux* | *-*-gnu* ) | |
24761 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
24762 | ;; | |
24763 | ||
24764 | *-*-solaris2* ) | |
24765 | if test "$GCC" = yes ; then | |
24766 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
24767 | ||
24768 | saveLdflags="$LDFLAGS" | |
24769 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
24770 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
24771 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
24772 | cat >conftest.$ac_ext <<_ACEOF | |
24773 | #line $LINENO "configure" | |
24774 | /* confdefs.h. */ | |
24775 | _ACEOF | |
24776 | cat confdefs.h >>conftest.$ac_ext | |
24777 | cat >>conftest.$ac_ext <<_ACEOF | |
24778 | /* end confdefs.h. */ | |
24779 | ||
24780 | int | |
24781 | main () | |
24782 | { | |
24783 | ||
24784 | ; | |
24785 | return 0; | |
24786 | } | |
24787 | _ACEOF | |
24788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24790 | (eval $ac_link) 2>&5 | |
24791 | ac_status=$? | |
24792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24793 | (exit $ac_status); } && | |
24794 | { ac_try='test -s conftest$ac_exeext' | |
24795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24796 | (eval $ac_try) 2>&5 | |
24797 | ac_status=$? | |
24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24799 | (exit $ac_status); }; }; then | |
24800 | ||
24801 | echo "$as_me:$LINENO: result: yes" >&5 | |
24802 | echo "${ECHO_T}yes" >&6 | |
24803 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
24804 | ||
24805 | else | |
24806 | echo "$as_me: failed program was:" >&5 | |
24807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24808 | ||
24809 | ||
24810 | echo "$as_me:$LINENO: result: no" >&5 | |
24811 | echo "${ECHO_T}no" >&6 | |
24812 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
24813 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
24814 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
24815 | cat >conftest.$ac_ext <<_ACEOF | |
24816 | #line $LINENO "configure" | |
24817 | /* confdefs.h. */ | |
24818 | _ACEOF | |
24819 | cat confdefs.h >>conftest.$ac_ext | |
24820 | cat >>conftest.$ac_ext <<_ACEOF | |
24821 | /* end confdefs.h. */ | |
24822 | ||
24823 | int | |
24824 | main () | |
24825 | { | |
24826 | ||
24827 | ; | |
24828 | return 0; | |
24829 | } | |
24830 | _ACEOF | |
24831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24833 | (eval $ac_link) 2>&5 | |
24834 | ac_status=$? | |
24835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24836 | (exit $ac_status); } && | |
24837 | { ac_try='test -s conftest$ac_exeext' | |
24838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24839 | (eval $ac_try) 2>&5 | |
24840 | ac_status=$? | |
24841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24842 | (exit $ac_status); }; }; then | |
24843 | ||
24844 | echo "$as_me:$LINENO: result: yes" >&5 | |
24845 | echo "${ECHO_T}yes" >&6 | |
24846 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
24847 | else | |
24848 | echo "$as_me: failed program was:" >&5 | |
24849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24850 | ||
24851 | ||
24852 | echo "$as_me:$LINENO: result: no" >&5 | |
24853 | echo "${ECHO_T}no" >&6 | |
24854 | ||
24855 | fi | |
24856 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24857 | ||
24858 | fi | |
24859 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24860 | LDFLAGS="$saveLdflags" | |
24861 | else | |
24862 | SHARED_LD="${CXX} -G -o" | |
24863 | PIC_FLAG="-KPIC" | |
24864 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
24865 | fi | |
24866 | ;; | |
24867 | ||
24868 | *-*-cygwin* | *-*-mingw32* ) | |
24869 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
24870 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
24871 | ||
24872 | if test "$wxUSE_OPENGL" = "yes"; then | |
24873 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
24874 | fi | |
24875 | ;; | |
24876 | esac | |
24877 | ||
24878 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
24879 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
24880 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
24881 | fi | |
24882 | ||
24883 | WX_TARGET_LIBRARY_TYPE="so" | |
24884 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
24885 | fi | |
24886 | ||
24887 | if test "$wxUSE_SHARED" = "no"; then | |
24888 | ||
24889 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
24890 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
24891 | fi | |
24892 | ||
24893 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
24894 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
24895 | fi | |
24896 | ||
24897 | if test "$wxUSE_OPENGL" = "yes"; then | |
24898 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
24899 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
24900 | else | |
24901 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
24902 | fi | |
24903 | ||
24904 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
24905 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
24906 | ||
24907 | WX_TARGET_LIBRARY_TYPE="a" | |
24908 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
24909 | ||
24910 | STATIC_FLAG="yes" | |
24911 | else | |
24912 | STATIC_FLAG="no" | |
24913 | fi | |
24914 | ||
24915 | MACRESCOMP="@#" | |
24916 | MACSETFILE="@#" | |
24917 | MACRESWXCONFIG="#" | |
24918 | if test "$wxUSE_MAC" = 1; then | |
24919 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
24920 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
24921 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
24922 | # Extract the first word of "Rez", so it can be a program name with args. | |
24923 | set dummy Rez; ac_word=$2 | |
24924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24926 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
24927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24928 | else | |
24929 | if test -n "$RESCOMP"; then | |
24930 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
24931 | else | |
24932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24933 | for as_dir in $PATH | |
24934 | do | |
24935 | IFS=$as_save_IFS | |
24936 | test -z "$as_dir" && as_dir=. | |
24937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24939 | ac_cv_prog_RESCOMP="Rez" | |
24940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24941 | break 2 | |
24942 | fi | |
24943 | done | |
24944 | done | |
24945 | ||
24946 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
24947 | fi | |
24948 | fi | |
24949 | RESCOMP=$ac_cv_prog_RESCOMP | |
24950 | if test -n "$RESCOMP"; then | |
24951 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
24952 | echo "${ECHO_T}$RESCOMP" >&6 | |
24953 | else | |
24954 | echo "$as_me:$LINENO: result: no" >&5 | |
24955 | echo "${ECHO_T}no" >&6 | |
24956 | fi | |
24957 | ||
24958 | # Extract the first word of "DeRez", so it can be a program name with args. | |
24959 | set dummy DeRez; ac_word=$2 | |
24960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24962 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
24963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24964 | else | |
24965 | if test -n "$DEREZ"; then | |
24966 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
24967 | else | |
24968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24969 | for as_dir in $PATH | |
24970 | do | |
24971 | IFS=$as_save_IFS | |
24972 | test -z "$as_dir" && as_dir=. | |
24973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24974 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24975 | ac_cv_prog_DEREZ="DeRez" | |
24976 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24977 | break 2 | |
24978 | fi | |
24979 | done | |
24980 | done | |
24981 | ||
24982 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
24983 | fi | |
24984 | fi | |
24985 | DEREZ=$ac_cv_prog_DEREZ | |
24986 | if test -n "$DEREZ"; then | |
24987 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
24988 | echo "${ECHO_T}$DEREZ" >&6 | |
24989 | else | |
24990 | echo "$as_me:$LINENO: result: no" >&5 | |
24991 | echo "${ECHO_T}no" >&6 | |
24992 | fi | |
24993 | ||
24994 | # Extract the first word of "SetFile", so it can be a program name with args. | |
24995 | set dummy SetFile; ac_word=$2 | |
24996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24998 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
24999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25000 | else | |
25001 | if test -n "$SETFILE"; then | |
25002 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25003 | else | |
25004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25005 | for as_dir in $PATH | |
25006 | do | |
25007 | IFS=$as_save_IFS | |
25008 | test -z "$as_dir" && as_dir=. | |
25009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25011 | ac_cv_prog_SETFILE="SetFile" | |
25012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25013 | break 2 | |
25014 | fi | |
25015 | done | |
25016 | done | |
25017 | ||
25018 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
25019 | fi | |
25020 | fi | |
25021 | SETFILE=$ac_cv_prog_SETFILE | |
25022 | if test -n "$SETFILE"; then | |
25023 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
25024 | echo "${ECHO_T}$SETFILE" >&6 | |
25025 | else | |
25026 | echo "$as_me:$LINENO: result: no" >&5 | |
25027 | echo "${ECHO_T}no" >&6 | |
25028 | fi | |
25029 | ||
25030 | MACOSX_BUNDLE="bundle" | |
25031 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
25032 | MACSETFILE="\$(SETFILE)" | |
25033 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
25034 | elif test "$wxUSE_COCOA" = 1; then | |
25035 | # Extract the first word of "Rez", so it can be a program name with args. | |
25036 | set dummy Rez; ac_word=$2 | |
25037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25039 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25041 | else | |
25042 | if test -n "$RESCOMP"; then | |
25043 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25044 | else | |
25045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25046 | for as_dir in $PATH | |
25047 | do | |
25048 | IFS=$as_save_IFS | |
25049 | test -z "$as_dir" && as_dir=. | |
25050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25052 | ac_cv_prog_RESCOMP="Rez" | |
25053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25054 | break 2 | |
25055 | fi | |
25056 | done | |
25057 | done | |
25058 | ||
25059 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
25060 | fi | |
25061 | fi | |
25062 | RESCOMP=$ac_cv_prog_RESCOMP | |
25063 | if test -n "$RESCOMP"; then | |
25064 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
25065 | echo "${ECHO_T}$RESCOMP" >&6 | |
25066 | else | |
25067 | echo "$as_me:$LINENO: result: no" >&5 | |
25068 | echo "${ECHO_T}no" >&6 | |
25069 | fi | |
25070 | ||
25071 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25072 | set dummy DeRez; ac_word=$2 | |
25073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25075 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25077 | else | |
25078 | if test -n "$DEREZ"; then | |
25079 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25080 | else | |
25081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25082 | for as_dir in $PATH | |
25083 | do | |
25084 | IFS=$as_save_IFS | |
25085 | test -z "$as_dir" && as_dir=. | |
25086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25088 | ac_cv_prog_DEREZ="DeRez" | |
25089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25090 | break 2 | |
25091 | fi | |
25092 | done | |
25093 | done | |
25094 | ||
25095 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
25096 | fi | |
25097 | fi | |
25098 | DEREZ=$ac_cv_prog_DEREZ | |
25099 | if test -n "$DEREZ"; then | |
25100 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
25101 | echo "${ECHO_T}$DEREZ" >&6 | |
25102 | else | |
25103 | echo "$as_me:$LINENO: result: no" >&5 | |
25104 | echo "${ECHO_T}no" >&6 | |
25105 | fi | |
25106 | ||
25107 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25108 | set dummy SetFile; ac_word=$2 | |
25109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25111 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25113 | else | |
25114 | if test -n "$SETFILE"; then | |
25115 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25116 | else | |
25117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25118 | for as_dir in $PATH | |
25119 | do | |
25120 | IFS=$as_save_IFS | |
25121 | test -z "$as_dir" && as_dir=. | |
25122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25124 | ac_cv_prog_SETFILE="SetFile" | |
25125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25126 | break 2 | |
25127 | fi | |
25128 | done | |
25129 | done | |
25130 | ||
25131 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
25132 | fi | |
25133 | fi | |
25134 | SETFILE=$ac_cv_prog_SETFILE | |
25135 | if test -n "$SETFILE"; then | |
25136 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
25137 | echo "${ECHO_T}$SETFILE" >&6 | |
25138 | else | |
25139 | echo "$as_me:$LINENO: result: no" >&5 | |
25140 | echo "${ECHO_T}no" >&6 | |
25141 | fi | |
25142 | ||
25143 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25144 | MACSETFILE="\$(SETFILE)" | |
25145 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
25146 | else | |
25147 | if test "$wxUSE_PM" = 1; then | |
25148 | MACRESCOMP="emxbind -ep" | |
25149 | fi | |
25150 | fi | |
25151 | ||
25152 | ||
25153 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
25154 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25155 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25157 | else | |
25158 | cat >conftest.$ac_ext <<_ACEOF | |
25159 | #line $LINENO "configure" | |
25160 | /* confdefs.h. */ | |
25161 | _ACEOF | |
25162 | cat confdefs.h >>conftest.$ac_ext | |
25163 | cat >>conftest.$ac_ext <<_ACEOF | |
25164 | /* end confdefs.h. */ | |
25165 | $ac_includes_default | |
25166 | int | |
25167 | main () | |
25168 | { | |
25169 | if ((mode_t *) 0) | |
25170 | return 0; | |
25171 | if (sizeof (mode_t)) | |
25172 | return 0; | |
25173 | ; | |
25174 | return 0; | |
25175 | } | |
25176 | _ACEOF | |
25177 | rm -f conftest.$ac_objext | |
25178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25179 | (eval $ac_compile) 2>&5 | |
25180 | ac_status=$? | |
25181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25182 | (exit $ac_status); } && | |
25183 | { ac_try='test -s conftest.$ac_objext' | |
25184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25185 | (eval $ac_try) 2>&5 | |
25186 | ac_status=$? | |
25187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25188 | (exit $ac_status); }; }; then | |
25189 | ac_cv_type_mode_t=yes | |
25190 | else | |
25191 | echo "$as_me: failed program was:" >&5 | |
25192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25193 | ||
25194 | ac_cv_type_mode_t=no | |
25195 | fi | |
25196 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25197 | fi | |
25198 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
25199 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25200 | if test $ac_cv_type_mode_t = yes; then | |
25201 | : | |
25202 | else | |
25203 | ||
25204 | cat >>confdefs.h <<_ACEOF | |
25205 | #define mode_t int | |
25206 | _ACEOF | |
25207 | ||
25208 | fi | |
25209 | ||
25210 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
25211 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25212 | if test "${ac_cv_type_off_t+set}" = set; then | |
25213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25214 | else | |
25215 | cat >conftest.$ac_ext <<_ACEOF | |
25216 | #line $LINENO "configure" | |
25217 | /* confdefs.h. */ | |
25218 | _ACEOF | |
25219 | cat confdefs.h >>conftest.$ac_ext | |
25220 | cat >>conftest.$ac_ext <<_ACEOF | |
25221 | /* end confdefs.h. */ | |
25222 | $ac_includes_default | |
25223 | int | |
25224 | main () | |
25225 | { | |
25226 | if ((off_t *) 0) | |
25227 | return 0; | |
25228 | if (sizeof (off_t)) | |
25229 | return 0; | |
25230 | ; | |
25231 | return 0; | |
25232 | } | |
25233 | _ACEOF | |
25234 | rm -f conftest.$ac_objext | |
25235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25236 | (eval $ac_compile) 2>&5 | |
25237 | ac_status=$? | |
25238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25239 | (exit $ac_status); } && | |
25240 | { ac_try='test -s conftest.$ac_objext' | |
25241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25242 | (eval $ac_try) 2>&5 | |
25243 | ac_status=$? | |
25244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25245 | (exit $ac_status); }; }; then | |
25246 | ac_cv_type_off_t=yes | |
25247 | else | |
25248 | echo "$as_me: failed program was:" >&5 | |
25249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25250 | ||
25251 | ac_cv_type_off_t=no | |
25252 | fi | |
25253 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25254 | fi | |
25255 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
25256 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25257 | if test $ac_cv_type_off_t = yes; then | |
25258 | : | |
25259 | else | |
25260 | ||
25261 | cat >>confdefs.h <<_ACEOF | |
25262 | #define off_t long | |
25263 | _ACEOF | |
25264 | ||
25265 | fi | |
25266 | ||
25267 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
25268 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25269 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25271 | else | |
25272 | cat >conftest.$ac_ext <<_ACEOF | |
25273 | #line $LINENO "configure" | |
25274 | /* confdefs.h. */ | |
25275 | _ACEOF | |
25276 | cat confdefs.h >>conftest.$ac_ext | |
25277 | cat >>conftest.$ac_ext <<_ACEOF | |
25278 | /* end confdefs.h. */ | |
25279 | $ac_includes_default | |
25280 | int | |
25281 | main () | |
25282 | { | |
25283 | if ((pid_t *) 0) | |
25284 | return 0; | |
25285 | if (sizeof (pid_t)) | |
25286 | return 0; | |
25287 | ; | |
25288 | return 0; | |
25289 | } | |
25290 | _ACEOF | |
25291 | rm -f conftest.$ac_objext | |
25292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25293 | (eval $ac_compile) 2>&5 | |
25294 | ac_status=$? | |
25295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25296 | (exit $ac_status); } && | |
25297 | { ac_try='test -s conftest.$ac_objext' | |
25298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25299 | (eval $ac_try) 2>&5 | |
25300 | ac_status=$? | |
25301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25302 | (exit $ac_status); }; }; then | |
25303 | ac_cv_type_pid_t=yes | |
25304 | else | |
25305 | echo "$as_me: failed program was:" >&5 | |
25306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25307 | ||
25308 | ac_cv_type_pid_t=no | |
25309 | fi | |
25310 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25311 | fi | |
25312 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
25313 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25314 | if test $ac_cv_type_pid_t = yes; then | |
25315 | : | |
25316 | else | |
25317 | ||
25318 | cat >>confdefs.h <<_ACEOF | |
25319 | #define pid_t int | |
25320 | _ACEOF | |
25321 | ||
25322 | fi | |
25323 | ||
25324 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
25325 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25326 | if test "${ac_cv_type_size_t+set}" = set; then | |
25327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25328 | else | |
25329 | cat >conftest.$ac_ext <<_ACEOF | |
25330 | #line $LINENO "configure" | |
25331 | /* confdefs.h. */ | |
25332 | _ACEOF | |
25333 | cat confdefs.h >>conftest.$ac_ext | |
25334 | cat >>conftest.$ac_ext <<_ACEOF | |
25335 | /* end confdefs.h. */ | |
25336 | $ac_includes_default | |
25337 | int | |
25338 | main () | |
25339 | { | |
25340 | if ((size_t *) 0) | |
25341 | return 0; | |
25342 | if (sizeof (size_t)) | |
25343 | return 0; | |
25344 | ; | |
25345 | return 0; | |
25346 | } | |
25347 | _ACEOF | |
25348 | rm -f conftest.$ac_objext | |
25349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25350 | (eval $ac_compile) 2>&5 | |
25351 | ac_status=$? | |
25352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25353 | (exit $ac_status); } && | |
25354 | { ac_try='test -s conftest.$ac_objext' | |
25355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25356 | (eval $ac_try) 2>&5 | |
25357 | ac_status=$? | |
25358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25359 | (exit $ac_status); }; }; then | |
25360 | ac_cv_type_size_t=yes | |
25361 | else | |
25362 | echo "$as_me: failed program was:" >&5 | |
25363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25364 | ||
25365 | ac_cv_type_size_t=no | |
25366 | fi | |
25367 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25368 | fi | |
25369 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25370 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25371 | if test $ac_cv_type_size_t = yes; then | |
25372 | : | |
25373 | else | |
25374 | ||
25375 | cat >>confdefs.h <<_ACEOF | |
25376 | #define size_t unsigned | |
25377 | _ACEOF | |
25378 | ||
25379 | fi | |
25380 | ||
25381 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
25382 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25383 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25385 | else | |
25386 | cat >conftest.$ac_ext <<_ACEOF | |
25387 | #line $LINENO "configure" | |
25388 | /* confdefs.h. */ | |
25389 | _ACEOF | |
25390 | cat confdefs.h >>conftest.$ac_ext | |
25391 | cat >>conftest.$ac_ext <<_ACEOF | |
25392 | /* end confdefs.h. */ | |
25393 | #include <sys/types.h> | |
25394 | ||
25395 | _ACEOF | |
25396 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25397 | $EGREP "uid_t" >/dev/null 2>&1; then | |
25398 | ac_cv_type_uid_t=yes | |
25399 | else | |
25400 | ac_cv_type_uid_t=no | |
25401 | fi | |
25402 | rm -f conftest* | |
25403 | ||
25404 | fi | |
25405 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
25406 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
25407 | if test $ac_cv_type_uid_t = no; then | |
25408 | ||
25409 | cat >>confdefs.h <<\_ACEOF | |
25410 | #define uid_t int | |
25411 | _ACEOF | |
25412 | ||
25413 | ||
25414 | cat >>confdefs.h <<\_ACEOF | |
25415 | #define gid_t int | |
25416 | _ACEOF | |
25417 | ||
25418 | fi | |
25419 | ||
25420 | ||
25421 | ||
25422 | ||
25423 | ac_ext=cc | |
25424 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25425 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25426 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25427 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25428 | ||
25429 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25430 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25431 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25433 | else | |
25434 | ||
25435 | cat >conftest.$ac_ext <<_ACEOF | |
25436 | #line $LINENO "configure" | |
25437 | /* confdefs.h. */ | |
25438 | _ACEOF | |
25439 | cat confdefs.h >>conftest.$ac_ext | |
25440 | cat >>conftest.$ac_ext <<_ACEOF | |
25441 | /* end confdefs.h. */ | |
25442 | #include <stddef.h> | |
25443 | int | |
25444 | main () | |
25445 | { | |
25446 | ||
25447 | return 0; } | |
25448 | ||
25449 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25450 | ||
25451 | int bar() { | |
25452 | ||
25453 | ; | |
25454 | return 0; | |
25455 | } | |
25456 | _ACEOF | |
25457 | rm -f conftest.$ac_objext | |
25458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25459 | (eval $ac_compile) 2>&5 | |
25460 | ac_status=$? | |
25461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25462 | (exit $ac_status); } && | |
25463 | { ac_try='test -s conftest.$ac_objext' | |
25464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25465 | (eval $ac_try) 2>&5 | |
25466 | ac_status=$? | |
25467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25468 | (exit $ac_status); }; }; then | |
25469 | wx_cv_size_t_is_uint=no | |
25470 | else | |
25471 | echo "$as_me: failed program was:" >&5 | |
25472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25473 | ||
25474 | wx_cv_size_t_is_uint=yes | |
25475 | ||
25476 | fi | |
25477 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25478 | ||
25479 | ||
25480 | fi | |
25481 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25482 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
25483 | ||
25484 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
25485 | cat >>confdefs.h <<\_ACEOF | |
25486 | #define wxSIZE_T_IS_UINT 1 | |
25487 | _ACEOF | |
25488 | ||
25489 | else | |
25490 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
25491 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25492 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25494 | else | |
25495 | cat >conftest.$ac_ext <<_ACEOF | |
25496 | #line $LINENO "configure" | |
25497 | /* confdefs.h. */ | |
25498 | _ACEOF | |
25499 | cat confdefs.h >>conftest.$ac_ext | |
25500 | cat >>conftest.$ac_ext <<_ACEOF | |
25501 | /* end confdefs.h. */ | |
25502 | #include <stddef.h> | |
25503 | int | |
25504 | main () | |
25505 | { | |
25506 | ||
25507 | return 0; } | |
25508 | ||
25509 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25510 | ||
25511 | int bar() { | |
25512 | ||
25513 | ; | |
25514 | return 0; | |
25515 | } | |
25516 | _ACEOF | |
25517 | rm -f conftest.$ac_objext | |
25518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25519 | (eval $ac_compile) 2>&5 | |
25520 | ac_status=$? | |
25521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25522 | (exit $ac_status); } && | |
25523 | { ac_try='test -s conftest.$ac_objext' | |
25524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25525 | (eval $ac_try) 2>&5 | |
25526 | ac_status=$? | |
25527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25528 | (exit $ac_status); }; }; then | |
25529 | wx_cv_size_t_is_ulong=no | |
25530 | else | |
25531 | echo "$as_me: failed program was:" >&5 | |
25532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25533 | ||
25534 | wx_cv_size_t_is_ulong=yes | |
25535 | ||
25536 | fi | |
25537 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25538 | ||
25539 | fi | |
25540 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25541 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
25542 | ||
25543 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
25544 | cat >>confdefs.h <<\_ACEOF | |
25545 | #define wxSIZE_T_IS_ULONG 1 | |
25546 | _ACEOF | |
25547 | ||
25548 | fi | |
25549 | fi | |
25550 | ||
25551 | ac_ext=c | |
25552 | ac_cpp='$CPP $CPPFLAGS' | |
25553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25556 | ||
25557 | ||
25558 | ||
25559 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
25560 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
25561 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
25562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25563 | else | |
25564 | ||
25565 | cat >conftest.$ac_ext <<_ACEOF | |
25566 | #line $LINENO "configure" | |
25567 | /* confdefs.h. */ | |
25568 | _ACEOF | |
25569 | cat confdefs.h >>conftest.$ac_ext | |
25570 | cat >>conftest.$ac_ext <<_ACEOF | |
25571 | /* end confdefs.h. */ | |
25572 | #include <pwd.h> | |
25573 | int | |
25574 | main () | |
25575 | { | |
25576 | ||
25577 | char *p; | |
25578 | struct passwd *pw; | |
25579 | p = pw->pw_gecos; | |
25580 | ||
25581 | ; | |
25582 | return 0; | |
25583 | } | |
25584 | _ACEOF | |
25585 | rm -f conftest.$ac_objext | |
25586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25587 | (eval $ac_compile) 2>&5 | |
25588 | ac_status=$? | |
25589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25590 | (exit $ac_status); } && | |
25591 | { ac_try='test -s conftest.$ac_objext' | |
25592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25593 | (eval $ac_try) 2>&5 | |
25594 | ac_status=$? | |
25595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25596 | (exit $ac_status); }; }; then | |
25597 | ||
25598 | wx_cv_struct_pw_gecos=yes | |
25599 | ||
25600 | else | |
25601 | echo "$as_me: failed program was:" >&5 | |
25602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25603 | ||
25604 | ||
25605 | wx_cv_struct_pw_gecos=no | |
25606 | ||
25607 | ||
25608 | fi | |
25609 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25610 | ||
25611 | ||
25612 | fi | |
25613 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
25614 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
25615 | ||
25616 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
25617 | cat >>confdefs.h <<\_ACEOF | |
25618 | #define HAVE_PW_GECOS 1 | |
25619 | _ACEOF | |
25620 | ||
25621 | fi | |
25622 | ||
25623 | ||
25624 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
25625 | cat >>confdefs.h <<\_ACEOF | |
25626 | #define wxUSE_WCHAR_T 1 | |
25627 | _ACEOF | |
25628 | ||
25629 | ||
25630 | WCSLEN_FOUND=0 | |
25631 | WCHAR_LINK= | |
25632 | ||
25633 | for ac_func in wcslen | |
25634 | do | |
25635 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25636 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25637 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25638 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25640 | else | |
25641 | cat >conftest.$ac_ext <<_ACEOF | |
25642 | #line $LINENO "configure" | |
25643 | /* confdefs.h. */ | |
25644 | _ACEOF | |
25645 | cat confdefs.h >>conftest.$ac_ext | |
25646 | cat >>conftest.$ac_ext <<_ACEOF | |
25647 | /* end confdefs.h. */ | |
25648 | /* System header to define __stub macros and hopefully few prototypes, | |
25649 | which can conflict with char $ac_func (); below. | |
25650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25651 | <limits.h> exists even on freestanding compilers. */ | |
25652 | #ifdef __STDC__ | |
25653 | # include <limits.h> | |
25654 | #else | |
25655 | # include <assert.h> | |
25656 | #endif | |
25657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25658 | #ifdef __cplusplus | |
25659 | extern "C" | |
25660 | { | |
25661 | #endif | |
25662 | /* We use char because int might match the return type of a gcc2 | |
25663 | builtin and then its argument prototype would still apply. */ | |
25664 | char $ac_func (); | |
25665 | /* The GNU C library defines this for functions which it implements | |
25666 | to always fail with ENOSYS. Some functions are actually named | |
25667 | something starting with __ and the normal name is an alias. */ | |
25668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25669 | choke me | |
25670 | #else | |
25671 | char (*f) () = $ac_func; | |
25672 | #endif | |
25673 | #ifdef __cplusplus | |
25674 | } | |
25675 | #endif | |
25676 | ||
25677 | int | |
25678 | main () | |
25679 | { | |
25680 | return f != $ac_func; | |
25681 | ; | |
25682 | return 0; | |
25683 | } | |
25684 | _ACEOF | |
25685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25687 | (eval $ac_link) 2>&5 | |
25688 | ac_status=$? | |
25689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25690 | (exit $ac_status); } && | |
25691 | { ac_try='test -s conftest$ac_exeext' | |
25692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25693 | (eval $ac_try) 2>&5 | |
25694 | ac_status=$? | |
25695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25696 | (exit $ac_status); }; }; then | |
25697 | eval "$as_ac_var=yes" | |
25698 | else | |
25699 | echo "$as_me: failed program was:" >&5 | |
25700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25701 | ||
25702 | eval "$as_ac_var=no" | |
25703 | fi | |
25704 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25705 | fi | |
25706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25707 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25708 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25709 | cat >>confdefs.h <<_ACEOF | |
25710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25711 | _ACEOF | |
25712 | WCSLEN_FOUND=1 | |
25713 | fi | |
25714 | done | |
25715 | ||
25716 | ||
25717 | if test "$WCSLEN_FOUND" = 0; then | |
25718 | if test "$TOOLKIT" = "MSW"; then | |
25719 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
25720 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
25721 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
25722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25723 | else | |
25724 | ac_check_lib_save_LIBS=$LIBS | |
25725 | LIBS="-lmsvcrt $LIBS" | |
25726 | cat >conftest.$ac_ext <<_ACEOF | |
25727 | #line $LINENO "configure" | |
25728 | /* confdefs.h. */ | |
25729 | _ACEOF | |
25730 | cat confdefs.h >>conftest.$ac_ext | |
25731 | cat >>conftest.$ac_ext <<_ACEOF | |
25732 | /* end confdefs.h. */ | |
25733 | ||
25734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25735 | #ifdef __cplusplus | |
25736 | extern "C" | |
25737 | #endif | |
25738 | /* We use char because int might match the return type of a gcc2 | |
25739 | builtin and then its argument prototype would still apply. */ | |
25740 | char wcslen (); | |
25741 | int | |
25742 | main () | |
25743 | { | |
25744 | wcslen (); | |
25745 | ; | |
25746 | return 0; | |
25747 | } | |
25748 | _ACEOF | |
25749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25751 | (eval $ac_link) 2>&5 | |
25752 | ac_status=$? | |
25753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25754 | (exit $ac_status); } && | |
25755 | { ac_try='test -s conftest$ac_exeext' | |
25756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25757 | (eval $ac_try) 2>&5 | |
25758 | ac_status=$? | |
25759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25760 | (exit $ac_status); }; }; then | |
25761 | ac_cv_lib_msvcrt_wcslen=yes | |
25762 | else | |
25763 | echo "$as_me: failed program was:" >&5 | |
25764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25765 | ||
25766 | ac_cv_lib_msvcrt_wcslen=no | |
25767 | fi | |
25768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25769 | LIBS=$ac_check_lib_save_LIBS | |
25770 | fi | |
25771 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
25772 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
25773 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
25774 | WCHAR_OK=1 | |
25775 | fi | |
25776 | ||
25777 | else | |
25778 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
25779 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
25780 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
25781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25782 | else | |
25783 | ac_check_lib_save_LIBS=$LIBS | |
25784 | LIBS="-lw $LIBS" | |
25785 | cat >conftest.$ac_ext <<_ACEOF | |
25786 | #line $LINENO "configure" | |
25787 | /* confdefs.h. */ | |
25788 | _ACEOF | |
25789 | cat confdefs.h >>conftest.$ac_ext | |
25790 | cat >>conftest.$ac_ext <<_ACEOF | |
25791 | /* end confdefs.h. */ | |
25792 | ||
25793 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25794 | #ifdef __cplusplus | |
25795 | extern "C" | |
25796 | #endif | |
25797 | /* We use char because int might match the return type of a gcc2 | |
25798 | builtin and then its argument prototype would still apply. */ | |
25799 | char wcslen (); | |
25800 | int | |
25801 | main () | |
25802 | { | |
25803 | wcslen (); | |
25804 | ; | |
25805 | return 0; | |
25806 | } | |
25807 | _ACEOF | |
25808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25810 | (eval $ac_link) 2>&5 | |
25811 | ac_status=$? | |
25812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25813 | (exit $ac_status); } && | |
25814 | { ac_try='test -s conftest$ac_exeext' | |
25815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25816 | (eval $ac_try) 2>&5 | |
25817 | ac_status=$? | |
25818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25819 | (exit $ac_status); }; }; then | |
25820 | ac_cv_lib_w_wcslen=yes | |
25821 | else | |
25822 | echo "$as_me: failed program was:" >&5 | |
25823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25824 | ||
25825 | ac_cv_lib_w_wcslen=no | |
25826 | fi | |
25827 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25828 | LIBS=$ac_check_lib_save_LIBS | |
25829 | fi | |
25830 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
25831 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
25832 | if test $ac_cv_lib_w_wcslen = yes; then | |
25833 | ||
25834 | WCHAR_LINK=" -lw" | |
25835 | WCSLEN_FOUND=1 | |
25836 | ||
25837 | fi | |
25838 | ||
25839 | fi | |
25840 | fi | |
25841 | ||
25842 | if test "$WCSLEN_FOUND" = 1; then | |
25843 | cat >>confdefs.h <<\_ACEOF | |
25844 | #define HAVE_WCSLEN 1 | |
25845 | _ACEOF | |
25846 | ||
25847 | fi | |
25848 | ||
25849 | ||
25850 | for ac_func in wcsrtombs | |
25851 | do | |
25852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25853 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25855 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25857 | else | |
25858 | cat >conftest.$ac_ext <<_ACEOF | |
25859 | #line $LINENO "configure" | |
25860 | /* confdefs.h. */ | |
25861 | _ACEOF | |
25862 | cat confdefs.h >>conftest.$ac_ext | |
25863 | cat >>conftest.$ac_ext <<_ACEOF | |
25864 | /* end confdefs.h. */ | |
25865 | /* System header to define __stub macros and hopefully few prototypes, | |
25866 | which can conflict with char $ac_func (); below. | |
25867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25868 | <limits.h> exists even on freestanding compilers. */ | |
25869 | #ifdef __STDC__ | |
25870 | # include <limits.h> | |
25871 | #else | |
25872 | # include <assert.h> | |
25873 | #endif | |
25874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25875 | #ifdef __cplusplus | |
25876 | extern "C" | |
25877 | { | |
25878 | #endif | |
25879 | /* We use char because int might match the return type of a gcc2 | |
25880 | builtin and then its argument prototype would still apply. */ | |
25881 | char $ac_func (); | |
25882 | /* The GNU C library defines this for functions which it implements | |
25883 | to always fail with ENOSYS. Some functions are actually named | |
25884 | something starting with __ and the normal name is an alias. */ | |
25885 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25886 | choke me | |
25887 | #else | |
25888 | char (*f) () = $ac_func; | |
25889 | #endif | |
25890 | #ifdef __cplusplus | |
25891 | } | |
25892 | #endif | |
25893 | ||
25894 | int | |
25895 | main () | |
25896 | { | |
25897 | return f != $ac_func; | |
25898 | ; | |
25899 | return 0; | |
25900 | } | |
25901 | _ACEOF | |
25902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25904 | (eval $ac_link) 2>&5 | |
25905 | ac_status=$? | |
25906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25907 | (exit $ac_status); } && | |
25908 | { ac_try='test -s conftest$ac_exeext' | |
25909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25910 | (eval $ac_try) 2>&5 | |
25911 | ac_status=$? | |
25912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25913 | (exit $ac_status); }; }; then | |
25914 | eval "$as_ac_var=yes" | |
25915 | else | |
25916 | echo "$as_me: failed program was:" >&5 | |
25917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25918 | ||
25919 | eval "$as_ac_var=no" | |
25920 | fi | |
25921 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25922 | fi | |
25923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25924 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25925 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25926 | cat >>confdefs.h <<_ACEOF | |
25927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25928 | _ACEOF | |
25929 | ||
25930 | fi | |
25931 | done | |
25932 | ||
25933 | else | |
25934 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
25935 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
25936 | fi | |
25937 | ||
25938 | ||
25939 | ||
25940 | ac_ext=cc | |
25941 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25942 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25943 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25944 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25945 | ||
25946 | ||
25947 | ||
25948 | for ac_func in vsnprintf | |
25949 | do | |
25950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25951 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25953 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25955 | else | |
25956 | cat >conftest.$ac_ext <<_ACEOF | |
25957 | #line $LINENO "configure" | |
25958 | /* confdefs.h. */ | |
25959 | _ACEOF | |
25960 | cat confdefs.h >>conftest.$ac_ext | |
25961 | cat >>conftest.$ac_ext <<_ACEOF | |
25962 | /* end confdefs.h. */ | |
25963 | /* System header to define __stub macros and hopefully few prototypes, | |
25964 | which can conflict with char $ac_func (); below. | |
25965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25966 | <limits.h> exists even on freestanding compilers. */ | |
25967 | #ifdef __STDC__ | |
25968 | # include <limits.h> | |
25969 | #else | |
25970 | # include <assert.h> | |
25971 | #endif | |
25972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25973 | #ifdef __cplusplus | |
25974 | extern "C" | |
25975 | { | |
25976 | #endif | |
25977 | /* We use char because int might match the return type of a gcc2 | |
25978 | builtin and then its argument prototype would still apply. */ | |
25979 | char $ac_func (); | |
25980 | /* The GNU C library defines this for functions which it implements | |
25981 | to always fail with ENOSYS. Some functions are actually named | |
25982 | something starting with __ and the normal name is an alias. */ | |
25983 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25984 | choke me | |
25985 | #else | |
25986 | char (*f) () = $ac_func; | |
25987 | #endif | |
25988 | #ifdef __cplusplus | |
25989 | } | |
25990 | #endif | |
25991 | ||
25992 | int | |
25993 | main () | |
25994 | { | |
25995 | return f != $ac_func; | |
25996 | ; | |
25997 | return 0; | |
25998 | } | |
25999 | _ACEOF | |
26000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26002 | (eval $ac_link) 2>&5 | |
26003 | ac_status=$? | |
26004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26005 | (exit $ac_status); } && | |
26006 | { ac_try='test -s conftest$ac_exeext' | |
26007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26008 | (eval $ac_try) 2>&5 | |
26009 | ac_status=$? | |
26010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26011 | (exit $ac_status); }; }; then | |
26012 | eval "$as_ac_var=yes" | |
26013 | else | |
26014 | echo "$as_me: failed program was:" >&5 | |
26015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26016 | ||
26017 | eval "$as_ac_var=no" | |
26018 | fi | |
26019 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26020 | fi | |
26021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26023 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26024 | cat >>confdefs.h <<_ACEOF | |
26025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26026 | _ACEOF | |
26027 | ||
26028 | fi | |
26029 | done | |
26030 | ||
26031 | ||
26032 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
26033 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
26034 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26035 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26037 | else | |
26038 | ||
26039 | cat >conftest.$ac_ext <<_ACEOF | |
26040 | #line $LINENO "configure" | |
26041 | /* confdefs.h. */ | |
26042 | _ACEOF | |
26043 | cat confdefs.h >>conftest.$ac_ext | |
26044 | cat >>conftest.$ac_ext <<_ACEOF | |
26045 | /* end confdefs.h. */ | |
26046 | ||
26047 | #include <stdio.h> | |
26048 | #include <stdarg.h> | |
26049 | ||
26050 | int | |
26051 | main () | |
26052 | { | |
26053 | ||
26054 | char *buf; | |
26055 | va_list ap; | |
26056 | vsnprintf(buf, 10u, "%s", ap); | |
26057 | ||
26058 | ; | |
26059 | return 0; | |
26060 | } | |
26061 | _ACEOF | |
26062 | rm -f conftest.$ac_objext | |
26063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26064 | (eval $ac_compile) 2>&5 | |
26065 | ac_status=$? | |
26066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26067 | (exit $ac_status); } && | |
26068 | { ac_try='test -s conftest.$ac_objext' | |
26069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26070 | (eval $ac_try) 2>&5 | |
26071 | ac_status=$? | |
26072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26073 | (exit $ac_status); }; }; then | |
26074 | wx_cv_func_vsnprintf_decl=yes | |
26075 | else | |
26076 | echo "$as_me: failed program was:" >&5 | |
26077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26078 | ||
26079 | wx_cv_func_vsnprintf_decl=no | |
26080 | ||
26081 | fi | |
26082 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26083 | ||
26084 | ||
26085 | fi | |
26086 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26087 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
26088 | ||
26089 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
26090 | cat >>confdefs.h <<\_ACEOF | |
26091 | #define HAVE_VSNPRINTF_DECL 1 | |
26092 | _ACEOF | |
26093 | ||
26094 | fi | |
26095 | fi | |
26096 | ||
26097 | if test "$wxUSE_UNICODE" = yes; then | |
26098 | ||
26099 | ||
26100 | ||
26101 | for ac_func in fputwc wprintf vswprintf | |
26102 | do | |
26103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26104 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26106 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26108 | else | |
26109 | cat >conftest.$ac_ext <<_ACEOF | |
26110 | #line $LINENO "configure" | |
26111 | /* confdefs.h. */ | |
26112 | _ACEOF | |
26113 | cat confdefs.h >>conftest.$ac_ext | |
26114 | cat >>conftest.$ac_ext <<_ACEOF | |
26115 | /* end confdefs.h. */ | |
26116 | /* System header to define __stub macros and hopefully few prototypes, | |
26117 | which can conflict with char $ac_func (); below. | |
26118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26119 | <limits.h> exists even on freestanding compilers. */ | |
26120 | #ifdef __STDC__ | |
26121 | # include <limits.h> | |
26122 | #else | |
26123 | # include <assert.h> | |
26124 | #endif | |
26125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26126 | #ifdef __cplusplus | |
26127 | extern "C" | |
26128 | { | |
26129 | #endif | |
26130 | /* We use char because int might match the return type of a gcc2 | |
26131 | builtin and then its argument prototype would still apply. */ | |
26132 | char $ac_func (); | |
26133 | /* The GNU C library defines this for functions which it implements | |
26134 | to always fail with ENOSYS. Some functions are actually named | |
26135 | something starting with __ and the normal name is an alias. */ | |
26136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26137 | choke me | |
26138 | #else | |
26139 | char (*f) () = $ac_func; | |
26140 | #endif | |
26141 | #ifdef __cplusplus | |
26142 | } | |
26143 | #endif | |
26144 | ||
26145 | int | |
26146 | main () | |
26147 | { | |
26148 | return f != $ac_func; | |
26149 | ; | |
26150 | return 0; | |
26151 | } | |
26152 | _ACEOF | |
26153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26155 | (eval $ac_link) 2>&5 | |
26156 | ac_status=$? | |
26157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26158 | (exit $ac_status); } && | |
26159 | { ac_try='test -s conftest$ac_exeext' | |
26160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26161 | (eval $ac_try) 2>&5 | |
26162 | ac_status=$? | |
26163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26164 | (exit $ac_status); }; }; then | |
26165 | eval "$as_ac_var=yes" | |
26166 | else | |
26167 | echo "$as_me: failed program was:" >&5 | |
26168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26169 | ||
26170 | eval "$as_ac_var=no" | |
26171 | fi | |
26172 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26173 | fi | |
26174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26175 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26176 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26177 | cat >>confdefs.h <<_ACEOF | |
26178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26179 | _ACEOF | |
26180 | ||
26181 | fi | |
26182 | done | |
26183 | ||
26184 | ||
26185 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
26186 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26187 | cat >conftest.$ac_ext <<_ACEOF | |
26188 | #line $LINENO "configure" | |
26189 | /* confdefs.h. */ | |
26190 | _ACEOF | |
26191 | cat confdefs.h >>conftest.$ac_ext | |
26192 | cat >>conftest.$ac_ext <<_ACEOF | |
26193 | /* end confdefs.h. */ | |
26194 | #include <wchar.h> | |
26195 | int | |
26196 | main () | |
26197 | { | |
26198 | &_vsnwprintf; | |
26199 | ; | |
26200 | return 0; | |
26201 | } | |
26202 | _ACEOF | |
26203 | rm -f conftest.$ac_objext | |
26204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26205 | (eval $ac_compile) 2>&5 | |
26206 | ac_status=$? | |
26207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26208 | (exit $ac_status); } && | |
26209 | { ac_try='test -s conftest.$ac_objext' | |
26210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26211 | (eval $ac_try) 2>&5 | |
26212 | ac_status=$? | |
26213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26214 | (exit $ac_status); }; }; then | |
26215 | echo "$as_me:$LINENO: result: yes" >&5 | |
26216 | echo "${ECHO_T}yes" >&6 | |
26217 | cat >>confdefs.h <<\_ACEOF | |
26218 | #define HAVE__VSNWPRINTF 1 | |
26219 | _ACEOF | |
26220 | ||
26221 | else | |
26222 | echo "$as_me: failed program was:" >&5 | |
26223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26224 | ||
26225 | echo "$as_me:$LINENO: result: no" >&5 | |
26226 | echo "${ECHO_T}no" >&6 | |
26227 | fi | |
26228 | rm -f conftest.$ac_objext conftest.$ac_ext; | |
26229 | fi | |
26230 | ||
26231 | ac_ext=c | |
26232 | ac_cpp='$CPP $CPPFLAGS' | |
26233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26236 | ||
26237 | ||
26238 | ||
26239 | ||
26240 | if test "$TOOLKIT" != "MSW"; then | |
26241 | ||
26242 | ||
26243 | ||
26244 | ||
26245 | ac_ext=cc | |
26246 | ac_cpp='$CXXCPP $CPPFLAGS' | |
26247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26250 | ||
26251 | ||
26252 | ||
26253 | ||
26254 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
26255 | if test "${with_libiconv_prefix+set}" = set; then | |
26256 | withval="$with_libiconv_prefix" | |
26257 | ||
26258 | for dir in `echo "$withval" | tr : ' '`; do | |
26259 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26260 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26261 | done | |
26262 | ||
26263 | fi; | |
26264 | ||
26265 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
26266 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26267 | if test "${am_cv_func_iconv+set}" = set; then | |
26268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26269 | else | |
26270 | ||
26271 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
26272 | am_cv_lib_iconv=no | |
26273 | cat >conftest.$ac_ext <<_ACEOF | |
26274 | #line $LINENO "configure" | |
26275 | /* confdefs.h. */ | |
26276 | _ACEOF | |
26277 | cat confdefs.h >>conftest.$ac_ext | |
26278 | cat >>conftest.$ac_ext <<_ACEOF | |
26279 | /* end confdefs.h. */ | |
26280 | #include <stdlib.h> | |
26281 | #include <iconv.h> | |
26282 | int | |
26283 | main () | |
26284 | { | |
26285 | iconv_t cd = iconv_open("",""); | |
26286 | iconv(cd,NULL,NULL,NULL,NULL); | |
26287 | iconv_close(cd); | |
26288 | ; | |
26289 | return 0; | |
26290 | } | |
26291 | _ACEOF | |
26292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26294 | (eval $ac_link) 2>&5 | |
26295 | ac_status=$? | |
26296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26297 | (exit $ac_status); } && | |
26298 | { ac_try='test -s conftest$ac_exeext' | |
26299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26300 | (eval $ac_try) 2>&5 | |
26301 | ac_status=$? | |
26302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26303 | (exit $ac_status); }; }; then | |
26304 | am_cv_func_iconv=yes | |
26305 | else | |
26306 | echo "$as_me: failed program was:" >&5 | |
26307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26308 | ||
26309 | fi | |
26310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26311 | if test "$am_cv_func_iconv" != yes; then | |
26312 | am_save_LIBS="$LIBS" | |
26313 | LIBS="$LIBS -liconv" | |
26314 | cat >conftest.$ac_ext <<_ACEOF | |
26315 | #line $LINENO "configure" | |
26316 | /* confdefs.h. */ | |
26317 | _ACEOF | |
26318 | cat confdefs.h >>conftest.$ac_ext | |
26319 | cat >>conftest.$ac_ext <<_ACEOF | |
26320 | /* end confdefs.h. */ | |
26321 | #include <stdlib.h> | |
26322 | #include <iconv.h> | |
26323 | int | |
26324 | main () | |
26325 | { | |
26326 | iconv_t cd = iconv_open("",""); | |
26327 | iconv(cd,NULL,NULL,NULL,NULL); | |
26328 | iconv_close(cd); | |
26329 | ; | |
26330 | return 0; | |
26331 | } | |
26332 | _ACEOF | |
26333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26335 | (eval $ac_link) 2>&5 | |
26336 | ac_status=$? | |
26337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26338 | (exit $ac_status); } && | |
26339 | { ac_try='test -s conftest$ac_exeext' | |
26340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26341 | (eval $ac_try) 2>&5 | |
26342 | ac_status=$? | |
26343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26344 | (exit $ac_status); }; }; then | |
26345 | am_cv_lib_iconv=yes | |
26346 | am_cv_func_iconv=yes | |
26347 | else | |
26348 | echo "$as_me: failed program was:" >&5 | |
26349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26350 | ||
26351 | fi | |
26352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26353 | LIBS="$am_save_LIBS" | |
26354 | fi | |
26355 | ||
26356 | fi | |
26357 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26358 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
26359 | if test "$am_cv_func_iconv" = yes; then | |
26360 | ||
26361 | cat >>confdefs.h <<\_ACEOF | |
26362 | #define HAVE_ICONV 1 | |
26363 | _ACEOF | |
26364 | ||
26365 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
26366 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26367 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26369 | else | |
26370 | cat >conftest.$ac_ext <<_ACEOF | |
26371 | #line $LINENO "configure" | |
26372 | /* confdefs.h. */ | |
26373 | _ACEOF | |
26374 | cat confdefs.h >>conftest.$ac_ext | |
26375 | cat >>conftest.$ac_ext <<_ACEOF | |
26376 | /* end confdefs.h. */ | |
26377 | ||
26378 | #include <stdlib.h> | |
26379 | #include <iconv.h> | |
26380 | extern | |
26381 | #ifdef __cplusplus | |
26382 | "C" | |
26383 | #endif | |
26384 | #if defined(__STDC__) || defined(__cplusplus) | |
26385 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26386 | #else | |
26387 | size_t iconv(); | |
26388 | #endif | |
26389 | ||
26390 | int | |
26391 | main () | |
26392 | { | |
26393 | ||
26394 | ; | |
26395 | return 0; | |
26396 | } | |
26397 | _ACEOF | |
26398 | rm -f conftest.$ac_objext | |
26399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26400 | (eval $ac_compile) 2>&5 | |
26401 | ac_status=$? | |
26402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26403 | (exit $ac_status); } && | |
26404 | { ac_try='test -s conftest.$ac_objext' | |
26405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26406 | (eval $ac_try) 2>&5 | |
26407 | ac_status=$? | |
26408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26409 | (exit $ac_status); }; }; then | |
26410 | wx_cv_func_iconv_const="no" | |
26411 | else | |
26412 | echo "$as_me: failed program was:" >&5 | |
26413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26414 | ||
26415 | wx_cv_func_iconv_const="yes" | |
26416 | ||
26417 | fi | |
26418 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26419 | ||
26420 | fi | |
26421 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26422 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
26423 | ||
26424 | iconv_const= | |
26425 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
26426 | iconv_const="const" | |
26427 | fi | |
26428 | ||
26429 | ||
26430 | cat >>confdefs.h <<_ACEOF | |
26431 | #define ICONV_CONST $iconv_const | |
26432 | _ACEOF | |
26433 | ||
26434 | fi | |
26435 | LIBICONV= | |
26436 | if test "$am_cv_lib_iconv" = yes; then | |
26437 | LIBICONV="-liconv" | |
26438 | fi | |
26439 | ||
26440 | ||
26441 | LIBS="$LIBICONV $LIBS" | |
26442 | ac_ext=c | |
26443 | ac_cpp='$CPP $CPPFLAGS' | |
26444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26447 | ||
26448 | ||
26449 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
26450 | ||
26451 | for ac_func in sigaction | |
26452 | do | |
26453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26454 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26456 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26458 | else | |
26459 | cat >conftest.$ac_ext <<_ACEOF | |
26460 | #line $LINENO "configure" | |
26461 | /* confdefs.h. */ | |
26462 | _ACEOF | |
26463 | cat confdefs.h >>conftest.$ac_ext | |
26464 | cat >>conftest.$ac_ext <<_ACEOF | |
26465 | /* end confdefs.h. */ | |
26466 | /* System header to define __stub macros and hopefully few prototypes, | |
26467 | which can conflict with char $ac_func (); below. | |
26468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26469 | <limits.h> exists even on freestanding compilers. */ | |
26470 | #ifdef __STDC__ | |
26471 | # include <limits.h> | |
26472 | #else | |
26473 | # include <assert.h> | |
26474 | #endif | |
26475 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26476 | #ifdef __cplusplus | |
26477 | extern "C" | |
26478 | { | |
26479 | #endif | |
26480 | /* We use char because int might match the return type of a gcc2 | |
26481 | builtin and then its argument prototype would still apply. */ | |
26482 | char $ac_func (); | |
26483 | /* The GNU C library defines this for functions which it implements | |
26484 | to always fail with ENOSYS. Some functions are actually named | |
26485 | something starting with __ and the normal name is an alias. */ | |
26486 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26487 | choke me | |
26488 | #else | |
26489 | char (*f) () = $ac_func; | |
26490 | #endif | |
26491 | #ifdef __cplusplus | |
26492 | } | |
26493 | #endif | |
26494 | ||
26495 | int | |
26496 | main () | |
26497 | { | |
26498 | return f != $ac_func; | |
26499 | ; | |
26500 | return 0; | |
26501 | } | |
26502 | _ACEOF | |
26503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26505 | (eval $ac_link) 2>&5 | |
26506 | ac_status=$? | |
26507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26508 | (exit $ac_status); } && | |
26509 | { ac_try='test -s conftest$ac_exeext' | |
26510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26511 | (eval $ac_try) 2>&5 | |
26512 | ac_status=$? | |
26513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26514 | (exit $ac_status); }; }; then | |
26515 | eval "$as_ac_var=yes" | |
26516 | else | |
26517 | echo "$as_me: failed program was:" >&5 | |
26518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26519 | ||
26520 | eval "$as_ac_var=no" | |
26521 | fi | |
26522 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26523 | fi | |
26524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26525 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26526 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26527 | cat >>confdefs.h <<_ACEOF | |
26528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26529 | _ACEOF | |
26530 | ||
26531 | fi | |
26532 | done | |
26533 | ||
26534 | ||
26535 | if test "$ac_cv_func_sigaction" = "no"; then | |
26536 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
26537 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
26538 | wxUSE_ON_FATAL_EXCEPTION=no | |
26539 | fi | |
26540 | ||
26541 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
26542 | ||
26543 | ||
26544 | ac_ext=cc | |
26545 | ac_cpp='$CXXCPP $CPPFLAGS' | |
26546 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26547 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26548 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26549 | ||
26550 | ||
26551 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
26552 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
26553 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
26554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26555 | else | |
26556 | ||
26557 | cat >conftest.$ac_ext <<_ACEOF | |
26558 | #line $LINENO "configure" | |
26559 | /* confdefs.h. */ | |
26560 | _ACEOF | |
26561 | cat confdefs.h >>conftest.$ac_ext | |
26562 | cat >>conftest.$ac_ext <<_ACEOF | |
26563 | /* end confdefs.h. */ | |
26564 | #include <signal.h> | |
26565 | int | |
26566 | main () | |
26567 | { | |
26568 | ||
26569 | extern void testSigHandler(int); | |
26570 | ||
26571 | struct sigaction sa; | |
26572 | sa.sa_handler = testSigHandler; | |
26573 | ||
26574 | ; | |
26575 | return 0; | |
26576 | } | |
26577 | _ACEOF | |
26578 | rm -f conftest.$ac_objext | |
26579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26580 | (eval $ac_compile) 2>&5 | |
26581 | ac_status=$? | |
26582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26583 | (exit $ac_status); } && | |
26584 | { ac_try='test -s conftest.$ac_objext' | |
26585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26586 | (eval $ac_try) 2>&5 | |
26587 | ac_status=$? | |
26588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26589 | (exit $ac_status); }; }; then | |
26590 | ||
26591 | wx_cv_type_sa_handler=int | |
26592 | ||
26593 | else | |
26594 | echo "$as_me: failed program was:" >&5 | |
26595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26596 | ||
26597 | ||
26598 | wx_cv_type_sa_handler=void | |
26599 | ||
26600 | fi | |
26601 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26602 | ||
26603 | fi | |
26604 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
26605 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
26606 | ||
26607 | ac_ext=c | |
26608 | ac_cpp='$CPP $CPPFLAGS' | |
26609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26612 | ||
26613 | ||
26614 | cat >>confdefs.h <<_ACEOF | |
26615 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
26616 | _ACEOF | |
26617 | ||
26618 | fi | |
26619 | fi | |
26620 | ||
26621 | ||
26622 | ||
26623 | for ac_func in mkstemp mktemp | |
26624 | do | |
26625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26626 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26628 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26630 | else | |
26631 | cat >conftest.$ac_ext <<_ACEOF | |
26632 | #line $LINENO "configure" | |
26633 | /* confdefs.h. */ | |
26634 | _ACEOF | |
26635 | cat confdefs.h >>conftest.$ac_ext | |
26636 | cat >>conftest.$ac_ext <<_ACEOF | |
26637 | /* end confdefs.h. */ | |
26638 | /* System header to define __stub macros and hopefully few prototypes, | |
26639 | which can conflict with char $ac_func (); below. | |
26640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26641 | <limits.h> exists even on freestanding compilers. */ | |
26642 | #ifdef __STDC__ | |
26643 | # include <limits.h> | |
26644 | #else | |
26645 | # include <assert.h> | |
26646 | #endif | |
26647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26648 | #ifdef __cplusplus | |
26649 | extern "C" | |
26650 | { | |
26651 | #endif | |
26652 | /* We use char because int might match the return type of a gcc2 | |
26653 | builtin and then its argument prototype would still apply. */ | |
26654 | char $ac_func (); | |
26655 | /* The GNU C library defines this for functions which it implements | |
26656 | to always fail with ENOSYS. Some functions are actually named | |
26657 | something starting with __ and the normal name is an alias. */ | |
26658 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26659 | choke me | |
26660 | #else | |
26661 | char (*f) () = $ac_func; | |
26662 | #endif | |
26663 | #ifdef __cplusplus | |
26664 | } | |
26665 | #endif | |
26666 | ||
26667 | int | |
26668 | main () | |
26669 | { | |
26670 | return f != $ac_func; | |
26671 | ; | |
26672 | return 0; | |
26673 | } | |
26674 | _ACEOF | |
26675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26677 | (eval $ac_link) 2>&5 | |
26678 | ac_status=$? | |
26679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26680 | (exit $ac_status); } && | |
26681 | { ac_try='test -s conftest$ac_exeext' | |
26682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26683 | (eval $ac_try) 2>&5 | |
26684 | ac_status=$? | |
26685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26686 | (exit $ac_status); }; }; then | |
26687 | eval "$as_ac_var=yes" | |
26688 | else | |
26689 | echo "$as_me: failed program was:" >&5 | |
26690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26691 | ||
26692 | eval "$as_ac_var=no" | |
26693 | fi | |
26694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26695 | fi | |
26696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26697 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26698 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26699 | cat >>confdefs.h <<_ACEOF | |
26700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26701 | _ACEOF | |
26702 | break | |
26703 | fi | |
26704 | done | |
26705 | ||
26706 | ||
26707 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
26708 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
26709 | if test "${wx_cv_func_statfs+set}" = set; then | |
26710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26711 | else | |
26712 | cat >conftest.$ac_ext <<_ACEOF | |
26713 | #line $LINENO "configure" | |
26714 | /* confdefs.h. */ | |
26715 | _ACEOF | |
26716 | cat confdefs.h >>conftest.$ac_ext | |
26717 | cat >>conftest.$ac_ext <<_ACEOF | |
26718 | /* end confdefs.h. */ | |
26719 | ||
26720 | #if defined(__BSD__) | |
26721 | #include <sys/param.h> | |
26722 | #include <sys/mount.h> | |
26723 | #else | |
26724 | #include <sys/vfs.h> | |
26725 | #endif | |
26726 | ||
26727 | int | |
26728 | main () | |
26729 | { | |
26730 | ||
26731 | long l; | |
26732 | struct statfs fs; | |
26733 | statfs("/", &fs); | |
26734 | l = fs.f_bsize; | |
26735 | l += fs.f_blocks; | |
26736 | l += fs.f_bavail; | |
26737 | ||
26738 | ; | |
26739 | return 0; | |
26740 | } | |
26741 | _ACEOF | |
26742 | rm -f conftest.$ac_objext | |
26743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26744 | (eval $ac_compile) 2>&5 | |
26745 | ac_status=$? | |
26746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26747 | (exit $ac_status); } && | |
26748 | { ac_try='test -s conftest.$ac_objext' | |
26749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26750 | (eval $ac_try) 2>&5 | |
26751 | ac_status=$? | |
26752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26753 | (exit $ac_status); }; }; then | |
26754 | ||
26755 | wx_cv_func_statfs=yes | |
26756 | ||
26757 | else | |
26758 | echo "$as_me: failed program was:" >&5 | |
26759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26760 | ||
26761 | ||
26762 | wx_cv_func_statfs=no | |
26763 | ||
26764 | ||
26765 | fi | |
26766 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26767 | ||
26768 | fi | |
26769 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
26770 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
26771 | ||
26772 | if test "$wx_cv_func_statfs" = "yes"; then | |
26773 | wx_cv_type_statvfs_t="struct statfs" | |
26774 | cat >>confdefs.h <<\_ACEOF | |
26775 | #define HAVE_STATFS 1 | |
26776 | _ACEOF | |
26777 | ||
26778 | else | |
26779 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
26780 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
26781 | if test "${wx_cv_func_statvfs+set}" = set; then | |
26782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26783 | else | |
26784 | cat >conftest.$ac_ext <<_ACEOF | |
26785 | #line $LINENO "configure" | |
26786 | /* confdefs.h. */ | |
26787 | _ACEOF | |
26788 | cat confdefs.h >>conftest.$ac_ext | |
26789 | cat >>conftest.$ac_ext <<_ACEOF | |
26790 | /* end confdefs.h. */ | |
26791 | ||
26792 | #include <stddef.h> | |
26793 | #include <sys/statvfs.h> | |
26794 | ||
26795 | int | |
26796 | main () | |
26797 | { | |
26798 | ||
26799 | statvfs("/", NULL); | |
26800 | ||
26801 | ; | |
26802 | return 0; | |
26803 | } | |
26804 | _ACEOF | |
26805 | rm -f conftest.$ac_objext | |
26806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26807 | (eval $ac_compile) 2>&5 | |
26808 | ac_status=$? | |
26809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26810 | (exit $ac_status); } && | |
26811 | { ac_try='test -s conftest.$ac_objext' | |
26812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26813 | (eval $ac_try) 2>&5 | |
26814 | ac_status=$? | |
26815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26816 | (exit $ac_status); }; }; then | |
26817 | wx_cv_func_statvfs=yes | |
26818 | else | |
26819 | echo "$as_me: failed program was:" >&5 | |
26820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26821 | ||
26822 | wx_cv_func_statvfs=no | |
26823 | ||
26824 | fi | |
26825 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26826 | ||
26827 | fi | |
26828 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
26829 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
26830 | ||
26831 | if test "$wx_cv_func_statvfs" = "yes"; then | |
26832 | ||
26833 | ||
26834 | ac_ext=cc | |
26835 | ac_cpp='$CXXCPP $CPPFLAGS' | |
26836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26839 | ||
26840 | ||
26841 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
26842 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
26843 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
26844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26845 | else | |
26846 | cat >conftest.$ac_ext <<_ACEOF | |
26847 | #line $LINENO "configure" | |
26848 | /* confdefs.h. */ | |
26849 | _ACEOF | |
26850 | cat confdefs.h >>conftest.$ac_ext | |
26851 | cat >>conftest.$ac_ext <<_ACEOF | |
26852 | /* end confdefs.h. */ | |
26853 | ||
26854 | #include <sys/statvfs.h> | |
26855 | ||
26856 | int | |
26857 | main () | |
26858 | { | |
26859 | ||
26860 | long l; | |
26861 | statvfs_t fs; | |
26862 | statvfs("/", &fs); | |
26863 | l = fs.f_bsize; | |
26864 | l += fs.f_blocks; | |
26865 | l += fs.f_bavail; | |
26866 | ||
26867 | ; | |
26868 | return 0; | |
26869 | } | |
26870 | _ACEOF | |
26871 | rm -f conftest.$ac_objext | |
26872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26873 | (eval $ac_compile) 2>&5 | |
26874 | ac_status=$? | |
26875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26876 | (exit $ac_status); } && | |
26877 | { ac_try='test -s conftest.$ac_objext' | |
26878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26879 | (eval $ac_try) 2>&5 | |
26880 | ac_status=$? | |
26881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26882 | (exit $ac_status); }; }; then | |
26883 | wx_cv_type_statvfs_t=statvfs_t | |
26884 | else | |
26885 | echo "$as_me: failed program was:" >&5 | |
26886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26887 | ||
26888 | ||
26889 | cat >conftest.$ac_ext <<_ACEOF | |
26890 | #line $LINENO "configure" | |
26891 | /* confdefs.h. */ | |
26892 | _ACEOF | |
26893 | cat confdefs.h >>conftest.$ac_ext | |
26894 | cat >>conftest.$ac_ext <<_ACEOF | |
26895 | /* end confdefs.h. */ | |
26896 | ||
26897 | #include <sys/statvfs.h> | |
26898 | ||
26899 | int | |
26900 | main () | |
26901 | { | |
26902 | ||
26903 | long l; | |
26904 | struct statvfs fs; | |
26905 | statvfs("/", &fs); | |
26906 | l = fs.f_bsize; | |
26907 | l += fs.f_blocks; | |
26908 | l += fs.f_bavail; | |
26909 | ||
26910 | ; | |
26911 | return 0; | |
26912 | } | |
26913 | _ACEOF | |
26914 | rm -f conftest.$ac_objext | |
26915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26916 | (eval $ac_compile) 2>&5 | |
26917 | ac_status=$? | |
26918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26919 | (exit $ac_status); } && | |
26920 | { ac_try='test -s conftest.$ac_objext' | |
26921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26922 | (eval $ac_try) 2>&5 | |
26923 | ac_status=$? | |
26924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26925 | (exit $ac_status); }; }; then | |
26926 | wx_cv_type_statvfs_t="struct statvfs" | |
26927 | else | |
26928 | echo "$as_me: failed program was:" >&5 | |
26929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26930 | ||
26931 | wx_cv_type_statvfs_t="unknown" | |
26932 | ||
26933 | fi | |
26934 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26935 | ||
26936 | ||
26937 | fi | |
26938 | rm -f conftest.$ac_objext conftest.$ac_ext | |
26939 | ||
26940 | fi | |
26941 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
26942 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
26943 | ||
26944 | ac_ext=c | |
26945 | ac_cpp='$CPP $CPPFLAGS' | |
26946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26949 | ||
26950 | ||
26951 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
26952 | cat >>confdefs.h <<\_ACEOF | |
26953 | #define HAVE_STATVFS 1 | |
26954 | _ACEOF | |
26955 | ||
26956 | fi | |
26957 | else | |
26958 | wx_cv_type_statvfs_t="unknown" | |
26959 | fi | |
26960 | fi | |
26961 | ||
26962 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
26963 | cat >>confdefs.h <<_ACEOF | |
26964 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
26965 | _ACEOF | |
26966 | ||
26967 | else | |
26968 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
26969 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
26970 | fi | |
26971 | ||
26972 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
26973 | ||
26974 | ||
26975 | for ac_func in fcntl flock | |
26976 | do | |
26977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26978 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26980 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26982 | else | |
26983 | cat >conftest.$ac_ext <<_ACEOF | |
26984 | #line $LINENO "configure" | |
26985 | /* confdefs.h. */ | |
26986 | _ACEOF | |
26987 | cat confdefs.h >>conftest.$ac_ext | |
26988 | cat >>conftest.$ac_ext <<_ACEOF | |
26989 | /* end confdefs.h. */ | |
26990 | /* System header to define __stub macros and hopefully few prototypes, | |
26991 | which can conflict with char $ac_func (); below. | |
26992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26993 | <limits.h> exists even on freestanding compilers. */ | |
26994 | #ifdef __STDC__ | |
26995 | # include <limits.h> | |
26996 | #else | |
26997 | # include <assert.h> | |
26998 | #endif | |
26999 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27000 | #ifdef __cplusplus | |
27001 | extern "C" | |
27002 | { | |
27003 | #endif | |
27004 | /* We use char because int might match the return type of a gcc2 | |
27005 | builtin and then its argument prototype would still apply. */ | |
27006 | char $ac_func (); | |
27007 | /* The GNU C library defines this for functions which it implements | |
27008 | to always fail with ENOSYS. Some functions are actually named | |
27009 | something starting with __ and the normal name is an alias. */ | |
27010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27011 | choke me | |
27012 | #else | |
27013 | char (*f) () = $ac_func; | |
27014 | #endif | |
27015 | #ifdef __cplusplus | |
27016 | } | |
27017 | #endif | |
27018 | ||
27019 | int | |
27020 | main () | |
27021 | { | |
27022 | return f != $ac_func; | |
27023 | ; | |
27024 | return 0; | |
27025 | } | |
27026 | _ACEOF | |
27027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27029 | (eval $ac_link) 2>&5 | |
27030 | ac_status=$? | |
27031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27032 | (exit $ac_status); } && | |
27033 | { ac_try='test -s conftest$ac_exeext' | |
27034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27035 | (eval $ac_try) 2>&5 | |
27036 | ac_status=$? | |
27037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27038 | (exit $ac_status); }; }; then | |
27039 | eval "$as_ac_var=yes" | |
27040 | else | |
27041 | echo "$as_me: failed program was:" >&5 | |
27042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27043 | ||
27044 | eval "$as_ac_var=no" | |
27045 | fi | |
27046 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27047 | fi | |
27048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27050 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27051 | cat >>confdefs.h <<_ACEOF | |
27052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27053 | _ACEOF | |
27054 | break | |
27055 | fi | |
27056 | done | |
27057 | ||
27058 | ||
27059 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
27060 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
27061 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
27062 | wxUSE_SNGLINST_CHECKER=no | |
27063 | fi | |
27064 | fi | |
27065 | ||
27066 | ||
27067 | for ac_func in timegm | |
27068 | do | |
27069 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27070 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27071 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27072 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27074 | else | |
27075 | cat >conftest.$ac_ext <<_ACEOF | |
27076 | #line $LINENO "configure" | |
27077 | /* confdefs.h. */ | |
27078 | _ACEOF | |
27079 | cat confdefs.h >>conftest.$ac_ext | |
27080 | cat >>conftest.$ac_ext <<_ACEOF | |
27081 | /* end confdefs.h. */ | |
27082 | /* System header to define __stub macros and hopefully few prototypes, | |
27083 | which can conflict with char $ac_func (); below. | |
27084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27085 | <limits.h> exists even on freestanding compilers. */ | |
27086 | #ifdef __STDC__ | |
27087 | # include <limits.h> | |
27088 | #else | |
27089 | # include <assert.h> | |
27090 | #endif | |
27091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27092 | #ifdef __cplusplus | |
27093 | extern "C" | |
27094 | { | |
27095 | #endif | |
27096 | /* We use char because int might match the return type of a gcc2 | |
27097 | builtin and then its argument prototype would still apply. */ | |
27098 | char $ac_func (); | |
27099 | /* The GNU C library defines this for functions which it implements | |
27100 | to always fail with ENOSYS. Some functions are actually named | |
27101 | something starting with __ and the normal name is an alias. */ | |
27102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27103 | choke me | |
27104 | #else | |
27105 | char (*f) () = $ac_func; | |
27106 | #endif | |
27107 | #ifdef __cplusplus | |
27108 | } | |
27109 | #endif | |
27110 | ||
27111 | int | |
27112 | main () | |
27113 | { | |
27114 | return f != $ac_func; | |
27115 | ; | |
27116 | return 0; | |
27117 | } | |
27118 | _ACEOF | |
27119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27121 | (eval $ac_link) 2>&5 | |
27122 | ac_status=$? | |
27123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27124 | (exit $ac_status); } && | |
27125 | { ac_try='test -s conftest$ac_exeext' | |
27126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27127 | (eval $ac_try) 2>&5 | |
27128 | ac_status=$? | |
27129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27130 | (exit $ac_status); }; }; then | |
27131 | eval "$as_ac_var=yes" | |
27132 | else | |
27133 | echo "$as_me: failed program was:" >&5 | |
27134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27135 | ||
27136 | eval "$as_ac_var=no" | |
27137 | fi | |
27138 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27139 | fi | |
27140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27141 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27142 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27143 | cat >>confdefs.h <<_ACEOF | |
27144 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27145 | _ACEOF | |
27146 | ||
27147 | fi | |
27148 | done | |
27149 | ||
27150 | ||
27151 | ||
27152 | ||
27153 | for ac_func in putenv setenv | |
27154 | do | |
27155 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27156 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27157 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27158 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27160 | else | |
27161 | cat >conftest.$ac_ext <<_ACEOF | |
27162 | #line $LINENO "configure" | |
27163 | /* confdefs.h. */ | |
27164 | _ACEOF | |
27165 | cat confdefs.h >>conftest.$ac_ext | |
27166 | cat >>conftest.$ac_ext <<_ACEOF | |
27167 | /* end confdefs.h. */ | |
27168 | /* System header to define __stub macros and hopefully few prototypes, | |
27169 | which can conflict with char $ac_func (); below. | |
27170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27171 | <limits.h> exists even on freestanding compilers. */ | |
27172 | #ifdef __STDC__ | |
27173 | # include <limits.h> | |
27174 | #else | |
27175 | # include <assert.h> | |
27176 | #endif | |
27177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27178 | #ifdef __cplusplus | |
27179 | extern "C" | |
27180 | { | |
27181 | #endif | |
27182 | /* We use char because int might match the return type of a gcc2 | |
27183 | builtin and then its argument prototype would still apply. */ | |
27184 | char $ac_func (); | |
27185 | /* The GNU C library defines this for functions which it implements | |
27186 | to always fail with ENOSYS. Some functions are actually named | |
27187 | something starting with __ and the normal name is an alias. */ | |
27188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27189 | choke me | |
27190 | #else | |
27191 | char (*f) () = $ac_func; | |
27192 | #endif | |
27193 | #ifdef __cplusplus | |
27194 | } | |
27195 | #endif | |
27196 | ||
27197 | int | |
27198 | main () | |
27199 | { | |
27200 | return f != $ac_func; | |
27201 | ; | |
27202 | return 0; | |
27203 | } | |
27204 | _ACEOF | |
27205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27207 | (eval $ac_link) 2>&5 | |
27208 | ac_status=$? | |
27209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27210 | (exit $ac_status); } && | |
27211 | { ac_try='test -s conftest$ac_exeext' | |
27212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27213 | (eval $ac_try) 2>&5 | |
27214 | ac_status=$? | |
27215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27216 | (exit $ac_status); }; }; then | |
27217 | eval "$as_ac_var=yes" | |
27218 | else | |
27219 | echo "$as_me: failed program was:" >&5 | |
27220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27221 | ||
27222 | eval "$as_ac_var=no" | |
27223 | fi | |
27224 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27225 | fi | |
27226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27227 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27228 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27229 | cat >>confdefs.h <<_ACEOF | |
27230 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27231 | _ACEOF | |
27232 | break | |
27233 | fi | |
27234 | done | |
27235 | ||
27236 | ||
27237 | HAVE_SOME_SLEEP_FUNC=0 | |
27238 | if test "$USE_BEOS" = 1; then | |
27239 | cat >>confdefs.h <<\_ACEOF | |
27240 | #define HAVE_SLEEP 1 | |
27241 | _ACEOF | |
27242 | ||
27243 | HAVE_SOME_SLEEP_FUNC=1 | |
27244 | fi | |
27245 | ||
27246 | if test "$USE_DARWIN" = 1; then | |
27247 | cat >>confdefs.h <<\_ACEOF | |
27248 | #define HAVE_USLEEP 1 | |
27249 | _ACEOF | |
27250 | ||
27251 | HAVE_SOME_SLEEP_FUNC=1 | |
27252 | fi | |
27253 | ||
27254 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
27255 | POSIX4_LINK= | |
27256 | ||
27257 | for ac_func in nanosleep | |
27258 | do | |
27259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27260 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27262 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27264 | else | |
27265 | cat >conftest.$ac_ext <<_ACEOF | |
27266 | #line $LINENO "configure" | |
27267 | /* confdefs.h. */ | |
27268 | _ACEOF | |
27269 | cat confdefs.h >>conftest.$ac_ext | |
27270 | cat >>conftest.$ac_ext <<_ACEOF | |
27271 | /* end confdefs.h. */ | |
27272 | /* System header to define __stub macros and hopefully few prototypes, | |
27273 | which can conflict with char $ac_func (); below. | |
27274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27275 | <limits.h> exists even on freestanding compilers. */ | |
27276 | #ifdef __STDC__ | |
27277 | # include <limits.h> | |
27278 | #else | |
27279 | # include <assert.h> | |
27280 | #endif | |
27281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27282 | #ifdef __cplusplus | |
27283 | extern "C" | |
27284 | { | |
27285 | #endif | |
27286 | /* We use char because int might match the return type of a gcc2 | |
27287 | builtin and then its argument prototype would still apply. */ | |
27288 | char $ac_func (); | |
27289 | /* The GNU C library defines this for functions which it implements | |
27290 | to always fail with ENOSYS. Some functions are actually named | |
27291 | something starting with __ and the normal name is an alias. */ | |
27292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27293 | choke me | |
27294 | #else | |
27295 | char (*f) () = $ac_func; | |
27296 | #endif | |
27297 | #ifdef __cplusplus | |
27298 | } | |
27299 | #endif | |
27300 | ||
27301 | int | |
27302 | main () | |
27303 | { | |
27304 | return f != $ac_func; | |
27305 | ; | |
27306 | return 0; | |
27307 | } | |
27308 | _ACEOF | |
27309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27311 | (eval $ac_link) 2>&5 | |
27312 | ac_status=$? | |
27313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27314 | (exit $ac_status); } && | |
27315 | { ac_try='test -s conftest$ac_exeext' | |
27316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27317 | (eval $ac_try) 2>&5 | |
27318 | ac_status=$? | |
27319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27320 | (exit $ac_status); }; }; then | |
27321 | eval "$as_ac_var=yes" | |
27322 | else | |
27323 | echo "$as_me: failed program was:" >&5 | |
27324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27325 | ||
27326 | eval "$as_ac_var=no" | |
27327 | fi | |
27328 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27329 | fi | |
27330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27331 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27332 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27333 | cat >>confdefs.h <<_ACEOF | |
27334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27335 | _ACEOF | |
27336 | cat >>confdefs.h <<\_ACEOF | |
27337 | #define HAVE_NANOSLEEP 1 | |
27338 | _ACEOF | |
27339 | ||
27340 | else | |
27341 | ||
27342 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27343 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27344 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27346 | else | |
27347 | ac_check_lib_save_LIBS=$LIBS | |
27348 | LIBS="-lposix4 $LIBS" | |
27349 | cat >conftest.$ac_ext <<_ACEOF | |
27350 | #line $LINENO "configure" | |
27351 | /* confdefs.h. */ | |
27352 | _ACEOF | |
27353 | cat confdefs.h >>conftest.$ac_ext | |
27354 | cat >>conftest.$ac_ext <<_ACEOF | |
27355 | /* end confdefs.h. */ | |
27356 | ||
27357 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27358 | #ifdef __cplusplus | |
27359 | extern "C" | |
27360 | #endif | |
27361 | /* We use char because int might match the return type of a gcc2 | |
27362 | builtin and then its argument prototype would still apply. */ | |
27363 | char nanosleep (); | |
27364 | int | |
27365 | main () | |
27366 | { | |
27367 | nanosleep (); | |
27368 | ; | |
27369 | return 0; | |
27370 | } | |
27371 | _ACEOF | |
27372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27374 | (eval $ac_link) 2>&5 | |
27375 | ac_status=$? | |
27376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27377 | (exit $ac_status); } && | |
27378 | { ac_try='test -s conftest$ac_exeext' | |
27379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27380 | (eval $ac_try) 2>&5 | |
27381 | ac_status=$? | |
27382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27383 | (exit $ac_status); }; }; then | |
27384 | ac_cv_lib_posix4_nanosleep=yes | |
27385 | else | |
27386 | echo "$as_me: failed program was:" >&5 | |
27387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27388 | ||
27389 | ac_cv_lib_posix4_nanosleep=no | |
27390 | fi | |
27391 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27392 | LIBS=$ac_check_lib_save_LIBS | |
27393 | fi | |
27394 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27395 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27396 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27397 | ||
27398 | cat >>confdefs.h <<\_ACEOF | |
27399 | #define HAVE_NANOSLEEP 1 | |
27400 | _ACEOF | |
27401 | ||
27402 | POSIX4_LINK=" -lposix4" | |
27403 | ||
27404 | else | |
27405 | ||
27406 | ||
27407 | for ac_func in usleep | |
27408 | do | |
27409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27410 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27412 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27414 | else | |
27415 | cat >conftest.$ac_ext <<_ACEOF | |
27416 | #line $LINENO "configure" | |
27417 | /* confdefs.h. */ | |
27418 | _ACEOF | |
27419 | cat confdefs.h >>conftest.$ac_ext | |
27420 | cat >>conftest.$ac_ext <<_ACEOF | |
27421 | /* end confdefs.h. */ | |
27422 | /* System header to define __stub macros and hopefully few prototypes, | |
27423 | which can conflict with char $ac_func (); below. | |
27424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27425 | <limits.h> exists even on freestanding compilers. */ | |
27426 | #ifdef __STDC__ | |
27427 | # include <limits.h> | |
27428 | #else | |
27429 | # include <assert.h> | |
27430 | #endif | |
27431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27432 | #ifdef __cplusplus | |
27433 | extern "C" | |
27434 | { | |
27435 | #endif | |
27436 | /* We use char because int might match the return type of a gcc2 | |
27437 | builtin and then its argument prototype would still apply. */ | |
27438 | char $ac_func (); | |
27439 | /* The GNU C library defines this for functions which it implements | |
27440 | to always fail with ENOSYS. Some functions are actually named | |
27441 | something starting with __ and the normal name is an alias. */ | |
27442 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27443 | choke me | |
27444 | #else | |
27445 | char (*f) () = $ac_func; | |
27446 | #endif | |
27447 | #ifdef __cplusplus | |
27448 | } | |
27449 | #endif | |
27450 | ||
27451 | int | |
27452 | main () | |
27453 | { | |
27454 | return f != $ac_func; | |
27455 | ; | |
27456 | return 0; | |
27457 | } | |
27458 | _ACEOF | |
27459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27461 | (eval $ac_link) 2>&5 | |
27462 | ac_status=$? | |
27463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27464 | (exit $ac_status); } && | |
27465 | { ac_try='test -s conftest$ac_exeext' | |
27466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27467 | (eval $ac_try) 2>&5 | |
27468 | ac_status=$? | |
27469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27470 | (exit $ac_status); }; }; then | |
27471 | eval "$as_ac_var=yes" | |
27472 | else | |
27473 | echo "$as_me: failed program was:" >&5 | |
27474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27475 | ||
27476 | eval "$as_ac_var=no" | |
27477 | fi | |
27478 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27479 | fi | |
27480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27481 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27482 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27483 | cat >>confdefs.h <<_ACEOF | |
27484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27485 | _ACEOF | |
27486 | cat >>confdefs.h <<\_ACEOF | |
27487 | #define HAVE_USLEEP 1 | |
27488 | _ACEOF | |
27489 | ||
27490 | else | |
27491 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
27492 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27493 | ||
27494 | fi | |
27495 | done | |
27496 | ||
27497 | ||
27498 | ||
27499 | fi | |
27500 | ||
27501 | ||
27502 | ||
27503 | fi | |
27504 | done | |
27505 | ||
27506 | fi | |
27507 | ||
27508 | ||
27509 | ||
27510 | for ac_func in uname gethostname | |
27511 | do | |
27512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27515 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27517 | else | |
27518 | cat >conftest.$ac_ext <<_ACEOF | |
27519 | #line $LINENO "configure" | |
27520 | /* confdefs.h. */ | |
27521 | _ACEOF | |
27522 | cat confdefs.h >>conftest.$ac_ext | |
27523 | cat >>conftest.$ac_ext <<_ACEOF | |
27524 | /* end confdefs.h. */ | |
27525 | /* System header to define __stub macros and hopefully few prototypes, | |
27526 | which can conflict with char $ac_func (); below. | |
27527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27528 | <limits.h> exists even on freestanding compilers. */ | |
27529 | #ifdef __STDC__ | |
27530 | # include <limits.h> | |
27531 | #else | |
27532 | # include <assert.h> | |
27533 | #endif | |
27534 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27535 | #ifdef __cplusplus | |
27536 | extern "C" | |
27537 | { | |
27538 | #endif | |
27539 | /* We use char because int might match the return type of a gcc2 | |
27540 | builtin and then its argument prototype would still apply. */ | |
27541 | char $ac_func (); | |
27542 | /* The GNU C library defines this for functions which it implements | |
27543 | to always fail with ENOSYS. Some functions are actually named | |
27544 | something starting with __ and the normal name is an alias. */ | |
27545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27546 | choke me | |
27547 | #else | |
27548 | char (*f) () = $ac_func; | |
27549 | #endif | |
27550 | #ifdef __cplusplus | |
27551 | } | |
27552 | #endif | |
27553 | ||
27554 | int | |
27555 | main () | |
27556 | { | |
27557 | return f != $ac_func; | |
27558 | ; | |
27559 | return 0; | |
27560 | } | |
27561 | _ACEOF | |
27562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27564 | (eval $ac_link) 2>&5 | |
27565 | ac_status=$? | |
27566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27567 | (exit $ac_status); } && | |
27568 | { ac_try='test -s conftest$ac_exeext' | |
27569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27570 | (eval $ac_try) 2>&5 | |
27571 | ac_status=$? | |
27572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27573 | (exit $ac_status); }; }; then | |
27574 | eval "$as_ac_var=yes" | |
27575 | else | |
27576 | echo "$as_me: failed program was:" >&5 | |
27577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27578 | ||
27579 | eval "$as_ac_var=no" | |
27580 | fi | |
27581 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27582 | fi | |
27583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27585 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27586 | cat >>confdefs.h <<_ACEOF | |
27587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27588 | _ACEOF | |
27589 | break | |
27590 | fi | |
27591 | done | |
27592 | ||
27593 | ||
27594 | ||
27595 | ||
27596 | ac_ext=cc | |
27597 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27598 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27599 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27600 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27601 | ||
27602 | ||
27603 | ||
27604 | for ac_func in strtok_r | |
27605 | do | |
27606 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27607 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27608 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27609 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27611 | else | |
27612 | cat >conftest.$ac_ext <<_ACEOF | |
27613 | #line $LINENO "configure" | |
27614 | /* confdefs.h. */ | |
27615 | _ACEOF | |
27616 | cat confdefs.h >>conftest.$ac_ext | |
27617 | cat >>conftest.$ac_ext <<_ACEOF | |
27618 | /* end confdefs.h. */ | |
27619 | /* System header to define __stub macros and hopefully few prototypes, | |
27620 | which can conflict with char $ac_func (); below. | |
27621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27622 | <limits.h> exists even on freestanding compilers. */ | |
27623 | #ifdef __STDC__ | |
27624 | # include <limits.h> | |
27625 | #else | |
27626 | # include <assert.h> | |
27627 | #endif | |
27628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27629 | #ifdef __cplusplus | |
27630 | extern "C" | |
27631 | { | |
27632 | #endif | |
27633 | /* We use char because int might match the return type of a gcc2 | |
27634 | builtin and then its argument prototype would still apply. */ | |
27635 | char $ac_func (); | |
27636 | /* The GNU C library defines this for functions which it implements | |
27637 | to always fail with ENOSYS. Some functions are actually named | |
27638 | something starting with __ and the normal name is an alias. */ | |
27639 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27640 | choke me | |
27641 | #else | |
27642 | char (*f) () = $ac_func; | |
27643 | #endif | |
27644 | #ifdef __cplusplus | |
27645 | } | |
27646 | #endif | |
27647 | ||
27648 | int | |
27649 | main () | |
27650 | { | |
27651 | return f != $ac_func; | |
27652 | ; | |
27653 | return 0; | |
27654 | } | |
27655 | _ACEOF | |
27656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27658 | (eval $ac_link) 2>&5 | |
27659 | ac_status=$? | |
27660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27661 | (exit $ac_status); } && | |
27662 | { ac_try='test -s conftest$ac_exeext' | |
27663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27664 | (eval $ac_try) 2>&5 | |
27665 | ac_status=$? | |
27666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27667 | (exit $ac_status); }; }; then | |
27668 | eval "$as_ac_var=yes" | |
27669 | else | |
27670 | echo "$as_me: failed program was:" >&5 | |
27671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27672 | ||
27673 | eval "$as_ac_var=no" | |
27674 | fi | |
27675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27676 | fi | |
27677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27678 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27679 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27680 | cat >>confdefs.h <<_ACEOF | |
27681 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27682 | _ACEOF | |
27683 | ||
27684 | fi | |
27685 | done | |
27686 | ||
27687 | ||
27688 | ac_ext=c | |
27689 | ac_cpp='$CPP $CPPFLAGS' | |
27690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27693 | ||
27694 | ||
27695 | INET_LINK= | |
27696 | ||
27697 | for ac_func in inet_addr | |
27698 | do | |
27699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27700 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27702 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27704 | else | |
27705 | cat >conftest.$ac_ext <<_ACEOF | |
27706 | #line $LINENO "configure" | |
27707 | /* confdefs.h. */ | |
27708 | _ACEOF | |
27709 | cat confdefs.h >>conftest.$ac_ext | |
27710 | cat >>conftest.$ac_ext <<_ACEOF | |
27711 | /* end confdefs.h. */ | |
27712 | /* System header to define __stub macros and hopefully few prototypes, | |
27713 | which can conflict with char $ac_func (); below. | |
27714 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27715 | <limits.h> exists even on freestanding compilers. */ | |
27716 | #ifdef __STDC__ | |
27717 | # include <limits.h> | |
27718 | #else | |
27719 | # include <assert.h> | |
27720 | #endif | |
27721 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27722 | #ifdef __cplusplus | |
27723 | extern "C" | |
27724 | { | |
27725 | #endif | |
27726 | /* We use char because int might match the return type of a gcc2 | |
27727 | builtin and then its argument prototype would still apply. */ | |
27728 | char $ac_func (); | |
27729 | /* The GNU C library defines this for functions which it implements | |
27730 | to always fail with ENOSYS. Some functions are actually named | |
27731 | something starting with __ and the normal name is an alias. */ | |
27732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27733 | choke me | |
27734 | #else | |
27735 | char (*f) () = $ac_func; | |
27736 | #endif | |
27737 | #ifdef __cplusplus | |
27738 | } | |
27739 | #endif | |
27740 | ||
27741 | int | |
27742 | main () | |
27743 | { | |
27744 | return f != $ac_func; | |
27745 | ; | |
27746 | return 0; | |
27747 | } | |
27748 | _ACEOF | |
27749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27751 | (eval $ac_link) 2>&5 | |
27752 | ac_status=$? | |
27753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27754 | (exit $ac_status); } && | |
27755 | { ac_try='test -s conftest$ac_exeext' | |
27756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27757 | (eval $ac_try) 2>&5 | |
27758 | ac_status=$? | |
27759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27760 | (exit $ac_status); }; }; then | |
27761 | eval "$as_ac_var=yes" | |
27762 | else | |
27763 | echo "$as_me: failed program was:" >&5 | |
27764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27765 | ||
27766 | eval "$as_ac_var=no" | |
27767 | fi | |
27768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27769 | fi | |
27770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27771 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27772 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27773 | cat >>confdefs.h <<_ACEOF | |
27774 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27775 | _ACEOF | |
27776 | cat >>confdefs.h <<\_ACEOF | |
27777 | #define HAVE_INET_ADDR 1 | |
27778 | _ACEOF | |
27779 | ||
27780 | else | |
27781 | ||
27782 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
27783 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
27784 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
27785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27786 | else | |
27787 | ac_check_lib_save_LIBS=$LIBS | |
27788 | LIBS="-lnsl $LIBS" | |
27789 | cat >conftest.$ac_ext <<_ACEOF | |
27790 | #line $LINENO "configure" | |
27791 | /* confdefs.h. */ | |
27792 | _ACEOF | |
27793 | cat confdefs.h >>conftest.$ac_ext | |
27794 | cat >>conftest.$ac_ext <<_ACEOF | |
27795 | /* end confdefs.h. */ | |
27796 | ||
27797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27798 | #ifdef __cplusplus | |
27799 | extern "C" | |
27800 | #endif | |
27801 | /* We use char because int might match the return type of a gcc2 | |
27802 | builtin and then its argument prototype would still apply. */ | |
27803 | char inet_addr (); | |
27804 | int | |
27805 | main () | |
27806 | { | |
27807 | inet_addr (); | |
27808 | ; | |
27809 | return 0; | |
27810 | } | |
27811 | _ACEOF | |
27812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27814 | (eval $ac_link) 2>&5 | |
27815 | ac_status=$? | |
27816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27817 | (exit $ac_status); } && | |
27818 | { ac_try='test -s conftest$ac_exeext' | |
27819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27820 | (eval $ac_try) 2>&5 | |
27821 | ac_status=$? | |
27822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27823 | (exit $ac_status); }; }; then | |
27824 | ac_cv_lib_nsl_inet_addr=yes | |
27825 | else | |
27826 | echo "$as_me: failed program was:" >&5 | |
27827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27828 | ||
27829 | ac_cv_lib_nsl_inet_addr=no | |
27830 | fi | |
27831 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27832 | LIBS=$ac_check_lib_save_LIBS | |
27833 | fi | |
27834 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
27835 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
27836 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
27837 | INET_LINK="nsl" | |
27838 | else | |
27839 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
27840 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
27841 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
27842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27843 | else | |
27844 | ac_check_lib_save_LIBS=$LIBS | |
27845 | LIBS="-lresolv $LIBS" | |
27846 | cat >conftest.$ac_ext <<_ACEOF | |
27847 | #line $LINENO "configure" | |
27848 | /* confdefs.h. */ | |
27849 | _ACEOF | |
27850 | cat confdefs.h >>conftest.$ac_ext | |
27851 | cat >>conftest.$ac_ext <<_ACEOF | |
27852 | /* end confdefs.h. */ | |
27853 | ||
27854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27855 | #ifdef __cplusplus | |
27856 | extern "C" | |
27857 | #endif | |
27858 | /* We use char because int might match the return type of a gcc2 | |
27859 | builtin and then its argument prototype would still apply. */ | |
27860 | char inet_addr (); | |
27861 | int | |
27862 | main () | |
27863 | { | |
27864 | inet_addr (); | |
27865 | ; | |
27866 | return 0; | |
27867 | } | |
27868 | _ACEOF | |
27869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27871 | (eval $ac_link) 2>&5 | |
27872 | ac_status=$? | |
27873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27874 | (exit $ac_status); } && | |
27875 | { ac_try='test -s conftest$ac_exeext' | |
27876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27877 | (eval $ac_try) 2>&5 | |
27878 | ac_status=$? | |
27879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27880 | (exit $ac_status); }; }; then | |
27881 | ac_cv_lib_resolv_inet_addr=yes | |
27882 | else | |
27883 | echo "$as_me: failed program was:" >&5 | |
27884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27885 | ||
27886 | ac_cv_lib_resolv_inet_addr=no | |
27887 | fi | |
27888 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27889 | LIBS=$ac_check_lib_save_LIBS | |
27890 | fi | |
27891 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
27892 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
27893 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
27894 | INET_LINK="resolv" | |
27895 | else | |
27896 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
27897 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
27898 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
27899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27900 | else | |
27901 | ac_check_lib_save_LIBS=$LIBS | |
27902 | LIBS="-lsocket $LIBS" | |
27903 | cat >conftest.$ac_ext <<_ACEOF | |
27904 | #line $LINENO "configure" | |
27905 | /* confdefs.h. */ | |
27906 | _ACEOF | |
27907 | cat confdefs.h >>conftest.$ac_ext | |
27908 | cat >>conftest.$ac_ext <<_ACEOF | |
27909 | /* end confdefs.h. */ | |
27910 | ||
27911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27912 | #ifdef __cplusplus | |
27913 | extern "C" | |
27914 | #endif | |
27915 | /* We use char because int might match the return type of a gcc2 | |
27916 | builtin and then its argument prototype would still apply. */ | |
27917 | char inet_addr (); | |
27918 | int | |
27919 | main () | |
27920 | { | |
27921 | inet_addr (); | |
27922 | ; | |
27923 | return 0; | |
27924 | } | |
27925 | _ACEOF | |
27926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27928 | (eval $ac_link) 2>&5 | |
27929 | ac_status=$? | |
27930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27931 | (exit $ac_status); } && | |
27932 | { ac_try='test -s conftest$ac_exeext' | |
27933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27934 | (eval $ac_try) 2>&5 | |
27935 | ac_status=$? | |
27936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27937 | (exit $ac_status); }; }; then | |
27938 | ac_cv_lib_socket_inet_addr=yes | |
27939 | else | |
27940 | echo "$as_me: failed program was:" >&5 | |
27941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27942 | ||
27943 | ac_cv_lib_socket_inet_addr=no | |
27944 | fi | |
27945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27946 | LIBS=$ac_check_lib_save_LIBS | |
27947 | fi | |
27948 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
27949 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
27950 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
27951 | INET_LINK="socket" | |
27952 | ||
27953 | fi | |
27954 | ||
27955 | ||
27956 | fi | |
27957 | ||
27958 | ||
27959 | fi | |
27960 | ||
27961 | ||
27962 | ||
27963 | fi | |
27964 | done | |
27965 | ||
27966 | ||
27967 | ||
27968 | for ac_func in inet_aton | |
27969 | do | |
27970 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27971 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27972 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27973 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27975 | else | |
27976 | cat >conftest.$ac_ext <<_ACEOF | |
27977 | #line $LINENO "configure" | |
27978 | /* confdefs.h. */ | |
27979 | _ACEOF | |
27980 | cat confdefs.h >>conftest.$ac_ext | |
27981 | cat >>conftest.$ac_ext <<_ACEOF | |
27982 | /* end confdefs.h. */ | |
27983 | /* System header to define __stub macros and hopefully few prototypes, | |
27984 | which can conflict with char $ac_func (); below. | |
27985 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27986 | <limits.h> exists even on freestanding compilers. */ | |
27987 | #ifdef __STDC__ | |
27988 | # include <limits.h> | |
27989 | #else | |
27990 | # include <assert.h> | |
27991 | #endif | |
27992 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27993 | #ifdef __cplusplus | |
27994 | extern "C" | |
27995 | { | |
27996 | #endif | |
27997 | /* We use char because int might match the return type of a gcc2 | |
27998 | builtin and then its argument prototype would still apply. */ | |
27999 | char $ac_func (); | |
28000 | /* The GNU C library defines this for functions which it implements | |
28001 | to always fail with ENOSYS. Some functions are actually named | |
28002 | something starting with __ and the normal name is an alias. */ | |
28003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28004 | choke me | |
28005 | #else | |
28006 | char (*f) () = $ac_func; | |
28007 | #endif | |
28008 | #ifdef __cplusplus | |
28009 | } | |
28010 | #endif | |
28011 | ||
28012 | int | |
28013 | main () | |
28014 | { | |
28015 | return f != $ac_func; | |
28016 | ; | |
28017 | return 0; | |
28018 | } | |
28019 | _ACEOF | |
28020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28022 | (eval $ac_link) 2>&5 | |
28023 | ac_status=$? | |
28024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28025 | (exit $ac_status); } && | |
28026 | { ac_try='test -s conftest$ac_exeext' | |
28027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28028 | (eval $ac_try) 2>&5 | |
28029 | ac_status=$? | |
28030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28031 | (exit $ac_status); }; }; then | |
28032 | eval "$as_ac_var=yes" | |
28033 | else | |
28034 | echo "$as_me: failed program was:" >&5 | |
28035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28036 | ||
28037 | eval "$as_ac_var=no" | |
28038 | fi | |
28039 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28040 | fi | |
28041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28042 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28043 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28044 | cat >>confdefs.h <<_ACEOF | |
28045 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28046 | _ACEOF | |
28047 | cat >>confdefs.h <<\_ACEOF | |
28048 | #define HAVE_INET_ATON 1 | |
28049 | _ACEOF | |
28050 | ||
28051 | else | |
28052 | ||
28053 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28054 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28055 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28056 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28058 | else | |
28059 | ac_check_lib_save_LIBS=$LIBS | |
28060 | LIBS="-l$INET_LINK $LIBS" | |
28061 | cat >conftest.$ac_ext <<_ACEOF | |
28062 | #line $LINENO "configure" | |
28063 | /* confdefs.h. */ | |
28064 | _ACEOF | |
28065 | cat confdefs.h >>conftest.$ac_ext | |
28066 | cat >>conftest.$ac_ext <<_ACEOF | |
28067 | /* end confdefs.h. */ | |
28068 | ||
28069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28070 | #ifdef __cplusplus | |
28071 | extern "C" | |
28072 | #endif | |
28073 | /* We use char because int might match the return type of a gcc2 | |
28074 | builtin and then its argument prototype would still apply. */ | |
28075 | char inet_aton (); | |
28076 | int | |
28077 | main () | |
28078 | { | |
28079 | inet_aton (); | |
28080 | ; | |
28081 | return 0; | |
28082 | } | |
28083 | _ACEOF | |
28084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28086 | (eval $ac_link) 2>&5 | |
28087 | ac_status=$? | |
28088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28089 | (exit $ac_status); } && | |
28090 | { ac_try='test -s conftest$ac_exeext' | |
28091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28092 | (eval $ac_try) 2>&5 | |
28093 | ac_status=$? | |
28094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28095 | (exit $ac_status); }; }; then | |
28096 | eval "$as_ac_Lib=yes" | |
28097 | else | |
28098 | echo "$as_me: failed program was:" >&5 | |
28099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28100 | ||
28101 | eval "$as_ac_Lib=no" | |
28102 | fi | |
28103 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28104 | LIBS=$ac_check_lib_save_LIBS | |
28105 | fi | |
28106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28107 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28108 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28109 | cat >>confdefs.h <<\_ACEOF | |
28110 | #define HAVE_INET_ATON 1 | |
28111 | _ACEOF | |
28112 | ||
28113 | fi | |
28114 | ||
28115 | ||
28116 | fi | |
28117 | done | |
28118 | ||
28119 | ||
28120 | if test "x$INET_LINK" != "x"; then | |
28121 | cat >>confdefs.h <<\_ACEOF | |
28122 | #define HAVE_INET_ADDR 1 | |
28123 | _ACEOF | |
28124 | ||
28125 | INET_LINK=" -l$INET_LINK" | |
28126 | fi | |
28127 | ||
28128 | fi | |
28129 | ||
28130 | ||
28131 | ||
28132 | ESD_LINK= | |
28133 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28134 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28135 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28136 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28138 | fi | |
28139 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 | |
28140 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
28141 | else | |
28142 | # Is the header compilable? | |
28143 | echo "$as_me:$LINENO: checking esd.h usability" >&5 | |
28144 | echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6 | |
28145 | cat >conftest.$ac_ext <<_ACEOF | |
28146 | #line $LINENO "configure" | |
28147 | /* confdefs.h. */ | |
28148 | _ACEOF | |
28149 | cat confdefs.h >>conftest.$ac_ext | |
28150 | cat >>conftest.$ac_ext <<_ACEOF | |
28151 | /* end confdefs.h. */ | |
28152 | $ac_includes_default | |
28153 | #include <esd.h> | |
28154 | _ACEOF | |
28155 | rm -f conftest.$ac_objext | |
28156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28157 | (eval $ac_compile) 2>&5 | |
28158 | ac_status=$? | |
28159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28160 | (exit $ac_status); } && | |
28161 | { ac_try='test -s conftest.$ac_objext' | |
28162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28163 | (eval $ac_try) 2>&5 | |
28164 | ac_status=$? | |
28165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28166 | (exit $ac_status); }; }; then | |
28167 | ac_header_compiler=yes | |
28168 | else | |
28169 | echo "$as_me: failed program was:" >&5 | |
28170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28171 | ||
28172 | ac_header_compiler=no | |
28173 | fi | |
28174 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28176 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28177 | ||
28178 | # Is the header present? | |
28179 | echo "$as_me:$LINENO: checking esd.h presence" >&5 | |
28180 | echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6 | |
28181 | cat >conftest.$ac_ext <<_ACEOF | |
28182 | #line $LINENO "configure" | |
28183 | /* confdefs.h. */ | |
28184 | _ACEOF | |
28185 | cat confdefs.h >>conftest.$ac_ext | |
28186 | cat >>conftest.$ac_ext <<_ACEOF | |
28187 | /* end confdefs.h. */ | |
28188 | #include <esd.h> | |
28189 | _ACEOF | |
28190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28192 | ac_status=$? | |
28193 | grep -v '^ *+' conftest.er1 >conftest.err | |
28194 | rm -f conftest.er1 | |
28195 | cat conftest.err >&5 | |
28196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28197 | (exit $ac_status); } >/dev/null; then | |
28198 | if test -s conftest.err; then | |
28199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28200 | else | |
28201 | ac_cpp_err= | |
28202 | fi | |
28203 | else | |
28204 | ac_cpp_err=yes | |
28205 | fi | |
28206 | if test -z "$ac_cpp_err"; then | |
28207 | ac_header_preproc=yes | |
28208 | else | |
28209 | echo "$as_me: failed program was:" >&5 | |
28210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28211 | ||
28212 | ac_header_preproc=no | |
28213 | fi | |
28214 | rm -f conftest.err conftest.$ac_ext | |
28215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28216 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28217 | ||
28218 | # So? What about this header? | |
28219 | case $ac_header_compiler:$ac_header_preproc in | |
28220 | yes:no ) | |
28221 | { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28222 | echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28223 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28224 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28225 | ( | |
28226 | cat <<\_ASBOX | |
28227 | ## ------------------------------------ ## | |
28228 | ## Report this to bug-autoconf@gnu.org. ## | |
28229 | ## ------------------------------------ ## | |
28230 | _ASBOX | |
28231 | ) | | |
28232 | sed "s/^/$as_me: WARNING: /" >&2 | |
28233 | ;; | |
28234 | no:yes ) | |
28235 | { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5 | |
28236 | echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;} | |
28237 | { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5 | |
28238 | echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;} | |
28239 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28240 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28241 | ( | |
28242 | cat <<\_ASBOX | |
28243 | ## ------------------------------------ ## | |
28244 | ## Report this to bug-autoconf@gnu.org. ## | |
28245 | ## ------------------------------------ ## | |
28246 | _ASBOX | |
28247 | ) | | |
28248 | sed "s/^/$as_me: WARNING: /" >&2 | |
28249 | ;; | |
28250 | esac | |
28251 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28252 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28253 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28255 | else | |
28256 | ac_cv_header_esd_h=$ac_header_preproc | |
28257 | fi | |
28258 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 | |
28259 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
28260 | ||
28261 | fi | |
28262 | if test $ac_cv_header_esd_h = yes; then | |
28263 | ||
28264 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28265 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28266 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28268 | else | |
28269 | ac_check_lib_save_LIBS=$LIBS | |
28270 | LIBS="-lesd $LIBS" | |
28271 | cat >conftest.$ac_ext <<_ACEOF | |
28272 | #line $LINENO "configure" | |
28273 | /* confdefs.h. */ | |
28274 | _ACEOF | |
28275 | cat confdefs.h >>conftest.$ac_ext | |
28276 | cat >>conftest.$ac_ext <<_ACEOF | |
28277 | /* end confdefs.h. */ | |
28278 | ||
28279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28280 | #ifdef __cplusplus | |
28281 | extern "C" | |
28282 | #endif | |
28283 | /* We use char because int might match the return type of a gcc2 | |
28284 | builtin and then its argument prototype would still apply. */ | |
28285 | char esd_close (); | |
28286 | int | |
28287 | main () | |
28288 | { | |
28289 | esd_close (); | |
28290 | ; | |
28291 | return 0; | |
28292 | } | |
28293 | _ACEOF | |
28294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28296 | (eval $ac_link) 2>&5 | |
28297 | ac_status=$? | |
28298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28299 | (exit $ac_status); } && | |
28300 | { ac_try='test -s conftest$ac_exeext' | |
28301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28302 | (eval $ac_try) 2>&5 | |
28303 | ac_status=$? | |
28304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28305 | (exit $ac_status); }; }; then | |
28306 | ac_cv_lib_esd_esd_close=yes | |
28307 | else | |
28308 | echo "$as_me: failed program was:" >&5 | |
28309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28310 | ||
28311 | ac_cv_lib_esd_esd_close=no | |
28312 | fi | |
28313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28314 | LIBS=$ac_check_lib_save_LIBS | |
28315 | fi | |
28316 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28317 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28318 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28319 | ||
28320 | ESD_LINK="-lesd" | |
28321 | ||
28322 | fi | |
28323 | ||
28324 | ||
28325 | fi | |
28326 | ||
28327 | ||
28328 | ||
28329 | ||
28330 | ||
28331 | cat >confcache <<\_ACEOF | |
28332 | # This file is a shell script that caches the results of configure | |
28333 | # tests run on this system so they can be shared between configure | |
28334 | # scripts and configure runs, see configure's option --config-cache. | |
28335 | # It is not useful on other systems. If it contains results you don't | |
28336 | # want to keep, you may remove or edit it. | |
28337 | # | |
28338 | # config.status only pays attention to the cache file if you give it | |
28339 | # the --recheck option to rerun configure. | |
28340 | # | |
28341 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
28342 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28343 | # following values. | |
28344 | ||
28345 | _ACEOF | |
28346 | ||
28347 | # The following way of writing the cache mishandles newlines in values, | |
28348 | # but we know of no workaround that is simple, portable, and efficient. | |
28349 | # So, don't put newlines in cache variables' values. | |
28350 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28351 | # and sets the high bit in the cache file unless we assign to the vars. | |
28352 | { | |
28353 | (set) 2>&1 | | |
28354 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28355 | *ac_space=\ *) | |
28356 | # `set' does not quote correctly, so add quotes (double-quote | |
28357 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28358 | sed -n \ | |
28359 | "s/'/'\\\\''/g; | |
28360 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28361 | ;; | |
28362 | *) | |
28363 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28364 | sed -n \ | |
28365 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28366 | ;; | |
28367 | esac; | |
28368 | } | | |
28369 | sed ' | |
28370 | t clear | |
28371 | : clear | |
28372 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28373 | t end | |
28374 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28375 | : end' >>confcache | |
28376 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
28377 | if test -w $cache_file; then | |
28378 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
28379 | cat confcache >$cache_file | |
28380 | else | |
28381 | echo "not updating unwritable cache $cache_file" | |
28382 | fi | |
28383 | fi | |
28384 | rm -f confcache | |
28385 | ||
28386 | ||
28387 | CPP_MT_FLAG= | |
28388 | if test "$TOOLKIT" != "MSW"; then | |
28389 | ||
28390 | ||
28391 | THREADS_LINK= | |
28392 | THREADS_CFLAGS= | |
28393 | ||
28394 | if test "$wxUSE_THREADS" = "yes" ; then | |
28395 | if test "$USE_BEOS" = 1; then | |
28396 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
28397 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
28398 | wxUSE_THREADS="no" | |
28399 | fi | |
28400 | fi | |
28401 | ||
28402 | if test "$wxUSE_THREADS" = "yes" ; then | |
28403 | ||
28404 | ||
28405 | THREAD_OPTS="-pthread" | |
28406 | case "${host}" in | |
28407 | *-*-solaris2* | *-*-sunos4* ) | |
28408 | if test "x$GCC" = "xyes"; then | |
28409 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
28410 | else | |
28411 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28412 | fi | |
28413 | ;; | |
28414 | *-*-freebsd*) | |
28415 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28416 | ;; | |
28417 | *-*-darwin* | *-*-cygwin* ) | |
28418 | THREAD_OPTS="" | |
28419 | ;; | |
28420 | *-*-aix*) | |
28421 | THREAD_OPTS="pthreads" | |
28422 | ;; | |
28423 | *-hp-hpux* ) | |
28424 | if test "x$GCC" != "xyes"; then | |
28425 | THREAD_OPTS="" | |
28426 | fi | |
28427 | ;; | |
28428 | ||
28429 | *-*-irix* ) | |
28430 | if test "x$GCC" = "xyes"; then | |
28431 | THREAD_OPTS="" | |
28432 | fi | |
28433 | ;; | |
28434 | ||
28435 | *-*-*UnixWare*) | |
28436 | if test "x$GCC" != "xyes"; then | |
28437 | THREAD_OPTS="-Ethread" | |
28438 | fi | |
28439 | ;; | |
28440 | esac | |
28441 | ||
28442 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
28443 | ||
28444 | THREADS_OK=no | |
28445 | for flag in $THREAD_OPTS; do | |
28446 | case $flag in | |
28447 | none) | |
28448 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
28449 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
28450 | ;; | |
28451 | ||
28452 | -*) | |
28453 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
28454 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
28455 | THREADS_CFLAGS="$flag" | |
28456 | ;; | |
28457 | ||
28458 | *) | |
28459 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
28460 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
28461 | THREADS_LINK="-l$flag" | |
28462 | ;; | |
28463 | esac | |
28464 | ||
28465 | save_LIBS="$LIBS" | |
28466 | save_CFLAGS="$CFLAGS" | |
28467 | LIBS="$THREADS_LINK $LIBS" | |
28468 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
28469 | ||
28470 | cat >conftest.$ac_ext <<_ACEOF | |
28471 | #line $LINENO "configure" | |
28472 | /* confdefs.h. */ | |
28473 | _ACEOF | |
28474 | cat confdefs.h >>conftest.$ac_ext | |
28475 | cat >>conftest.$ac_ext <<_ACEOF | |
28476 | /* end confdefs.h. */ | |
28477 | #include <pthread.h> | |
28478 | int | |
28479 | main () | |
28480 | { | |
28481 | pthread_create(0,0,0,0); | |
28482 | ; | |
28483 | return 0; | |
28484 | } | |
28485 | _ACEOF | |
28486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28488 | (eval $ac_link) 2>&5 | |
28489 | ac_status=$? | |
28490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28491 | (exit $ac_status); } && | |
28492 | { ac_try='test -s conftest$ac_exeext' | |
28493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28494 | (eval $ac_try) 2>&5 | |
28495 | ac_status=$? | |
28496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28497 | (exit $ac_status); }; }; then | |
28498 | THREADS_OK=yes | |
28499 | else | |
28500 | echo "$as_me: failed program was:" >&5 | |
28501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28502 | ||
28503 | fi | |
28504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28505 | ||
28506 | LIBS="$save_LIBS" | |
28507 | CFLAGS="$save_CFLAGS" | |
28508 | ||
28509 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
28510 | echo "${ECHO_T}$THREADS_OK" >&6 | |
28511 | if test "x$THREADS_OK" = "xyes"; then | |
28512 | break; | |
28513 | fi | |
28514 | ||
28515 | THREADS_LINK="" | |
28516 | THREADS_CFLAGS="" | |
28517 | done | |
28518 | ||
28519 | if test "x$THREADS_OK" != "xyes"; then | |
28520 | wxUSE_THREADS=no | |
28521 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
28522 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
28523 | else | |
28524 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
28525 | LIBS="$THREADS_LINK $LIBS" | |
28526 | ||
28527 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
28528 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
28529 | flag=no | |
28530 | case "${host}" in | |
28531 | *-aix*) | |
28532 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
28533 | flag="-D_THREAD_SAFE" | |
28534 | ;; | |
28535 | *-freebsd*) | |
28536 | flag="-D_THREAD_SAFE" | |
28537 | ;; | |
28538 | *-hp-hpux* ) | |
28539 | flag="-D_REENTRANT" | |
28540 | if test "x$GCC" != "xyes"; then | |
28541 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
28542 | fi | |
28543 | ;; | |
28544 | *solaris* | alpha*-osf*) | |
28545 | flag="-D_REENTRANT" | |
28546 | ;; | |
28547 | esac | |
28548 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
28549 | echo "${ECHO_T}${flag}" >&6 | |
28550 | if test "x$flag" != xno; then | |
28551 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
28552 | fi | |
28553 | ||
28554 | if test "x$THREADS_CFLAGS" != "x"; then | |
28555 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
28556 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
28557 | fi | |
28558 | fi | |
28559 | fi | |
28560 | ||
28561 | if test "$wxUSE_THREADS" = "yes" ; then | |
28562 | ||
28563 | for ac_func in thr_setconcurrency | |
28564 | do | |
28565 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28566 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28567 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28568 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28570 | else | |
28571 | cat >conftest.$ac_ext <<_ACEOF | |
28572 | #line $LINENO "configure" | |
28573 | /* confdefs.h. */ | |
28574 | _ACEOF | |
28575 | cat confdefs.h >>conftest.$ac_ext | |
28576 | cat >>conftest.$ac_ext <<_ACEOF | |
28577 | /* end confdefs.h. */ | |
28578 | /* System header to define __stub macros and hopefully few prototypes, | |
28579 | which can conflict with char $ac_func (); below. | |
28580 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28581 | <limits.h> exists even on freestanding compilers. */ | |
28582 | #ifdef __STDC__ | |
28583 | # include <limits.h> | |
28584 | #else | |
28585 | # include <assert.h> | |
28586 | #endif | |
28587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28588 | #ifdef __cplusplus | |
28589 | extern "C" | |
28590 | { | |
28591 | #endif | |
28592 | /* We use char because int might match the return type of a gcc2 | |
28593 | builtin and then its argument prototype would still apply. */ | |
28594 | char $ac_func (); | |
28595 | /* The GNU C library defines this for functions which it implements | |
28596 | to always fail with ENOSYS. Some functions are actually named | |
28597 | something starting with __ and the normal name is an alias. */ | |
28598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28599 | choke me | |
28600 | #else | |
28601 | char (*f) () = $ac_func; | |
28602 | #endif | |
28603 | #ifdef __cplusplus | |
28604 | } | |
28605 | #endif | |
28606 | ||
28607 | int | |
28608 | main () | |
28609 | { | |
28610 | return f != $ac_func; | |
28611 | ; | |
28612 | return 0; | |
28613 | } | |
28614 | _ACEOF | |
28615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28617 | (eval $ac_link) 2>&5 | |
28618 | ac_status=$? | |
28619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28620 | (exit $ac_status); } && | |
28621 | { ac_try='test -s conftest$ac_exeext' | |
28622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28623 | (eval $ac_try) 2>&5 | |
28624 | ac_status=$? | |
28625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28626 | (exit $ac_status); }; }; then | |
28627 | eval "$as_ac_var=yes" | |
28628 | else | |
28629 | echo "$as_me: failed program was:" >&5 | |
28630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28631 | ||
28632 | eval "$as_ac_var=no" | |
28633 | fi | |
28634 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28635 | fi | |
28636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28639 | cat >>confdefs.h <<_ACEOF | |
28640 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28641 | _ACEOF | |
28642 | ||
28643 | fi | |
28644 | done | |
28645 | ||
28646 | ||
28647 | ||
28648 | for ac_header in sched.h | |
28649 | do | |
28650 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28652 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28653 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28656 | fi | |
28657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28659 | else | |
28660 | # Is the header compilable? | |
28661 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
28662 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
28663 | cat >conftest.$ac_ext <<_ACEOF | |
28664 | #line $LINENO "configure" | |
28665 | /* confdefs.h. */ | |
28666 | _ACEOF | |
28667 | cat confdefs.h >>conftest.$ac_ext | |
28668 | cat >>conftest.$ac_ext <<_ACEOF | |
28669 | /* end confdefs.h. */ | |
28670 | $ac_includes_default | |
28671 | #include <$ac_header> | |
28672 | _ACEOF | |
28673 | rm -f conftest.$ac_objext | |
28674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28675 | (eval $ac_compile) 2>&5 | |
28676 | ac_status=$? | |
28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28678 | (exit $ac_status); } && | |
28679 | { ac_try='test -s conftest.$ac_objext' | |
28680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28681 | (eval $ac_try) 2>&5 | |
28682 | ac_status=$? | |
28683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28684 | (exit $ac_status); }; }; then | |
28685 | ac_header_compiler=yes | |
28686 | else | |
28687 | echo "$as_me: failed program was:" >&5 | |
28688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28689 | ||
28690 | ac_header_compiler=no | |
28691 | fi | |
28692 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28693 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28694 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28695 | ||
28696 | # Is the header present? | |
28697 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
28698 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
28699 | cat >conftest.$ac_ext <<_ACEOF | |
28700 | #line $LINENO "configure" | |
28701 | /* confdefs.h. */ | |
28702 | _ACEOF | |
28703 | cat confdefs.h >>conftest.$ac_ext | |
28704 | cat >>conftest.$ac_ext <<_ACEOF | |
28705 | /* end confdefs.h. */ | |
28706 | #include <$ac_header> | |
28707 | _ACEOF | |
28708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28710 | ac_status=$? | |
28711 | grep -v '^ *+' conftest.er1 >conftest.err | |
28712 | rm -f conftest.er1 | |
28713 | cat conftest.err >&5 | |
28714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28715 | (exit $ac_status); } >/dev/null; then | |
28716 | if test -s conftest.err; then | |
28717 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28718 | else | |
28719 | ac_cpp_err= | |
28720 | fi | |
28721 | else | |
28722 | ac_cpp_err=yes | |
28723 | fi | |
28724 | if test -z "$ac_cpp_err"; then | |
28725 | ac_header_preproc=yes | |
28726 | else | |
28727 | echo "$as_me: failed program was:" >&5 | |
28728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28729 | ||
28730 | ac_header_preproc=no | |
28731 | fi | |
28732 | rm -f conftest.err conftest.$ac_ext | |
28733 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28734 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28735 | ||
28736 | # So? What about this header? | |
28737 | case $ac_header_compiler:$ac_header_preproc in | |
28738 | yes:no ) | |
28739 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28740 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28742 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28743 | ( | |
28744 | cat <<\_ASBOX | |
28745 | ## ------------------------------------ ## | |
28746 | ## Report this to bug-autoconf@gnu.org. ## | |
28747 | ## ------------------------------------ ## | |
28748 | _ASBOX | |
28749 | ) | | |
28750 | sed "s/^/$as_me: WARNING: /" >&2 | |
28751 | ;; | |
28752 | no:yes ) | |
28753 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
28754 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28755 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28756 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28757 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28758 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28759 | ( | |
28760 | cat <<\_ASBOX | |
28761 | ## ------------------------------------ ## | |
28762 | ## Report this to bug-autoconf@gnu.org. ## | |
28763 | ## ------------------------------------ ## | |
28764 | _ASBOX | |
28765 | ) | | |
28766 | sed "s/^/$as_me: WARNING: /" >&2 | |
28767 | ;; | |
28768 | esac | |
28769 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28770 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28771 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28773 | else | |
28774 | eval "$as_ac_Header=$ac_header_preproc" | |
28775 | fi | |
28776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28778 | ||
28779 | fi | |
28780 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28781 | cat >>confdefs.h <<_ACEOF | |
28782 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28783 | _ACEOF | |
28784 | ||
28785 | fi | |
28786 | ||
28787 | done | |
28788 | ||
28789 | if test "$ac_cv_header_sched_h" = "yes"; then | |
28790 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
28791 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
28792 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
28793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28794 | else | |
28795 | cat >conftest.$ac_ext <<_ACEOF | |
28796 | #line $LINENO "configure" | |
28797 | /* confdefs.h. */ | |
28798 | _ACEOF | |
28799 | cat confdefs.h >>conftest.$ac_ext | |
28800 | cat >>conftest.$ac_ext <<_ACEOF | |
28801 | /* end confdefs.h. */ | |
28802 | /* System header to define __stub macros and hopefully few prototypes, | |
28803 | which can conflict with char sched_yield (); below. | |
28804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28805 | <limits.h> exists even on freestanding compilers. */ | |
28806 | #ifdef __STDC__ | |
28807 | # include <limits.h> | |
28808 | #else | |
28809 | # include <assert.h> | |
28810 | #endif | |
28811 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28812 | #ifdef __cplusplus | |
28813 | extern "C" | |
28814 | { | |
28815 | #endif | |
28816 | /* We use char because int might match the return type of a gcc2 | |
28817 | builtin and then its argument prototype would still apply. */ | |
28818 | char sched_yield (); | |
28819 | /* The GNU C library defines this for functions which it implements | |
28820 | to always fail with ENOSYS. Some functions are actually named | |
28821 | something starting with __ and the normal name is an alias. */ | |
28822 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
28823 | choke me | |
28824 | #else | |
28825 | char (*f) () = sched_yield; | |
28826 | #endif | |
28827 | #ifdef __cplusplus | |
28828 | } | |
28829 | #endif | |
28830 | ||
28831 | int | |
28832 | main () | |
28833 | { | |
28834 | return f != sched_yield; | |
28835 | ; | |
28836 | return 0; | |
28837 | } | |
28838 | _ACEOF | |
28839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28841 | (eval $ac_link) 2>&5 | |
28842 | ac_status=$? | |
28843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28844 | (exit $ac_status); } && | |
28845 | { ac_try='test -s conftest$ac_exeext' | |
28846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28847 | (eval $ac_try) 2>&5 | |
28848 | ac_status=$? | |
28849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28850 | (exit $ac_status); }; }; then | |
28851 | ac_cv_func_sched_yield=yes | |
28852 | else | |
28853 | echo "$as_me: failed program was:" >&5 | |
28854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28855 | ||
28856 | ac_cv_func_sched_yield=no | |
28857 | fi | |
28858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28859 | fi | |
28860 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
28861 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
28862 | if test $ac_cv_func_sched_yield = yes; then | |
28863 | cat >>confdefs.h <<\_ACEOF | |
28864 | #define HAVE_SCHED_YIELD 1 | |
28865 | _ACEOF | |
28866 | ||
28867 | else | |
28868 | ||
28869 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
28870 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
28871 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
28872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28873 | else | |
28874 | ac_check_lib_save_LIBS=$LIBS | |
28875 | LIBS="-lposix4 $LIBS" | |
28876 | cat >conftest.$ac_ext <<_ACEOF | |
28877 | #line $LINENO "configure" | |
28878 | /* confdefs.h. */ | |
28879 | _ACEOF | |
28880 | cat confdefs.h >>conftest.$ac_ext | |
28881 | cat >>conftest.$ac_ext <<_ACEOF | |
28882 | /* end confdefs.h. */ | |
28883 | ||
28884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28885 | #ifdef __cplusplus | |
28886 | extern "C" | |
28887 | #endif | |
28888 | /* We use char because int might match the return type of a gcc2 | |
28889 | builtin and then its argument prototype would still apply. */ | |
28890 | char sched_yield (); | |
28891 | int | |
28892 | main () | |
28893 | { | |
28894 | sched_yield (); | |
28895 | ; | |
28896 | return 0; | |
28897 | } | |
28898 | _ACEOF | |
28899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28901 | (eval $ac_link) 2>&5 | |
28902 | ac_status=$? | |
28903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28904 | (exit $ac_status); } && | |
28905 | { ac_try='test -s conftest$ac_exeext' | |
28906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28907 | (eval $ac_try) 2>&5 | |
28908 | ac_status=$? | |
28909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28910 | (exit $ac_status); }; }; then | |
28911 | ac_cv_lib_posix4_sched_yield=yes | |
28912 | else | |
28913 | echo "$as_me: failed program was:" >&5 | |
28914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28915 | ||
28916 | ac_cv_lib_posix4_sched_yield=no | |
28917 | fi | |
28918 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28919 | LIBS=$ac_check_lib_save_LIBS | |
28920 | fi | |
28921 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
28922 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
28923 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
28924 | cat >>confdefs.h <<\_ACEOF | |
28925 | #define HAVE_SCHED_YIELD 1 | |
28926 | _ACEOF | |
28927 | POSIX4_LINK=" -lposix4" | |
28928 | else | |
28929 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
28930 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
28931 | ||
28932 | fi | |
28933 | ||
28934 | ||
28935 | ||
28936 | fi | |
28937 | ||
28938 | fi | |
28939 | ||
28940 | HAVE_PRIOR_FUNCS=0 | |
28941 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
28942 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
28943 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
28944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28945 | else | |
28946 | cat >conftest.$ac_ext <<_ACEOF | |
28947 | #line $LINENO "configure" | |
28948 | /* confdefs.h. */ | |
28949 | _ACEOF | |
28950 | cat confdefs.h >>conftest.$ac_ext | |
28951 | cat >>conftest.$ac_ext <<_ACEOF | |
28952 | /* end confdefs.h. */ | |
28953 | /* System header to define __stub macros and hopefully few prototypes, | |
28954 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
28955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28956 | <limits.h> exists even on freestanding compilers. */ | |
28957 | #ifdef __STDC__ | |
28958 | # include <limits.h> | |
28959 | #else | |
28960 | # include <assert.h> | |
28961 | #endif | |
28962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28963 | #ifdef __cplusplus | |
28964 | extern "C" | |
28965 | { | |
28966 | #endif | |
28967 | /* We use char because int might match the return type of a gcc2 | |
28968 | builtin and then its argument prototype would still apply. */ | |
28969 | char pthread_attr_getschedpolicy (); | |
28970 | /* The GNU C library defines this for functions which it implements | |
28971 | to always fail with ENOSYS. Some functions are actually named | |
28972 | something starting with __ and the normal name is an alias. */ | |
28973 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
28974 | choke me | |
28975 | #else | |
28976 | char (*f) () = pthread_attr_getschedpolicy; | |
28977 | #endif | |
28978 | #ifdef __cplusplus | |
28979 | } | |
28980 | #endif | |
28981 | ||
28982 | int | |
28983 | main () | |
28984 | { | |
28985 | return f != pthread_attr_getschedpolicy; | |
28986 | ; | |
28987 | return 0; | |
28988 | } | |
28989 | _ACEOF | |
28990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28992 | (eval $ac_link) 2>&5 | |
28993 | ac_status=$? | |
28994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28995 | (exit $ac_status); } && | |
28996 | { ac_try='test -s conftest$ac_exeext' | |
28997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28998 | (eval $ac_try) 2>&5 | |
28999 | ac_status=$? | |
29000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29001 | (exit $ac_status); }; }; then | |
29002 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29003 | else | |
29004 | echo "$as_me: failed program was:" >&5 | |
29005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29006 | ||
29007 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29008 | fi | |
29009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29010 | fi | |
29011 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29012 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29013 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29014 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29015 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29016 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29018 | else | |
29019 | cat >conftest.$ac_ext <<_ACEOF | |
29020 | #line $LINENO "configure" | |
29021 | /* confdefs.h. */ | |
29022 | _ACEOF | |
29023 | cat confdefs.h >>conftest.$ac_ext | |
29024 | cat >>conftest.$ac_ext <<_ACEOF | |
29025 | /* end confdefs.h. */ | |
29026 | /* System header to define __stub macros and hopefully few prototypes, | |
29027 | which can conflict with char pthread_attr_setschedparam (); below. | |
29028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29029 | <limits.h> exists even on freestanding compilers. */ | |
29030 | #ifdef __STDC__ | |
29031 | # include <limits.h> | |
29032 | #else | |
29033 | # include <assert.h> | |
29034 | #endif | |
29035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29036 | #ifdef __cplusplus | |
29037 | extern "C" | |
29038 | { | |
29039 | #endif | |
29040 | /* We use char because int might match the return type of a gcc2 | |
29041 | builtin and then its argument prototype would still apply. */ | |
29042 | char pthread_attr_setschedparam (); | |
29043 | /* The GNU C library defines this for functions which it implements | |
29044 | to always fail with ENOSYS. Some functions are actually named | |
29045 | something starting with __ and the normal name is an alias. */ | |
29046 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29047 | choke me | |
29048 | #else | |
29049 | char (*f) () = pthread_attr_setschedparam; | |
29050 | #endif | |
29051 | #ifdef __cplusplus | |
29052 | } | |
29053 | #endif | |
29054 | ||
29055 | int | |
29056 | main () | |
29057 | { | |
29058 | return f != pthread_attr_setschedparam; | |
29059 | ; | |
29060 | return 0; | |
29061 | } | |
29062 | _ACEOF | |
29063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29065 | (eval $ac_link) 2>&5 | |
29066 | ac_status=$? | |
29067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29068 | (exit $ac_status); } && | |
29069 | { ac_try='test -s conftest$ac_exeext' | |
29070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29071 | (eval $ac_try) 2>&5 | |
29072 | ac_status=$? | |
29073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29074 | (exit $ac_status); }; }; then | |
29075 | ac_cv_func_pthread_attr_setschedparam=yes | |
29076 | else | |
29077 | echo "$as_me: failed program was:" >&5 | |
29078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29079 | ||
29080 | ac_cv_func_pthread_attr_setschedparam=no | |
29081 | fi | |
29082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29083 | fi | |
29084 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29085 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29086 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29087 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29088 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29089 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29091 | else | |
29092 | cat >conftest.$ac_ext <<_ACEOF | |
29093 | #line $LINENO "configure" | |
29094 | /* confdefs.h. */ | |
29095 | _ACEOF | |
29096 | cat confdefs.h >>conftest.$ac_ext | |
29097 | cat >>conftest.$ac_ext <<_ACEOF | |
29098 | /* end confdefs.h. */ | |
29099 | /* System header to define __stub macros and hopefully few prototypes, | |
29100 | which can conflict with char sched_get_priority_max (); below. | |
29101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29102 | <limits.h> exists even on freestanding compilers. */ | |
29103 | #ifdef __STDC__ | |
29104 | # include <limits.h> | |
29105 | #else | |
29106 | # include <assert.h> | |
29107 | #endif | |
29108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29109 | #ifdef __cplusplus | |
29110 | extern "C" | |
29111 | { | |
29112 | #endif | |
29113 | /* We use char because int might match the return type of a gcc2 | |
29114 | builtin and then its argument prototype would still apply. */ | |
29115 | char sched_get_priority_max (); | |
29116 | /* The GNU C library defines this for functions which it implements | |
29117 | to always fail with ENOSYS. Some functions are actually named | |
29118 | something starting with __ and the normal name is an alias. */ | |
29119 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29120 | choke me | |
29121 | #else | |
29122 | char (*f) () = sched_get_priority_max; | |
29123 | #endif | |
29124 | #ifdef __cplusplus | |
29125 | } | |
29126 | #endif | |
29127 | ||
29128 | int | |
29129 | main () | |
29130 | { | |
29131 | return f != sched_get_priority_max; | |
29132 | ; | |
29133 | return 0; | |
29134 | } | |
29135 | _ACEOF | |
29136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29138 | (eval $ac_link) 2>&5 | |
29139 | ac_status=$? | |
29140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29141 | (exit $ac_status); } && | |
29142 | { ac_try='test -s conftest$ac_exeext' | |
29143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29144 | (eval $ac_try) 2>&5 | |
29145 | ac_status=$? | |
29146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29147 | (exit $ac_status); }; }; then | |
29148 | ac_cv_func_sched_get_priority_max=yes | |
29149 | else | |
29150 | echo "$as_me: failed program was:" >&5 | |
29151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29152 | ||
29153 | ac_cv_func_sched_get_priority_max=no | |
29154 | fi | |
29155 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29156 | fi | |
29157 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29158 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29159 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
29160 | HAVE_PRIOR_FUNCS=1 | |
29161 | else | |
29162 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
29163 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29164 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29166 | else | |
29167 | ac_check_lib_save_LIBS=$LIBS | |
29168 | LIBS="-lposix4 $LIBS" | |
29169 | cat >conftest.$ac_ext <<_ACEOF | |
29170 | #line $LINENO "configure" | |
29171 | /* confdefs.h. */ | |
29172 | _ACEOF | |
29173 | cat confdefs.h >>conftest.$ac_ext | |
29174 | cat >>conftest.$ac_ext <<_ACEOF | |
29175 | /* end confdefs.h. */ | |
29176 | ||
29177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29178 | #ifdef __cplusplus | |
29179 | extern "C" | |
29180 | #endif | |
29181 | /* We use char because int might match the return type of a gcc2 | |
29182 | builtin and then its argument prototype would still apply. */ | |
29183 | char sched_get_priority_max (); | |
29184 | int | |
29185 | main () | |
29186 | { | |
29187 | sched_get_priority_max (); | |
29188 | ; | |
29189 | return 0; | |
29190 | } | |
29191 | _ACEOF | |
29192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29194 | (eval $ac_link) 2>&5 | |
29195 | ac_status=$? | |
29196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29197 | (exit $ac_status); } && | |
29198 | { ac_try='test -s conftest$ac_exeext' | |
29199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29200 | (eval $ac_try) 2>&5 | |
29201 | ac_status=$? | |
29202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29203 | (exit $ac_status); }; }; then | |
29204 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29205 | else | |
29206 | echo "$as_me: failed program was:" >&5 | |
29207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29208 | ||
29209 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29210 | fi | |
29211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29212 | LIBS=$ac_check_lib_save_LIBS | |
29213 | fi | |
29214 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29215 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29216 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
29217 | ||
29218 | HAVE_PRIOR_FUNCS=1 | |
29219 | POSIX4_LINK=" -lposix4" | |
29220 | ||
29221 | fi | |
29222 | ||
29223 | ||
29224 | fi | |
29225 | ||
29226 | ||
29227 | fi | |
29228 | ||
29229 | ||
29230 | fi | |
29231 | ||
29232 | ||
29233 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
29234 | cat >>confdefs.h <<\_ACEOF | |
29235 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
29236 | _ACEOF | |
29237 | ||
29238 | else | |
29239 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
29240 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
29241 | fi | |
29242 | ||
29243 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
29244 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29245 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29247 | else | |
29248 | cat >conftest.$ac_ext <<_ACEOF | |
29249 | #line $LINENO "configure" | |
29250 | /* confdefs.h. */ | |
29251 | _ACEOF | |
29252 | cat confdefs.h >>conftest.$ac_ext | |
29253 | cat >>conftest.$ac_ext <<_ACEOF | |
29254 | /* end confdefs.h. */ | |
29255 | /* System header to define __stub macros and hopefully few prototypes, | |
29256 | which can conflict with char pthread_cancel (); below. | |
29257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29258 | <limits.h> exists even on freestanding compilers. */ | |
29259 | #ifdef __STDC__ | |
29260 | # include <limits.h> | |
29261 | #else | |
29262 | # include <assert.h> | |
29263 | #endif | |
29264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29265 | #ifdef __cplusplus | |
29266 | extern "C" | |
29267 | { | |
29268 | #endif | |
29269 | /* We use char because int might match the return type of a gcc2 | |
29270 | builtin and then its argument prototype would still apply. */ | |
29271 | char pthread_cancel (); | |
29272 | /* The GNU C library defines this for functions which it implements | |
29273 | to always fail with ENOSYS. Some functions are actually named | |
29274 | something starting with __ and the normal name is an alias. */ | |
29275 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29276 | choke me | |
29277 | #else | |
29278 | char (*f) () = pthread_cancel; | |
29279 | #endif | |
29280 | #ifdef __cplusplus | |
29281 | } | |
29282 | #endif | |
29283 | ||
29284 | int | |
29285 | main () | |
29286 | { | |
29287 | return f != pthread_cancel; | |
29288 | ; | |
29289 | return 0; | |
29290 | } | |
29291 | _ACEOF | |
29292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29294 | (eval $ac_link) 2>&5 | |
29295 | ac_status=$? | |
29296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29297 | (exit $ac_status); } && | |
29298 | { ac_try='test -s conftest$ac_exeext' | |
29299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29300 | (eval $ac_try) 2>&5 | |
29301 | ac_status=$? | |
29302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29303 | (exit $ac_status); }; }; then | |
29304 | ac_cv_func_pthread_cancel=yes | |
29305 | else | |
29306 | echo "$as_me: failed program was:" >&5 | |
29307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29308 | ||
29309 | ac_cv_func_pthread_cancel=no | |
29310 | fi | |
29311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29312 | fi | |
29313 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29314 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29315 | if test $ac_cv_func_pthread_cancel = yes; then | |
29316 | cat >>confdefs.h <<\_ACEOF | |
29317 | #define HAVE_PTHREAD_CANCEL 1 | |
29318 | _ACEOF | |
29319 | ||
29320 | else | |
29321 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
29322 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
29323 | fi | |
29324 | ||
29325 | ||
29326 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 | |
29327 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29328 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29330 | else | |
29331 | ||
29332 | cat >conftest.$ac_ext <<_ACEOF | |
29333 | #line $LINENO "configure" | |
29334 | /* confdefs.h. */ | |
29335 | _ACEOF | |
29336 | cat confdefs.h >>conftest.$ac_ext | |
29337 | cat >>conftest.$ac_ext <<_ACEOF | |
29338 | /* end confdefs.h. */ | |
29339 | #include <pthread.h> | |
29340 | int | |
29341 | main () | |
29342 | { | |
29343 | ||
29344 | pthread_cleanup_push(NULL, NULL); | |
29345 | pthread_cleanup_pop(0); | |
29346 | ||
29347 | ; | |
29348 | return 0; | |
29349 | } | |
29350 | _ACEOF | |
29351 | rm -f conftest.$ac_objext | |
29352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29353 | (eval $ac_compile) 2>&5 | |
29354 | ac_status=$? | |
29355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29356 | (exit $ac_status); } && | |
29357 | { ac_try='test -s conftest.$ac_objext' | |
29358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29359 | (eval $ac_try) 2>&5 | |
29360 | ac_status=$? | |
29361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29362 | (exit $ac_status); }; }; then | |
29363 | ||
29364 | wx_cv_func_pthread_cleanup_push=yes | |
29365 | ||
29366 | else | |
29367 | echo "$as_me: failed program was:" >&5 | |
29368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29369 | ||
29370 | ||
29371 | wx_cv_func_pthread_cleanup_push=no | |
29372 | ||
29373 | fi | |
29374 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29375 | ||
29376 | fi | |
29377 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29378 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
29379 | ||
29380 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
29381 | cat >>confdefs.h <<\_ACEOF | |
29382 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
29383 | _ACEOF | |
29384 | ||
29385 | fi | |
29386 | ||
29387 | ||
29388 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29389 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29390 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29392 | else | |
29393 | ||
29394 | cat >conftest.$ac_ext <<_ACEOF | |
29395 | #line $LINENO "configure" | |
29396 | /* confdefs.h. */ | |
29397 | _ACEOF | |
29398 | cat confdefs.h >>conftest.$ac_ext | |
29399 | cat >>conftest.$ac_ext <<_ACEOF | |
29400 | /* end confdefs.h. */ | |
29401 | #include <pthread.h> | |
29402 | int | |
29403 | main () | |
29404 | { | |
29405 | ||
29406 | pthread_mutexattr_t attr; | |
29407 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
29408 | ||
29409 | ; | |
29410 | return 0; | |
29411 | } | |
29412 | _ACEOF | |
29413 | rm -f conftest.$ac_objext | |
29414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29415 | (eval $ac_compile) 2>&5 | |
29416 | ac_status=$? | |
29417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29418 | (exit $ac_status); } && | |
29419 | { ac_try='test -s conftest.$ac_objext' | |
29420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29421 | (eval $ac_try) 2>&5 | |
29422 | ac_status=$? | |
29423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29424 | (exit $ac_status); }; }; then | |
29425 | ||
29426 | wx_cv_type_pthread_mutexattr_t=yes | |
29427 | ||
29428 | else | |
29429 | echo "$as_me: failed program was:" >&5 | |
29430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29431 | ||
29432 | ||
29433 | wx_cv_type_pthread_mutexattr_t=no | |
29434 | ||
29435 | ||
29436 | fi | |
29437 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29438 | ||
29439 | fi | |
29440 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29441 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
29442 | ||
29443 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
29444 | cat >>confdefs.h <<\_ACEOF | |
29445 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
29446 | _ACEOF | |
29447 | ||
29448 | else | |
29449 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
29450 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29451 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29453 | else | |
29454 | ||
29455 | cat >conftest.$ac_ext <<_ACEOF | |
29456 | #line $LINENO "configure" | |
29457 | /* confdefs.h. */ | |
29458 | _ACEOF | |
29459 | cat confdefs.h >>conftest.$ac_ext | |
29460 | cat >>conftest.$ac_ext <<_ACEOF | |
29461 | /* end confdefs.h. */ | |
29462 | #include <pthread.h> | |
29463 | int | |
29464 | main () | |
29465 | { | |
29466 | ||
29467 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
29468 | ||
29469 | ; | |
29470 | return 0; | |
29471 | } | |
29472 | _ACEOF | |
29473 | rm -f conftest.$ac_objext | |
29474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29475 | (eval $ac_compile) 2>&5 | |
29476 | ac_status=$? | |
29477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29478 | (exit $ac_status); } && | |
29479 | { ac_try='test -s conftest.$ac_objext' | |
29480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29481 | (eval $ac_try) 2>&5 | |
29482 | ac_status=$? | |
29483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29484 | (exit $ac_status); }; }; then | |
29485 | ||
29486 | wx_cv_type_pthread_rec_mutex_init=yes | |
29487 | ||
29488 | else | |
29489 | echo "$as_me: failed program was:" >&5 | |
29490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29491 | ||
29492 | ||
29493 | wx_cv_type_pthread_rec_mutex_init=no | |
29494 | ||
29495 | ||
29496 | fi | |
29497 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29498 | ||
29499 | fi | |
29500 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
29501 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
29502 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
29503 | cat >>confdefs.h <<\_ACEOF | |
29504 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
29505 | _ACEOF | |
29506 | ||
29507 | else | |
29508 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
29509 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
29510 | fi | |
29511 | fi | |
29512 | fi | |
29513 | ||
29514 | else | |
29515 | if test "$wxUSE_THREADS" = "yes" ; then | |
29516 | case "${host}" in | |
29517 | *-*-mingw32* ) | |
29518 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
29519 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
29520 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
29521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29522 | else | |
29523 | ||
29524 | CFLAGS_OLD="$CFLAGS" | |
29525 | CFLAGS="$CFLAGS -mthreads" | |
29526 | cat >conftest.$ac_ext <<_ACEOF | |
29527 | #line $LINENO "configure" | |
29528 | /* confdefs.h. */ | |
29529 | _ACEOF | |
29530 | cat confdefs.h >>conftest.$ac_ext | |
29531 | cat >>conftest.$ac_ext <<_ACEOF | |
29532 | /* end confdefs.h. */ | |
29533 | ||
29534 | int | |
29535 | main () | |
29536 | { | |
29537 | ||
29538 | ; | |
29539 | return 0; | |
29540 | } | |
29541 | _ACEOF | |
29542 | rm -f conftest.$ac_objext | |
29543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29544 | (eval $ac_compile) 2>&5 | |
29545 | ac_status=$? | |
29546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29547 | (exit $ac_status); } && | |
29548 | { ac_try='test -s conftest.$ac_objext' | |
29549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29550 | (eval $ac_try) 2>&5 | |
29551 | ac_status=$? | |
29552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29553 | (exit $ac_status); }; }; then | |
29554 | wx_cv_cflags_mthread=yes | |
29555 | else | |
29556 | echo "$as_me: failed program was:" >&5 | |
29557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29558 | ||
29559 | wx_cv_cflags_mthread=no | |
29560 | ||
29561 | fi | |
29562 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29563 | ||
29564 | ||
29565 | fi | |
29566 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
29567 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
29568 | ||
29569 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
29570 | CXXFLAGS="$CXXFLAGS -mthreads" | |
29571 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
29572 | LDFLAGS="$LDFLAGS -mthreads" | |
29573 | else | |
29574 | CFLAGS="$CFLAGS_OLD" | |
29575 | fi | |
29576 | ;; | |
29577 | esac | |
29578 | fi | |
29579 | fi | |
29580 | ||
29581 | if test "$wxUSE_THREADS" = "yes"; then | |
29582 | cat >>confdefs.h <<\_ACEOF | |
29583 | #define wxUSE_THREADS 1 | |
29584 | _ACEOF | |
29585 | ||
29586 | ||
29587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
29588 | else | |
29589 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
29590 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
29591 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
29592 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
29593 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
29594 | echo "$as_me:$LINENO: result: yes" >&5 | |
29595 | echo "${ECHO_T}yes" >&6 | |
29596 | else | |
29597 | echo "$as_me:$LINENO: result: no" >&5 | |
29598 | echo "${ECHO_T}no" >&6 | |
29599 | fi | |
29600 | fi | |
29601 | fi | |
29602 | ||
29603 | if test "$WXGTK20" = 1 ; then | |
29604 | cat >>confdefs.h <<_ACEOF | |
29605 | #define __WXGTK20__ $WXGTK20 | |
29606 | _ACEOF | |
29607 | ||
29608 | WXGTK12=1 | |
29609 | fi | |
29610 | ||
29611 | if test "$WXGTK12" = 1 ; then | |
29612 | cat >>confdefs.h <<_ACEOF | |
29613 | #define __WXGTK12__ $WXGTK12 | |
29614 | _ACEOF | |
29615 | ||
29616 | fi | |
29617 | ||
29618 | if test "$WXGTK127" = 1 ; then | |
29619 | cat >>confdefs.h <<_ACEOF | |
29620 | #define __WXGTK127__ $WXGTK127 | |
29621 | _ACEOF | |
29622 | ||
29623 | fi | |
29624 | ||
29625 | WXDEBUG= | |
29626 | ||
29627 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
29628 | WXDEBUG="-g" | |
29629 | wxUSE_OPTIMISE=no | |
29630 | fi | |
29631 | ||
29632 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
29633 | wxUSE_DEBUG_INFO=yes | |
29634 | WXDEBUG="-ggdb" | |
29635 | fi | |
29636 | ||
29637 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
29638 | cat >>confdefs.h <<\_ACEOF | |
29639 | #define WXDEBUG 1 | |
29640 | _ACEOF | |
29641 | ||
29642 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
29643 | else | |
29644 | if test "$wxUSE_GTK" = 1 ; then | |
29645 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
29646 | fi | |
29647 | fi | |
29648 | ||
29649 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
29650 | cat >>confdefs.h <<\_ACEOF | |
29651 | #define wxUSE_MEMORY_TRACING 1 | |
29652 | _ACEOF | |
29653 | ||
29654 | cat >>confdefs.h <<\_ACEOF | |
29655 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
29656 | _ACEOF | |
29657 | ||
29658 | cat >>confdefs.h <<\_ACEOF | |
29659 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
29660 | _ACEOF | |
29661 | ||
29662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
29663 | fi | |
29664 | ||
29665 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
29666 | DMALLOC_LIBS="-ldmalloc" | |
29667 | fi | |
29668 | ||
29669 | PROFILE= | |
29670 | if test "$wxUSE_PROFILE" = "yes" ; then | |
29671 | PROFILE=" -pg" | |
29672 | fi | |
29673 | ||
29674 | CODE_GEN_FLAGS= | |
29675 | CODE_GEN_FLAGS_CXX= | |
29676 | if test "$GCC" = "yes" ; then | |
29677 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
29678 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
29679 | fi | |
29680 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
29681 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
29682 | fi | |
29683 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
29684 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
29685 | fi | |
29686 | if test "$USE_WIN32" = 1 ; then | |
29687 | # I'm not even really sure what this was ever added to solve, | |
29688 | # but someone added it for mingw native builds, so I guess | |
29689 | # they had a reason, right?? | |
29690 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
29691 | fi | |
29692 | ||
29693 | case "${host}" in | |
29694 | powerpc*-*-aix* ) | |
29695 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
29696 | ;; | |
29697 | *-hppa* ) | |
29698 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
29699 | ;; | |
29700 | esac | |
29701 | fi | |
29702 | ||
29703 | OPTIMISE= | |
29704 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
29705 | if test "$GCC" = yes ; then | |
29706 | OPTIMISE="-O0" | |
29707 | fi | |
29708 | else | |
29709 | if test "$GCC" = yes ; then | |
29710 | OPTIMISE="-O2" | |
29711 | ||
29712 | case "${host}" in | |
29713 | i586-*-*|i686-*-* ) | |
29714 | OPTIMISE="${OPTIMISE} " | |
29715 | ;; | |
29716 | esac | |
29717 | else | |
29718 | OPTIMISE="-O" | |
29719 | fi | |
29720 | fi | |
29721 | ||
29722 | ||
29723 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
29724 | cat >>confdefs.h <<\_ACEOF | |
29725 | #define WXWIN_COMPATIBILITY_2 1 | |
29726 | _ACEOF | |
29727 | ||
29728 | ||
29729 | WXWIN_COMPATIBILITY_2_2="yes" | |
29730 | fi | |
29731 | ||
29732 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
29733 | cat >>confdefs.h <<\_ACEOF | |
29734 | #define WXWIN_COMPATIBILITY_2_2 1 | |
29735 | _ACEOF | |
29736 | ||
29737 | ||
29738 | WXWIN_COMPATIBILITY_2_4="yes" | |
29739 | fi | |
29740 | ||
29741 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
29742 | cat >>confdefs.h <<\_ACEOF | |
29743 | #define WXWIN_COMPATIBILITY_2_4 1 | |
29744 | _ACEOF | |
29745 | ||
29746 | fi | |
29747 | ||
29748 | ||
29749 | if test "$wxUSE_GUI" = "yes"; then | |
29750 | cat >>confdefs.h <<\_ACEOF | |
29751 | #define wxUSE_GUI 1 | |
29752 | _ACEOF | |
29753 | ||
29754 | ||
29755 | else | |
29756 | cat >>confdefs.h <<\_ACEOF | |
29757 | #define wxUSE_NOGUI 1 | |
29758 | _ACEOF | |
29759 | ||
29760 | fi | |
29761 | ||
29762 | ||
29763 | if test "$wxUSE_UNIX" = "yes"; then | |
29764 | cat >>confdefs.h <<\_ACEOF | |
29765 | #define wxUSE_UNIX 1 | |
29766 | _ACEOF | |
29767 | ||
29768 | fi | |
29769 | ||
29770 | ||
29771 | if test "$wxUSE_STL" = "yes"; then | |
29772 | cat >>confdefs.h <<\_ACEOF | |
29773 | #define wxUSE_STL 1 | |
29774 | _ACEOF | |
29775 | ||
29776 | fi | |
29777 | ||
29778 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
29779 | cat >>confdefs.h <<\_ACEOF | |
29780 | #define wxUSE_APPLE_IEEE 1 | |
29781 | _ACEOF | |
29782 | ||
29783 | fi | |
29784 | ||
29785 | if test "$wxUSE_TIMER" = "yes"; then | |
29786 | cat >>confdefs.h <<\_ACEOF | |
29787 | #define wxUSE_TIMER 1 | |
29788 | _ACEOF | |
29789 | ||
29790 | fi | |
29791 | ||
29792 | if test "$wxUSE_WAVE" = "yes"; then | |
29793 | cat >>confdefs.h <<\_ACEOF | |
29794 | #define wxUSE_WAVE 1 | |
29795 | _ACEOF | |
29796 | ||
29797 | fi | |
29798 | ||
29799 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
29800 | cat >>confdefs.h <<\_ACEOF | |
29801 | #define wxUSE_CMDLINE_PARSER 1 | |
29802 | _ACEOF | |
29803 | ||
29804 | fi | |
29805 | ||
29806 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
29807 | cat >>confdefs.h <<\_ACEOF | |
29808 | #define wxUSE_STOPWATCH 1 | |
29809 | _ACEOF | |
29810 | ||
29811 | fi | |
29812 | ||
29813 | if test "$wxUSE_DATETIME" = "yes"; then | |
29814 | cat >>confdefs.h <<\_ACEOF | |
29815 | #define wxUSE_DATETIME 1 | |
29816 | _ACEOF | |
29817 | ||
29818 | fi | |
29819 | ||
29820 | if test "$wxUSE_FILE" = "yes"; then | |
29821 | cat >>confdefs.h <<\_ACEOF | |
29822 | #define wxUSE_FILE 1 | |
29823 | _ACEOF | |
29824 | ||
29825 | fi | |
29826 | ||
29827 | if test "$wxUSE_FFILE" = "yes"; then | |
29828 | cat >>confdefs.h <<\_ACEOF | |
29829 | #define wxUSE_FFILE 1 | |
29830 | _ACEOF | |
29831 | ||
29832 | fi | |
29833 | ||
29834 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
29835 | cat >>confdefs.h <<\_ACEOF | |
29836 | #define wxUSE_FILESYSTEM 1 | |
29837 | _ACEOF | |
29838 | ||
29839 | fi | |
29840 | ||
29841 | if test "$wxUSE_FS_INET" = "yes"; then | |
29842 | cat >>confdefs.h <<\_ACEOF | |
29843 | #define wxUSE_FS_INET 1 | |
29844 | _ACEOF | |
29845 | ||
29846 | fi | |
29847 | ||
29848 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
29849 | cat >>confdefs.h <<\_ACEOF | |
29850 | #define wxUSE_FS_ZIP 1 | |
29851 | _ACEOF | |
29852 | ||
29853 | fi | |
29854 | ||
29855 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
29856 | cat >>confdefs.h <<\_ACEOF | |
29857 | #define wxUSE_ZIPSTREAM 1 | |
29858 | _ACEOF | |
29859 | ||
29860 | fi | |
29861 | ||
29862 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29863 | cat >>confdefs.h <<\_ACEOF | |
29864 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
29865 | _ACEOF | |
29866 | ||
29867 | fi | |
29868 | ||
29869 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
29870 | cat >>confdefs.h <<\_ACEOF | |
29871 | #define wxUSE_SNGLINST_CHECKER 1 | |
29872 | _ACEOF | |
29873 | ||
29874 | fi | |
29875 | ||
29876 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
29877 | cat >>confdefs.h <<\_ACEOF | |
29878 | #define wxUSE_BUSYINFO 1 | |
29879 | _ACEOF | |
29880 | ||
29881 | fi | |
29882 | ||
29883 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
29884 | cat >>confdefs.h <<\_ACEOF | |
29885 | #define wxUSE_STD_IOSTREAM 1 | |
29886 | _ACEOF | |
29887 | ||
29888 | fi | |
29889 | ||
29890 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
29891 | cat >>confdefs.h <<\_ACEOF | |
29892 | #define wxUSE_TEXTBUFFER 1 | |
29893 | _ACEOF | |
29894 | ||
29895 | fi | |
29896 | ||
29897 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
29898 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
29899 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
29900 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
29901 | else | |
29902 | cat >>confdefs.h <<\_ACEOF | |
29903 | #define wxUSE_TEXTFILE 1 | |
29904 | _ACEOF | |
29905 | ||
29906 | fi | |
29907 | fi | |
29908 | ||
29909 | if test "$wxUSE_CONFIG" = "yes" ; then | |
29910 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
29911 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
29912 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
29913 | else | |
29914 | cat >>confdefs.h <<\_ACEOF | |
29915 | #define wxUSE_CONFIG 1 | |
29916 | _ACEOF | |
29917 | ||
29918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
29919 | fi | |
29920 | fi | |
29921 | ||
29922 | if test "$wxUSE_INTL" = "yes" ; then | |
29923 | if test "$wxUSE_FILE" != "yes"; then | |
29924 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
29925 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
29926 | else | |
29927 | cat >>confdefs.h <<\_ACEOF | |
29928 | #define wxUSE_INTL 1 | |
29929 | _ACEOF | |
29930 | ||
29931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
29932 | GUIDIST="$GUIDIST INTL_DIST" | |
29933 | fi | |
29934 | fi | |
29935 | ||
29936 | if test "$wxUSE_LOG" = "yes"; then | |
29937 | cat >>confdefs.h <<\_ACEOF | |
29938 | #define wxUSE_LOG 1 | |
29939 | _ACEOF | |
29940 | ||
29941 | ||
29942 | if test "$wxUSE_LOGGUI" = "yes"; then | |
29943 | cat >>confdefs.h <<\_ACEOF | |
29944 | #define wxUSE_LOGGUI 1 | |
29945 | _ACEOF | |
29946 | ||
29947 | fi | |
29948 | ||
29949 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
29950 | cat >>confdefs.h <<\_ACEOF | |
29951 | #define wxUSE_LOGWINDOW 1 | |
29952 | _ACEOF | |
29953 | ||
29954 | fi | |
29955 | ||
29956 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
29957 | cat >>confdefs.h <<\_ACEOF | |
29958 | #define wxUSE_LOG_DIALOG 1 | |
29959 | _ACEOF | |
29960 | ||
29961 | fi | |
29962 | fi | |
29963 | ||
29964 | if test "$wxUSE_LONGLONG" = "yes"; then | |
29965 | cat >>confdefs.h <<\_ACEOF | |
29966 | #define wxUSE_LONGLONG 1 | |
29967 | _ACEOF | |
29968 | ||
29969 | fi | |
29970 | ||
29971 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
29972 | cat >>confdefs.h <<\_ACEOF | |
29973 | #define wxUSE_GEOMETRY 1 | |
29974 | _ACEOF | |
29975 | ||
29976 | fi | |
29977 | ||
29978 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
29979 | cat >>confdefs.h <<\_ACEOF | |
29980 | #define wxUSE_DIALUP_MANAGER 1 | |
29981 | _ACEOF | |
29982 | ||
29983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
29984 | fi | |
29985 | ||
29986 | if test "$wxUSE_STREAMS" = "yes" ; then | |
29987 | cat >>confdefs.h <<\_ACEOF | |
29988 | #define wxUSE_STREAMS 1 | |
29989 | _ACEOF | |
29990 | ||
29991 | fi | |
29992 | ||
29993 | ||
29994 | if test "$wxUSE_DATETIME" = "yes"; then | |
29995 | ||
29996 | for ac_func in strptime | |
29997 | do | |
29998 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29999 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30001 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30003 | else | |
30004 | cat >conftest.$ac_ext <<_ACEOF | |
30005 | #line $LINENO "configure" | |
30006 | /* confdefs.h. */ | |
30007 | _ACEOF | |
30008 | cat confdefs.h >>conftest.$ac_ext | |
30009 | cat >>conftest.$ac_ext <<_ACEOF | |
30010 | /* end confdefs.h. */ | |
30011 | /* System header to define __stub macros and hopefully few prototypes, | |
30012 | which can conflict with char $ac_func (); below. | |
30013 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30014 | <limits.h> exists even on freestanding compilers. */ | |
30015 | #ifdef __STDC__ | |
30016 | # include <limits.h> | |
30017 | #else | |
30018 | # include <assert.h> | |
30019 | #endif | |
30020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30021 | #ifdef __cplusplus | |
30022 | extern "C" | |
30023 | { | |
30024 | #endif | |
30025 | /* We use char because int might match the return type of a gcc2 | |
30026 | builtin and then its argument prototype would still apply. */ | |
30027 | char $ac_func (); | |
30028 | /* The GNU C library defines this for functions which it implements | |
30029 | to always fail with ENOSYS. Some functions are actually named | |
30030 | something starting with __ and the normal name is an alias. */ | |
30031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30032 | choke me | |
30033 | #else | |
30034 | char (*f) () = $ac_func; | |
30035 | #endif | |
30036 | #ifdef __cplusplus | |
30037 | } | |
30038 | #endif | |
30039 | ||
30040 | int | |
30041 | main () | |
30042 | { | |
30043 | return f != $ac_func; | |
30044 | ; | |
30045 | return 0; | |
30046 | } | |
30047 | _ACEOF | |
30048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30050 | (eval $ac_link) 2>&5 | |
30051 | ac_status=$? | |
30052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30053 | (exit $ac_status); } && | |
30054 | { ac_try='test -s conftest$ac_exeext' | |
30055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30056 | (eval $ac_try) 2>&5 | |
30057 | ac_status=$? | |
30058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30059 | (exit $ac_status); }; }; then | |
30060 | eval "$as_ac_var=yes" | |
30061 | else | |
30062 | echo "$as_me: failed program was:" >&5 | |
30063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30064 | ||
30065 | eval "$as_ac_var=no" | |
30066 | fi | |
30067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30068 | fi | |
30069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30070 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30071 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30072 | cat >>confdefs.h <<_ACEOF | |
30073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30074 | _ACEOF | |
30075 | ||
30076 | fi | |
30077 | done | |
30078 | ||
30079 | ||
30080 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
30081 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30082 | if test "${wx_cv_var_timezone+set}" = set; then | |
30083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30084 | else | |
30085 | ||
30086 | cat >conftest.$ac_ext <<_ACEOF | |
30087 | #line $LINENO "configure" | |
30088 | /* confdefs.h. */ | |
30089 | _ACEOF | |
30090 | cat confdefs.h >>conftest.$ac_ext | |
30091 | cat >>conftest.$ac_ext <<_ACEOF | |
30092 | /* end confdefs.h. */ | |
30093 | ||
30094 | #include <time.h> | |
30095 | ||
30096 | int | |
30097 | main () | |
30098 | { | |
30099 | ||
30100 | int tz; | |
30101 | tz = timezone; | |
30102 | ||
30103 | ; | |
30104 | return 0; | |
30105 | } | |
30106 | _ACEOF | |
30107 | rm -f conftest.$ac_objext | |
30108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30109 | (eval $ac_compile) 2>&5 | |
30110 | ac_status=$? | |
30111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30112 | (exit $ac_status); } && | |
30113 | { ac_try='test -s conftest.$ac_objext' | |
30114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30115 | (eval $ac_try) 2>&5 | |
30116 | ac_status=$? | |
30117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30118 | (exit $ac_status); }; }; then | |
30119 | ||
30120 | wx_cv_var_timezone=timezone | |
30121 | ||
30122 | else | |
30123 | echo "$as_me: failed program was:" >&5 | |
30124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30125 | ||
30126 | ||
30127 | cat >conftest.$ac_ext <<_ACEOF | |
30128 | #line $LINENO "configure" | |
30129 | /* confdefs.h. */ | |
30130 | _ACEOF | |
30131 | cat confdefs.h >>conftest.$ac_ext | |
30132 | cat >>conftest.$ac_ext <<_ACEOF | |
30133 | /* end confdefs.h. */ | |
30134 | ||
30135 | #include <time.h> | |
30136 | ||
30137 | int | |
30138 | main () | |
30139 | { | |
30140 | ||
30141 | int tz; | |
30142 | tz = _timezone; | |
30143 | ||
30144 | ; | |
30145 | return 0; | |
30146 | } | |
30147 | _ACEOF | |
30148 | rm -f conftest.$ac_objext | |
30149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30150 | (eval $ac_compile) 2>&5 | |
30151 | ac_status=$? | |
30152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30153 | (exit $ac_status); } && | |
30154 | { ac_try='test -s conftest.$ac_objext' | |
30155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30156 | (eval $ac_try) 2>&5 | |
30157 | ac_status=$? | |
30158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30159 | (exit $ac_status); }; }; then | |
30160 | ||
30161 | wx_cv_var_timezone=_timezone | |
30162 | ||
30163 | else | |
30164 | echo "$as_me: failed program was:" >&5 | |
30165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30166 | ||
30167 | ||
30168 | cat >conftest.$ac_ext <<_ACEOF | |
30169 | #line $LINENO "configure" | |
30170 | /* confdefs.h. */ | |
30171 | _ACEOF | |
30172 | cat confdefs.h >>conftest.$ac_ext | |
30173 | cat >>conftest.$ac_ext <<_ACEOF | |
30174 | /* end confdefs.h. */ | |
30175 | ||
30176 | #include <time.h> | |
30177 | ||
30178 | int | |
30179 | main () | |
30180 | { | |
30181 | ||
30182 | int tz; | |
30183 | tz = __timezone; | |
30184 | ||
30185 | ; | |
30186 | return 0; | |
30187 | } | |
30188 | _ACEOF | |
30189 | rm -f conftest.$ac_objext | |
30190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30191 | (eval $ac_compile) 2>&5 | |
30192 | ac_status=$? | |
30193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30194 | (exit $ac_status); } && | |
30195 | { ac_try='test -s conftest.$ac_objext' | |
30196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30197 | (eval $ac_try) 2>&5 | |
30198 | ac_status=$? | |
30199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30200 | (exit $ac_status); }; }; then | |
30201 | ||
30202 | wx_cv_var_timezone=__timezone | |
30203 | ||
30204 | else | |
30205 | echo "$as_me: failed program was:" >&5 | |
30206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30207 | ||
30208 | ||
30209 | if test "$USE_DOS" = 0 ; then | |
30210 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
30211 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
30212 | fi | |
30213 | ||
30214 | ||
30215 | fi | |
30216 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30217 | ||
30218 | ||
30219 | fi | |
30220 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30221 | ||
30222 | ||
30223 | fi | |
30224 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30225 | ||
30226 | ||
30227 | fi | |
30228 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30229 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
30230 | ||
30231 | if test "x$wx_cv_var_timezone" != x ; then | |
30232 | cat >>confdefs.h <<_ACEOF | |
30233 | #define WX_TIMEZONE $wx_cv_var_timezone | |
30234 | _ACEOF | |
30235 | ||
30236 | fi | |
30237 | ||
30238 | ||
30239 | for ac_func in localtime | |
30240 | do | |
30241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30244 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30246 | else | |
30247 | cat >conftest.$ac_ext <<_ACEOF | |
30248 | #line $LINENO "configure" | |
30249 | /* confdefs.h. */ | |
30250 | _ACEOF | |
30251 | cat confdefs.h >>conftest.$ac_ext | |
30252 | cat >>conftest.$ac_ext <<_ACEOF | |
30253 | /* end confdefs.h. */ | |
30254 | /* System header to define __stub macros and hopefully few prototypes, | |
30255 | which can conflict with char $ac_func (); below. | |
30256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30257 | <limits.h> exists even on freestanding compilers. */ | |
30258 | #ifdef __STDC__ | |
30259 | # include <limits.h> | |
30260 | #else | |
30261 | # include <assert.h> | |
30262 | #endif | |
30263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30264 | #ifdef __cplusplus | |
30265 | extern "C" | |
30266 | { | |
30267 | #endif | |
30268 | /* We use char because int might match the return type of a gcc2 | |
30269 | builtin and then its argument prototype would still apply. */ | |
30270 | char $ac_func (); | |
30271 | /* The GNU C library defines this for functions which it implements | |
30272 | to always fail with ENOSYS. Some functions are actually named | |
30273 | something starting with __ and the normal name is an alias. */ | |
30274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30275 | choke me | |
30276 | #else | |
30277 | char (*f) () = $ac_func; | |
30278 | #endif | |
30279 | #ifdef __cplusplus | |
30280 | } | |
30281 | #endif | |
30282 | ||
30283 | int | |
30284 | main () | |
30285 | { | |
30286 | return f != $ac_func; | |
30287 | ; | |
30288 | return 0; | |
30289 | } | |
30290 | _ACEOF | |
30291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30293 | (eval $ac_link) 2>&5 | |
30294 | ac_status=$? | |
30295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30296 | (exit $ac_status); } && | |
30297 | { ac_try='test -s conftest$ac_exeext' | |
30298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30299 | (eval $ac_try) 2>&5 | |
30300 | ac_status=$? | |
30301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30302 | (exit $ac_status); }; }; then | |
30303 | eval "$as_ac_var=yes" | |
30304 | else | |
30305 | echo "$as_me: failed program was:" >&5 | |
30306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30307 | ||
30308 | eval "$as_ac_var=no" | |
30309 | fi | |
30310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30311 | fi | |
30312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30313 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30314 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30315 | cat >>confdefs.h <<_ACEOF | |
30316 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30317 | _ACEOF | |
30318 | ||
30319 | fi | |
30320 | done | |
30321 | ||
30322 | ||
30323 | if test "$ac_cv_func_localtime" = "yes"; then | |
30324 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
30325 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30326 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30328 | else | |
30329 | ||
30330 | cat >conftest.$ac_ext <<_ACEOF | |
30331 | #line $LINENO "configure" | |
30332 | /* confdefs.h. */ | |
30333 | _ACEOF | |
30334 | cat confdefs.h >>conftest.$ac_ext | |
30335 | cat >>conftest.$ac_ext <<_ACEOF | |
30336 | /* end confdefs.h. */ | |
30337 | ||
30338 | #include <time.h> | |
30339 | ||
30340 | int | |
30341 | main () | |
30342 | { | |
30343 | ||
30344 | struct tm tm; | |
30345 | tm.tm_gmtoff++; | |
30346 | ||
30347 | ; | |
30348 | return 0; | |
30349 | } | |
30350 | _ACEOF | |
30351 | rm -f conftest.$ac_objext | |
30352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30353 | (eval $ac_compile) 2>&5 | |
30354 | ac_status=$? | |
30355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30356 | (exit $ac_status); } && | |
30357 | { ac_try='test -s conftest.$ac_objext' | |
30358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30359 | (eval $ac_try) 2>&5 | |
30360 | ac_status=$? | |
30361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30362 | (exit $ac_status); }; }; then | |
30363 | ||
30364 | wx_cv_struct_tm_has_gmtoff=yes | |
30365 | ||
30366 | else | |
30367 | echo "$as_me: failed program was:" >&5 | |
30368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30369 | ||
30370 | wx_cv_struct_tm_has_gmtoff=no | |
30371 | ||
30372 | fi | |
30373 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30374 | ||
30375 | fi | |
30376 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30377 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
30378 | fi | |
30379 | ||
30380 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
30381 | cat >>confdefs.h <<\_ACEOF | |
30382 | #define WX_GMTOFF_IN_TM 1 | |
30383 | _ACEOF | |
30384 | ||
30385 | fi | |
30386 | ||
30387 | ||
30388 | ||
30389 | for ac_func in gettimeofday ftime | |
30390 | do | |
30391 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30392 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30393 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30394 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30396 | else | |
30397 | cat >conftest.$ac_ext <<_ACEOF | |
30398 | #line $LINENO "configure" | |
30399 | /* confdefs.h. */ | |
30400 | _ACEOF | |
30401 | cat confdefs.h >>conftest.$ac_ext | |
30402 | cat >>conftest.$ac_ext <<_ACEOF | |
30403 | /* end confdefs.h. */ | |
30404 | /* System header to define __stub macros and hopefully few prototypes, | |
30405 | which can conflict with char $ac_func (); below. | |
30406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30407 | <limits.h> exists even on freestanding compilers. */ | |
30408 | #ifdef __STDC__ | |
30409 | # include <limits.h> | |
30410 | #else | |
30411 | # include <assert.h> | |
30412 | #endif | |
30413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30414 | #ifdef __cplusplus | |
30415 | extern "C" | |
30416 | { | |
30417 | #endif | |
30418 | /* We use char because int might match the return type of a gcc2 | |
30419 | builtin and then its argument prototype would still apply. */ | |
30420 | char $ac_func (); | |
30421 | /* The GNU C library defines this for functions which it implements | |
30422 | to always fail with ENOSYS. Some functions are actually named | |
30423 | something starting with __ and the normal name is an alias. */ | |
30424 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30425 | choke me | |
30426 | #else | |
30427 | char (*f) () = $ac_func; | |
30428 | #endif | |
30429 | #ifdef __cplusplus | |
30430 | } | |
30431 | #endif | |
30432 | ||
30433 | int | |
30434 | main () | |
30435 | { | |
30436 | return f != $ac_func; | |
30437 | ; | |
30438 | return 0; | |
30439 | } | |
30440 | _ACEOF | |
30441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30443 | (eval $ac_link) 2>&5 | |
30444 | ac_status=$? | |
30445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30446 | (exit $ac_status); } && | |
30447 | { ac_try='test -s conftest$ac_exeext' | |
30448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30449 | (eval $ac_try) 2>&5 | |
30450 | ac_status=$? | |
30451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30452 | (exit $ac_status); }; }; then | |
30453 | eval "$as_ac_var=yes" | |
30454 | else | |
30455 | echo "$as_me: failed program was:" >&5 | |
30456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30457 | ||
30458 | eval "$as_ac_var=no" | |
30459 | fi | |
30460 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30461 | fi | |
30462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30463 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30464 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30465 | cat >>confdefs.h <<_ACEOF | |
30466 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30467 | _ACEOF | |
30468 | break | |
30469 | fi | |
30470 | done | |
30471 | ||
30472 | ||
30473 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
30474 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
30475 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30476 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30478 | else | |
30479 | ||
30480 | ||
30481 | ||
30482 | ac_ext=cc | |
30483 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30484 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30485 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30486 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30487 | ||
30488 | ||
30489 | cat >conftest.$ac_ext <<_ACEOF | |
30490 | #line $LINENO "configure" | |
30491 | /* confdefs.h. */ | |
30492 | _ACEOF | |
30493 | cat confdefs.h >>conftest.$ac_ext | |
30494 | cat >>conftest.$ac_ext <<_ACEOF | |
30495 | /* end confdefs.h. */ | |
30496 | ||
30497 | #include <sys/time.h> | |
30498 | #include <unistd.h> | |
30499 | ||
30500 | int | |
30501 | main () | |
30502 | { | |
30503 | ||
30504 | struct timeval tv; | |
30505 | gettimeofday(&tv, NULL); | |
30506 | ||
30507 | ; | |
30508 | return 0; | |
30509 | } | |
30510 | _ACEOF | |
30511 | rm -f conftest.$ac_objext | |
30512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30513 | (eval $ac_compile) 2>&5 | |
30514 | ac_status=$? | |
30515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30516 | (exit $ac_status); } && | |
30517 | { ac_try='test -s conftest.$ac_objext' | |
30518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30519 | (eval $ac_try) 2>&5 | |
30520 | ac_status=$? | |
30521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30522 | (exit $ac_status); }; }; then | |
30523 | wx_cv_func_gettimeofday_has_2_args=yes | |
30524 | else | |
30525 | echo "$as_me: failed program was:" >&5 | |
30526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30527 | ||
30528 | cat >conftest.$ac_ext <<_ACEOF | |
30529 | #line $LINENO "configure" | |
30530 | /* confdefs.h. */ | |
30531 | _ACEOF | |
30532 | cat confdefs.h >>conftest.$ac_ext | |
30533 | cat >>conftest.$ac_ext <<_ACEOF | |
30534 | /* end confdefs.h. */ | |
30535 | ||
30536 | #include <sys/time.h> | |
30537 | #include <unistd.h> | |
30538 | ||
30539 | int | |
30540 | main () | |
30541 | { | |
30542 | ||
30543 | struct timeval tv; | |
30544 | gettimeofday(&tv); | |
30545 | ||
30546 | ; | |
30547 | return 0; | |
30548 | } | |
30549 | _ACEOF | |
30550 | rm -f conftest.$ac_objext | |
30551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30552 | (eval $ac_compile) 2>&5 | |
30553 | ac_status=$? | |
30554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30555 | (exit $ac_status); } && | |
30556 | { ac_try='test -s conftest.$ac_objext' | |
30557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30558 | (eval $ac_try) 2>&5 | |
30559 | ac_status=$? | |
30560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30561 | (exit $ac_status); }; }; then | |
30562 | wx_cv_func_gettimeofday_has_2_args=no | |
30563 | else | |
30564 | echo "$as_me: failed program was:" >&5 | |
30565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30566 | ||
30567 | ||
30568 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
30569 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
30570 | wx_cv_func_gettimeofday_has_2_args=unknown | |
30571 | ||
30572 | ||
30573 | fi | |
30574 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30575 | ||
30576 | fi | |
30577 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30578 | ac_ext=c | |
30579 | ac_cpp='$CPP $CPPFLAGS' | |
30580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30583 | ||
30584 | ||
30585 | fi | |
30586 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
30587 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
30588 | ||
30589 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
30590 | cat >>confdefs.h <<\_ACEOF | |
30591 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
30592 | _ACEOF | |
30593 | ||
30594 | fi | |
30595 | fi | |
30596 | ||
30597 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
30598 | fi | |
30599 | ||
30600 | ||
30601 | if test "$wxUSE_SOCKETS" = "yes"; then | |
30602 | if test "$wxUSE_MGL" = "1"; then | |
30603 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
30604 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
30605 | wxUSE_SOCKETS="no" | |
30606 | fi | |
30607 | fi | |
30608 | ||
30609 | if test "$wxUSE_SOCKETS" = "yes"; then | |
30610 | if test "$TOOLKIT" != "MSW"; then | |
30611 | echo "$as_me:$LINENO: checking for socket" >&5 | |
30612 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
30613 | if test "${ac_cv_func_socket+set}" = set; then | |
30614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30615 | else | |
30616 | cat >conftest.$ac_ext <<_ACEOF | |
30617 | #line $LINENO "configure" | |
30618 | /* confdefs.h. */ | |
30619 | _ACEOF | |
30620 | cat confdefs.h >>conftest.$ac_ext | |
30621 | cat >>conftest.$ac_ext <<_ACEOF | |
30622 | /* end confdefs.h. */ | |
30623 | /* System header to define __stub macros and hopefully few prototypes, | |
30624 | which can conflict with char socket (); below. | |
30625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30626 | <limits.h> exists even on freestanding compilers. */ | |
30627 | #ifdef __STDC__ | |
30628 | # include <limits.h> | |
30629 | #else | |
30630 | # include <assert.h> | |
30631 | #endif | |
30632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30633 | #ifdef __cplusplus | |
30634 | extern "C" | |
30635 | { | |
30636 | #endif | |
30637 | /* We use char because int might match the return type of a gcc2 | |
30638 | builtin and then its argument prototype would still apply. */ | |
30639 | char socket (); | |
30640 | /* The GNU C library defines this for functions which it implements | |
30641 | to always fail with ENOSYS. Some functions are actually named | |
30642 | something starting with __ and the normal name is an alias. */ | |
30643 | #if defined (__stub_socket) || defined (__stub___socket) | |
30644 | choke me | |
30645 | #else | |
30646 | char (*f) () = socket; | |
30647 | #endif | |
30648 | #ifdef __cplusplus | |
30649 | } | |
30650 | #endif | |
30651 | ||
30652 | int | |
30653 | main () | |
30654 | { | |
30655 | return f != socket; | |
30656 | ; | |
30657 | return 0; | |
30658 | } | |
30659 | _ACEOF | |
30660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30662 | (eval $ac_link) 2>&5 | |
30663 | ac_status=$? | |
30664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30665 | (exit $ac_status); } && | |
30666 | { ac_try='test -s conftest$ac_exeext' | |
30667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30668 | (eval $ac_try) 2>&5 | |
30669 | ac_status=$? | |
30670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30671 | (exit $ac_status); }; }; then | |
30672 | ac_cv_func_socket=yes | |
30673 | else | |
30674 | echo "$as_me: failed program was:" >&5 | |
30675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30676 | ||
30677 | ac_cv_func_socket=no | |
30678 | fi | |
30679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30680 | fi | |
30681 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
30682 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
30683 | if test $ac_cv_func_socket = yes; then | |
30684 | : | |
30685 | else | |
30686 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
30687 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
30688 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
30689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30690 | else | |
30691 | ac_check_lib_save_LIBS=$LIBS | |
30692 | LIBS="-lsocket $LIBS" | |
30693 | cat >conftest.$ac_ext <<_ACEOF | |
30694 | #line $LINENO "configure" | |
30695 | /* confdefs.h. */ | |
30696 | _ACEOF | |
30697 | cat confdefs.h >>conftest.$ac_ext | |
30698 | cat >>conftest.$ac_ext <<_ACEOF | |
30699 | /* end confdefs.h. */ | |
30700 | ||
30701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30702 | #ifdef __cplusplus | |
30703 | extern "C" | |
30704 | #endif | |
30705 | /* We use char because int might match the return type of a gcc2 | |
30706 | builtin and then its argument prototype would still apply. */ | |
30707 | char socket (); | |
30708 | int | |
30709 | main () | |
30710 | { | |
30711 | socket (); | |
30712 | ; | |
30713 | return 0; | |
30714 | } | |
30715 | _ACEOF | |
30716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30718 | (eval $ac_link) 2>&5 | |
30719 | ac_status=$? | |
30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30721 | (exit $ac_status); } && | |
30722 | { ac_try='test -s conftest$ac_exeext' | |
30723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30724 | (eval $ac_try) 2>&5 | |
30725 | ac_status=$? | |
30726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30727 | (exit $ac_status); }; }; then | |
30728 | ac_cv_lib_socket_socket=yes | |
30729 | else | |
30730 | echo "$as_me: failed program was:" >&5 | |
30731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30732 | ||
30733 | ac_cv_lib_socket_socket=no | |
30734 | fi | |
30735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30736 | LIBS=$ac_check_lib_save_LIBS | |
30737 | fi | |
30738 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
30739 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
30740 | if test $ac_cv_lib_socket_socket = yes; then | |
30741 | if test "$INET_LINK" != " -lsocket"; then | |
30742 | INET_LINK="$INET_LINK -lsocket" | |
30743 | fi | |
30744 | else | |
30745 | ||
30746 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
30747 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
30748 | wxUSE_SOCKETS=no | |
30749 | ||
30750 | ||
30751 | fi | |
30752 | ||
30753 | ||
30754 | fi | |
30755 | ||
30756 | fi | |
30757 | fi | |
30758 | ||
30759 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
30760 | if test "$TOOLKIT" != "MSW"; then | |
30761 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
30762 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
30763 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
30764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30765 | else | |
30766 | ||
30767 | cat >conftest.$ac_ext <<_ACEOF | |
30768 | #line $LINENO "configure" | |
30769 | /* confdefs.h. */ | |
30770 | _ACEOF | |
30771 | cat confdefs.h >>conftest.$ac_ext | |
30772 | cat >>conftest.$ac_ext <<_ACEOF | |
30773 | /* end confdefs.h. */ | |
30774 | ||
30775 | #include <sys/types.h> | |
30776 | #include <sys/socket.h> | |
30777 | ||
30778 | int | |
30779 | main () | |
30780 | { | |
30781 | ||
30782 | socklen_t len; | |
30783 | getsockname(0, 0, &len); | |
30784 | ||
30785 | ; | |
30786 | return 0; | |
30787 | } | |
30788 | _ACEOF | |
30789 | rm -f conftest.$ac_objext | |
30790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30791 | (eval $ac_compile) 2>&5 | |
30792 | ac_status=$? | |
30793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30794 | (exit $ac_status); } && | |
30795 | { ac_try='test -s conftest.$ac_objext' | |
30796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30797 | (eval $ac_try) 2>&5 | |
30798 | ac_status=$? | |
30799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30800 | (exit $ac_status); }; }; then | |
30801 | wx_cv_type_getsockname3=socklen_t | |
30802 | else | |
30803 | echo "$as_me: failed program was:" >&5 | |
30804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30805 | ||
30806 | ||
30807 | CFLAGS_OLD="$CFLAGS" | |
30808 | if test "$GCC" = yes ; then | |
30809 | CFLAGS="$CFLAGS -Werror" | |
30810 | fi | |
30811 | ||
30812 | cat >conftest.$ac_ext <<_ACEOF | |
30813 | #line $LINENO "configure" | |
30814 | /* confdefs.h. */ | |
30815 | _ACEOF | |
30816 | cat confdefs.h >>conftest.$ac_ext | |
30817 | cat >>conftest.$ac_ext <<_ACEOF | |
30818 | /* end confdefs.h. */ | |
30819 | ||
30820 | #include <sys/types.h> | |
30821 | #include <sys/socket.h> | |
30822 | ||
30823 | int | |
30824 | main () | |
30825 | { | |
30826 | ||
30827 | size_t len; | |
30828 | getsockname(0, 0, &len); | |
30829 | ||
30830 | ; | |
30831 | return 0; | |
30832 | } | |
30833 | _ACEOF | |
30834 | rm -f conftest.$ac_objext | |
30835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30836 | (eval $ac_compile) 2>&5 | |
30837 | ac_status=$? | |
30838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30839 | (exit $ac_status); } && | |
30840 | { ac_try='test -s conftest.$ac_objext' | |
30841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30842 | (eval $ac_try) 2>&5 | |
30843 | ac_status=$? | |
30844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30845 | (exit $ac_status); }; }; then | |
30846 | wx_cv_type_getsockname3=size_t | |
30847 | else | |
30848 | echo "$as_me: failed program was:" >&5 | |
30849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30850 | ||
30851 | cat >conftest.$ac_ext <<_ACEOF | |
30852 | #line $LINENO "configure" | |
30853 | /* confdefs.h. */ | |
30854 | _ACEOF | |
30855 | cat confdefs.h >>conftest.$ac_ext | |
30856 | cat >>conftest.$ac_ext <<_ACEOF | |
30857 | /* end confdefs.h. */ | |
30858 | ||
30859 | #include <sys/types.h> | |
30860 | #include <sys/socket.h> | |
30861 | ||
30862 | int | |
30863 | main () | |
30864 | { | |
30865 | ||
30866 | int len; | |
30867 | getsockname(0, 0, &len); | |
30868 | ||
30869 | ; | |
30870 | return 0; | |
30871 | } | |
30872 | _ACEOF | |
30873 | rm -f conftest.$ac_objext | |
30874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30875 | (eval $ac_compile) 2>&5 | |
30876 | ac_status=$? | |
30877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30878 | (exit $ac_status); } && | |
30879 | { ac_try='test -s conftest.$ac_objext' | |
30880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30881 | (eval $ac_try) 2>&5 | |
30882 | ac_status=$? | |
30883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30884 | (exit $ac_status); }; }; then | |
30885 | wx_cv_type_getsockname3=int | |
30886 | else | |
30887 | echo "$as_me: failed program was:" >&5 | |
30888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30889 | ||
30890 | wx_cv_type_getsockname3=unknown | |
30891 | ||
30892 | fi | |
30893 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30894 | ||
30895 | fi | |
30896 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30897 | ||
30898 | CFLAGS="$CFLAGS_OLD" | |
30899 | ||
30900 | ||
30901 | fi | |
30902 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30903 | ||
30904 | fi | |
30905 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
30906 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
30907 | ||
30908 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
30909 | wxUSE_SOCKETS=no | |
30910 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
30911 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
30912 | else | |
30913 | cat >>confdefs.h <<_ACEOF | |
30914 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
30915 | _ACEOF | |
30916 | ||
30917 | fi | |
30918 | fi | |
30919 | fi | |
30920 | ||
30921 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
30922 | cat >>confdefs.h <<\_ACEOF | |
30923 | #define wxUSE_SOCKETS 1 | |
30924 | _ACEOF | |
30925 | ||
30926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
30927 | fi | |
30928 | ||
30929 | ||
30930 | if test "$wxUSE_GUI" = "yes"; then | |
30931 | ||
30932 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
30933 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
30934 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
30935 | wxUSE_JOYSTICK=no | |
30936 | fi | |
30937 | if test "$TOOLKIT" = "MOTIF"; then | |
30938 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5 | |
30939 | echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;} | |
30940 | wxUSE_JOYSTICK=no | |
30941 | fi | |
30942 | if test "$TOOLKIT" = "X11"; then | |
30943 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5 | |
30944 | echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;} | |
30945 | wxUSE_JOYSTICK=no | |
30946 | fi | |
30947 | ||
30948 | if test "$TOOLKIT" != "MSW"; then | |
30949 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
30950 | ||
30951 | for ac_header in linux/joystick.h | |
30952 | do | |
30953 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30959 | fi | |
30960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30961 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30962 | else | |
30963 | # Is the header compilable? | |
30964 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30965 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30966 | cat >conftest.$ac_ext <<_ACEOF | |
30967 | #line $LINENO "configure" | |
30968 | /* confdefs.h. */ | |
30969 | _ACEOF | |
30970 | cat confdefs.h >>conftest.$ac_ext | |
30971 | cat >>conftest.$ac_ext <<_ACEOF | |
30972 | /* end confdefs.h. */ | |
30973 | $ac_includes_default | |
30974 | #include <$ac_header> | |
30975 | _ACEOF | |
30976 | rm -f conftest.$ac_objext | |
30977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30978 | (eval $ac_compile) 2>&5 | |
30979 | ac_status=$? | |
30980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30981 | (exit $ac_status); } && | |
30982 | { ac_try='test -s conftest.$ac_objext' | |
30983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30984 | (eval $ac_try) 2>&5 | |
30985 | ac_status=$? | |
30986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30987 | (exit $ac_status); }; }; then | |
30988 | ac_header_compiler=yes | |
30989 | else | |
30990 | echo "$as_me: failed program was:" >&5 | |
30991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30992 | ||
30993 | ac_header_compiler=no | |
30994 | fi | |
30995 | rm -f conftest.$ac_objext conftest.$ac_ext | |
30996 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30997 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30998 | ||
30999 | # Is the header present? | |
31000 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31001 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31002 | cat >conftest.$ac_ext <<_ACEOF | |
31003 | #line $LINENO "configure" | |
31004 | /* confdefs.h. */ | |
31005 | _ACEOF | |
31006 | cat confdefs.h >>conftest.$ac_ext | |
31007 | cat >>conftest.$ac_ext <<_ACEOF | |
31008 | /* end confdefs.h. */ | |
31009 | #include <$ac_header> | |
31010 | _ACEOF | |
31011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31013 | ac_status=$? | |
31014 | grep -v '^ *+' conftest.er1 >conftest.err | |
31015 | rm -f conftest.er1 | |
31016 | cat conftest.err >&5 | |
31017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31018 | (exit $ac_status); } >/dev/null; then | |
31019 | if test -s conftest.err; then | |
31020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31021 | else | |
31022 | ac_cpp_err= | |
31023 | fi | |
31024 | else | |
31025 | ac_cpp_err=yes | |
31026 | fi | |
31027 | if test -z "$ac_cpp_err"; then | |
31028 | ac_header_preproc=yes | |
31029 | else | |
31030 | echo "$as_me: failed program was:" >&5 | |
31031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31032 | ||
31033 | ac_header_preproc=no | |
31034 | fi | |
31035 | rm -f conftest.err conftest.$ac_ext | |
31036 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31037 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31038 | ||
31039 | # So? What about this header? | |
31040 | case $ac_header_compiler:$ac_header_preproc in | |
31041 | yes:no ) | |
31042 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31043 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31044 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31045 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31046 | ( | |
31047 | cat <<\_ASBOX | |
31048 | ## ------------------------------------ ## | |
31049 | ## Report this to bug-autoconf@gnu.org. ## | |
31050 | ## ------------------------------------ ## | |
31051 | _ASBOX | |
31052 | ) | | |
31053 | sed "s/^/$as_me: WARNING: /" >&2 | |
31054 | ;; | |
31055 | no:yes ) | |
31056 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31057 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31058 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31059 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31060 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31061 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31062 | ( | |
31063 | cat <<\_ASBOX | |
31064 | ## ------------------------------------ ## | |
31065 | ## Report this to bug-autoconf@gnu.org. ## | |
31066 | ## ------------------------------------ ## | |
31067 | _ASBOX | |
31068 | ) | | |
31069 | sed "s/^/$as_me: WARNING: /" >&2 | |
31070 | ;; | |
31071 | esac | |
31072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31076 | else | |
31077 | eval "$as_ac_Header=$ac_header_preproc" | |
31078 | fi | |
31079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31081 | ||
31082 | fi | |
31083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31084 | cat >>confdefs.h <<_ACEOF | |
31085 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31086 | _ACEOF | |
31087 | ||
31088 | fi | |
31089 | ||
31090 | done | |
31091 | ||
31092 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
31093 | wxUSE_JOYSTICK=no | |
31094 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
31095 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
31096 | fi | |
31097 | fi | |
31098 | fi | |
31099 | ||
31100 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
31101 | cat >>confdefs.h <<\_ACEOF | |
31102 | #define wxUSE_JOYSTICK 1 | |
31103 | _ACEOF | |
31104 | ||
31105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
31106 | fi | |
31107 | fi | |
31108 | ||
31109 | ||
31110 | if test "$TOOLKIT" != "MSW"; then | |
31111 | ||
31112 | HAVE_DL_FUNCS=0 | |
31113 | HAVE_SHL_FUNCS=0 | |
31114 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
31115 | if test "$USE_DARWIN" = 1; then | |
31116 | HAVE_DL_FUNCS=1 | |
31117 | else | |
31118 | ||
31119 | for ac_func in dlopen | |
31120 | do | |
31121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31122 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31124 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31126 | else | |
31127 | cat >conftest.$ac_ext <<_ACEOF | |
31128 | #line $LINENO "configure" | |
31129 | /* confdefs.h. */ | |
31130 | _ACEOF | |
31131 | cat confdefs.h >>conftest.$ac_ext | |
31132 | cat >>conftest.$ac_ext <<_ACEOF | |
31133 | /* end confdefs.h. */ | |
31134 | /* System header to define __stub macros and hopefully few prototypes, | |
31135 | which can conflict with char $ac_func (); below. | |
31136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31137 | <limits.h> exists even on freestanding compilers. */ | |
31138 | #ifdef __STDC__ | |
31139 | # include <limits.h> | |
31140 | #else | |
31141 | # include <assert.h> | |
31142 | #endif | |
31143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31144 | #ifdef __cplusplus | |
31145 | extern "C" | |
31146 | { | |
31147 | #endif | |
31148 | /* We use char because int might match the return type of a gcc2 | |
31149 | builtin and then its argument prototype would still apply. */ | |
31150 | char $ac_func (); | |
31151 | /* The GNU C library defines this for functions which it implements | |
31152 | to always fail with ENOSYS. Some functions are actually named | |
31153 | something starting with __ and the normal name is an alias. */ | |
31154 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31155 | choke me | |
31156 | #else | |
31157 | char (*f) () = $ac_func; | |
31158 | #endif | |
31159 | #ifdef __cplusplus | |
31160 | } | |
31161 | #endif | |
31162 | ||
31163 | int | |
31164 | main () | |
31165 | { | |
31166 | return f != $ac_func; | |
31167 | ; | |
31168 | return 0; | |
31169 | } | |
31170 | _ACEOF | |
31171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31173 | (eval $ac_link) 2>&5 | |
31174 | ac_status=$? | |
31175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31176 | (exit $ac_status); } && | |
31177 | { ac_try='test -s conftest$ac_exeext' | |
31178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31179 | (eval $ac_try) 2>&5 | |
31180 | ac_status=$? | |
31181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31182 | (exit $ac_status); }; }; then | |
31183 | eval "$as_ac_var=yes" | |
31184 | else | |
31185 | echo "$as_me: failed program was:" >&5 | |
31186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31187 | ||
31188 | eval "$as_ac_var=no" | |
31189 | fi | |
31190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31191 | fi | |
31192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31193 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31194 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31195 | cat >>confdefs.h <<_ACEOF | |
31196 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31197 | _ACEOF | |
31198 | ||
31199 | cat >>confdefs.h <<\_ACEOF | |
31200 | #define HAVE_DLOPEN 1 | |
31201 | _ACEOF | |
31202 | ||
31203 | HAVE_DL_FUNCS=1 | |
31204 | ||
31205 | else | |
31206 | ||
31207 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31208 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31209 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31211 | else | |
31212 | ac_check_lib_save_LIBS=$LIBS | |
31213 | LIBS="-ldl $LIBS" | |
31214 | cat >conftest.$ac_ext <<_ACEOF | |
31215 | #line $LINENO "configure" | |
31216 | /* confdefs.h. */ | |
31217 | _ACEOF | |
31218 | cat confdefs.h >>conftest.$ac_ext | |
31219 | cat >>conftest.$ac_ext <<_ACEOF | |
31220 | /* end confdefs.h. */ | |
31221 | ||
31222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31223 | #ifdef __cplusplus | |
31224 | extern "C" | |
31225 | #endif | |
31226 | /* We use char because int might match the return type of a gcc2 | |
31227 | builtin and then its argument prototype would still apply. */ | |
31228 | char dlopen (); | |
31229 | int | |
31230 | main () | |
31231 | { | |
31232 | dlopen (); | |
31233 | ; | |
31234 | return 0; | |
31235 | } | |
31236 | _ACEOF | |
31237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31239 | (eval $ac_link) 2>&5 | |
31240 | ac_status=$? | |
31241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31242 | (exit $ac_status); } && | |
31243 | { ac_try='test -s conftest$ac_exeext' | |
31244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31245 | (eval $ac_try) 2>&5 | |
31246 | ac_status=$? | |
31247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31248 | (exit $ac_status); }; }; then | |
31249 | ac_cv_lib_dl_dlopen=yes | |
31250 | else | |
31251 | echo "$as_me: failed program was:" >&5 | |
31252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31253 | ||
31254 | ac_cv_lib_dl_dlopen=no | |
31255 | fi | |
31256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31257 | LIBS=$ac_check_lib_save_LIBS | |
31258 | fi | |
31259 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31260 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31261 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31262 | ||
31263 | cat >>confdefs.h <<\_ACEOF | |
31264 | #define HAVE_DLOPEN 1 | |
31265 | _ACEOF | |
31266 | ||
31267 | HAVE_DL_FUNCS=1 | |
31268 | DL_LINK=" -ldl$DL_LINK" | |
31269 | ||
31270 | else | |
31271 | ||
31272 | ||
31273 | for ac_func in shl_load | |
31274 | do | |
31275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31276 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31278 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31280 | else | |
31281 | cat >conftest.$ac_ext <<_ACEOF | |
31282 | #line $LINENO "configure" | |
31283 | /* confdefs.h. */ | |
31284 | _ACEOF | |
31285 | cat confdefs.h >>conftest.$ac_ext | |
31286 | cat >>conftest.$ac_ext <<_ACEOF | |
31287 | /* end confdefs.h. */ | |
31288 | /* System header to define __stub macros and hopefully few prototypes, | |
31289 | which can conflict with char $ac_func (); below. | |
31290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31291 | <limits.h> exists even on freestanding compilers. */ | |
31292 | #ifdef __STDC__ | |
31293 | # include <limits.h> | |
31294 | #else | |
31295 | # include <assert.h> | |
31296 | #endif | |
31297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31298 | #ifdef __cplusplus | |
31299 | extern "C" | |
31300 | { | |
31301 | #endif | |
31302 | /* We use char because int might match the return type of a gcc2 | |
31303 | builtin and then its argument prototype would still apply. */ | |
31304 | char $ac_func (); | |
31305 | /* The GNU C library defines this for functions which it implements | |
31306 | to always fail with ENOSYS. Some functions are actually named | |
31307 | something starting with __ and the normal name is an alias. */ | |
31308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31309 | choke me | |
31310 | #else | |
31311 | char (*f) () = $ac_func; | |
31312 | #endif | |
31313 | #ifdef __cplusplus | |
31314 | } | |
31315 | #endif | |
31316 | ||
31317 | int | |
31318 | main () | |
31319 | { | |
31320 | return f != $ac_func; | |
31321 | ; | |
31322 | return 0; | |
31323 | } | |
31324 | _ACEOF | |
31325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31327 | (eval $ac_link) 2>&5 | |
31328 | ac_status=$? | |
31329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31330 | (exit $ac_status); } && | |
31331 | { ac_try='test -s conftest$ac_exeext' | |
31332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31333 | (eval $ac_try) 2>&5 | |
31334 | ac_status=$? | |
31335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31336 | (exit $ac_status); }; }; then | |
31337 | eval "$as_ac_var=yes" | |
31338 | else | |
31339 | echo "$as_me: failed program was:" >&5 | |
31340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31341 | ||
31342 | eval "$as_ac_var=no" | |
31343 | fi | |
31344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31345 | fi | |
31346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31347 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31348 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31349 | cat >>confdefs.h <<_ACEOF | |
31350 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31351 | _ACEOF | |
31352 | ||
31353 | cat >>confdefs.h <<\_ACEOF | |
31354 | #define HAVE_SHL_LOAD 1 | |
31355 | _ACEOF | |
31356 | ||
31357 | HAVE_SHL_FUNCS=1 | |
31358 | ||
31359 | else | |
31360 | ||
31361 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31362 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31363 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31365 | else | |
31366 | ac_check_lib_save_LIBS=$LIBS | |
31367 | LIBS="-lshl_load $LIBS" | |
31368 | cat >conftest.$ac_ext <<_ACEOF | |
31369 | #line $LINENO "configure" | |
31370 | /* confdefs.h. */ | |
31371 | _ACEOF | |
31372 | cat confdefs.h >>conftest.$ac_ext | |
31373 | cat >>conftest.$ac_ext <<_ACEOF | |
31374 | /* end confdefs.h. */ | |
31375 | ||
31376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31377 | #ifdef __cplusplus | |
31378 | extern "C" | |
31379 | #endif | |
31380 | /* We use char because int might match the return type of a gcc2 | |
31381 | builtin and then its argument prototype would still apply. */ | |
31382 | char dld (); | |
31383 | int | |
31384 | main () | |
31385 | { | |
31386 | dld (); | |
31387 | ; | |
31388 | return 0; | |
31389 | } | |
31390 | _ACEOF | |
31391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31393 | (eval $ac_link) 2>&5 | |
31394 | ac_status=$? | |
31395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31396 | (exit $ac_status); } && | |
31397 | { ac_try='test -s conftest$ac_exeext' | |
31398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31399 | (eval $ac_try) 2>&5 | |
31400 | ac_status=$? | |
31401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31402 | (exit $ac_status); }; }; then | |
31403 | ac_cv_lib_shl_load_dld=yes | |
31404 | else | |
31405 | echo "$as_me: failed program was:" >&5 | |
31406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31407 | ||
31408 | ac_cv_lib_shl_load_dld=no | |
31409 | fi | |
31410 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31411 | LIBS=$ac_check_lib_save_LIBS | |
31412 | fi | |
31413 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31414 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31415 | if test $ac_cv_lib_shl_load_dld = yes; then | |
31416 | ||
31417 | HAVE_SHL_FUNCS=1 | |
31418 | DL_LINK=" -ldld$DL_LINK" | |
31419 | ||
31420 | fi | |
31421 | ||
31422 | ||
31423 | fi | |
31424 | done | |
31425 | ||
31426 | ||
31427 | fi | |
31428 | ||
31429 | ||
31430 | fi | |
31431 | done | |
31432 | ||
31433 | ||
31434 | if test "$HAVE_DL_FUNCS" = 1; then | |
31435 | ||
31436 | for ac_func in dlerror | |
31437 | do | |
31438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31439 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31441 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31443 | else | |
31444 | cat >conftest.$ac_ext <<_ACEOF | |
31445 | #line $LINENO "configure" | |
31446 | /* confdefs.h. */ | |
31447 | _ACEOF | |
31448 | cat confdefs.h >>conftest.$ac_ext | |
31449 | cat >>conftest.$ac_ext <<_ACEOF | |
31450 | /* end confdefs.h. */ | |
31451 | /* System header to define __stub macros and hopefully few prototypes, | |
31452 | which can conflict with char $ac_func (); below. | |
31453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31454 | <limits.h> exists even on freestanding compilers. */ | |
31455 | #ifdef __STDC__ | |
31456 | # include <limits.h> | |
31457 | #else | |
31458 | # include <assert.h> | |
31459 | #endif | |
31460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31461 | #ifdef __cplusplus | |
31462 | extern "C" | |
31463 | { | |
31464 | #endif | |
31465 | /* We use char because int might match the return type of a gcc2 | |
31466 | builtin and then its argument prototype would still apply. */ | |
31467 | char $ac_func (); | |
31468 | /* The GNU C library defines this for functions which it implements | |
31469 | to always fail with ENOSYS. Some functions are actually named | |
31470 | something starting with __ and the normal name is an alias. */ | |
31471 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31472 | choke me | |
31473 | #else | |
31474 | char (*f) () = $ac_func; | |
31475 | #endif | |
31476 | #ifdef __cplusplus | |
31477 | } | |
31478 | #endif | |
31479 | ||
31480 | int | |
31481 | main () | |
31482 | { | |
31483 | return f != $ac_func; | |
31484 | ; | |
31485 | return 0; | |
31486 | } | |
31487 | _ACEOF | |
31488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31490 | (eval $ac_link) 2>&5 | |
31491 | ac_status=$? | |
31492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31493 | (exit $ac_status); } && | |
31494 | { ac_try='test -s conftest$ac_exeext' | |
31495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31496 | (eval $ac_try) 2>&5 | |
31497 | ac_status=$? | |
31498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31499 | (exit $ac_status); }; }; then | |
31500 | eval "$as_ac_var=yes" | |
31501 | else | |
31502 | echo "$as_me: failed program was:" >&5 | |
31503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31504 | ||
31505 | eval "$as_ac_var=no" | |
31506 | fi | |
31507 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31508 | fi | |
31509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31510 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31511 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31512 | cat >>confdefs.h <<_ACEOF | |
31513 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31514 | _ACEOF | |
31515 | cat >>confdefs.h <<\_ACEOF | |
31516 | #define HAVE_DLERROR 1 | |
31517 | _ACEOF | |
31518 | ||
31519 | else | |
31520 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
31521 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31522 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31524 | else | |
31525 | ac_check_lib_save_LIBS=$LIBS | |
31526 | LIBS="-ldl $LIBS" | |
31527 | cat >conftest.$ac_ext <<_ACEOF | |
31528 | #line $LINENO "configure" | |
31529 | /* confdefs.h. */ | |
31530 | _ACEOF | |
31531 | cat confdefs.h >>conftest.$ac_ext | |
31532 | cat >>conftest.$ac_ext <<_ACEOF | |
31533 | /* end confdefs.h. */ | |
31534 | ||
31535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31536 | #ifdef __cplusplus | |
31537 | extern "C" | |
31538 | #endif | |
31539 | /* We use char because int might match the return type of a gcc2 | |
31540 | builtin and then its argument prototype would still apply. */ | |
31541 | char dlerror (); | |
31542 | int | |
31543 | main () | |
31544 | { | |
31545 | dlerror (); | |
31546 | ; | |
31547 | return 0; | |
31548 | } | |
31549 | _ACEOF | |
31550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31552 | (eval $ac_link) 2>&5 | |
31553 | ac_status=$? | |
31554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31555 | (exit $ac_status); } && | |
31556 | { ac_try='test -s conftest$ac_exeext' | |
31557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31558 | (eval $ac_try) 2>&5 | |
31559 | ac_status=$? | |
31560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31561 | (exit $ac_status); }; }; then | |
31562 | ac_cv_lib_dl_dlerror=yes | |
31563 | else | |
31564 | echo "$as_me: failed program was:" >&5 | |
31565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31566 | ||
31567 | ac_cv_lib_dl_dlerror=no | |
31568 | fi | |
31569 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31570 | LIBS=$ac_check_lib_save_LIBS | |
31571 | fi | |
31572 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31573 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31574 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31575 | cat >>confdefs.h <<\_ACEOF | |
31576 | #define HAVE_DLERROR 1 | |
31577 | _ACEOF | |
31578 | ||
31579 | fi | |
31580 | ||
31581 | fi | |
31582 | done | |
31583 | ||
31584 | fi | |
31585 | fi | |
31586 | ||
31587 | if test "$HAVE_DL_FUNCS" = 0; then | |
31588 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31589 | if test "$USE_UNIX" = 1; then | |
31590 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
31591 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
31592 | wxUSE_DYNAMIC_LOADER=no | |
31593 | wxUSE_DYNLIB_CLASS=no | |
31594 | else | |
31595 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
31596 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
31597 | fi | |
31598 | fi | |
31599 | fi | |
31600 | fi | |
31601 | fi | |
31602 | ||
31603 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
31604 | cat >>confdefs.h <<\_ACEOF | |
31605 | #define wxUSE_DYNAMIC_LOADER 1 | |
31606 | _ACEOF | |
31607 | ||
31608 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
31609 | cat >>confdefs.h <<\_ACEOF | |
31610 | #define wxUSE_DYNLIB_CLASS 1 | |
31611 | _ACEOF | |
31612 | ||
31613 | fi | |
31614 | ||
31615 | ||
31616 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
31617 | cat >>confdefs.h <<\_ACEOF | |
31618 | #define wxUSE_FONTMAP 1 | |
31619 | _ACEOF | |
31620 | ||
31621 | fi | |
31622 | ||
31623 | if test "$wxUSE_UNICODE" = "yes" ; then | |
31624 | cat >>confdefs.h <<\_ACEOF | |
31625 | #define wxUSE_UNICODE 1 | |
31626 | _ACEOF | |
31627 | ||
31628 | ||
31629 | if test "$wxUSE_MSW" != 1; then | |
31630 | wxUSE_UNICODE_MSLU=no | |
31631 | fi | |
31632 | ||
31633 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
31634 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
31635 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
31636 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
31637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31638 | else | |
31639 | ac_check_lib_save_LIBS=$LIBS | |
31640 | LIBS="-lunicows $LIBS" | |
31641 | cat >conftest.$ac_ext <<_ACEOF | |
31642 | #line $LINENO "configure" | |
31643 | /* confdefs.h. */ | |
31644 | _ACEOF | |
31645 | cat confdefs.h >>conftest.$ac_ext | |
31646 | cat >>conftest.$ac_ext <<_ACEOF | |
31647 | /* end confdefs.h. */ | |
31648 | ||
31649 | ||
31650 | int | |
31651 | main () | |
31652 | { | |
31653 | main (); | |
31654 | ; | |
31655 | return 0; | |
31656 | } | |
31657 | _ACEOF | |
31658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31660 | (eval $ac_link) 2>&5 | |
31661 | ac_status=$? | |
31662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31663 | (exit $ac_status); } && | |
31664 | { ac_try='test -s conftest$ac_exeext' | |
31665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31666 | (eval $ac_try) 2>&5 | |
31667 | ac_status=$? | |
31668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31669 | (exit $ac_status); }; }; then | |
31670 | ac_cv_lib_unicows_main=yes | |
31671 | else | |
31672 | echo "$as_me: failed program was:" >&5 | |
31673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31674 | ||
31675 | ac_cv_lib_unicows_main=no | |
31676 | fi | |
31677 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31678 | LIBS=$ac_check_lib_save_LIBS | |
31679 | fi | |
31680 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
31681 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
31682 | if test $ac_cv_lib_unicows_main = yes; then | |
31683 | ||
31684 | cat >>confdefs.h <<\_ACEOF | |
31685 | #define wxUSE_UNICODE_MSLU 1 | |
31686 | _ACEOF | |
31687 | ||
31688 | ||
31689 | else | |
31690 | ||
31691 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
31692 | Applications will only run on Windows NT/2000/XP!" >&5 | |
31693 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
31694 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
31695 | wxUSE_UNICODE_MSLU=no | |
31696 | ||
31697 | fi | |
31698 | ||
31699 | fi | |
31700 | fi | |
31701 | ||
31702 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
31703 | cat >>confdefs.h <<\_ACEOF | |
31704 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
31705 | _ACEOF | |
31706 | ||
31707 | fi | |
31708 | ||
31709 | ||
31710 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
31711 | cat >>confdefs.h <<\_ACEOF | |
31712 | #define wxUSE_POSTSCRIPT 1 | |
31713 | _ACEOF | |
31714 | ||
31715 | fi | |
31716 | ||
31717 | cat >>confdefs.h <<\_ACEOF | |
31718 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
31719 | _ACEOF | |
31720 | ||
31721 | ||
31722 | cat >>confdefs.h <<\_ACEOF | |
31723 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
31724 | _ACEOF | |
31725 | ||
31726 | ||
31727 | ||
31728 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
31729 | cat >>confdefs.h <<\_ACEOF | |
31730 | #define wxUSE_CONSTRAINTS 1 | |
31731 | _ACEOF | |
31732 | ||
31733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
31734 | fi | |
31735 | ||
31736 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
31737 | ||
31738 | ||
31739 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
31740 | cat >>confdefs.h <<\_ACEOF | |
31741 | #define wxUSE_MDI_ARCHITECTURE 1 | |
31742 | _ACEOF | |
31743 | ||
31744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
31745 | fi | |
31746 | fi | |
31747 | ||
31748 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
31749 | cat >>confdefs.h <<\_ACEOF | |
31750 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
31751 | _ACEOF | |
31752 | ||
31753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
31754 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
31755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
31756 | fi | |
31757 | fi | |
31758 | ||
31759 | if test "$wxUSE_HELP" = "yes"; then | |
31760 | cat >>confdefs.h <<\_ACEOF | |
31761 | #define wxUSE_HELP 1 | |
31762 | _ACEOF | |
31763 | ||
31764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
31765 | ||
31766 | if test "$wxUSE_MSW" = 1; then | |
31767 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
31768 | cat >>confdefs.h <<\_ACEOF | |
31769 | #define wxUSE_MS_HTML_HELP 1 | |
31770 | _ACEOF | |
31771 | ||
31772 | fi | |
31773 | fi | |
31774 | ||
31775 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
31776 | if test "$wxUSE_HTML" = "yes"; then | |
31777 | cat >>confdefs.h <<\_ACEOF | |
31778 | #define wxUSE_WXHTML_HELP 1 | |
31779 | _ACEOF | |
31780 | ||
31781 | else | |
31782 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
31783 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
31784 | wxUSE_WXHTML_HELP=no | |
31785 | fi | |
31786 | fi | |
31787 | fi | |
31788 | ||
31789 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
31790 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
31791 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
31792 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
31793 | else | |
31794 | cat >>confdefs.h <<\_ACEOF | |
31795 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
31796 | _ACEOF | |
31797 | ||
31798 | fi | |
31799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
31800 | fi | |
31801 | ||
31802 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
31803 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
31804 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
31805 | { (exit 1); exit 1; }; } | |
31806 | fi | |
31807 | ||
31808 | ||
31809 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
31810 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
31811 | -o "$wxUSE_OLE" = "yes" \ | |
31812 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
31813 | ||
31814 | for ac_header in ole2.h | |
31815 | do | |
31816 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31818 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31822 | fi | |
31823 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31824 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31825 | else | |
31826 | # Is the header compilable? | |
31827 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31828 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31829 | cat >conftest.$ac_ext <<_ACEOF | |
31830 | #line $LINENO "configure" | |
31831 | /* confdefs.h. */ | |
31832 | _ACEOF | |
31833 | cat confdefs.h >>conftest.$ac_ext | |
31834 | cat >>conftest.$ac_ext <<_ACEOF | |
31835 | /* end confdefs.h. */ | |
31836 | $ac_includes_default | |
31837 | #include <$ac_header> | |
31838 | _ACEOF | |
31839 | rm -f conftest.$ac_objext | |
31840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31841 | (eval $ac_compile) 2>&5 | |
31842 | ac_status=$? | |
31843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31844 | (exit $ac_status); } && | |
31845 | { ac_try='test -s conftest.$ac_objext' | |
31846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31847 | (eval $ac_try) 2>&5 | |
31848 | ac_status=$? | |
31849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31850 | (exit $ac_status); }; }; then | |
31851 | ac_header_compiler=yes | |
31852 | else | |
31853 | echo "$as_me: failed program was:" >&5 | |
31854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31855 | ||
31856 | ac_header_compiler=no | |
31857 | fi | |
31858 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31859 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31860 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31861 | ||
31862 | # Is the header present? | |
31863 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31864 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31865 | cat >conftest.$ac_ext <<_ACEOF | |
31866 | #line $LINENO "configure" | |
31867 | /* confdefs.h. */ | |
31868 | _ACEOF | |
31869 | cat confdefs.h >>conftest.$ac_ext | |
31870 | cat >>conftest.$ac_ext <<_ACEOF | |
31871 | /* end confdefs.h. */ | |
31872 | #include <$ac_header> | |
31873 | _ACEOF | |
31874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31876 | ac_status=$? | |
31877 | grep -v '^ *+' conftest.er1 >conftest.err | |
31878 | rm -f conftest.er1 | |
31879 | cat conftest.err >&5 | |
31880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31881 | (exit $ac_status); } >/dev/null; then | |
31882 | if test -s conftest.err; then | |
31883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31884 | else | |
31885 | ac_cpp_err= | |
31886 | fi | |
31887 | else | |
31888 | ac_cpp_err=yes | |
31889 | fi | |
31890 | if test -z "$ac_cpp_err"; then | |
31891 | ac_header_preproc=yes | |
31892 | else | |
31893 | echo "$as_me: failed program was:" >&5 | |
31894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31895 | ||
31896 | ac_header_preproc=no | |
31897 | fi | |
31898 | rm -f conftest.err conftest.$ac_ext | |
31899 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31900 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31901 | ||
31902 | # So? What about this header? | |
31903 | case $ac_header_compiler:$ac_header_preproc in | |
31904 | yes:no ) | |
31905 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31906 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31908 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31909 | ( | |
31910 | cat <<\_ASBOX | |
31911 | ## ------------------------------------ ## | |
31912 | ## Report this to bug-autoconf@gnu.org. ## | |
31913 | ## ------------------------------------ ## | |
31914 | _ASBOX | |
31915 | ) | | |
31916 | sed "s/^/$as_me: WARNING: /" >&2 | |
31917 | ;; | |
31918 | no:yes ) | |
31919 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31920 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31921 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31922 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31923 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31924 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31925 | ( | |
31926 | cat <<\_ASBOX | |
31927 | ## ------------------------------------ ## | |
31928 | ## Report this to bug-autoconf@gnu.org. ## | |
31929 | ## ------------------------------------ ## | |
31930 | _ASBOX | |
31931 | ) | | |
31932 | sed "s/^/$as_me: WARNING: /" >&2 | |
31933 | ;; | |
31934 | esac | |
31935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31939 | else | |
31940 | eval "$as_ac_Header=$ac_header_preproc" | |
31941 | fi | |
31942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31944 | ||
31945 | fi | |
31946 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31947 | cat >>confdefs.h <<_ACEOF | |
31948 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31949 | _ACEOF | |
31950 | ||
31951 | fi | |
31952 | ||
31953 | done | |
31954 | ||
31955 | ||
31956 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
31957 | if test "$GCC" = yes ; then | |
31958 | ||
31959 | ||
31960 | ac_ext=cc | |
31961 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31962 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31963 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31964 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31965 | ||
31966 | ||
31967 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
31968 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
31969 | cat >conftest.$ac_ext <<_ACEOF | |
31970 | #line $LINENO "configure" | |
31971 | /* confdefs.h. */ | |
31972 | _ACEOF | |
31973 | cat confdefs.h >>conftest.$ac_ext | |
31974 | cat >>conftest.$ac_ext <<_ACEOF | |
31975 | /* end confdefs.h. */ | |
31976 | #include <windows.h> | |
31977 | #include <ole2.h> | |
31978 | int | |
31979 | main () | |
31980 | { | |
31981 | ||
31982 | ; | |
31983 | return 0; | |
31984 | } | |
31985 | _ACEOF | |
31986 | rm -f conftest.$ac_objext | |
31987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31988 | (eval $ac_compile) 2>&5 | |
31989 | ac_status=$? | |
31990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31991 | (exit $ac_status); } && | |
31992 | { ac_try='test -s conftest.$ac_objext' | |
31993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31994 | (eval $ac_try) 2>&5 | |
31995 | ac_status=$? | |
31996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31997 | (exit $ac_status); }; }; then | |
31998 | echo "$as_me:$LINENO: result: no" >&5 | |
31999 | echo "${ECHO_T}no" >&6 | |
32000 | else | |
32001 | echo "$as_me: failed program was:" >&5 | |
32002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32003 | ||
32004 | echo "$as_me:$LINENO: result: yes" >&5 | |
32005 | echo "${ECHO_T}yes" >&6 | |
32006 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
32007 | fi | |
32008 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32009 | ac_ext=c | |
32010 | ac_cpp='$CPP $CPPFLAGS' | |
32011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32014 | ||
32015 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
32016 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
32017 | cat >>confdefs.h <<\_ACEOF | |
32018 | #define wxUSE_OLE 1 | |
32019 | _ACEOF | |
32020 | ||
32021 | ||
32022 | fi | |
32023 | ||
32024 | cat >>confdefs.h <<\_ACEOF | |
32025 | #define wxUSE_DATAOBJ 1 | |
32026 | _ACEOF | |
32027 | ||
32028 | else | |
32029 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
32030 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
32031 | ||
32032 | wxUSE_CLIPBOARD=no | |
32033 | wxUSE_DRAG_AND_DROP=no | |
32034 | wxUSE_DATAOBJ=no | |
32035 | wxUSE_OLE=no | |
32036 | fi | |
32037 | ||
32038 | if test "$wxUSE_METAFILE" = "yes"; then | |
32039 | cat >>confdefs.h <<\_ACEOF | |
32040 | #define wxUSE_METAFILE 1 | |
32041 | _ACEOF | |
32042 | ||
32043 | ||
32044 | cat >>confdefs.h <<\_ACEOF | |
32045 | #define wxUSE_ENH_METAFILE 1 | |
32046 | _ACEOF | |
32047 | ||
32048 | fi | |
32049 | fi | |
32050 | ||
32051 | if test "$wxUSE_IPC" = "yes"; then | |
32052 | if test "$wxUSE_SOCKETS" != "yes"; then | |
32053 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 | |
32054 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
32055 | fi | |
32056 | ||
32057 | cat >>confdefs.h <<\_ACEOF | |
32058 | #define wxUSE_IPC 1 | |
32059 | _ACEOF | |
32060 | ||
32061 | fi | |
32062 | ||
32063 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
32064 | if test "$wxUSE_MGL" = 1; then | |
32065 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
32066 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
32067 | wxUSE_CLIPBOARD=no | |
32068 | fi | |
32069 | ||
32070 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
32071 | cat >>confdefs.h <<\_ACEOF | |
32072 | #define wxUSE_CLIPBOARD 1 | |
32073 | _ACEOF | |
32074 | ||
32075 | ||
32076 | cat >>confdefs.h <<\_ACEOF | |
32077 | #define wxUSE_DATAOBJ 1 | |
32078 | _ACEOF | |
32079 | ||
32080 | fi | |
32081 | fi | |
32082 | ||
32083 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32084 | if test "$wxUSE_GTK" = 1; then | |
32085 | if test "$WXGTK12" != 1; then | |
32086 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
32087 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
32088 | wxUSE_DRAG_AND_DROP=no | |
32089 | fi | |
32090 | fi | |
32091 | ||
32092 | if test "$wxUSE_MOTIF" = 1; then | |
32093 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
32094 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
32095 | wxUSE_DRAG_AND_DROP=no | |
32096 | fi | |
32097 | ||
32098 | if test "$wxUSE_X11" = 1; then | |
32099 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
32100 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
32101 | wxUSE_DRAG_AND_DROP=no | |
32102 | fi | |
32103 | ||
32104 | if test "$wxUSE_MGL" = 1; then | |
32105 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
32106 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
32107 | wxUSE_DRAG_AND_DROP=no | |
32108 | fi | |
32109 | ||
32110 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
32111 | cat >>confdefs.h <<\_ACEOF | |
32112 | #define wxUSE_DRAG_AND_DROP 1 | |
32113 | _ACEOF | |
32114 | ||
32115 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32116 | fi | |
32117 | ||
32118 | fi | |
32119 | ||
32120 | if test "$wxUSE_SPLINES" = "yes" ; then | |
32121 | cat >>confdefs.h <<\_ACEOF | |
32122 | #define wxUSE_SPLINES 1 | |
32123 | _ACEOF | |
32124 | ||
32125 | fi | |
32126 | ||
32127 | ||
32128 | USES_CONTROLS=0 | |
32129 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32130 | USES_CONTROLS=1 | |
32131 | fi | |
32132 | ||
32133 | if test "$wxUSE_ACCEL" = "yes"; then | |
32134 | cat >>confdefs.h <<\_ACEOF | |
32135 | #define wxUSE_ACCEL 1 | |
32136 | _ACEOF | |
32137 | ||
32138 | USES_CONTROLS=1 | |
32139 | fi | |
32140 | ||
32141 | if test "$wxUSE_BUTTON" = "yes"; then | |
32142 | cat >>confdefs.h <<\_ACEOF | |
32143 | #define wxUSE_BUTTON 1 | |
32144 | _ACEOF | |
32145 | ||
32146 | USES_CONTROLS=1 | |
32147 | fi | |
32148 | ||
32149 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
32150 | cat >>confdefs.h <<\_ACEOF | |
32151 | #define wxUSE_BMPBUTTON 1 | |
32152 | _ACEOF | |
32153 | ||
32154 | USES_CONTROLS=1 | |
32155 | fi | |
32156 | ||
32157 | if test "$wxUSE_CALCTRL" = "yes"; then | |
32158 | cat >>confdefs.h <<\_ACEOF | |
32159 | #define wxUSE_CALENDARCTRL 1 | |
32160 | _ACEOF | |
32161 | ||
32162 | USES_CONTROLS=1 | |
32163 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
32164 | fi | |
32165 | ||
32166 | if test "$wxUSE_CARET" = "yes"; then | |
32167 | cat >>confdefs.h <<\_ACEOF | |
32168 | #define wxUSE_CARET 1 | |
32169 | _ACEOF | |
32170 | ||
32171 | USES_CONTROLS=1 | |
32172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
32173 | fi | |
32174 | ||
32175 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
32176 | cat >>confdefs.h <<\_ACEOF | |
32177 | #define wxUSE_COMBOBOX 1 | |
32178 | _ACEOF | |
32179 | ||
32180 | USES_CONTROLS=1 | |
32181 | fi | |
32182 | ||
32183 | if test "$wxUSE_CHOICE" = "yes"; then | |
32184 | cat >>confdefs.h <<\_ACEOF | |
32185 | #define wxUSE_CHOICE 1 | |
32186 | _ACEOF | |
32187 | ||
32188 | USES_CONTROLS=1 | |
32189 | fi | |
32190 | ||
32191 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
32192 | cat >>confdefs.h <<\_ACEOF | |
32193 | #define wxUSE_CHECKBOX 1 | |
32194 | _ACEOF | |
32195 | ||
32196 | USES_CONTROLS=1 | |
32197 | fi | |
32198 | ||
32199 | if test "$wxUSE_CHECKLST" = "yes"; then | |
32200 | cat >>confdefs.h <<\_ACEOF | |
32201 | #define wxUSE_CHECKLISTBOX 1 | |
32202 | _ACEOF | |
32203 | ||
32204 | USES_CONTROLS=1 | |
32205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
32206 | fi | |
32207 | ||
32208 | if test "$wxUSE_DISPLAY" = "yes"; then | |
32209 | cat >>confdefs.h <<\_ACEOF | |
32210 | #define wxUSE_DISPLAY 1 | |
32211 | _ACEOF | |
32212 | ||
32213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32214 | fi | |
32215 | ||
32216 | if test "$wxUSE_GAUGE" = "yes"; then | |
32217 | cat >>confdefs.h <<\_ACEOF | |
32218 | #define wxUSE_GAUGE 1 | |
32219 | _ACEOF | |
32220 | ||
32221 | USES_CONTROLS=1 | |
32222 | fi | |
32223 | ||
32224 | if test "$wxUSE_GRID" = "yes"; then | |
32225 | cat >>confdefs.h <<\_ACEOF | |
32226 | #define wxUSE_GRID 1 | |
32227 | _ACEOF | |
32228 | ||
32229 | USES_CONTROLS=1 | |
32230 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
32231 | fi | |
32232 | ||
32233 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
32234 | cat >>confdefs.h <<\_ACEOF | |
32235 | #define wxUSE_IMAGLIST 1 | |
32236 | _ACEOF | |
32237 | ||
32238 | fi | |
32239 | ||
32240 | if test "$wxUSE_LISTBOX" = "yes"; then | |
32241 | cat >>confdefs.h <<\_ACEOF | |
32242 | #define wxUSE_LISTBOX 1 | |
32243 | _ACEOF | |
32244 | ||
32245 | USES_CONTROLS=1 | |
32246 | fi | |
32247 | ||
32248 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32249 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
32250 | cat >>confdefs.h <<\_ACEOF | |
32251 | #define wxUSE_LISTCTRL 1 | |
32252 | _ACEOF | |
32253 | ||
32254 | USES_CONTROLS=1 | |
32255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
32256 | else | |
32257 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
32258 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
32259 | fi | |
32260 | fi | |
32261 | ||
32262 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
32263 | cat >>confdefs.h <<\_ACEOF | |
32264 | #define wxUSE_NOTEBOOK 1 | |
32265 | _ACEOF | |
32266 | ||
32267 | USES_CONTROLS=1 | |
32268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
32269 | fi | |
32270 | ||
32271 | ||
32272 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
32273 | cat >>confdefs.h <<\_ACEOF | |
32274 | #define wxUSE_RADIOBOX 1 | |
32275 | _ACEOF | |
32276 | ||
32277 | USES_CONTROLS=1 | |
32278 | fi | |
32279 | ||
32280 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
32281 | cat >>confdefs.h <<\_ACEOF | |
32282 | #define wxUSE_RADIOBTN 1 | |
32283 | _ACEOF | |
32284 | ||
32285 | USES_CONTROLS=1 | |
32286 | fi | |
32287 | ||
32288 | if test "$wxUSE_SASH" = "yes"; then | |
32289 | cat >>confdefs.h <<\_ACEOF | |
32290 | #define wxUSE_SASH 1 | |
32291 | _ACEOF | |
32292 | ||
32293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32294 | fi | |
32295 | ||
32296 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
32297 | cat >>confdefs.h <<\_ACEOF | |
32298 | #define wxUSE_SCROLLBAR 1 | |
32299 | _ACEOF | |
32300 | ||
32301 | USES_CONTROLS=1 | |
32302 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
32303 | fi | |
32304 | ||
32305 | if test "$wxUSE_SLIDER" = "yes"; then | |
32306 | cat >>confdefs.h <<\_ACEOF | |
32307 | #define wxUSE_SLIDER 1 | |
32308 | _ACEOF | |
32309 | ||
32310 | USES_CONTROLS=1 | |
32311 | fi | |
32312 | ||
32313 | if test "$wxUSE_SPINBTN" = "yes"; then | |
32314 | cat >>confdefs.h <<\_ACEOF | |
32315 | #define wxUSE_SPINBTN 1 | |
32316 | _ACEOF | |
32317 | ||
32318 | USES_CONTROLS=1 | |
32319 | fi | |
32320 | ||
32321 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
32322 | cat >>confdefs.h <<\_ACEOF | |
32323 | #define wxUSE_SPINCTRL 1 | |
32324 | _ACEOF | |
32325 | ||
32326 | USES_CONTROLS=1 | |
32327 | fi | |
32328 | ||
32329 | if test "$wxUSE_SPLITTER" = "yes"; then | |
32330 | cat >>confdefs.h <<\_ACEOF | |
32331 | #define wxUSE_SPLITTER 1 | |
32332 | _ACEOF | |
32333 | ||
32334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32335 | fi | |
32336 | ||
32337 | if test "$wxUSE_STATBMP" = "yes"; then | |
32338 | cat >>confdefs.h <<\_ACEOF | |
32339 | #define wxUSE_STATBMP 1 | |
32340 | _ACEOF | |
32341 | ||
32342 | USES_CONTROLS=1 | |
32343 | fi | |
32344 | ||
32345 | if test "$wxUSE_STATBOX" = "yes"; then | |
32346 | cat >>confdefs.h <<\_ACEOF | |
32347 | #define wxUSE_STATBOX 1 | |
32348 | _ACEOF | |
32349 | ||
32350 | USES_CONTROLS=1 | |
32351 | fi | |
32352 | ||
32353 | if test "$wxUSE_STATTEXT" = "yes"; then | |
32354 | cat >>confdefs.h <<\_ACEOF | |
32355 | #define wxUSE_STATTEXT 1 | |
32356 | _ACEOF | |
32357 | ||
32358 | USES_CONTROLS=1 | |
32359 | fi | |
32360 | ||
32361 | if test "$wxUSE_STATLINE" = "yes"; then | |
32362 | cat >>confdefs.h <<\_ACEOF | |
32363 | #define wxUSE_STATLINE 1 | |
32364 | _ACEOF | |
32365 | ||
32366 | USES_CONTROLS=1 | |
32367 | fi | |
32368 | ||
32369 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
32370 | cat >>confdefs.h <<\_ACEOF | |
32371 | #define wxUSE_STATUSBAR 1 | |
32372 | _ACEOF | |
32373 | ||
32374 | USES_CONTROLS=1 | |
32375 | ||
32376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
32377 | fi | |
32378 | ||
32379 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
32380 | cat >>confdefs.h <<\_ACEOF | |
32381 | #define wxUSE_TAB_DIALOG 1 | |
32382 | _ACEOF | |
32383 | ||
32384 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32385 | fi | |
32386 | ||
32387 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
32388 | cat >>confdefs.h <<\_ACEOF | |
32389 | #define wxUSE_TEXTCTRL 1 | |
32390 | _ACEOF | |
32391 | ||
32392 | USES_CONTROLS=1 | |
32393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32394 | fi | |
32395 | ||
32396 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
32397 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
32398 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
32399 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
32400 | wxUSE_TOGGLEBTN=no | |
32401 | fi | |
32402 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
32403 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
32404 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
32405 | wxUSE_TOGGLEBTN=no | |
32406 | fi | |
32407 | ||
32408 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
32409 | cat >>confdefs.h <<\_ACEOF | |
32410 | #define wxUSE_TOGGLEBTN 1 | |
32411 | _ACEOF | |
32412 | ||
32413 | USES_CONTROLS=1 | |
32414 | fi | |
32415 | fi | |
32416 | ||
32417 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
32418 | cat >>confdefs.h <<\_ACEOF | |
32419 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
32420 | _ACEOF | |
32421 | ||
32422 | wxUSE_TOOLBAR="yes" | |
32423 | USES_CONTROLS=1 | |
32424 | fi | |
32425 | ||
32426 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
32427 | cat >>confdefs.h <<\_ACEOF | |
32428 | #define wxUSE_TOOLBAR 1 | |
32429 | _ACEOF | |
32430 | ||
32431 | USES_CONTROLS=1 | |
32432 | ||
32433 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
32434 | wxUSE_TOOLBAR_NATIVE="yes" | |
32435 | fi | |
32436 | ||
32437 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
32438 | cat >>confdefs.h <<\_ACEOF | |
32439 | #define wxUSE_TOOLBAR_NATIVE 1 | |
32440 | _ACEOF | |
32441 | ||
32442 | USES_CONTROLS=1 | |
32443 | fi | |
32444 | ||
32445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
32446 | fi | |
32447 | ||
32448 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
32449 | if test "$wxUSE_MOTIF" = 1; then | |
32450 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
32451 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
32452 | else | |
32453 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
32454 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
32455 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
32456 | else | |
32457 | cat >>confdefs.h <<\_ACEOF | |
32458 | #define wxUSE_TOOLTIPS 1 | |
32459 | _ACEOF | |
32460 | ||
32461 | fi | |
32462 | fi | |
32463 | fi | |
32464 | ||
32465 | if test "$wxUSE_TREECTRL" = "yes"; then | |
32466 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
32467 | cat >>confdefs.h <<\_ACEOF | |
32468 | #define wxUSE_TREECTRL 1 | |
32469 | _ACEOF | |
32470 | ||
32471 | USES_CONTROLS=1 | |
32472 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
32473 | else | |
32474 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
32475 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
32476 | fi | |
32477 | fi | |
32478 | ||
32479 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
32480 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
32481 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
32482 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
32483 | else | |
32484 | if test "$wxUSE_MOTIF" = 1; then | |
32485 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 | |
32486 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
32487 | else | |
32488 | if test "$wxUSE_PM" = 1; then | |
32489 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
32490 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
32491 | else | |
32492 | cat >>confdefs.h <<\_ACEOF | |
32493 | #define wxUSE_POPUPWIN 1 | |
32494 | _ACEOF | |
32495 | ||
32496 | ||
32497 | USES_CONTROLS=1 | |
32498 | fi | |
32499 | fi | |
32500 | fi | |
32501 | fi | |
32502 | ||
32503 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
32504 | if test "$wxUSE_PM" = 1; then | |
32505 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
32506 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
32507 | else | |
32508 | cat >>confdefs.h <<\_ACEOF | |
32509 | #define wxUSE_TIPWINDOW 1 | |
32510 | _ACEOF | |
32511 | ||
32512 | fi | |
32513 | fi | |
32514 | ||
32515 | if test "$USES_CONTROLS" = 1; then | |
32516 | cat >>confdefs.h <<\_ACEOF | |
32517 | #define wxUSE_CONTROLS 1 | |
32518 | _ACEOF | |
32519 | ||
32520 | fi | |
32521 | ||
32522 | ||
32523 | ||
32524 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
32525 | cat >>confdefs.h <<\_ACEOF | |
32526 | #define wxUSE_DRAGIMAGE 1 | |
32527 | _ACEOF | |
32528 | ||
32529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
32530 | fi | |
32531 | ||
32532 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
32533 | cat >>confdefs.h <<\_ACEOF | |
32534 | #define wxUSE_ACCESSIBILITY 1 | |
32535 | _ACEOF | |
32536 | ||
32537 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
32538 | fi | |
32539 | ||
32540 | if test "$wxUSE_MENUS" = "yes"; then | |
32541 | cat >>confdefs.h <<\_ACEOF | |
32542 | #define wxUSE_MENUS 1 | |
32543 | _ACEOF | |
32544 | ||
32545 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
32546 | fi | |
32547 | ||
32548 | if test "$wxUSE_METAFILE" = "yes"; then | |
32549 | cat >>confdefs.h <<\_ACEOF | |
32550 | #define wxUSE_METAFILE 1 | |
32551 | _ACEOF | |
32552 | ||
32553 | fi | |
32554 | ||
32555 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
32556 | cat >>confdefs.h <<\_ACEOF | |
32557 | #define wxUSE_MIMETYPE 1 | |
32558 | _ACEOF | |
32559 | ||
32560 | fi | |
32561 | ||
32562 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
32563 | cat >>confdefs.h <<\_ACEOF | |
32564 | #define wxUSE_SYSTEM_OPTIONS 1 | |
32565 | _ACEOF | |
32566 | ||
32567 | if test "$TOOLKIT" = "MSW"; then | |
32568 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
32569 | fi | |
32570 | ||
32571 | fi | |
32572 | ||
32573 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
32574 | if test "$wxUSE_SOCKETS" != "yes"; then | |
32575 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
32576 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
32577 | wxUSE_PROTOCOL=no | |
32578 | fi | |
32579 | ||
32580 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
32581 | cat >>confdefs.h <<\_ACEOF | |
32582 | #define wxUSE_PROTOCOL 1 | |
32583 | _ACEOF | |
32584 | ||
32585 | ||
32586 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
32587 | cat >>confdefs.h <<\_ACEOF | |
32588 | #define wxUSE_PROTOCOL_HTTP 1 | |
32589 | _ACEOF | |
32590 | ||
32591 | fi | |
32592 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
32593 | cat >>confdefs.h <<\_ACEOF | |
32594 | #define wxUSE_PROTOCOL_FTP 1 | |
32595 | _ACEOF | |
32596 | ||
32597 | fi | |
32598 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
32599 | cat >>confdefs.h <<\_ACEOF | |
32600 | #define wxUSE_PROTOCOL_FILE 1 | |
32601 | _ACEOF | |
32602 | ||
32603 | fi | |
32604 | fi | |
32605 | fi | |
32606 | ||
32607 | if test "$wxUSE_URL" = "yes"; then | |
32608 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
32609 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
32610 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
32611 | wxUSE_URL=no | |
32612 | fi | |
32613 | if test "$wxUSE_URL" = "yes"; then | |
32614 | cat >>confdefs.h <<\_ACEOF | |
32615 | #define wxUSE_URL 1 | |
32616 | _ACEOF | |
32617 | ||
32618 | fi | |
32619 | fi | |
32620 | ||
32621 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
32622 | cat >>confdefs.h <<\_ACEOF | |
32623 | #define wxUSE_MINIFRAME 1 | |
32624 | _ACEOF | |
32625 | ||
32626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
32627 | fi | |
32628 | ||
32629 | if test "$wxUSE_HTML" = "yes"; then | |
32630 | cat >>confdefs.h <<\_ACEOF | |
32631 | #define wxUSE_HTML 1 | |
32632 | _ACEOF | |
32633 | ||
32634 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
32635 | fi | |
32636 | ||
32637 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
32638 | cat >>confdefs.h <<\_ACEOF | |
32639 | #define wxUSE_VALIDATORS 1 | |
32640 | _ACEOF | |
32641 | ||
32642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
32643 | fi | |
32644 | ||
32645 | if test "$wxUSE_PALETTE" = "yes" ; then | |
32646 | cat >>confdefs.h <<\_ACEOF | |
32647 | #define wxUSE_PALETTE 1 | |
32648 | _ACEOF | |
32649 | ||
32650 | fi | |
32651 | ||
32652 | if test "$wxUSE_IMAGE" = "yes" ; then | |
32653 | cat >>confdefs.h <<\_ACEOF | |
32654 | #define wxUSE_IMAGE 1 | |
32655 | _ACEOF | |
32656 | ||
32657 | fi | |
32658 | ||
32659 | if test "$wxUSE_GIF" = "yes" ; then | |
32660 | cat >>confdefs.h <<\_ACEOF | |
32661 | #define wxUSE_GIF 1 | |
32662 | _ACEOF | |
32663 | ||
32664 | fi | |
32665 | ||
32666 | if test "$wxUSE_PCX" = "yes" ; then | |
32667 | cat >>confdefs.h <<\_ACEOF | |
32668 | #define wxUSE_PCX 1 | |
32669 | _ACEOF | |
32670 | ||
32671 | fi | |
32672 | ||
32673 | if test "$wxUSE_IFF" = "yes" ; then | |
32674 | cat >>confdefs.h <<\_ACEOF | |
32675 | #define wxUSE_IFF 1 | |
32676 | _ACEOF | |
32677 | ||
32678 | fi | |
32679 | ||
32680 | if test "$wxUSE_PNM" = "yes" ; then | |
32681 | cat >>confdefs.h <<\_ACEOF | |
32682 | #define wxUSE_PNM 1 | |
32683 | _ACEOF | |
32684 | ||
32685 | fi | |
32686 | ||
32687 | if test "$wxUSE_XPM" = "yes" ; then | |
32688 | cat >>confdefs.h <<\_ACEOF | |
32689 | #define wxUSE_XPM 1 | |
32690 | _ACEOF | |
32691 | ||
32692 | fi | |
32693 | ||
32694 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
32695 | cat >>confdefs.h <<\_ACEOF | |
32696 | #define wxUSE_ICO_CUR 1 | |
32697 | _ACEOF | |
32698 | ||
32699 | fi | |
32700 | ||
32701 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
32702 | LIBS=" -lunicows $LIBS" | |
32703 | fi | |
32704 | ||
32705 | ||
32706 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
32707 | cat >>confdefs.h <<\_ACEOF | |
32708 | #define wxUSE_CHOICEDLG 1 | |
32709 | _ACEOF | |
32710 | ||
32711 | fi | |
32712 | ||
32713 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
32714 | cat >>confdefs.h <<\_ACEOF | |
32715 | #define wxUSE_COLOURDLG 1 | |
32716 | _ACEOF | |
32717 | ||
32718 | fi | |
32719 | ||
32720 | if test "$wxUSE_FILEDLG" = "yes"; then | |
32721 | cat >>confdefs.h <<\_ACEOF | |
32722 | #define wxUSE_FILEDLG 1 | |
32723 | _ACEOF | |
32724 | ||
32725 | fi | |
32726 | ||
32727 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
32728 | cat >>confdefs.h <<\_ACEOF | |
32729 | #define wxUSE_FINDREPLDLG 1 | |
32730 | _ACEOF | |
32731 | ||
32732 | fi | |
32733 | ||
32734 | if test "$wxUSE_FONTDLG" = "yes"; then | |
32735 | cat >>confdefs.h <<\_ACEOF | |
32736 | #define wxUSE_FONTDLG 1 | |
32737 | _ACEOF | |
32738 | ||
32739 | fi | |
32740 | ||
32741 | if test "$wxUSE_DIRDLG" = "yes"; then | |
32742 | if test "$wxUSE_TREECTRL" != "yes"; then | |
32743 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
32744 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
32745 | else | |
32746 | cat >>confdefs.h <<\_ACEOF | |
32747 | #define wxUSE_DIRDLG 1 | |
32748 | _ACEOF | |
32749 | ||
32750 | fi | |
32751 | fi | |
32752 | ||
32753 | if test "$wxUSE_MSGDLG" = "yes"; then | |
32754 | cat >>confdefs.h <<\_ACEOF | |
32755 | #define wxUSE_MSGDLG 1 | |
32756 | _ACEOF | |
32757 | ||
32758 | fi | |
32759 | ||
32760 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
32761 | cat >>confdefs.h <<\_ACEOF | |
32762 | #define wxUSE_NUMBERDLG 1 | |
32763 | _ACEOF | |
32764 | ||
32765 | fi | |
32766 | ||
32767 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
32768 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
32769 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
32770 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
32771 | else | |
32772 | cat >>confdefs.h <<\_ACEOF | |
32773 | #define wxUSE_PROGRESSDLG 1 | |
32774 | _ACEOF | |
32775 | ||
32776 | fi | |
32777 | fi | |
32778 | ||
32779 | if test "$wxUSE_SPLASH" = "yes"; then | |
32780 | cat >>confdefs.h <<\_ACEOF | |
32781 | #define wxUSE_SPLASH 1 | |
32782 | _ACEOF | |
32783 | ||
32784 | fi | |
32785 | ||
32786 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
32787 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
32788 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
32789 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
32790 | else | |
32791 | cat >>confdefs.h <<\_ACEOF | |
32792 | #define wxUSE_STARTUP_TIPS 1 | |
32793 | _ACEOF | |
32794 | ||
32795 | fi | |
32796 | fi | |
32797 | ||
32798 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
32799 | cat >>confdefs.h <<\_ACEOF | |
32800 | #define wxUSE_TEXTDLG 1 | |
32801 | _ACEOF | |
32802 | ||
32803 | fi | |
32804 | ||
32805 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
32806 | cat >>confdefs.h <<\_ACEOF | |
32807 | #define wxUSE_WIZARDDLG 1 | |
32808 | _ACEOF | |
32809 | ||
32810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
32811 | fi | |
32812 | ||
32813 | ||
32814 | if test "$cross_compiling" = "yes"; then | |
32815 | OSINFO="\"$host\"" | |
32816 | else | |
32817 | OSINFO=`uname -s -r -m` | |
32818 | OSINFO="\"$OSINFO\"" | |
32819 | fi | |
32820 | ||
32821 | cat >>confdefs.h <<_ACEOF | |
32822 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
32823 | _ACEOF | |
32824 | ||
32825 | ||
32826 | ||
32827 | if test "x$prefix" != "xNONE"; then | |
32828 | wxPREFIX=$prefix | |
32829 | else | |
32830 | wxPREFIX=$ac_default_prefix | |
32831 | fi | |
32832 | ||
32833 | cat >>confdefs.h <<_ACEOF | |
32834 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
32835 | _ACEOF | |
32836 | ||
32837 | ||
32838 | top_builddir_wxconfig=`pwd` | |
32839 | ||
32840 | ||
32841 | ||
32842 | ||
32843 | if test "$wxUSE_MAC" = 1 ; then | |
32844 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
32845 | fi | |
32846 | if test "$wxUSE_COCOA" = 1 ; then | |
32847 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
32848 | fi | |
32849 | ||
32850 | ||
32851 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
32852 | ||
32853 | have_cos=0 | |
32854 | have_floor=0 | |
32855 | ||
32856 | for ac_func in cos | |
32857 | do | |
32858 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32859 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32860 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32861 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32863 | else | |
32864 | cat >conftest.$ac_ext <<_ACEOF | |
32865 | #line $LINENO "configure" | |
32866 | /* confdefs.h. */ | |
32867 | _ACEOF | |
32868 | cat confdefs.h >>conftest.$ac_ext | |
32869 | cat >>conftest.$ac_ext <<_ACEOF | |
32870 | /* end confdefs.h. */ | |
32871 | /* System header to define __stub macros and hopefully few prototypes, | |
32872 | which can conflict with char $ac_func (); below. | |
32873 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32874 | <limits.h> exists even on freestanding compilers. */ | |
32875 | #ifdef __STDC__ | |
32876 | # include <limits.h> | |
32877 | #else | |
32878 | # include <assert.h> | |
32879 | #endif | |
32880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32881 | #ifdef __cplusplus | |
32882 | extern "C" | |
32883 | { | |
32884 | #endif | |
32885 | /* We use char because int might match the return type of a gcc2 | |
32886 | builtin and then its argument prototype would still apply. */ | |
32887 | char $ac_func (); | |
32888 | /* The GNU C library defines this for functions which it implements | |
32889 | to always fail with ENOSYS. Some functions are actually named | |
32890 | something starting with __ and the normal name is an alias. */ | |
32891 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32892 | choke me | |
32893 | #else | |
32894 | char (*f) () = $ac_func; | |
32895 | #endif | |
32896 | #ifdef __cplusplus | |
32897 | } | |
32898 | #endif | |
32899 | ||
32900 | int | |
32901 | main () | |
32902 | { | |
32903 | return f != $ac_func; | |
32904 | ; | |
32905 | return 0; | |
32906 | } | |
32907 | _ACEOF | |
32908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32910 | (eval $ac_link) 2>&5 | |
32911 | ac_status=$? | |
32912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32913 | (exit $ac_status); } && | |
32914 | { ac_try='test -s conftest$ac_exeext' | |
32915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32916 | (eval $ac_try) 2>&5 | |
32917 | ac_status=$? | |
32918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32919 | (exit $ac_status); }; }; then | |
32920 | eval "$as_ac_var=yes" | |
32921 | else | |
32922 | echo "$as_me: failed program was:" >&5 | |
32923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32924 | ||
32925 | eval "$as_ac_var=no" | |
32926 | fi | |
32927 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32928 | fi | |
32929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32930 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32931 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32932 | cat >>confdefs.h <<_ACEOF | |
32933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32934 | _ACEOF | |
32935 | have_cos=1 | |
32936 | fi | |
32937 | done | |
32938 | ||
32939 | ||
32940 | for ac_func in floor | |
32941 | do | |
32942 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32943 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32944 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32945 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32947 | else | |
32948 | cat >conftest.$ac_ext <<_ACEOF | |
32949 | #line $LINENO "configure" | |
32950 | /* confdefs.h. */ | |
32951 | _ACEOF | |
32952 | cat confdefs.h >>conftest.$ac_ext | |
32953 | cat >>conftest.$ac_ext <<_ACEOF | |
32954 | /* end confdefs.h. */ | |
32955 | /* System header to define __stub macros and hopefully few prototypes, | |
32956 | which can conflict with char $ac_func (); below. | |
32957 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32958 | <limits.h> exists even on freestanding compilers. */ | |
32959 | #ifdef __STDC__ | |
32960 | # include <limits.h> | |
32961 | #else | |
32962 | # include <assert.h> | |
32963 | #endif | |
32964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32965 | #ifdef __cplusplus | |
32966 | extern "C" | |
32967 | { | |
32968 | #endif | |
32969 | /* We use char because int might match the return type of a gcc2 | |
32970 | builtin and then its argument prototype would still apply. */ | |
32971 | char $ac_func (); | |
32972 | /* The GNU C library defines this for functions which it implements | |
32973 | to always fail with ENOSYS. Some functions are actually named | |
32974 | something starting with __ and the normal name is an alias. */ | |
32975 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32976 | choke me | |
32977 | #else | |
32978 | char (*f) () = $ac_func; | |
32979 | #endif | |
32980 | #ifdef __cplusplus | |
32981 | } | |
32982 | #endif | |
32983 | ||
32984 | int | |
32985 | main () | |
32986 | { | |
32987 | return f != $ac_func; | |
32988 | ; | |
32989 | return 0; | |
32990 | } | |
32991 | _ACEOF | |
32992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32994 | (eval $ac_link) 2>&5 | |
32995 | ac_status=$? | |
32996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32997 | (exit $ac_status); } && | |
32998 | { ac_try='test -s conftest$ac_exeext' | |
32999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33000 | (eval $ac_try) 2>&5 | |
33001 | ac_status=$? | |
33002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33003 | (exit $ac_status); }; }; then | |
33004 | eval "$as_ac_var=yes" | |
33005 | else | |
33006 | echo "$as_me: failed program was:" >&5 | |
33007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33008 | ||
33009 | eval "$as_ac_var=no" | |
33010 | fi | |
33011 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33012 | fi | |
33013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33014 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33015 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33016 | cat >>confdefs.h <<_ACEOF | |
33017 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33018 | _ACEOF | |
33019 | have_floor=1 | |
33020 | fi | |
33021 | done | |
33022 | ||
33023 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
33024 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
33025 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
33026 | echo "$as_me:$LINENO: result: yes" >&5 | |
33027 | echo "${ECHO_T}yes" >&6 | |
33028 | else | |
33029 | echo "$as_me:$LINENO: result: no" >&5 | |
33030 | echo "${ECHO_T}no" >&6 | |
33031 | LIBS="$LIBS -lm" | |
33032 | # use different functions to avoid configure caching | |
33033 | have_sin=0 | |
33034 | have_ceil=0 | |
33035 | ||
33036 | for ac_func in sin | |
33037 | do | |
33038 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33039 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33040 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33041 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33043 | else | |
33044 | cat >conftest.$ac_ext <<_ACEOF | |
33045 | #line $LINENO "configure" | |
33046 | /* confdefs.h. */ | |
33047 | _ACEOF | |
33048 | cat confdefs.h >>conftest.$ac_ext | |
33049 | cat >>conftest.$ac_ext <<_ACEOF | |
33050 | /* end confdefs.h. */ | |
33051 | /* System header to define __stub macros and hopefully few prototypes, | |
33052 | which can conflict with char $ac_func (); below. | |
33053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33054 | <limits.h> exists even on freestanding compilers. */ | |
33055 | #ifdef __STDC__ | |
33056 | # include <limits.h> | |
33057 | #else | |
33058 | # include <assert.h> | |
33059 | #endif | |
33060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33061 | #ifdef __cplusplus | |
33062 | extern "C" | |
33063 | { | |
33064 | #endif | |
33065 | /* We use char because int might match the return type of a gcc2 | |
33066 | builtin and then its argument prototype would still apply. */ | |
33067 | char $ac_func (); | |
33068 | /* The GNU C library defines this for functions which it implements | |
33069 | to always fail with ENOSYS. Some functions are actually named | |
33070 | something starting with __ and the normal name is an alias. */ | |
33071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33072 | choke me | |
33073 | #else | |
33074 | char (*f) () = $ac_func; | |
33075 | #endif | |
33076 | #ifdef __cplusplus | |
33077 | } | |
33078 | #endif | |
33079 | ||
33080 | int | |
33081 | main () | |
33082 | { | |
33083 | return f != $ac_func; | |
33084 | ; | |
33085 | return 0; | |
33086 | } | |
33087 | _ACEOF | |
33088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33090 | (eval $ac_link) 2>&5 | |
33091 | ac_status=$? | |
33092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33093 | (exit $ac_status); } && | |
33094 | { ac_try='test -s conftest$ac_exeext' | |
33095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33096 | (eval $ac_try) 2>&5 | |
33097 | ac_status=$? | |
33098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33099 | (exit $ac_status); }; }; then | |
33100 | eval "$as_ac_var=yes" | |
33101 | else | |
33102 | echo "$as_me: failed program was:" >&5 | |
33103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33104 | ||
33105 | eval "$as_ac_var=no" | |
33106 | fi | |
33107 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33108 | fi | |
33109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33110 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33111 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33112 | cat >>confdefs.h <<_ACEOF | |
33113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33114 | _ACEOF | |
33115 | have_sin=1 | |
33116 | fi | |
33117 | done | |
33118 | ||
33119 | ||
33120 | for ac_func in ceil | |
33121 | do | |
33122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33125 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33127 | else | |
33128 | cat >conftest.$ac_ext <<_ACEOF | |
33129 | #line $LINENO "configure" | |
33130 | /* confdefs.h. */ | |
33131 | _ACEOF | |
33132 | cat confdefs.h >>conftest.$ac_ext | |
33133 | cat >>conftest.$ac_ext <<_ACEOF | |
33134 | /* end confdefs.h. */ | |
33135 | /* System header to define __stub macros and hopefully few prototypes, | |
33136 | which can conflict with char $ac_func (); below. | |
33137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33138 | <limits.h> exists even on freestanding compilers. */ | |
33139 | #ifdef __STDC__ | |
33140 | # include <limits.h> | |
33141 | #else | |
33142 | # include <assert.h> | |
33143 | #endif | |
33144 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33145 | #ifdef __cplusplus | |
33146 | extern "C" | |
33147 | { | |
33148 | #endif | |
33149 | /* We use char because int might match the return type of a gcc2 | |
33150 | builtin and then its argument prototype would still apply. */ | |
33151 | char $ac_func (); | |
33152 | /* The GNU C library defines this for functions which it implements | |
33153 | to always fail with ENOSYS. Some functions are actually named | |
33154 | something starting with __ and the normal name is an alias. */ | |
33155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33156 | choke me | |
33157 | #else | |
33158 | char (*f) () = $ac_func; | |
33159 | #endif | |
33160 | #ifdef __cplusplus | |
33161 | } | |
33162 | #endif | |
33163 | ||
33164 | int | |
33165 | main () | |
33166 | { | |
33167 | return f != $ac_func; | |
33168 | ; | |
33169 | return 0; | |
33170 | } | |
33171 | _ACEOF | |
33172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33174 | (eval $ac_link) 2>&5 | |
33175 | ac_status=$? | |
33176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33177 | (exit $ac_status); } && | |
33178 | { ac_try='test -s conftest$ac_exeext' | |
33179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33180 | (eval $ac_try) 2>&5 | |
33181 | ac_status=$? | |
33182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33183 | (exit $ac_status); }; }; then | |
33184 | eval "$as_ac_var=yes" | |
33185 | else | |
33186 | echo "$as_me: failed program was:" >&5 | |
33187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33188 | ||
33189 | eval "$as_ac_var=no" | |
33190 | fi | |
33191 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33192 | fi | |
33193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33194 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33195 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33196 | cat >>confdefs.h <<_ACEOF | |
33197 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33198 | _ACEOF | |
33199 | have_ceil=1 | |
33200 | fi | |
33201 | done | |
33202 | ||
33203 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
33204 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
33205 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
33206 | echo "$as_me:$LINENO: result: yes" >&5 | |
33207 | echo "${ECHO_T}yes" >&6 | |
33208 | else | |
33209 | echo "$as_me:$LINENO: result: no" >&5 | |
33210 | echo "${ECHO_T}no" >&6 | |
33211 | # not sure we should warn the user, crash, etc. | |
33212 | fi | |
33213 | fi | |
33214 | ||
33215 | if test "$wxUSE_GUI" = "yes"; then | |
33216 | ||
33217 | ||
33218 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
33219 | drawing dynamic erase event exec font image \ | |
33220 | minimal propsize rotate shaped widgets" | |
33221 | ||
33222 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33224 | fi | |
33225 | else | |
33226 | SAMPLES_SUBDIRS="console" | |
33227 | fi | |
33228 | ||
33229 | ||
33230 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
33231 | -I\${top_srcdir}/include \ | |
33232 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33233 | $TOOLKIT_INCLUDE" | |
33234 | ||
33235 | if test "$GXX" = yes ; then | |
33236 | CXXWARNINGS="-Wall" | |
33237 | fi | |
33238 | ||
33239 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33240 | ||
33241 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
33242 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
33243 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
33244 | ||
33245 | ||
33246 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
33247 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" | |
33248 | if test "$wxUSE_GUI" = "yes"; then | |
33249 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33250 | fi | |
33251 | ||
33252 | LDFLAGS="$LDFLAGS $PROFILE" | |
33253 | ||
33254 | if test "$wxUSE_GTK" = 1; then | |
33255 | WXCONFIG_INCLUDE= | |
33256 | else | |
33257 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33258 | fi | |
33259 | ||
33260 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
33261 | WXUNIV=1 | |
33262 | else | |
33263 | WXUNIV=0 | |
33264 | fi | |
33265 | ||
33266 | ||
33267 | ||
33268 | ||
33269 | ||
33270 | ||
33271 | ||
33272 | ||
33273 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
33274 | MONOLITHIC=1 | |
33275 | else | |
33276 | MONOLITHIC=0 | |
33277 | fi | |
33278 | ||
33279 | VENDOR="custom" | |
33280 | OFFICIAL_BUILD=0 | |
33281 | ||
33282 | ||
33283 | ||
33284 | ||
33285 | ||
33286 | ||
33287 | ||
33288 | ||
33289 | ||
33290 | ||
33291 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` | |
33292 | ||
33293 | ||
33294 | ||
33295 | ||
33296 | ||
33297 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
33298 | ||
33299 | if test -n "$ac_tool_prefix"; then | |
33300 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33301 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33302 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33304 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33306 | else | |
33307 | if test -n "$RANLIB"; then | |
33308 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
33309 | else | |
33310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33311 | for as_dir in $PATH | |
33312 | do | |
33313 | IFS=$as_save_IFS | |
33314 | test -z "$as_dir" && as_dir=. | |
33315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33317 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33319 | break 2 | |
33320 | fi | |
33321 | done | |
33322 | done | |
33323 | ||
33324 | fi | |
33325 | fi | |
33326 | RANLIB=$ac_cv_prog_RANLIB | |
33327 | if test -n "$RANLIB"; then | |
33328 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
33329 | echo "${ECHO_T}$RANLIB" >&6 | |
33330 | else | |
33331 | echo "$as_me:$LINENO: result: no" >&5 | |
33332 | echo "${ECHO_T}no" >&6 | |
33333 | fi | |
33334 | ||
33335 | fi | |
33336 | if test -z "$ac_cv_prog_RANLIB"; then | |
33337 | ac_ct_RANLIB=$RANLIB | |
33338 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33339 | set dummy ranlib; ac_word=$2 | |
33340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33342 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33344 | else | |
33345 | if test -n "$ac_ct_RANLIB"; then | |
33346 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33347 | else | |
33348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33349 | for as_dir in $PATH | |
33350 | do | |
33351 | IFS=$as_save_IFS | |
33352 | test -z "$as_dir" && as_dir=. | |
33353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33354 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33355 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33357 | break 2 | |
33358 | fi | |
33359 | done | |
33360 | done | |
33361 | ||
33362 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33363 | fi | |
33364 | fi | |
33365 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33366 | if test -n "$ac_ct_RANLIB"; then | |
33367 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33368 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
33369 | else | |
33370 | echo "$as_me:$LINENO: result: no" >&5 | |
33371 | echo "${ECHO_T}no" >&6 | |
33372 | fi | |
33373 | ||
33374 | RANLIB=$ac_ct_RANLIB | |
33375 | else | |
33376 | RANLIB="$ac_cv_prog_RANLIB" | |
33377 | fi | |
33378 | ||
33379 | # Find a good install program. We prefer a C program (faster), | |
33380 | # so one script is as good as another. But avoid the broken or | |
33381 | # incompatible versions: | |
33382 | # SysV /etc/install, /usr/sbin/install | |
33383 | # SunOS /usr/etc/install | |
33384 | # IRIX /sbin/install | |
33385 | # AIX /bin/install | |
33386 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
33387 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
33388 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33389 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33390 | # ./install, which can be erroneously created by make from ./install.sh. | |
33391 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
33392 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
33393 | if test -z "$INSTALL"; then | |
33394 | if test "${ac_cv_path_install+set}" = set; then | |
33395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33396 | else | |
33397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33398 | for as_dir in $PATH | |
33399 | do | |
33400 | IFS=$as_save_IFS | |
33401 | test -z "$as_dir" && as_dir=. | |
33402 | # Account for people who put trailing slashes in PATH elements. | |
33403 | case $as_dir/ in | |
33404 | ./ | .// | /cC/* | \ | |
33405 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
33406 | /usr/ucb/* ) ;; | |
33407 | *) | |
33408 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
33409 | # Don't use installbsd from OSF since it installs stuff as root | |
33410 | # by default. | |
33411 | for ac_prog in ginstall scoinst install; do | |
33412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33413 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
33414 | if test $ac_prog = install && | |
33415 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33416 | # AIX install. It has an incompatible calling convention. | |
33417 | : | |
33418 | elif test $ac_prog = install && | |
33419 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33420 | # program-specific install script used by HP pwplus--don't use. | |
33421 | : | |
33422 | else | |
33423 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
33424 | break 3 | |
33425 | fi | |
33426 | fi | |
33427 | done | |
33428 | done | |
33429 | ;; | |
33430 | esac | |
33431 | done | |
33432 | ||
33433 | ||
33434 | fi | |
33435 | if test "${ac_cv_path_install+set}" = set; then | |
33436 | INSTALL=$ac_cv_path_install | |
33437 | else | |
33438 | # As a last resort, use the slow shell script. We don't cache a | |
33439 | # path for INSTALL within a source directory, because that will | |
33440 | # break other packages using the cache if that directory is | |
33441 | # removed, or if the path is relative. | |
33442 | INSTALL=$ac_install_sh | |
33443 | fi | |
33444 | fi | |
33445 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
33446 | echo "${ECHO_T}$INSTALL" >&6 | |
33447 | ||
33448 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
33449 | # It thinks the first close brace ends the variable substitution. | |
33450 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
33451 | ||
33452 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
33453 | ||
33454 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
33455 | ||
33456 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
33457 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
33458 | LN_S=$as_ln_s | |
33459 | if test "$LN_S" = "ln -s"; then | |
33460 | echo "$as_me:$LINENO: result: yes" >&5 | |
33461 | echo "${ECHO_T}yes" >&6 | |
33462 | else | |
33463 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
33464 | echo "${ECHO_T}no, using $LN_S" >&6 | |
33465 | fi | |
33466 | ||
33467 | ||
33468 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
33469 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
33470 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
33471 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
33472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33473 | else | |
33474 | cat >conftest.make <<\_ACEOF | |
33475 | all: | |
33476 | @echo 'ac_maketemp="$(MAKE)"' | |
33477 | _ACEOF | |
33478 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
33479 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
33480 | if test -n "$ac_maketemp"; then | |
33481 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33482 | else | |
33483 | eval ac_cv_prog_make_${ac_make}_set=no | |
33484 | fi | |
33485 | rm -f conftest.make | |
33486 | fi | |
33487 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
33488 | echo "$as_me:$LINENO: result: yes" >&5 | |
33489 | echo "${ECHO_T}yes" >&6 | |
33490 | SET_MAKE= | |
33491 | else | |
33492 | echo "$as_me:$LINENO: result: no" >&5 | |
33493 | echo "${ECHO_T}no" >&6 | |
33494 | SET_MAKE="MAKE=${MAKE-make}" | |
33495 | fi | |
33496 | ||
33497 | ||
33498 | ||
33499 | if test "$build" != "$host" ; then | |
33500 | AR=$host_alias-ar | |
33501 | STRIP=$host_alias-strip | |
33502 | else | |
33503 | # Extract the first word of "ar", so it can be a program name with args. | |
33504 | set dummy ar; ac_word=$2 | |
33505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33507 | if test "${ac_cv_prog_AR+set}" = set; then | |
33508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33509 | else | |
33510 | if test -n "$AR"; then | |
33511 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
33512 | else | |
33513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33514 | for as_dir in $PATH | |
33515 | do | |
33516 | IFS=$as_save_IFS | |
33517 | test -z "$as_dir" && as_dir=. | |
33518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33520 | ac_cv_prog_AR="ar" | |
33521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33522 | break 2 | |
33523 | fi | |
33524 | done | |
33525 | done | |
33526 | ||
33527 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
33528 | fi | |
33529 | fi | |
33530 | AR=$ac_cv_prog_AR | |
33531 | if test -n "$AR"; then | |
33532 | echo "$as_me:$LINENO: result: $AR" >&5 | |
33533 | echo "${ECHO_T}$AR" >&6 | |
33534 | else | |
33535 | echo "$as_me:$LINENO: result: no" >&5 | |
33536 | echo "${ECHO_T}no" >&6 | |
33537 | fi | |
33538 | ||
33539 | # Extract the first word of "strip", so it can be a program name with args. | |
33540 | set dummy strip; ac_word=$2 | |
33541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33543 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
33544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33545 | else | |
33546 | if test -n "$STRIP"; then | |
33547 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33548 | else | |
33549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33550 | for as_dir in $PATH | |
33551 | do | |
33552 | IFS=$as_save_IFS | |
33553 | test -z "$as_dir" && as_dir=. | |
33554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33556 | ac_cv_prog_STRIP="strip" | |
33557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33558 | break 2 | |
33559 | fi | |
33560 | done | |
33561 | done | |
33562 | ||
33563 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
33564 | fi | |
33565 | fi | |
33566 | STRIP=$ac_cv_prog_STRIP | |
33567 | if test -n "$STRIP"; then | |
33568 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
33569 | echo "${ECHO_T}$STRIP" >&6 | |
33570 | else | |
33571 | echo "$as_me:$LINENO: result: no" >&5 | |
33572 | echo "${ECHO_T}no" >&6 | |
33573 | fi | |
33574 | ||
33575 | fi | |
33576 | ||
33577 | case ${host} in | |
33578 | *-hp-hpux* ) | |
33579 | INSTALL_DIR="mkdir" | |
33580 | ;; | |
33581 | *) INSTALL_DIR="$INSTALL -d" | |
33582 | ;; | |
33583 | esac | |
33584 | ||
33585 | ||
33586 | LDFLAGS_GUI= | |
33587 | case ${host} in | |
33588 | *-*-cygwin* | *-*-mingw32* ) | |
33589 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
33590 | esac | |
33591 | ||
33592 | ||
33593 | fi | |
33594 | ||
33595 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
33596 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
33597 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
33598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33599 | else | |
33600 | ||
33601 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
33602 | egrep -s GNU > /dev/null); then | |
33603 | bakefile_cv_prog_makeisgnu="yes" | |
33604 | else | |
33605 | bakefile_cv_prog_makeisgnu="no" | |
33606 | fi | |
33607 | ||
33608 | fi | |
33609 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
33610 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
33611 | ||
33612 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
33613 | IF_GNU_MAKE="" | |
33614 | else | |
33615 | IF_GNU_MAKE="#" | |
33616 | fi | |
33617 | ||
33618 | ||
33619 | ||
33620 | PLATFORM_UNIX=0 | |
33621 | PLATFORM_WIN32=0 | |
33622 | PLATFORM_MSDOS=0 | |
33623 | PLATFORM_MAC=0 | |
33624 | PLATFORM_MACOSX=0 | |
33625 | ||
33626 | case "${host}" in | |
33627 | *-*-cygwin* | *-*-mingw32* ) | |
33628 | PLATFORM_WIN32=1 | |
33629 | ;; | |
33630 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33631 | PLATFORM_MSDOS=1 | |
33632 | ;; | |
33633 | powerpc-*-darwin* ) | |
33634 | PLATFORM_MAC=1 | |
33635 | PLATFORM_MACOSX=1 | |
33636 | ;; | |
33637 | * ) | |
33638 | PLATFORM_UNIX=1 | |
33639 | ;; | |
33640 | esac | |
33641 | ||
33642 | ||
33643 | ||
33644 | ||
33645 | ||
33646 | ||
33647 | ||
33648 | ||
33649 | SO_SUFFIX="so" | |
33650 | EXEEXT="" | |
33651 | DLLPREFIX=lib | |
33652 | ||
33653 | case "${host}" in | |
33654 | *-hp-hpux* ) | |
33655 | SO_SUFFIX="sl" | |
33656 | ;; | |
33657 | *-*-aix* ) | |
33658 | SO_SUFFIX="a" | |
33659 | ;; | |
33660 | *-*-cygwin* | *-*-mingw32* ) | |
33661 | SO_SUFFIX="dll" | |
33662 | EXEEXT=".exe" | |
33663 | DLLPREFIX="" | |
33664 | ;; | |
33665 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33666 | EXEEXT=".exe" | |
33667 | DLLPREFIX="" | |
33668 | ;; | |
33669 | powerpc-*-darwin* ) | |
33670 | SO_SUFFIX="dylib" | |
33671 | ;; | |
33672 | esac | |
33673 | ||
33674 | ||
33675 | ||
33676 | ||
33677 | ||
33678 | ||
33679 | SHARED_LD_CC="\$(CC) -shared -o" | |
33680 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
33681 | ||
33682 | if test "x$GCC" = "xyes"; then | |
33683 | PIC_FLAG="-fPIC" | |
33684 | fi | |
33685 | ||
33686 | case "${host}" in | |
33687 | *-hp-hpux* ) | |
33688 | if test "x$GCC" = "xyes"; then | |
33689 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
33690 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
33691 | else | |
33692 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
33693 | ||
33694 | SHARED_LD_CC="${CC} -b -o" | |
33695 | SHARED_LD_CXX="${CXX} -b -o" | |
33696 | PIC_FLAG="+Z" | |
33697 | fi | |
33698 | ;; | |
33699 | ||
33700 | *-*-linux* ) | |
33701 | if test "x$GCC" != "xyes"; then | |
33702 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
33703 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
33704 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
33705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33706 | else | |
33707 | ||
33708 | cat >conftest.$ac_ext <<_ACEOF | |
33709 | #line $LINENO "configure" | |
33710 | /* confdefs.h. */ | |
33711 | _ACEOF | |
33712 | cat confdefs.h >>conftest.$ac_ext | |
33713 | cat >>conftest.$ac_ext <<_ACEOF | |
33714 | /* end confdefs.h. */ | |
33715 | ||
33716 | int | |
33717 | main () | |
33718 | { | |
33719 | ||
33720 | #ifndef __INTEL_COMPILER | |
33721 | #error Not icc | |
33722 | #endif | |
33723 | ||
33724 | ; | |
33725 | return 0; | |
33726 | } | |
33727 | _ACEOF | |
33728 | rm -f conftest.$ac_objext | |
33729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33730 | (eval $ac_compile) 2>&5 | |
33731 | ac_status=$? | |
33732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33733 | (exit $ac_status); } && | |
33734 | { ac_try='test -s conftest.$ac_objext' | |
33735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33736 | (eval $ac_try) 2>&5 | |
33737 | ac_status=$? | |
33738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33739 | (exit $ac_status); }; }; then | |
33740 | bakefile_cv_prog_icc=yes | |
33741 | else | |
33742 | echo "$as_me: failed program was:" >&5 | |
33743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33744 | ||
33745 | bakefile_cv_prog_icc=no | |
33746 | ||
33747 | fi | |
33748 | rm -f conftest.$ac_objext conftest.$ac_ext | |
33749 | ||
33750 | fi | |
33751 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
33752 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
33753 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
33754 | PIC_FLAG="-KPIC" | |
33755 | fi | |
33756 | fi | |
33757 | ;; | |
33758 | ||
33759 | *-*-solaris2* ) | |
33760 | if test "x$GCC" != xyes ; then | |
33761 | SHARED_LD_CC="${CC} -G -o" | |
33762 | SHARED_LD_CXX="${CXX} -G -o" | |
33763 | PIC_FLAG="-KPIC" | |
33764 | fi | |
33765 | ;; | |
33766 | ||
33767 | *-*-darwin* ) | |
33768 | CFLAGS="$CFLAGS -fno-common" | |
33769 | CXXFLAGS="$CXXFLAGS -fno-common" | |
33770 | ||
33771 | ||
33772 | cat <<EOF >shared-ld-sh | |
33773 | #!/bin/sh | |
33774 | #----------------------------------------------------------------------------- | |
33775 | #-- Name: distrib/mac/shared-ld-sh | |
33776 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
33777 | #-- Author: Gilles Depeyrot | |
33778 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
33779 | #-- Licence: any use permitted | |
33780 | #----------------------------------------------------------------------------- | |
33781 | ||
33782 | verbose=0 | |
33783 | args="" | |
33784 | objects="" | |
33785 | ||
33786 | while test \${#} -gt 0; do | |
33787 | case \${1} in | |
33788 | ||
33789 | -v) | |
33790 | verbose=1 | |
33791 | ;; | |
33792 | ||
33793 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
33794 | # collect these options and values | |
33795 | args="\${args} \${1} \${2}" | |
33796 | shift | |
33797 | ;; | |
33798 | ||
33799 | -l*|-L*|-flat_namespace) | |
33800 | # collect these options | |
33801 | args="\${args} \${1}" | |
33802 | ;; | |
33803 | ||
33804 | -dynamiclib) | |
33805 | # skip these options | |
33806 | ;; | |
33807 | ||
33808 | -*) | |
33809 | echo "shared-ld: unhandled option '\${1}'" | |
33810 | exit 1 | |
33811 | ;; | |
33812 | ||
33813 | *.o | *.a) | |
33814 | # collect object files | |
33815 | objects="\${objects} \${1}" | |
33816 | ;; | |
33817 | ||
33818 | *) | |
33819 | echo "shared-ld: unhandled argument '\${1}'" | |
33820 | exit 1 | |
33821 | ;; | |
33822 | ||
33823 | esac | |
33824 | shift | |
33825 | done | |
33826 | ||
33827 | # | |
33828 | # Link one module containing all the others | |
33829 | # | |
33830 | if test \${verbose} = 1; then | |
33831 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
33832 | fi | |
33833 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
33834 | status=\$? | |
33835 | if test \${status} != 0; then | |
33836 | exit \${status} | |
33837 | fi | |
33838 | ||
33839 | # | |
33840 | # Link the shared library from the single module created | |
33841 | # | |
33842 | if test \${verbose} = 1; then | |
33843 | echo "cc -dynamiclib master.\$\$.o \${args}" | |
33844 | fi | |
33845 | c++ -dynamiclib master.\$\$.o \${args} | |
33846 | status=\$? | |
33847 | if test \${status} != 0; then | |
33848 | exit \${status} | |
33849 | fi | |
33850 | ||
33851 | # | |
33852 | # Remove intermediate module | |
33853 | # | |
33854 | rm -f master.\$\$.o | |
33855 | ||
33856 | exit 0 | |
33857 | EOF | |
33858 | chmod +x shared-ld-sh | |
33859 | ||
33860 | SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o" | |
33861 | SHARED_LD_CXX="$SHARED_LD_CC" | |
33862 | PIC_FLAG="-dynamic -fPIC" | |
33863 | ;; | |
33864 | ||
33865 | *-*-aix* ) | |
33866 | if test "x$GCC" != "xyes"; then | |
33867 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
33868 | set dummy makeC++SharedLib; ac_word=$2 | |
33869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33871 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
33872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33873 | else | |
33874 | if test -n "$AIX_CXX_LD"; then | |
33875 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
33876 | else | |
33877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33878 | for as_dir in $PATH | |
33879 | do | |
33880 | IFS=$as_save_IFS | |
33881 | test -z "$as_dir" && as_dir=. | |
33882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33884 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
33885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33886 | break 2 | |
33887 | fi | |
33888 | done | |
33889 | done | |
33890 | ||
33891 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
33892 | fi | |
33893 | fi | |
33894 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
33895 | if test -n "$AIX_CXX_LD"; then | |
33896 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
33897 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
33898 | else | |
33899 | echo "$as_me:$LINENO: result: no" >&5 | |
33900 | echo "${ECHO_T}no" >&6 | |
33901 | fi | |
33902 | ||
33903 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
33904 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
33905 | fi | |
33906 | ;; | |
33907 | ||
33908 | *-*-beos* ) | |
33909 | SHARED_LD_CC="${LD} -shared -o" | |
33910 | SHARED_LD_CXX="${LD} -shared -o" | |
33911 | ;; | |
33912 | ||
33913 | *-*-irix* ) | |
33914 | if test "x$GCC" != "xyes"; then | |
33915 | PIC_FLAG="-KPIC" | |
33916 | fi | |
33917 | ;; | |
33918 | ||
33919 | *-*-cygwin* | *-*-mingw32* ) | |
33920 | PIC_FLAG="" | |
33921 | ;; | |
33922 | ||
33923 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
33924 | *-*-sunos4* | \ | |
33925 | *-*-osf* | \ | |
33926 | *-*-dgux5* | \ | |
33927 | *-*-sysv5* ) | |
33928 | ;; | |
33929 | ||
33930 | *) | |
33931 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 | |
33932 | echo "$as_me: error: unknown system type $host." >&2;} | |
33933 | { (exit 1); exit 1; }; } | |
33934 | esac | |
33935 | ||
33936 | ||
33937 | ||
33938 | ||
33939 | ||
33940 | ||
33941 | USE_SOVERSION=0 | |
33942 | USE_SOVERLINUX=0 | |
33943 | USE_SOVERSOLARIS=0 | |
33944 | USE_SOSYMLINKS=0 | |
33945 | USE_MACVERSION=0 | |
33946 | SONAME_FLAG= | |
33947 | ||
33948 | case "${host}" in | |
33949 | *-*-linux* ) | |
33950 | SONAME_FLAG="-Wl,-soname," | |
33951 | USE_SOVERSION=1 | |
33952 | USE_SOVERLINUX=1 | |
33953 | USE_SOSYMLINKS=1 | |
33954 | ;; | |
33955 | ||
33956 | *-*-solaris2* ) | |
33957 | SONAME_FLAG="-h " | |
33958 | USE_SOVERSION=1 | |
33959 | USE_SOVERSOLARIS=1 | |
33960 | USE_SOSYMLINKS=1 | |
33961 | ;; | |
33962 | ||
33963 | *-*-darwin* ) | |
33964 | USE_MACVERSION=1 | |
33965 | USE_SOVERSION=1 | |
33966 | USE_SOSYMLINKS=1 | |
33967 | ;; | |
33968 | esac | |
33969 | ||
33970 | ||
33971 | ||
33972 | ||
33973 | ||
33974 | ||
33975 | ||
33976 | ||
33977 | ||
33978 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
33979 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
33980 | DEPS_TRACKING=0 | |
33981 | ||
33982 | if test "x$GCC" = "xyes"; then | |
33983 | DEPSMODE=gcc | |
33984 | DEPS_TRACKING=1 | |
33985 | echo "$as_me:$LINENO: result: gcc" >&5 | |
33986 | echo "${ECHO_T}gcc" >&6 | |
33987 | else | |
33988 | echo "$as_me:$LINENO: result: none" >&5 | |
33989 | echo "${ECHO_T}none" >&6 | |
33990 | fi | |
33991 | ||
33992 | if test $DEPS_TRACKING = 1 ; then | |
33993 | cat <<EOF >bk-deps | |
33994 | #!/bin/sh | |
33995 | ||
33996 | # This script is part of Bakefile (http://bakefile.sf.net) autoconf script. | |
33997 | # It is used to track C/C++ files dependencies in portable way. | |
33998 | # | |
33999 | # Permission is given to use this file in any way. | |
34000 | ||
34001 | DEPSMODE=$DEPSMODE | |
34002 | DEPSDIR=.deps | |
34003 | ||
34004 | mkdir -p \$DEPSDIR | |
34005 | ||
34006 | if test \$DEPSMODE = gcc ; then | |
34007 | \${*} -MMD | |
34008 | status=\${?} | |
34009 | if test \${status} != 0 ; then | |
34010 | exit \${status} | |
34011 | fi | |
34012 | # move created file to the location we want it in: | |
34013 | while test \${#} -gt 0; do | |
34014 | case "\${1}" in | |
34015 | -o ) | |
34016 | shift | |
34017 | objfile=\${1} | |
34018 | ;; | |
34019 | -* ) | |
34020 | ;; | |
34021 | * ) | |
34022 | srcfile=\${1} | |
34023 | ;; | |
34024 | esac | |
34025 | shift | |
34026 | done | |
34027 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34028 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
34029 | if test -f \$depfile ; then | |
34030 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34031 | rm -f \$depfile | |
34032 | else | |
34033 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34034 | if test -f \$depfile ; then | |
34035 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34036 | rm -f \$depfile | |
34037 | fi | |
34038 | fi | |
34039 | exit 0 | |
34040 | else | |
34041 | \${*} | |
34042 | exit \${?} | |
34043 | fi | |
34044 | EOF | |
34045 | chmod +x bk-deps | |
34046 | fi | |
34047 | ||
34048 | ||
34049 | ||
34050 | ||
34051 | RESCOMP= | |
34052 | SETFILE= | |
34053 | ||
34054 | case ${host} in | |
34055 | *-*-cygwin* | *-*-mingw32* ) | |
34056 | if test "$build" != "$host" ; then | |
34057 | RESCOMP=$host_alias-windres | |
34058 | else | |
34059 | # Extract the first word of "windres", so it can be a program name with args. | |
34060 | set dummy windres; ac_word=$2 | |
34061 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34063 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34065 | else | |
34066 | if test -n "$RESCOMP"; then | |
34067 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34068 | else | |
34069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34070 | for as_dir in $PATH | |
34071 | do | |
34072 | IFS=$as_save_IFS | |
34073 | test -z "$as_dir" && as_dir=. | |
34074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34075 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34076 | ac_cv_prog_RESCOMP="windres" | |
34077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34078 | break 2 | |
34079 | fi | |
34080 | done | |
34081 | done | |
34082 | ||
34083 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
34084 | fi | |
34085 | fi | |
34086 | RESCOMP=$ac_cv_prog_RESCOMP | |
34087 | if test -n "$RESCOMP"; then | |
34088 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
34089 | echo "${ECHO_T}$RESCOMP" >&6 | |
34090 | else | |
34091 | echo "$as_me:$LINENO: result: no" >&5 | |
34092 | echo "${ECHO_T}no" >&6 | |
34093 | fi | |
34094 | ||
34095 | fi | |
34096 | ;; | |
34097 | ||
34098 | *-*-darwin* ) | |
34099 | # Extract the first word of "Rez", so it can be a program name with args. | |
34100 | set dummy Rez; ac_word=$2 | |
34101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34103 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34105 | else | |
34106 | if test -n "$RESCOMP"; then | |
34107 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34108 | else | |
34109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34110 | for as_dir in $PATH | |
34111 | do | |
34112 | IFS=$as_save_IFS | |
34113 | test -z "$as_dir" && as_dir=. | |
34114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34116 | ac_cv_prog_RESCOMP="Rez" | |
34117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34118 | break 2 | |
34119 | fi | |
34120 | done | |
34121 | done | |
34122 | ||
34123 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
34124 | fi | |
34125 | fi | |
34126 | RESCOMP=$ac_cv_prog_RESCOMP | |
34127 | if test -n "$RESCOMP"; then | |
34128 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
34129 | echo "${ECHO_T}$RESCOMP" >&6 | |
34130 | else | |
34131 | echo "$as_me:$LINENO: result: no" >&5 | |
34132 | echo "${ECHO_T}no" >&6 | |
34133 | fi | |
34134 | ||
34135 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34136 | set dummy SetFile; ac_word=$2 | |
34137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34139 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34141 | else | |
34142 | if test -n "$SETFILE"; then | |
34143 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34144 | else | |
34145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34146 | for as_dir in $PATH | |
34147 | do | |
34148 | IFS=$as_save_IFS | |
34149 | test -z "$as_dir" && as_dir=. | |
34150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34151 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34152 | ac_cv_prog_SETFILE="SetFile" | |
34153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34154 | break 2 | |
34155 | fi | |
34156 | done | |
34157 | done | |
34158 | ||
34159 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
34160 | fi | |
34161 | fi | |
34162 | SETFILE=$ac_cv_prog_SETFILE | |
34163 | if test -n "$SETFILE"; then | |
34164 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
34165 | echo "${ECHO_T}$SETFILE" >&6 | |
34166 | else | |
34167 | echo "$as_me:$LINENO: result: no" >&5 | |
34168 | echo "${ECHO_T}no" >&6 | |
34169 | fi | |
34170 | ||
34171 | ;; | |
34172 | esac | |
34173 | ||
34174 | ||
34175 | ||
34176 | ||
34177 | ||
34178 | ||
34179 | ||
34180 | COND_BUILD_DEBUG="#" | |
34181 | if test "x$BUILD" = "xdebug" ; then | |
34182 | COND_BUILD_DEBUG="" | |
34183 | fi | |
34184 | ||
34185 | COND_BUILD_RELEASE="#" | |
34186 | if test "x$BUILD" = "xrelease" ; then | |
34187 | COND_BUILD_RELEASE="" | |
34188 | fi | |
34189 | ||
34190 | COND_DEPS_TRACKING_0="#" | |
34191 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34192 | COND_DEPS_TRACKING_0="" | |
34193 | fi | |
34194 | ||
34195 | COND_DEPS_TRACKING_1="#" | |
34196 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34197 | COND_DEPS_TRACKING_1="" | |
34198 | fi | |
34199 | ||
34200 | COND_MONOLITHIC_0="#" | |
34201 | if test "x$MONOLITHIC" = "x0" ; then | |
34202 | COND_MONOLITHIC_0="" | |
34203 | fi | |
34204 | ||
34205 | COND_MONOLITHIC_0_SHARED_0="#" | |
34206 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
34207 | COND_MONOLITHIC_0_SHARED_0="" | |
34208 | fi | |
34209 | ||
34210 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
34211 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
34212 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
34213 | fi | |
34214 | ||
34215 | COND_MONOLITHIC_0_SHARED_1="#" | |
34216 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
34217 | COND_MONOLITHIC_0_SHARED_1="" | |
34218 | fi | |
34219 | ||
34220 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
34221 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
34222 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
34223 | fi | |
34224 | ||
34225 | COND_MONOLITHIC_1="#" | |
34226 | if test "x$MONOLITHIC" = "x1" ; then | |
34227 | COND_MONOLITHIC_1="" | |
34228 | fi | |
34229 | ||
34230 | COND_MONOLITHIC_1_SHARED_0="#" | |
34231 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
34232 | COND_MONOLITHIC_1_SHARED_0="" | |
34233 | fi | |
34234 | ||
34235 | COND_MONOLITHIC_1_SHARED_1="#" | |
34236 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
34237 | COND_MONOLITHIC_1_SHARED_1="" | |
34238 | fi | |
34239 | ||
34240 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
34241 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34242 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
34243 | fi | |
34244 | ||
34245 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
34246 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34247 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
34248 | fi | |
34249 | ||
34250 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
34251 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
34252 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
34253 | fi | |
34254 | ||
34255 | COND_PLATFORM_MACOSX_1="#" | |
34256 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
34257 | COND_PLATFORM_MACOSX_1="" | |
34258 | fi | |
34259 | ||
34260 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
34261 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
34262 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
34263 | fi | |
34264 | ||
34265 | COND_PLATFORM_UNIX_1="#" | |
34266 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
34267 | COND_PLATFORM_UNIX_1="" | |
34268 | fi | |
34269 | ||
34270 | COND_PLATFORM_WIN32_0="#" | |
34271 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
34272 | COND_PLATFORM_WIN32_0="" | |
34273 | fi | |
34274 | ||
34275 | COND_PLATFORM_WIN32_1="#" | |
34276 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
34277 | COND_PLATFORM_WIN32_1="" | |
34278 | fi | |
34279 | ||
34280 | COND_TOOLKIT_COCOA="#" | |
34281 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
34282 | COND_TOOLKIT_COCOA="" | |
34283 | fi | |
34284 | ||
34285 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
34286 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34287 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
34288 | fi | |
34289 | ||
34290 | COND_TOOLKIT_GTK="#" | |
34291 | if test "x$TOOLKIT" = "xGTK" ; then | |
34292 | COND_TOOLKIT_GTK="" | |
34293 | fi | |
34294 | ||
34295 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
34296 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
34297 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
34298 | fi | |
34299 | ||
34300 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
34301 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34302 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
34303 | fi | |
34304 | ||
34305 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#" | |
34306 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34307 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="" | |
34308 | fi | |
34309 | ||
34310 | COND_TOOLKIT_MAC="#" | |
34311 | if test "x$TOOLKIT" = "xMAC" ; then | |
34312 | COND_TOOLKIT_MAC="" | |
34313 | fi | |
34314 | ||
34315 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
34316 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34317 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
34318 | fi | |
34319 | ||
34320 | COND_TOOLKIT_MGL="#" | |
34321 | if test "x$TOOLKIT" = "xMGL" ; then | |
34322 | COND_TOOLKIT_MGL="" | |
34323 | fi | |
34324 | ||
34325 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
34326 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
34327 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
34328 | fi | |
34329 | ||
34330 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#" | |
34331 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34332 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="" | |
34333 | fi | |
34334 | ||
34335 | COND_TOOLKIT_MOTIF="#" | |
34336 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
34337 | COND_TOOLKIT_MOTIF="" | |
34338 | fi | |
34339 | ||
34340 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
34341 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
34342 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
34343 | fi | |
34344 | ||
34345 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
34346 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34347 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
34348 | fi | |
34349 | ||
34350 | COND_TOOLKIT_MSW="#" | |
34351 | if test "x$TOOLKIT" = "xMSW" ; then | |
34352 | COND_TOOLKIT_MSW="" | |
34353 | fi | |
34354 | ||
34355 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
34356 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
34357 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
34358 | fi | |
34359 | ||
34360 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
34361 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34362 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
34363 | fi | |
34364 | ||
34365 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#" | |
34366 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34367 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="" | |
34368 | fi | |
34369 | ||
34370 | COND_TOOLKIT_OS2="#" | |
34371 | if test "x$TOOLKIT" = "xOS2" ; then | |
34372 | COND_TOOLKIT_OS2="" | |
34373 | fi | |
34374 | ||
34375 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" | |
34376 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34377 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
34378 | fi | |
34379 | ||
34380 | COND_TOOLKIT_X11="#" | |
34381 | if test "x$TOOLKIT" = "xX11" ; then | |
34382 | COND_TOOLKIT_X11="" | |
34383 | fi | |
34384 | ||
34385 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
34386 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
34387 | COND_TOOLKIT_X11_USE_GUI_1="" | |
34388 | fi | |
34389 | ||
34390 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#" | |
34391 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34392 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="" | |
34393 | fi | |
34394 | ||
34395 | COND_UNICODE_1="#" | |
34396 | if test "x$UNICODE" = "x1" ; then | |
34397 | COND_UNICODE_1="" | |
34398 | fi | |
34399 | ||
34400 | COND_USE_GUI_0="#" | |
34401 | if test "x$USE_GUI" = "x0" ; then | |
34402 | COND_USE_GUI_0="" | |
34403 | fi | |
34404 | ||
34405 | COND_USE_GUI_1="#" | |
34406 | if test "x$USE_GUI" = "x1" ; then | |
34407 | COND_USE_GUI_1="" | |
34408 | fi | |
34409 | ||
34410 | COND_USE_GUI_1_WXUNIV_0="#" | |
34411 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34412 | COND_USE_GUI_1_WXUNIV_0="" | |
34413 | fi | |
34414 | ||
34415 | COND_USE_GUI_1_WXUNIV_1="#" | |
34416 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34417 | COND_USE_GUI_1_WXUNIV_1="" | |
34418 | fi | |
34419 | ||
34420 | COND_USE_SOSYMLINKS_1="#" | |
34421 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
34422 | COND_USE_SOSYMLINKS_1="" | |
34423 | fi | |
34424 | ||
34425 | COND_USE_SOVERLINUX_1="#" | |
34426 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
34427 | COND_USE_SOVERLINUX_1="" | |
34428 | fi | |
34429 | ||
34430 | COND_USE_SOVERSION_0="#" | |
34431 | if test "x$USE_SOVERSION" = "x0" ; then | |
34432 | COND_USE_SOVERSION_0="" | |
34433 | fi | |
34434 | ||
34435 | COND_USE_SOVERSOLARIS_1="#" | |
34436 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
34437 | COND_USE_SOVERSOLARIS_1="" | |
34438 | fi | |
34439 | ||
34440 | COND_WXUNIV_1="#" | |
34441 | if test "x$WXUNIV" = "x1" ; then | |
34442 | COND_WXUNIV_1="" | |
34443 | fi | |
34444 | ||
34445 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
34446 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
34447 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
34448 | fi | |
34449 | ||
34450 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
34451 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
34452 | COND_WXUSE_LIBPNG_BUILTIN="" | |
34453 | fi | |
34454 | ||
34455 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
34456 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
34457 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
34458 | fi | |
34459 | ||
34460 | COND_WXUSE_ODBC_BUILTIN="#" | |
34461 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
34462 | COND_WXUSE_ODBC_BUILTIN="" | |
34463 | fi | |
34464 | ||
34465 | COND_WXUSE_REGEX_BUILTIN="#" | |
34466 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
34467 | COND_WXUSE_REGEX_BUILTIN="" | |
34468 | fi | |
34469 | ||
34470 | COND_WXUSE_ZLIB_BUILTIN="#" | |
34471 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
34472 | COND_WXUSE_ZLIB_BUILTIN="" | |
34473 | fi | |
34474 | ||
34475 | COND_PLATFORM_MAC_1="#" | |
34476 | if test "x$PLATFORM_MAC" = "x1" ; then | |
34477 | COND_PLATFORM_MAC_1="" | |
34478 | fi | |
34479 | ||
34480 | COND_SHARED_1="#" | |
34481 | if test "x$SHARED" = "x1" ; then | |
34482 | COND_SHARED_1="" | |
34483 | fi | |
34484 | ||
34485 | COND_SHARED_0="#" | |
34486 | if test "x$SHARED" = "x0" ; then | |
34487 | COND_SHARED_0="" | |
34488 | fi | |
34489 | ||
34490 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
34491 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
34492 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
34493 | fi | |
34494 | ||
34495 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
34496 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
34497 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
34498 | fi | |
34499 | ||
34500 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
34501 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
34502 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
34503 | fi | |
34504 | ||
34505 | ||
34506 | ||
34507 | ||
34508 | ||
34509 | ||
34510 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
34511 | ||
34512 | ||
34513 | ||
34514 | ||
34515 | ||
34516 | ||
34517 | ||
34518 | ||
34519 | ||
34520 | ||
34521 | ||
34522 | ||
34523 | ||
34524 | ||
34525 | ||
34526 | ||
34527 | ||
34528 | ||
34529 | ||
34530 | ||
34531 | ||
34532 | ||
34533 | ||
34534 | ||
34535 | ||
34536 | ||
34537 | ||
34538 | ||
34539 | ||
34540 | ||
34541 | ||
34542 | ||
34543 | ||
34544 | ||
34545 | ||
34546 | ||
34547 | ||
34548 | ||
34549 | ||
34550 | ||
34551 | ||
34552 | ||
34553 | ||
34554 | ||
34555 | ||
34556 | ||
34557 | ||
34558 | ||
34559 | ||
34560 | ||
34561 | ||
34562 | ||
34563 | ||
34564 | ||
34565 | ||
34566 | ||
34567 | ||
34568 | ||
34569 | ||
34570 | ||
34571 | ||
34572 | ||
34573 | ||
34574 | ||
34575 | ||
34576 | ||
34577 | ||
34578 | ||
34579 | ||
34580 | ||
34581 | ||
34582 | ||
34583 | ||
34584 | ||
34585 | ||
34586 | ||
34587 | ||
34588 | ||
34589 | ||
34590 | ||
34591 | ||
34592 | ||
34593 | ||
34594 | ||
34595 | ||
34596 | ||
34597 | ||
34598 | ||
34599 | ||
34600 | ||
34601 | ||
34602 | ||
34603 | ||
34604 | ||
34605 | ||
34606 | ||
34607 | ||
34608 | ||
34609 | ||
34610 | ||
34611 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
34612 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34613 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34614 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34616 | else | |
34617 | cat >conftest.make <<\_ACEOF | |
34618 | all: | |
34619 | @echo 'ac_maketemp="$(MAKE)"' | |
34620 | _ACEOF | |
34621 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
34622 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
34623 | if test -n "$ac_maketemp"; then | |
34624 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34625 | else | |
34626 | eval ac_cv_prog_make_${ac_make}_set=no | |
34627 | fi | |
34628 | rm -f conftest.make | |
34629 | fi | |
34630 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
34631 | echo "$as_me:$LINENO: result: yes" >&5 | |
34632 | echo "${ECHO_T}yes" >&6 | |
34633 | SET_MAKE= | |
34634 | else | |
34635 | echo "$as_me:$LINENO: result: no" >&5 | |
34636 | echo "${ECHO_T}no" >&6 | |
34637 | SET_MAKE="MAKE=${MAKE-make}" | |
34638 | fi | |
34639 | ||
34640 | ||
34641 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
34642 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
34643 | fi | |
34644 | ||
34645 | ac_config_headers="$ac_config_headers setup.h" | |
34646 | ||
34647 | ||
34648 | ac_config_files="$ac_config_files wx-config version-script Makefile" | |
34649 | ||
34650 | ||
34651 | ac_config_commands="$ac_config_commands default" | |
34652 | ||
34653 | ||
34654 | ||
34655 | if test "$wxUSE_GUI" = "yes"; then | |
34656 | SUBDIRS="samples demos utils contrib" | |
34657 | else SUBDIRS="samples utils" | |
34658 | fi | |
34659 | ||
34660 | for subdir in `echo $SUBDIRS`; do | |
34661 | if test -d ${srcdir}/${subdir} ; then | |
34662 | if test "$wxUSE_GUI" = "yes"; then | |
34663 | if test ${subdir} = "samples"; then | |
34664 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
34665 | if test -d $srcdir/samples/$sample; then | |
34666 | makefiles="samples/$sample/Makefile.in $makefiles" | |
34667 | fi | |
34668 | done | |
34669 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
34670 | fi | |
34671 | else if test ${subdir} = "samples"; then | |
34672 | makefiles="samples/console/Makefile.in" | |
34673 | else makefiles="utils/HelpGen/Makefile.in \ | |
34674 | utils/HelpGen/src/Makefile.in \ | |
34675 | utils/makegen/Makefile.in" | |
34676 | fi | |
34677 | fi | |
34678 | ||
34679 | for mkin in $makefiles ; do | |
34680 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
34681 | ac_config_files="$ac_config_files $mk" | |
34682 | ||
34683 | done | |
34684 | fi | |
34685 | done | |
34686 | ||
34687 | ||
34688 | cat >confcache <<\_ACEOF | |
34689 | # This file is a shell script that caches the results of configure | |
34690 | # tests run on this system so they can be shared between configure | |
34691 | # scripts and configure runs, see configure's option --config-cache. | |
34692 | # It is not useful on other systems. If it contains results you don't | |
34693 | # want to keep, you may remove or edit it. | |
34694 | # | |
34695 | # config.status only pays attention to the cache file if you give it | |
34696 | # the --recheck option to rerun configure. | |
34697 | # | |
34698 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
34699 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
34700 | # following values. | |
34701 | ||
34702 | _ACEOF | |
34703 | ||
34704 | # The following way of writing the cache mishandles newlines in values, | |
34705 | # but we know of no workaround that is simple, portable, and efficient. | |
34706 | # So, don't put newlines in cache variables' values. | |
34707 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
34708 | # and sets the high bit in the cache file unless we assign to the vars. | |
34709 | { | |
34710 | (set) 2>&1 | | |
34711 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
34712 | *ac_space=\ *) | |
34713 | # `set' does not quote correctly, so add quotes (double-quote | |
34714 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
34715 | sed -n \ | |
34716 | "s/'/'\\\\''/g; | |
34717 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
34718 | ;; | |
34719 | *) | |
34720 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
34721 | sed -n \ | |
34722 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
34723 | ;; | |
34724 | esac; | |
34725 | } | | |
34726 | sed ' | |
34727 | t clear | |
34728 | : clear | |
34729 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
34730 | t end | |
34731 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
34732 | : end' >>confcache | |
34733 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
34734 | if test -w $cache_file; then | |
34735 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
34736 | cat confcache >$cache_file | |
34737 | else | |
34738 | echo "not updating unwritable cache $cache_file" | |
34739 | fi | |
34740 | fi | |
34741 | rm -f confcache | |
34742 | ||
34743 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
34744 | # Let make expand exec_prefix. | |
34745 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
34746 | ||
34747 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
34748 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
34749 | # trailing colons and then remove the whole line if VPATH becomes empty | |
34750 | # (actually we leave an empty line to preserve line numbers). | |
34751 | if test "x$srcdir" = x.; then | |
34752 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
34753 | s/:*\$(srcdir):*/:/; | |
34754 | s/:*\${srcdir}:*/:/; | |
34755 | s/:*@srcdir@:*/:/; | |
34756 | s/^\([^=]*=[ ]*\):*/\1/; | |
34757 | s/:*$//; | |
34758 | s/^[^=]*=[ ]*$//; | |
34759 | }' | |
34760 | fi | |
34761 | ||
34762 | DEFS=-DHAVE_CONFIG_H | |
34763 | ||
34764 | ac_libobjs= | |
34765 | ac_ltlibobjs= | |
34766 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
34767 | # 1. Remove the extension, and $U if already installed. | |
34768 | ac_i=`echo "$ac_i" | | |
34769 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
34770 | # 2. Add them. | |
34771 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
34772 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
34773 | done | |
34774 | LIBOBJS=$ac_libobjs | |
34775 | ||
34776 | LTLIBOBJS=$ac_ltlibobjs | |
34777 | ||
34778 | ||
34779 | ||
34780 | : ${CONFIG_STATUS=./config.status} | |
34781 | ac_clean_files_save=$ac_clean_files | |
34782 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
34783 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
34784 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
34785 | cat >$CONFIG_STATUS <<_ACEOF | |
34786 | #! $SHELL | |
34787 | # Generated by $as_me. | |
34788 | # Run this file to recreate the current configuration. | |
34789 | # Compiler output produced by configure, useful for debugging | |
34790 | # configure, is in config.log if it exists. | |
34791 | ||
34792 | debug=false | |
34793 | ac_cs_recheck=false | |
34794 | ac_cs_silent=false | |
34795 | SHELL=\${CONFIG_SHELL-$SHELL} | |
34796 | _ACEOF | |
34797 | ||
34798 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34799 | ## --------------------- ## | |
34800 | ## M4sh Initialization. ## | |
34801 | ## --------------------- ## | |
34802 | ||
34803 | # Be Bourne compatible | |
34804 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
34805 | emulate sh | |
34806 | NULLCMD=: | |
34807 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
34808 | # is contrary to our usage. Disable this feature. | |
34809 | alias -g '${1+"$@"}'='"$@"' | |
34810 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
34811 | set -o posix | |
34812 | fi | |
34813 | ||
34814 | # Support unset when possible. | |
34815 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
34816 | as_unset=unset | |
34817 | else | |
34818 | as_unset=false | |
34819 | fi | |
34820 | ||
34821 | ||
34822 | # Work around bugs in pre-3.0 UWIN ksh. | |
34823 | $as_unset ENV MAIL MAILPATH | |
34824 | PS1='$ ' | |
34825 | PS2='> ' | |
34826 | PS4='+ ' | |
34827 | ||
34828 | # NLS nuisances. | |
34829 | for as_var in \ | |
34830 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
34831 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
34832 | LC_TELEPHONE LC_TIME | |
34833 | do | |
34834 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
34835 | eval $as_var=C; export $as_var | |
34836 | else | |
34837 | $as_unset $as_var | |
34838 | fi | |
34839 | done | |
34840 | ||
34841 | # Required to use basename. | |
34842 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
34843 | as_expr=expr | |
34844 | else | |
34845 | as_expr=false | |
34846 | fi | |
34847 | ||
34848 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
34849 | as_basename=basename | |
34850 | else | |
34851 | as_basename=false | |
34852 | fi | |
34853 | ||
34854 | ||
34855 | # Name of the executable. | |
34856 | as_me=`$as_basename "$0" || | |
34857 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
34858 | X"$0" : 'X\(//\)$' \| \ | |
34859 | X"$0" : 'X\(/\)$' \| \ | |
34860 | . : '\(.\)' 2>/dev/null || | |
34861 | echo X/"$0" | | |
34862 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
34863 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
34864 | /^X\/\(\/\).*/{ s//\1/; q; } | |
34865 | s/.*/./; q'` | |
34866 | ||
34867 | ||
34868 | # PATH needs CR, and LINENO needs CR and PATH. | |
34869 | # Avoid depending upon Character Ranges. | |
34870 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34871 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
34872 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
34873 | as_cr_digits='0123456789' | |
34874 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
34875 | ||
34876 | # The user is always right. | |
34877 | if test "${PATH_SEPARATOR+set}" != set; then | |
34878 | echo "#! /bin/sh" >conf$$.sh | |
34879 | echo "exit 0" >>conf$$.sh | |
34880 | chmod +x conf$$.sh | |
34881 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
34882 | PATH_SEPARATOR=';' | |
34883 | else | |
34884 | PATH_SEPARATOR=: | |
34885 | fi | |
34886 | rm -f conf$$.sh | |
34887 | fi | |
34888 | ||
34889 | ||
34890 | as_lineno_1=$LINENO | |
34891 | as_lineno_2=$LINENO | |
34892 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34893 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34894 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
34895 | # Find who we are. Look in the path if we contain no path at all | |
34896 | # relative or not. | |
34897 | case $0 in | |
34898 | *[\\/]* ) as_myself=$0 ;; | |
34899 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34900 | for as_dir in $PATH | |
34901 | do | |
34902 | IFS=$as_save_IFS | |
34903 | test -z "$as_dir" && as_dir=. | |
34904 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
34905 | done | |
34906 | ||
34907 | ;; | |
34908 | esac | |
34909 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
34910 | # in which case we are not to be found in the path. | |
34911 | if test "x$as_myself" = x; then | |
34912 | as_myself=$0 | |
34913 | fi | |
34914 | if test ! -f "$as_myself"; then | |
34915 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
34916 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
34917 | { (exit 1); exit 1; }; } | |
34918 | fi | |
34919 | case $CONFIG_SHELL in | |
34920 | '') | |
34921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34922 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
34923 | do | |
34924 | IFS=$as_save_IFS | |
34925 | test -z "$as_dir" && as_dir=. | |
34926 | for as_base in sh bash ksh sh5; do | |
34927 | case $as_dir in | |
34928 | /*) | |
34929 | if ("$as_dir/$as_base" -c ' | |
34930 | as_lineno_1=$LINENO | |
34931 | as_lineno_2=$LINENO | |
34932 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34933 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34934 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
34935 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
34936 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
34937 | CONFIG_SHELL=$as_dir/$as_base | |
34938 | export CONFIG_SHELL | |
34939 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
34940 | fi;; | |
34941 | esac | |
34942 | done | |
34943 | done | |
34944 | ;; | |
34945 | esac | |
34946 | ||
34947 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
34948 | # uniformly replaced by the line number. The first 'sed' inserts a | |
34949 | # line-number line before each line; the second 'sed' does the real | |
34950 | # work. The second script uses 'N' to pair each line-number line | |
34951 | # with the numbered line, and appends trailing '-' during | |
34952 | # substitution so that $LINENO is not a special case at line end. | |
34953 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
34954 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
34955 | sed '=' <$as_myself | | |
34956 | sed ' | |
34957 | N | |
34958 | s,$,-, | |
34959 | : loop | |
34960 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
34961 | t loop | |
34962 | s,-$,, | |
34963 | s,^['$as_cr_digits']*\n,, | |
34964 | ' >$as_me.lineno && | |
34965 | chmod +x $as_me.lineno || | |
34966 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
34967 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
34968 | { (exit 1); exit 1; }; } | |
34969 | ||
34970 | # Don't try to exec as it changes $[0], causing all sort of problems | |
34971 | # (the dirname of $[0] is not the place where we might find the | |
34972 | # original and so on. Autoconf is especially sensible to this). | |
34973 | . ./$as_me.lineno | |
34974 | # Exit status is that of the last command. | |
34975 | exit | |
34976 | } | |
34977 | ||
34978 | ||
34979 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
34980 | *c*,-n*) ECHO_N= ECHO_C=' | |
34981 | ' ECHO_T=' ' ;; | |
34982 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
34983 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
34984 | esac | |
34985 | ||
34986 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
34987 | as_expr=expr | |
34988 | else | |
34989 | as_expr=false | |
34990 | fi | |
34991 | ||
34992 | rm -f conf$$ conf$$.exe conf$$.file | |
34993 | echo >conf$$.file | |
34994 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
34995 | # We could just check for DJGPP; but this test a) works b) is more generic | |
34996 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
34997 | if test -f conf$$.exe; then | |
34998 | # Don't use ln at all; we don't have any links | |
34999 | as_ln_s='cp -p' | |
35000 | else | |
35001 | as_ln_s='ln -s' | |
35002 | fi | |
35003 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35004 | as_ln_s=ln | |
35005 | else | |
35006 | as_ln_s='cp -p' | |
35007 | fi | |
35008 | rm -f conf$$ conf$$.exe conf$$.file | |
35009 | ||
35010 | if mkdir -p . 2>/dev/null; then | |
35011 | as_mkdir_p=: | |
35012 | else | |
35013 | as_mkdir_p=false | |
35014 | fi | |
35015 | ||
35016 | as_executable_p="test -f" | |
35017 | ||
35018 | # Sed expression to map a string onto a valid CPP name. | |
35019 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35020 | ||
35021 | # Sed expression to map a string onto a valid variable name. | |
35022 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35023 | ||
35024 | ||
35025 | # IFS | |
35026 | # We need space, tab and new line, in precisely that order. | |
35027 | as_nl=' | |
35028 | ' | |
35029 | IFS=" $as_nl" | |
35030 | ||
35031 | # CDPATH. | |
35032 | $as_unset CDPATH | |
35033 | ||
35034 | exec 6>&1 | |
35035 | ||
35036 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35037 | # report actual input values of CONFIG_FILES etc. instead of their | |
35038 | # values after options handling. Logging --version etc. is OK. | |
35039 | exec 5>>config.log | |
35040 | { | |
35041 | echo | |
35042 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35043 | ## Running $as_me. ## | |
35044 | _ASBOX | |
35045 | } >&5 | |
35046 | cat >&5 <<_CSEOF | |
35047 | ||
35048 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35049 | generated by GNU Autoconf 2.57. Invocation command line was | |
35050 | ||
35051 | CONFIG_FILES = $CONFIG_FILES | |
35052 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35053 | CONFIG_LINKS = $CONFIG_LINKS | |
35054 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35055 | $ $0 $@ | |
35056 | ||
35057 | _CSEOF | |
35058 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35059 | echo >&5 | |
35060 | _ACEOF | |
35061 | ||
35062 | # Files that config.status was made for. | |
35063 | if test -n "$ac_config_files"; then | |
35064 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35065 | fi | |
35066 | ||
35067 | if test -n "$ac_config_headers"; then | |
35068 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35069 | fi | |
35070 | ||
35071 | if test -n "$ac_config_links"; then | |
35072 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35073 | fi | |
35074 | ||
35075 | if test -n "$ac_config_commands"; then | |
35076 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35077 | fi | |
35078 | ||
35079 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35080 | ||
35081 | ac_cs_usage="\ | |
35082 | \`$as_me' instantiates files from templates according to the | |
35083 | current configuration. | |
35084 | ||
35085 | Usage: $0 [OPTIONS] [FILE]... | |
35086 | ||
35087 | -h, --help print this help, then exit | |
35088 | -V, --version print version number, then exit | |
35089 | -q, --quiet do not print progress messages | |
35090 | -d, --debug don't remove temporary files | |
35091 | --recheck update $as_me by reconfiguring in the same conditions | |
35092 | --file=FILE[:TEMPLATE] | |
35093 | instantiate the configuration file FILE | |
35094 | --header=FILE[:TEMPLATE] | |
35095 | instantiate the configuration header FILE | |
35096 | ||
35097 | Configuration files: | |
35098 | $config_files | |
35099 | ||
35100 | Configuration headers: | |
35101 | $config_headers | |
35102 | ||
35103 | Configuration commands: | |
35104 | $config_commands | |
35105 | ||
35106 | Report bugs to <bug-autoconf@gnu.org>." | |
35107 | _ACEOF | |
35108 | ||
35109 | cat >>$CONFIG_STATUS <<_ACEOF | |
35110 | ac_cs_version="\\ | |
35111 | wxWindows config.status 2.5.0 | |
35112 | configured by $0, generated by GNU Autoconf 2.57, | |
35113 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35114 | ||
35115 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35116 | Free Software Foundation, Inc. | |
35117 | This config.status script is free software; the Free Software Foundation | |
35118 | gives unlimited permission to copy, distribute and modify it." | |
35119 | srcdir=$srcdir | |
35120 | INSTALL="$INSTALL" | |
35121 | _ACEOF | |
35122 | ||
35123 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35124 | # If no file are specified by the user, then we need to provide default | |
35125 | # value. By we need to know if files were specified by the user. | |
35126 | ac_need_defaults=: | |
35127 | while test $# != 0 | |
35128 | do | |
35129 | case $1 in | |
35130 | --*=*) | |
35131 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35132 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35133 | ac_shift=: | |
35134 | ;; | |
35135 | -*) | |
35136 | ac_option=$1 | |
35137 | ac_optarg=$2 | |
35138 | ac_shift=shift | |
35139 | ;; | |
35140 | *) # This is not an option, so the user has probably given explicit | |
35141 | # arguments. | |
35142 | ac_option=$1 | |
35143 | ac_need_defaults=false;; | |
35144 | esac | |
35145 | ||
35146 | case $ac_option in | |
35147 | # Handling of the options. | |
35148 | _ACEOF | |
35149 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35150 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35151 | ac_cs_recheck=: ;; | |
35152 | --version | --vers* | -V ) | |
35153 | echo "$ac_cs_version"; exit 0 ;; | |
35154 | --he | --h) | |
35155 | # Conflict between --help and --header | |
35156 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35157 | Try \`$0 --help' for more information." >&5 | |
35158 | echo "$as_me: error: ambiguous option: $1 | |
35159 | Try \`$0 --help' for more information." >&2;} | |
35160 | { (exit 1); exit 1; }; };; | |
35161 | --help | --hel | -h ) | |
35162 | echo "$ac_cs_usage"; exit 0 ;; | |
35163 | --debug | --d* | -d ) | |
35164 | debug=: ;; | |
35165 | --file | --fil | --fi | --f ) | |
35166 | $ac_shift | |
35167 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35168 | ac_need_defaults=false;; | |
35169 | --header | --heade | --head | --hea ) | |
35170 | $ac_shift | |
35171 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35172 | ac_need_defaults=false;; | |
35173 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35174 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35175 | ac_cs_silent=: ;; | |
35176 | ||
35177 | # This is an error. | |
35178 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35179 | Try \`$0 --help' for more information." >&5 | |
35180 | echo "$as_me: error: unrecognized option: $1 | |
35181 | Try \`$0 --help' for more information." >&2;} | |
35182 | { (exit 1); exit 1; }; } ;; | |
35183 | ||
35184 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35185 | ||
35186 | esac | |
35187 | shift | |
35188 | done | |
35189 | ||
35190 | ac_configure_extra_args= | |
35191 | ||
35192 | if $ac_cs_silent; then | |
35193 | exec 6>/dev/null | |
35194 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
35195 | fi | |
35196 | ||
35197 | _ACEOF | |
35198 | cat >>$CONFIG_STATUS <<_ACEOF | |
35199 | if \$ac_cs_recheck; then | |
35200 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35201 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
35202 | fi | |
35203 | ||
35204 | _ACEOF | |
35205 | ||
35206 | cat >>$CONFIG_STATUS <<_ACEOF | |
35207 | # | |
35208 | # INIT-COMMANDS section. | |
35209 | # | |
35210 | ||
35211 | ||
35212 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
35213 | LN_S="${LN_S}" | |
35214 | ||
35215 | ||
35216 | ||
35217 | _ACEOF | |
35218 | ||
35219 | ||
35220 | ||
35221 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35222 | for ac_config_target in $ac_config_targets | |
35223 | do | |
35224 | case "$ac_config_target" in | |
35225 | # Handling of arguments. | |
35226 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
35227 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
35228 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
35229 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
35230 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
35231 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
35232 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
35233 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35234 | { (exit 1); exit 1; }; };; | |
35235 | esac | |
35236 | done | |
35237 | ||
35238 | # If the user did not use the arguments to specify the items to instantiate, | |
35239 | # then the envvar interface is used. Set only those that are not. | |
35240 | # We use the long form for the default assignment because of an extremely | |
35241 | # bizarre bug on SunOS 4.1.3. | |
35242 | if $ac_need_defaults; then | |
35243 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
35244 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
35245 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
35246 | fi | |
35247 | ||
35248 | # Have a temporary directory for convenience. Make it in the build tree | |
35249 | # simply because there is no reason to put it here, and in addition, | |
35250 | # creating and moving files from /tmp can sometimes cause problems. | |
35251 | # Create a temporary directory, and hook for its removal unless debugging. | |
35252 | $debug || | |
35253 | { | |
35254 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
35255 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
35256 | } | |
35257 | ||
35258 | # Create a (secure) tmp directory for tmp files. | |
35259 | ||
35260 | { | |
35261 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
35262 | test -n "$tmp" && test -d "$tmp" | |
35263 | } || | |
35264 | { | |
35265 | tmp=./confstat$$-$RANDOM | |
35266 | (umask 077 && mkdir $tmp) | |
35267 | } || | |
35268 | { | |
35269 | echo "$me: cannot create a temporary directory in ." >&2 | |
35270 | { (exit 1); exit 1; } | |
35271 | } | |
35272 | ||
35273 | _ACEOF | |
35274 | ||
35275 | cat >>$CONFIG_STATUS <<_ACEOF | |
35276 | ||
35277 | # | |
35278 | # CONFIG_FILES section. | |
35279 | # | |
35280 | ||
35281 | # No need to generate the scripts if there are no CONFIG_FILES. | |
35282 | # This happens for instance when ./config.status config.h | |
35283 | if test -n "\$CONFIG_FILES"; then | |
35284 | # Protect against being on the right side of a sed subst in config.status. | |
35285 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
35286 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
35287 | s,@SHELL@,$SHELL,;t t | |
35288 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35289 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
35290 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
35291 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
35292 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
35293 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
35294 | s,@exec_prefix@,$exec_prefix,;t t | |
35295 | s,@prefix@,$prefix,;t t | |
35296 | s,@program_transform_name@,$program_transform_name,;t t | |
35297 | s,@bindir@,$bindir,;t t | |
35298 | s,@sbindir@,$sbindir,;t t | |
35299 | s,@libexecdir@,$libexecdir,;t t | |
35300 | s,@datadir@,$datadir,;t t | |
35301 | s,@sysconfdir@,$sysconfdir,;t t | |
35302 | s,@sharedstatedir@,$sharedstatedir,;t t | |
35303 | s,@localstatedir@,$localstatedir,;t t | |
35304 | s,@libdir@,$libdir,;t t | |
35305 | s,@includedir@,$includedir,;t t | |
35306 | s,@oldincludedir@,$oldincludedir,;t t | |
35307 | s,@infodir@,$infodir,;t t | |
35308 | s,@mandir@,$mandir,;t t | |
35309 | s,@build_alias@,$build_alias,;t t | |
35310 | s,@host_alias@,$host_alias,;t t | |
35311 | s,@target_alias@,$target_alias,;t t | |
35312 | s,@DEFS@,$DEFS,;t t | |
35313 | s,@ECHO_C@,$ECHO_C,;t t | |
35314 | s,@ECHO_N@,$ECHO_N,;t t | |
35315 | s,@ECHO_T@,$ECHO_T,;t t | |
35316 | s,@LIBS@,$LIBS,;t t | |
35317 | s,@build@,$build,;t t | |
35318 | s,@build_cpu@,$build_cpu,;t t | |
35319 | s,@build_vendor@,$build_vendor,;t t | |
35320 | s,@build_os@,$build_os,;t t | |
35321 | s,@host@,$host,;t t | |
35322 | s,@host_cpu@,$host_cpu,;t t | |
35323 | s,@host_vendor@,$host_vendor,;t t | |
35324 | s,@host_os@,$host_os,;t t | |
35325 | s,@target@,$target,;t t | |
35326 | s,@target_cpu@,$target_cpu,;t t | |
35327 | s,@target_vendor@,$target_vendor,;t t | |
35328 | s,@target_os@,$target_os,;t t | |
35329 | s,@CC@,$CC,;t t | |
35330 | s,@CFLAGS@,$CFLAGS,;t t | |
35331 | s,@LDFLAGS@,$LDFLAGS,;t t | |
35332 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
35333 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
35334 | s,@EXEEXT@,$EXEEXT,;t t | |
35335 | s,@OBJEXT@,$OBJEXT,;t t | |
35336 | s,@CPP@,$CPP,;t t | |
35337 | s,@EGREP@,$EGREP,;t t | |
35338 | s,@CXX@,$CXX,;t t | |
35339 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
35340 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
35341 | s,@RANLIB@,$RANLIB,;t t | |
35342 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
35343 | s,@AR@,$AR,;t t | |
35344 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
35345 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
35346 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
35347 | s,@STRIP@,$STRIP,;t t | |
35348 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
35349 | s,@YACC@,$YACC,;t t | |
35350 | s,@LEX@,$LEX,;t t | |
35351 | s,@LEXLIB@,$LEXLIB,;t t | |
35352 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
35353 | s,@LN_S@,$LN_S,;t t | |
35354 | s,@CXXCPP@,$CXXCPP,;t t | |
35355 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
35356 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
35357 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
35358 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
35359 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
35360 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
35361 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
35362 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
35363 | s,@X_LIBS@,$X_LIBS,;t t | |
35364 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
35365 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
35366 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
35367 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
35368 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
35369 | s,@RESCOMP@,$RESCOMP,;t t | |
35370 | s,@DEREZ@,$DEREZ,;t t | |
35371 | s,@SETFILE@,$SETFILE,;t t | |
35372 | s,@LIBICONV@,$LIBICONV,;t t | |
35373 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
35374 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
35375 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
35376 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
35377 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
35378 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
35379 | s,@VENDOR@,$VENDOR,;t t | |
35380 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
35381 | s,@WXUNIV@,$WXUNIV,;t t | |
35382 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
35383 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
35384 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
35385 | s,@UNICODE@,$UNICODE,;t t | |
35386 | s,@BUILD@,$BUILD,;t t | |
35387 | s,@SHARED@,$SHARED,;t t | |
35388 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
35389 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
35390 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
35391 | s,@SET_MAKE@,$SET_MAKE,;t t | |
35392 | s,@MAKE_SET@,$MAKE_SET,;t t | |
35393 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
35394 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
35395 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
35396 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
35397 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
35398 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
35399 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
35400 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
35401 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
35402 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
35403 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
35404 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
35405 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
35406 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
35407 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
35408 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
35409 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
35410 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
35411 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
35412 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
35413 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
35414 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
35415 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
35416 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
35417 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
35418 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
35419 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
35420 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
35421 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
35422 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
35423 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
35424 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
35425 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
35426 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
35427 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
35428 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
35429 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
35430 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
35431 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
35432 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
35433 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
35434 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
35435 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
35436 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
35437 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
35438 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t | |
35439 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
35440 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
35441 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
35442 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
35443 | s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t | |
35444 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
35445 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
35446 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
35447 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
35448 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
35449 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
35450 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t | |
35451 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t | |
35452 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t | |
35453 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
35454 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
35455 | s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t | |
35456 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
35457 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
35458 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
35459 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
35460 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
35461 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
35462 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
35463 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
35464 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
35465 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t | |
35466 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
35467 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
35468 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
35469 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
35470 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
35471 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
35472 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
35473 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
35474 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
35475 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
35476 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
35477 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
35478 | s,@LEX_STEM@,$LEX_STEM,;t t | |
35479 | s,@PATH_IFS@,$PATH_IFS,;t t | |
35480 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
35481 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
35482 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
35483 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
35484 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
35485 | s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t | |
35486 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
35487 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
35488 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
35489 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
35490 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
35491 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
35492 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
35493 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
35494 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
35495 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
35496 | s,@WX_ALL@,$WX_ALL,;t t | |
35497 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
35498 | s,@SHARED_LD@,$SHARED_LD,;t t | |
35499 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
35500 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
35501 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
35502 | s,@USE_GUI@,$USE_GUI,;t t | |
35503 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
35504 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
35505 | s,@TOOLKIT@,$TOOLKIT,;t t | |
35506 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
35507 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
35508 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
35509 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
35510 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
35511 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
35512 | s,@cross_compiling@,$cross_compiling,;t t | |
35513 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
35514 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
35515 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
35516 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
35517 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
35518 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
35519 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
35520 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t | |
35521 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
35522 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
35523 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
35524 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
35525 | s,@GUIDIST@,$GUIDIST,;t t | |
35526 | s,@PORT_FILES@,$PORT_FILES,;t t | |
35527 | s,@DISTDIR@,$DISTDIR,;t t | |
35528 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
35529 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
35530 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
35531 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
35532 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
35533 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
35534 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
35535 | s,@RESFLAGS@,$RESFLAGS,;t t | |
35536 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
35537 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
35538 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
35539 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
35540 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
35541 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
35542 | s,@MACSETFILE@,$MACSETFILE,;t t | |
35543 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
35544 | s,@GCC@,$GCC,;t t | |
35545 | s,@DLLTOOL@,$DLLTOOL,;t t | |
35546 | s,@AS@,$AS,;t t | |
35547 | s,@NM@,$NM,;t t | |
35548 | s,@LD@,$LD,;t t | |
35549 | s,@MAKEINFO@,$MAKEINFO,;t t | |
35550 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
35551 | s,@ESD_LINK@,$ESD_LINK,;t t | |
35552 | s,@LIBOBJS@,$LIBOBJS,;t t | |
35553 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
35554 | CEOF | |
35555 | ||
35556 | _ACEOF | |
35557 | ||
35558 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35559 | # Split the substitutions into bite-sized pieces for seds with | |
35560 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
35561 | ac_max_sed_lines=48 | |
35562 | ac_sed_frag=1 # Number of current file. | |
35563 | ac_beg=1 # First line for current file. | |
35564 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
35565 | ac_more_lines=: | |
35566 | ac_sed_cmds= | |
35567 | while $ac_more_lines; do | |
35568 | if test $ac_beg -gt 1; then | |
35569 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
35570 | else | |
35571 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
35572 | fi | |
35573 | if test ! -s $tmp/subs.frag; then | |
35574 | ac_more_lines=false | |
35575 | else | |
35576 | # The purpose of the label and of the branching condition is to | |
35577 | # speed up the sed processing (if there are no `@' at all, there | |
35578 | # is no need to browse any of the substitutions). | |
35579 | # These are the two extra sed commands mentioned above. | |
35580 | (echo ':t | |
35581 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
35582 | if test -z "$ac_sed_cmds"; then | |
35583 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
35584 | else | |
35585 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
35586 | fi | |
35587 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
35588 | ac_beg=$ac_end | |
35589 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
35590 | fi | |
35591 | done | |
35592 | if test -z "$ac_sed_cmds"; then | |
35593 | ac_sed_cmds=cat | |
35594 | fi | |
35595 | fi # test -n "$CONFIG_FILES" | |
35596 | ||
35597 | _ACEOF | |
35598 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35599 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
35600 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
35601 | case $ac_file in | |
35602 | - | *:- | *:-:* ) # input from stdin | |
35603 | cat >$tmp/stdin | |
35604 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35605 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35606 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35607 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35608 | * ) ac_file_in=$ac_file.in ;; | |
35609 | esac | |
35610 | ||
35611 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
35612 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35613 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35614 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35615 | X"$ac_file" : 'X\(//\)$' \| \ | |
35616 | X"$ac_file" : 'X\(/\)' \| \ | |
35617 | . : '\(.\)' 2>/dev/null || | |
35618 | echo X"$ac_file" | | |
35619 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35620 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35621 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35622 | /^X\(\/\).*/{ s//\1/; q; } | |
35623 | s/.*/./; q'` | |
35624 | { if $as_mkdir_p; then | |
35625 | mkdir -p "$ac_dir" | |
35626 | else | |
35627 | as_dir="$ac_dir" | |
35628 | as_dirs= | |
35629 | while test ! -d "$as_dir"; do | |
35630 | as_dirs="$as_dir $as_dirs" | |
35631 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35632 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35633 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35634 | X"$as_dir" : 'X\(//\)$' \| \ | |
35635 | X"$as_dir" : 'X\(/\)' \| \ | |
35636 | . : '\(.\)' 2>/dev/null || | |
35637 | echo X"$as_dir" | | |
35638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35639 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35640 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35641 | /^X\(\/\).*/{ s//\1/; q; } | |
35642 | s/.*/./; q'` | |
35643 | done | |
35644 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35645 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35646 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35647 | { (exit 1); exit 1; }; }; } | |
35648 | ||
35649 | ac_builddir=. | |
35650 | ||
35651 | if test "$ac_dir" != .; then | |
35652 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
35653 | # A "../" for each directory in $ac_dir_suffix. | |
35654 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
35655 | else | |
35656 | ac_dir_suffix= ac_top_builddir= | |
35657 | fi | |
35658 | ||
35659 | case $srcdir in | |
35660 | .) # No --srcdir option. We are building in place. | |
35661 | ac_srcdir=. | |
35662 | if test -z "$ac_top_builddir"; then | |
35663 | ac_top_srcdir=. | |
35664 | else | |
35665 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
35666 | fi ;; | |
35667 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
35668 | ac_srcdir=$srcdir$ac_dir_suffix; | |
35669 | ac_top_srcdir=$srcdir ;; | |
35670 | *) # Relative path. | |
35671 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
35672 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
35673 | esac | |
35674 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
35675 | # absolute. | |
35676 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
35677 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
35678 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
35679 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
35680 | ||
35681 | ||
35682 | case $INSTALL in | |
35683 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
35684 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
35685 | esac | |
35686 | ||
35687 | if test x"$ac_file" != x-; then | |
35688 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
35689 | echo "$as_me: creating $ac_file" >&6;} | |
35690 | rm -f "$ac_file" | |
35691 | fi | |
35692 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35693 | # use $as_me), people would be surprised to read: | |
35694 | # /* config.h. Generated by config.status. */ | |
35695 | if test x"$ac_file" = x-; then | |
35696 | configure_input= | |
35697 | else | |
35698 | configure_input="$ac_file. " | |
35699 | fi | |
35700 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35701 | sed 's,.*/,,'` by configure." | |
35702 | ||
35703 | # First look for the input files in the build tree, otherwise in the | |
35704 | # src tree. | |
35705 | ac_file_inputs=`IFS=: | |
35706 | for f in $ac_file_in; do | |
35707 | case $f in | |
35708 | -) echo $tmp/stdin ;; | |
35709 | [\\/$]*) | |
35710 | # Absolute (can't be DOS-style, as IFS=:) | |
35711 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35712 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35713 | { (exit 1); exit 1; }; } | |
35714 | echo $f;; | |
35715 | *) # Relative | |
35716 | if test -f "$f"; then | |
35717 | # Build tree | |
35718 | echo $f | |
35719 | elif test -f "$srcdir/$f"; then | |
35720 | # Source tree | |
35721 | echo $srcdir/$f | |
35722 | else | |
35723 | # /dev/null tree | |
35724 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35725 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35726 | { (exit 1); exit 1; }; } | |
35727 | fi;; | |
35728 | esac | |
35729 | done` || { (exit 1); exit 1; } | |
35730 | _ACEOF | |
35731 | cat >>$CONFIG_STATUS <<_ACEOF | |
35732 | sed "$ac_vpsub | |
35733 | $extrasub | |
35734 | _ACEOF | |
35735 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35736 | :t | |
35737 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
35738 | s,@configure_input@,$configure_input,;t t | |
35739 | s,@srcdir@,$ac_srcdir,;t t | |
35740 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
35741 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
35742 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
35743 | s,@builddir@,$ac_builddir,;t t | |
35744 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
35745 | s,@top_builddir@,$ac_top_builddir,;t t | |
35746 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
35747 | s,@INSTALL@,$ac_INSTALL,;t t | |
35748 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
35749 | rm -f $tmp/stdin | |
35750 | if test x"$ac_file" != x-; then | |
35751 | mv $tmp/out $ac_file | |
35752 | else | |
35753 | cat $tmp/out | |
35754 | rm -f $tmp/out | |
35755 | fi | |
35756 | ||
35757 | done | |
35758 | _ACEOF | |
35759 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35760 | ||
35761 | # | |
35762 | # CONFIG_HEADER section. | |
35763 | # | |
35764 | ||
35765 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
35766 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
35767 | # | |
35768 | # ac_d sets the value in "#define NAME VALUE" lines. | |
35769 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
35770 | ac_dB='[ ].*$,\1#\2' | |
35771 | ac_dC=' ' | |
35772 | ac_dD=',;t' | |
35773 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35774 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
35775 | ac_uB='$,\1#\2define\3' | |
35776 | ac_uC=' ' | |
35777 | ac_uD=',;t' | |
35778 | ||
35779 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
35780 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
35781 | case $ac_file in | |
35782 | - | *:- | *:-:* ) # input from stdin | |
35783 | cat >$tmp/stdin | |
35784 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35785 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35786 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35787 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35788 | * ) ac_file_in=$ac_file.in ;; | |
35789 | esac | |
35790 | ||
35791 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
35792 | echo "$as_me: creating $ac_file" >&6;} | |
35793 | ||
35794 | # First look for the input files in the build tree, otherwise in the | |
35795 | # src tree. | |
35796 | ac_file_inputs=`IFS=: | |
35797 | for f in $ac_file_in; do | |
35798 | case $f in | |
35799 | -) echo $tmp/stdin ;; | |
35800 | [\\/$]*) | |
35801 | # Absolute (can't be DOS-style, as IFS=:) | |
35802 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35803 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35804 | { (exit 1); exit 1; }; } | |
35805 | echo $f;; | |
35806 | *) # Relative | |
35807 | if test -f "$f"; then | |
35808 | # Build tree | |
35809 | echo $f | |
35810 | elif test -f "$srcdir/$f"; then | |
35811 | # Source tree | |
35812 | echo $srcdir/$f | |
35813 | else | |
35814 | # /dev/null tree | |
35815 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35816 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35817 | { (exit 1); exit 1; }; } | |
35818 | fi;; | |
35819 | esac | |
35820 | done` || { (exit 1); exit 1; } | |
35821 | # Remove the trailing spaces. | |
35822 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
35823 | ||
35824 | _ACEOF | |
35825 | ||
35826 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
35827 | # `conftest.undefs', that substitutes the proper values into | |
35828 | # config.h.in to produce config.h. The first handles `#define' | |
35829 | # templates, and the second `#undef' templates. | |
35830 | # And first: Protect against being on the right side of a sed subst in | |
35831 | # config.status. Protect against being in an unquoted here document | |
35832 | # in config.status. | |
35833 | rm -f conftest.defines conftest.undefs | |
35834 | # Using a here document instead of a string reduces the quoting nightmare. | |
35835 | # Putting comments in sed scripts is not portable. | |
35836 | # | |
35837 | # `end' is used to avoid that the second main sed command (meant for | |
35838 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
35839 | # See the Autoconf documentation for `clear'. | |
35840 | cat >confdef2sed.sed <<\_ACEOF | |
35841 | s/[\\&,]/\\&/g | |
35842 | s,[\\$`],\\&,g | |
35843 | t clear | |
35844 | : clear | |
35845 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
35846 | t end | |
35847 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
35848 | : end | |
35849 | _ACEOF | |
35850 | # If some macros were called several times there might be several times | |
35851 | # the same #defines, which is useless. Nevertheless, we may not want to | |
35852 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
35853 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
35854 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
35855 | rm -f confdef2sed.sed | |
35856 | ||
35857 | # This sed command replaces #undef with comments. This is necessary, for | |
35858 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
35859 | # on some systems where configure will not decide to define it. | |
35860 | cat >>conftest.undefs <<\_ACEOF | |
35861 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
35862 | _ACEOF | |
35863 | ||
35864 | # Break up conftest.defines because some shells have a limit on the size | |
35865 | # of here documents, and old seds have small limits too (100 cmds). | |
35866 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35867 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
35868 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
35869 | echo ' :' >>$CONFIG_STATUS | |
35870 | rm -f conftest.tail | |
35871 | while grep . conftest.defines >/dev/null | |
35872 | do | |
35873 | # Write a limited-size here document to $tmp/defines.sed. | |
35874 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
35875 | # Speed up: don't consider the non `#define' lines. | |
35876 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
35877 | # Work around the forget-to-reset-the-flag bug. | |
35878 | echo 't clr' >>$CONFIG_STATUS | |
35879 | echo ': clr' >>$CONFIG_STATUS | |
35880 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
35881 | echo 'CEOF | |
35882 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
35883 | rm -f $tmp/in | |
35884 | mv $tmp/out $tmp/in | |
35885 | ' >>$CONFIG_STATUS | |
35886 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
35887 | rm -f conftest.defines | |
35888 | mv conftest.tail conftest.defines | |
35889 | done | |
35890 | rm -f conftest.defines | |
35891 | echo ' fi # grep' >>$CONFIG_STATUS | |
35892 | echo >>$CONFIG_STATUS | |
35893 | ||
35894 | # Break up conftest.undefs because some shells have a limit on the size | |
35895 | # of here documents, and old seds have small limits too (100 cmds). | |
35896 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
35897 | rm -f conftest.tail | |
35898 | while grep . conftest.undefs >/dev/null | |
35899 | do | |
35900 | # Write a limited-size here document to $tmp/undefs.sed. | |
35901 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
35902 | # Speed up: don't consider the non `#undef' | |
35903 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
35904 | # Work around the forget-to-reset-the-flag bug. | |
35905 | echo 't clr' >>$CONFIG_STATUS | |
35906 | echo ': clr' >>$CONFIG_STATUS | |
35907 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
35908 | echo 'CEOF | |
35909 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
35910 | rm -f $tmp/in | |
35911 | mv $tmp/out $tmp/in | |
35912 | ' >>$CONFIG_STATUS | |
35913 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
35914 | rm -f conftest.undefs | |
35915 | mv conftest.tail conftest.undefs | |
35916 | done | |
35917 | rm -f conftest.undefs | |
35918 | ||
35919 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35920 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35921 | # use $as_me), people would be surprised to read: | |
35922 | # /* config.h. Generated by config.status. */ | |
35923 | if test x"$ac_file" = x-; then | |
35924 | echo "/* Generated by configure. */" >$tmp/config.h | |
35925 | else | |
35926 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
35927 | fi | |
35928 | cat $tmp/in >>$tmp/config.h | |
35929 | rm -f $tmp/in | |
35930 | if test x"$ac_file" != x-; then | |
35931 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
35932 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
35933 | echo "$as_me: $ac_file is unchanged" >&6;} | |
35934 | else | |
35935 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35936 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35937 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35938 | X"$ac_file" : 'X\(//\)$' \| \ | |
35939 | X"$ac_file" : 'X\(/\)' \| \ | |
35940 | . : '\(.\)' 2>/dev/null || | |
35941 | echo X"$ac_file" | | |
35942 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35943 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35944 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35945 | /^X\(\/\).*/{ s//\1/; q; } | |
35946 | s/.*/./; q'` | |
35947 | { if $as_mkdir_p; then | |
35948 | mkdir -p "$ac_dir" | |
35949 | else | |
35950 | as_dir="$ac_dir" | |
35951 | as_dirs= | |
35952 | while test ! -d "$as_dir"; do | |
35953 | as_dirs="$as_dir $as_dirs" | |
35954 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35955 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35956 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35957 | X"$as_dir" : 'X\(//\)$' \| \ | |
35958 | X"$as_dir" : 'X\(/\)' \| \ | |
35959 | . : '\(.\)' 2>/dev/null || | |
35960 | echo X"$as_dir" | | |
35961 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35962 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35963 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35964 | /^X\(\/\).*/{ s//\1/; q; } | |
35965 | s/.*/./; q'` | |
35966 | done | |
35967 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35968 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35969 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35970 | { (exit 1); exit 1; }; }; } | |
35971 | ||
35972 | rm -f $ac_file | |
35973 | mv $tmp/config.h $ac_file | |
35974 | fi | |
35975 | else | |
35976 | cat $tmp/config.h | |
35977 | rm -f $tmp/config.h | |
35978 | fi | |
35979 | done | |
35980 | _ACEOF | |
35981 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35982 | ||
35983 | # | |
35984 | # CONFIG_COMMANDS section. | |
35985 | # | |
35986 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
35987 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
35988 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35989 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
35990 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35991 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
35992 | X"$ac_dest" : 'X\(//\)$' \| \ | |
35993 | X"$ac_dest" : 'X\(/\)' \| \ | |
35994 | . : '\(.\)' 2>/dev/null || | |
35995 | echo X"$ac_dest" | | |
35996 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35997 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35998 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35999 | /^X\(\/\).*/{ s//\1/; q; } | |
36000 | s/.*/./; q'` | |
36001 | ac_builddir=. | |
36002 | ||
36003 | if test "$ac_dir" != .; then | |
36004 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36005 | # A "../" for each directory in $ac_dir_suffix. | |
36006 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36007 | else | |
36008 | ac_dir_suffix= ac_top_builddir= | |
36009 | fi | |
36010 | ||
36011 | case $srcdir in | |
36012 | .) # No --srcdir option. We are building in place. | |
36013 | ac_srcdir=. | |
36014 | if test -z "$ac_top_builddir"; then | |
36015 | ac_top_srcdir=. | |
36016 | else | |
36017 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36018 | fi ;; | |
36019 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36020 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36021 | ac_top_srcdir=$srcdir ;; | |
36022 | *) # Relative path. | |
36023 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36024 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36025 | esac | |
36026 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36027 | # absolute. | |
36028 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36029 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36030 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36031 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36032 | ||
36033 | ||
36034 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36035 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36036 | case $ac_dest in | |
36037 | default ) | |
36038 | if test ! -h wx-config; then | |
36039 | chmod +x wx-config | |
36040 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
36041 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
36042 | fi | |
36043 | ||
36044 | if test ! -d lib; then | |
36045 | mkdir lib | |
36046 | fi | |
36047 | if test ! -d lib/wx; then | |
36048 | mkdir lib/wx | |
36049 | fi | |
36050 | if test ! -d lib/wx/include; then | |
36051 | mkdir lib/wx/include | |
36052 | fi | |
36053 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
36054 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
36055 | fi | |
36056 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
36057 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
36058 | fi | |
36059 | if test -f setup.h; then | |
36060 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
36061 | fi | |
36062 | ;; | |
36063 | esac | |
36064 | done | |
36065 | _ACEOF | |
36066 | ||
36067 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36068 | ||
36069 | { (exit 0); exit 0; } | |
36070 | _ACEOF | |
36071 | chmod +x $CONFIG_STATUS | |
36072 | ac_clean_files=$ac_clean_files_save | |
36073 | ||
36074 | ||
36075 | # configure is writing to config.log, and then calls config.status. | |
36076 | # config.status does its own redirection, appending to config.log. | |
36077 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36078 | # by configure, so config.status won't be able to write to it; its | |
36079 | # output is simply discarded. So we exec the FD to /dev/null, | |
36080 | # effectively closing config.log, so it can be properly (re)opened and | |
36081 | # appended to by config.status. When coming back to configure, we | |
36082 | # need to make the FD available again. | |
36083 | if test "$no_create" != yes; then | |
36084 | ac_cs_success=: | |
36085 | ac_config_status_args= | |
36086 | test "$silent" = yes && | |
36087 | ac_config_status_args="$ac_config_status_args --quiet" | |
36088 | exec 5>/dev/null | |
36089 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36090 | exec 5>>config.log | |
36091 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36092 | # would make configure fail if this is the last instruction. | |
36093 | $ac_cs_success || { (exit 1); exit 1; } | |
36094 | fi | |
36095 | ||
36096 | ||
36097 | echo | |
36098 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
36099 | echo "" | |
36100 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
36101 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" | |
36102 | ||
36103 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
36104 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
36105 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
36106 | ||
36107 | echo " What level of wxWindows compatibility should be enabled?" | |
36108 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
36109 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
36110 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
36111 | ||
36112 | echo " Which libraries should wxWindows use?" | |
36113 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
36114 | echo " png ${wxUSE_LIBPNG-none}" | |
36115 | echo " regex ${wxUSE_REGEX}" | |
36116 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
36117 | echo " zlib ${wxUSE_ZLIB}" | |
36118 | echo " odbc ${wxUSE_ODBC}" | |
36119 | ||
36120 | echo "" | |
36121 |