]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
e6cc62c6 VS |
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 | |
fe0895cf | 9 | # Free Software Foundation, Inc. |
e6cc62c6 VS |
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 | ## --------------------- ## | |
fe0895cf | 15 | |
e6cc62c6 VS |
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 | |
fe0895cf | 26 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
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 | |
fe0895cf | 53 | |
e6cc62c6 VS |
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 | |
fe0895cf | 60 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
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'` | |
fe0895cf VS |
79 | |
80 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 88 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
101 | |
102 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 119 | |
e6cc62c6 VS |
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 | |
fe0895cf | 158 | |
e6cc62c6 VS |
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 | } | |
fe0895cf VS |
188 | |
189 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
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 | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 VS |
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" | |
fe0895cf | 231 | |
e6cc62c6 VS |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf VS |
234 | |
235 | ||
e6cc62c6 VS |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
fe0895cf | 241 | |
e6cc62c6 VS |
242 | # CDPATH. |
243 | $as_unset CDPATH | |
fe0895cf VS |
244 | |
245 | ||
e6cc62c6 VS |
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` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
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 | ||
c74dc163 | 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 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' |
e6cc62c6 | 315 | ac_subst_files='' |
10f2d63a VZ |
316 | |
317 | # Initialize some variables set by options. | |
e6cc62c6 VS |
318 | ac_init_help= |
319 | ac_init_version=false | |
10f2d63a VZ |
320 | # The variables have the same names as the options, with |
321 | # dashes changed to underlines. | |
e6cc62c6 | 322 | cache_file=/dev/null |
10f2d63a | 323 | exec_prefix=NONE |
10f2d63a | 324 | no_create= |
10f2d63a VZ |
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= | |
10f2d63a VZ |
333 | verbose= |
334 | x_includes=NONE | |
335 | x_libraries=NONE | |
e6cc62c6 VS |
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. | |
10f2d63a VZ |
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 | ||
10f2d63a VZ |
355 | ac_prev= |
356 | for ac_option | |
357 | do | |
10f2d63a VZ |
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 | ||
e6cc62c6 | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
366 | |
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
e6cc62c6 | 369 | case $ac_option in |
10f2d63a VZ |
370 | |
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 374 | bindir=$ac_optarg ;; |
10f2d63a VZ |
375 | |
376 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 377 | ac_prev=build_alias ;; |
10f2d63a | 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 379 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 VS |
386 | cache_file=$ac_optarg ;; |
387 | ||
388 | --config-cache | -C) | |
389 | cache_file=config.cache ;; | |
10f2d63a VZ |
390 | |
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
392 | ac_prev=datadir ;; | |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
394 | | --da=*) | |
e6cc62c6 | 395 | datadir=$ac_optarg ;; |
10f2d63a VZ |
396 | |
397 | -disable-* | --disable-*) | |
e6cc62c6 | 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 399 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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" ;; | |
10f2d63a VZ |
405 | |
406 | -enable-* | --enable-*) | |
e6cc62c6 | 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 408 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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"`;; | |
10f2d63a VZ |
415 | *) ac_optarg=yes ;; |
416 | esac | |
e6cc62c6 | 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 426 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
427 | |
428 | -gas | --gas | --ga | --g) | |
429 | # Obsolete; use --with-gas. | |
430 | with_gas=yes ;; | |
431 | ||
e6cc62c6 VS |
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 ;; | |
10f2d63a VZ |
438 | |
439 | -host | --host | --hos | --ho) | |
e6cc62c6 | 440 | ac_prev=host_alias ;; |
10f2d63a | 441 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 442 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 449 | includedir=$ac_optarg ;; |
10f2d63a VZ |
450 | |
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 | ac_prev=infodir ;; | |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 454 | infodir=$ac_optarg ;; |
10f2d63a VZ |
455 | |
456 | -libdir | --libdir | --libdi | --libd) | |
457 | ac_prev=libdir ;; | |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 459 | libdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 466 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 475 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
476 | |
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 | ac_prev=mandir ;; | |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 480 | mandir=$ac_optarg ;; |
10f2d63a VZ |
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 \ | |
e6cc62c6 | 487 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 501 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
502 | |
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 | ac_prev=prefix ;; | |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 506 | prefix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 513 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 520 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 537 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 547 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 558 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
559 | |
560 | -site | --site | --sit) | |
561 | ac_prev=site ;; | |
562 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 563 | site=$ac_optarg ;; |
10f2d63a VZ |
564 | |
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
566 | ac_prev=srcdir ;; | |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 568 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 575 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
576 | |
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 578 | ac_prev=target_alias ;; |
10f2d63a | 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 580 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
581 | |
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 | verbose=yes ;; | |
584 | ||
e6cc62c6 VS |
585 | -version | --version | --versio | --versi | --vers | -V) |
586 | ac_init_version=: ;; | |
10f2d63a VZ |
587 | |
588 | -with-* | --with-*) | |
e6cc62c6 | 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 590 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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; }; } | |
10f2d63a | 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
595 | case $ac_option in |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
597 | *) ac_optarg=yes ;; |
598 | esac | |
e6cc62c6 | 599 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
600 | |
601 | -without-* | --without-*) | |
e6cc62c6 | 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 603 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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" ;; | |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 619 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 626 | x_libraries=$ac_optarg ;; |
10f2d63a | 627 | |
e6cc62c6 VS |
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
629 | Try \`$0 --help' for more information." >&2 | |
630 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
631 | ;; |
632 | ||
e6cc62c6 VS |
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 | ||
10f2d63a | 643 | *) |
e6cc62c6 VS |
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} | |
10f2d63a VZ |
649 | ;; |
650 | ||
651 | esac | |
652 | done | |
653 | ||
654 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
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; }; } | |
a0b9e27f | 658 | fi |
a0b9e27f | 659 | |
e6cc62c6 VS |
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 | |
8284b0c5 | 670 | |
e6cc62c6 VS |
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 | |
10f2d63a | 674 | do |
e6cc62c6 VS |
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; }; };; | |
10f2d63a VZ |
680 | esac |
681 | done | |
682 | ||
e6cc62c6 VS |
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 | |
247f5006 | 700 | |
e6cc62c6 VS |
701 | ac_tool_prefix= |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | ||
704 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 705 | |
10f2d63a VZ |
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. | |
e6cc62c6 VS |
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'` | |
10f2d63a VZ |
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 | |
e6cc62c6 VS |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
733 | { (exit 1); exit 1; }; } | |
10f2d63a | 734 | else |
e6cc62c6 VS |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
736 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
737 | fi |
738 | fi | |
e6cc62c6 VS |
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 | |
328a083c | 787 | |
e6cc62c6 VS |
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. | |
10f2d63a | 796 | |
e6cc62c6 | 797 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 798 | |
e6cc62c6 VS |
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. | |
8284b0c5 | 801 | |
e6cc62c6 VS |
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 | |
9747f85d | 869 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
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 | |
e6cc62c6 VS |
874 | --enable-optimise create optimised code |
875 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 876 | --enable-stl use STL for containers |
e6cc62c6 VS |
877 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin) |
878 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
879 | --enable-debug_info create code with debugging information | |
880 | --enable-debug_gdb create code with extra GDB debugging information | |
881 | --enable-debug_cntxt use wxDebugContext | |
882 | --enable-mem_tracing create code with memory tracing | |
883 | --enable-profile create code with profiling information | |
884 | --enable-no_rtti create code without RTTI information | |
885 | --enable-no_exceptions create code without C++ exceptions handling | |
886 | --enable-permissive compile code disregarding strict ANSI | |
887 | --enable-no_deps create code without dependency information | |
888 | --enable-compat20 enable wxWindows 2.0 compatibility | |
889 | --enable-compat22 enable wxWindows 2.2 compatibility | |
890 | --disable-compat24 disable wxWindows 2.4 compatibility | |
891 | --enable-rpath=DIR output the rpath flag from wx-config | |
892 | --enable-intl use internationalization system | |
893 | --enable-config use wxConfig (and derived) classes | |
894 | --enable-protocols use wxProtocol and derived classes | |
895 | --enable-ftp use wxFTP (requires wxProtocol | |
896 | --enable-http use wxHTTP (requires wxProtocol | |
897 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
898 | --enable-sockets use socket/network classes | |
899 | --enable-ole use OLE classes | |
900 | --enable-dataobj use data object classes | |
901 | --enable-ipc use interprocess communication (wxSocket etc.) | |
902 | --enable-cmdline use wxCmdLineParser class | |
903 | --enable-datetime use wxDateTime class | |
904 | --enable-stopwatch use wxStopWatch class | |
905 | --enable-dialupman use dialup network classes | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
907 | --enable-timer use wxTimer class | |
908 | --enable-wave use wxWave class | |
909 | --enable-fraction use wxFraction class | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-longlong use wxLongLong class | |
913 | --enable-geometry use geometry class | |
914 | --enable-log use logging system | |
915 | --enable-streams use wxStream etc classes | |
916 | --enable-file use wxFile classes | |
917 | --enable-ffile use wxFFile classes | |
918 | --enable-textbuf use wxTextBuffer class | |
919 | --enable-textfile use wxTextFile class | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-unicode compile wxString with Unicode support | |
922 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
923 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
924 | --enable-std_iostreams use standard C++ stream classes | |
925 | --enable-filesystem use virtual file systems classes | |
926 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
927 | --enable-fs_zip use virtual ZIP filesystems | |
928 | --enable-zipstream use wxZipInputStream | |
929 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
930 | --enable-snglinst use wxSingleInstanceChecker class | |
931 | --enable-mimetype use wxMimeTypesManager | |
932 | --enable-sysoptions use wxSystemOptions | |
933 | --enable-url use wxURL class | |
934 | --enable-protocol use wxProtocol class | |
935 | --enable-protocol-http HTTP support in wxProtocol | |
936 | --enable-protocol-ftp FTP support in wxProtocol | |
937 | --enable-protocol-file FILE support in wxProtocol | |
938 | --enable-threads use threads | |
939 | --enable-docview use document view architecture | |
940 | --enable-help use help subsystem | |
941 | --enable-mshtmlhelp use MS HTML Help (win32) | |
942 | --enable-html use wxHTML sub-library | |
943 | --enable-htmlhelp use wxHTML-based help | |
944 | --enable-constraints use layout-constraints system | |
945 | --enable-printarch use printing architecture | |
946 | --enable-mdi use multiple document interface architecture | |
947 | --enable-loggui use standard GUI logger | |
948 | --enable-logwin use wxLogWindow | |
949 | --enable-logdialog use wxLogDialog | |
950 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
951 | --enable-prologio not available; see contrib | |
952 | --enable-resources not available; see contrib | |
953 | --enable-clipboard use wxClipboard class | |
954 | --enable-dnd use Drag'n'Drop classes | |
955 | --enable-metafile use win32 metafiles | |
956 | --enable-controls use all usual controls | |
957 | --enable-accel use accelerators | |
958 | --enable-button use wxButton class | |
959 | --enable-bmpbutton use wxBitmapButton class | |
960 | --enable-calendar use wxCalendarCtrl class | |
961 | --enable-caret use wxCaret class | |
962 | --enable-checkbox use wxCheckBox class | |
963 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
964 | --enable-choice use wxChoice class | |
965 | --enable-combobox use wxComboBox class | |
966 | --enable-display use wxDisplay class | |
967 | --enable-gauge use wxGauge class | |
968 | --enable-grid use wxGrid class | |
969 | --enable-imaglist use wxImageList class | |
970 | --enable-listbox use wxListBox class | |
971 | --enable-listctrl use wxListCtrl class | |
972 | --enable-notebook use wxNotebook class | |
973 | --enable-radiobox use wxRadioBox class | |
974 | --enable-radiobtn use wxRadioButton class | |
975 | --enable-sash use wxSashWindow class | |
976 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
977 | --enable-slider use wxSlider class | |
978 | --enable-spinbtn use wxSpinButton class | |
979 | --enable-spinctrl use wxSpinCtrl class | |
980 | --enable-splitter use wxSplitterWindow class | |
981 | --enable-statbmp use wxStaticBitmap class | |
982 | --enable-statbox use wxStaticBox class | |
983 | --enable-statline use wxStaticLine class | |
984 | --enable-stattext use wxStaticText class | |
985 | --enable-statusbar use wxStatusBar class | |
986 | --enable-tabdialog use wxTabControl class | |
987 | --enable-textctrl use wxTextCtrl class | |
988 | --enable-togglebtn use wxToggleButton class | |
989 | --enable-toolbar use wxToolBar class | |
990 | --enable-tbarnative use native wxToolBar class | |
991 | --enable-tbarsmpl use wxToolBarSimple class | |
992 | --enable-treectrl use wxTreeCtrl class | |
993 | --enable-tipwindow use wxTipWindow class | |
994 | --enable-popupwin use wxPopUpWindow class | |
995 | --enable-commondlg use all common dialogs | |
996 | --enable-choicedlg use wxChoiceDialog | |
997 | --enable-coldlg use wxColourDialog | |
998 | --enable-filedlg use wxFileDialog | |
999 | --enable-finddlg use wxFindReplaceDialog | |
1000 | --enable-fontdlg use wxFontDialog | |
1001 | --enable-dirdlg use wxDirDialog | |
1002 | --enable-msgdlg use wxMessageDialog | |
1003 | --enable-numberdlg use wxNumberEntryDialog | |
1004 | --enable-splash use wxSplashScreen | |
1005 | --enable-textdlg use wxTextDialog | |
1006 | --enable-tipdlg use startup tips | |
1007 | --enable-progressdlg use wxProgressDialog | |
1008 | --enable-wizarddlg use wxWizard | |
1009 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1010 | --enable-miniframe use wxMiniFrame class | |
1011 | --enable-tooltips use wxToolTip class | |
1012 | --enable-splines use spline drawing code | |
1013 | --enable-validators use wxValidator and derived classes | |
1014 | --enable-busyinfo use wxBusyInfo | |
1015 | --enable-joystick use wxJoystick (Linux only) | |
1016 | --enable-metafiles use wxMetaFile (Windows only) | |
1017 | --enable-dragimage use wxDragImage | |
1018 | --enable-accessibility enable accessibility support | |
1019 | --enable-palette use wxPalette class | |
1020 | --enable-image use wxImage class | |
1021 | --enable-gif use gif images (GIF file format) | |
1022 | --enable-pcx use pcx images (PCX file format) | |
1023 | --enable-iff use iff images (IFF file format) | |
1024 | --enable-pnm use pnm images (PNM file format) | |
1025 | --enable-xpm use xpm images (XPM file format) | |
1026 | --enable-icocur use Windows ICO and CUR formats | |
1027 | --disable-largefile omit support for large files | |
1028 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1029 | --disable-gtktest Do not try to compile and run a test GTK program | |
1030 | ||
1031 | Optional Packages: | |
1032 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1033 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1034 | --with-gtk use GTK+ | |
1035 | --with-motif use Motif/Lesstif | |
1036 | --with-mac use Mac OS X | |
1037 | --with-cocoa use Cocoa | |
1038 | --with-wine use Wine | |
1039 | --with-msw use MS-Windows | |
1040 | --with-pm use OS/2 Presentation Manager | |
1041 | --with-mgl use SciTech MGL | |
1042 | --with-microwin use MicroWindows | |
1043 | --with-x11 use X11 | |
1044 | --with-libpng use libpng (PNG image format) | |
1045 | --with-libjpeg use libjpeg (JPEG file format) | |
1046 | --with-libtiff use libtiff (TIFF file format) | |
1047 | --with-opengl use OpenGL (or Mesa) | |
1048 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1049 | --with-regex enable support for wxRegEx class | |
1050 | --with-zlib use zlib for LZW compression | |
1051 | --with-odbc use the IODBC and wxODBC classes | |
1052 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1053 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1054 | --with-x use the X Window System | |
1055 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1056 | ||
1057 | Some influential environment variables: | |
1058 | CC C compiler command | |
1059 | CFLAGS C compiler flags | |
1060 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1061 | nonstandard directory <lib dir> | |
1062 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1063 | headers in a nonstandard directory <include dir> | |
1064 | CPP C preprocessor | |
1065 | CXX C++ compiler command | |
1066 | CXXFLAGS C++ compiler flags | |
1067 | CXXCPP C++ preprocessor | |
1068 | ||
1069 | Use these variables to override the choices made by `configure' or to help | |
1070 | it to find libraries and programs with nonstandard names/locations. | |
1071 | ||
1072 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1073 | _ACEOF | |
1074 | fi | |
1075 | ||
1076 | if test "$ac_init_help" = "recursive"; then | |
1077 | # If there are subdirs, report their specific --help. | |
1078 | ac_popdir=`pwd` | |
1079 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1080 | test -d $ac_dir || continue | |
1081 | ac_builddir=. | |
1082 | ||
1083 | if test "$ac_dir" != .; then | |
1084 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1085 | # A "../" for each directory in $ac_dir_suffix. | |
1086 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1087 | else | |
1088 | ac_dir_suffix= ac_top_builddir= | |
1089 | fi | |
1090 | ||
1091 | case $srcdir in | |
1092 | .) # No --srcdir option. We are building in place. | |
1093 | ac_srcdir=. | |
1094 | if test -z "$ac_top_builddir"; then | |
1095 | ac_top_srcdir=. | |
1096 | else | |
1097 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1098 | fi ;; | |
1099 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1100 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1101 | ac_top_srcdir=$srcdir ;; | |
1102 | *) # Relative path. | |
1103 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1104 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1105 | esac | |
1106 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1107 | # absolute. | |
1108 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1109 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1110 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1111 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1112 | ||
1113 | cd $ac_dir | |
1114 | # Check for guested configure; otherwise get Cygnus style configure. | |
1115 | if test -f $ac_srcdir/configure.gnu; then | |
1116 | echo | |
1117 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1118 | elif test -f $ac_srcdir/configure; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure --help=recursive | |
1121 | elif test -f $ac_srcdir/configure.ac || | |
1122 | test -f $ac_srcdir/configure.in; then | |
1123 | echo | |
1124 | $ac_configure --help | |
1125 | else | |
1126 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1127 | fi | |
1128 | cd $ac_popdir | |
1129 | done | |
1130 | fi | |
8284b0c5 | 1131 | |
e6cc62c6 VS |
1132 | test -n "$ac_init_help" && exit 0 |
1133 | if $ac_init_version; then | |
1134 | cat <<\_ACEOF | |
1135 | wxWindows configure 2.5.0 | |
1136 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1137 | |
e6cc62c6 VS |
1138 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1139 | Free Software Foundation, Inc. | |
1140 | This configure script is free software; the Free Software Foundation | |
1141 | gives unlimited permission to copy, distribute and modify it. | |
1142 | _ACEOF | |
1143 | exit 0 | |
7c66a493 | 1144 | fi |
e6cc62c6 VS |
1145 | exec 5>config.log |
1146 | cat >&5 <<_ACEOF | |
1147 | This file contains any messages produced by compilers while | |
1148 | running configure, to aid debugging if configure makes a mistake. | |
1149 | ||
1150 | It was created by wxWindows $as_me 2.5.0, which was | |
1151 | generated by GNU Autoconf 2.57. Invocation command line was | |
1152 | ||
1153 | $ $0 $@ | |
1154 | ||
1155 | _ACEOF | |
1156 | { | |
1157 | cat <<_ASUNAME | |
1158 | ## --------- ## | |
1159 | ## Platform. ## | |
1160 | ## --------- ## | |
1161 | ||
1162 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1163 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1164 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1165 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1166 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1167 | ||
1168 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1169 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1170 | ||
1171 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1172 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1173 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1174 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1175 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1176 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1177 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1178 | ||
1179 | _ASUNAME | |
1180 | ||
1181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1182 | for as_dir in $PATH | |
1183 | do | |
1184 | IFS=$as_save_IFS | |
1185 | test -z "$as_dir" && as_dir=. | |
1186 | echo "PATH: $as_dir" | |
1187 | done | |
1188 | ||
1189 | } >&5 | |
1190 | ||
1191 | cat >&5 <<_ACEOF | |
1192 | ||
1193 | ||
1194 | ## ----------- ## | |
1195 | ## Core tests. ## | |
1196 | ## ----------- ## | |
1197 | ||
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | # Keep a trace of the command line. | |
1202 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1203 | # Strip out --silent because we don't want to record it for future runs. | |
1204 | # Also quote any args containing shell meta-characters. | |
1205 | # Make two passes to allow for proper duplicate-argument suppression. | |
1206 | ac_configure_args= | |
1207 | ac_configure_args0= | |
1208 | ac_configure_args1= | |
1209 | ac_sep= | |
1210 | ac_must_keep_next=false | |
1211 | for ac_pass in 1 2 | |
1212 | do | |
1213 | for ac_arg | |
1214 | do | |
1215 | case $ac_arg in | |
1216 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1217 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1218 | | -silent | --silent | --silen | --sile | --sil) | |
1219 | continue ;; | |
1220 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1221 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1222 | esac | |
1223 | case $ac_pass in | |
1224 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1225 | 2) | |
1226 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1227 | if test $ac_must_keep_next = true; then | |
1228 | ac_must_keep_next=false # Got value, back to normal. | |
1229 | else | |
1230 | case $ac_arg in | |
1231 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1232 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1233 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1234 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1235 | case "$ac_configure_args0 " in | |
1236 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1237 | esac | |
1238 | ;; | |
1239 | -* ) ac_must_keep_next=true ;; | |
1240 | esac | |
1241 | fi | |
1242 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1243 | # Get rid of the leading space. | |
1244 | ac_sep=" " | |
1245 | ;; | |
1246 | esac | |
1247 | done | |
1248 | done | |
1249 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1250 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1251 | ||
1252 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1253 | # config.log. We remove comments because anyway the quotes in there | |
1254 | # would cause problems or look ugly. | |
1255 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1256 | # such as our DU 5.0 friend, will then `close' the trap. | |
1257 | trap 'exit_status=$? | |
1258 | # Save into config.log some information that might help in debugging. | |
1259 | { | |
1260 | echo | |
1261 | ||
1262 | cat <<\_ASBOX | |
1263 | ## ---------------- ## | |
1264 | ## Cache variables. ## | |
1265 | ## ---------------- ## | |
1266 | _ASBOX | |
1267 | echo | |
1268 | # The following way of writing the cache mishandles newlines in values, | |
1269 | { | |
1270 | (set) 2>&1 | | |
1271 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1272 | *ac_space=\ *) | |
1273 | sed -n \ | |
1274 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1275 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1276 | ;; | |
1277 | *) | |
1278 | sed -n \ | |
1279 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1280 | ;; | |
1281 | esac; | |
1282 | } | |
1283 | echo | |
1284 | ||
1285 | cat <<\_ASBOX | |
1286 | ## ----------------- ## | |
1287 | ## Output variables. ## | |
1288 | ## ----------------- ## | |
1289 | _ASBOX | |
1290 | echo | |
1291 | for ac_var in $ac_subst_vars | |
1292 | do | |
1293 | eval ac_val=$`echo $ac_var` | |
1294 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1295 | done | sort | |
1296 | echo | |
1297 | ||
1298 | if test -n "$ac_subst_files"; then | |
1299 | cat <<\_ASBOX | |
1300 | ## ------------- ## | |
1301 | ## Output files. ## | |
1302 | ## ------------- ## | |
1303 | _ASBOX | |
1304 | echo | |
1305 | for ac_var in $ac_subst_files | |
1306 | do | |
1307 | eval ac_val=$`echo $ac_var` | |
1308 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1309 | done | sort | |
1310 | echo | |
1311 | fi | |
1312 | ||
1313 | if test -s confdefs.h; then | |
1314 | cat <<\_ASBOX | |
1315 | ## ----------- ## | |
1316 | ## confdefs.h. ## | |
1317 | ## ----------- ## | |
1318 | _ASBOX | |
1319 | echo | |
1320 | sed "/^$/d" confdefs.h | sort | |
1321 | echo | |
1322 | fi | |
1323 | test "$ac_signal" != 0 && | |
1324 | echo "$as_me: caught signal $ac_signal" | |
1325 | echo "$as_me: exit $exit_status" | |
1326 | } >&5 | |
1327 | rm -f core core.* *.core && | |
1328 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1329 | exit $exit_status | |
1330 | ' 0 | |
1331 | for ac_signal in 1 2 13 15; do | |
1332 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1333 | done | |
1334 | ac_signal=0 | |
1335 | ||
1336 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1337 | rm -rf conftest* confdefs.h | |
1338 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1339 | echo >confdefs.h | |
1340 | ||
1341 | # Predefined preprocessor variables. | |
1342 | ||
1343 | cat >>confdefs.h <<_ACEOF | |
1344 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1345 | _ACEOF | |
1346 | ||
1347 | ||
1348 | cat >>confdefs.h <<_ACEOF | |
1349 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1350 | _ACEOF | |
1351 | ||
1352 | ||
1353 | cat >>confdefs.h <<_ACEOF | |
1354 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1355 | _ACEOF | |
1356 | ||
1357 | ||
1358 | cat >>confdefs.h <<_ACEOF | |
1359 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1360 | _ACEOF | |
1361 | ||
1362 | ||
1363 | cat >>confdefs.h <<_ACEOF | |
1364 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1365 | _ACEOF | |
1366 | ||
1367 | ||
1368 | # Let the site file select an alternate cache file if it wants to. | |
1369 | # Prefer explicitly selected file to automatically selected ones. | |
1370 | if test -z "$CONFIG_SITE"; then | |
1371 | if test "x$prefix" != xNONE; then | |
1372 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1373 | else | |
1374 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1375 | fi | |
1376 | fi | |
1377 | for ac_site_file in $CONFIG_SITE; do | |
1378 | if test -r "$ac_site_file"; then | |
1379 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1380 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1381 | sed 's/^/| /' "$ac_site_file" >&5 | |
1382 | . "$ac_site_file" | |
1383 | fi | |
1384 | done | |
1385 | ||
1386 | if test -r "$cache_file"; then | |
1387 | # Some versions of bash will fail to source /dev/null (special | |
1388 | # files actually), so we avoid doing that. | |
1389 | if test -f "$cache_file"; then | |
1390 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1391 | echo "$as_me: loading cache $cache_file" >&6;} | |
1392 | case $cache_file in | |
1393 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1394 | *) . ./$cache_file;; | |
1395 | esac | |
1396 | fi | |
1397 | else | |
1398 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1399 | echo "$as_me: creating cache $cache_file" >&6;} | |
1400 | >$cache_file | |
1401 | fi | |
1402 | ||
1403 | # Check that the precious variables saved in the cache have kept the same | |
1404 | # value. | |
1405 | ac_cache_corrupted=false | |
1406 | for ac_var in `(set) 2>&1 | | |
1407 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1408 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1409 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1410 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1411 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1412 | case $ac_old_set,$ac_new_set in | |
1413 | set,) | |
1414 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1415 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1416 | ac_cache_corrupted=: ;; | |
1417 | ,set) | |
1418 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1419 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1420 | ac_cache_corrupted=: ;; | |
1421 | ,);; | |
1422 | *) | |
1423 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1424 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1425 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1426 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1427 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1428 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1429 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1430 | ac_cache_corrupted=: | |
1431 | fi;; | |
1432 | esac | |
1433 | # Pass precious variables to config.status. | |
1434 | if test "$ac_new_set" = set; then | |
1435 | case $ac_new_val in | |
1436 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1437 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1438 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1439 | esac | |
1440 | case " $ac_configure_args " in | |
1441 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1442 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1443 | esac | |
1444 | fi | |
1445 | done | |
1446 | if $ac_cache_corrupted; then | |
1447 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1448 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1449 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1450 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1451 | { (exit 1); exit 1; }; } | |
1452 | fi | |
1453 | ||
1454 | ac_ext=c | |
1455 | ac_cpp='$CPP $CPPFLAGS' | |
1456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
698dcdb6 | 1476 | |
8284b0c5 | 1477 | |
7c66a493 | 1478 | |
a0b9e27f MB |
1479 | |
1480 | ||
a0b9e27f | 1481 | |
a0b9e27f | 1482 | |
a0b9e27f | 1483 | |
a0b9e27f | 1484 | |
a0b9e27f | 1485 | |
a0b9e27f | 1486 | |
e6cc62c6 VS |
1487 | |
1488 | ||
1489 | ac_aux_dir= | |
1490 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1491 | if test -f $ac_dir/install-sh; then | |
1492 | ac_aux_dir=$ac_dir | |
1493 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1494 | break | |
1495 | elif test -f $ac_dir/install.sh; then | |
1496 | ac_aux_dir=$ac_dir | |
1497 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1498 | break | |
1499 | elif test -f $ac_dir/shtool; then | |
1500 | ac_aux_dir=$ac_dir | |
1501 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1502 | break | |
1503 | fi | |
1504 | done | |
1505 | if test -z "$ac_aux_dir"; then | |
1506 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1507 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1508 | { (exit 1); exit 1; }; } | |
1509 | fi | |
1510 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1511 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1512 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1513 | ||
1514 | # Make sure we can run config.sub. | |
1515 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1516 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1517 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1518 | { (exit 1); exit 1; }; } | |
1519 | ||
1520 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1521 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1522 | if test "${ac_cv_build+set}" = set; then | |
1523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1524 | else | |
1525 | ac_cv_build_alias=$build_alias | |
1526 | test -z "$ac_cv_build_alias" && | |
1527 | ac_cv_build_alias=`$ac_config_guess` | |
1528 | test -z "$ac_cv_build_alias" && | |
1529 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1530 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1531 | { (exit 1); exit 1; }; } | |
1532 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1533 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1534 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1535 | { (exit 1); exit 1; }; } | |
1536 | ||
1537 | fi | |
1538 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1539 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1540 | build=$ac_cv_build | |
1541 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1542 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1543 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1544 | ||
1545 | ||
1546 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1547 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1548 | if test "${ac_cv_host+set}" = set; then | |
1549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1550 | else | |
1551 | ac_cv_host_alias=$host_alias | |
1552 | test -z "$ac_cv_host_alias" && | |
1553 | ac_cv_host_alias=$ac_cv_build_alias | |
1554 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1555 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1556 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1557 | { (exit 1); exit 1; }; } | |
1558 | ||
1559 | fi | |
1560 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1561 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1562 | host=$ac_cv_host | |
1563 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1564 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1565 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1566 | ||
1567 | ||
1568 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1569 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1570 | if test "${ac_cv_target+set}" = set; then | |
1571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1572 | else | |
1573 | ac_cv_target_alias=$target_alias | |
1574 | test "x$ac_cv_target_alias" = "x" && | |
1575 | ac_cv_target_alias=$ac_cv_host_alias | |
1576 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1577 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1578 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1579 | { (exit 1); exit 1; }; } | |
1580 | ||
1581 | fi | |
1582 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1583 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1584 | target=$ac_cv_target | |
1585 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1586 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1587 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1588 | ||
1589 | ||
1590 | # The aliases save the names the user supplied, while $host etc. | |
1591 | # will get canonicalized. | |
1592 | test -n "$target_alias" && | |
7c66a493 VZ |
1593 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1594 | NONENONEs,x,x, && | |
1595 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1596 | |
1597 | ||
a0b9e27f | 1598 | |
10f2d63a | 1599 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1600 | WX_MINOR_VERSION_NUMBER=5 |
1601 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1602 | |
10f2d63a | 1603 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1604 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1605 | |
978f1259 RL |
1606 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1607 | ||
34bed6d9 | 1608 | WX_CURRENT=0 |
6426998c RL |
1609 | WX_REVISION=0 |
1610 | WX_AGE=0 | |
1611 | ||
8284b0c5 MB |
1612 | |
1613 | ||
10f2d63a VZ |
1614 | USE_UNIX=1 |
1615 | USE_WIN32=0 | |
f9bc1684 | 1616 | USE_DOS=0 |
b12915c1 | 1617 | USE_BEOS=0 |
1216f52d | 1618 | USE_MAC=0 |
b12915c1 | 1619 | |
10f2d63a | 1620 | USE_AIX= |
fe0895cf VS |
1621 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1622 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1623 | USE_LINUX= |
f6bcfd97 | 1624 | USE_NETBSD= |
89e3b3e4 | 1625 | USE_OPENBSD= |
fe0895cf VS |
1626 | USE_OSF= USE_SGI= |
1627 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1628 | USE_ULTRIX= |
89e3b3e4 VZ |
1629 | USE_UNIXWARE= |
1630 | ||
1631 | USE_ALPHA= | |
10f2d63a | 1632 | |
ab9b9eab VZ |
1633 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1634 | ||
ac0c4cc3 | 1635 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1636 | |
ac0c4cc3 | 1637 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1638 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1639 | DEFAULT_wxUSE_MAC=0 |
1640 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1641 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_MOTIF=0 |
1643 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1644 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1645 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1646 | |
ac0c4cc3 | 1647 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1648 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1649 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1650 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1651 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1652 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1653 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1654 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1655 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1656 | |
d6a55c4b | 1657 | PROGRAM_EXT= |
3a922bb4 | 1658 | SO_SUFFIX=so |
fe0895cf | 1659 | SAMPLES_RPATH_FLAG= |
d6a55c4b | 1660 | |
10f2d63a VZ |
1661 | case "${host}" in |
1662 | *-hp-hpux* ) | |
1663 | USE_HPUX=1 | |
1664 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1665 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1666 | SO_SUFFIX=sl |
e6cc62c6 | 1667 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1668 | #define __HPUX__ 1 |
e6cc62c6 | 1669 | _ACEOF |
10f2d63a VZ |
1670 | |
1671 | ;; | |
1672 | *-*-linux* ) | |
1673 | USE_LINUX=1 | |
e6cc62c6 | 1674 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1675 | #define __LINUX__ 1 |
e6cc62c6 | 1676 | _ACEOF |
10f2d63a VZ |
1677 | |
1678 | TMP=`uname -m` | |
1679 | if test "x$TMP" = "xalpha"; then | |
1680 | USE_ALPHA=1 | |
e6cc62c6 | 1681 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1682 | #define __ALPHA__ 1 |
e6cc62c6 | 1683 | _ACEOF |
fe0895cf VS |
1684 | |
1685 | fi | |
1686 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1687 | ;; | |
1688 | *-*-gnu* ) | |
1689 | USE_GNU=1 | |
e6cc62c6 | 1690 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1691 | #define __GNU__ 1 |
e6cc62c6 | 1692 | _ACEOF |
fe0895cf VS |
1693 | |
1694 | TMP=`uname -m` | |
1695 | if test "x$TMP" = "xalpha"; then | |
1696 | USE_ALPHA=1 | |
e6cc62c6 | 1697 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1698 | #define __ALPHA__ 1 |
e6cc62c6 | 1699 | _ACEOF |
10f2d63a VZ |
1700 | |
1701 | fi | |
1702 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1703 | ;; | |
1704 | *-*-irix5* | *-*-irix6* ) | |
1705 | USE_SGI=1 | |
1706 | USE_SVR4=1 | |
e6cc62c6 | 1707 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1708 | #define __SGI__ 1 |
e6cc62c6 | 1709 | _ACEOF |
10f2d63a | 1710 | |
e6cc62c6 | 1711 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1712 | #define __SVR4__ 1 |
e6cc62c6 | 1713 | _ACEOF |
10f2d63a VZ |
1714 | |
1715 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1716 | ;; | |
1717 | *-*-solaris2* ) | |
1718 | USE_SUN=1 | |
1719 | USE_SOLARIS=1 | |
1720 | USE_SVR4=1 | |
e6cc62c6 | 1721 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1722 | #define __SUN__ 1 |
e6cc62c6 | 1723 | _ACEOF |
10f2d63a | 1724 | |
e6cc62c6 | 1725 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1726 | #define __SOLARIS__ 1 |
e6cc62c6 | 1727 | _ACEOF |
10f2d63a | 1728 | |
e6cc62c6 | 1729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1730 | #define __SVR4__ 1 |
e6cc62c6 | 1731 | _ACEOF |
10f2d63a VZ |
1732 | |
1733 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1734 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1735 | ;; |
1736 | *-*-sunos4* ) | |
1737 | USE_SUN=1 | |
1738 | USE_SUNOS=1 | |
1739 | USE_BSD=1 | |
e6cc62c6 | 1740 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1741 | #define __SUN__ 1 |
e6cc62c6 | 1742 | _ACEOF |
10f2d63a | 1743 | |
e6cc62c6 | 1744 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1745 | #define __SUNOS__ 1 |
e6cc62c6 | 1746 | _ACEOF |
10f2d63a | 1747 | |
e6cc62c6 | 1748 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1749 | #define __BSD__ 1 |
e6cc62c6 | 1750 | _ACEOF |
10f2d63a VZ |
1751 | |
1752 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1753 | ;; | |
f6bcfd97 | 1754 | *-*-freebsd*) |
10f2d63a VZ |
1755 | USE_BSD=1 |
1756 | USE_FREEBSD=1 | |
e6cc62c6 | 1757 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1758 | #define __FREEBSD__ 1 |
e6cc62c6 | 1759 | _ACEOF |
10f2d63a | 1760 | |
e6cc62c6 | 1761 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1762 | #define __BSD__ 1 |
e6cc62c6 | 1763 | _ACEOF |
95c8801c VS |
1764 | |
1765 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1766 | ;; | |
1767 | *-*-openbsd*) | |
1768 | USE_BSD=1 | |
1769 | USE_OPENBSD=1 | |
e6cc62c6 | 1770 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1771 | #define __OPENBSD__ 1 |
e6cc62c6 | 1772 | _ACEOF |
95c8801c | 1773 | |
e6cc62c6 | 1774 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1775 | #define __BSD__ 1 |
e6cc62c6 | 1776 | _ACEOF |
f6bcfd97 BP |
1777 | |
1778 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1779 | ;; | |
1780 | *-*-netbsd*) | |
1781 | USE_BSD=1 | |
1782 | USE_NETBSD=1 | |
e6cc62c6 | 1783 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1784 | #define __NETBSD__ 1 |
e6cc62c6 | 1785 | _ACEOF |
f6bcfd97 | 1786 | |
e6cc62c6 | 1787 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1788 | #define __BSD__ 1 |
e6cc62c6 | 1789 | _ACEOF |
10f2d63a VZ |
1790 | |
1791 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1792 | ;; | |
1793 | *-*-osf* ) | |
1794 | USE_ALPHA=1 | |
1795 | USE_OSF=1 | |
e6cc62c6 | 1796 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1797 | #define __ALPHA__ 1 |
e6cc62c6 | 1798 | _ACEOF |
10f2d63a | 1799 | |
e6cc62c6 | 1800 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1801 | #define __OSF__ 1 |
e6cc62c6 | 1802 | _ACEOF |
10f2d63a VZ |
1803 | |
1804 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1805 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1806 | ;; |
1807 | *-*-dgux5* ) | |
1808 | USE_ALPHA=1 | |
1809 | USE_SVR4=1 | |
e6cc62c6 | 1810 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1811 | #define __ALPHA__ 1 |
e6cc62c6 | 1812 | _ACEOF |
10f2d63a | 1813 | |
e6cc62c6 | 1814 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1815 | #define __SVR4__ 1 |
e6cc62c6 | 1816 | _ACEOF |
10f2d63a VZ |
1817 | |
1818 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1819 | ;; | |
1820 | *-*-sysv5* ) | |
1821 | USE_SYSV=1 | |
1822 | USE_SVR4=1 | |
e6cc62c6 | 1823 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1824 | #define __SYSV__ 1 |
e6cc62c6 | 1825 | _ACEOF |
10f2d63a | 1826 | |
e6cc62c6 | 1827 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1828 | #define __SVR4__ 1 |
e6cc62c6 | 1829 | _ACEOF |
10f2d63a VZ |
1830 | |
1831 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1832 | ;; | |
1833 | *-*-aix* ) | |
1834 | USE_AIX=1 | |
1835 | USE_SYSV=1 | |
1836 | USE_SVR4=1 | |
2b5f62a0 | 1837 | SO_SUFFIX=a |
e6cc62c6 | 1838 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1839 | #define __AIX__ 1 |
e6cc62c6 | 1840 | _ACEOF |
10f2d63a | 1841 | |
e6cc62c6 | 1842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1843 | #define __SYSV__ 1 |
e6cc62c6 | 1844 | _ACEOF |
10f2d63a | 1845 | |
e6cc62c6 | 1846 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1847 | #define __SVR4__ 1 |
e6cc62c6 | 1848 | _ACEOF |
10f2d63a VZ |
1849 | |
1850 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1851 | ;; | |
1852 | ||
89e3b3e4 VZ |
1853 | *-*-*UnixWare*) |
1854 | USE_SYSV=1 | |
1855 | USE_SVR4=1 | |
1856 | USE_UNIXWARE=1 | |
e6cc62c6 | 1857 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1858 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1859 | _ACEOF |
89e3b3e4 VZ |
1860 | |
1861 | ;; | |
1862 | ||
1c8183e2 | 1863 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1864 | SO_SUFFIX=dll |
cf27ef00 | 1865 | PROGRAM_EXT=".exe" |
7b7a7637 | 1866 | RESCOMP=windres |
10f2d63a VZ |
1867 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1868 | ;; | |
1869 | ||
f9bc1684 VS |
1870 | *-pc-msdosdjgpp ) |
1871 | USE_UNIX=0 | |
1872 | USE_DOS=1 | |
e6cc62c6 | 1873 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1874 | #define __DOS__ 1 |
e6cc62c6 | 1875 | _ACEOF |
f9bc1684 VS |
1876 | |
1877 | PROGRAM_EXT=".exe" | |
1878 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1879 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1880 | ;; |
1881 | ||
6fa882bd | 1882 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1883 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1884 | #define __EMX__ 1 |
e6cc62c6 | 1885 | _ACEOF |
10f2d63a | 1886 | |
cf27ef00 | 1887 | PROGRAM_EXT=".exe" |
e07802fc | 1888 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1889 | ;; |
1890 | ||
d08b457b GD |
1891 | powerpc-*-darwin* ) |
1892 | USE_BSD=1 | |
f11bdd03 | 1893 | USE_DARWIN=1 |
3a922bb4 | 1894 | SO_SUFFIX=dylib |
e6cc62c6 | 1895 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1896 | #define __BSD__ 1 |
e6cc62c6 | 1897 | _ACEOF |
b4085ce6 | 1898 | |
e6cc62c6 | 1899 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1900 | #define __DARWIN__ 1 |
e6cc62c6 | 1901 | _ACEOF |
d08b457b | 1902 | |
e6cc62c6 | 1903 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1904 | #define __POWERPC__ 1 |
e6cc62c6 | 1905 | _ACEOF |
82d43113 | 1906 | |
e6cc62c6 | 1907 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1908 | #define TARGET_CARBON 1 |
e6cc62c6 | 1909 | _ACEOF |
b4085ce6 GD |
1910 | |
1911 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1912 | ;; | |
1913 | ||
b12915c1 VZ |
1914 | *-*-beos* ) |
1915 | USE_BEOS=1 | |
e6cc62c6 | 1916 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1917 | #define __BEOS__ 1 |
e6cc62c6 | 1918 | _ACEOF |
b12915c1 VZ |
1919 | |
1920 | ;; | |
1921 | ||
10f2d63a | 1922 | *) |
e6cc62c6 VS |
1923 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1924 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1925 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1926 | esac |
1927 | ||
8284b0c5 MB |
1928 | |
1929 | ||
1930 | ||
1931 | wx_arg_cache_file="configarg.cache" | |
1932 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1933 | rm -f ${wx_arg_cache_file}.tmp |
1934 | touch ${wx_arg_cache_file}.tmp | |
1935 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1936 | |
10f2d63a VZ |
1937 | |
1938 | DEBUG_CONFIGURE=0 | |
1939 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1940 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1941 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1942 | |
d8356fa3 VZ |
1943 | DEFAULT_wxUSE_NANOX=no |
1944 | ||
10f2d63a VZ |
1945 | DEFAULT_wxUSE_THREADS=yes |
1946 | ||
1947 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1948 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1949 | DEFAULT_wxUSE_PROFILE=no |
1950 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1951 | DEFAULT_wxUSE_NO_RTTI=no |
1952 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1953 | DEFAULT_wxUSE_PERMISSIVE=no |
1954 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1955 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1956 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1957 | DEFAULT_wxUSE_MEM_TRACING=no | |
1958 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1959 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1960 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1961 | DEFAULT_wxUSE_APPLE_IEEE=no |
1962 | ||
1963 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1964 | DEFAULT_wxUSE_LOGWINDOW=no |
1965 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1966 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1967 | |
1968 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1969 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1970 | |
3e44f09d | 1971 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1972 | DEFAULT_wxUSE_ZLIB=no |
1973 | DEFAULT_wxUSE_LIBPNG=no | |
1974 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1975 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1976 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1977 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1978 | |
eb4efbdc | 1979 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1980 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1981 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1982 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1983 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1984 | DEFAULT_wxUSE_TIMER=no |
1985 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1986 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1987 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1988 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1989 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1990 | DEFAULT_wxUSE_WAVE=no |
1991 | DEFAULT_wxUSE_INTL=no | |
1992 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1993 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1994 | DEFAULT_wxUSE_STREAMS=no |
1995 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1996 | DEFAULT_wxUSE_OLE=no |
1997 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1998 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1999 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2000 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2001 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2002 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2003 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2004 | |
2005 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2006 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2007 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2008 | ||
10f2d63a VZ |
2009 | DEFAULT_wxUSE_CLIPBOARD=no |
2010 | DEFAULT_wxUSE_TOOLTIPS=no | |
2011 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2012 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2013 | DEFAULT_wxUSE_SPLINES=no |
2014 | ||
2015 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2016 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2017 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2018 | ||
10f2d63a VZ |
2019 | DEFAULT_wxUSE_RESOURCES=no |
2020 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2021 | DEFAULT_wxUSE_IPC=no | |
2022 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2023 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2024 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2025 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2026 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2027 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2028 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2029 | DEFAULT_wxUSE_PROTOCOL=no | |
2030 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2031 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2032 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2033 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2034 | |
10f2d63a | 2035 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2036 | DEFAULT_wxUSE_CHOICEDLG=no |
2037 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2038 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2039 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2040 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2041 | DEFAULT_wxUSE_FONTDLG=no |
2042 | DEFAULT_wxUSE_MSGDLG=no | |
2043 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2044 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2045 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2046 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2047 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2048 | DEFAULT_wxUSE_WIZARDDLG=no |
2049 | ||
1e6feb95 | 2050 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2051 | DEFAULT_wxUSE_MINIFRAME=no |
2052 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2053 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2054 | DEFAULT_wxUSE_FS_INET=no |
2055 | DEFAULT_wxUSE_FS_ZIP=no | |
2056 | DEFAULT_wxUSE_BUSYINFO=no | |
2057 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2058 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2059 | |
2060 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2061 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2062 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2063 | DEFAULT_wxUSE_CALCTRL=no |
2064 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2065 | DEFAULT_wxUSE_CHECKBOX=no |
2066 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2067 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2068 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2069 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2070 | DEFAULT_wxUSE_GAUGE=no |
2071 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2072 | DEFAULT_wxUSE_IMAGLIST=no |
2073 | DEFAULT_wxUSE_LISTBOX=no | |
2074 | DEFAULT_wxUSE_LISTCTRL=no | |
2075 | DEFAULT_wxUSE_NOTEBOOK=no | |
2076 | DEFAULT_wxUSE_RADIOBOX=no | |
2077 | DEFAULT_wxUSE_RADIOBTN=no | |
2078 | DEFAULT_wxUSE_SASH=no | |
2079 | DEFAULT_wxUSE_SCROLLBAR=no | |
2080 | DEFAULT_wxUSE_SLIDER=no | |
2081 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2082 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2083 | DEFAULT_wxUSE_SPLITTER=no |
2084 | DEFAULT_wxUSE_STATBMP=no | |
2085 | DEFAULT_wxUSE_STATBOX=no | |
2086 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2087 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2088 | DEFAULT_wxUSE_STATUSBAR=yes |
2089 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2090 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2091 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2092 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2093 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2094 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2095 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2096 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2097 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2098 | |
2099 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2100 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2101 | DEFAULT_wxUSE_WCSRTOMBS=no |
2102 | ||
edae8572 | 2103 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2104 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2105 | DEFAULT_wxUSE_GIF=no |
2106 | DEFAULT_wxUSE_PCX=no | |
2107 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2108 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2109 | DEFAULT_wxUSE_XPM=no |
658974ae | 2110 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2111 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d VS |
2112 | |
2113 | DEFAULT_wxUSE_MONOLITHIC=yes | |
10f2d63a | 2114 | else |
1e6feb95 | 2115 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2116 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2117 | |
d8356fa3 VZ |
2118 | DEFAULT_wxUSE_NANOX=no |
2119 | ||
10f2d63a VZ |
2120 | DEFAULT_wxUSE_THREADS=yes |
2121 | ||
2122 | DEFAULT_wxUSE_SHARED=yes | |
2123 | DEFAULT_wxUSE_OPTIMISE=yes | |
2124 | DEFAULT_wxUSE_PROFILE=no | |
2125 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2126 | DEFAULT_wxUSE_NO_RTTI=no |
2127 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2128 | DEFAULT_wxUSE_PERMISSIVE=no |
2129 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2130 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2131 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2132 | DEFAULT_wxUSE_MEM_TRACING=no | |
2133 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2134 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 2135 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
2136 | DEFAULT_wxUSE_APPLE_IEEE=yes |
2137 | ||
2138 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2139 | DEFAULT_wxUSE_LOGWINDOW=yes |
2140 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2141 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2142 | |
2143 | DEFAULT_wxUSE_GUI=yes | |
2144 | ||
831b3152 | 2145 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
2146 | DEFAULT_wxUSE_ZLIB=yes |
2147 | DEFAULT_wxUSE_LIBPNG=yes | |
2148 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2149 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2150 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2151 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2152 | |
eb4efbdc | 2153 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2154 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2155 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2156 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2157 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2158 | DEFAULT_wxUSE_TIMER=yes |
2159 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2160 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2161 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2162 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2163 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2164 | DEFAULT_wxUSE_WAVE=no |
2165 | DEFAULT_wxUSE_INTL=yes | |
2166 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2167 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2168 | DEFAULT_wxUSE_STREAMS=yes |
2169 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2170 | DEFAULT_wxUSE_OLE=yes |
2171 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2172 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2173 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2174 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2175 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2176 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2177 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2178 | |
2179 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2180 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2181 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2182 | ||
10f2d63a VZ |
2183 | DEFAULT_wxUSE_CLIPBOARD=yes |
2184 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2185 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2186 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2187 | DEFAULT_wxUSE_SPLINES=yes |
2188 | ||
2189 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2190 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2191 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2192 | ||
2b5f62a0 | 2193 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2194 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2195 | DEFAULT_wxUSE_IPC=yes | |
2196 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2197 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2198 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2199 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2200 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2201 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2202 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2203 | DEFAULT_wxUSE_PROTOCOL=yes |
2204 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2205 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2206 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2207 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2208 | |
2209 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2210 | DEFAULT_wxUSE_CHOICEDLG=yes |
2211 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2212 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2213 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2214 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2215 | DEFAULT_wxUSE_FONTDLG=yes |
2216 | DEFAULT_wxUSE_MSGDLG=yes | |
2217 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2218 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2219 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2220 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2221 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2222 | DEFAULT_wxUSE_WIZARDDLG=yes |
2223 | ||
1e6feb95 | 2224 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2225 | DEFAULT_wxUSE_MINIFRAME=yes |
2226 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2227 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2228 | DEFAULT_wxUSE_FS_INET=yes |
2229 | DEFAULT_wxUSE_FS_ZIP=yes | |
2230 | DEFAULT_wxUSE_BUSYINFO=yes | |
2231 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2232 | DEFAULT_wxUSE_VALIDATORS=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2235 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2236 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2237 | DEFAULT_wxUSE_CALCTRL=yes |
2238 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2239 | DEFAULT_wxUSE_CHECKBOX=yes |
2240 | DEFAULT_wxUSE_CHECKLST=yes | |
2241 | DEFAULT_wxUSE_CHOICE=yes | |
2242 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2243 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2244 | DEFAULT_wxUSE_GAUGE=yes |
2245 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2246 | DEFAULT_wxUSE_IMAGLIST=yes |
2247 | DEFAULT_wxUSE_LISTBOX=yes | |
2248 | DEFAULT_wxUSE_LISTCTRL=yes | |
2249 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2250 | DEFAULT_wxUSE_RADIOBOX=yes | |
2251 | DEFAULT_wxUSE_RADIOBTN=yes | |
2252 | DEFAULT_wxUSE_SASH=yes | |
2253 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2254 | DEFAULT_wxUSE_SLIDER=yes | |
2255 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2256 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2257 | DEFAULT_wxUSE_SPLITTER=yes |
2258 | DEFAULT_wxUSE_STATBMP=yes | |
2259 | DEFAULT_wxUSE_STATBOX=yes | |
2260 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2261 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2262 | DEFAULT_wxUSE_STATUSBAR=yes |
2263 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2264 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2265 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2266 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2267 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2268 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2269 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2270 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2271 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2272 | |
2273 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2274 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2275 | DEFAULT_wxUSE_WCSRTOMBS=no |
2276 | ||
edae8572 | 2277 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2278 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2279 | DEFAULT_wxUSE_GIF=yes |
2280 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2281 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2282 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2283 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2284 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2285 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d VS |
2286 | |
2287 | DEFAULT_wxUSE_MONOLITHIC=yes | |
10f2d63a VZ |
2288 | fi |
2289 | ||
8284b0c5 MB |
2290 | |
2291 | ||
10f2d63a | 2292 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2293 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2294 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2295 | has_toolkit_in_cache=1 |
2296 | eval "DEFAULT_$LINE" | |
2297 | eval "CACHE_$toolkit=1" | |
2298 | fi | |
2299 | done | |
2300 | ||
8284b0c5 MB |
2301 | |
2302 | ||
5005acfe | 2303 | enablestring= |
e6cc62c6 VS |
2304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2305 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2306 | no_cache=0 |
2307 | # Check whether --enable-gui or --disable-gui was given. | |
2308 | if test "${enable_gui+set}" = set; then | |
2309 | enableval="$enable_gui" | |
e6cc62c6 | 2310 | |
10f2d63a VZ |
2311 | if test "$enableval" = yes; then |
2312 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2313 | else | |
2314 | ac_cv_use_gui='wxUSE_GUI=no' | |
2315 | fi | |
e6cc62c6 | 2316 | |
10f2d63a | 2317 | else |
e6cc62c6 | 2318 | |
10f2d63a VZ |
2319 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2320 | if test "x$LINE" != x ; then | |
2321 | eval "DEFAULT_$LINE" | |
2322 | else | |
2323 | no_cache=1 | |
2324 | fi | |
2325 | ||
2326 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2327 | |
e6cc62c6 | 2328 | fi; |
10f2d63a VZ |
2329 | |
2330 | eval "$ac_cv_use_gui" | |
2331 | if test "$no_cache" != 1; then | |
2332 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2333 | fi | |
2334 | ||
2335 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2336 | echo "$as_me:$LINENO: result: yes" >&5 |
2337 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2338 | else |
e6cc62c6 VS |
2339 | echo "$as_me:$LINENO: result: no" >&5 |
2340 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2341 | fi |
e6cc62c6 | 2342 | |
10f2d63a | 2343 | |
9747f85d VS |
2344 | enablestring= |
2345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2346 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2347 | no_cache=0 | |
2348 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2349 | if test "${enable_monolithic+set}" = set; then | |
2350 | enableval="$enable_monolithic" | |
2351 | ||
2352 | if test "$enableval" = yes; then | |
2353 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2354 | else | |
2355 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2356 | fi | |
2357 | ||
2358 | else | |
2359 | ||
2360 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2361 | if test "x$LINE" != x ; then | |
2362 | eval "DEFAULT_$LINE" | |
2363 | else | |
2364 | no_cache=1 | |
2365 | fi | |
2366 | ||
2367 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2368 | ||
2369 | fi; | |
2370 | ||
2371 | eval "$ac_cv_use_monolithic" | |
2372 | if test "$no_cache" != 1; then | |
2373 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2374 | fi | |
2375 | ||
2376 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2377 | echo "$as_me:$LINENO: result: yes" >&5 | |
2378 | echo "${ECHO_T}yes" >&6 | |
2379 | else | |
2380 | echo "$as_me:$LINENO: result: no" >&5 | |
2381 | echo "${ECHO_T}no" >&6 | |
2382 | fi | |
2383 | ||
2384 | ||
b12915c1 | 2385 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2386 | |
8284b0c5 | 2387 | |
5005acfe | 2388 | enablestring= |
e6cc62c6 VS |
2389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2390 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2391 | no_cache=0 |
2392 | # Check whether --enable-universal or --disable-universal was given. | |
2393 | if test "${enable_universal+set}" = set; then | |
2394 | enableval="$enable_universal" | |
e6cc62c6 | 2395 | |
1e6feb95 VZ |
2396 | if test "$enableval" = yes; then |
2397 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2398 | else | |
2399 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2400 | fi | |
e6cc62c6 | 2401 | |
1e6feb95 | 2402 | else |
e6cc62c6 | 2403 | |
1e6feb95 VZ |
2404 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2405 | if test "x$LINE" != x ; then | |
2406 | eval "DEFAULT_$LINE" | |
2407 | else | |
2408 | no_cache=1 | |
2409 | fi | |
2410 | ||
2411 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2412 | |
e6cc62c6 | 2413 | fi; |
1e6feb95 VZ |
2414 | |
2415 | eval "$ac_cv_use_universal" | |
2416 | if test "$no_cache" != 1; then | |
2417 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2418 | fi | |
2419 | ||
2420 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2421 | echo "$as_me:$LINENO: result: yes" >&5 |
2422 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2423 | else |
e6cc62c6 VS |
2424 | echo "$as_me:$LINENO: result: no" >&5 |
2425 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2426 | fi |
e6cc62c6 VS |
2427 | |
2428 | ||
10f2d63a VZ |
2429 | # Check whether --with-gtk or --without-gtk was given. |
2430 | if test "${with_gtk+set}" = set; then | |
2431 | withval="$with_gtk" | |
2432 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2433 | fi; |
10f2d63a VZ |
2434 | |
2435 | # Check whether --with-motif or --without-motif was given. | |
2436 | if test "${with_motif+set}" = set; then | |
2437 | withval="$with_motif" | |
2438 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2439 | fi; |
10f2d63a | 2440 | |
b4085ce6 GD |
2441 | # Check whether --with-mac or --without-mac was given. |
2442 | if test "${with_mac+set}" = set; then | |
2443 | withval="$with_mac" | |
2444 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2445 | fi; |
b4085ce6 | 2446 | |
ac0c4cc3 DE |
2447 | # Check whether --with-cocoa or --without-cocoa was given. |
2448 | if test "${with_cocoa+set}" = set; then | |
2449 | withval="$with_cocoa" | |
2450 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2451 | fi; |
ac0c4cc3 | 2452 | |
10f2d63a VZ |
2453 | # Check whether --with-wine or --without-wine was given. |
2454 | if test "${with_wine+set}" = set; then | |
2455 | withval="$with_wine" | |
89e6bf6d | 2456 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2457 | fi; |
10f2d63a | 2458 | |
77e13408 RL |
2459 | # Check whether --with-msw or --without-msw was given. |
2460 | if test "${with_msw+set}" = set; then | |
2461 | withval="$with_msw" | |
b4efce5e | 2462 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2463 | fi; |
10f2d63a | 2464 | |
e07802fc VZ |
2465 | # Check whether --with-pm or --without-pm was given. |
2466 | if test "${with_pm+set}" = set; then | |
2467 | withval="$with_pm" | |
2468 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2469 | fi; |
698dcdb6 | 2470 | |
1e6feb95 VZ |
2471 | # Check whether --with-mgl or --without-mgl was given. |
2472 | if test "${with_mgl+set}" = set; then | |
2473 | withval="$with_mgl" | |
6c657b52 | 2474 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2475 | fi; |
1e6feb95 | 2476 | |
1725144d RR |
2477 | # Check whether --with-microwin or --without-microwin was given. |
2478 | if test "${with_microwin+set}" = set; then | |
2479 | withval="$with_microwin" | |
2480 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2481 | fi; |
1725144d | 2482 | |
f79bd02d JS |
2483 | # Check whether --with-x11 or --without-x11 was given. |
2484 | if test "${with_x11+set}" = set; then | |
2485 | withval="$with_x11" | |
3c011993 | 2486 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2487 | fi; |
a0b9e27f | 2488 | |
5005acfe | 2489 | enablestring= |
e6cc62c6 VS |
2490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2491 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2492 | no_cache=0 |
ba875e66 VZ |
2493 | # Check whether --enable-nanox or --disable-nanox was given. |
2494 | if test "${enable_nanox+set}" = set; then | |
2495 | enableval="$enable_nanox" | |
e6cc62c6 | 2496 | |
d8356fa3 | 2497 | if test "$enableval" = yes; then |
ba875e66 | 2498 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2499 | else |
ba875e66 | 2500 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2501 | fi |
e6cc62c6 | 2502 | |
d8356fa3 | 2503 | else |
e6cc62c6 | 2504 | |
d8356fa3 VZ |
2505 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2506 | if test "x$LINE" != x ; then | |
2507 | eval "DEFAULT_$LINE" | |
2508 | else | |
2509 | no_cache=1 | |
2510 | fi | |
2511 | ||
ba875e66 | 2512 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2513 | |
e6cc62c6 | 2514 | fi; |
d8356fa3 | 2515 | |
ba875e66 | 2516 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2517 | if test "$no_cache" != 1; then |
ba875e66 | 2518 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2519 | fi |
2520 | ||
2521 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2522 | echo "$as_me:$LINENO: result: yes" >&5 |
2523 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2524 | else |
e6cc62c6 VS |
2525 | echo "$as_me:$LINENO: result: no" >&5 |
2526 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2527 | fi |
e6cc62c6 | 2528 | |
8284b0c5 | 2529 | |
d74f4b5a | 2530 | |
5005acfe | 2531 | enablestring= |
e6cc62c6 VS |
2532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2533 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2534 | no_cache=0 |
2535 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2536 | if test "${enable_gtk2+set}" = set; then |
2537 | enableval="$enable_gtk2" | |
e6cc62c6 | 2538 | |
d74f4b5a VZ |
2539 | if test "$enableval" = yes; then |
2540 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2541 | else | |
2542 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2543 | fi | |
e6cc62c6 | 2544 | |
10f2d63a | 2545 | else |
e6cc62c6 | 2546 | |
d74f4b5a VZ |
2547 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2548 | if test "x$LINE" != x ; then | |
2549 | eval "DEFAULT_$LINE" | |
2550 | else | |
2551 | no_cache=1 | |
2552 | fi | |
2553 | ||
2554 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2555 | |
e6cc62c6 | 2556 | fi; |
328a083c | 2557 | |
d74f4b5a VZ |
2558 | eval "$ac_cv_use_gtk2" |
2559 | if test "$no_cache" != 1; then | |
2560 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2561 | fi | |
2562 | ||
2563 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2564 | echo "$as_me:$LINENO: result: yes" >&5 |
2565 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2566 | else |
e6cc62c6 VS |
2567 | echo "$as_me:$LINENO: result: no" >&5 |
2568 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2569 | fi |
d74f4b5a | 2570 | |
5c6fa7d2 | 2571 | |
e6cc62c6 VS |
2572 | |
2573 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2574 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2575 | no_cache=0 |
e6cc62c6 VS |
2576 | |
2577 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2578 | if test "${with_libpng+set}" = set; then |
2579 | withval="$with_libpng" | |
e6cc62c6 | 2580 | |
10f2d63a | 2581 | if test "$withval" = yes; then |
b12915c1 | 2582 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2583 | elif test "$withval" = no; then |
b12915c1 | 2584 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2585 | elif test "$withval" = sys; then |
2586 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2587 | elif test "$withval" = builtin; then |
2588 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2589 | else |
e6cc62c6 VS |
2590 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2591 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2592 | { (exit 1); exit 1; }; } | |
10f2d63a | 2593 | fi |
e6cc62c6 | 2594 | |
10f2d63a | 2595 | else |
e6cc62c6 | 2596 | |
b12915c1 | 2597 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2598 | if test "x$LINE" != x ; then |
2599 | eval "DEFAULT_$LINE" | |
2600 | else | |
2601 | no_cache=1 | |
2602 | fi | |
2603 | ||
b12915c1 | 2604 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2605 | |
e6cc62c6 | 2606 | fi; |
10f2d63a | 2607 | |
b12915c1 | 2608 | eval "$ac_cv_use_libpng" |
10f2d63a | 2609 | if test "$no_cache" != 1; then |
b12915c1 | 2610 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2611 | fi |
2612 | ||
b12915c1 | 2613 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2614 | echo "$as_me:$LINENO: result: yes" >&5 |
2615 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2616 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2617 | echo "$as_me:$LINENO: result: no" >&5 |
2618 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2619 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2620 | echo "$as_me:$LINENO: result: system version" >&5 |
2621 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2622 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2623 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2624 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2625 | else |
e6cc62c6 VS |
2626 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2627 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2628 | { (exit 1); exit 1; }; } | |
10f2d63a | 2629 | fi |
10f2d63a | 2630 | |
e6cc62c6 VS |
2631 | |
2632 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2633 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2634 | no_cache=0 |
e6cc62c6 VS |
2635 | |
2636 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2637 | if test "${with_libjpeg+set}" = set; then |
2638 | withval="$with_libjpeg" | |
e6cc62c6 | 2639 | |
10f2d63a | 2640 | if test "$withval" = yes; then |
b12915c1 | 2641 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2642 | elif test "$withval" = no; then |
b12915c1 | 2643 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2644 | elif test "$withval" = sys; then |
2645 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2646 | elif test "$withval" = builtin; then |
2647 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2648 | else |
e6cc62c6 VS |
2649 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2650 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2651 | { (exit 1); exit 1; }; } | |
10f2d63a | 2652 | fi |
e6cc62c6 | 2653 | |
10f2d63a | 2654 | else |
e6cc62c6 | 2655 | |
b12915c1 | 2656 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2657 | if test "x$LINE" != x ; then |
2658 | eval "DEFAULT_$LINE" | |
2659 | else | |
2660 | no_cache=1 | |
2661 | fi | |
2662 | ||
b12915c1 | 2663 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2664 | |
e6cc62c6 | 2665 | fi; |
10f2d63a | 2666 | |
b12915c1 | 2667 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2668 | if test "$no_cache" != 1; then |
b12915c1 | 2669 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2670 | fi |
2671 | ||
b12915c1 | 2672 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2673 | echo "$as_me:$LINENO: result: yes" >&5 |
2674 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2675 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2676 | echo "$as_me:$LINENO: result: no" >&5 |
2677 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2678 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2679 | echo "$as_me:$LINENO: result: system version" >&5 |
2680 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2681 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2682 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2683 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2684 | else |
e6cc62c6 VS |
2685 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2686 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2687 | { (exit 1); exit 1; }; } | |
10f2d63a | 2688 | fi |
10f2d63a | 2689 | |
e6cc62c6 VS |
2690 | |
2691 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2692 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2693 | no_cache=0 |
e6cc62c6 VS |
2694 | |
2695 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2696 | if test "${with_libtiff+set}" = set; then |
2697 | withval="$with_libtiff" | |
e6cc62c6 | 2698 | |
10f2d63a | 2699 | if test "$withval" = yes; then |
b12915c1 | 2700 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2701 | elif test "$withval" = no; then |
b12915c1 | 2702 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2703 | elif test "$withval" = sys; then |
2704 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2705 | elif test "$withval" = builtin; then |
2706 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2707 | else |
e6cc62c6 VS |
2708 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2709 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2710 | { (exit 1); exit 1; }; } | |
10f2d63a | 2711 | fi |
e6cc62c6 | 2712 | |
10f2d63a | 2713 | else |
e6cc62c6 | 2714 | |
b12915c1 | 2715 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2716 | if test "x$LINE" != x ; then |
2717 | eval "DEFAULT_$LINE" | |
2718 | else | |
2719 | no_cache=1 | |
2720 | fi | |
2721 | ||
b12915c1 | 2722 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2723 | |
e6cc62c6 | 2724 | fi; |
10f2d63a | 2725 | |
b12915c1 | 2726 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2727 | if test "$no_cache" != 1; then |
b12915c1 | 2728 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2729 | fi |
2730 | ||
b12915c1 | 2731 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2732 | echo "$as_me:$LINENO: result: yes" >&5 |
2733 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2734 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2735 | echo "$as_me:$LINENO: result: no" >&5 |
2736 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2737 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2738 | echo "$as_me:$LINENO: result: system version" >&5 |
2739 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2740 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2741 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2742 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2743 | else |
e6cc62c6 VS |
2744 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2745 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2746 | { (exit 1); exit 1; }; } | |
10f2d63a | 2747 | fi |
10f2d63a | 2748 | |
e6cc62c6 VS |
2749 | |
2750 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2751 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2752 | no_cache=0 |
e6cc62c6 VS |
2753 | |
2754 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2755 | if test "${with_opengl+set}" = set; then |
2756 | withval="$with_opengl" | |
e6cc62c6 | 2757 | |
10f2d63a | 2758 | if test "$withval" = yes; then |
b12915c1 | 2759 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2760 | else |
b12915c1 | 2761 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2762 | fi |
e6cc62c6 | 2763 | |
10f2d63a | 2764 | else |
e6cc62c6 | 2765 | |
b12915c1 | 2766 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2767 | if test "x$LINE" != x ; then |
2768 | eval "DEFAULT_$LINE" | |
2769 | else | |
2770 | no_cache=1 | |
2771 | fi | |
2772 | ||
b12915c1 | 2773 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2774 | |
e6cc62c6 | 2775 | fi; |
10f2d63a | 2776 | |
b12915c1 | 2777 | eval "$ac_cv_use_opengl" |
10f2d63a | 2778 | if test "$no_cache" != 1; then |
b12915c1 | 2779 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2780 | fi |
2781 | ||
b12915c1 | 2782 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2783 | echo "$as_me:$LINENO: result: yes" >&5 |
2784 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2785 | else |
e6cc62c6 VS |
2786 | echo "$as_me:$LINENO: result: no" >&5 |
2787 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2788 | fi |
e6cc62c6 | 2789 | |
10f2d63a | 2790 | |
b12915c1 VZ |
2791 | fi |
2792 | ||
5c6fa7d2 | 2793 | |
e6cc62c6 VS |
2794 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2795 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2796 | no_cache=0 |
e6cc62c6 VS |
2797 | |
2798 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2799 | if test "${with_dmalloc+set}" = set; then |
2800 | withval="$with_dmalloc" | |
e6cc62c6 | 2801 | |
c7a2bf27 | 2802 | if test "$withval" = yes; then |
b12915c1 | 2803 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2804 | else |
b12915c1 | 2805 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2806 | fi |
e6cc62c6 | 2807 | |
c7a2bf27 | 2808 | else |
e6cc62c6 | 2809 | |
b12915c1 | 2810 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2811 | if test "x$LINE" != x ; then |
2812 | eval "DEFAULT_$LINE" | |
2813 | else | |
2814 | no_cache=1 | |
2815 | fi | |
2816 | ||
b12915c1 | 2817 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2818 | |
e6cc62c6 | 2819 | fi; |
c7a2bf27 | 2820 | |
b12915c1 | 2821 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2822 | if test "$no_cache" != 1; then |
b12915c1 | 2823 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2824 | fi |
2825 | ||
b12915c1 | 2826 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2827 | echo "$as_me:$LINENO: result: yes" >&5 |
2828 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2829 | else |
e6cc62c6 VS |
2830 | echo "$as_me:$LINENO: result: no" >&5 |
2831 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2832 | fi |
c7a2bf27 | 2833 | |
e6cc62c6 VS |
2834 | |
2835 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2836 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2837 | no_cache=0 |
e6cc62c6 VS |
2838 | |
2839 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2840 | if test "${with_regex+set}" = set; then |
2841 | withval="$with_regex" | |
e6cc62c6 | 2842 | |
3e44f09d VZ |
2843 | if test "$withval" = yes; then |
2844 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2845 | elif test "$withval" = no; then | |
2846 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2847 | elif test "$withval" = sys; then | |
2848 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2849 | elif test "$withval" = builtin; then |
2850 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2851 | else |
e6cc62c6 VS |
2852 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2853 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2854 | { (exit 1); exit 1; }; } | |
3e44f09d | 2855 | fi |
e6cc62c6 | 2856 | |
3e44f09d | 2857 | else |
e6cc62c6 | 2858 | |
3e44f09d VZ |
2859 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2860 | if test "x$LINE" != x ; then | |
2861 | eval "DEFAULT_$LINE" | |
2862 | else | |
2863 | no_cache=1 | |
2864 | fi | |
2865 | ||
2866 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2867 | |
e6cc62c6 | 2868 | fi; |
3e44f09d VZ |
2869 | |
2870 | eval "$ac_cv_use_regex" | |
2871 | if test "$no_cache" != 1; then | |
2872 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2873 | fi | |
2874 | ||
2875 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2876 | echo "$as_me:$LINENO: result: yes" >&5 |
2877 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2878 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2879 | echo "$as_me:$LINENO: result: no" >&5 |
2880 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2881 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2882 | echo "$as_me:$LINENO: result: system version" >&5 |
2883 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2884 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2885 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2886 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2887 | else |
e6cc62c6 VS |
2888 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2889 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2890 | { (exit 1); exit 1; }; } | |
3e44f09d | 2891 | fi |
3e44f09d | 2892 | |
e6cc62c6 VS |
2893 | |
2894 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2895 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2896 | no_cache=0 |
e6cc62c6 VS |
2897 | |
2898 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2899 | if test "${with_zlib+set}" = set; then |
2900 | withval="$with_zlib" | |
e6cc62c6 | 2901 | |
10f2d63a | 2902 | if test "$withval" = yes; then |
b12915c1 | 2903 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2904 | elif test "$withval" = no; then |
b12915c1 | 2905 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2906 | elif test "$withval" = sys; then |
2907 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2908 | elif test "$withval" = builtin; then |
2909 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2910 | else |
e6cc62c6 VS |
2911 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2912 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2913 | { (exit 1); exit 1; }; } | |
10f2d63a | 2914 | fi |
e6cc62c6 | 2915 | |
10f2d63a | 2916 | else |
e6cc62c6 | 2917 | |
b12915c1 | 2918 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2919 | if test "x$LINE" != x ; then |
2920 | eval "DEFAULT_$LINE" | |
2921 | else | |
2922 | no_cache=1 | |
2923 | fi | |
2924 | ||
b12915c1 | 2925 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2926 | |
e6cc62c6 | 2927 | fi; |
10f2d63a | 2928 | |
b12915c1 | 2929 | eval "$ac_cv_use_zlib" |
10f2d63a | 2930 | if test "$no_cache" != 1; then |
b12915c1 | 2931 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2932 | fi |
2933 | ||
b12915c1 | 2934 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2935 | echo "$as_me:$LINENO: result: yes" >&5 |
2936 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2937 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2938 | echo "$as_me:$LINENO: result: no" >&5 |
2939 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2940 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2941 | echo "$as_me:$LINENO: result: system version" >&5 |
2942 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2943 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2944 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2945 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2946 | else |
e6cc62c6 VS |
2947 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2948 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2949 | { (exit 1); exit 1; }; } | |
10f2d63a | 2950 | fi |
10f2d63a | 2951 | |
e6cc62c6 VS |
2952 | |
2953 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2954 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2955 | no_cache=0 |
e6cc62c6 VS |
2956 | |
2957 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2958 | if test "${with_odbc+set}" = set; then |
2959 | withval="$with_odbc" | |
e6cc62c6 | 2960 | |
10f2d63a VZ |
2961 | if test "$withval" = yes; then |
2962 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2963 | elif test "$withval" = no; then |
10f2d63a | 2964 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2965 | elif test "$withval" = sys; then |
2966 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2967 | elif test "$withval" = builtin; then | |
2968 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2969 | else | |
e6cc62c6 VS |
2970 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2971 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2972 | { (exit 1); exit 1; }; } | |
10f2d63a | 2973 | fi |
e6cc62c6 | 2974 | |
10f2d63a | 2975 | else |
e6cc62c6 | 2976 | |
10f2d63a VZ |
2977 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2978 | if test "x$LINE" != x ; then | |
2979 | eval "DEFAULT_$LINE" | |
2980 | else | |
2981 | no_cache=1 | |
2982 | fi | |
2983 | ||
2984 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2985 | |
e6cc62c6 | 2986 | fi; |
10f2d63a VZ |
2987 | |
2988 | eval "$ac_cv_use_odbc" | |
2989 | if test "$no_cache" != 1; then | |
2990 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2991 | fi | |
2992 | ||
2993 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
2994 | echo "$as_me:$LINENO: result: yes" >&5 |
2995 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 2996 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
2997 | echo "$as_me:$LINENO: result: no" >&5 |
2998 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 2999 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3000 | echo "$as_me:$LINENO: result: system version" >&5 |
3001 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3002 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3003 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3004 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3005 | else |
e6cc62c6 VS |
3006 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3007 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3008 | { (exit 1); exit 1; }; } | |
10f2d63a | 3009 | fi |
e6cc62c6 | 3010 | |
52127426 | 3011 | |
8284b0c5 MB |
3012 | |
3013 | ||
5005acfe | 3014 | enablestring= |
e6cc62c6 VS |
3015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3016 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3017 | no_cache=0 |
3018 | # Check whether --enable-shared or --disable-shared was given. | |
3019 | if test "${enable_shared+set}" = set; then | |
3020 | enableval="$enable_shared" | |
e6cc62c6 | 3021 | |
10f2d63a VZ |
3022 | if test "$enableval" = yes; then |
3023 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3024 | else | |
3025 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3026 | fi | |
e6cc62c6 | 3027 | |
10f2d63a | 3028 | else |
e6cc62c6 | 3029 | |
10f2d63a VZ |
3030 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3031 | if test "x$LINE" != x ; then | |
3032 | eval "DEFAULT_$LINE" | |
3033 | else | |
3034 | no_cache=1 | |
3035 | fi | |
3036 | ||
3037 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3038 | |
e6cc62c6 | 3039 | fi; |
10f2d63a VZ |
3040 | |
3041 | eval "$ac_cv_use_shared" | |
3042 | if test "$no_cache" != 1; then | |
3043 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3044 | fi | |
3045 | ||
3046 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3047 | echo "$as_me:$LINENO: result: yes" >&5 |
3048 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3049 | else |
e6cc62c6 VS |
3050 | echo "$as_me:$LINENO: result: no" >&5 |
3051 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3052 | fi |
e6cc62c6 | 3053 | |
10f2d63a | 3054 | |
5005acfe | 3055 | enablestring= |
e6cc62c6 VS |
3056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3057 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3058 | no_cache=0 |
3059 | # Check whether --enable-optimise or --disable-optimise was given. | |
3060 | if test "${enable_optimise+set}" = set; then | |
3061 | enableval="$enable_optimise" | |
e6cc62c6 | 3062 | |
10f2d63a VZ |
3063 | if test "$enableval" = yes; then |
3064 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3065 | else | |
3066 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3067 | fi | |
e6cc62c6 | 3068 | |
10f2d63a | 3069 | else |
e6cc62c6 | 3070 | |
10f2d63a VZ |
3071 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3072 | if test "x$LINE" != x ; then | |
3073 | eval "DEFAULT_$LINE" | |
3074 | else | |
3075 | no_cache=1 | |
3076 | fi | |
3077 | ||
3078 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3079 | |
e6cc62c6 | 3080 | fi; |
10f2d63a VZ |
3081 | |
3082 | eval "$ac_cv_use_optimise" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3088 | echo "$as_me:$LINENO: result: yes" >&5 |
3089 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3090 | else |
e6cc62c6 VS |
3091 | echo "$as_me:$LINENO: result: no" >&5 |
3092 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3093 | fi |
e6cc62c6 | 3094 | |
10f2d63a | 3095 | |
5005acfe | 3096 | enablestring= |
e6cc62c6 VS |
3097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3098 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3099 | no_cache=0 |
3100 | # Check whether --enable-debug or --disable-debug was given. | |
3101 | if test "${enable_debug+set}" = set; then | |
3102 | enableval="$enable_debug" | |
e6cc62c6 | 3103 | |
10f2d63a VZ |
3104 | if test "$enableval" = yes; then |
3105 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3106 | else | |
3107 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3108 | fi | |
e6cc62c6 | 3109 | |
10f2d63a | 3110 | else |
e6cc62c6 | 3111 | |
10f2d63a VZ |
3112 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3113 | if test "x$LINE" != x ; then | |
3114 | eval "DEFAULT_$LINE" | |
3115 | else | |
3116 | no_cache=1 | |
3117 | fi | |
3118 | ||
3119 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3120 | |
e6cc62c6 | 3121 | fi; |
10f2d63a VZ |
3122 | |
3123 | eval "$ac_cv_use_debug" | |
3124 | if test "$no_cache" != 1; then | |
3125 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3126 | fi | |
3127 | ||
3128 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3129 | echo "$as_me:$LINENO: result: yes" >&5 |
3130 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3131 | else |
e6cc62c6 VS |
3132 | echo "$as_me:$LINENO: result: no" >&5 |
3133 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3134 | fi |
e6cc62c6 | 3135 | |
52127426 | 3136 | |
df5168c4 MB |
3137 | enablestring= |
3138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3139 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3140 | no_cache=0 | |
3141 | # Check whether --enable-stl or --disable-stl was given. | |
3142 | if test "${enable_stl+set}" = set; then | |
3143 | enableval="$enable_stl" | |
3144 | ||
3145 | if test "$enableval" = yes; then | |
3146 | ac_cv_use_stl='wxUSE_STL=yes' | |
3147 | else | |
3148 | ac_cv_use_stl='wxUSE_STL=no' | |
3149 | fi | |
3150 | ||
3151 | else | |
3152 | ||
3153 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3154 | if test "x$LINE" != x ; then | |
3155 | eval "DEFAULT_$LINE" | |
3156 | else | |
3157 | no_cache=1 | |
3158 | fi | |
3159 | ||
3160 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3161 | ||
3162 | fi; | |
3163 | ||
3164 | eval "$ac_cv_use_stl" | |
3165 | if test "$no_cache" != 1; then | |
3166 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3167 | fi | |
3168 | ||
3169 | if test "$wxUSE_STL" = yes; then | |
3170 | echo "$as_me:$LINENO: result: yes" >&5 | |
3171 | echo "${ECHO_T}yes" >&6 | |
3172 | else | |
3173 | echo "$as_me:$LINENO: result: no" >&5 | |
3174 | echo "${ECHO_T}no" >&6 | |
3175 | fi | |
3176 | ||
3177 | ||
8284b0c5 | 3178 | |
5005acfe | 3179 | enablestring= |
e6cc62c6 VS |
3180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5 |
3181 | echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6 | |
683dccda GD |
3182 | no_cache=0 |
3183 | # Check whether --enable-precomp or --disable-precomp was given. | |
3184 | if test "${enable_precomp+set}" = set; then | |
3185 | enableval="$enable_precomp" | |
e6cc62c6 | 3186 | |
683dccda GD |
3187 | if test "$enableval" = yes; then |
3188 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
3189 | else | |
3190 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
3191 | fi | |
e6cc62c6 | 3192 | |
683dccda | 3193 | else |
e6cc62c6 | 3194 | |
683dccda GD |
3195 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
3196 | if test "x$LINE" != x ; then | |
3197 | eval "DEFAULT_$LINE" | |
3198 | else | |
3199 | no_cache=1 | |
3200 | fi | |
3201 | ||
3202 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
683dccda | 3203 | |
e6cc62c6 | 3204 | fi; |
683dccda GD |
3205 | |
3206 | eval "$ac_cv_use_precomp" | |
3207 | if test "$no_cache" != 1; then | |
3208 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
3209 | fi | |
3210 | ||
3211 | if test "$wxUSE_PRECOMP" = yes; then | |
e6cc62c6 VS |
3212 | echo "$as_me:$LINENO: result: yes" >&5 |
3213 | echo "${ECHO_T}yes" >&6 | |
683dccda | 3214 | else |
e6cc62c6 VS |
3215 | echo "$as_me:$LINENO: result: no" >&5 |
3216 | echo "${ECHO_T}no" >&6 | |
683dccda | 3217 | fi |
e6cc62c6 | 3218 | |
683dccda | 3219 | |
10f2d63a VZ |
3220 | if test "$wxUSE_DEBUG" = "yes"; then |
3221 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3222 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3223 | elif test "$wxUSE_DEBUG" = "no"; then | |
3224 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3225 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3226 | fi | |
3227 | ||
8284b0c5 | 3228 | |
5005acfe | 3229 | enablestring= |
e6cc62c6 VS |
3230 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3231 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3232 | no_cache=0 |
3233 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3234 | if test "${enable_debug_flag+set}" = set; then | |
3235 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3236 | |
10f2d63a VZ |
3237 | if test "$enableval" = yes; then |
3238 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3239 | else | |
3240 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3241 | fi | |
e6cc62c6 | 3242 | |
10f2d63a | 3243 | else |
e6cc62c6 | 3244 | |
10f2d63a VZ |
3245 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3246 | if test "x$LINE" != x ; then | |
3247 | eval "DEFAULT_$LINE" | |
3248 | else | |
3249 | no_cache=1 | |
3250 | fi | |
3251 | ||
3252 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3253 | |
e6cc62c6 | 3254 | fi; |
10f2d63a VZ |
3255 | |
3256 | eval "$ac_cv_use_debug_flag" | |
3257 | if test "$no_cache" != 1; then | |
3258 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3259 | fi | |
3260 | ||
3261 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3262 | echo "$as_me:$LINENO: result: yes" >&5 |
3263 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3264 | else |
e6cc62c6 VS |
3265 | echo "$as_me:$LINENO: result: no" >&5 |
3266 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3267 | fi |
e6cc62c6 | 3268 | |
10f2d63a | 3269 | |
5005acfe | 3270 | enablestring= |
e6cc62c6 VS |
3271 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3272 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3273 | no_cache=0 |
3274 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3275 | if test "${enable_debug_info+set}" = set; then | |
3276 | enableval="$enable_debug_info" | |
e6cc62c6 | 3277 | |
10f2d63a VZ |
3278 | if test "$enableval" = yes; then |
3279 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3280 | else | |
3281 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3282 | fi | |
e6cc62c6 | 3283 | |
10f2d63a | 3284 | else |
e6cc62c6 | 3285 | |
10f2d63a VZ |
3286 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3287 | if test "x$LINE" != x ; then | |
3288 | eval "DEFAULT_$LINE" | |
3289 | else | |
3290 | no_cache=1 | |
3291 | fi | |
3292 | ||
3293 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3294 | |
e6cc62c6 | 3295 | fi; |
10f2d63a VZ |
3296 | |
3297 | eval "$ac_cv_use_debug_info" | |
3298 | if test "$no_cache" != 1; then | |
3299 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3300 | fi | |
3301 | ||
3302 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3303 | echo "$as_me:$LINENO: result: yes" >&5 |
3304 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3305 | else |
e6cc62c6 VS |
3306 | echo "$as_me:$LINENO: result: no" >&5 |
3307 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3308 | fi |
e6cc62c6 | 3309 | |
10f2d63a | 3310 | |
5005acfe | 3311 | enablestring= |
e6cc62c6 VS |
3312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3313 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3314 | no_cache=0 |
3315 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3316 | if test "${enable_debug_gdb+set}" = set; then | |
3317 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3318 | |
10f2d63a VZ |
3319 | if test "$enableval" = yes; then |
3320 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3321 | else | |
3322 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3323 | fi | |
e6cc62c6 | 3324 | |
10f2d63a | 3325 | else |
e6cc62c6 | 3326 | |
10f2d63a VZ |
3327 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3328 | if test "x$LINE" != x ; then | |
3329 | eval "DEFAULT_$LINE" | |
3330 | else | |
3331 | no_cache=1 | |
3332 | fi | |
3333 | ||
3334 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3335 | |
e6cc62c6 | 3336 | fi; |
10f2d63a VZ |
3337 | |
3338 | eval "$ac_cv_use_debug_gdb" | |
3339 | if test "$no_cache" != 1; then | |
3340 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3341 | fi | |
3342 | ||
3343 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3344 | echo "$as_me:$LINENO: result: yes" >&5 |
3345 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3346 | else |
e6cc62c6 VS |
3347 | echo "$as_me:$LINENO: result: no" >&5 |
3348 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3349 | fi |
e6cc62c6 | 3350 | |
10f2d63a | 3351 | |
5005acfe | 3352 | enablestring= |
e6cc62c6 VS |
3353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3354 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3355 | no_cache=0 |
3356 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3357 | if test "${enable_debug_cntxt+set}" = set; then | |
3358 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3359 | |
10f2d63a VZ |
3360 | if test "$enableval" = yes; then |
3361 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3362 | else | |
3363 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3364 | fi | |
e6cc62c6 | 3365 | |
10f2d63a | 3366 | else |
e6cc62c6 | 3367 | |
10f2d63a VZ |
3368 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3369 | if test "x$LINE" != x ; then | |
3370 | eval "DEFAULT_$LINE" | |
3371 | else | |
3372 | no_cache=1 | |
3373 | fi | |
3374 | ||
3375 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3376 | |
e6cc62c6 | 3377 | fi; |
10f2d63a VZ |
3378 | |
3379 | eval "$ac_cv_use_debug_cntxt" | |
3380 | if test "$no_cache" != 1; then | |
3381 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3382 | fi | |
3383 | ||
3384 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3385 | echo "$as_me:$LINENO: result: yes" >&5 |
3386 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3387 | else |
e6cc62c6 VS |
3388 | echo "$as_me:$LINENO: result: no" >&5 |
3389 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3390 | fi |
e6cc62c6 | 3391 | |
10f2d63a | 3392 | |
5005acfe | 3393 | enablestring= |
e6cc62c6 VS |
3394 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3395 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3396 | no_cache=0 |
3397 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3398 | if test "${enable_mem_tracing+set}" = set; then | |
3399 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3400 | |
10f2d63a VZ |
3401 | if test "$enableval" = yes; then |
3402 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3403 | else | |
3404 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3405 | fi | |
e6cc62c6 | 3406 | |
10f2d63a | 3407 | else |
e6cc62c6 | 3408 | |
10f2d63a VZ |
3409 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3410 | if test "x$LINE" != x ; then | |
3411 | eval "DEFAULT_$LINE" | |
3412 | else | |
3413 | no_cache=1 | |
3414 | fi | |
3415 | ||
3416 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3417 | |
e6cc62c6 | 3418 | fi; |
10f2d63a VZ |
3419 | |
3420 | eval "$ac_cv_use_mem_tracing" | |
3421 | if test "$no_cache" != 1; then | |
3422 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3423 | fi | |
3424 | ||
3425 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3426 | echo "$as_me:$LINENO: result: yes" >&5 |
3427 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3428 | else |
e6cc62c6 VS |
3429 | echo "$as_me:$LINENO: result: no" >&5 |
3430 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3431 | fi |
e6cc62c6 | 3432 | |
10f2d63a | 3433 | |
5005acfe | 3434 | enablestring= |
e6cc62c6 VS |
3435 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3436 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3437 | no_cache=0 |
3438 | # Check whether --enable-profile or --disable-profile was given. | |
3439 | if test "${enable_profile+set}" = set; then | |
3440 | enableval="$enable_profile" | |
e6cc62c6 | 3441 | |
10f2d63a VZ |
3442 | if test "$enableval" = yes; then |
3443 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3444 | else | |
3445 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3446 | fi | |
e6cc62c6 | 3447 | |
10f2d63a | 3448 | else |
e6cc62c6 | 3449 | |
10f2d63a VZ |
3450 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3451 | if test "x$LINE" != x ; then | |
3452 | eval "DEFAULT_$LINE" | |
3453 | else | |
3454 | no_cache=1 | |
3455 | fi | |
3456 | ||
3457 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3458 | |
e6cc62c6 | 3459 | fi; |
10f2d63a VZ |
3460 | |
3461 | eval "$ac_cv_use_profile" | |
3462 | if test "$no_cache" != 1; then | |
3463 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3464 | fi | |
3465 | ||
3466 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3467 | echo "$as_me:$LINENO: result: yes" >&5 |
3468 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3469 | else |
e6cc62c6 VS |
3470 | echo "$as_me:$LINENO: result: no" >&5 |
3471 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3472 | fi |
e6cc62c6 | 3473 | |
10f2d63a | 3474 | |
5005acfe | 3475 | enablestring= |
e6cc62c6 VS |
3476 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3477 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3478 | no_cache=0 |
3479 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3480 | if test "${enable_no_rtti+set}" = set; then | |
3481 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3482 | |
10f2d63a VZ |
3483 | if test "$enableval" = yes; then |
3484 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3485 | else | |
3486 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3487 | fi | |
e6cc62c6 | 3488 | |
10f2d63a | 3489 | else |
e6cc62c6 | 3490 | |
10f2d63a VZ |
3491 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3492 | if test "x$LINE" != x ; then | |
3493 | eval "DEFAULT_$LINE" | |
3494 | else | |
3495 | no_cache=1 | |
3496 | fi | |
3497 | ||
3498 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3499 | |
e6cc62c6 | 3500 | fi; |
10f2d63a VZ |
3501 | |
3502 | eval "$ac_cv_use_no_rtti" | |
3503 | if test "$no_cache" != 1; then | |
3504 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3505 | fi | |
3506 | ||
3507 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3508 | echo "$as_me:$LINENO: result: yes" >&5 |
3509 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3510 | else |
e6cc62c6 VS |
3511 | echo "$as_me:$LINENO: result: no" >&5 |
3512 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3513 | fi |
e6cc62c6 | 3514 | |
10f2d63a | 3515 | |
5005acfe | 3516 | enablestring= |
e6cc62c6 VS |
3517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3518 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3519 | no_cache=0 |
3520 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3521 | if test "${enable_no_exceptions+set}" = set; then | |
3522 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3523 | |
10f2d63a VZ |
3524 | if test "$enableval" = yes; then |
3525 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3526 | else | |
3527 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3528 | fi | |
e6cc62c6 | 3529 | |
10f2d63a | 3530 | else |
e6cc62c6 | 3531 | |
10f2d63a VZ |
3532 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3533 | if test "x$LINE" != x ; then | |
3534 | eval "DEFAULT_$LINE" | |
3535 | else | |
3536 | no_cache=1 | |
3537 | fi | |
3538 | ||
3539 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3540 | |
e6cc62c6 | 3541 | fi; |
10f2d63a VZ |
3542 | |
3543 | eval "$ac_cv_use_no_exceptions" | |
3544 | if test "$no_cache" != 1; then | |
3545 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3546 | fi | |
3547 | ||
3548 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3549 | echo "$as_me:$LINENO: result: yes" >&5 |
3550 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3551 | else |
e6cc62c6 VS |
3552 | echo "$as_me:$LINENO: result: no" >&5 |
3553 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3554 | fi |
e6cc62c6 | 3555 | |
10f2d63a | 3556 | |
5005acfe | 3557 | enablestring= |
e6cc62c6 VS |
3558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3559 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3560 | no_cache=0 |
3561 | # Check whether --enable-permissive or --disable-permissive was given. | |
3562 | if test "${enable_permissive+set}" = set; then | |
3563 | enableval="$enable_permissive" | |
e6cc62c6 | 3564 | |
10f2d63a VZ |
3565 | if test "$enableval" = yes; then |
3566 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3567 | else | |
3568 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3569 | fi | |
e6cc62c6 | 3570 | |
10f2d63a | 3571 | else |
e6cc62c6 | 3572 | |
10f2d63a VZ |
3573 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3574 | if test "x$LINE" != x ; then | |
3575 | eval "DEFAULT_$LINE" | |
3576 | else | |
3577 | no_cache=1 | |
3578 | fi | |
3579 | ||
3580 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3581 | |
e6cc62c6 | 3582 | fi; |
10f2d63a VZ |
3583 | |
3584 | eval "$ac_cv_use_permissive" | |
3585 | if test "$no_cache" != 1; then | |
3586 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3587 | fi | |
3588 | ||
3589 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3590 | echo "$as_me:$LINENO: result: yes" >&5 |
3591 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3592 | else |
e6cc62c6 VS |
3593 | echo "$as_me:$LINENO: result: no" >&5 |
3594 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3595 | fi |
e6cc62c6 | 3596 | |
10f2d63a | 3597 | |
5005acfe | 3598 | enablestring= |
e6cc62c6 VS |
3599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3600 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3601 | no_cache=0 |
3602 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3603 | if test "${enable_no_deps+set}" = set; then | |
3604 | enableval="$enable_no_deps" | |
e6cc62c6 | 3605 | |
10f2d63a VZ |
3606 | if test "$enableval" = yes; then |
3607 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3608 | else | |
3609 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3610 | fi | |
e6cc62c6 | 3611 | |
10f2d63a | 3612 | else |
e6cc62c6 | 3613 | |
10f2d63a VZ |
3614 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3615 | if test "x$LINE" != x ; then | |
3616 | eval "DEFAULT_$LINE" | |
3617 | else | |
3618 | no_cache=1 | |
3619 | fi | |
3620 | ||
3621 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3622 | |
e6cc62c6 | 3623 | fi; |
10f2d63a VZ |
3624 | |
3625 | eval "$ac_cv_use_no_deps" | |
3626 | if test "$no_cache" != 1; then | |
3627 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3628 | fi | |
3629 | ||
3630 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3631 | echo "$as_me:$LINENO: result: yes" >&5 |
3632 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3633 | else |
e6cc62c6 VS |
3634 | echo "$as_me:$LINENO: result: no" >&5 |
3635 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3636 | fi |
e6cc62c6 | 3637 | |
52127426 | 3638 | |
8284b0c5 | 3639 | |
5005acfe | 3640 | enablestring= |
e6cc62c6 VS |
3641 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5 |
3642 | echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6 | |
54276ccf VZ |
3643 | no_cache=0 |
3644 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3645 | if test "${enable_compat20+set}" = set; then | |
3646 | enableval="$enable_compat20" | |
e6cc62c6 | 3647 | |
54276ccf VZ |
3648 | if test "$enableval" = yes; then |
3649 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3650 | else | |
3651 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3652 | fi | |
e6cc62c6 | 3653 | |
54276ccf | 3654 | else |
e6cc62c6 | 3655 | |
54276ccf VZ |
3656 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3657 | if test "x$LINE" != x ; then | |
3658 | eval "DEFAULT_$LINE" | |
3659 | else | |
3660 | no_cache=1 | |
3661 | fi | |
3662 | ||
3663 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
54276ccf | 3664 | |
e6cc62c6 | 3665 | fi; |
54276ccf VZ |
3666 | |
3667 | eval "$ac_cv_use_compat20" | |
3668 | if test "$no_cache" != 1; then | |
3669 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3670 | fi | |
3671 | ||
3672 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
e6cc62c6 VS |
3673 | echo "$as_me:$LINENO: result: yes" >&5 |
3674 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3675 | else |
e6cc62c6 VS |
3676 | echo "$as_me:$LINENO: result: no" >&5 |
3677 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3678 | fi |
e6cc62c6 | 3679 | |
54276ccf | 3680 | |
65d8ef1e | 3681 | enablestring= |
e6cc62c6 VS |
3682 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3683 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3684 | no_cache=0 |
3685 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3686 | if test "${enable_compat22+set}" = set; then | |
3687 | enableval="$enable_compat22" | |
e6cc62c6 | 3688 | |
54276ccf VZ |
3689 | if test "$enableval" = yes; then |
3690 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3691 | else | |
3692 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3693 | fi | |
e6cc62c6 | 3694 | |
54276ccf | 3695 | else |
e6cc62c6 | 3696 | |
54276ccf VZ |
3697 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3698 | if test "x$LINE" != x ; then | |
3699 | eval "DEFAULT_$LINE" | |
3700 | else | |
3701 | no_cache=1 | |
3702 | fi | |
3703 | ||
3704 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3705 | |
e6cc62c6 | 3706 | fi; |
54276ccf VZ |
3707 | |
3708 | eval "$ac_cv_use_compat22" | |
3709 | if test "$no_cache" != 1; then | |
3710 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3711 | fi | |
3712 | ||
3713 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3714 | echo "$as_me:$LINENO: result: yes" >&5 |
3715 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3716 | else |
e6cc62c6 VS |
3717 | echo "$as_me:$LINENO: result: no" >&5 |
3718 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3719 | fi |
e6cc62c6 | 3720 | |
54276ccf | 3721 | |
65d8ef1e | 3722 | enablestring=disable |
e6cc62c6 VS |
3723 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3724 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3725 | no_cache=0 |
3726 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3727 | if test "${enable_compat24+set}" = set; then | |
3728 | enableval="$enable_compat24" | |
e6cc62c6 | 3729 | |
65d8ef1e VS |
3730 | if test "$enableval" = yes; then |
3731 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3732 | else | |
3733 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3734 | fi | |
e6cc62c6 | 3735 | |
65d8ef1e | 3736 | else |
e6cc62c6 | 3737 | |
65d8ef1e VS |
3738 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3739 | if test "x$LINE" != x ; then | |
3740 | eval "DEFAULT_$LINE" | |
3741 | else | |
3742 | no_cache=1 | |
3743 | fi | |
3744 | ||
3745 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3746 | |
e6cc62c6 | 3747 | fi; |
65d8ef1e VS |
3748 | |
3749 | eval "$ac_cv_use_compat24" | |
3750 | if test "$no_cache" != 1; then | |
3751 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3752 | fi | |
3753 | ||
3754 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3755 | echo "$as_me:$LINENO: result: yes" >&5 |
3756 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3757 | else |
e6cc62c6 VS |
3758 | echo "$as_me:$LINENO: result: no" >&5 |
3759 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3760 | fi |
e6cc62c6 | 3761 | |
65d8ef1e | 3762 | |
3bd8fb5f RD |
3763 | # Check whether --enable-rpath or --disable-rpath was given. |
3764 | if test "${enable_rpath+set}" = set; then | |
3765 | enableval="$enable_rpath" | |
3766 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3767 | fi; |
3bd8fb5f RD |
3768 | |
3769 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3770 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3771 | fi | |
3772 | ||
8284b0c5 MB |
3773 | |
3774 | ||
3775 | ||
5005acfe | 3776 | enablestring= |
e6cc62c6 VS |
3777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3778 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3779 | no_cache=0 |
3780 | # Check whether --enable-intl or --disable-intl was given. | |
3781 | if test "${enable_intl+set}" = set; then | |
3782 | enableval="$enable_intl" | |
e6cc62c6 | 3783 | |
10f2d63a VZ |
3784 | if test "$enableval" = yes; then |
3785 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3786 | else | |
3787 | ac_cv_use_intl='wxUSE_INTL=no' | |
3788 | fi | |
e6cc62c6 | 3789 | |
10f2d63a | 3790 | else |
e6cc62c6 | 3791 | |
10f2d63a VZ |
3792 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3793 | if test "x$LINE" != x ; then | |
3794 | eval "DEFAULT_$LINE" | |
3795 | else | |
3796 | no_cache=1 | |
3797 | fi | |
3798 | ||
3799 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3800 | |
e6cc62c6 | 3801 | fi; |
10f2d63a VZ |
3802 | |
3803 | eval "$ac_cv_use_intl" | |
3804 | if test "$no_cache" != 1; then | |
3805 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3806 | fi | |
3807 | ||
3808 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3809 | echo "$as_me:$LINENO: result: yes" >&5 |
3810 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3811 | else |
e6cc62c6 VS |
3812 | echo "$as_me:$LINENO: result: no" >&5 |
3813 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3814 | fi |
e6cc62c6 | 3815 | |
10f2d63a | 3816 | |
5005acfe | 3817 | enablestring= |
e6cc62c6 VS |
3818 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3819 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3820 | no_cache=0 |
3821 | # Check whether --enable-config or --disable-config was given. | |
3822 | if test "${enable_config+set}" = set; then | |
3823 | enableval="$enable_config" | |
e6cc62c6 | 3824 | |
10f2d63a VZ |
3825 | if test "$enableval" = yes; then |
3826 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3827 | else | |
3828 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3829 | fi | |
e6cc62c6 | 3830 | |
10f2d63a | 3831 | else |
e6cc62c6 | 3832 | |
10f2d63a VZ |
3833 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3834 | if test "x$LINE" != x ; then | |
3835 | eval "DEFAULT_$LINE" | |
3836 | else | |
3837 | no_cache=1 | |
3838 | fi | |
3839 | ||
3840 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3841 | |
e6cc62c6 | 3842 | fi; |
10f2d63a VZ |
3843 | |
3844 | eval "$ac_cv_use_config" | |
3845 | if test "$no_cache" != 1; then | |
3846 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3847 | fi | |
3848 | ||
3849 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3850 | echo "$as_me:$LINENO: result: yes" >&5 |
3851 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3852 | else |
e6cc62c6 VS |
3853 | echo "$as_me:$LINENO: result: no" >&5 |
3854 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3855 | fi |
e6cc62c6 | 3856 | |
52127426 | 3857 | |
8284b0c5 | 3858 | |
5005acfe | 3859 | enablestring= |
e6cc62c6 VS |
3860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3861 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3862 | no_cache=0 |
3863 | # Check whether --enable-protocols or --disable-protocols was given. | |
3864 | if test "${enable_protocols+set}" = set; then | |
3865 | enableval="$enable_protocols" | |
e6cc62c6 | 3866 | |
a1622950 VZ |
3867 | if test "$enableval" = yes; then |
3868 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3869 | else | |
3870 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3871 | fi | |
e6cc62c6 | 3872 | |
a1622950 | 3873 | else |
e6cc62c6 | 3874 | |
a1622950 VZ |
3875 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3876 | if test "x$LINE" != x ; then | |
3877 | eval "DEFAULT_$LINE" | |
3878 | else | |
3879 | no_cache=1 | |
3880 | fi | |
3881 | ||
3882 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3883 | |
e6cc62c6 | 3884 | fi; |
a1622950 VZ |
3885 | |
3886 | eval "$ac_cv_use_protocols" | |
3887 | if test "$no_cache" != 1; then | |
3888 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3889 | fi | |
3890 | ||
3891 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3892 | echo "$as_me:$LINENO: result: yes" >&5 |
3893 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3894 | else |
e6cc62c6 VS |
3895 | echo "$as_me:$LINENO: result: no" >&5 |
3896 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3897 | fi |
e6cc62c6 | 3898 | |
a1622950 | 3899 | |
5005acfe | 3900 | enablestring= |
e6cc62c6 VS |
3901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3902 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3903 | no_cache=0 |
3904 | # Check whether --enable-ftp or --disable-ftp was given. | |
3905 | if test "${enable_ftp+set}" = set; then | |
3906 | enableval="$enable_ftp" | |
e6cc62c6 | 3907 | |
a1622950 VZ |
3908 | if test "$enableval" = yes; then |
3909 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3910 | else | |
3911 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3912 | fi | |
e6cc62c6 | 3913 | |
a1622950 | 3914 | else |
e6cc62c6 | 3915 | |
a1622950 VZ |
3916 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3917 | if test "x$LINE" != x ; then | |
3918 | eval "DEFAULT_$LINE" | |
3919 | else | |
3920 | no_cache=1 | |
3921 | fi | |
3922 | ||
3923 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3924 | |
e6cc62c6 | 3925 | fi; |
a1622950 VZ |
3926 | |
3927 | eval "$ac_cv_use_ftp" | |
3928 | if test "$no_cache" != 1; then | |
3929 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3930 | fi | |
3931 | ||
3932 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3933 | echo "$as_me:$LINENO: result: yes" >&5 |
3934 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3935 | else |
e6cc62c6 VS |
3936 | echo "$as_me:$LINENO: result: no" >&5 |
3937 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3938 | fi |
e6cc62c6 | 3939 | |
a1622950 | 3940 | |
5005acfe | 3941 | enablestring= |
e6cc62c6 VS |
3942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3943 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3944 | no_cache=0 |
3945 | # Check whether --enable-http or --disable-http was given. | |
3946 | if test "${enable_http+set}" = set; then | |
3947 | enableval="$enable_http" | |
e6cc62c6 | 3948 | |
a1622950 VZ |
3949 | if test "$enableval" = yes; then |
3950 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3951 | else | |
3952 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3953 | fi | |
e6cc62c6 | 3954 | |
a1622950 | 3955 | else |
e6cc62c6 | 3956 | |
a1622950 VZ |
3957 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3958 | if test "x$LINE" != x ; then | |
3959 | eval "DEFAULT_$LINE" | |
3960 | else | |
3961 | no_cache=1 | |
3962 | fi | |
3963 | ||
3964 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3965 | |
e6cc62c6 | 3966 | fi; |
a1622950 VZ |
3967 | |
3968 | eval "$ac_cv_use_http" | |
3969 | if test "$no_cache" != 1; then | |
3970 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3971 | fi | |
3972 | ||
3973 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
3974 | echo "$as_me:$LINENO: result: yes" >&5 |
3975 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3976 | else |
e6cc62c6 VS |
3977 | echo "$as_me:$LINENO: result: no" >&5 |
3978 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3979 | fi |
e6cc62c6 | 3980 | |
a1622950 | 3981 | |
5005acfe | 3982 | enablestring= |
e6cc62c6 VS |
3983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
3984 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3985 | no_cache=0 |
3986 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3987 | if test "${enable_fileproto+set}" = set; then | |
3988 | enableval="$enable_fileproto" | |
e6cc62c6 | 3989 | |
a1622950 VZ |
3990 | if test "$enableval" = yes; then |
3991 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3992 | else | |
3993 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3994 | fi | |
e6cc62c6 | 3995 | |
a1622950 | 3996 | else |
e6cc62c6 | 3997 | |
a1622950 VZ |
3998 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3999 | if test "x$LINE" != x ; then | |
4000 | eval "DEFAULT_$LINE" | |
4001 | else | |
4002 | no_cache=1 | |
4003 | fi | |
4004 | ||
4005 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4006 | |
e6cc62c6 | 4007 | fi; |
a1622950 VZ |
4008 | |
4009 | eval "$ac_cv_use_fileproto" | |
4010 | if test "$no_cache" != 1; then | |
4011 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4012 | fi | |
4013 | ||
4014 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4015 | echo "$as_me:$LINENO: result: yes" >&5 |
4016 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4017 | else |
e6cc62c6 VS |
4018 | echo "$as_me:$LINENO: result: no" >&5 |
4019 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4020 | fi |
e6cc62c6 | 4021 | |
a1622950 | 4022 | |
5005acfe | 4023 | enablestring= |
e6cc62c6 VS |
4024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4025 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4026 | no_cache=0 |
4027 | # Check whether --enable-sockets or --disable-sockets was given. | |
4028 | if test "${enable_sockets+set}" = set; then | |
4029 | enableval="$enable_sockets" | |
e6cc62c6 | 4030 | |
10f2d63a VZ |
4031 | if test "$enableval" = yes; then |
4032 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4033 | else | |
4034 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4035 | fi | |
e6cc62c6 | 4036 | |
10f2d63a | 4037 | else |
e6cc62c6 | 4038 | |
10f2d63a VZ |
4039 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4040 | if test "x$LINE" != x ; then | |
4041 | eval "DEFAULT_$LINE" | |
4042 | else | |
4043 | no_cache=1 | |
4044 | fi | |
4045 | ||
4046 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4047 | |
e6cc62c6 | 4048 | fi; |
10f2d63a VZ |
4049 | |
4050 | eval "$ac_cv_use_sockets" | |
4051 | if test "$no_cache" != 1; then | |
4052 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4053 | fi | |
4054 | ||
4055 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4056 | echo "$as_me:$LINENO: result: yes" >&5 |
4057 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4058 | else |
e6cc62c6 VS |
4059 | echo "$as_me:$LINENO: result: no" >&5 |
4060 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4061 | fi |
e6cc62c6 | 4062 | |
8284b0c5 | 4063 | |
5005acfe | 4064 | enablestring= |
e6cc62c6 VS |
4065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4066 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4067 | no_cache=0 |
4068 | # Check whether --enable-ole or --disable-ole was given. | |
4069 | if test "${enable_ole+set}" = set; then | |
4070 | enableval="$enable_ole" | |
e6cc62c6 | 4071 | |
3bce6687 JS |
4072 | if test "$enableval" = yes; then |
4073 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4074 | else | |
4075 | ac_cv_use_ole='wxUSE_OLE=no' | |
4076 | fi | |
e6cc62c6 | 4077 | |
3bce6687 | 4078 | else |
e6cc62c6 | 4079 | |
3bce6687 JS |
4080 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4088 | |
e6cc62c6 | 4089 | fi; |
3bce6687 JS |
4090 | |
4091 | eval "$ac_cv_use_ole" | |
4092 | if test "$no_cache" != 1; then | |
4093 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4094 | fi | |
4095 | ||
4096 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4097 | echo "$as_me:$LINENO: result: yes" >&5 |
4098 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4099 | else |
e6cc62c6 VS |
4100 | echo "$as_me:$LINENO: result: no" >&5 |
4101 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4102 | fi |
e6cc62c6 | 4103 | |
3bce6687 | 4104 | |
5005acfe | 4105 | enablestring= |
e6cc62c6 VS |
4106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4107 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4108 | no_cache=0 |
4109 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4110 | if test "${enable_dataobj+set}" = set; then | |
4111 | enableval="$enable_dataobj" | |
e6cc62c6 | 4112 | |
3bce6687 JS |
4113 | if test "$enableval" = yes; then |
4114 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4115 | else | |
4116 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4117 | fi | |
e6cc62c6 | 4118 | |
3bce6687 | 4119 | else |
e6cc62c6 | 4120 | |
3bce6687 JS |
4121 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4122 | if test "x$LINE" != x ; then | |
4123 | eval "DEFAULT_$LINE" | |
4124 | else | |
4125 | no_cache=1 | |
4126 | fi | |
4127 | ||
4128 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4129 | |
e6cc62c6 | 4130 | fi; |
3bce6687 JS |
4131 | |
4132 | eval "$ac_cv_use_dataobj" | |
4133 | if test "$no_cache" != 1; then | |
4134 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4135 | fi | |
4136 | ||
4137 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4138 | echo "$as_me:$LINENO: result: yes" >&5 |
4139 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4140 | else |
e6cc62c6 VS |
4141 | echo "$as_me:$LINENO: result: no" >&5 |
4142 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4143 | fi |
e6cc62c6 | 4144 | |
3bce6687 | 4145 | |
52127426 | 4146 | |
5005acfe | 4147 | enablestring= |
e6cc62c6 VS |
4148 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4149 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4150 | no_cache=0 |
eb4efbdc VZ |
4151 | # Check whether --enable-ipc or --disable-ipc was given. |
4152 | if test "${enable_ipc+set}" = set; then | |
4153 | enableval="$enable_ipc" | |
e6cc62c6 | 4154 | |
10f2d63a | 4155 | if test "$enableval" = yes; then |
eb4efbdc | 4156 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4157 | else |
eb4efbdc | 4158 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4159 | fi |
e6cc62c6 | 4160 | |
10f2d63a | 4161 | else |
e6cc62c6 | 4162 | |
eb4efbdc | 4163 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4164 | if test "x$LINE" != x ; then |
4165 | eval "DEFAULT_$LINE" | |
4166 | else | |
4167 | no_cache=1 | |
4168 | fi | |
4169 | ||
eb4efbdc | 4170 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4171 | |
e6cc62c6 | 4172 | fi; |
10f2d63a | 4173 | |
eb4efbdc | 4174 | eval "$ac_cv_use_ipc" |
10f2d63a | 4175 | if test "$no_cache" != 1; then |
eb4efbdc | 4176 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4177 | fi |
4178 | ||
eb4efbdc | 4179 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4180 | echo "$as_me:$LINENO: result: yes" >&5 |
4181 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4182 | else |
e6cc62c6 VS |
4183 | echo "$as_me:$LINENO: result: no" >&5 |
4184 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4185 | fi |
e6cc62c6 | 4186 | |
52127426 | 4187 | |
8284b0c5 | 4188 | |
5005acfe | 4189 | enablestring= |
e6cc62c6 VS |
4190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4191 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4192 | no_cache=0 |
4193 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4194 | if test "${enable_cmdline+set}" = set; then | |
4195 | enableval="$enable_cmdline" | |
e6cc62c6 | 4196 | |
1e6feb95 VZ |
4197 | if test "$enableval" = yes; then |
4198 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4199 | else | |
4200 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4201 | fi | |
e6cc62c6 | 4202 | |
1e6feb95 | 4203 | else |
e6cc62c6 | 4204 | |
1e6feb95 VZ |
4205 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4206 | if test "x$LINE" != x ; then | |
4207 | eval "DEFAULT_$LINE" | |
4208 | else | |
4209 | no_cache=1 | |
4210 | fi | |
4211 | ||
4212 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4213 | |
e6cc62c6 | 4214 | fi; |
1e6feb95 VZ |
4215 | |
4216 | eval "$ac_cv_use_cmdline" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4222 | echo "$as_me:$LINENO: result: yes" >&5 |
4223 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4224 | else |
e6cc62c6 VS |
4225 | echo "$as_me:$LINENO: result: no" >&5 |
4226 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4227 | fi |
e6cc62c6 | 4228 | |
1e6feb95 | 4229 | |
5005acfe | 4230 | enablestring= |
e6cc62c6 VS |
4231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4232 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4233 | no_cache=0 |
4234 | # Check whether --enable-datetime or --disable-datetime was given. | |
4235 | if test "${enable_datetime+set}" = set; then | |
4236 | enableval="$enable_datetime" | |
e6cc62c6 | 4237 | |
1e6feb95 VZ |
4238 | if test "$enableval" = yes; then |
4239 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4240 | else | |
4241 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4242 | fi | |
e6cc62c6 | 4243 | |
1e6feb95 | 4244 | else |
e6cc62c6 | 4245 | |
1e6feb95 VZ |
4246 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4247 | if test "x$LINE" != x ; then | |
4248 | eval "DEFAULT_$LINE" | |
4249 | else | |
4250 | no_cache=1 | |
4251 | fi | |
4252 | ||
4253 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4254 | |
e6cc62c6 | 4255 | fi; |
1e6feb95 VZ |
4256 | |
4257 | eval "$ac_cv_use_datetime" | |
4258 | if test "$no_cache" != 1; then | |
4259 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4260 | fi | |
4261 | ||
4262 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4263 | echo "$as_me:$LINENO: result: yes" >&5 |
4264 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4265 | else |
e6cc62c6 VS |
4266 | echo "$as_me:$LINENO: result: no" >&5 |
4267 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4268 | fi |
e6cc62c6 | 4269 | |
1e6feb95 | 4270 | |
5005acfe | 4271 | enablestring= |
e6cc62c6 VS |
4272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4273 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4274 | no_cache=0 |
4275 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4276 | if test "${enable_stopwatch+set}" = set; then | |
4277 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4278 | |
1e6feb95 VZ |
4279 | if test "$enableval" = yes; then |
4280 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4281 | else | |
4282 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4283 | fi | |
e6cc62c6 | 4284 | |
1e6feb95 | 4285 | else |
e6cc62c6 | 4286 | |
1e6feb95 VZ |
4287 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4288 | if test "x$LINE" != x ; then | |
4289 | eval "DEFAULT_$LINE" | |
4290 | else | |
4291 | no_cache=1 | |
4292 | fi | |
4293 | ||
4294 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4295 | |
e6cc62c6 | 4296 | fi; |
1e6feb95 VZ |
4297 | |
4298 | eval "$ac_cv_use_stopwatch" | |
4299 | if test "$no_cache" != 1; then | |
4300 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4301 | fi | |
4302 | ||
4303 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4304 | echo "$as_me:$LINENO: result: yes" >&5 |
4305 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4306 | else |
e6cc62c6 VS |
4307 | echo "$as_me:$LINENO: result: no" >&5 |
4308 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4309 | fi |
e6cc62c6 | 4310 | |
1e6feb95 | 4311 | |
5005acfe | 4312 | enablestring= |
e6cc62c6 VS |
4313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4314 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4315 | no_cache=0 |
eb4efbdc VZ |
4316 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4317 | if test "${enable_dialupman+set}" = set; then | |
4318 | enableval="$enable_dialupman" | |
e6cc62c6 | 4319 | |
10f2d63a | 4320 | if test "$enableval" = yes; then |
eb4efbdc | 4321 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4322 | else |
eb4efbdc | 4323 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4324 | fi |
e6cc62c6 | 4325 | |
10f2d63a | 4326 | else |
e6cc62c6 | 4327 | |
eb4efbdc | 4328 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4329 | if test "x$LINE" != x ; then |
4330 | eval "DEFAULT_$LINE" | |
4331 | else | |
4332 | no_cache=1 | |
4333 | fi | |
4334 | ||
eb4efbdc | 4335 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4336 | |
e6cc62c6 | 4337 | fi; |
10f2d63a | 4338 | |
eb4efbdc | 4339 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4340 | if test "$no_cache" != 1; then |
eb4efbdc | 4341 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4342 | fi |
4343 | ||
eb4efbdc | 4344 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4345 | echo "$as_me:$LINENO: result: yes" >&5 |
4346 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4347 | else |
e6cc62c6 VS |
4348 | echo "$as_me:$LINENO: result: no" >&5 |
4349 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4350 | fi |
e6cc62c6 | 4351 | |
10f2d63a | 4352 | |
5005acfe | 4353 | enablestring= |
e6cc62c6 VS |
4354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4355 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4356 | no_cache=0 |
4357 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4358 | if test "${enable_apple_ieee+set}" = set; then | |
4359 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4360 | |
10f2d63a VZ |
4361 | if test "$enableval" = yes; then |
4362 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4363 | else | |
4364 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4365 | fi | |
e6cc62c6 | 4366 | |
10f2d63a | 4367 | else |
e6cc62c6 | 4368 | |
10f2d63a VZ |
4369 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4370 | if test "x$LINE" != x ; then | |
4371 | eval "DEFAULT_$LINE" | |
4372 | else | |
4373 | no_cache=1 | |
4374 | fi | |
4375 | ||
4376 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4377 | |
e6cc62c6 | 4378 | fi; |
10f2d63a VZ |
4379 | |
4380 | eval "$ac_cv_use_apple_ieee" | |
4381 | if test "$no_cache" != 1; then | |
4382 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4383 | fi | |
4384 | ||
4385 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4386 | echo "$as_me:$LINENO: result: yes" >&5 |
4387 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4388 | else |
e6cc62c6 VS |
4389 | echo "$as_me:$LINENO: result: no" >&5 |
4390 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4391 | fi |
e6cc62c6 | 4392 | |
10f2d63a | 4393 | |
5005acfe | 4394 | enablestring= |
e6cc62c6 VS |
4395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4396 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4397 | no_cache=0 |
1e6feb95 VZ |
4398 | # Check whether --enable-timer or --disable-timer was given. |
4399 | if test "${enable_timer+set}" = set; then | |
4400 | enableval="$enable_timer" | |
e6cc62c6 | 4401 | |
10f2d63a | 4402 | if test "$enableval" = yes; then |
1e6feb95 | 4403 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4404 | else |
1e6feb95 | 4405 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4406 | fi |
e6cc62c6 | 4407 | |
10f2d63a | 4408 | else |
e6cc62c6 | 4409 | |
1e6feb95 | 4410 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4411 | if test "x$LINE" != x ; then |
4412 | eval "DEFAULT_$LINE" | |
4413 | else | |
4414 | no_cache=1 | |
4415 | fi | |
4416 | ||
1e6feb95 | 4417 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4418 | |
e6cc62c6 | 4419 | fi; |
10f2d63a | 4420 | |
1e6feb95 | 4421 | eval "$ac_cv_use_timer" |
10f2d63a | 4422 | if test "$no_cache" != 1; then |
1e6feb95 | 4423 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4424 | fi |
4425 | ||
1e6feb95 | 4426 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4427 | echo "$as_me:$LINENO: result: yes" >&5 |
4428 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4429 | else |
e6cc62c6 VS |
4430 | echo "$as_me:$LINENO: result: no" >&5 |
4431 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4432 | fi |
e6cc62c6 | 4433 | |
10f2d63a | 4434 | |
5005acfe | 4435 | enablestring= |
e6cc62c6 VS |
4436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4437 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4438 | no_cache=0 |
4439 | # Check whether --enable-wave or --disable-wave was given. | |
4440 | if test "${enable_wave+set}" = set; then | |
4441 | enableval="$enable_wave" | |
e6cc62c6 | 4442 | |
10f2d63a VZ |
4443 | if test "$enableval" = yes; then |
4444 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4445 | else | |
4446 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4447 | fi | |
e6cc62c6 | 4448 | |
10f2d63a | 4449 | else |
e6cc62c6 | 4450 | |
10f2d63a VZ |
4451 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4452 | if test "x$LINE" != x ; then | |
4453 | eval "DEFAULT_$LINE" | |
4454 | else | |
4455 | no_cache=1 | |
4456 | fi | |
4457 | ||
4458 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4459 | |
e6cc62c6 | 4460 | fi; |
10f2d63a VZ |
4461 | |
4462 | eval "$ac_cv_use_wave" | |
4463 | if test "$no_cache" != 1; then | |
4464 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4465 | fi | |
4466 | ||
4467 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4468 | echo "$as_me:$LINENO: result: yes" >&5 |
4469 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4470 | else |
e6cc62c6 VS |
4471 | echo "$as_me:$LINENO: result: no" >&5 |
4472 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4473 | fi |
e6cc62c6 | 4474 | |
10f2d63a | 4475 | |
5005acfe | 4476 | enablestring= |
e6cc62c6 VS |
4477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4478 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4479 | no_cache=0 |
4480 | # Check whether --enable-fraction or --disable-fraction was given. | |
4481 | if test "${enable_fraction+set}" = set; then | |
4482 | enableval="$enable_fraction" | |
e6cc62c6 | 4483 | |
10f2d63a VZ |
4484 | if test "$enableval" = yes; then |
4485 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4486 | else | |
4487 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4488 | fi | |
e6cc62c6 | 4489 | |
10f2d63a | 4490 | else |
e6cc62c6 | 4491 | |
10f2d63a VZ |
4492 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4493 | if test "x$LINE" != x ; then | |
4494 | eval "DEFAULT_$LINE" | |
4495 | else | |
4496 | no_cache=1 | |
4497 | fi | |
4498 | ||
4499 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4500 | |
e6cc62c6 | 4501 | fi; |
10f2d63a VZ |
4502 | |
4503 | eval "$ac_cv_use_fraction" | |
4504 | if test "$no_cache" != 1; then | |
4505 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4506 | fi | |
4507 | ||
4508 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4509 | echo "$as_me:$LINENO: result: yes" >&5 |
4510 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4511 | else |
e6cc62c6 VS |
4512 | echo "$as_me:$LINENO: result: no" >&5 |
4513 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4514 | fi |
e6cc62c6 | 4515 | |
10f2d63a | 4516 | |
5005acfe | 4517 | enablestring= |
e6cc62c6 VS |
4518 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4519 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4520 | no_cache=0 |
4521 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4522 | if test "${enable_dynlib+set}" = set; then | |
4523 | enableval="$enable_dynlib" | |
e6cc62c6 | 4524 | |
10f2d63a VZ |
4525 | if test "$enableval" = yes; then |
4526 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4527 | else | |
4528 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4529 | fi | |
e6cc62c6 | 4530 | |
10f2d63a | 4531 | else |
e6cc62c6 | 4532 | |
10f2d63a VZ |
4533 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4534 | if test "x$LINE" != x ; then | |
4535 | eval "DEFAULT_$LINE" | |
4536 | else | |
4537 | no_cache=1 | |
4538 | fi | |
4539 | ||
4540 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4541 | |
e6cc62c6 | 4542 | fi; |
10f2d63a VZ |
4543 | |
4544 | eval "$ac_cv_use_dynlib" | |
4545 | if test "$no_cache" != 1; then | |
4546 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4547 | fi | |
4548 | ||
4549 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4550 | echo "$as_me:$LINENO: result: yes" >&5 |
4551 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4552 | else |
e6cc62c6 VS |
4553 | echo "$as_me:$LINENO: result: no" >&5 |
4554 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4555 | fi |
e6cc62c6 | 4556 | |
10f2d63a | 4557 | |
5005acfe | 4558 | enablestring= |
e6cc62c6 VS |
4559 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4560 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4561 | no_cache=0 |
4562 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4563 | if test "${enable_dynamicloader+set}" = set; then | |
4564 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4565 | |
0b9ab0bd RL |
4566 | if test "$enableval" = yes; then |
4567 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4568 | else | |
4569 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4570 | fi | |
e6cc62c6 | 4571 | |
0b9ab0bd | 4572 | else |
e6cc62c6 | 4573 | |
0b9ab0bd RL |
4574 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4575 | if test "x$LINE" != x ; then | |
4576 | eval "DEFAULT_$LINE" | |
4577 | else | |
4578 | no_cache=1 | |
4579 | fi | |
4580 | ||
4581 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4582 | |
e6cc62c6 | 4583 | fi; |
0b9ab0bd RL |
4584 | |
4585 | eval "$ac_cv_use_dynamicloader" | |
4586 | if test "$no_cache" != 1; then | |
4587 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4588 | fi | |
4589 | ||
4590 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4591 | echo "$as_me:$LINENO: result: yes" >&5 |
4592 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4593 | else |
e6cc62c6 VS |
4594 | echo "$as_me:$LINENO: result: no" >&5 |
4595 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4596 | fi |
e6cc62c6 | 4597 | |
0b9ab0bd | 4598 | |
5005acfe | 4599 | enablestring= |
e6cc62c6 VS |
4600 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4601 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4602 | no_cache=0 |
4603 | # Check whether --enable-longlong or --disable-longlong was given. | |
4604 | if test "${enable_longlong+set}" = set; then | |
4605 | enableval="$enable_longlong" | |
e6cc62c6 | 4606 | |
10f2d63a VZ |
4607 | if test "$enableval" = yes; then |
4608 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4609 | else | |
4610 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4611 | fi | |
e6cc62c6 | 4612 | |
10f2d63a | 4613 | else |
e6cc62c6 | 4614 | |
10f2d63a VZ |
4615 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4616 | if test "x$LINE" != x ; then | |
4617 | eval "DEFAULT_$LINE" | |
4618 | else | |
4619 | no_cache=1 | |
4620 | fi | |
4621 | ||
4622 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4623 | |
e6cc62c6 | 4624 | fi; |
10f2d63a VZ |
4625 | |
4626 | eval "$ac_cv_use_longlong" | |
4627 | if test "$no_cache" != 1; then | |
4628 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4629 | fi | |
4630 | ||
4631 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4632 | echo "$as_me:$LINENO: result: yes" >&5 |
4633 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4634 | else |
e6cc62c6 VS |
4635 | echo "$as_me:$LINENO: result: no" >&5 |
4636 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4637 | fi |
e6cc62c6 | 4638 | |
10f2d63a | 4639 | |
5005acfe | 4640 | enablestring= |
e6cc62c6 VS |
4641 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4642 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4643 | no_cache=0 |
4644 | # Check whether --enable-geometry or --disable-geometry was given. | |
4645 | if test "${enable_geometry+set}" = set; then | |
4646 | enableval="$enable_geometry" | |
e6cc62c6 | 4647 | |
e8f65ba6 RR |
4648 | if test "$enableval" = yes; then |
4649 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4650 | else | |
4651 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4652 | fi | |
e6cc62c6 | 4653 | |
e8f65ba6 | 4654 | else |
e6cc62c6 | 4655 | |
e8f65ba6 RR |
4656 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4657 | if test "x$LINE" != x ; then | |
4658 | eval "DEFAULT_$LINE" | |
4659 | else | |
4660 | no_cache=1 | |
4661 | fi | |
4662 | ||
4663 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4664 | |
e6cc62c6 | 4665 | fi; |
e8f65ba6 RR |
4666 | |
4667 | eval "$ac_cv_use_geometry" | |
4668 | if test "$no_cache" != 1; then | |
4669 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4670 | fi | |
4671 | ||
4672 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4673 | echo "$as_me:$LINENO: result: yes" >&5 |
4674 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4675 | else |
e6cc62c6 VS |
4676 | echo "$as_me:$LINENO: result: no" >&5 |
4677 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4678 | fi |
e6cc62c6 | 4679 | |
e8f65ba6 | 4680 | |
5005acfe | 4681 | enablestring= |
e6cc62c6 VS |
4682 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4683 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4684 | no_cache=0 |
4685 | # Check whether --enable-log or --disable-log was given. | |
4686 | if test "${enable_log+set}" = set; then | |
4687 | enableval="$enable_log" | |
e6cc62c6 | 4688 | |
10f2d63a VZ |
4689 | if test "$enableval" = yes; then |
4690 | ac_cv_use_log='wxUSE_LOG=yes' | |
4691 | else | |
4692 | ac_cv_use_log='wxUSE_LOG=no' | |
4693 | fi | |
e6cc62c6 | 4694 | |
10f2d63a | 4695 | else |
e6cc62c6 | 4696 | |
10f2d63a VZ |
4697 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4698 | if test "x$LINE" != x ; then | |
4699 | eval "DEFAULT_$LINE" | |
4700 | else | |
4701 | no_cache=1 | |
4702 | fi | |
4703 | ||
4704 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4705 | |
e6cc62c6 | 4706 | fi; |
10f2d63a VZ |
4707 | |
4708 | eval "$ac_cv_use_log" | |
4709 | if test "$no_cache" != 1; then | |
4710 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4711 | fi | |
4712 | ||
4713 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4714 | echo "$as_me:$LINENO: result: yes" >&5 |
4715 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4716 | else |
e6cc62c6 VS |
4717 | echo "$as_me:$LINENO: result: no" >&5 |
4718 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4719 | fi |
e6cc62c6 | 4720 | |
10f2d63a | 4721 | |
5005acfe | 4722 | enablestring= |
e6cc62c6 VS |
4723 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4724 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4725 | no_cache=0 |
4726 | # Check whether --enable-streams or --disable-streams was given. | |
4727 | if test "${enable_streams+set}" = set; then | |
4728 | enableval="$enable_streams" | |
e6cc62c6 | 4729 | |
10f2d63a VZ |
4730 | if test "$enableval" = yes; then |
4731 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4732 | else | |
4733 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4734 | fi | |
e6cc62c6 | 4735 | |
10f2d63a | 4736 | else |
e6cc62c6 | 4737 | |
10f2d63a VZ |
4738 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4739 | if test "x$LINE" != x ; then | |
4740 | eval "DEFAULT_$LINE" | |
4741 | else | |
4742 | no_cache=1 | |
4743 | fi | |
4744 | ||
4745 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4746 | |
e6cc62c6 | 4747 | fi; |
10f2d63a VZ |
4748 | |
4749 | eval "$ac_cv_use_streams" | |
4750 | if test "$no_cache" != 1; then | |
4751 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4752 | fi | |
4753 | ||
4754 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4755 | echo "$as_me:$LINENO: result: yes" >&5 |
4756 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4757 | else |
e6cc62c6 VS |
4758 | echo "$as_me:$LINENO: result: no" >&5 |
4759 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4760 | fi |
e6cc62c6 | 4761 | |
10f2d63a | 4762 | |
5005acfe | 4763 | enablestring= |
e6cc62c6 VS |
4764 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4765 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4766 | no_cache=0 |
4767 | # Check whether --enable-file or --disable-file was given. | |
4768 | if test "${enable_file+set}" = set; then | |
4769 | enableval="$enable_file" | |
e6cc62c6 | 4770 | |
10f2d63a VZ |
4771 | if test "$enableval" = yes; then |
4772 | ac_cv_use_file='wxUSE_FILE=yes' | |
4773 | else | |
4774 | ac_cv_use_file='wxUSE_FILE=no' | |
4775 | fi | |
e6cc62c6 | 4776 | |
10f2d63a | 4777 | else |
e6cc62c6 | 4778 | |
10f2d63a VZ |
4779 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4780 | if test "x$LINE" != x ; then | |
4781 | eval "DEFAULT_$LINE" | |
4782 | else | |
4783 | no_cache=1 | |
4784 | fi | |
4785 | ||
4786 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4787 | |
e6cc62c6 | 4788 | fi; |
10f2d63a VZ |
4789 | |
4790 | eval "$ac_cv_use_file" | |
4791 | if test "$no_cache" != 1; then | |
4792 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4793 | fi | |
4794 | ||
4795 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4796 | echo "$as_me:$LINENO: result: yes" >&5 |
4797 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4798 | else |
e6cc62c6 VS |
4799 | echo "$as_me:$LINENO: result: no" >&5 |
4800 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4801 | fi |
e6cc62c6 | 4802 | |
10f2d63a | 4803 | |
5005acfe | 4804 | enablestring= |
e6cc62c6 VS |
4805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4806 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4807 | no_cache=0 |
1e6feb95 VZ |
4808 | # Check whether --enable-ffile or --disable-ffile was given. |
4809 | if test "${enable_ffile+set}" = set; then | |
4810 | enableval="$enable_ffile" | |
e6cc62c6 | 4811 | |
10f2d63a | 4812 | if test "$enableval" = yes; then |
1e6feb95 | 4813 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4814 | else |
1e6feb95 | 4815 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4816 | fi |
e6cc62c6 | 4817 | |
10f2d63a | 4818 | else |
e6cc62c6 | 4819 | |
1e6feb95 | 4820 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4821 | if test "x$LINE" != x ; then |
4822 | eval "DEFAULT_$LINE" | |
4823 | else | |
4824 | no_cache=1 | |
4825 | fi | |
4826 | ||
1e6feb95 | 4827 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4828 | |
e6cc62c6 | 4829 | fi; |
10f2d63a | 4830 | |
1e6feb95 | 4831 | eval "$ac_cv_use_ffile" |
10f2d63a | 4832 | if test "$no_cache" != 1; then |
1e6feb95 | 4833 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4834 | fi |
4835 | ||
1e6feb95 | 4836 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4837 | echo "$as_me:$LINENO: result: yes" >&5 |
4838 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4839 | else |
e6cc62c6 VS |
4840 | echo "$as_me:$LINENO: result: no" >&5 |
4841 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4842 | fi |
e6cc62c6 | 4843 | |
10f2d63a | 4844 | |
5005acfe | 4845 | enablestring= |
e6cc62c6 VS |
4846 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4847 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4848 | no_cache=0 |
4849 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4850 | if test "${enable_textbuf+set}" = set; then | |
4851 | enableval="$enable_textbuf" | |
e6cc62c6 | 4852 | |
a3a584a7 VZ |
4853 | if test "$enableval" = yes; then |
4854 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4855 | else | |
4856 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4857 | fi | |
e6cc62c6 | 4858 | |
a3a584a7 | 4859 | else |
e6cc62c6 | 4860 | |
a3a584a7 VZ |
4861 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4862 | if test "x$LINE" != x ; then | |
4863 | eval "DEFAULT_$LINE" | |
4864 | else | |
4865 | no_cache=1 | |
4866 | fi | |
4867 | ||
4868 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4869 | |
e6cc62c6 | 4870 | fi; |
a3a584a7 VZ |
4871 | |
4872 | eval "$ac_cv_use_textbuf" | |
4873 | if test "$no_cache" != 1; then | |
4874 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4875 | fi | |
4876 | ||
4877 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4878 | echo "$as_me:$LINENO: result: yes" >&5 |
4879 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4880 | else |
e6cc62c6 VS |
4881 | echo "$as_me:$LINENO: result: no" >&5 |
4882 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4883 | fi |
e6cc62c6 | 4884 | |
a3a584a7 | 4885 | |
5005acfe | 4886 | enablestring= |
e6cc62c6 VS |
4887 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4888 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4889 | no_cache=0 |
1e6feb95 VZ |
4890 | # Check whether --enable-textfile or --disable-textfile was given. |
4891 | if test "${enable_textfile+set}" = set; then | |
4892 | enableval="$enable_textfile" | |
e6cc62c6 | 4893 | |
10f2d63a | 4894 | if test "$enableval" = yes; then |
1e6feb95 | 4895 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4896 | else |
1e6feb95 | 4897 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4898 | fi |
e6cc62c6 | 4899 | |
10f2d63a | 4900 | else |
e6cc62c6 | 4901 | |
1e6feb95 | 4902 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4903 | if test "x$LINE" != x ; then |
4904 | eval "DEFAULT_$LINE" | |
4905 | else | |
4906 | no_cache=1 | |
4907 | fi | |
4908 | ||
1e6feb95 | 4909 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4910 | |
e6cc62c6 | 4911 | fi; |
10f2d63a | 4912 | |
1e6feb95 | 4913 | eval "$ac_cv_use_textfile" |
10f2d63a | 4914 | if test "$no_cache" != 1; then |
1e6feb95 | 4915 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4916 | fi |
4917 | ||
1e6feb95 | 4918 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4919 | echo "$as_me:$LINENO: result: yes" >&5 |
4920 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4921 | else |
e6cc62c6 VS |
4922 | echo "$as_me:$LINENO: result: no" >&5 |
4923 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4924 | fi |
e6cc62c6 | 4925 | |
10f2d63a | 4926 | |
5005acfe | 4927 | enablestring= |
e6cc62c6 VS |
4928 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4929 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4930 | no_cache=0 |
1e6feb95 VZ |
4931 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4932 | if test "${enable_fontmap+set}" = set; then | |
4933 | enableval="$enable_fontmap" | |
e6cc62c6 | 4934 | |
10f2d63a | 4935 | if test "$enableval" = yes; then |
1e6feb95 | 4936 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4937 | else |
1e6feb95 | 4938 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4939 | fi |
e6cc62c6 | 4940 | |
10f2d63a | 4941 | else |
e6cc62c6 | 4942 | |
1e6feb95 | 4943 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4944 | if test "x$LINE" != x ; then |
4945 | eval "DEFAULT_$LINE" | |
4946 | else | |
4947 | no_cache=1 | |
4948 | fi | |
4949 | ||
1e6feb95 | 4950 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4951 | |
e6cc62c6 | 4952 | fi; |
10f2d63a | 4953 | |
1e6feb95 | 4954 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4955 | if test "$no_cache" != 1; then |
1e6feb95 | 4956 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4957 | fi |
4958 | ||
1e6feb95 | 4959 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4960 | echo "$as_me:$LINENO: result: yes" >&5 |
4961 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4962 | else |
e6cc62c6 VS |
4963 | echo "$as_me:$LINENO: result: no" >&5 |
4964 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4965 | fi |
e6cc62c6 | 4966 | |
10f2d63a | 4967 | |
5005acfe | 4968 | enablestring= |
e6cc62c6 VS |
4969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4970 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4971 | no_cache=0 |
1e6feb95 VZ |
4972 | # Check whether --enable-unicode or --disable-unicode was given. |
4973 | if test "${enable_unicode+set}" = set; then | |
4974 | enableval="$enable_unicode" | |
e6cc62c6 | 4975 | |
1e6feb95 VZ |
4976 | if test "$enableval" = yes; then |
4977 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4978 | else | |
4979 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4980 | fi | |
e6cc62c6 | 4981 | |
1e6feb95 | 4982 | else |
e6cc62c6 | 4983 | |
1e6feb95 VZ |
4984 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4985 | if test "x$LINE" != x ; then | |
4986 | eval "DEFAULT_$LINE" | |
4987 | else | |
4988 | no_cache=1 | |
4989 | fi | |
4990 | ||
4991 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 4992 | |
e6cc62c6 | 4993 | fi; |
1e6feb95 VZ |
4994 | |
4995 | eval "$ac_cv_use_unicode" | |
4996 | if test "$no_cache" != 1; then | |
4997 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4998 | fi | |
4999 | ||
5000 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
5001 | echo "$as_me:$LINENO: result: yes" >&5 |
5002 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5003 | else |
e6cc62c6 VS |
5004 | echo "$as_me:$LINENO: result: no" >&5 |
5005 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5006 | fi |
e6cc62c6 | 5007 | |
1e6feb95 | 5008 | |
5005acfe | 5009 | enablestring= |
e6cc62c6 VS |
5010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5011 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5012 | no_cache=0 |
5013 | # Check whether --enable-mslu or --disable-mslu was given. | |
5014 | if test "${enable_mslu+set}" = set; then | |
5015 | enableval="$enable_mslu" | |
e6cc62c6 | 5016 | |
a72a4bfa VS |
5017 | if test "$enableval" = yes; then |
5018 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5019 | else | |
5020 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5021 | fi | |
e6cc62c6 | 5022 | |
a72a4bfa | 5023 | else |
e6cc62c6 | 5024 | |
a72a4bfa VS |
5025 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5026 | if test "x$LINE" != x ; then | |
5027 | eval "DEFAULT_$LINE" | |
5028 | else | |
5029 | no_cache=1 | |
5030 | fi | |
5031 | ||
5032 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5033 | |
e6cc62c6 | 5034 | fi; |
a72a4bfa VS |
5035 | |
5036 | eval "$ac_cv_use_mslu" | |
5037 | if test "$no_cache" != 1; then | |
5038 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5039 | fi | |
5040 | ||
5041 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5042 | echo "$as_me:$LINENO: result: yes" >&5 |
5043 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5044 | else |
e6cc62c6 VS |
5045 | echo "$as_me:$LINENO: result: no" >&5 |
5046 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5047 | fi |
e6cc62c6 | 5048 | |
a72a4bfa | 5049 | |
5005acfe | 5050 | enablestring= |
e6cc62c6 VS |
5051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5052 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5053 | no_cache=0 |
5054 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5055 | if test "${enable_wxprintfv+set}" = set; then | |
5056 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5057 | |
1e6feb95 | 5058 | if test "$enableval" = yes; then |
10f2d63a VZ |
5059 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5060 | else | |
5061 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5062 | fi | |
e6cc62c6 | 5063 | |
10f2d63a | 5064 | else |
e6cc62c6 | 5065 | |
10f2d63a VZ |
5066 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5067 | if test "x$LINE" != x ; then | |
5068 | eval "DEFAULT_$LINE" | |
5069 | else | |
5070 | no_cache=1 | |
5071 | fi | |
5072 | ||
5073 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5074 | |
e6cc62c6 | 5075 | fi; |
10f2d63a VZ |
5076 | |
5077 | eval "$ac_cv_use_wxprintfv" | |
5078 | if test "$no_cache" != 1; then | |
5079 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5080 | fi | |
5081 | ||
5082 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5083 | echo "$as_me:$LINENO: result: yes" >&5 |
5084 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5085 | else |
e6cc62c6 VS |
5086 | echo "$as_me:$LINENO: result: no" >&5 |
5087 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5088 | fi |
e6cc62c6 | 5089 | |
10f2d63a | 5090 | |
5005acfe | 5091 | enablestring= |
e6cc62c6 VS |
5092 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5093 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5094 | no_cache=0 |
5095 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5096 | if test "${enable_std_iostreams+set}" = set; then | |
5097 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5098 | |
10f2d63a VZ |
5099 | if test "$enableval" = yes; then |
5100 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5101 | else | |
5102 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5103 | fi | |
e6cc62c6 | 5104 | |
10f2d63a | 5105 | else |
e6cc62c6 | 5106 | |
10f2d63a VZ |
5107 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5108 | if test "x$LINE" != x ; then | |
5109 | eval "DEFAULT_$LINE" | |
5110 | else | |
5111 | no_cache=1 | |
5112 | fi | |
5113 | ||
5114 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5115 | |
e6cc62c6 | 5116 | fi; |
10f2d63a VZ |
5117 | |
5118 | eval "$ac_cv_use_std_iostreams" | |
5119 | if test "$no_cache" != 1; then | |
5120 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5121 | fi | |
5122 | ||
5123 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5124 | echo "$as_me:$LINENO: result: yes" >&5 |
5125 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5126 | else |
e6cc62c6 VS |
5127 | echo "$as_me:$LINENO: result: no" >&5 |
5128 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5129 | fi |
e6cc62c6 | 5130 | |
10f2d63a | 5131 | |
5005acfe | 5132 | enablestring= |
e6cc62c6 VS |
5133 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5134 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5135 | no_cache=0 |
5136 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5137 | if test "${enable_filesystem+set}" = set; then | |
5138 | enableval="$enable_filesystem" | |
e6cc62c6 | 5139 | |
24528b0c VS |
5140 | if test "$enableval" = yes; then |
5141 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5142 | else | |
5143 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5144 | fi | |
e6cc62c6 | 5145 | |
24528b0c | 5146 | else |
e6cc62c6 | 5147 | |
24528b0c VS |
5148 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5149 | if test "x$LINE" != x ; then | |
5150 | eval "DEFAULT_$LINE" | |
5151 | else | |
5152 | no_cache=1 | |
5153 | fi | |
5154 | ||
5155 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5156 | |
e6cc62c6 | 5157 | fi; |
24528b0c VS |
5158 | |
5159 | eval "$ac_cv_use_filesystem" | |
5160 | if test "$no_cache" != 1; then | |
5161 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5162 | fi | |
5163 | ||
5164 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5165 | echo "$as_me:$LINENO: result: yes" >&5 |
5166 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5167 | else |
e6cc62c6 VS |
5168 | echo "$as_me:$LINENO: result: no" >&5 |
5169 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5170 | fi |
e6cc62c6 | 5171 | |
24528b0c | 5172 | |
5005acfe | 5173 | enablestring= |
e6cc62c6 VS |
5174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5175 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5176 | no_cache=0 |
5177 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5178 | if test "${enable_fs_inet+set}" = set; then | |
5179 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5180 | |
10f2d63a VZ |
5181 | if test "$enableval" = yes; then |
5182 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5183 | else | |
5184 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5185 | fi | |
e6cc62c6 | 5186 | |
10f2d63a | 5187 | else |
e6cc62c6 | 5188 | |
10f2d63a VZ |
5189 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5190 | if test "x$LINE" != x ; then | |
5191 | eval "DEFAULT_$LINE" | |
5192 | else | |
5193 | no_cache=1 | |
5194 | fi | |
5195 | ||
5196 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5197 | |
e6cc62c6 | 5198 | fi; |
10f2d63a VZ |
5199 | |
5200 | eval "$ac_cv_use_fs_inet" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5206 | echo "$as_me:$LINENO: result: yes" >&5 |
5207 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5208 | else |
e6cc62c6 VS |
5209 | echo "$as_me:$LINENO: result: no" >&5 |
5210 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5211 | fi |
e6cc62c6 | 5212 | |
10f2d63a | 5213 | |
5005acfe | 5214 | enablestring= |
e6cc62c6 VS |
5215 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5216 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5217 | no_cache=0 |
5218 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5219 | if test "${enable_fs_zip+set}" = set; then | |
5220 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5221 | |
10f2d63a VZ |
5222 | if test "$enableval" = yes; then |
5223 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5224 | else | |
5225 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5226 | fi | |
e6cc62c6 | 5227 | |
10f2d63a | 5228 | else |
e6cc62c6 | 5229 | |
10f2d63a VZ |
5230 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5231 | if test "x$LINE" != x ; then | |
5232 | eval "DEFAULT_$LINE" | |
5233 | else | |
5234 | no_cache=1 | |
5235 | fi | |
5236 | ||
5237 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5238 | |
e6cc62c6 | 5239 | fi; |
10f2d63a VZ |
5240 | |
5241 | eval "$ac_cv_use_fs_zip" | |
5242 | if test "$no_cache" != 1; then | |
5243 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5244 | fi | |
5245 | ||
5246 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5247 | echo "$as_me:$LINENO: result: yes" >&5 |
5248 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5249 | else |
e6cc62c6 VS |
5250 | echo "$as_me:$LINENO: result: no" >&5 |
5251 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5252 | fi |
e6cc62c6 | 5253 | |
10f2d63a | 5254 | |
5005acfe | 5255 | enablestring= |
e6cc62c6 VS |
5256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5257 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5258 | no_cache=0 |
5259 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5260 | if test "${enable_zipstream+set}" = set; then | |
5261 | enableval="$enable_zipstream" | |
e6cc62c6 | 5262 | |
10f2d63a VZ |
5263 | if test "$enableval" = yes; then |
5264 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5265 | else | |
5266 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5267 | fi | |
e6cc62c6 | 5268 | |
10f2d63a | 5269 | else |
e6cc62c6 | 5270 | |
10f2d63a VZ |
5271 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5272 | if test "x$LINE" != x ; then | |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
5278 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5279 | |
e6cc62c6 | 5280 | fi; |
10f2d63a VZ |
5281 | |
5282 | eval "$ac_cv_use_zipstream" | |
5283 | if test "$no_cache" != 1; then | |
5284 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5285 | fi | |
5286 | ||
5287 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5288 | echo "$as_me:$LINENO: result: yes" >&5 |
5289 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5290 | else |
e6cc62c6 VS |
5291 | echo "$as_me:$LINENO: result: no" >&5 |
5292 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5293 | fi |
e6cc62c6 | 5294 | |
8284b0c5 | 5295 | |
52127426 | 5296 | |
5005acfe | 5297 | enablestring= |
e6cc62c6 VS |
5298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5299 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5300 | no_cache=0 |
5301 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5302 | if test "${enable_catch_segvs+set}" = set; then | |
5303 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5304 | |
eb4efbdc VZ |
5305 | if test "$enableval" = yes; then |
5306 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5307 | else | |
5308 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5309 | fi | |
e6cc62c6 | 5310 | |
eb4efbdc | 5311 | else |
e6cc62c6 | 5312 | |
eb4efbdc VZ |
5313 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5314 | if test "x$LINE" != x ; then | |
5315 | eval "DEFAULT_$LINE" | |
5316 | else | |
5317 | no_cache=1 | |
5318 | fi | |
5319 | ||
5320 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5321 | |
e6cc62c6 | 5322 | fi; |
eb4efbdc VZ |
5323 | |
5324 | eval "$ac_cv_use_catch_segvs" | |
5325 | if test "$no_cache" != 1; then | |
5326 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5327 | fi | |
5328 | ||
5329 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5330 | echo "$as_me:$LINENO: result: yes" >&5 |
5331 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5332 | else |
e6cc62c6 VS |
5333 | echo "$as_me:$LINENO: result: no" >&5 |
5334 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5335 | fi |
e6cc62c6 | 5336 | |
eb4efbdc | 5337 | |
5005acfe | 5338 | enablestring= |
e6cc62c6 VS |
5339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5340 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5341 | no_cache=0 |
5342 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5343 | if test "${enable_snglinst+set}" = set; then | |
5344 | enableval="$enable_snglinst" | |
e6cc62c6 | 5345 | |
4f3c5f06 VZ |
5346 | if test "$enableval" = yes; then |
5347 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5348 | else | |
5349 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5350 | fi | |
e6cc62c6 | 5351 | |
4f3c5f06 | 5352 | else |
e6cc62c6 | 5353 | |
4f3c5f06 VZ |
5354 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5355 | if test "x$LINE" != x ; then | |
5356 | eval "DEFAULT_$LINE" | |
5357 | else | |
5358 | no_cache=1 | |
5359 | fi | |
5360 | ||
5361 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5362 | |
e6cc62c6 | 5363 | fi; |
4f3c5f06 VZ |
5364 | |
5365 | eval "$ac_cv_use_snglinst" | |
5366 | if test "$no_cache" != 1; then | |
5367 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5368 | fi | |
5369 | ||
5370 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5371 | echo "$as_me:$LINENO: result: yes" >&5 |
5372 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5373 | else |
e6cc62c6 VS |
5374 | echo "$as_me:$LINENO: result: no" >&5 |
5375 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5376 | fi |
e6cc62c6 | 5377 | |
52127426 | 5378 | |
8284b0c5 | 5379 | |
5005acfe | 5380 | enablestring= |
e6cc62c6 VS |
5381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5382 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5383 | no_cache=0 |
5384 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5385 | if test "${enable_mimetype+set}" = set; then | |
5386 | enableval="$enable_mimetype" | |
e6cc62c6 | 5387 | |
1e6feb95 VZ |
5388 | if test "$enableval" = yes; then |
5389 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5390 | else | |
5391 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5392 | fi | |
e6cc62c6 | 5393 | |
1e6feb95 | 5394 | else |
e6cc62c6 | 5395 | |
1e6feb95 VZ |
5396 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5397 | if test "x$LINE" != x ; then | |
5398 | eval "DEFAULT_$LINE" | |
5399 | else | |
5400 | no_cache=1 | |
5401 | fi | |
5402 | ||
5403 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5404 | |
e6cc62c6 | 5405 | fi; |
1e6feb95 VZ |
5406 | |
5407 | eval "$ac_cv_use_mimetype" | |
5408 | if test "$no_cache" != 1; then | |
5409 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5410 | fi | |
5411 | ||
5412 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5413 | echo "$as_me:$LINENO: result: yes" >&5 |
5414 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5415 | else |
e6cc62c6 VS |
5416 | echo "$as_me:$LINENO: result: no" >&5 |
5417 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5418 | fi |
e6cc62c6 | 5419 | |
1e6feb95 | 5420 | |
5005acfe | 5421 | enablestring= |
e6cc62c6 VS |
5422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5423 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5424 | no_cache=0 |
5425 | # Check whether --enable-system_options or --disable-system_options was given. | |
5426 | if test "${enable_system_options+set}" = set; then | |
5427 | enableval="$enable_system_options" | |
e6cc62c6 | 5428 | |
3e44f09d VZ |
5429 | if test "$enableval" = yes; then |
5430 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5431 | else | |
5432 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5433 | fi | |
e6cc62c6 | 5434 | |
3e44f09d | 5435 | else |
e6cc62c6 | 5436 | |
3e44f09d VZ |
5437 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5438 | if test "x$LINE" != x ; then | |
5439 | eval "DEFAULT_$LINE" | |
5440 | else | |
5441 | no_cache=1 | |
5442 | fi | |
5443 | ||
5444 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5445 | |
e6cc62c6 | 5446 | fi; |
3e44f09d VZ |
5447 | |
5448 | eval "$ac_cv_use_system_options" | |
5449 | if test "$no_cache" != 1; then | |
5450 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5451 | fi | |
5452 | ||
5453 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5454 | echo "$as_me:$LINENO: result: yes" >&5 |
5455 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5456 | else |
e6cc62c6 VS |
5457 | echo "$as_me:$LINENO: result: no" >&5 |
5458 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5459 | fi |
e6cc62c6 | 5460 | |
8284b0c5 | 5461 | |
52127426 | 5462 | |
5005acfe | 5463 | enablestring= |
e6cc62c6 VS |
5464 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5465 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5466 | no_cache=0 |
5467 | # Check whether --enable-url or --disable-url was given. | |
5468 | if test "${enable_url+set}" = set; then | |
5469 | enableval="$enable_url" | |
e6cc62c6 | 5470 | |
4cdb0ab0 VS |
5471 | if test "$enableval" = yes; then |
5472 | ac_cv_use_url='wxUSE_URL=yes' | |
5473 | else | |
5474 | ac_cv_use_url='wxUSE_URL=no' | |
5475 | fi | |
e6cc62c6 | 5476 | |
4cdb0ab0 | 5477 | else |
e6cc62c6 | 5478 | |
4cdb0ab0 VS |
5479 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5480 | if test "x$LINE" != x ; then | |
5481 | eval "DEFAULT_$LINE" | |
5482 | else | |
5483 | no_cache=1 | |
5484 | fi | |
5485 | ||
5486 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5487 | |
e6cc62c6 | 5488 | fi; |
4cdb0ab0 VS |
5489 | |
5490 | eval "$ac_cv_use_url" | |
5491 | if test "$no_cache" != 1; then | |
5492 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5493 | fi | |
5494 | ||
5495 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5496 | echo "$as_me:$LINENO: result: yes" >&5 |
5497 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5498 | else |
e6cc62c6 VS |
5499 | echo "$as_me:$LINENO: result: no" >&5 |
5500 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5501 | fi |
e6cc62c6 | 5502 | |
4cdb0ab0 | 5503 | |
5005acfe | 5504 | enablestring= |
e6cc62c6 VS |
5505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5506 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5507 | no_cache=0 |
5508 | # Check whether --enable-protocol or --disable-protocol was given. | |
5509 | if test "${enable_protocol+set}" = set; then | |
5510 | enableval="$enable_protocol" | |
e6cc62c6 | 5511 | |
4cdb0ab0 VS |
5512 | if test "$enableval" = yes; then |
5513 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5514 | else | |
5515 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5516 | fi | |
e6cc62c6 | 5517 | |
4cdb0ab0 | 5518 | else |
e6cc62c6 | 5519 | |
4cdb0ab0 VS |
5520 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5521 | if test "x$LINE" != x ; then | |
5522 | eval "DEFAULT_$LINE" | |
5523 | else | |
5524 | no_cache=1 | |
5525 | fi | |
5526 | ||
5527 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5528 | |
e6cc62c6 | 5529 | fi; |
4cdb0ab0 VS |
5530 | |
5531 | eval "$ac_cv_use_protocol" | |
5532 | if test "$no_cache" != 1; then | |
5533 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5534 | fi | |
5535 | ||
5536 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5537 | echo "$as_me:$LINENO: result: yes" >&5 |
5538 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5539 | else |
e6cc62c6 VS |
5540 | echo "$as_me:$LINENO: result: no" >&5 |
5541 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5542 | fi |
e6cc62c6 | 5543 | |
4cdb0ab0 | 5544 | |
5005acfe | 5545 | enablestring= |
e6cc62c6 VS |
5546 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5547 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5548 | no_cache=0 |
5549 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5550 | if test "${enable_protocol_http+set}" = set; then | |
5551 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5552 | |
4cdb0ab0 VS |
5553 | if test "$enableval" = yes; then |
5554 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5555 | else | |
5556 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5557 | fi | |
e6cc62c6 | 5558 | |
4cdb0ab0 | 5559 | else |
e6cc62c6 | 5560 | |
4cdb0ab0 VS |
5561 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5562 | if test "x$LINE" != x ; then | |
5563 | eval "DEFAULT_$LINE" | |
5564 | else | |
5565 | no_cache=1 | |
5566 | fi | |
5567 | ||
5568 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5569 | |
e6cc62c6 | 5570 | fi; |
4cdb0ab0 VS |
5571 | |
5572 | eval "$ac_cv_use_protocol_http" | |
5573 | if test "$no_cache" != 1; then | |
5574 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5575 | fi | |
5576 | ||
5577 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5578 | echo "$as_me:$LINENO: result: yes" >&5 |
5579 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5580 | else |
e6cc62c6 VS |
5581 | echo "$as_me:$LINENO: result: no" >&5 |
5582 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5583 | fi |
e6cc62c6 | 5584 | |
4cdb0ab0 | 5585 | |
5005acfe | 5586 | enablestring= |
e6cc62c6 VS |
5587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5588 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5589 | no_cache=0 |
5590 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5591 | if test "${enable_protocol_ftp+set}" = set; then | |
5592 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5593 | |
4cdb0ab0 VS |
5594 | if test "$enableval" = yes; then |
5595 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5596 | else | |
5597 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5598 | fi | |
e6cc62c6 | 5599 | |
4cdb0ab0 | 5600 | else |
e6cc62c6 | 5601 | |
4cdb0ab0 VS |
5602 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5603 | if test "x$LINE" != x ; then | |
5604 | eval "DEFAULT_$LINE" | |
5605 | else | |
5606 | no_cache=1 | |
5607 | fi | |
5608 | ||
5609 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5610 | |
e6cc62c6 | 5611 | fi; |
4cdb0ab0 VS |
5612 | |
5613 | eval "$ac_cv_use_protocol_ftp" | |
5614 | if test "$no_cache" != 1; then | |
5615 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5616 | fi | |
5617 | ||
5618 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5619 | echo "$as_me:$LINENO: result: yes" >&5 |
5620 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5621 | else |
e6cc62c6 VS |
5622 | echo "$as_me:$LINENO: result: no" >&5 |
5623 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5624 | fi |
e6cc62c6 | 5625 | |
4cdb0ab0 | 5626 | |
5005acfe | 5627 | enablestring= |
e6cc62c6 VS |
5628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5629 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5630 | no_cache=0 |
5631 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5632 | if test "${enable_protocol_file+set}" = set; then | |
5633 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5634 | |
4cdb0ab0 VS |
5635 | if test "$enableval" = yes; then |
5636 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5637 | else | |
5638 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5639 | fi | |
e6cc62c6 | 5640 | |
4cdb0ab0 | 5641 | else |
e6cc62c6 | 5642 | |
4cdb0ab0 VS |
5643 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5644 | if test "x$LINE" != x ; then | |
5645 | eval "DEFAULT_$LINE" | |
5646 | else | |
5647 | no_cache=1 | |
5648 | fi | |
5649 | ||
5650 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5651 | |
e6cc62c6 | 5652 | fi; |
4cdb0ab0 VS |
5653 | |
5654 | eval "$ac_cv_use_protocol_file" | |
5655 | if test "$no_cache" != 1; then | |
5656 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5657 | fi | |
5658 | ||
5659 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5660 | echo "$as_me:$LINENO: result: yes" >&5 |
5661 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5662 | else |
e6cc62c6 VS |
5663 | echo "$as_me:$LINENO: result: no" >&5 |
5664 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5665 | fi |
e6cc62c6 | 5666 | |
52127426 | 5667 | |
8284b0c5 MB |
5668 | |
5669 | ||
5670 | ||
5005acfe | 5671 | enablestring= |
e6cc62c6 VS |
5672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5673 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5674 | no_cache=0 |
5675 | # Check whether --enable-threads or --disable-threads was given. | |
5676 | if test "${enable_threads+set}" = set; then | |
5677 | enableval="$enable_threads" | |
e6cc62c6 | 5678 | |
10f2d63a VZ |
5679 | if test "$enableval" = yes; then |
5680 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5681 | else | |
5682 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5683 | fi | |
e6cc62c6 | 5684 | |
10f2d63a | 5685 | else |
e6cc62c6 | 5686 | |
10f2d63a VZ |
5687 | LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5695 | |
e6cc62c6 | 5696 | fi; |
10f2d63a VZ |
5697 | |
5698 | eval "$ac_cv_use_threads" | |
5699 | if test "$no_cache" != 1; then | |
5700 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5701 | fi | |
5702 | ||
5703 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5704 | echo "$as_me:$LINENO: result: yes" >&5 |
5705 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5706 | else |
e6cc62c6 VS |
5707 | echo "$as_me:$LINENO: result: no" >&5 |
5708 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5709 | fi |
e6cc62c6 | 5710 | |
10f2d63a | 5711 | |
b12915c1 VZ |
5712 | if test "$wxUSE_GUI" = "yes"; then |
5713 | ||
8284b0c5 MB |
5714 | |
5715 | ||
5005acfe | 5716 | enablestring= |
e6cc62c6 VS |
5717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5718 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5719 | no_cache=0 |
5720 | # Check whether --enable-docview or --disable-docview was given. | |
5721 | if test "${enable_docview+set}" = set; then | |
5722 | enableval="$enable_docview" | |
e6cc62c6 | 5723 | |
10f2d63a VZ |
5724 | if test "$enableval" = yes; then |
5725 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5726 | else | |
5727 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5728 | fi | |
e6cc62c6 | 5729 | |
10f2d63a | 5730 | else |
e6cc62c6 | 5731 | |
10f2d63a VZ |
5732 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5733 | if test "x$LINE" != x ; then | |
5734 | eval "DEFAULT_$LINE" | |
5735 | else | |
5736 | no_cache=1 | |
5737 | fi | |
5738 | ||
5739 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5740 | |
e6cc62c6 | 5741 | fi; |
10f2d63a VZ |
5742 | |
5743 | eval "$ac_cv_use_docview" | |
5744 | if test "$no_cache" != 1; then | |
5745 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5746 | fi | |
5747 | ||
5748 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5749 | echo "$as_me:$LINENO: result: yes" >&5 |
5750 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5751 | else |
e6cc62c6 VS |
5752 | echo "$as_me:$LINENO: result: no" >&5 |
5753 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5754 | fi |
e6cc62c6 | 5755 | |
10f2d63a | 5756 | |
5005acfe | 5757 | enablestring= |
e6cc62c6 VS |
5758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5759 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5760 | no_cache=0 |
5761 | # Check whether --enable-help or --disable-help was given. | |
5762 | if test "${enable_help+set}" = set; then | |
5763 | enableval="$enable_help" | |
e6cc62c6 | 5764 | |
10f2d63a VZ |
5765 | if test "$enableval" = yes; then |
5766 | ac_cv_use_help='wxUSE_HELP=yes' | |
5767 | else | |
5768 | ac_cv_use_help='wxUSE_HELP=no' | |
5769 | fi | |
e6cc62c6 | 5770 | |
10f2d63a | 5771 | else |
e6cc62c6 | 5772 | |
10f2d63a VZ |
5773 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5781 | |
e6cc62c6 | 5782 | fi; |
10f2d63a VZ |
5783 | |
5784 | eval "$ac_cv_use_help" | |
5785 | if test "$no_cache" != 1; then | |
5786 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5787 | fi | |
5788 | ||
5789 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5790 | echo "$as_me:$LINENO: result: yes" >&5 |
5791 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5792 | else |
e6cc62c6 VS |
5793 | echo "$as_me:$LINENO: result: no" >&5 |
5794 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5795 | fi |
e6cc62c6 | 5796 | |
10f2d63a | 5797 | |
5005acfe | 5798 | enablestring= |
e6cc62c6 VS |
5799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5800 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5801 | no_cache=0 |
5802 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5803 | if test "${enable_mshtmlhelp+set}" = set; then | |
5804 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5805 | |
29fd3c0c VS |
5806 | if test "$enableval" = yes; then |
5807 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5808 | else | |
5809 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5810 | fi | |
e6cc62c6 | 5811 | |
29fd3c0c | 5812 | else |
e6cc62c6 | 5813 | |
29fd3c0c VS |
5814 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5815 | if test "x$LINE" != x ; then | |
5816 | eval "DEFAULT_$LINE" | |
5817 | else | |
5818 | no_cache=1 | |
5819 | fi | |
5820 | ||
5821 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5822 | |
e6cc62c6 | 5823 | fi; |
29fd3c0c VS |
5824 | |
5825 | eval "$ac_cv_use_mshtmlhelp" | |
5826 | if test "$no_cache" != 1; then | |
5827 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5828 | fi | |
5829 | ||
5830 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5831 | echo "$as_me:$LINENO: result: yes" >&5 |
5832 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5833 | else |
e6cc62c6 VS |
5834 | echo "$as_me:$LINENO: result: no" >&5 |
5835 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5836 | fi |
e6cc62c6 | 5837 | |
29fd3c0c | 5838 | |
5005acfe | 5839 | enablestring= |
e6cc62c6 VS |
5840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5841 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5842 | no_cache=0 |
5843 | # Check whether --enable-html or --disable-html was given. | |
5844 | if test "${enable_html+set}" = set; then | |
5845 | enableval="$enable_html" | |
e6cc62c6 | 5846 | |
3379ed37 VZ |
5847 | if test "$enableval" = yes; then |
5848 | ac_cv_use_html='wxUSE_HTML=yes' | |
5849 | else | |
5850 | ac_cv_use_html='wxUSE_HTML=no' | |
5851 | fi | |
e6cc62c6 | 5852 | |
3379ed37 | 5853 | else |
e6cc62c6 | 5854 | |
3379ed37 VZ |
5855 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5856 | if test "x$LINE" != x ; then | |
5857 | eval "DEFAULT_$LINE" | |
5858 | else | |
5859 | no_cache=1 | |
5860 | fi | |
5861 | ||
5862 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5863 | |
e6cc62c6 | 5864 | fi; |
3379ed37 VZ |
5865 | |
5866 | eval "$ac_cv_use_html" | |
5867 | if test "$no_cache" != 1; then | |
5868 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5869 | fi | |
5870 | ||
5871 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5872 | echo "$as_me:$LINENO: result: yes" >&5 |
5873 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5874 | else |
e6cc62c6 VS |
5875 | echo "$as_me:$LINENO: result: no" >&5 |
5876 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5877 | fi |
e6cc62c6 | 5878 | |
3379ed37 | 5879 | |
5005acfe | 5880 | enablestring= |
e6cc62c6 VS |
5881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5882 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5883 | no_cache=0 |
5884 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5885 | if test "${enable_htmlhelp+set}" = set; then | |
5886 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5887 | |
3379ed37 VZ |
5888 | if test "$enableval" = yes; then |
5889 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5890 | else | |
5891 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5892 | fi | |
e6cc62c6 | 5893 | |
3379ed37 | 5894 | else |
e6cc62c6 | 5895 | |
3379ed37 VZ |
5896 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5897 | if test "x$LINE" != x ; then | |
5898 | eval "DEFAULT_$LINE" | |
5899 | else | |
5900 | no_cache=1 | |
5901 | fi | |
5902 | ||
5903 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5904 | |
e6cc62c6 | 5905 | fi; |
3379ed37 VZ |
5906 | |
5907 | eval "$ac_cv_use_htmlhelp" | |
5908 | if test "$no_cache" != 1; then | |
5909 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5910 | fi | |
5911 | ||
5912 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5913 | echo "$as_me:$LINENO: result: yes" >&5 |
5914 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5915 | else |
e6cc62c6 VS |
5916 | echo "$as_me:$LINENO: result: no" >&5 |
5917 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5918 | fi |
e6cc62c6 | 5919 | |
3379ed37 | 5920 | |
5005acfe | 5921 | enablestring= |
e6cc62c6 VS |
5922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5923 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5924 | no_cache=0 |
5925 | # Check whether --enable-constraints or --disable-constraints was given. | |
5926 | if test "${enable_constraints+set}" = set; then | |
5927 | enableval="$enable_constraints" | |
e6cc62c6 | 5928 | |
10f2d63a VZ |
5929 | if test "$enableval" = yes; then |
5930 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5931 | else | |
5932 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5933 | fi | |
e6cc62c6 | 5934 | |
10f2d63a | 5935 | else |
e6cc62c6 | 5936 | |
10f2d63a VZ |
5937 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5938 | if test "x$LINE" != x ; then | |
5939 | eval "DEFAULT_$LINE" | |
5940 | else | |
5941 | no_cache=1 | |
5942 | fi | |
5943 | ||
5944 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5945 | |
e6cc62c6 | 5946 | fi; |
10f2d63a VZ |
5947 | |
5948 | eval "$ac_cv_use_constraints" | |
5949 | if test "$no_cache" != 1; then | |
5950 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5951 | fi | |
5952 | ||
5953 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5954 | echo "$as_me:$LINENO: result: yes" >&5 |
5955 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5956 | else |
e6cc62c6 VS |
5957 | echo "$as_me:$LINENO: result: no" >&5 |
5958 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5959 | fi |
e6cc62c6 | 5960 | |
10f2d63a | 5961 | |
5005acfe | 5962 | enablestring= |
e6cc62c6 VS |
5963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5964 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5965 | no_cache=0 |
5966 | # Check whether --enable-printarch or --disable-printarch was given. | |
5967 | if test "${enable_printarch+set}" = set; then | |
5968 | enableval="$enable_printarch" | |
e6cc62c6 | 5969 | |
10f2d63a VZ |
5970 | if test "$enableval" = yes; then |
5971 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5972 | else | |
5973 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5974 | fi | |
e6cc62c6 | 5975 | |
10f2d63a | 5976 | else |
e6cc62c6 | 5977 | |
10f2d63a VZ |
5978 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5979 | if test "x$LINE" != x ; then | |
5980 | eval "DEFAULT_$LINE" | |
5981 | else | |
5982 | no_cache=1 | |
5983 | fi | |
5984 | ||
5985 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5986 | |
e6cc62c6 | 5987 | fi; |
10f2d63a VZ |
5988 | |
5989 | eval "$ac_cv_use_printarch" | |
5990 | if test "$no_cache" != 1; then | |
5991 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5992 | fi | |
5993 | ||
5994 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5995 | echo "$as_me:$LINENO: result: yes" >&5 |
5996 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5997 | else |
e6cc62c6 VS |
5998 | echo "$as_me:$LINENO: result: no" >&5 |
5999 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6000 | fi |
e6cc62c6 | 6001 | |
10f2d63a | 6002 | |
5005acfe | 6003 | enablestring= |
e6cc62c6 VS |
6004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6005 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6006 | no_cache=0 |
6007 | # Check whether --enable-mdi or --disable-mdi was given. | |
6008 | if test "${enable_mdi+set}" = set; then | |
6009 | enableval="$enable_mdi" | |
e6cc62c6 | 6010 | |
10f2d63a VZ |
6011 | if test "$enableval" = yes; then |
6012 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6013 | else | |
6014 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6015 | fi | |
e6cc62c6 | 6016 | |
10f2d63a | 6017 | else |
e6cc62c6 | 6018 | |
10f2d63a VZ |
6019 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6020 | if test "x$LINE" != x ; then | |
6021 | eval "DEFAULT_$LINE" | |
6022 | else | |
6023 | no_cache=1 | |
6024 | fi | |
6025 | ||
6026 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6027 | |
e6cc62c6 | 6028 | fi; |
10f2d63a VZ |
6029 | |
6030 | eval "$ac_cv_use_mdi" | |
6031 | if test "$no_cache" != 1; then | |
6032 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6033 | fi | |
6034 | ||
6035 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6036 | echo "$as_me:$LINENO: result: yes" >&5 |
6037 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6038 | else |
e6cc62c6 VS |
6039 | echo "$as_me:$LINENO: result: no" >&5 |
6040 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6041 | fi |
e6cc62c6 | 6042 | |
698dcdb6 | 6043 | |
5005acfe | 6044 | enablestring= |
e6cc62c6 VS |
6045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6046 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6047 | no_cache=0 |
6048 | # Check whether --enable-loggui or --disable-loggui was given. | |
6049 | if test "${enable_loggui+set}" = set; then | |
6050 | enableval="$enable_loggui" | |
e6cc62c6 | 6051 | |
1e6feb95 VZ |
6052 | if test "$enableval" = yes; then |
6053 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6054 | else | |
6055 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6056 | fi | |
e6cc62c6 | 6057 | |
1e6feb95 | 6058 | else |
e6cc62c6 | 6059 | |
1e6feb95 VZ |
6060 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6068 | |
e6cc62c6 | 6069 | fi; |
1e6feb95 VZ |
6070 | |
6071 | eval "$ac_cv_use_loggui" | |
6072 | if test "$no_cache" != 1; then | |
6073 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6074 | fi | |
6075 | ||
6076 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6077 | echo "$as_me:$LINENO: result: yes" >&5 |
6078 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6079 | else |
e6cc62c6 VS |
6080 | echo "$as_me:$LINENO: result: no" >&5 |
6081 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6082 | fi |
e6cc62c6 | 6083 | |
1e6feb95 | 6084 | |
5005acfe | 6085 | enablestring= |
e6cc62c6 VS |
6086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6087 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6088 | no_cache=0 |
6089 | # Check whether --enable-logwin or --disable-logwin was given. | |
6090 | if test "${enable_logwin+set}" = set; then | |
6091 | enableval="$enable_logwin" | |
e6cc62c6 | 6092 | |
1e6feb95 VZ |
6093 | if test "$enableval" = yes; then |
6094 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6095 | else | |
6096 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6097 | fi | |
e6cc62c6 | 6098 | |
1e6feb95 | 6099 | else |
e6cc62c6 | 6100 | |
1e6feb95 VZ |
6101 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6102 | if test "x$LINE" != x ; then | |
6103 | eval "DEFAULT_$LINE" | |
6104 | else | |
6105 | no_cache=1 | |
6106 | fi | |
6107 | ||
6108 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6109 | |
e6cc62c6 | 6110 | fi; |
1e6feb95 VZ |
6111 | |
6112 | eval "$ac_cv_use_logwin" | |
6113 | if test "$no_cache" != 1; then | |
6114 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6115 | fi | |
6116 | ||
6117 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6118 | echo "$as_me:$LINENO: result: yes" >&5 |
6119 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6120 | else |
e6cc62c6 VS |
6121 | echo "$as_me:$LINENO: result: no" >&5 |
6122 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6123 | fi |
e6cc62c6 | 6124 | |
1e6feb95 | 6125 | |
5005acfe | 6126 | enablestring= |
e6cc62c6 VS |
6127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6128 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6129 | no_cache=0 |
6130 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6131 | if test "${enable_logdialog+set}" = set; then | |
6132 | enableval="$enable_logdialog" | |
e6cc62c6 | 6133 | |
69d27ff7 MB |
6134 | if test "$enableval" = yes; then |
6135 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6136 | else | |
6137 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6138 | fi | |
e6cc62c6 | 6139 | |
69d27ff7 | 6140 | else |
e6cc62c6 | 6141 | |
69d27ff7 MB |
6142 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6143 | if test "x$LINE" != x ; then | |
6144 | eval "DEFAULT_$LINE" | |
6145 | else | |
6146 | no_cache=1 | |
6147 | fi | |
6148 | ||
6149 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6150 | |
e6cc62c6 | 6151 | fi; |
69d27ff7 MB |
6152 | |
6153 | eval "$ac_cv_use_logdialog" | |
6154 | if test "$no_cache" != 1; then | |
6155 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6156 | fi | |
6157 | ||
6158 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6159 | echo "$as_me:$LINENO: result: yes" >&5 |
6160 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6161 | else |
e6cc62c6 VS |
6162 | echo "$as_me:$LINENO: result: no" >&5 |
6163 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6164 | fi |
e6cc62c6 | 6165 | |
8284b0c5 | 6166 | |
52127426 | 6167 | |
5005acfe | 6168 | enablestring= |
e6cc62c6 VS |
6169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6170 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6171 | no_cache=0 |
6172 | # Check whether --enable-postscript or --disable-postscript was given. | |
6173 | if test "${enable_postscript+set}" = set; then | |
6174 | enableval="$enable_postscript" | |
e6cc62c6 | 6175 | |
10f2d63a VZ |
6176 | if test "$enableval" = yes; then |
6177 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6178 | else | |
6179 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6180 | fi | |
e6cc62c6 | 6181 | |
10f2d63a | 6182 | else |
e6cc62c6 | 6183 | |
10f2d63a VZ |
6184 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6185 | if test "x$LINE" != x ; then | |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
6191 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6192 | |
e6cc62c6 | 6193 | fi; |
10f2d63a VZ |
6194 | |
6195 | eval "$ac_cv_use_postscript" | |
6196 | if test "$no_cache" != 1; then | |
6197 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6198 | fi | |
6199 | ||
6200 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6201 | echo "$as_me:$LINENO: result: yes" >&5 |
6202 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6203 | else |
e6cc62c6 VS |
6204 | echo "$as_me:$LINENO: result: no" >&5 |
6205 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6206 | fi |
e6cc62c6 | 6207 | |
8284b0c5 MB |
6208 | |
6209 | ||
52127426 | 6210 | |
8284b0c5 | 6211 | |
5005acfe | 6212 | enablestring= |
e6cc62c6 VS |
6213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6214 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6215 | no_cache=0 |
3c907f20 VZ |
6216 | # Check whether --enable-prologio or --disable-prologio was given. |
6217 | if test "${enable_prologio+set}" = set; then | |
6218 | enableval="$enable_prologio" | |
e6cc62c6 | 6219 | |
10f2d63a | 6220 | if test "$enableval" = yes; then |
3c907f20 | 6221 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6222 | else |
3c907f20 | 6223 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6224 | fi |
e6cc62c6 | 6225 | |
10f2d63a | 6226 | else |
e6cc62c6 | 6227 | |
3c907f20 | 6228 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6229 | if test "x$LINE" != x ; then |
6230 | eval "DEFAULT_$LINE" | |
6231 | else | |
6232 | no_cache=1 | |
6233 | fi | |
6234 | ||
3c907f20 | 6235 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6236 | |
e6cc62c6 | 6237 | fi; |
10f2d63a | 6238 | |
3c907f20 | 6239 | eval "$ac_cv_use_prologio" |
10f2d63a | 6240 | if test "$no_cache" != 1; then |
3c907f20 | 6241 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6242 | fi |
6243 | ||
3c907f20 | 6244 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6245 | echo "$as_me:$LINENO: result: yes" >&5 |
6246 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6247 | else |
e6cc62c6 VS |
6248 | echo "$as_me:$LINENO: result: no" >&5 |
6249 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6250 | fi |
e6cc62c6 | 6251 | |
8284b0c5 | 6252 | |
5005acfe | 6253 | enablestring= |
e6cc62c6 VS |
6254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6255 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6256 | no_cache=0 |
3c907f20 VZ |
6257 | # Check whether --enable-resources or --disable-resources was given. |
6258 | if test "${enable_resources+set}" = set; then | |
6259 | enableval="$enable_resources" | |
e6cc62c6 | 6260 | |
10f2d63a | 6261 | if test "$enableval" = yes; then |
3c907f20 | 6262 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6263 | else |
3c907f20 | 6264 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6265 | fi |
e6cc62c6 | 6266 | |
10f2d63a | 6267 | else |
e6cc62c6 | 6268 | |
3c907f20 | 6269 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6270 | if test "x$LINE" != x ; then |
6271 | eval "DEFAULT_$LINE" | |
6272 | else | |
6273 | no_cache=1 | |
6274 | fi | |
6275 | ||
3c907f20 | 6276 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6277 | |
e6cc62c6 | 6278 | fi; |
10f2d63a | 6279 | |
3c907f20 | 6280 | eval "$ac_cv_use_resources" |
10f2d63a | 6281 | if test "$no_cache" != 1; then |
3c907f20 | 6282 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6283 | fi |
6284 | ||
3c907f20 | 6285 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6286 | echo "$as_me:$LINENO: result: yes" >&5 |
6287 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6288 | else |
e6cc62c6 VS |
6289 | echo "$as_me:$LINENO: result: no" >&5 |
6290 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6291 | fi |
e6cc62c6 | 6292 | |
8284b0c5 MB |
6293 | |
6294 | ||
52127426 | 6295 | |
5005acfe | 6296 | enablestring= |
e6cc62c6 VS |
6297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6298 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6299 | no_cache=0 |
6300 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6301 | if test "${enable_clipboard+set}" = set; then | |
6302 | enableval="$enable_clipboard" | |
e6cc62c6 | 6303 | |
10f2d63a VZ |
6304 | if test "$enableval" = yes; then |
6305 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6306 | else | |
6307 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6308 | fi | |
e6cc62c6 | 6309 | |
10f2d63a | 6310 | else |
e6cc62c6 | 6311 | |
10f2d63a VZ |
6312 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6313 | if test "x$LINE" != x ; then | |
6314 | eval "DEFAULT_$LINE" | |
6315 | else | |
6316 | no_cache=1 | |
6317 | fi | |
6318 | ||
6319 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6320 | |
e6cc62c6 | 6321 | fi; |
10f2d63a VZ |
6322 | |
6323 | eval "$ac_cv_use_clipboard" | |
6324 | if test "$no_cache" != 1; then | |
6325 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6326 | fi | |
6327 | ||
6328 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6329 | echo "$as_me:$LINENO: result: yes" >&5 |
6330 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6331 | else |
e6cc62c6 VS |
6332 | echo "$as_me:$LINENO: result: no" >&5 |
6333 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6334 | fi |
e6cc62c6 | 6335 | |
10f2d63a | 6336 | |
5005acfe | 6337 | enablestring= |
e6cc62c6 VS |
6338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6339 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6340 | no_cache=0 |
6341 | # Check whether --enable-dnd or --disable-dnd was given. | |
6342 | if test "${enable_dnd+set}" = set; then | |
6343 | enableval="$enable_dnd" | |
e6cc62c6 | 6344 | |
10f2d63a VZ |
6345 | if test "$enableval" = yes; then |
6346 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6347 | else | |
6348 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6349 | fi | |
e6cc62c6 | 6350 | |
10f2d63a | 6351 | else |
e6cc62c6 | 6352 | |
10f2d63a VZ |
6353 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6354 | if test "x$LINE" != x ; then | |
6355 | eval "DEFAULT_$LINE" | |
6356 | else | |
6357 | no_cache=1 | |
6358 | fi | |
6359 | ||
6360 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6361 | |
e6cc62c6 | 6362 | fi; |
10f2d63a VZ |
6363 | |
6364 | eval "$ac_cv_use_dnd" | |
6365 | if test "$no_cache" != 1; then | |
6366 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6367 | fi | |
6368 | ||
6369 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6370 | echo "$as_me:$LINENO: result: yes" >&5 |
6371 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6372 | else |
e6cc62c6 VS |
6373 | echo "$as_me:$LINENO: result: no" >&5 |
6374 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6375 | fi |
e6cc62c6 | 6376 | |
10f2d63a | 6377 | |
5005acfe | 6378 | enablestring= |
e6cc62c6 VS |
6379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6380 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6381 | no_cache=0 |
6382 | # Check whether --enable-metafile or --disable-metafile was given. | |
6383 | if test "${enable_metafile+set}" = set; then | |
6384 | enableval="$enable_metafile" | |
e6cc62c6 | 6385 | |
b64f0a5f RL |
6386 | if test "$enableval" = yes; then |
6387 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6388 | else | |
6389 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6390 | fi | |
e6cc62c6 | 6391 | |
b64f0a5f | 6392 | else |
e6cc62c6 | 6393 | |
b64f0a5f RL |
6394 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6395 | if test "x$LINE" != x ; then | |
6396 | eval "DEFAULT_$LINE" | |
6397 | else | |
6398 | no_cache=1 | |
6399 | fi | |
6400 | ||
6401 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6402 | |
e6cc62c6 | 6403 | fi; |
b64f0a5f RL |
6404 | |
6405 | eval "$ac_cv_use_metafile" | |
6406 | if test "$no_cache" != 1; then | |
6407 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6408 | fi | |
6409 | ||
6410 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6411 | echo "$as_me:$LINENO: result: yes" >&5 |
6412 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6413 | else |
e6cc62c6 VS |
6414 | echo "$as_me:$LINENO: result: no" >&5 |
6415 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6416 | fi |
e6cc62c6 | 6417 | |
52127426 | 6418 | |
8284b0c5 | 6419 | |
52127426 | 6420 | |
8284b0c5 | 6421 | |
5005acfe | 6422 | enablestring= |
e6cc62c6 VS |
6423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6424 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6425 | no_cache=0 |
6426 | # Check whether --enable-controls or --disable-controls was given. | |
6427 | if test "${enable_controls+set}" = set; then | |
6428 | enableval="$enable_controls" | |
e6cc62c6 | 6429 | |
10f2d63a VZ |
6430 | if test "$enableval" = yes; then |
6431 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6432 | else | |
6433 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6434 | fi | |
e6cc62c6 | 6435 | |
10f2d63a | 6436 | else |
e6cc62c6 | 6437 | |
10f2d63a VZ |
6438 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6439 | if test "x$LINE" != x ; then | |
6440 | eval "DEFAULT_$LINE" | |
6441 | else | |
6442 | no_cache=1 | |
6443 | fi | |
6444 | ||
6445 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6446 | |
e6cc62c6 | 6447 | fi; |
10f2d63a VZ |
6448 | |
6449 | eval "$ac_cv_use_controls" | |
6450 | if test "$no_cache" != 1; then | |
6451 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6452 | fi | |
6453 | ||
6454 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6455 | echo "$as_me:$LINENO: result: yes" >&5 |
6456 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6457 | else |
e6cc62c6 VS |
6458 | echo "$as_me:$LINENO: result: no" >&5 |
6459 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6460 | fi |
e6cc62c6 | 6461 | |
10f2d63a VZ |
6462 | |
6463 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6464 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6465 | DEFAULT_wxUSE_BMPBUTTON=yes |
6466 | DEFAULT_wxUSE_BUTTON=yes | |
6467 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6468 | DEFAULT_wxUSE_CARET=yes |
6469 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6470 | DEFAULT_wxUSE_CHECKBOX=yes |
6471 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6472 | DEFAULT_wxUSE_CHOICE=yes | |
6473 | DEFAULT_wxUSE_GAUGE=yes | |
6474 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6475 | DEFAULT_wxUSE_IMAGLIST=yes |
6476 | DEFAULT_wxUSE_LISTBOX=yes | |
6477 | DEFAULT_wxUSE_LISTCTRL=yes | |
6478 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6479 | DEFAULT_wxUSE_RADIOBOX=yes | |
6480 | DEFAULT_wxUSE_RADIOBTN=yes | |
6481 | DEFAULT_wxUSE_SASH=yes | |
6482 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6483 | DEFAULT_wxUSE_SLIDER=yes | |
6484 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6485 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6486 | DEFAULT_wxUSE_SPLITTER=yes |
6487 | DEFAULT_wxUSE_STATBMP=yes | |
6488 | DEFAULT_wxUSE_STATBOX=yes | |
6489 | DEFAULT_wxUSE_STATLINE=yes | |
6490 | DEFAULT_wxUSE_STATUSBAR=yes | |
6491 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6492 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6493 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6494 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6495 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6496 | DEFAULT_wxUSE_TOOLTIPS=yes |
6497 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6498 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6499 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6500 | elif test "$wxUSE_CONTROLS" = "no"; then |
6501 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6502 | DEFAULT_wxUSE_BMPBUTTON=no |
6503 | DEFAULT_wxUSE_BUTTON=no | |
6504 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6505 | DEFAULT_wxUSE_CARET=no |
6506 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6507 | DEFAULT_wxUSE_CHECKBOX=no |
6508 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6509 | DEFAULT_wxUSE_CHOICE=no | |
6510 | DEFAULT_wxUSE_GAUGE=no | |
6511 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6512 | DEFAULT_wxUSE_IMAGLIST=no |
6513 | DEFAULT_wxUSE_LISTBOX=no | |
6514 | DEFAULT_wxUSE_LISTCTRL=no | |
6515 | DEFAULT_wxUSE_NOTEBOOK=no | |
6516 | DEFAULT_wxUSE_RADIOBOX=no | |
6517 | DEFAULT_wxUSE_RADIOBTN=no | |
6518 | DEFAULT_wxUSE_SASH=no | |
6519 | DEFAULT_wxUSE_SCROLLBAR=no | |
6520 | DEFAULT_wxUSE_SLIDER=no | |
6521 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6522 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6523 | DEFAULT_wxUSE_SPLITTER=no |
6524 | DEFAULT_wxUSE_STATBMP=no | |
6525 | DEFAULT_wxUSE_STATBOX=no | |
6526 | DEFAULT_wxUSE_STATLINE=no | |
6527 | DEFAULT_wxUSE_STATUSBAR=no | |
6528 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6529 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6530 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6531 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6532 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6533 | DEFAULT_wxUSE_TOOLTIPS=no |
6534 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6535 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6536 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6537 | fi |
6538 | ||
ac0c4cc3 DE |
6539 | ## FIXME: This is a blatant hack |
6540 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6541 | wxUSE_PRINTING_ARCHITECTURE=no | |
6542 | wxUSE_HELP=no | |
6543 | wxUSE_CLIPBOARD=no | |
6544 | wxUSE_DRAG_AND_DROP=no | |
6545 | wxUSE_DATAOBJ=no | |
8b389fab DE |
6546 | # Generic notebook requires tab dialog |
6547 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6548 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 DE |
6549 | DEFAULT_wxUSE_GAUGE=no |
6550 | DEFAULT_wxUSE_SCROLLBAR=no | |
ac0c4cc3 DE |
6551 | DEFAULT_wxUSE_COMBOBOX=no |
6552 | DEFAULT_wxUSE_CALCTRL=no | |
6553 | DEFAULT_wxUSE_SPINBTN=no | |
6554 | DEFAULT_wxUSE_SPINCTRL=no | |
6555 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 DE |
6556 | DEFAULT_wxUSE_DRAGIMAGE=no |
6557 | DEFAULT_wxUSE_FINDREPLDLG=no | |
6558 | DEFAULT_wxUSE_FONTDLG=no | |
6559 | DEFAULT_wxUSE_GRID=no | |
ac0c4cc3 | 6560 | DEFAULT_wxUSE_PROGRESSDLG=no |
ac0c4cc3 DE |
6561 | DEFAULT_wxUSE_SASH=no |
6562 | DEFAULT_wxUSE_SPLITTER=no | |
6563 | DEFAULT_wxUSE_WIZARDDLG=no | |
6564 | DEFAULT_wxUSE_SPLITTER=no | |
6565 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
ac0c4cc3 DE |
6566 | fi |
6567 | ||
8284b0c5 | 6568 | |
5005acfe | 6569 | enablestring= |
e6cc62c6 VS |
6570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6571 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6572 | no_cache=0 |
6573 | # Check whether --enable-accel or --disable-accel was given. | |
6574 | if test "${enable_accel+set}" = set; then | |
6575 | enableval="$enable_accel" | |
e6cc62c6 | 6576 | |
10f2d63a VZ |
6577 | if test "$enableval" = yes; then |
6578 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6579 | else | |
6580 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6581 | fi | |
e6cc62c6 | 6582 | |
10f2d63a | 6583 | else |
e6cc62c6 | 6584 | |
10f2d63a VZ |
6585 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6586 | if test "x$LINE" != x ; then | |
6587 | eval "DEFAULT_$LINE" | |
6588 | else | |
6589 | no_cache=1 | |
6590 | fi | |
6591 | ||
6592 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6593 | |
e6cc62c6 | 6594 | fi; |
10f2d63a VZ |
6595 | |
6596 | eval "$ac_cv_use_accel" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6602 | echo "$as_me:$LINENO: result: yes" >&5 |
6603 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6604 | else |
e6cc62c6 VS |
6605 | echo "$as_me:$LINENO: result: no" >&5 |
6606 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6607 | fi |
e6cc62c6 | 6608 | |
10f2d63a | 6609 | |
5005acfe | 6610 | enablestring= |
e6cc62c6 VS |
6611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6612 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6613 | no_cache=0 |
1e6feb95 VZ |
6614 | # Check whether --enable-button or --disable-button was given. |
6615 | if test "${enable_button+set}" = set; then | |
6616 | enableval="$enable_button" | |
e6cc62c6 | 6617 | |
10f2d63a | 6618 | if test "$enableval" = yes; then |
1e6feb95 | 6619 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6620 | else |
1e6feb95 | 6621 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6622 | fi |
e6cc62c6 | 6623 | |
10f2d63a | 6624 | else |
e6cc62c6 | 6625 | |
1e6feb95 | 6626 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6627 | if test "x$LINE" != x ; then |
6628 | eval "DEFAULT_$LINE" | |
6629 | else | |
6630 | no_cache=1 | |
6631 | fi | |
6632 | ||
1e6feb95 | 6633 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6634 | |
e6cc62c6 | 6635 | fi; |
10f2d63a | 6636 | |
1e6feb95 | 6637 | eval "$ac_cv_use_button" |
10f2d63a | 6638 | if test "$no_cache" != 1; then |
1e6feb95 | 6639 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6640 | fi |
6641 | ||
1e6feb95 | 6642 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6643 | echo "$as_me:$LINENO: result: yes" >&5 |
6644 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6645 | else |
e6cc62c6 VS |
6646 | echo "$as_me:$LINENO: result: no" >&5 |
6647 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6648 | fi |
e6cc62c6 | 6649 | |
10f2d63a | 6650 | |
5005acfe | 6651 | enablestring= |
e6cc62c6 VS |
6652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6653 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6654 | no_cache=0 |
6655 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6656 | if test "${enable_bmpbutton+set}" = set; then | |
6657 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6658 | |
10f2d63a VZ |
6659 | if test "$enableval" = yes; then |
6660 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6661 | else | |
6662 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6663 | fi | |
e6cc62c6 | 6664 | |
10f2d63a | 6665 | else |
e6cc62c6 | 6666 | |
10f2d63a VZ |
6667 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6668 | if test "x$LINE" != x ; then | |
6669 | eval "DEFAULT_$LINE" | |
6670 | else | |
6671 | no_cache=1 | |
6672 | fi | |
6673 | ||
6674 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6675 | |
e6cc62c6 | 6676 | fi; |
10f2d63a VZ |
6677 | |
6678 | eval "$ac_cv_use_bmpbutton" | |
6679 | if test "$no_cache" != 1; then | |
6680 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6681 | fi | |
6682 | ||
6683 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6684 | echo "$as_me:$LINENO: result: yes" >&5 |
6685 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6686 | else |
e6cc62c6 VS |
6687 | echo "$as_me:$LINENO: result: no" >&5 |
6688 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6689 | fi |
e6cc62c6 | 6690 | |
10f2d63a | 6691 | |
5005acfe | 6692 | enablestring= |
e6cc62c6 VS |
6693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6694 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6695 | no_cache=0 |
6696 | # Check whether --enable-calendar or --disable-calendar was given. | |
6697 | if test "${enable_calendar+set}" = set; then | |
6698 | enableval="$enable_calendar" | |
e6cc62c6 | 6699 | |
1e6feb95 VZ |
6700 | if test "$enableval" = yes; then |
6701 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6702 | else | |
6703 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6704 | fi | |
e6cc62c6 | 6705 | |
1e6feb95 | 6706 | else |
e6cc62c6 | 6707 | |
1e6feb95 VZ |
6708 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6709 | if test "x$LINE" != x ; then | |
6710 | eval "DEFAULT_$LINE" | |
6711 | else | |
6712 | no_cache=1 | |
6713 | fi | |
6714 | ||
6715 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6716 | |
e6cc62c6 | 6717 | fi; |
1e6feb95 VZ |
6718 | |
6719 | eval "$ac_cv_use_calendar" | |
6720 | if test "$no_cache" != 1; then | |
6721 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6722 | fi | |
6723 | ||
6724 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6725 | echo "$as_me:$LINENO: result: yes" >&5 |
6726 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6727 | else |
e6cc62c6 VS |
6728 | echo "$as_me:$LINENO: result: no" >&5 |
6729 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6730 | fi |
e6cc62c6 | 6731 | |
1e6feb95 | 6732 | |
5005acfe | 6733 | enablestring= |
e6cc62c6 VS |
6734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6735 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6736 | no_cache=0 |
6737 | # Check whether --enable-caret or --disable-caret was given. | |
6738 | if test "${enable_caret+set}" = set; then | |
6739 | enableval="$enable_caret" | |
e6cc62c6 | 6740 | |
1e6feb95 VZ |
6741 | if test "$enableval" = yes; then |
6742 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6743 | else | |
6744 | ac_cv_use_caret='wxUSE_CARET=no' | |
6745 | fi | |
e6cc62c6 | 6746 | |
1e6feb95 | 6747 | else |
e6cc62c6 | 6748 | |
1e6feb95 VZ |
6749 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6750 | if test "x$LINE" != x ; then | |
6751 | eval "DEFAULT_$LINE" | |
6752 | else | |
6753 | no_cache=1 | |
6754 | fi | |
6755 | ||
6756 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6757 | |
e6cc62c6 | 6758 | fi; |
1e6feb95 VZ |
6759 | |
6760 | eval "$ac_cv_use_caret" | |
6761 | if test "$no_cache" != 1; then | |
6762 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6763 | fi | |
6764 | ||
6765 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6766 | echo "$as_me:$LINENO: result: yes" >&5 |
6767 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6768 | else |
e6cc62c6 VS |
6769 | echo "$as_me:$LINENO: result: no" >&5 |
6770 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6771 | fi |
e6cc62c6 | 6772 | |
1e6feb95 | 6773 | |
5005acfe | 6774 | enablestring= |
e6cc62c6 VS |
6775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6776 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6777 | no_cache=0 |
6778 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6779 | if test "${enable_checkbox+set}" = set; then | |
6780 | enableval="$enable_checkbox" | |
e6cc62c6 | 6781 | |
10f2d63a VZ |
6782 | if test "$enableval" = yes; then |
6783 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6784 | else | |
6785 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6786 | fi | |
e6cc62c6 | 6787 | |
10f2d63a | 6788 | else |
e6cc62c6 | 6789 | |
10f2d63a VZ |
6790 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6791 | if test "x$LINE" != x ; then | |
6792 | eval "DEFAULT_$LINE" | |
6793 | else | |
6794 | no_cache=1 | |
6795 | fi | |
6796 | ||
6797 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6798 | |
e6cc62c6 | 6799 | fi; |
10f2d63a VZ |
6800 | |
6801 | eval "$ac_cv_use_checkbox" | |
6802 | if test "$no_cache" != 1; then | |
6803 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6804 | fi | |
6805 | ||
6806 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6807 | echo "$as_me:$LINENO: result: yes" >&5 |
6808 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6809 | else |
e6cc62c6 VS |
6810 | echo "$as_me:$LINENO: result: no" >&5 |
6811 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6812 | fi |
e6cc62c6 | 6813 | |
10f2d63a | 6814 | |
5005acfe | 6815 | enablestring= |
e6cc62c6 VS |
6816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6817 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6818 | no_cache=0 |
6819 | # Check whether --enable-checklst or --disable-checklst was given. | |
6820 | if test "${enable_checklst+set}" = set; then | |
6821 | enableval="$enable_checklst" | |
e6cc62c6 | 6822 | |
10f2d63a VZ |
6823 | if test "$enableval" = yes; then |
6824 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6825 | else | |
6826 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6827 | fi | |
e6cc62c6 | 6828 | |
10f2d63a | 6829 | else |
e6cc62c6 | 6830 | |
10f2d63a VZ |
6831 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6832 | if test "x$LINE" != x ; then | |
6833 | eval "DEFAULT_$LINE" | |
6834 | else | |
6835 | no_cache=1 | |
6836 | fi | |
6837 | ||
6838 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6839 | |
e6cc62c6 | 6840 | fi; |
10f2d63a VZ |
6841 | |
6842 | eval "$ac_cv_use_checklst" | |
6843 | if test "$no_cache" != 1; then | |
6844 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6845 | fi | |
6846 | ||
6847 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6848 | echo "$as_me:$LINENO: result: yes" >&5 |
6849 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6850 | else |
e6cc62c6 VS |
6851 | echo "$as_me:$LINENO: result: no" >&5 |
6852 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6853 | fi |
e6cc62c6 | 6854 | |
10f2d63a | 6855 | |
5005acfe | 6856 | enablestring= |
e6cc62c6 VS |
6857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6858 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6859 | no_cache=0 |
6860 | # Check whether --enable-choice or --disable-choice was given. | |
6861 | if test "${enable_choice+set}" = set; then | |
6862 | enableval="$enable_choice" | |
e6cc62c6 | 6863 | |
10f2d63a VZ |
6864 | if test "$enableval" = yes; then |
6865 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6866 | else | |
6867 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6868 | fi | |
e6cc62c6 | 6869 | |
10f2d63a | 6870 | else |
e6cc62c6 | 6871 | |
10f2d63a VZ |
6872 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6873 | if test "x$LINE" != x ; then | |
6874 | eval "DEFAULT_$LINE" | |
6875 | else | |
6876 | no_cache=1 | |
6877 | fi | |
6878 | ||
6879 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6880 | |
e6cc62c6 | 6881 | fi; |
10f2d63a VZ |
6882 | |
6883 | eval "$ac_cv_use_choice" | |
6884 | if test "$no_cache" != 1; then | |
6885 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6886 | fi | |
6887 | ||
6888 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6889 | echo "$as_me:$LINENO: result: yes" >&5 |
6890 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6891 | else |
e6cc62c6 VS |
6892 | echo "$as_me:$LINENO: result: no" >&5 |
6893 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6894 | fi |
e6cc62c6 | 6895 | |
10f2d63a | 6896 | |
5005acfe | 6897 | enablestring= |
e6cc62c6 VS |
6898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6899 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6900 | no_cache=0 |
6901 | # Check whether --enable-combobox or --disable-combobox was given. | |
6902 | if test "${enable_combobox+set}" = set; then | |
6903 | enableval="$enable_combobox" | |
e6cc62c6 | 6904 | |
10f2d63a VZ |
6905 | if test "$enableval" = yes; then |
6906 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6907 | else | |
6908 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6909 | fi | |
e6cc62c6 | 6910 | |
10f2d63a | 6911 | else |
e6cc62c6 | 6912 | |
10f2d63a VZ |
6913 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6914 | if test "x$LINE" != x ; then | |
6915 | eval "DEFAULT_$LINE" | |
6916 | else | |
6917 | no_cache=1 | |
6918 | fi | |
6919 | ||
6920 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6921 | |
e6cc62c6 | 6922 | fi; |
10f2d63a VZ |
6923 | |
6924 | eval "$ac_cv_use_combobox" | |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6930 | echo "$as_me:$LINENO: result: yes" >&5 |
6931 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6932 | else |
e6cc62c6 VS |
6933 | echo "$as_me:$LINENO: result: no" >&5 |
6934 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6935 | fi |
e6cc62c6 | 6936 | |
10f2d63a | 6937 | |
da494b40 | 6938 | enablestring= |
e6cc62c6 VS |
6939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6940 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6941 | no_cache=0 |
6942 | # Check whether --enable-display or --disable-display was given. | |
6943 | if test "${enable_display+set}" = set; then | |
6944 | enableval="$enable_display" | |
e6cc62c6 | 6945 | |
da494b40 MB |
6946 | if test "$enableval" = yes; then |
6947 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6948 | else | |
6949 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6950 | fi | |
e6cc62c6 | 6951 | |
da494b40 | 6952 | else |
e6cc62c6 | 6953 | |
da494b40 MB |
6954 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6955 | if test "x$LINE" != x ; then | |
6956 | eval "DEFAULT_$LINE" | |
6957 | else | |
6958 | no_cache=1 | |
6959 | fi | |
6960 | ||
6961 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6962 | |
e6cc62c6 | 6963 | fi; |
da494b40 MB |
6964 | |
6965 | eval "$ac_cv_use_display" | |
6966 | if test "$no_cache" != 1; then | |
6967 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6971 | echo "$as_me:$LINENO: result: yes" >&5 |
6972 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6973 | else |
e6cc62c6 VS |
6974 | echo "$as_me:$LINENO: result: no" >&5 |
6975 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6976 | fi |
e6cc62c6 | 6977 | |
da494b40 | 6978 | |
5005acfe | 6979 | enablestring= |
e6cc62c6 VS |
6980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6981 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6982 | no_cache=0 |
6983 | # Check whether --enable-gauge or --disable-gauge was given. | |
6984 | if test "${enable_gauge+set}" = set; then | |
6985 | enableval="$enable_gauge" | |
e6cc62c6 | 6986 | |
10f2d63a VZ |
6987 | if test "$enableval" = yes; then |
6988 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6989 | else | |
6990 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6991 | fi | |
e6cc62c6 | 6992 | |
10f2d63a | 6993 | else |
e6cc62c6 | 6994 | |
10f2d63a VZ |
6995 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7003 | |
e6cc62c6 | 7004 | fi; |
10f2d63a VZ |
7005 | |
7006 | eval "$ac_cv_use_gauge" | |
7007 | if test "$no_cache" != 1; then | |
7008 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7009 | fi | |
7010 | ||
7011 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7012 | echo "$as_me:$LINENO: result: yes" >&5 |
7013 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7014 | else |
e6cc62c6 VS |
7015 | echo "$as_me:$LINENO: result: no" >&5 |
7016 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7017 | fi |
e6cc62c6 | 7018 | |
10f2d63a | 7019 | |
5005acfe | 7020 | enablestring= |
e6cc62c6 VS |
7021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7022 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7023 | no_cache=0 |
7024 | # Check whether --enable-grid or --disable-grid was given. | |
7025 | if test "${enable_grid+set}" = set; then | |
7026 | enableval="$enable_grid" | |
e6cc62c6 | 7027 | |
10f2d63a VZ |
7028 | if test "$enableval" = yes; then |
7029 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7030 | else | |
7031 | ac_cv_use_grid='wxUSE_GRID=no' | |
7032 | fi | |
e6cc62c6 | 7033 | |
10f2d63a | 7034 | else |
e6cc62c6 | 7035 | |
10f2d63a VZ |
7036 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7037 | if test "x$LINE" != x ; then | |
7038 | eval "DEFAULT_$LINE" | |
7039 | else | |
7040 | no_cache=1 | |
7041 | fi | |
7042 | ||
7043 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7044 | |
e6cc62c6 | 7045 | fi; |
10f2d63a VZ |
7046 | |
7047 | eval "$ac_cv_use_grid" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7053 | echo "$as_me:$LINENO: result: yes" >&5 |
7054 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7055 | else |
e6cc62c6 VS |
7056 | echo "$as_me:$LINENO: result: no" >&5 |
7057 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7058 | fi |
e6cc62c6 | 7059 | |
10f2d63a | 7060 | |
5005acfe | 7061 | enablestring= |
e6cc62c6 VS |
7062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7063 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7064 | no_cache=0 |
7065 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7066 | if test "${enable_imaglist+set}" = set; then | |
7067 | enableval="$enable_imaglist" | |
e6cc62c6 | 7068 | |
10f2d63a VZ |
7069 | if test "$enableval" = yes; then |
7070 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7071 | else | |
7072 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7073 | fi | |
e6cc62c6 | 7074 | |
10f2d63a | 7075 | else |
e6cc62c6 | 7076 | |
10f2d63a VZ |
7077 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7078 | if test "x$LINE" != x ; then | |
7079 | eval "DEFAULT_$LINE" | |
7080 | else | |
7081 | no_cache=1 | |
7082 | fi | |
7083 | ||
7084 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7085 | |
e6cc62c6 | 7086 | fi; |
10f2d63a VZ |
7087 | |
7088 | eval "$ac_cv_use_imaglist" | |
7089 | if test "$no_cache" != 1; then | |
7090 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7091 | fi | |
7092 | ||
7093 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7094 | echo "$as_me:$LINENO: result: yes" >&5 |
7095 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7096 | else |
e6cc62c6 VS |
7097 | echo "$as_me:$LINENO: result: no" >&5 |
7098 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7099 | fi |
e6cc62c6 | 7100 | |
10f2d63a | 7101 | |
5005acfe | 7102 | enablestring= |
e6cc62c6 VS |
7103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7104 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7105 | no_cache=0 |
7106 | # Check whether --enable-listbox or --disable-listbox was given. | |
7107 | if test "${enable_listbox+set}" = set; then | |
7108 | enableval="$enable_listbox" | |
e6cc62c6 | 7109 | |
10f2d63a VZ |
7110 | if test "$enableval" = yes; then |
7111 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7112 | else | |
7113 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7114 | fi | |
e6cc62c6 | 7115 | |
10f2d63a | 7116 | else |
e6cc62c6 | 7117 | |
10f2d63a VZ |
7118 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7119 | if test "x$LINE" != x ; then | |
7120 | eval "DEFAULT_$LINE" | |
7121 | else | |
7122 | no_cache=1 | |
7123 | fi | |
7124 | ||
7125 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7126 | |
e6cc62c6 | 7127 | fi; |
10f2d63a VZ |
7128 | |
7129 | eval "$ac_cv_use_listbox" | |
7130 | if test "$no_cache" != 1; then | |
7131 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7132 | fi | |
7133 | ||
7134 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7135 | echo "$as_me:$LINENO: result: yes" >&5 |
7136 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7137 | else |
e6cc62c6 VS |
7138 | echo "$as_me:$LINENO: result: no" >&5 |
7139 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7140 | fi |
e6cc62c6 | 7141 | |
10f2d63a | 7142 | |
5005acfe | 7143 | enablestring= |
e6cc62c6 VS |
7144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7145 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7146 | no_cache=0 |
7147 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7148 | if test "${enable_listctrl+set}" = set; then | |
7149 | enableval="$enable_listctrl" | |
e6cc62c6 | 7150 | |
10f2d63a VZ |
7151 | if test "$enableval" = yes; then |
7152 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7153 | else | |
7154 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7155 | fi | |
e6cc62c6 | 7156 | |
10f2d63a | 7157 | else |
e6cc62c6 | 7158 | |
10f2d63a VZ |
7159 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7160 | if test "x$LINE" != x ; then | |
7161 | eval "DEFAULT_$LINE" | |
7162 | else | |
7163 | no_cache=1 | |
7164 | fi | |
7165 | ||
7166 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7167 | |
e6cc62c6 | 7168 | fi; |
10f2d63a VZ |
7169 | |
7170 | eval "$ac_cv_use_listctrl" | |
7171 | if test "$no_cache" != 1; then | |
7172 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7173 | fi | |
7174 | ||
7175 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7176 | echo "$as_me:$LINENO: result: yes" >&5 |
7177 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7178 | else |
e6cc62c6 VS |
7179 | echo "$as_me:$LINENO: result: no" >&5 |
7180 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7181 | fi |
e6cc62c6 | 7182 | |
10f2d63a | 7183 | |
5005acfe | 7184 | enablestring= |
e6cc62c6 VS |
7185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7186 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7187 | no_cache=0 |
7188 | # Check whether --enable-notebook or --disable-notebook was given. | |
7189 | if test "${enable_notebook+set}" = set; then | |
7190 | enableval="$enable_notebook" | |
e6cc62c6 | 7191 | |
10f2d63a VZ |
7192 | if test "$enableval" = yes; then |
7193 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7194 | else | |
7195 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7196 | fi | |
e6cc62c6 | 7197 | |
10f2d63a | 7198 | else |
e6cc62c6 | 7199 | |
10f2d63a VZ |
7200 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7201 | if test "x$LINE" != x ; then | |
7202 | eval "DEFAULT_$LINE" | |
7203 | else | |
7204 | no_cache=1 | |
7205 | fi | |
7206 | ||
7207 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7208 | |
e6cc62c6 | 7209 | fi; |
10f2d63a VZ |
7210 | |
7211 | eval "$ac_cv_use_notebook" | |
7212 | if test "$no_cache" != 1; then | |
7213 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7214 | fi | |
7215 | ||
7216 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7217 | echo "$as_me:$LINENO: result: yes" >&5 |
7218 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7219 | else |
e6cc62c6 VS |
7220 | echo "$as_me:$LINENO: result: no" >&5 |
7221 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7222 | fi |
e6cc62c6 | 7223 | |
10f2d63a | 7224 | |
5005acfe | 7225 | enablestring= |
e6cc62c6 VS |
7226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7227 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7228 | no_cache=0 |
7229 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7230 | if test "${enable_radiobox+set}" = set; then | |
7231 | enableval="$enable_radiobox" | |
e6cc62c6 | 7232 | |
10f2d63a VZ |
7233 | if test "$enableval" = yes; then |
7234 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7235 | else | |
7236 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7237 | fi | |
e6cc62c6 | 7238 | |
10f2d63a | 7239 | else |
e6cc62c6 | 7240 | |
10f2d63a VZ |
7241 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7242 | if test "x$LINE" != x ; then | |
7243 | eval "DEFAULT_$LINE" | |
7244 | else | |
7245 | no_cache=1 | |
7246 | fi | |
7247 | ||
7248 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7249 | |
e6cc62c6 | 7250 | fi; |
10f2d63a VZ |
7251 | |
7252 | eval "$ac_cv_use_radiobox" | |
7253 | if test "$no_cache" != 1; then | |
7254 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7255 | fi | |
7256 | ||
7257 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7258 | echo "$as_me:$LINENO: result: yes" >&5 |
7259 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7260 | else |
e6cc62c6 VS |
7261 | echo "$as_me:$LINENO: result: no" >&5 |
7262 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7263 | fi |
e6cc62c6 | 7264 | |
10f2d63a | 7265 | |
5005acfe | 7266 | enablestring= |
e6cc62c6 VS |
7267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7268 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7269 | no_cache=0 |
7270 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7271 | if test "${enable_radiobtn+set}" = set; then | |
7272 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7273 | |
10f2d63a VZ |
7274 | if test "$enableval" = yes; then |
7275 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7276 | else | |
7277 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7278 | fi | |
e6cc62c6 | 7279 | |
10f2d63a | 7280 | else |
e6cc62c6 | 7281 | |
10f2d63a VZ |
7282 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7283 | if test "x$LINE" != x ; then | |
7284 | eval "DEFAULT_$LINE" | |
7285 | else | |
7286 | no_cache=1 | |
7287 | fi | |
7288 | ||
7289 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7290 | |
e6cc62c6 | 7291 | fi; |
10f2d63a VZ |
7292 | |
7293 | eval "$ac_cv_use_radiobtn" | |
7294 | if test "$no_cache" != 1; then | |
7295 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7296 | fi | |
7297 | ||
7298 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7299 | echo "$as_me:$LINENO: result: yes" >&5 |
7300 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7301 | else |
e6cc62c6 VS |
7302 | echo "$as_me:$LINENO: result: no" >&5 |
7303 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7304 | fi |
e6cc62c6 | 7305 | |
10f2d63a | 7306 | |
5005acfe | 7307 | enablestring= |
e6cc62c6 VS |
7308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7309 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7310 | no_cache=0 |
7311 | # Check whether --enable-sash or --disable-sash was given. | |
7312 | if test "${enable_sash+set}" = set; then | |
7313 | enableval="$enable_sash" | |
e6cc62c6 | 7314 | |
10f2d63a VZ |
7315 | if test "$enableval" = yes; then |
7316 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7317 | else | |
7318 | ac_cv_use_sash='wxUSE_SASH=no' | |
7319 | fi | |
e6cc62c6 | 7320 | |
10f2d63a | 7321 | else |
e6cc62c6 | 7322 | |
10f2d63a VZ |
7323 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7324 | if test "x$LINE" != x ; then | |
7325 | eval "DEFAULT_$LINE" | |
7326 | else | |
7327 | no_cache=1 | |
7328 | fi | |
7329 | ||
7330 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7331 | |
e6cc62c6 | 7332 | fi; |
10f2d63a VZ |
7333 | |
7334 | eval "$ac_cv_use_sash" | |
7335 | if test "$no_cache" != 1; then | |
7336 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7337 | fi | |
7338 | ||
7339 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7340 | echo "$as_me:$LINENO: result: yes" >&5 |
7341 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7342 | else |
e6cc62c6 VS |
7343 | echo "$as_me:$LINENO: result: no" >&5 |
7344 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7345 | fi |
e6cc62c6 | 7346 | |
10f2d63a | 7347 | |
5005acfe | 7348 | enablestring= |
e6cc62c6 VS |
7349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7350 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7351 | no_cache=0 |
7352 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7353 | if test "${enable_scrollbar+set}" = set; then | |
7354 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7355 | |
10f2d63a VZ |
7356 | if test "$enableval" = yes; then |
7357 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7358 | else | |
7359 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7360 | fi | |
e6cc62c6 | 7361 | |
10f2d63a | 7362 | else |
e6cc62c6 | 7363 | |
10f2d63a VZ |
7364 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7365 | if test "x$LINE" != x ; then | |
7366 | eval "DEFAULT_$LINE" | |
7367 | else | |
7368 | no_cache=1 | |
7369 | fi | |
7370 | ||
7371 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7372 | |
e6cc62c6 | 7373 | fi; |
10f2d63a VZ |
7374 | |
7375 | eval "$ac_cv_use_scrollbar" | |
7376 | if test "$no_cache" != 1; then | |
7377 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7378 | fi | |
7379 | ||
7380 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7381 | echo "$as_me:$LINENO: result: yes" >&5 |
7382 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7383 | else |
e6cc62c6 VS |
7384 | echo "$as_me:$LINENO: result: no" >&5 |
7385 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7386 | fi |
e6cc62c6 | 7387 | |
10f2d63a | 7388 | |
5005acfe | 7389 | enablestring= |
e6cc62c6 VS |
7390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7391 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7392 | no_cache=0 |
7393 | # Check whether --enable-slider or --disable-slider was given. | |
7394 | if test "${enable_slider+set}" = set; then | |
7395 | enableval="$enable_slider" | |
e6cc62c6 | 7396 | |
10f2d63a VZ |
7397 | if test "$enableval" = yes; then |
7398 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7399 | else | |
7400 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7401 | fi | |
e6cc62c6 | 7402 | |
10f2d63a | 7403 | else |
e6cc62c6 | 7404 | |
10f2d63a VZ |
7405 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7406 | if test "x$LINE" != x ; then | |
7407 | eval "DEFAULT_$LINE" | |
7408 | else | |
7409 | no_cache=1 | |
7410 | fi | |
7411 | ||
7412 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7413 | |
e6cc62c6 | 7414 | fi; |
10f2d63a VZ |
7415 | |
7416 | eval "$ac_cv_use_slider" | |
7417 | if test "$no_cache" != 1; then | |
7418 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7419 | fi | |
7420 | ||
7421 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7422 | echo "$as_me:$LINENO: result: yes" >&5 |
7423 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7424 | else |
e6cc62c6 VS |
7425 | echo "$as_me:$LINENO: result: no" >&5 |
7426 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7427 | fi |
e6cc62c6 | 7428 | |
10f2d63a | 7429 | |
5005acfe | 7430 | enablestring= |
e6cc62c6 VS |
7431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7432 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7433 | no_cache=0 |
7434 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7435 | if test "${enable_spinbtn+set}" = set; then | |
7436 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7437 | |
10f2d63a VZ |
7438 | if test "$enableval" = yes; then |
7439 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7440 | else | |
7441 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7442 | fi | |
e6cc62c6 | 7443 | |
10f2d63a | 7444 | else |
e6cc62c6 | 7445 | |
10f2d63a VZ |
7446 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7447 | if test "x$LINE" != x ; then | |
7448 | eval "DEFAULT_$LINE" | |
7449 | else | |
7450 | no_cache=1 | |
7451 | fi | |
7452 | ||
7453 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7454 | |
e6cc62c6 | 7455 | fi; |
10f2d63a VZ |
7456 | |
7457 | eval "$ac_cv_use_spinbtn" | |
7458 | if test "$no_cache" != 1; then | |
7459 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7460 | fi | |
7461 | ||
7462 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7463 | echo "$as_me:$LINENO: result: yes" >&5 |
7464 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7465 | else |
e6cc62c6 VS |
7466 | echo "$as_me:$LINENO: result: no" >&5 |
7467 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7468 | fi |
e6cc62c6 | 7469 | |
10f2d63a | 7470 | |
5005acfe | 7471 | enablestring= |
e6cc62c6 VS |
7472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7473 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7474 | no_cache=0 |
7475 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7476 | if test "${enable_spinctrl+set}" = set; then | |
7477 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7478 | |
56cfaa52 RR |
7479 | if test "$enableval" = yes; then |
7480 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7481 | else | |
7482 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7483 | fi | |
e6cc62c6 | 7484 | |
56cfaa52 | 7485 | else |
e6cc62c6 | 7486 | |
56cfaa52 RR |
7487 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7488 | if test "x$LINE" != x ; then | |
7489 | eval "DEFAULT_$LINE" | |
7490 | else | |
7491 | no_cache=1 | |
7492 | fi | |
7493 | ||
7494 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7495 | |
e6cc62c6 | 7496 | fi; |
56cfaa52 RR |
7497 | |
7498 | eval "$ac_cv_use_spinctrl" | |
7499 | if test "$no_cache" != 1; then | |
7500 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7501 | fi | |
7502 | ||
7503 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7504 | echo "$as_me:$LINENO: result: yes" >&5 |
7505 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7506 | else |
e6cc62c6 VS |
7507 | echo "$as_me:$LINENO: result: no" >&5 |
7508 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7509 | fi |
e6cc62c6 | 7510 | |
56cfaa52 | 7511 | |
5005acfe | 7512 | enablestring= |
e6cc62c6 VS |
7513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7514 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7515 | no_cache=0 |
7516 | # Check whether --enable-splitter or --disable-splitter was given. | |
7517 | if test "${enable_splitter+set}" = set; then | |
7518 | enableval="$enable_splitter" | |
e6cc62c6 | 7519 | |
10f2d63a VZ |
7520 | if test "$enableval" = yes; then |
7521 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7522 | else | |
7523 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7524 | fi | |
e6cc62c6 | 7525 | |
10f2d63a | 7526 | else |
e6cc62c6 | 7527 | |
10f2d63a VZ |
7528 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7529 | if test "x$LINE" != x ; then | |
7530 | eval "DEFAULT_$LINE" | |
7531 | else | |
7532 | no_cache=1 | |
7533 | fi | |
7534 | ||
7535 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7536 | |
e6cc62c6 | 7537 | fi; |
10f2d63a VZ |
7538 | |
7539 | eval "$ac_cv_use_splitter" | |
7540 | if test "$no_cache" != 1; then | |
7541 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7542 | fi | |
7543 | ||
7544 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7545 | echo "$as_me:$LINENO: result: yes" >&5 |
7546 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7547 | else |
e6cc62c6 VS |
7548 | echo "$as_me:$LINENO: result: no" >&5 |
7549 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7550 | fi |
e6cc62c6 | 7551 | |
10f2d63a | 7552 | |
5005acfe | 7553 | enablestring= |
e6cc62c6 VS |
7554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7555 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7556 | no_cache=0 |
7557 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7558 | if test "${enable_statbmp+set}" = set; then | |
7559 | enableval="$enable_statbmp" | |
e6cc62c6 | 7560 | |
10f2d63a VZ |
7561 | if test "$enableval" = yes; then |
7562 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7563 | else | |
7564 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7565 | fi | |
e6cc62c6 | 7566 | |
10f2d63a | 7567 | else |
e6cc62c6 | 7568 | |
10f2d63a VZ |
7569 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7570 | if test "x$LINE" != x ; then | |
7571 | eval "DEFAULT_$LINE" | |
7572 | else | |
7573 | no_cache=1 | |
7574 | fi | |
7575 | ||
7576 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7577 | |
e6cc62c6 | 7578 | fi; |
10f2d63a VZ |
7579 | |
7580 | eval "$ac_cv_use_statbmp" | |
7581 | if test "$no_cache" != 1; then | |
7582 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7583 | fi | |
7584 | ||
7585 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7586 | echo "$as_me:$LINENO: result: yes" >&5 |
7587 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7588 | else |
e6cc62c6 VS |
7589 | echo "$as_me:$LINENO: result: no" >&5 |
7590 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7591 | fi |
e6cc62c6 | 7592 | |
10f2d63a | 7593 | |
5005acfe | 7594 | enablestring= |
e6cc62c6 VS |
7595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7596 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7597 | no_cache=0 |
7598 | # Check whether --enable-statbox or --disable-statbox was given. | |
7599 | if test "${enable_statbox+set}" = set; then | |
7600 | enableval="$enable_statbox" | |
e6cc62c6 | 7601 | |
10f2d63a VZ |
7602 | if test "$enableval" = yes; then |
7603 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7604 | else | |
7605 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7606 | fi | |
e6cc62c6 | 7607 | |
10f2d63a | 7608 | else |
e6cc62c6 | 7609 | |
10f2d63a VZ |
7610 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7611 | if test "x$LINE" != x ; then | |
7612 | eval "DEFAULT_$LINE" | |
7613 | else | |
7614 | no_cache=1 | |
7615 | fi | |
7616 | ||
7617 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7618 | |
e6cc62c6 | 7619 | fi; |
10f2d63a VZ |
7620 | |
7621 | eval "$ac_cv_use_statbox" | |
7622 | if test "$no_cache" != 1; then | |
7623 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7624 | fi | |
7625 | ||
7626 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7627 | echo "$as_me:$LINENO: result: yes" >&5 |
7628 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7629 | else |
e6cc62c6 VS |
7630 | echo "$as_me:$LINENO: result: no" >&5 |
7631 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7632 | fi |
e6cc62c6 | 7633 | |
10f2d63a | 7634 | |
5005acfe | 7635 | enablestring= |
e6cc62c6 VS |
7636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7637 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7638 | no_cache=0 |
7639 | # Check whether --enable-statline or --disable-statline was given. | |
7640 | if test "${enable_statline+set}" = set; then | |
7641 | enableval="$enable_statline" | |
e6cc62c6 | 7642 | |
10f2d63a VZ |
7643 | if test "$enableval" = yes; then |
7644 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7645 | else | |
7646 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7647 | fi | |
e6cc62c6 | 7648 | |
10f2d63a | 7649 | else |
e6cc62c6 | 7650 | |
10f2d63a VZ |
7651 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7652 | if test "x$LINE" != x ; then | |
7653 | eval "DEFAULT_$LINE" | |
7654 | else | |
7655 | no_cache=1 | |
7656 | fi | |
7657 | ||
7658 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7659 | |
e6cc62c6 | 7660 | fi; |
10f2d63a VZ |
7661 | |
7662 | eval "$ac_cv_use_statline" | |
7663 | if test "$no_cache" != 1; then | |
7664 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7665 | fi | |
7666 | ||
7667 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7668 | echo "$as_me:$LINENO: result: yes" >&5 |
7669 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7670 | else |
e6cc62c6 VS |
7671 | echo "$as_me:$LINENO: result: no" >&5 |
7672 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7673 | fi |
e6cc62c6 | 7674 | |
10f2d63a | 7675 | |
5005acfe | 7676 | enablestring= |
e6cc62c6 VS |
7677 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7678 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7679 | no_cache=0 |
7680 | # Check whether --enable-stattext or --disable-stattext was given. | |
7681 | if test "${enable_stattext+set}" = set; then | |
7682 | enableval="$enable_stattext" | |
e6cc62c6 | 7683 | |
1e6feb95 VZ |
7684 | if test "$enableval" = yes; then |
7685 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7686 | else | |
7687 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7688 | fi | |
e6cc62c6 | 7689 | |
1e6feb95 | 7690 | else |
e6cc62c6 | 7691 | |
1e6feb95 VZ |
7692 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7693 | if test "x$LINE" != x ; then | |
7694 | eval "DEFAULT_$LINE" | |
7695 | else | |
7696 | no_cache=1 | |
7697 | fi | |
7698 | ||
7699 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7700 | |
e6cc62c6 | 7701 | fi; |
1e6feb95 VZ |
7702 | |
7703 | eval "$ac_cv_use_stattext" | |
7704 | if test "$no_cache" != 1; then | |
7705 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7706 | fi | |
7707 | ||
7708 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7709 | echo "$as_me:$LINENO: result: yes" >&5 |
7710 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7711 | else |
e6cc62c6 VS |
7712 | echo "$as_me:$LINENO: result: no" >&5 |
7713 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7714 | fi |
e6cc62c6 | 7715 | |
1e6feb95 | 7716 | |
5005acfe | 7717 | enablestring= |
e6cc62c6 VS |
7718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7719 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7720 | no_cache=0 |
7721 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7722 | if test "${enable_statusbar+set}" = set; then | |
7723 | enableval="$enable_statusbar" | |
e6cc62c6 | 7724 | |
10f2d63a VZ |
7725 | if test "$enableval" = yes; then |
7726 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7727 | else | |
7728 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7729 | fi | |
e6cc62c6 | 7730 | |
10f2d63a | 7731 | else |
e6cc62c6 | 7732 | |
10f2d63a VZ |
7733 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7734 | if test "x$LINE" != x ; then | |
7735 | eval "DEFAULT_$LINE" | |
7736 | else | |
7737 | no_cache=1 | |
7738 | fi | |
7739 | ||
7740 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7741 | |
e6cc62c6 | 7742 | fi; |
10f2d63a VZ |
7743 | |
7744 | eval "$ac_cv_use_statusbar" | |
7745 | if test "$no_cache" != 1; then | |
7746 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7747 | fi | |
7748 | ||
7749 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7750 | echo "$as_me:$LINENO: result: yes" >&5 |
7751 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7752 | else |
e6cc62c6 VS |
7753 | echo "$as_me:$LINENO: result: no" >&5 |
7754 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7755 | fi |
e6cc62c6 | 7756 | |
10f2d63a | 7757 | |
5005acfe | 7758 | enablestring= |
e6cc62c6 VS |
7759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7760 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7761 | no_cache=0 |
7762 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7763 | if test "${enable_tabdialog+set}" = set; then | |
7764 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7765 | |
10f2d63a VZ |
7766 | if test "$enableval" = yes; then |
7767 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7768 | else | |
7769 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7770 | fi | |
e6cc62c6 | 7771 | |
10f2d63a | 7772 | else |
e6cc62c6 | 7773 | |
10f2d63a VZ |
7774 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7775 | if test "x$LINE" != x ; then | |
7776 | eval "DEFAULT_$LINE" | |
7777 | else | |
7778 | no_cache=1 | |
7779 | fi | |
7780 | ||
7781 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7782 | |
e6cc62c6 | 7783 | fi; |
10f2d63a VZ |
7784 | |
7785 | eval "$ac_cv_use_tabdialog" | |
7786 | if test "$no_cache" != 1; then | |
7787 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7788 | fi | |
7789 | ||
7790 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7791 | echo "$as_me:$LINENO: result: yes" >&5 |
7792 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7793 | else |
e6cc62c6 VS |
7794 | echo "$as_me:$LINENO: result: no" >&5 |
7795 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7796 | fi |
e6cc62c6 | 7797 | |
10f2d63a | 7798 | |
5005acfe | 7799 | enablestring= |
e6cc62c6 VS |
7800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7801 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7802 | no_cache=0 |
7803 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7804 | if test "${enable_textctrl+set}" = set; then | |
7805 | enableval="$enable_textctrl" | |
e6cc62c6 | 7806 | |
1e6feb95 VZ |
7807 | if test "$enableval" = yes; then |
7808 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7809 | else | |
7810 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7811 | fi | |
e6cc62c6 | 7812 | |
1e6feb95 | 7813 | else |
e6cc62c6 | 7814 | |
1e6feb95 VZ |
7815 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7816 | if test "x$LINE" != x ; then | |
7817 | eval "DEFAULT_$LINE" | |
7818 | else | |
7819 | no_cache=1 | |
7820 | fi | |
7821 | ||
7822 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7823 | |
e6cc62c6 | 7824 | fi; |
1e6feb95 VZ |
7825 | |
7826 | eval "$ac_cv_use_textctrl" | |
7827 | if test "$no_cache" != 1; then | |
7828 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7829 | fi | |
7830 | ||
7831 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7832 | echo "$as_me:$LINENO: result: yes" >&5 |
7833 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7834 | else |
e6cc62c6 VS |
7835 | echo "$as_me:$LINENO: result: no" >&5 |
7836 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7837 | fi |
e6cc62c6 | 7838 | |
1e6feb95 | 7839 | |
5005acfe | 7840 | enablestring= |
e6cc62c6 VS |
7841 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7842 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7843 | no_cache=0 |
7844 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7845 | if test "${enable_togglebtn+set}" = set; then | |
7846 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7847 | |
1db8dc4a VZ |
7848 | if test "$enableval" = yes; then |
7849 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7850 | else | |
7851 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7852 | fi | |
e6cc62c6 | 7853 | |
1db8dc4a | 7854 | else |
e6cc62c6 | 7855 | |
1db8dc4a VZ |
7856 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7857 | if test "x$LINE" != x ; then | |
7858 | eval "DEFAULT_$LINE" | |
7859 | else | |
7860 | no_cache=1 | |
7861 | fi | |
7862 | ||
7863 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7864 | |
e6cc62c6 | 7865 | fi; |
1db8dc4a VZ |
7866 | |
7867 | eval "$ac_cv_use_togglebtn" | |
7868 | if test "$no_cache" != 1; then | |
7869 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7870 | fi | |
7871 | ||
7872 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7873 | echo "$as_me:$LINENO: result: yes" >&5 |
7874 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7875 | else |
e6cc62c6 VS |
7876 | echo "$as_me:$LINENO: result: no" >&5 |
7877 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7878 | fi |
e6cc62c6 | 7879 | |
1db8dc4a | 7880 | |
5005acfe | 7881 | enablestring= |
e6cc62c6 VS |
7882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7883 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7884 | no_cache=0 |
7885 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7886 | if test "${enable_toolbar+set}" = set; then | |
7887 | enableval="$enable_toolbar" | |
e6cc62c6 | 7888 | |
10f2d63a VZ |
7889 | if test "$enableval" = yes; then |
7890 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7891 | else | |
7892 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7893 | fi | |
e6cc62c6 | 7894 | |
10f2d63a | 7895 | else |
e6cc62c6 | 7896 | |
10f2d63a VZ |
7897 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7898 | if test "x$LINE" != x ; then | |
7899 | eval "DEFAULT_$LINE" | |
7900 | else | |
7901 | no_cache=1 | |
7902 | fi | |
7903 | ||
7904 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7905 | |
e6cc62c6 | 7906 | fi; |
10f2d63a VZ |
7907 | |
7908 | eval "$ac_cv_use_toolbar" | |
7909 | if test "$no_cache" != 1; then | |
7910 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7911 | fi | |
7912 | ||
7913 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7914 | echo "$as_me:$LINENO: result: yes" >&5 |
7915 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7916 | else |
e6cc62c6 VS |
7917 | echo "$as_me:$LINENO: result: no" >&5 |
7918 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7919 | fi |
e6cc62c6 | 7920 | |
10f2d63a | 7921 | |
5005acfe | 7922 | enablestring= |
e6cc62c6 VS |
7923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7924 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7925 | no_cache=0 |
7926 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7927 | if test "${enable_tbarnative+set}" = set; then | |
7928 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7929 | |
360d6699 VZ |
7930 | if test "$enableval" = yes; then |
7931 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7932 | else | |
7933 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7934 | fi | |
e6cc62c6 | 7935 | |
360d6699 | 7936 | else |
e6cc62c6 | 7937 | |
360d6699 VZ |
7938 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7939 | if test "x$LINE" != x ; then | |
7940 | eval "DEFAULT_$LINE" | |
7941 | else | |
7942 | no_cache=1 | |
7943 | fi | |
7944 | ||
7945 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7946 | |
e6cc62c6 | 7947 | fi; |
360d6699 VZ |
7948 | |
7949 | eval "$ac_cv_use_tbarnative" | |
7950 | if test "$no_cache" != 1; then | |
7951 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7952 | fi | |
7953 | ||
7954 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7955 | echo "$as_me:$LINENO: result: yes" >&5 |
7956 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7957 | else |
e6cc62c6 VS |
7958 | echo "$as_me:$LINENO: result: no" >&5 |
7959 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7960 | fi |
e6cc62c6 | 7961 | |
360d6699 | 7962 | |
5005acfe | 7963 | enablestring= |
e6cc62c6 VS |
7964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7965 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7966 | no_cache=0 |
7967 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7968 | if test "${enable_tbarsmpl+set}" = set; then | |
7969 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7970 | |
360d6699 VZ |
7971 | if test "$enableval" = yes; then |
7972 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7973 | else | |
7974 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7975 | fi | |
e6cc62c6 | 7976 | |
360d6699 | 7977 | else |
e6cc62c6 | 7978 | |
360d6699 VZ |
7979 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7980 | if test "x$LINE" != x ; then | |
7981 | eval "DEFAULT_$LINE" | |
7982 | else | |
7983 | no_cache=1 | |
7984 | fi | |
7985 | ||
7986 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7987 | |
e6cc62c6 | 7988 | fi; |
360d6699 VZ |
7989 | |
7990 | eval "$ac_cv_use_tbarsmpl" | |
7991 | if test "$no_cache" != 1; then | |
7992 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7993 | fi | |
7994 | ||
7995 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
7996 | echo "$as_me:$LINENO: result: yes" >&5 |
7997 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7998 | else |
e6cc62c6 VS |
7999 | echo "$as_me:$LINENO: result: no" >&5 |
8000 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8001 | fi |
e6cc62c6 | 8002 | |
360d6699 | 8003 | |
5005acfe | 8004 | enablestring= |
e6cc62c6 VS |
8005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8006 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8007 | no_cache=0 |
8008 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8009 | if test "${enable_treectrl+set}" = set; then | |
8010 | enableval="$enable_treectrl" | |
e6cc62c6 | 8011 | |
10f2d63a VZ |
8012 | if test "$enableval" = yes; then |
8013 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8014 | else | |
8015 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8016 | fi | |
e6cc62c6 | 8017 | |
10f2d63a | 8018 | else |
e6cc62c6 | 8019 | |
10f2d63a VZ |
8020 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8021 | if test "x$LINE" != x ; then | |
8022 | eval "DEFAULT_$LINE" | |
8023 | else | |
8024 | no_cache=1 | |
8025 | fi | |
8026 | ||
8027 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8028 | |
e6cc62c6 | 8029 | fi; |
10f2d63a | 8030 | |
1e6feb95 VZ |
8031 | eval "$ac_cv_use_treectrl" |
8032 | if test "$no_cache" != 1; then | |
8033 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8034 | fi | |
8035 | ||
8036 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8037 | echo "$as_me:$LINENO: result: yes" >&5 |
8038 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8039 | else |
e6cc62c6 VS |
8040 | echo "$as_me:$LINENO: result: no" >&5 |
8041 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8042 | fi |
e6cc62c6 | 8043 | |
1e6feb95 | 8044 | |
5005acfe | 8045 | enablestring= |
e6cc62c6 VS |
8046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8047 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8048 | no_cache=0 |
8049 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8050 | if test "${enable_tipwindow+set}" = set; then | |
8051 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8052 | |
9926e4a4 VZ |
8053 | if test "$enableval" = yes; then |
8054 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8055 | else | |
8056 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8057 | fi | |
e6cc62c6 | 8058 | |
9926e4a4 | 8059 | else |
e6cc62c6 | 8060 | |
9926e4a4 VZ |
8061 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8062 | if test "x$LINE" != x ; then | |
8063 | eval "DEFAULT_$LINE" | |
8064 | else | |
8065 | no_cache=1 | |
8066 | fi | |
8067 | ||
8068 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8069 | |
e6cc62c6 | 8070 | fi; |
9926e4a4 VZ |
8071 | |
8072 | eval "$ac_cv_use_tipwindow" | |
8073 | if test "$no_cache" != 1; then | |
8074 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8075 | fi | |
8076 | ||
8077 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8078 | echo "$as_me:$LINENO: result: yes" >&5 |
8079 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8080 | else |
e6cc62c6 VS |
8081 | echo "$as_me:$LINENO: result: no" >&5 |
8082 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8083 | fi |
e6cc62c6 | 8084 | |
9926e4a4 | 8085 | |
5005acfe | 8086 | enablestring= |
e6cc62c6 VS |
8087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8088 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8089 | no_cache=0 |
8090 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8091 | if test "${enable_popupwin+set}" = set; then | |
8092 | enableval="$enable_popupwin" | |
e6cc62c6 | 8093 | |
9f41d601 RR |
8094 | if test "$enableval" = yes; then |
8095 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8096 | else | |
8097 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8098 | fi | |
e6cc62c6 | 8099 | |
9f41d601 | 8100 | else |
e6cc62c6 | 8101 | |
9f41d601 RR |
8102 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8103 | if test "x$LINE" != x ; then | |
8104 | eval "DEFAULT_$LINE" | |
8105 | else | |
8106 | no_cache=1 | |
8107 | fi | |
8108 | ||
8109 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8110 | |
e6cc62c6 | 8111 | fi; |
9f41d601 RR |
8112 | |
8113 | eval "$ac_cv_use_popupwin" | |
8114 | if test "$no_cache" != 1; then | |
8115 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8116 | fi | |
8117 | ||
8118 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8119 | echo "$as_me:$LINENO: result: yes" >&5 |
8120 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8121 | else |
e6cc62c6 VS |
8122 | echo "$as_me:$LINENO: result: no" >&5 |
8123 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8124 | fi |
e6cc62c6 | 8125 | |
52127426 | 8126 | |
8284b0c5 MB |
8127 | |
8128 | ||
5005acfe | 8129 | enablestring= |
e6cc62c6 VS |
8130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8131 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8132 | no_cache=0 |
8133 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8134 | if test "${enable_commondlg+set}" = set; then | |
8135 | enableval="$enable_commondlg" | |
e6cc62c6 | 8136 | |
1e6feb95 VZ |
8137 | if test "$enableval" = yes; then |
8138 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8139 | else | |
8140 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8141 | fi | |
e6cc62c6 | 8142 | |
1e6feb95 | 8143 | else |
e6cc62c6 | 8144 | |
1e6feb95 VZ |
8145 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8146 | if test "x$LINE" != x ; then | |
8147 | eval "DEFAULT_$LINE" | |
8148 | else | |
8149 | no_cache=1 | |
8150 | fi | |
8151 | ||
8152 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8153 | |
e6cc62c6 | 8154 | fi; |
1e6feb95 VZ |
8155 | |
8156 | eval "$ac_cv_use_commondlg" | |
8157 | if test "$no_cache" != 1; then | |
8158 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8159 | fi | |
8160 | ||
8161 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8162 | echo "$as_me:$LINENO: result: yes" >&5 |
8163 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8164 | else |
e6cc62c6 VS |
8165 | echo "$as_me:$LINENO: result: no" >&5 |
8166 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8167 | fi |
e6cc62c6 | 8168 | |
1e6feb95 | 8169 | |
5005acfe | 8170 | enablestring= |
e6cc62c6 VS |
8171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8172 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8173 | no_cache=0 |
8174 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8175 | if test "${enable_choicedlg+set}" = set; then | |
8176 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8177 | |
1e6feb95 VZ |
8178 | if test "$enableval" = yes; then |
8179 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8180 | else | |
8181 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8182 | fi | |
e6cc62c6 | 8183 | |
1e6feb95 | 8184 | else |
e6cc62c6 | 8185 | |
1e6feb95 VZ |
8186 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8187 | if test "x$LINE" != x ; then | |
8188 | eval "DEFAULT_$LINE" | |
8189 | else | |
8190 | no_cache=1 | |
8191 | fi | |
8192 | ||
8193 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8194 | |
e6cc62c6 | 8195 | fi; |
1e6feb95 VZ |
8196 | |
8197 | eval "$ac_cv_use_choicedlg" | |
8198 | if test "$no_cache" != 1; then | |
8199 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8200 | fi | |
8201 | ||
8202 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8203 | echo "$as_me:$LINENO: result: yes" >&5 |
8204 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8205 | else |
e6cc62c6 VS |
8206 | echo "$as_me:$LINENO: result: no" >&5 |
8207 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8208 | fi |
e6cc62c6 | 8209 | |
1e6feb95 | 8210 | |
5005acfe | 8211 | enablestring= |
e6cc62c6 VS |
8212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8213 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8214 | no_cache=0 |
8215 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8216 | if test "${enable_coldlg+set}" = set; then | |
8217 | enableval="$enable_coldlg" | |
e6cc62c6 | 8218 | |
1e6feb95 VZ |
8219 | if test "$enableval" = yes; then |
8220 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8221 | else | |
8222 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8223 | fi | |
e6cc62c6 | 8224 | |
1e6feb95 | 8225 | else |
e6cc62c6 | 8226 | |
1e6feb95 VZ |
8227 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8228 | if test "x$LINE" != x ; then | |
8229 | eval "DEFAULT_$LINE" | |
8230 | else | |
8231 | no_cache=1 | |
8232 | fi | |
8233 | ||
8234 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8235 | |
e6cc62c6 | 8236 | fi; |
1e6feb95 VZ |
8237 | |
8238 | eval "$ac_cv_use_coldlg" | |
8239 | if test "$no_cache" != 1; then | |
8240 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8241 | fi | |
8242 | ||
8243 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8244 | echo "$as_me:$LINENO: result: yes" >&5 |
8245 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8246 | else |
e6cc62c6 VS |
8247 | echo "$as_me:$LINENO: result: no" >&5 |
8248 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8249 | fi |
e6cc62c6 | 8250 | |
1e6feb95 | 8251 | |
5005acfe | 8252 | enablestring= |
e6cc62c6 VS |
8253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8254 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8255 | no_cache=0 |
8256 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8257 | if test "${enable_filedlg+set}" = set; then | |
8258 | enableval="$enable_filedlg" | |
e6cc62c6 | 8259 | |
1e6feb95 VZ |
8260 | if test "$enableval" = yes; then |
8261 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8262 | else | |
8263 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8264 | fi | |
e6cc62c6 | 8265 | |
1e6feb95 | 8266 | else |
e6cc62c6 | 8267 | |
1e6feb95 VZ |
8268 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8269 | if test "x$LINE" != x ; then | |
8270 | eval "DEFAULT_$LINE" | |
8271 | else | |
8272 | no_cache=1 | |
8273 | fi | |
8274 | ||
8275 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8276 | |
e6cc62c6 | 8277 | fi; |
1e6feb95 VZ |
8278 | |
8279 | eval "$ac_cv_use_filedlg" | |
8280 | if test "$no_cache" != 1; then | |
8281 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8282 | fi | |
8283 | ||
8284 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8285 | echo "$as_me:$LINENO: result: yes" >&5 |
8286 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8287 | else |
e6cc62c6 VS |
8288 | echo "$as_me:$LINENO: result: no" >&5 |
8289 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8290 | fi |
e6cc62c6 | 8291 | |
1e6feb95 | 8292 | |
5005acfe | 8293 | enablestring= |
e6cc62c6 VS |
8294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8295 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8296 | no_cache=0 |
69d27ff7 MB |
8297 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8298 | if test "${enable_finddlg+set}" = set; then | |
8299 | enableval="$enable_finddlg" | |
e6cc62c6 | 8300 | |
8db37e06 | 8301 | if test "$enableval" = yes; then |
69d27ff7 | 8302 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8303 | else |
69d27ff7 | 8304 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8305 | fi |
e6cc62c6 | 8306 | |
8db37e06 | 8307 | else |
e6cc62c6 | 8308 | |
8db37e06 VZ |
8309 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8310 | if test "x$LINE" != x ; then | |
8311 | eval "DEFAULT_$LINE" | |
8312 | else | |
8313 | no_cache=1 | |
8314 | fi | |
8315 | ||
69d27ff7 | 8316 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8317 | |
e6cc62c6 | 8318 | fi; |
8db37e06 | 8319 | |
69d27ff7 | 8320 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8321 | if test "$no_cache" != 1; then |
69d27ff7 | 8322 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8323 | fi |
8324 | ||
8325 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8326 | echo "$as_me:$LINENO: result: yes" >&5 |
8327 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8328 | else |
e6cc62c6 VS |
8329 | echo "$as_me:$LINENO: result: no" >&5 |
8330 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8331 | fi |
e6cc62c6 | 8332 | |
8db37e06 | 8333 | |
5005acfe | 8334 | enablestring= |
e6cc62c6 VS |
8335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8336 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8337 | no_cache=0 |
8338 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8339 | if test "${enable_fontdlg+set}" = set; then | |
8340 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8341 | |
1e6feb95 VZ |
8342 | if test "$enableval" = yes; then |
8343 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8344 | else | |
8345 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8346 | fi | |
e6cc62c6 | 8347 | |
1e6feb95 | 8348 | else |
e6cc62c6 | 8349 | |
1e6feb95 VZ |
8350 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8351 | if test "x$LINE" != x ; then | |
8352 | eval "DEFAULT_$LINE" | |
8353 | else | |
8354 | no_cache=1 | |
8355 | fi | |
8356 | ||
8357 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8358 | |
e6cc62c6 | 8359 | fi; |
1e6feb95 VZ |
8360 | |
8361 | eval "$ac_cv_use_fontdlg" | |
8362 | if test "$no_cache" != 1; then | |
8363 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8364 | fi | |
8365 | ||
8366 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8367 | echo "$as_me:$LINENO: result: yes" >&5 |
8368 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8369 | else |
e6cc62c6 VS |
8370 | echo "$as_me:$LINENO: result: no" >&5 |
8371 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8372 | fi |
e6cc62c6 | 8373 | |
1e6feb95 | 8374 | |
5005acfe | 8375 | enablestring= |
e6cc62c6 VS |
8376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8377 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8378 | no_cache=0 |
8379 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8380 | if test "${enable_dirdlg+set}" = set; then | |
8381 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8382 | |
1e6feb95 VZ |
8383 | if test "$enableval" = yes; then |
8384 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8385 | else | |
8386 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8387 | fi | |
e6cc62c6 | 8388 | |
1e6feb95 | 8389 | else |
e6cc62c6 | 8390 | |
1e6feb95 VZ |
8391 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8392 | if test "x$LINE" != x ; then | |
8393 | eval "DEFAULT_$LINE" | |
8394 | else | |
8395 | no_cache=1 | |
8396 | fi | |
8397 | ||
8398 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8399 | |
e6cc62c6 | 8400 | fi; |
1e6feb95 VZ |
8401 | |
8402 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8403 | if test "$no_cache" != 1; then |
1e6feb95 | 8404 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8405 | fi |
8406 | ||
1e6feb95 | 8407 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8408 | echo "$as_me:$LINENO: result: yes" >&5 |
8409 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8410 | else |
e6cc62c6 VS |
8411 | echo "$as_me:$LINENO: result: no" >&5 |
8412 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8413 | fi |
e6cc62c6 | 8414 | |
698dcdb6 | 8415 | |
5005acfe | 8416 | enablestring= |
e6cc62c6 VS |
8417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8418 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8419 | no_cache=0 |
1e6feb95 VZ |
8420 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8421 | if test "${enable_msgdlg+set}" = set; then | |
8422 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8423 | |
10f2d63a | 8424 | if test "$enableval" = yes; then |
1e6feb95 | 8425 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8426 | else |
1e6feb95 | 8427 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8428 | fi |
e6cc62c6 | 8429 | |
10f2d63a | 8430 | else |
e6cc62c6 | 8431 | |
1e6feb95 | 8432 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8433 | if test "x$LINE" != x ; then |
8434 | eval "DEFAULT_$LINE" | |
8435 | else | |
8436 | no_cache=1 | |
8437 | fi | |
8438 | ||
1e6feb95 | 8439 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8440 | |
e6cc62c6 | 8441 | fi; |
10f2d63a | 8442 | |
1e6feb95 | 8443 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8444 | if test "$no_cache" != 1; then |
1e6feb95 | 8445 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8446 | fi |
8447 | ||
1e6feb95 | 8448 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8449 | echo "$as_me:$LINENO: result: yes" >&5 |
8450 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8451 | else |
e6cc62c6 VS |
8452 | echo "$as_me:$LINENO: result: no" >&5 |
8453 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8454 | fi |
e6cc62c6 | 8455 | |
10f2d63a | 8456 | |
5005acfe | 8457 | enablestring= |
e6cc62c6 VS |
8458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8459 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8460 | no_cache=0 |
1e6feb95 VZ |
8461 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8462 | if test "${enable_numberdlg+set}" = set; then | |
8463 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8464 | |
10f2d63a | 8465 | if test "$enableval" = yes; then |
1e6feb95 | 8466 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8467 | else |
1e6feb95 | 8468 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8469 | fi |
e6cc62c6 | 8470 | |
10f2d63a | 8471 | else |
e6cc62c6 | 8472 | |
1e6feb95 | 8473 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8474 | if test "x$LINE" != x ; then |
8475 | eval "DEFAULT_$LINE" | |
8476 | else | |
8477 | no_cache=1 | |
8478 | fi | |
8479 | ||
1e6feb95 | 8480 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8481 | |
e6cc62c6 | 8482 | fi; |
10f2d63a | 8483 | |
1e6feb95 | 8484 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8485 | if test "$no_cache" != 1; then |
1e6feb95 | 8486 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8487 | fi |
8488 | ||
1e6feb95 | 8489 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8490 | echo "$as_me:$LINENO: result: yes" >&5 |
8491 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8492 | else |
e6cc62c6 VS |
8493 | echo "$as_me:$LINENO: result: no" >&5 |
8494 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8495 | fi |
e6cc62c6 | 8496 | |
10f2d63a | 8497 | |
5005acfe | 8498 | enablestring= |
e6cc62c6 VS |
8499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8500 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8501 | no_cache=0 |
8502 | # Check whether --enable-splash or --disable-splash was given. | |
8503 | if test "${enable_splash+set}" = set; then | |
8504 | enableval="$enable_splash" | |
e6cc62c6 | 8505 | |
cbca9943 VZ |
8506 | if test "$enableval" = yes; then |
8507 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8508 | else | |
8509 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8510 | fi | |
e6cc62c6 | 8511 | |
cbca9943 | 8512 | else |
e6cc62c6 | 8513 | |
cbca9943 VZ |
8514 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8515 | if test "x$LINE" != x ; then | |
8516 | eval "DEFAULT_$LINE" | |
8517 | else | |
8518 | no_cache=1 | |
8519 | fi | |
8520 | ||
8521 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8522 | |
e6cc62c6 | 8523 | fi; |
cbca9943 VZ |
8524 | |
8525 | eval "$ac_cv_use_splash" | |
8526 | if test "$no_cache" != 1; then | |
8527 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8528 | fi | |
8529 | ||
8530 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8531 | echo "$as_me:$LINENO: result: yes" >&5 |
8532 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8533 | else |
e6cc62c6 VS |
8534 | echo "$as_me:$LINENO: result: no" >&5 |
8535 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8536 | fi |
e6cc62c6 | 8537 | |
cbca9943 | 8538 | |
5005acfe | 8539 | enablestring= |
e6cc62c6 VS |
8540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8541 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8542 | no_cache=0 |
8543 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8544 | if test "${enable_textdlg+set}" = set; then | |
8545 | enableval="$enable_textdlg" | |
e6cc62c6 | 8546 | |
10f2d63a VZ |
8547 | if test "$enableval" = yes; then |
8548 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8549 | else | |
8550 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8551 | fi | |
e6cc62c6 | 8552 | |
10f2d63a | 8553 | else |
e6cc62c6 | 8554 | |
10f2d63a VZ |
8555 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8556 | if test "x$LINE" != x ; then | |
8557 | eval "DEFAULT_$LINE" | |
8558 | else | |
8559 | no_cache=1 | |
8560 | fi | |
8561 | ||
8562 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8563 | |
e6cc62c6 | 8564 | fi; |
10f2d63a VZ |
8565 | |
8566 | eval "$ac_cv_use_textdlg" | |
8567 | if test "$no_cache" != 1; then | |
8568 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8569 | fi | |
8570 | ||
8571 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8572 | echo "$as_me:$LINENO: result: yes" >&5 |
8573 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8574 | else |
e6cc62c6 VS |
8575 | echo "$as_me:$LINENO: result: no" >&5 |
8576 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8577 | fi |
e6cc62c6 | 8578 | |
10f2d63a | 8579 | |
5005acfe | 8580 | enablestring= |
e6cc62c6 VS |
8581 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8582 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8583 | no_cache=0 |
8584 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8585 | if test "${enable_tipdlg+set}" = set; then | |
8586 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8587 | |
10f2d63a VZ |
8588 | if test "$enableval" = yes; then |
8589 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8590 | else | |
8591 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8592 | fi | |
e6cc62c6 | 8593 | |
10f2d63a | 8594 | else |
e6cc62c6 | 8595 | |
10f2d63a VZ |
8596 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8597 | if test "x$LINE" != x ; then | |
8598 | eval "DEFAULT_$LINE" | |
8599 | else | |
8600 | no_cache=1 | |
8601 | fi | |
8602 | ||
8603 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8604 | |
e6cc62c6 | 8605 | fi; |
10f2d63a VZ |
8606 | |
8607 | eval "$ac_cv_use_tipdlg" | |
8608 | if test "$no_cache" != 1; then | |
8609 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8610 | fi | |
8611 | ||
8612 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8613 | echo "$as_me:$LINENO: result: yes" >&5 |
8614 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8615 | else |
e6cc62c6 VS |
8616 | echo "$as_me:$LINENO: result: no" >&5 |
8617 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8618 | fi |
e6cc62c6 | 8619 | |
10f2d63a | 8620 | |
5005acfe | 8621 | enablestring= |
e6cc62c6 VS |
8622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8623 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8624 | no_cache=0 |
8625 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8626 | if test "${enable_progressdlg+set}" = set; then | |
8627 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8628 | |
10f2d63a VZ |
8629 | if test "$enableval" = yes; then |
8630 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8631 | else | |
8632 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8633 | fi | |
e6cc62c6 | 8634 | |
10f2d63a | 8635 | else |
e6cc62c6 | 8636 | |
10f2d63a VZ |
8637 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8638 | if test "x$LINE" != x ; then | |
8639 | eval "DEFAULT_$LINE" | |
8640 | else | |
8641 | no_cache=1 | |
8642 | fi | |
8643 | ||
8644 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8645 | |
e6cc62c6 | 8646 | fi; |
10f2d63a VZ |
8647 | |
8648 | eval "$ac_cv_use_progressdlg" | |
8649 | if test "$no_cache" != 1; then | |
8650 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8651 | fi | |
8652 | ||
8653 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8654 | echo "$as_me:$LINENO: result: yes" >&5 |
8655 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8656 | else |
e6cc62c6 VS |
8657 | echo "$as_me:$LINENO: result: no" >&5 |
8658 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8659 | fi |
e6cc62c6 | 8660 | |
10f2d63a | 8661 | |
5005acfe | 8662 | enablestring= |
e6cc62c6 VS |
8663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8664 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8665 | no_cache=0 |
8666 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8667 | if test "${enable_wizarddlg+set}" = set; then | |
8668 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8669 | |
b1f5d087 VZ |
8670 | if test "$enableval" = yes; then |
8671 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8672 | else | |
8673 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8674 | fi | |
e6cc62c6 | 8675 | |
b1f5d087 | 8676 | else |
e6cc62c6 | 8677 | |
b1f5d087 VZ |
8678 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8679 | if test "x$LINE" != x ; then | |
8680 | eval "DEFAULT_$LINE" | |
8681 | else | |
8682 | no_cache=1 | |
8683 | fi | |
8684 | ||
8685 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8686 | |
e6cc62c6 | 8687 | fi; |
b1f5d087 VZ |
8688 | |
8689 | eval "$ac_cv_use_wizarddlg" | |
8690 | if test "$no_cache" != 1; then | |
8691 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8692 | fi | |
8693 | ||
8694 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8695 | echo "$as_me:$LINENO: result: yes" >&5 |
8696 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8697 | else |
e6cc62c6 VS |
8698 | echo "$as_me:$LINENO: result: no" >&5 |
8699 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8700 | fi |
e6cc62c6 | 8701 | |
8284b0c5 MB |
8702 | |
8703 | ||
52127426 | 8704 | |
5005acfe | 8705 | enablestring= |
e6cc62c6 VS |
8706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8707 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8708 | no_cache=0 |
8709 | # Check whether --enable-menus or --disable-menus was given. | |
8710 | if test "${enable_menus+set}" = set; then | |
8711 | enableval="$enable_menus" | |
e6cc62c6 | 8712 | |
1e6feb95 VZ |
8713 | if test "$enableval" = yes; then |
8714 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8715 | else | |
8716 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8717 | fi | |
e6cc62c6 | 8718 | |
1e6feb95 | 8719 | else |
e6cc62c6 | 8720 | |
1e6feb95 VZ |
8721 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8722 | if test "x$LINE" != x ; then | |
8723 | eval "DEFAULT_$LINE" | |
8724 | else | |
8725 | no_cache=1 | |
8726 | fi | |
8727 | ||
8728 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8729 | |
e6cc62c6 | 8730 | fi; |
1e6feb95 VZ |
8731 | |
8732 | eval "$ac_cv_use_menus" | |
8733 | if test "$no_cache" != 1; then | |
8734 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8735 | fi | |
8736 | ||
8737 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8738 | echo "$as_me:$LINENO: result: yes" >&5 |
8739 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8740 | else |
e6cc62c6 VS |
8741 | echo "$as_me:$LINENO: result: no" >&5 |
8742 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8743 | fi |
e6cc62c6 | 8744 | |
1e6feb95 | 8745 | |
5005acfe | 8746 | enablestring= |
e6cc62c6 VS |
8747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8748 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8749 | no_cache=0 |
8750 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8751 | if test "${enable_miniframe+set}" = set; then | |
8752 | enableval="$enable_miniframe" | |
e6cc62c6 | 8753 | |
10f2d63a VZ |
8754 | if test "$enableval" = yes; then |
8755 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8756 | else | |
8757 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8758 | fi | |
e6cc62c6 | 8759 | |
10f2d63a | 8760 | else |
e6cc62c6 | 8761 | |
10f2d63a VZ |
8762 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8763 | if test "x$LINE" != x ; then | |
8764 | eval "DEFAULT_$LINE" | |
8765 | else | |
8766 | no_cache=1 | |
8767 | fi | |
8768 | ||
8769 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8770 | |
e6cc62c6 | 8771 | fi; |
10f2d63a VZ |
8772 | |
8773 | eval "$ac_cv_use_miniframe" | |
8774 | if test "$no_cache" != 1; then | |
8775 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8776 | fi | |
8777 | ||
8778 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8779 | echo "$as_me:$LINENO: result: yes" >&5 |
8780 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8781 | else |
e6cc62c6 VS |
8782 | echo "$as_me:$LINENO: result: no" >&5 |
8783 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8784 | fi |
e6cc62c6 | 8785 | |
10f2d63a | 8786 | |
5005acfe | 8787 | enablestring= |
e6cc62c6 VS |
8788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8789 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8790 | no_cache=0 |
8791 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8792 | if test "${enable_tooltips+set}" = set; then | |
8793 | enableval="$enable_tooltips" | |
e6cc62c6 | 8794 | |
10f2d63a VZ |
8795 | if test "$enableval" = yes; then |
8796 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8797 | else | |
8798 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8799 | fi | |
e6cc62c6 | 8800 | |
10f2d63a | 8801 | else |
e6cc62c6 | 8802 | |
10f2d63a VZ |
8803 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8804 | if test "x$LINE" != x ; then | |
8805 | eval "DEFAULT_$LINE" | |
8806 | else | |
8807 | no_cache=1 | |
8808 | fi | |
8809 | ||
8810 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8811 | |
e6cc62c6 | 8812 | fi; |
10f2d63a VZ |
8813 | |
8814 | eval "$ac_cv_use_tooltips" | |
8815 | if test "$no_cache" != 1; then | |
8816 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8817 | fi | |
8818 | ||
8819 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8820 | echo "$as_me:$LINENO: result: yes" >&5 |
8821 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8822 | else |
e6cc62c6 VS |
8823 | echo "$as_me:$LINENO: result: no" >&5 |
8824 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8825 | fi |
e6cc62c6 | 8826 | |
10f2d63a | 8827 | |
5005acfe | 8828 | enablestring= |
e6cc62c6 VS |
8829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8830 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8831 | no_cache=0 |
8832 | # Check whether --enable-splines or --disable-splines was given. | |
8833 | if test "${enable_splines+set}" = set; then | |
8834 | enableval="$enable_splines" | |
e6cc62c6 | 8835 | |
10f2d63a VZ |
8836 | if test "$enableval" = yes; then |
8837 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8838 | else | |
8839 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8840 | fi | |
e6cc62c6 | 8841 | |
10f2d63a | 8842 | else |
e6cc62c6 | 8843 | |
10f2d63a VZ |
8844 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8845 | if test "x$LINE" != x ; then | |
8846 | eval "DEFAULT_$LINE" | |
8847 | else | |
8848 | no_cache=1 | |
8849 | fi | |
8850 | ||
8851 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8852 | |
e6cc62c6 | 8853 | fi; |
10f2d63a VZ |
8854 | |
8855 | eval "$ac_cv_use_splines" | |
8856 | if test "$no_cache" != 1; then | |
8857 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8858 | fi | |
8859 | ||
8860 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8861 | echo "$as_me:$LINENO: result: yes" >&5 |
8862 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8863 | else |
e6cc62c6 VS |
8864 | echo "$as_me:$LINENO: result: no" >&5 |
8865 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8866 | fi |
e6cc62c6 | 8867 | |
10f2d63a | 8868 | |
5005acfe | 8869 | enablestring= |
e6cc62c6 VS |
8870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8871 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8872 | no_cache=0 |
8873 | # Check whether --enable-validators or --disable-validators was given. | |
8874 | if test "${enable_validators+set}" = set; then | |
8875 | enableval="$enable_validators" | |
e6cc62c6 | 8876 | |
10f2d63a VZ |
8877 | if test "$enableval" = yes; then |
8878 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8879 | else | |
8880 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8881 | fi | |
e6cc62c6 | 8882 | |
10f2d63a | 8883 | else |
e6cc62c6 | 8884 | |
10f2d63a VZ |
8885 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8886 | if test "x$LINE" != x ; then | |
8887 | eval "DEFAULT_$LINE" | |
8888 | else | |
8889 | no_cache=1 | |
8890 | fi | |
8891 | ||
8892 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8893 | |
e6cc62c6 | 8894 | fi; |
10f2d63a VZ |
8895 | |
8896 | eval "$ac_cv_use_validators" | |
8897 | if test "$no_cache" != 1; then | |
8898 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8899 | fi | |
8900 | ||
8901 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8902 | echo "$as_me:$LINENO: result: yes" >&5 |
8903 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8904 | else |
e6cc62c6 VS |
8905 | echo "$as_me:$LINENO: result: no" >&5 |
8906 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8907 | fi |
e6cc62c6 | 8908 | |
10f2d63a | 8909 | |
5005acfe | 8910 | enablestring= |
e6cc62c6 VS |
8911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8912 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8913 | no_cache=0 |
8914 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8915 | if test "${enable_busyinfo+set}" = set; then | |
8916 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8917 | |
10f2d63a VZ |
8918 | if test "$enableval" = yes; then |
8919 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8920 | else | |
8921 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8922 | fi | |
e6cc62c6 | 8923 | |
10f2d63a | 8924 | else |
e6cc62c6 | 8925 | |
10f2d63a VZ |
8926 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8927 | if test "x$LINE" != x ; then | |
8928 | eval "DEFAULT_$LINE" | |
8929 | else | |
8930 | no_cache=1 | |
8931 | fi | |
8932 | ||
8933 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8934 | |
e6cc62c6 | 8935 | fi; |
10f2d63a VZ |
8936 | |
8937 | eval "$ac_cv_use_busyinfo" | |
8938 | if test "$no_cache" != 1; then | |
8939 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8940 | fi | |
8941 | ||
8942 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8943 | echo "$as_me:$LINENO: result: yes" >&5 |
8944 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8945 | else |
e6cc62c6 VS |
8946 | echo "$as_me:$LINENO: result: no" >&5 |
8947 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8948 | fi |
e6cc62c6 | 8949 | |
10f2d63a | 8950 | |
5005acfe | 8951 | enablestring= |
e6cc62c6 VS |
8952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8953 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8954 | no_cache=0 |
8955 | # Check whether --enable-joystick or --disable-joystick was given. | |
8956 | if test "${enable_joystick+set}" = set; then | |
8957 | enableval="$enable_joystick" | |
e6cc62c6 | 8958 | |
f6bcfd97 BP |
8959 | if test "$enableval" = yes; then |
8960 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8961 | else | |
8962 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8963 | fi | |
e6cc62c6 | 8964 | |
f6bcfd97 | 8965 | else |
e6cc62c6 | 8966 | |
f6bcfd97 BP |
8967 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8968 | if test "x$LINE" != x ; then | |
8969 | eval "DEFAULT_$LINE" | |
8970 | else | |
8971 | no_cache=1 | |
8972 | fi | |
8973 | ||
8974 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8975 | |
e6cc62c6 | 8976 | fi; |
f6bcfd97 BP |
8977 | |
8978 | eval "$ac_cv_use_joystick" | |
8979 | if test "$no_cache" != 1; then | |
8980 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8981 | fi | |
8982 | ||
8983 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8984 | echo "$as_me:$LINENO: result: yes" >&5 |
8985 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8986 | else |
e6cc62c6 VS |
8987 | echo "$as_me:$LINENO: result: no" >&5 |
8988 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8989 | fi |
e6cc62c6 | 8990 | |
698dcdb6 | 8991 | |
5005acfe | 8992 | enablestring= |
e6cc62c6 VS |
8993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
8994 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
8995 | no_cache=0 |
8996 | # Check whether --enable-metafile or --disable-metafile was given. | |
8997 | if test "${enable_metafile+set}" = set; then | |
8998 | enableval="$enable_metafile" | |
e6cc62c6 | 8999 | |
1e6feb95 VZ |
9000 | if test "$enableval" = yes; then |
9001 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9002 | else | |
9003 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9004 | fi | |
e6cc62c6 | 9005 | |
1e6feb95 | 9006 | else |
e6cc62c6 | 9007 | |
1e6feb95 VZ |
9008 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9009 | if test "x$LINE" != x ; then | |
9010 | eval "DEFAULT_$LINE" | |
9011 | else | |
9012 | no_cache=1 | |
9013 | fi | |
9014 | ||
9015 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9016 | |
e6cc62c6 | 9017 | fi; |
1e6feb95 VZ |
9018 | |
9019 | eval "$ac_cv_use_metafile" | |
9020 | if test "$no_cache" != 1; then | |
9021 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9022 | fi | |
9023 | ||
9024 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9025 | echo "$as_me:$LINENO: result: yes" >&5 |
9026 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9027 | else |
e6cc62c6 VS |
9028 | echo "$as_me:$LINENO: result: no" >&5 |
9029 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9030 | fi |
e6cc62c6 | 9031 | |
1e6feb95 | 9032 | |
5005acfe | 9033 | enablestring= |
e6cc62c6 VS |
9034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9035 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9036 | no_cache=0 |
9037 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9038 | if test "${enable_dragimage+set}" = set; then | |
9039 | enableval="$enable_dragimage" | |
e6cc62c6 | 9040 | |
24fd6d87 VZ |
9041 | if test "$enableval" = yes; then |
9042 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9043 | else | |
9044 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9045 | fi | |
e6cc62c6 | 9046 | |
24fd6d87 | 9047 | else |
e6cc62c6 | 9048 | |
24fd6d87 VZ |
9049 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9050 | if test "x$LINE" != x ; then | |
9051 | eval "DEFAULT_$LINE" | |
9052 | else | |
9053 | no_cache=1 | |
9054 | fi | |
9055 | ||
9056 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9057 | |
e6cc62c6 | 9058 | fi; |
24fd6d87 VZ |
9059 | |
9060 | eval "$ac_cv_use_dragimage" | |
9061 | if test "$no_cache" != 1; then | |
9062 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9063 | fi | |
9064 | ||
9065 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9066 | echo "$as_me:$LINENO: result: yes" >&5 |
9067 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9068 | else |
e6cc62c6 VS |
9069 | echo "$as_me:$LINENO: result: no" >&5 |
9070 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9071 | fi |
e6cc62c6 | 9072 | |
52127426 | 9073 | |
7bb2947d | 9074 | enablestring= |
e6cc62c6 VS |
9075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9076 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9077 | no_cache=0 |
9078 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9079 | if test "${enable_accessibility+set}" = set; then | |
9080 | enableval="$enable_accessibility" | |
e6cc62c6 | 9081 | |
7bb2947d MB |
9082 | if test "$enableval" = yes; then |
9083 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9084 | else | |
9085 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9086 | fi | |
e6cc62c6 | 9087 | |
7bb2947d | 9088 | else |
e6cc62c6 | 9089 | |
7bb2947d MB |
9090 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9091 | if test "x$LINE" != x ; then | |
9092 | eval "DEFAULT_$LINE" | |
9093 | else | |
9094 | no_cache=1 | |
9095 | fi | |
9096 | ||
9097 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9098 | |
e6cc62c6 | 9099 | fi; |
7bb2947d MB |
9100 | |
9101 | eval "$ac_cv_use_accessibility" | |
9102 | if test "$no_cache" != 1; then | |
9103 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9104 | fi | |
9105 | ||
9106 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9107 | echo "$as_me:$LINENO: result: yes" >&5 |
9108 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9109 | else |
e6cc62c6 VS |
9110 | echo "$as_me:$LINENO: result: no" >&5 |
9111 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9112 | fi |
e6cc62c6 | 9113 | |
7bb2947d | 9114 | |
8284b0c5 MB |
9115 | |
9116 | ||
5005acfe | 9117 | enablestring= |
e6cc62c6 VS |
9118 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9119 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9120 | no_cache=0 |
9121 | # Check whether --enable-palette or --disable-palette was given. | |
9122 | if test "${enable_palette+set}" = set; then | |
9123 | enableval="$enable_palette" | |
e6cc62c6 | 9124 | |
edae8572 VZ |
9125 | if test "$enableval" = yes; then |
9126 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9127 | else | |
9128 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9129 | fi | |
e6cc62c6 | 9130 | |
edae8572 | 9131 | else |
e6cc62c6 | 9132 | |
edae8572 VZ |
9133 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9134 | if test "x$LINE" != x ; then | |
9135 | eval "DEFAULT_$LINE" | |
9136 | else | |
9137 | no_cache=1 | |
9138 | fi | |
9139 | ||
9140 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9141 | |
e6cc62c6 | 9142 | fi; |
edae8572 VZ |
9143 | |
9144 | eval "$ac_cv_use_palette" | |
9145 | if test "$no_cache" != 1; then | |
9146 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9147 | fi | |
9148 | ||
9149 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9150 | echo "$as_me:$LINENO: result: yes" >&5 |
9151 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9152 | else |
e6cc62c6 VS |
9153 | echo "$as_me:$LINENO: result: no" >&5 |
9154 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9155 | fi |
e6cc62c6 | 9156 | |
edae8572 | 9157 | |
5005acfe | 9158 | enablestring= |
e6cc62c6 VS |
9159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9160 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9161 | no_cache=0 |
9162 | # Check whether --enable-image or --disable-image was given. | |
9163 | if test "${enable_image+set}" = set; then | |
9164 | enableval="$enable_image" | |
e6cc62c6 | 9165 | |
0046ff7c VS |
9166 | if test "$enableval" = yes; then |
9167 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9168 | else | |
9169 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9170 | fi | |
e6cc62c6 | 9171 | |
0046ff7c | 9172 | else |
e6cc62c6 | 9173 | |
0046ff7c VS |
9174 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9175 | if test "x$LINE" != x ; then | |
9176 | eval "DEFAULT_$LINE" | |
9177 | else | |
9178 | no_cache=1 | |
9179 | fi | |
9180 | ||
9181 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9182 | |
e6cc62c6 | 9183 | fi; |
0046ff7c VS |
9184 | |
9185 | eval "$ac_cv_use_image" | |
9186 | if test "$no_cache" != 1; then | |
9187 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9188 | fi | |
9189 | ||
9190 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9191 | echo "$as_me:$LINENO: result: yes" >&5 |
9192 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9193 | else |
e6cc62c6 VS |
9194 | echo "$as_me:$LINENO: result: no" >&5 |
9195 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9196 | fi |
e6cc62c6 | 9197 | |
0046ff7c | 9198 | |
5005acfe | 9199 | enablestring= |
e6cc62c6 VS |
9200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9201 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9202 | no_cache=0 |
9203 | # Check whether --enable-gif or --disable-gif was given. | |
9204 | if test "${enable_gif+set}" = set; then | |
9205 | enableval="$enable_gif" | |
e6cc62c6 | 9206 | |
10f2d63a VZ |
9207 | if test "$enableval" = yes; then |
9208 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9209 | else | |
9210 | ac_cv_use_gif='wxUSE_GIF=no' | |
9211 | fi | |
e6cc62c6 | 9212 | |
10f2d63a | 9213 | else |
e6cc62c6 | 9214 | |
10f2d63a VZ |
9215 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9216 | if test "x$LINE" != x ; then | |
9217 | eval "DEFAULT_$LINE" | |
9218 | else | |
9219 | no_cache=1 | |
9220 | fi | |
9221 | ||
9222 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9223 | |
e6cc62c6 | 9224 | fi; |
10f2d63a VZ |
9225 | |
9226 | eval "$ac_cv_use_gif" | |
9227 | if test "$no_cache" != 1; then | |
9228 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9229 | fi | |
9230 | ||
9231 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9232 | echo "$as_me:$LINENO: result: yes" >&5 |
9233 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9234 | else |
e6cc62c6 VS |
9235 | echo "$as_me:$LINENO: result: no" >&5 |
9236 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9237 | fi |
e6cc62c6 | 9238 | |
10f2d63a | 9239 | |
5005acfe | 9240 | enablestring= |
e6cc62c6 VS |
9241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9242 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9243 | no_cache=0 |
9244 | # Check whether --enable-pcx or --disable-pcx was given. | |
9245 | if test "${enable_pcx+set}" = set; then | |
9246 | enableval="$enable_pcx" | |
e6cc62c6 | 9247 | |
10f2d63a VZ |
9248 | if test "$enableval" = yes; then |
9249 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9250 | else | |
9251 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9252 | fi | |
e6cc62c6 | 9253 | |
10f2d63a | 9254 | else |
e6cc62c6 | 9255 | |
10f2d63a VZ |
9256 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9257 | if test "x$LINE" != x ; then | |
9258 | eval "DEFAULT_$LINE" | |
9259 | else | |
9260 | no_cache=1 | |
9261 | fi | |
9262 | ||
9263 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9264 | |
e6cc62c6 | 9265 | fi; |
10f2d63a VZ |
9266 | |
9267 | eval "$ac_cv_use_pcx" | |
9268 | if test "$no_cache" != 1; then | |
9269 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9270 | fi | |
9271 | ||
9272 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9273 | echo "$as_me:$LINENO: result: yes" >&5 |
9274 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9275 | else |
e6cc62c6 VS |
9276 | echo "$as_me:$LINENO: result: no" >&5 |
9277 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9278 | fi |
e6cc62c6 | 9279 | |
10f2d63a | 9280 | |
5005acfe | 9281 | enablestring= |
e6cc62c6 VS |
9282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9283 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9284 | no_cache=0 |
9285 | # Check whether --enable-iff or --disable-iff was given. | |
9286 | if test "${enable_iff+set}" = set; then | |
9287 | enableval="$enable_iff" | |
e6cc62c6 | 9288 | |
4b6b4dfc RR |
9289 | if test "$enableval" = yes; then |
9290 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9291 | else | |
9292 | ac_cv_use_iff='wxUSE_IFF=no' | |
9293 | fi | |
e6cc62c6 | 9294 | |
4b6b4dfc | 9295 | else |
e6cc62c6 | 9296 | |
4b6b4dfc RR |
9297 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9298 | if test "x$LINE" != x ; then | |
9299 | eval "DEFAULT_$LINE" | |
9300 | else | |
9301 | no_cache=1 | |
9302 | fi | |
9303 | ||
9304 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9305 | |
e6cc62c6 | 9306 | fi; |
4b6b4dfc RR |
9307 | |
9308 | eval "$ac_cv_use_iff" | |
9309 | if test "$no_cache" != 1; then | |
9310 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9311 | fi | |
9312 | ||
9313 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9314 | echo "$as_me:$LINENO: result: yes" >&5 |
9315 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9316 | else |
e6cc62c6 VS |
9317 | echo "$as_me:$LINENO: result: no" >&5 |
9318 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9319 | fi |
e6cc62c6 | 9320 | |
4b6b4dfc | 9321 | |
5005acfe | 9322 | enablestring= |
e6cc62c6 VS |
9323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9324 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9325 | no_cache=0 |
9326 | # Check whether --enable-pnm or --disable-pnm was given. | |
9327 | if test "${enable_pnm+set}" = set; then | |
9328 | enableval="$enable_pnm" | |
e6cc62c6 | 9329 | |
10f2d63a VZ |
9330 | if test "$enableval" = yes; then |
9331 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9332 | else | |
9333 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9334 | fi | |
e6cc62c6 | 9335 | |
10f2d63a | 9336 | else |
e6cc62c6 | 9337 | |
10f2d63a VZ |
9338 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9339 | if test "x$LINE" != x ; then | |
9340 | eval "DEFAULT_$LINE" | |
9341 | else | |
9342 | no_cache=1 | |
9343 | fi | |
9344 | ||
9345 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9346 | |
e6cc62c6 | 9347 | fi; |
10f2d63a VZ |
9348 | |
9349 | eval "$ac_cv_use_pnm" | |
9350 | if test "$no_cache" != 1; then | |
9351 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9352 | fi | |
9353 | ||
9354 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9355 | echo "$as_me:$LINENO: result: yes" >&5 |
9356 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9357 | else |
e6cc62c6 VS |
9358 | echo "$as_me:$LINENO: result: no" >&5 |
9359 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9360 | fi |
e6cc62c6 | 9361 | |
10f2d63a | 9362 | |
5005acfe | 9363 | enablestring= |
e6cc62c6 VS |
9364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9365 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9366 | no_cache=0 |
69d27ff7 MB |
9367 | # Check whether --enable-xpm or --disable-xpm was given. |
9368 | if test "${enable_xpm+set}" = set; then | |
9369 | enableval="$enable_xpm" | |
e6cc62c6 | 9370 | |
0046ff7c | 9371 | if test "$enableval" = yes; then |
69d27ff7 | 9372 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9373 | else |
69d27ff7 | 9374 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9375 | fi |
e6cc62c6 | 9376 | |
0046ff7c | 9377 | else |
e6cc62c6 | 9378 | |
0046ff7c VS |
9379 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9380 | if test "x$LINE" != x ; then | |
9381 | eval "DEFAULT_$LINE" | |
9382 | else | |
9383 | no_cache=1 | |
9384 | fi | |
9385 | ||
69d27ff7 | 9386 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9387 | |
e6cc62c6 | 9388 | fi; |
0046ff7c | 9389 | |
69d27ff7 | 9390 | eval "$ac_cv_use_xpm" |
0046ff7c | 9391 | if test "$no_cache" != 1; then |
69d27ff7 | 9392 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9393 | fi |
9394 | ||
9395 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9396 | echo "$as_me:$LINENO: result: yes" >&5 |
9397 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9398 | else |
e6cc62c6 VS |
9399 | echo "$as_me:$LINENO: result: no" >&5 |
9400 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9401 | fi |
e6cc62c6 | 9402 | |
0046ff7c | 9403 | |
5005acfe | 9404 | enablestring= |
e6cc62c6 VS |
9405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9406 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9407 | no_cache=0 |
c7206e64 VS |
9408 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9409 | if test "${enable_ico_cur+set}" = set; then | |
9410 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9411 | |
658974ae | 9412 | if test "$enableval" = yes; then |
c7206e64 | 9413 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9414 | else |
c7206e64 | 9415 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9416 | fi |
e6cc62c6 | 9417 | |
658974ae | 9418 | else |
e6cc62c6 | 9419 | |
658974ae VS |
9420 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9421 | if test "x$LINE" != x ; then | |
9422 | eval "DEFAULT_$LINE" | |
9423 | else | |
9424 | no_cache=1 | |
9425 | fi | |
9426 | ||
c7206e64 | 9427 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9428 | |
e6cc62c6 | 9429 | fi; |
658974ae | 9430 | |
c7206e64 | 9431 | eval "$ac_cv_use_ico_cur" |
658974ae | 9432 | if test "$no_cache" != 1; then |
c7206e64 | 9433 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9434 | fi |
9435 | ||
9436 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9437 | echo "$as_me:$LINENO: result: yes" >&5 |
9438 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9439 | else |
e6cc62c6 VS |
9440 | echo "$as_me:$LINENO: result: no" >&5 |
9441 | echo "${ECHO_T}no" >&6 | |
658974ae | 9442 | fi |
e6cc62c6 | 9443 | |
658974ae | 9444 | |
b12915c1 VZ |
9445 | fi |
9446 | ||
d558c907 VS |
9447 | case "${host}" in |
9448 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
9449 | PATH_IFS=';' |
9450 | LEX_STEM="lexyy" | |
d558c907 VS |
9451 | ;; |
9452 | *) | |
9453 | PATH_IFS=':' | |
9454 | LEX_STEM="lex.yy" | |
9455 | ;; | |
9456 | esac | |
9457 | ||
8284b0c5 MB |
9458 | |
9459 | ||
10f2d63a VZ |
9460 | echo "saving argument cache $wx_arg_cache_file" |
9461 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9462 | |
8284b0c5 | 9463 | |
e6cc62c6 VS |
9464 | |
9465 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9466 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9467 | |
9468 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9469 | if test "$wxUSE_WINE" = "yes"; then | |
9470 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9471 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9472 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9473 | fi | |
10f2d63a VZ |
9474 | |
9475 | if test "$wxUSE_GUI" = "yes"; then | |
9476 | ||
3a922bb4 | 9477 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9478 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9479 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9480 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9481 | fi |
b12915c1 | 9482 | |
3a922bb4 RL |
9483 | if test "$TOOLKIT_GIVEN" = 1; then |
9484 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9485 | var=wxUSE_$toolkit | |
9486 | eval "value=\$${var}" | |
9487 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9488 | done | |
10f2d63a | 9489 | else |
3a922bb4 RL |
9490 | for toolkit in `echo $ALL_TOOLKITS`; do |
9491 | if test "$has_toolkit_in_cache" != 1; then | |
9492 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9493 | else | |
9494 | var=DEFAULT_wxUSE_$toolkit | |
9495 | fi | |
9496 | eval "wxUSE_$toolkit=\$${var}" | |
9497 | done | |
10f2d63a | 9498 | fi |
10f2d63a | 9499 | |
ac0c4cc3 DE |
9500 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9501 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9502 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9503 | |
d558c907 | 9504 | case "${host}" in |
6fa882bd | 9505 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9506 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9507 | esac |
10f2d63a | 9508 | |
3a922bb4 RL |
9509 | case "$NUM_TOOLKITS" in |
9510 | 1) | |
9511 | ;; | |
9512 | 0) | |
e6cc62c6 VS |
9513 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9514 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9515 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9516 | ;; |
9517 | *) | |
e6cc62c6 VS |
9518 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9519 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9520 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9521 | esac |
10f2d63a | 9522 | |
3a922bb4 RL |
9523 | for toolkit in `echo $ALL_TOOLKITS`; do |
9524 | var=wxUSE_$toolkit | |
9525 | eval "value=\$${var}" | |
9526 | if test "x$value" != x; then | |
9527 | cache_var=CACHE_$toolkit | |
9528 | eval "cache=\$${cache_var}" | |
9529 | if test "$cache" = 1; then | |
9530 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9531 | fi | |
9532 | if test "$value" = 1; then | |
9533 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9534 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9535 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9536 | fi |
9537 | fi | |
9538 | done | |
10f2d63a | 9539 | else |
9de9b8f0 VZ |
9540 | if test "x$host_alias" != "x"; then |
9541 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9542 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9543 | else |
9544 | echo "$as_me:$LINENO: result: base only" >&5 | |
9545 | echo "${ECHO_T}base only" >&6 | |
9546 | fi | |
10f2d63a VZ |
9547 | fi |
9548 | ||
43d99b6d VS |
9549 | wants_win32=0 |
9550 | doesnt_want_win32=0 | |
17234b26 MB |
9551 | case "${host}" in |
9552 | *-*-cygwin*) | |
9553 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9554 | wants_win32=1 |
9555 | else | |
9556 | doesnt_want_win32=1 | |
17234b26 MB |
9557 | fi |
9558 | ;; | |
9559 | *-*-mingw*) | |
43d99b6d | 9560 | wants_win32=1 |
17234b26 MB |
9561 | ;; |
9562 | esac | |
9563 | ||
89e6bf6d VZ |
9564 | if test "$wxUSE_WINE" = "yes"; then |
9565 | wants_win32=1 | |
9566 | CC=winegcc | |
9567 | CXX=wineg++ | |
9568 | RESCOMP=wrc | |
9569 | fi | |
9570 | ||
43d99b6d | 9571 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9572 | USE_UNIX=0 |
9573 | USE_WIN32=1 | |
e6cc62c6 | 9574 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9575 | #define __WIN32__ 1 |
e6cc62c6 | 9576 | _ACEOF |
17234b26 | 9577 | |
e6cc62c6 | 9578 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9579 | #define __WIN95__ 1 |
e6cc62c6 | 9580 | _ACEOF |
17234b26 | 9581 | |
e6cc62c6 | 9582 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9583 | #define __WINDOWS__ 1 |
e6cc62c6 | 9584 | _ACEOF |
17234b26 | 9585 | |
e6cc62c6 | 9586 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9587 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9588 | _ACEOF |
17234b26 | 9589 | |
e6cc62c6 | 9590 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9591 | #define STRICT 1 |
e6cc62c6 | 9592 | _ACEOF |
17234b26 | 9593 | |
e6cc62c6 | 9594 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9595 | #define WINVER 0x0400 |
e6cc62c6 | 9596 | _ACEOF |
17234b26 | 9597 | |
43d99b6d VS |
9598 | fi |
9599 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9600 | USE_UNIX=1 |
9601 | USE_WIN32=0 | |
9602 | fi | |
9603 | ||
9604 | if test "$USE_UNIX" = 1 ; then | |
9605 | wxUSE_UNIX=yes | |
e6cc62c6 | 9606 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9607 | #define __UNIX__ 1 |
e6cc62c6 | 9608 | _ACEOF |
17234b26 MB |
9609 | |
9610 | fi | |
9611 | ||
8284b0c5 | 9612 | |
e6cc62c6 | 9613 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9614 | # This file is a shell script that caches the results of configure |
9615 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9616 | # scripts and configure runs, see configure's option --config-cache. |
9617 | # It is not useful on other systems. If it contains results you don't | |
9618 | # want to keep, you may remove or edit it. | |
10f2d63a | 9619 | # |
e6cc62c6 VS |
9620 | # config.status only pays attention to the cache file if you give it |
9621 | # the --recheck option to rerun configure. | |
10f2d63a | 9622 | # |
e6cc62c6 VS |
9623 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9624 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9625 | # following values. | |
9626 | ||
9627 | _ACEOF | |
9628 | ||
10f2d63a VZ |
9629 | # The following way of writing the cache mishandles newlines in values, |
9630 | # but we know of no workaround that is simple, portable, and efficient. | |
9631 | # So, don't put newlines in cache variables' values. | |
9632 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9633 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9634 | { |
9635 | (set) 2>&1 | | |
9636 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9637 | *ac_space=\ *) | |
9638 | # `set' does not quote correctly, so add quotes (double-quote | |
9639 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9640 | sed -n \ | |
9641 | "s/'/'\\\\''/g; | |
9642 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9643 | ;; | |
9644 | *) | |
9645 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9646 | sed -n \ | |
9647 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9648 | ;; | |
9649 | esac; | |
9650 | } | | |
9651 | sed ' | |
9652 | t clear | |
9653 | : clear | |
9654 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9655 | t end | |
9656 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9657 | : end' >>confcache | |
9658 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9659 | if test -w $cache_file; then |
e6cc62c6 VS |
9660 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9661 | cat confcache >$cache_file | |
10f2d63a VZ |
9662 | else |
9663 | echo "not updating unwritable cache $cache_file" | |
9664 | fi | |
9665 | fi | |
9666 | rm -f confcache | |
9667 | ||
e59890c3 | 9668 | if test "$build" != "$host" ; then |
9d353d4a | 9669 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9670 | CC=$host_alias-gcc |
9671 | CXX=$host_alias-c++ | |
9672 | AR=$host_alias-ar | |
9673 | RANLIB=$host_alias-ranlib | |
9674 | DLLTOOL=$host_alias-dlltool | |
9675 | RESCOMP=$host_alias-windres | |
9676 | LD=$host_alias-ld | |
9677 | NM=$host_alias-nm | |
9678 | STRIP=$host_alias-strip | |
9679 | else | |
e6cc62c6 VS |
9680 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9681 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9682 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9683 | fi |
10f2d63a VZ |
9684 | fi |
9685 | ||
ec603395 | 9686 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9687 | ac_ext=c |
9688 | ac_cpp='$CPP $CPPFLAGS' | |
9689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9692 | if test -n "$ac_tool_prefix"; then | |
9693 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9694 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9697 | if test "${ac_cv_prog_CC+set}" = set; then | |
9698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9699 | else | |
9700 | if test -n "$CC"; then | |
9701 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9702 | else | |
9703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9704 | for as_dir in $PATH | |
9705 | do | |
9706 | IFS=$as_save_IFS | |
9707 | test -z "$as_dir" && as_dir=. | |
9708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9710 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9712 | break 2 | |
9713 | fi | |
9714 | done | |
9715 | done | |
9716 | ||
9717 | fi | |
9718 | fi | |
9719 | CC=$ac_cv_prog_CC | |
9720 | if test -n "$CC"; then | |
9721 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9722 | echo "${ECHO_T}$CC" >&6 | |
9723 | else | |
9724 | echo "$as_me:$LINENO: result: no" >&5 | |
9725 | echo "${ECHO_T}no" >&6 | |
9726 | fi | |
9727 | ||
9728 | fi | |
9729 | if test -z "$ac_cv_prog_CC"; then | |
9730 | ac_ct_CC=$CC | |
9731 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9732 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9735 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9737 | else | |
9738 | if test -n "$ac_ct_CC"; then | |
9739 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9740 | else | |
9741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9742 | for as_dir in $PATH | |
9743 | do | |
9744 | IFS=$as_save_IFS | |
9745 | test -z "$as_dir" && as_dir=. | |
9746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9747 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9748 | ac_cv_prog_ac_ct_CC="gcc" | |
9749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9750 | break 2 | |
9751 | fi | |
9752 | done | |
9753 | done | |
9754 | ||
9755 | fi | |
9756 | fi | |
9757 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9758 | if test -n "$ac_ct_CC"; then | |
9759 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9760 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9761 | else | |
9762 | echo "$as_me:$LINENO: result: no" >&5 | |
9763 | echo "${ECHO_T}no" >&6 | |
9764 | fi | |
9765 | ||
9766 | CC=$ac_ct_CC | |
9767 | else | |
9768 | CC="$ac_cv_prog_CC" | |
9769 | fi | |
9770 | ||
9771 | if test -z "$CC"; then | |
9772 | if test -n "$ac_tool_prefix"; then | |
9773 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9774 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9777 | if test "${ac_cv_prog_CC+set}" = set; then | |
9778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9779 | else |
9780 | if test -n "$CC"; then | |
9781 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9782 | else |
e6cc62c6 VS |
9783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9784 | for as_dir in $PATH | |
9785 | do | |
9786 | IFS=$as_save_IFS | |
9787 | test -z "$as_dir" && as_dir=. | |
9788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9789 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9790 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9792 | break 2 | |
9793 | fi | |
9794 | done | |
9795 | done | |
9796 | ||
10f2d63a | 9797 | fi |
6232543b | 9798 | fi |
e6cc62c6 | 9799 | CC=$ac_cv_prog_CC |
6232543b | 9800 | if test -n "$CC"; then |
e6cc62c6 VS |
9801 | echo "$as_me:$LINENO: result: $CC" >&5 |
9802 | echo "${ECHO_T}$CC" >&6 | |
9803 | else | |
9804 | echo "$as_me:$LINENO: result: no" >&5 | |
9805 | echo "${ECHO_T}no" >&6 | |
9806 | fi | |
9807 | ||
9808 | fi | |
9809 | if test -z "$ac_cv_prog_CC"; then | |
9810 | ac_ct_CC=$CC | |
9811 | # Extract the first word of "cc", so it can be a program name with args. | |
9812 | set dummy cc; ac_word=$2 | |
9813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9815 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9817 | else | |
9818 | if test -n "$ac_ct_CC"; then | |
9819 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9820 | else | |
9821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9822 | for as_dir in $PATH | |
9823 | do | |
9824 | IFS=$as_save_IFS | |
9825 | test -z "$as_dir" && as_dir=. | |
9826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9828 | ac_cv_prog_ac_ct_CC="cc" | |
9829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9830 | break 2 | |
9831 | fi | |
9832 | done | |
9833 | done | |
9834 | ||
9835 | fi | |
9836 | fi | |
9837 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9838 | if test -n "$ac_ct_CC"; then | |
9839 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9840 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9841 | else | |
9842 | echo "$as_me:$LINENO: result: no" >&5 | |
9843 | echo "${ECHO_T}no" >&6 | |
9844 | fi | |
9845 | ||
9846 | CC=$ac_ct_CC | |
247f5006 | 9847 | else |
e6cc62c6 | 9848 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9849 | fi |
9850 | ||
e6cc62c6 | 9851 | fi |
5c6fa7d2 RR |
9852 | if test -z "$CC"; then |
9853 | # Extract the first word of "cc", so it can be a program name with args. | |
9854 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9857 | if test "${ac_cv_prog_CC+set}" = set; then | |
9858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9859 | else |
9860 | if test -n "$CC"; then | |
9861 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9862 | else | |
9863 | ac_prog_rejected=no | |
e6cc62c6 VS |
9864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9865 | for as_dir in $PATH | |
9866 | do | |
9867 | IFS=$as_save_IFS | |
9868 | test -z "$as_dir" && as_dir=. | |
9869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9870 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9871 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9872 | ac_prog_rejected=yes | |
9873 | continue | |
9874 | fi | |
9875 | ac_cv_prog_CC="cc" | |
9876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9877 | break 2 | |
9878 | fi | |
9879 | done | |
9880 | done | |
9881 | ||
328a083c RR |
9882 | if test $ac_prog_rejected = yes; then |
9883 | # We found a bogon in the path, so make sure we never use it. | |
9884 | set dummy $ac_cv_prog_CC | |
9885 | shift | |
e6cc62c6 | 9886 | if test $# != 0; then |
328a083c | 9887 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9888 | # However, it has the same basename, so the bogon will be chosen |
9889 | # first if we set CC to just the basename; use the full file name. | |
9890 | shift | |
e6cc62c6 | 9891 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9892 | fi |
1e487827 VS |
9893 | fi |
9894 | fi | |
9895 | fi | |
e6cc62c6 | 9896 | CC=$ac_cv_prog_CC |
1e487827 | 9897 | if test -n "$CC"; then |
e6cc62c6 VS |
9898 | echo "$as_me:$LINENO: result: $CC" >&5 |
9899 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9900 | else |
e6cc62c6 VS |
9901 | echo "$as_me:$LINENO: result: no" >&5 |
9902 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9903 | fi |
1e487827 | 9904 | |
e6cc62c6 VS |
9905 | fi |
9906 | if test -z "$CC"; then | |
9907 | if test -n "$ac_tool_prefix"; then | |
9908 | for ac_prog in cl | |
9909 | do | |
9910 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9911 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9914 | if test "${ac_cv_prog_CC+set}" = set; then | |
9915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9916 | else |
9917 | if test -n "$CC"; then | |
9918 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9919 | else | |
e6cc62c6 VS |
9920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9921 | for as_dir in $PATH | |
9922 | do | |
9923 | IFS=$as_save_IFS | |
9924 | test -z "$as_dir" && as_dir=. | |
9925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9927 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9929 | break 2 | |
9930 | fi | |
9931 | done | |
9932 | done | |
9933 | ||
f09359cf VS |
9934 | fi |
9935 | fi | |
e6cc62c6 | 9936 | CC=$ac_cv_prog_CC |
f09359cf | 9937 | if test -n "$CC"; then |
e6cc62c6 VS |
9938 | echo "$as_me:$LINENO: result: $CC" >&5 |
9939 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 9940 | else |
e6cc62c6 VS |
9941 | echo "$as_me:$LINENO: result: no" >&5 |
9942 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 9943 | fi |
1e487827 | 9944 | |
e6cc62c6 VS |
9945 | test -n "$CC" && break |
9946 | done | |
9947 | fi | |
9948 | if test -z "$CC"; then | |
9949 | ac_ct_CC=$CC | |
9950 | for ac_prog in cl | |
9951 | do | |
9952 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9953 | set dummy $ac_prog; ac_word=$2 | |
9954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9956 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9958 | else | |
9959 | if test -n "$ac_ct_CC"; then | |
9960 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9961 | else | |
9962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9963 | for as_dir in $PATH | |
9964 | do | |
9965 | IFS=$as_save_IFS | |
9966 | test -z "$as_dir" && as_dir=. | |
9967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9969 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
9970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9971 | break 2 | |
9972 | fi | |
9973 | done | |
9974 | done | |
f09359cf | 9975 | |
e6cc62c6 VS |
9976 | fi |
9977 | fi | |
9978 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9979 | if test -n "$ac_ct_CC"; then | |
9980 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9981 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9982 | else | |
9983 | echo "$as_me:$LINENO: result: no" >&5 | |
9984 | echo "${ECHO_T}no" >&6 | |
9985 | fi | |
f09359cf | 9986 | |
e6cc62c6 VS |
9987 | test -n "$ac_ct_CC" && break |
9988 | done | |
247f5006 | 9989 | |
e6cc62c6 VS |
9990 | CC=$ac_ct_CC |
9991 | fi | |
9992 | ||
9993 | fi | |
9994 | ||
9995 | ||
9996 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
9997 | See \`config.log' for more details." >&5 | |
9998 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
9999 | See \`config.log' for more details." >&2;} | |
10000 | { (exit 1); exit 1; }; } | |
10001 | ||
10002 | # Provide some information about the compiler. | |
10003 | echo "$as_me:$LINENO:" \ | |
10004 | "checking for C compiler version" >&5 | |
10005 | ac_compiler=`set X $ac_compile; echo $2` | |
10006 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10007 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10008 | ac_status=$? | |
10009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10010 | (exit $ac_status); } | |
10011 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10012 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10013 | ac_status=$? | |
10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10015 | (exit $ac_status); } | |
10016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10017 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10018 | ac_status=$? | |
10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10020 | (exit $ac_status); } | |
10021 | ||
10022 | cat >conftest.$ac_ext <<_ACEOF | |
10023 | #line $LINENO "configure" | |
10024 | /* confdefs.h. */ | |
10025 | _ACEOF | |
10026 | cat confdefs.h >>conftest.$ac_ext | |
10027 | cat >>conftest.$ac_ext <<_ACEOF | |
10028 | /* end confdefs.h. */ | |
10029 | ||
10030 | int | |
10031 | main () | |
10032 | { | |
247f5006 | 10033 | |
e6cc62c6 VS |
10034 | ; |
10035 | return 0; | |
10036 | } | |
10037 | _ACEOF | |
10038 | ac_clean_files_save=$ac_clean_files | |
10039 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10040 | # Try to create an executable without -o first, disregard a.out. | |
10041 | # It will help us diagnose broken compilers, and finding out an intuition | |
10042 | # of exeext. | |
10043 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10044 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10045 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10046 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10047 | (eval $ac_link_default) 2>&5 | |
10048 | ac_status=$? | |
10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10050 | (exit $ac_status); }; then | |
10051 | # Find the output, starting from the most likely. This scheme is | |
10052 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10053 | # resort. | |
10054 | ||
10055 | # Be careful to initialize this variable, since it used to be cached. | |
10056 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10057 | ac_cv_exeext= | |
10058 | # b.out is created by i960 compilers. | |
10059 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10060 | do | |
10061 | test -f "$ac_file" || continue | |
10062 | case $ac_file in | |
10063 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10064 | ;; | |
10065 | conftest.$ac_ext ) | |
10066 | # This is the source file. | |
10067 | ;; | |
10068 | [ab].out ) | |
10069 | # We found the default executable, but exeext='' is most | |
10070 | # certainly right. | |
10071 | break;; | |
10072 | *.* ) | |
10073 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10074 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10075 | # but it would be cool to find out if it's true. Does anybody | |
10076 | # maintain Libtool? --akim. | |
10077 | export ac_cv_exeext | |
10078 | break;; | |
10079 | * ) | |
10080 | break;; | |
10081 | esac | |
10082 | done | |
10083 | else | |
10084 | echo "$as_me: failed program was:" >&5 | |
10085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10086 | ||
10087 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10088 | See \`config.log' for more details." >&5 | |
10089 | echo "$as_me: error: C compiler cannot create executables | |
10090 | See \`config.log' for more details." >&2;} | |
10091 | { (exit 77); exit 77; }; } | |
10092 | fi | |
10093 | ||
10094 | ac_exeext=$ac_cv_exeext | |
10095 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10096 | echo "${ECHO_T}$ac_file" >&6 | |
10097 | ||
10098 | # Check the compiler produces executables we can run. If not, either | |
10099 | # the compiler is broken, or we cross compile. | |
10100 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10101 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10102 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10103 | # If not cross compiling, check that we can run a simple program. | |
10104 | if test "$cross_compiling" != yes; then | |
10105 | if { ac_try='./$ac_file' | |
10106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10107 | (eval $ac_try) 2>&5 | |
10108 | ac_status=$? | |
10109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10110 | (exit $ac_status); }; }; then | |
10111 | cross_compiling=no | |
698dcdb6 | 10112 | else |
e6cc62c6 VS |
10113 | if test "$cross_compiling" = maybe; then |
10114 | cross_compiling=yes | |
10115 | else | |
10116 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10117 | If you meant to cross compile, use \`--host'. | |
10118 | See \`config.log' for more details." >&5 | |
10119 | echo "$as_me: error: cannot run C compiled programs. | |
10120 | If you meant to cross compile, use \`--host'. | |
10121 | See \`config.log' for more details." >&2;} | |
10122 | { (exit 1); exit 1; }; } | |
10123 | fi | |
698dcdb6 | 10124 | fi |
52127426 | 10125 | fi |
e6cc62c6 VS |
10126 | echo "$as_me:$LINENO: result: yes" >&5 |
10127 | echo "${ECHO_T}yes" >&6 | |
10128 | ||
10129 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10130 | ac_clean_files=$ac_clean_files_save | |
10131 | # Check the compiler produces executables we can run. If not, either | |
10132 | # the compiler is broken, or we cross compile. | |
10133 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10134 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10135 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10136 | echo "${ECHO_T}$cross_compiling" >&6 | |
10137 | ||
10138 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10139 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10141 | (eval $ac_link) 2>&5 | |
10142 | ac_status=$? | |
10143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10144 | (exit $ac_status); }; then | |
10145 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10146 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10147 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10148 | # `rm'. | |
10149 | for ac_file in conftest.exe conftest conftest.*; do | |
10150 | test -f "$ac_file" || continue | |
10151 | case $ac_file in | |
10152 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10153 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10154 | export ac_cv_exeext | |
10155 | break;; | |
10156 | * ) break;; | |
10157 | esac | |
10158 | done | |
5c6fa7d2 | 10159 | else |
e6cc62c6 VS |
10160 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10161 | See \`config.log' for more details." >&5 | |
10162 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10163 | See \`config.log' for more details." >&2;} | |
10164 | { (exit 1); exit 1; }; } | |
10165 | fi | |
10166 | ||
10167 | rm -f conftest$ac_cv_exeext | |
10168 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10169 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10170 | ||
10171 | rm -f conftest.$ac_ext | |
10172 | EXEEXT=$ac_cv_exeext | |
10173 | ac_exeext=$EXEEXT | |
10174 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10175 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10176 | if test "${ac_cv_objext+set}" = set; then | |
10177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10178 | else | |
10179 | cat >conftest.$ac_ext <<_ACEOF | |
10180 | #line $LINENO "configure" | |
10181 | /* confdefs.h. */ | |
10182 | _ACEOF | |
10183 | cat confdefs.h >>conftest.$ac_ext | |
10184 | cat >>conftest.$ac_ext <<_ACEOF | |
10185 | /* end confdefs.h. */ | |
10186 | ||
10187 | int | |
10188 | main () | |
10189 | { | |
f09359cf | 10190 | |
e6cc62c6 VS |
10191 | ; |
10192 | return 0; | |
10193 | } | |
10194 | _ACEOF | |
10195 | rm -f conftest.o conftest.obj | |
10196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10197 | (eval $ac_compile) 2>&5 | |
10198 | ac_status=$? | |
10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10200 | (exit $ac_status); }; then | |
10201 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10202 | case $ac_file in | |
10203 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10204 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10205 | break;; | |
10206 | esac | |
10207 | done | |
a0b9e27f | 10208 | else |
e6cc62c6 VS |
10209 | echo "$as_me: failed program was:" >&5 |
10210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10211 | ||
10212 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10213 | See \`config.log' for more details." >&5 | |
10214 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10215 | See \`config.log' for more details." >&2;} | |
10216 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10217 | fi |
247f5006 | 10218 | |
e6cc62c6 VS |
10219 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10220 | fi | |
10221 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10222 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10223 | OBJEXT=$ac_cv_objext | |
10224 | ac_objext=$OBJEXT | |
10225 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10226 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10227 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10229 | else |
e6cc62c6 VS |
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 | #ifndef __GNUC__ | |
10242 | choke me | |
10243 | #endif | |
10244 | ||
10245 | ; | |
10246 | return 0; | |
10247 | } | |
10248 | _ACEOF | |
10249 | rm -f conftest.$ac_objext | |
10250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10251 | (eval $ac_compile) 2>&5 | |
10252 | ac_status=$? | |
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10254 | (exit $ac_status); } && | |
10255 | { ac_try='test -s conftest.$ac_objext' | |
10256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10257 | (eval $ac_try) 2>&5 | |
10258 | ac_status=$? | |
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10260 | (exit $ac_status); }; }; then | |
10261 | ac_compiler_gnu=yes | |
10262 | else | |
10263 | echo "$as_me: failed program was:" >&5 | |
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10265 | ||
10266 | ac_compiler_gnu=no | |
10267 | fi | |
10268 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10269 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10270 | ||
10271 | fi | |
10272 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10273 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10274 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10275 | ac_test_CFLAGS=${CFLAGS+set} | |
10276 | ac_save_CFLAGS=$CFLAGS | |
10277 | CFLAGS="-g" | |
10278 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10279 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10280 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10282 | else | |
10283 | cat >conftest.$ac_ext <<_ACEOF | |
10284 | #line $LINENO "configure" | |
10285 | /* confdefs.h. */ | |
10286 | _ACEOF | |
10287 | cat confdefs.h >>conftest.$ac_ext | |
10288 | cat >>conftest.$ac_ext <<_ACEOF | |
10289 | /* end confdefs.h. */ | |
10290 | ||
10291 | int | |
10292 | main () | |
10293 | { | |
10294 | ||
10295 | ; | |
10296 | return 0; | |
10297 | } | |
10298 | _ACEOF | |
10299 | rm -f conftest.$ac_objext | |
10300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10301 | (eval $ac_compile) 2>&5 | |
10302 | ac_status=$? | |
10303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10304 | (exit $ac_status); } && | |
10305 | { ac_try='test -s conftest.$ac_objext' | |
10306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10307 | (eval $ac_try) 2>&5 | |
10308 | ac_status=$? | |
10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10310 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10311 | ac_cv_prog_cc_g=yes |
10312 | else | |
e6cc62c6 VS |
10313 | echo "$as_me: failed program was:" >&5 |
10314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10315 | |
e6cc62c6 | 10316 | ac_cv_prog_cc_g=no |
10f2d63a | 10317 | fi |
e6cc62c6 VS |
10318 | rm -f conftest.$ac_objext conftest.$ac_ext |
10319 | fi | |
10320 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10321 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10322 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10323 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10324 | elif test $ac_cv_prog_cc_g = yes; then |
10325 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10326 | CFLAGS="-g -O2" |
10327 | else | |
f09359cf | 10328 | CFLAGS="-g" |
10f2d63a | 10329 | fi |
5c0a20c3 | 10330 | else |
f09359cf VS |
10331 | if test "$GCC" = yes; then |
10332 | CFLAGS="-O2" | |
10333 | else | |
10334 | CFLAGS= | |
10335 | fi | |
10f2d63a | 10336 | fi |
e6cc62c6 VS |
10337 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10338 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10339 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10341 | else | |
10342 | ac_cv_prog_cc_stdc=no | |
10343 | ac_save_CC=$CC | |
10344 | cat >conftest.$ac_ext <<_ACEOF | |
10345 | #line $LINENO "configure" | |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
10351 | #include <stdarg.h> | |
10352 | #include <stdio.h> | |
10353 | #include <sys/types.h> | |
10354 | #include <sys/stat.h> | |
10355 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10356 | struct buf { int x; }; | |
10357 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10358 | static char *e (p, i) | |
10359 | char **p; | |
10360 | int i; | |
10361 | { | |
10362 | return p[i]; | |
10363 | } | |
10364 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10365 | { | |
10366 | char *s; | |
10367 | va_list v; | |
10368 | va_start (v,p); | |
10369 | s = g (p, va_arg (v,int)); | |
10370 | va_end (v); | |
10371 | return s; | |
10372 | } | |
10373 | int test (int i, double x); | |
10374 | struct s1 {int (*f) (int a);}; | |
10375 | struct s2 {int (*f) (double a);}; | |
10376 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10377 | int argc; | |
10378 | char **argv; | |
10379 | int | |
10380 | main () | |
10381 | { | |
10382 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10383 | ; | |
10384 | return 0; | |
10385 | } | |
10386 | _ACEOF | |
10387 | # Don't try gcc -ansi; that turns off useful extensions and | |
10388 | # breaks some systems' header files. | |
10389 | # AIX -qlanglvl=ansi | |
10390 | # Ultrix and OSF/1 -std1 | |
10391 | # HP-UX 10.20 and later -Ae | |
10392 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10393 | # SVR4 -Xc -D__EXTENSIONS__ | |
10394 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10395 | do | |
10396 | CC="$ac_save_CC $ac_arg" | |
10397 | rm -f conftest.$ac_objext | |
10398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10399 | (eval $ac_compile) 2>&5 | |
10400 | ac_status=$? | |
10401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10402 | (exit $ac_status); } && | |
10403 | { ac_try='test -s conftest.$ac_objext' | |
10404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10405 | (eval $ac_try) 2>&5 | |
10406 | ac_status=$? | |
10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10408 | (exit $ac_status); }; }; then | |
10409 | ac_cv_prog_cc_stdc=$ac_arg | |
10410 | break | |
10411 | else | |
10412 | echo "$as_me: failed program was:" >&5 | |
10413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10414 | ||
10415 | fi | |
10416 | rm -f conftest.$ac_objext | |
10417 | done | |
10418 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10419 | CC=$ac_save_CC | |
10420 | ||
10421 | fi | |
10422 | ||
10423 | case "x$ac_cv_prog_cc_stdc" in | |
10424 | x|xno) | |
10425 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10426 | echo "${ECHO_T}none needed" >&6 ;; | |
10427 | *) | |
10428 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10429 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10430 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10431 | esac | |
10432 | ||
10433 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10434 | # in C++ we need to declare it. In case someone uses the same compiler | |
10435 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10436 | # the declaration of exit, since it's the most demanding environment. | |
10437 | cat >conftest.$ac_ext <<_ACEOF | |
10438 | #ifndef __cplusplus | |
10439 | choke me | |
10440 | #endif | |
10441 | _ACEOF | |
10442 | rm -f conftest.$ac_objext | |
10443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10444 | (eval $ac_compile) 2>&5 | |
10445 | ac_status=$? | |
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10447 | (exit $ac_status); } && | |
10448 | { ac_try='test -s conftest.$ac_objext' | |
10449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10450 | (eval $ac_try) 2>&5 | |
10451 | ac_status=$? | |
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10453 | (exit $ac_status); }; }; then | |
10454 | for ac_declaration in \ | |
6f628073 VS |
10455 | ''\ |
10456 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10457 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10458 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10459 | 'extern "C" void exit (int) throw ();' \ | |
10460 | 'extern "C" void exit (int);' \ | |
10461 | 'void exit (int);' | |
10462 | do | |
10463 | cat >conftest.$ac_ext <<_ACEOF | |
10464 | #line $LINENO "configure" | |
10465 | /* confdefs.h. */ | |
10466 | _ACEOF | |
10467 | cat confdefs.h >>conftest.$ac_ext | |
10468 | cat >>conftest.$ac_ext <<_ACEOF | |
10469 | /* end confdefs.h. */ | |
71e83a03 | 10470 | #include <stdlib.h> |
6f628073 | 10471 | $ac_declaration |
e6cc62c6 VS |
10472 | int |
10473 | main () | |
10474 | { | |
10475 | exit (42); | |
10476 | ; | |
10477 | return 0; | |
10478 | } | |
10479 | _ACEOF | |
10480 | rm -f conftest.$ac_objext | |
10481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10482 | (eval $ac_compile) 2>&5 | |
10483 | ac_status=$? | |
10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10485 | (exit $ac_status); } && | |
10486 | { ac_try='test -s conftest.$ac_objext' | |
10487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10488 | (eval $ac_try) 2>&5 | |
10489 | ac_status=$? | |
10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10491 | (exit $ac_status); }; }; then | |
10492 | : | |
10493 | else | |
10494 | echo "$as_me: failed program was:" >&5 | |
10495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10496 | ||
10497 | continue | |
10498 | fi | |
10499 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10500 | cat >conftest.$ac_ext <<_ACEOF | |
10501 | #line $LINENO "configure" | |
10502 | /* confdefs.h. */ | |
10503 | _ACEOF | |
10504 | cat confdefs.h >>conftest.$ac_ext | |
10505 | cat >>conftest.$ac_ext <<_ACEOF | |
10506 | /* end confdefs.h. */ | |
10507 | $ac_declaration | |
10508 | int | |
10509 | main () | |
10510 | { | |
10511 | exit (42); | |
10512 | ; | |
10513 | return 0; | |
10514 | } | |
10515 | _ACEOF | |
10516 | rm -f conftest.$ac_objext | |
10517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10518 | (eval $ac_compile) 2>&5 | |
10519 | ac_status=$? | |
10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10521 | (exit $ac_status); } && | |
10522 | { ac_try='test -s conftest.$ac_objext' | |
10523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10524 | (eval $ac_try) 2>&5 | |
10525 | ac_status=$? | |
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10527 | (exit $ac_status); }; }; then | |
10528 | break | |
10529 | else | |
10530 | echo "$as_me: failed program was:" >&5 | |
10531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10532 | ||
10533 | fi | |
10534 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10535 | done | |
10536 | rm -f conftest* | |
10537 | if test -n "$ac_declaration"; then | |
10538 | echo '#ifdef __cplusplus' >>confdefs.h | |
10539 | echo $ac_declaration >>confdefs.h | |
10540 | echo '#endif' >>confdefs.h | |
10541 | fi | |
10542 | ||
10543 | else | |
10544 | echo "$as_me: failed program was:" >&5 | |
10545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10546 | ||
10547 | fi | |
10548 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10549 | ac_ext=c | |
10550 | ac_cpp='$CPP $CPPFLAGS' | |
10551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10554 | |
10555 | ||
e6cc62c6 VS |
10556 | |
10557 | ac_ext=c | |
10558 | ac_cpp='$CPP $CPPFLAGS' | |
10559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10562 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10563 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10564 | # On Suns, sometimes $CPP names a directory. |
10565 | if test -n "$CPP" && test -d "$CPP"; then | |
10566 | CPP= | |
10567 | fi | |
10568 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10569 | if test "${ac_cv_prog_CPP+set}" = set; then |
10570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10571 | else | |
10572 | # Double quotes because CPP needs to be expanded | |
10573 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10574 | do | |
10575 | ac_preproc_ok=false | |
10576 | for ac_c_preproc_warn_flag in '' yes | |
10577 | do | |
10578 | # Use a header file that comes with gcc, so configuring glibc | |
10579 | # with a fresh cross-compiler works. | |
10580 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10581 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10582 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10583 | # not just through cpp. "Syntax error" is here to catch this case. |
10584 | cat >conftest.$ac_ext <<_ACEOF | |
10585 | #line $LINENO "configure" | |
10586 | /* confdefs.h. */ | |
10587 | _ACEOF | |
10588 | cat confdefs.h >>conftest.$ac_ext | |
10589 | cat >>conftest.$ac_ext <<_ACEOF | |
10590 | /* end confdefs.h. */ | |
10591 | #ifdef __STDC__ | |
10592 | # include <limits.h> | |
10593 | #else | |
10594 | # include <assert.h> | |
10595 | #endif | |
10596 | Syntax error | |
10597 | _ACEOF | |
10598 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10599 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10600 | ac_status=$? | |
10601 | grep -v '^ *+' conftest.er1 >conftest.err | |
10602 | rm -f conftest.er1 | |
10603 | cat conftest.err >&5 | |
10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10605 | (exit $ac_status); } >/dev/null; then | |
10606 | if test -s conftest.err; then | |
10607 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10608 | else | |
10609 | ac_cpp_err= | |
10610 | fi | |
10f2d63a | 10611 | else |
e6cc62c6 VS |
10612 | ac_cpp_err=yes |
10613 | fi | |
10614 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10615 | : |
247f5006 | 10616 | else |
e6cc62c6 VS |
10617 | echo "$as_me: failed program was:" >&5 |
10618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10619 | ||
10620 | # Broken: fails on valid input. | |
10621 | continue | |
10622 | fi | |
10623 | rm -f conftest.err conftest.$ac_ext | |
10624 | ||
10625 | # OK, works on sane cases. Now check whether non-existent headers | |
10626 | # can be detected and how. | |
10627 | cat >conftest.$ac_ext <<_ACEOF | |
10628 | #line $LINENO "configure" | |
10629 | /* confdefs.h. */ | |
10630 | _ACEOF | |
10631 | cat confdefs.h >>conftest.$ac_ext | |
10632 | cat >>conftest.$ac_ext <<_ACEOF | |
10633 | /* end confdefs.h. */ | |
10634 | #include <ac_nonexistent.h> | |
10635 | _ACEOF | |
10636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10638 | ac_status=$? | |
10639 | grep -v '^ *+' conftest.er1 >conftest.err | |
10640 | rm -f conftest.er1 | |
10641 | cat conftest.err >&5 | |
10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10643 | (exit $ac_status); } >/dev/null; then | |
10644 | if test -s conftest.err; then | |
10645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10646 | else | |
10647 | ac_cpp_err= | |
10648 | fi | |
10f2d63a | 10649 | else |
e6cc62c6 | 10650 | ac_cpp_err=yes |
579d8138 | 10651 | fi |
e6cc62c6 VS |
10652 | if test -z "$ac_cpp_err"; then |
10653 | # Broken: success on invalid input. | |
10654 | continue | |
10655 | else | |
10656 | echo "$as_me: failed program was:" >&5 | |
10657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10658 | ||
10659 | # Passes both tests. | |
10660 | ac_preproc_ok=: | |
10661 | break | |
52127426 | 10662 | fi |
e6cc62c6 VS |
10663 | rm -f conftest.err conftest.$ac_ext |
10664 | ||
10665 | done | |
10666 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10667 | rm -f conftest.err conftest.$ac_ext | |
10668 | if $ac_preproc_ok; then | |
10669 | break | |
8284b0c5 | 10670 | fi |
e6cc62c6 VS |
10671 | |
10672 | done | |
10673 | ac_cv_prog_CPP=$CPP | |
10674 | ||
10675 | fi | |
10676 | CPP=$ac_cv_prog_CPP | |
10677 | else | |
10678 | ac_cv_prog_CPP=$CPP | |
10679 | fi | |
10680 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10681 | echo "${ECHO_T}$CPP" >&6 | |
10682 | ac_preproc_ok=false | |
10683 | for ac_c_preproc_warn_flag in '' yes | |
10684 | do | |
10685 | # Use a header file that comes with gcc, so configuring glibc | |
10686 | # with a fresh cross-compiler works. | |
10687 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10688 | # <limits.h> exists even on freestanding compilers. | |
10689 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10690 | # not just through cpp. "Syntax error" is here to catch this case. | |
10691 | cat >conftest.$ac_ext <<_ACEOF | |
10692 | #line $LINENO "configure" | |
10693 | /* confdefs.h. */ | |
10694 | _ACEOF | |
10695 | cat confdefs.h >>conftest.$ac_ext | |
10696 | cat >>conftest.$ac_ext <<_ACEOF | |
10697 | /* end confdefs.h. */ | |
10698 | #ifdef __STDC__ | |
10699 | # include <limits.h> | |
10700 | #else | |
10701 | # include <assert.h> | |
10702 | #endif | |
10703 | Syntax error | |
10704 | _ACEOF | |
10705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10707 | ac_status=$? | |
10708 | grep -v '^ *+' conftest.er1 >conftest.err | |
10709 | rm -f conftest.er1 | |
10710 | cat conftest.err >&5 | |
10711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10712 | (exit $ac_status); } >/dev/null; then | |
10713 | if test -s conftest.err; then | |
10714 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10715 | else | |
10716 | ac_cpp_err= | |
10717 | fi | |
10718 | else | |
10719 | ac_cpp_err=yes | |
10720 | fi | |
10721 | if test -z "$ac_cpp_err"; then | |
10722 | : | |
10723 | else | |
10724 | echo "$as_me: failed program was:" >&5 | |
10725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10726 | ||
10727 | # Broken: fails on valid input. | |
10728 | continue | |
10729 | fi | |
10730 | rm -f conftest.err conftest.$ac_ext | |
10731 | ||
10732 | # OK, works on sane cases. Now check whether non-existent headers | |
10733 | # can be detected and how. | |
10734 | cat >conftest.$ac_ext <<_ACEOF | |
10735 | #line $LINENO "configure" | |
10736 | /* confdefs.h. */ | |
10737 | _ACEOF | |
10738 | cat confdefs.h >>conftest.$ac_ext | |
10739 | cat >>conftest.$ac_ext <<_ACEOF | |
10740 | /* end confdefs.h. */ | |
10741 | #include <ac_nonexistent.h> | |
10742 | _ACEOF | |
10743 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10744 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10745 | ac_status=$? | |
10746 | grep -v '^ *+' conftest.er1 >conftest.err | |
10747 | rm -f conftest.er1 | |
10748 | cat conftest.err >&5 | |
10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10750 | (exit $ac_status); } >/dev/null; then | |
10751 | if test -s conftest.err; then | |
10752 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10753 | else | |
10754 | ac_cpp_err= | |
10755 | fi | |
10756 | else | |
10757 | ac_cpp_err=yes | |
10758 | fi | |
10759 | if test -z "$ac_cpp_err"; then | |
10760 | # Broken: success on invalid input. | |
10761 | continue | |
10762 | else | |
10763 | echo "$as_me: failed program was:" >&5 | |
10764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10765 | ||
10766 | # Passes both tests. | |
10767 | ac_preproc_ok=: | |
10768 | break | |
a0b9e27f | 10769 | fi |
e6cc62c6 VS |
10770 | rm -f conftest.err conftest.$ac_ext |
10771 | ||
10772 | done | |
10773 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10774 | rm -f conftest.err conftest.$ac_ext | |
10775 | if $ac_preproc_ok; then | |
10776 | : | |
10777 | else | |
10778 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10779 | See \`config.log' for more details." >&5 | |
10780 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10781 | See \`config.log' for more details." >&2;} | |
10782 | { (exit 1); exit 1; }; } | |
10783 | fi | |
10784 | ||
10785 | ac_ext=c | |
10786 | ac_cpp='$CPP $CPPFLAGS' | |
10787 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10788 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10789 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10790 | ||
10791 | ||
10792 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10793 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10794 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10796 | else |
e6cc62c6 VS |
10797 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10798 | then ac_cv_prog_egrep='grep -E' | |
10799 | else ac_cv_prog_egrep='egrep' | |
10800 | fi | |
10f2d63a | 10801 | fi |
e6cc62c6 VS |
10802 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10803 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10804 | EGREP=$ac_cv_prog_egrep | |
10805 | ||
10f2d63a | 10806 | |
e6cc62c6 VS |
10807 | if test $ac_cv_c_compiler_gnu = yes; then |
10808 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10809 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10810 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10812 | else |
10813 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10814 | cat >conftest.$ac_ext <<_ACEOF |
10815 | #line $LINENO "configure" | |
10816 | /* confdefs.h. */ | |
10817 | _ACEOF | |
10818 | cat confdefs.h >>conftest.$ac_ext | |
10819 | cat >>conftest.$ac_ext <<_ACEOF | |
10820 | /* end confdefs.h. */ | |
10f2d63a VZ |
10821 | #include <sgtty.h> |
10822 | Autoconf TIOCGETP | |
e6cc62c6 | 10823 | _ACEOF |
10f2d63a | 10824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10825 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10826 | ac_cv_prog_gcc_traditional=yes |
10827 | else | |
10f2d63a VZ |
10828 | ac_cv_prog_gcc_traditional=no |
10829 | fi | |
10830 | rm -f conftest* | |
10831 | ||
8284b0c5 | 10832 | |
10f2d63a | 10833 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10834 | cat >conftest.$ac_ext <<_ACEOF |
10835 | #line $LINENO "configure" | |
10836 | /* confdefs.h. */ | |
10837 | _ACEOF | |
10838 | cat confdefs.h >>conftest.$ac_ext | |
10839 | cat >>conftest.$ac_ext <<_ACEOF | |
10840 | /* end confdefs.h. */ | |
10f2d63a VZ |
10841 | #include <termio.h> |
10842 | Autoconf TCGETA | |
e6cc62c6 | 10843 | _ACEOF |
10f2d63a | 10844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10845 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10846 | ac_cv_prog_gcc_traditional=yes |
10847 | fi | |
10848 | rm -f conftest* | |
10849 | ||
10850 | fi | |
10851 | fi | |
e6cc62c6 VS |
10852 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10853 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10854 | if test $ac_cv_prog_gcc_traditional = yes; then |
10855 | CC="$CC -traditional" | |
10856 | fi | |
10857 | fi | |
10858 | ||
8284b0c5 MB |
10859 | |
10860 | ||
e6cc62c6 VS |
10861 | |
10862 | ac_ext=cc | |
1e487827 | 10863 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10867 | |
698dcdb6 | 10868 | |
ec603395 | 10869 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10870 | ac_ext=cc |
10871 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10872 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10873 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10874 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10875 | if test -n "$ac_tool_prefix"; then | |
10876 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10877 | do | |
10878 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10879 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10882 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10884 | else |
10885 | if test -n "$CXX"; then | |
10886 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10887 | else | |
e6cc62c6 VS |
10888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10889 | for as_dir in $PATH | |
10890 | do | |
10891 | IFS=$as_save_IFS | |
10892 | test -z "$as_dir" && as_dir=. | |
10893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10895 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10897 | break 2 | |
10898 | fi | |
10899 | done | |
10900 | done | |
10901 | ||
10f2d63a VZ |
10902 | fi |
10903 | fi | |
e6cc62c6 | 10904 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10905 | if test -n "$CXX"; then |
e6cc62c6 VS |
10906 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10907 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10908 | else |
e6cc62c6 VS |
10909 | echo "$as_me:$LINENO: result: no" >&5 |
10910 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10911 | fi |
10912 | ||
e6cc62c6 VS |
10913 | test -n "$CXX" && break |
10914 | done | |
10915 | fi | |
10916 | if test -z "$CXX"; then | |
10917 | ac_ct_CXX=$CXX | |
10918 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10919 | do | |
10920 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10921 | set dummy $ac_prog; ac_word=$2 | |
10922 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10924 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10926 | else | |
10927 | if test -n "$ac_ct_CXX"; then | |
10928 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10929 | else | |
10930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10931 | for as_dir in $PATH | |
10932 | do | |
10933 | IFS=$as_save_IFS | |
10934 | test -z "$as_dir" && as_dir=. | |
10935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10936 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10937 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10939 | break 2 | |
10940 | fi | |
10941 | done | |
10f2d63a | 10942 | done |
a0b9e27f | 10943 | |
8284b0c5 | 10944 | fi |
a0b9e27f | 10945 | fi |
e6cc62c6 VS |
10946 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10947 | if test -n "$ac_ct_CXX"; then | |
10948 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10949 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
10950 | else | |
10951 | echo "$as_me:$LINENO: result: no" >&5 | |
10952 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 10953 | fi |
10f2d63a | 10954 | |
e6cc62c6 VS |
10955 | test -n "$ac_ct_CXX" && break |
10956 | done | |
10957 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10958 | ||
10959 | CXX=$ac_ct_CXX | |
10960 | fi | |
10961 | ||
10962 | ||
10963 | # Provide some information about the compiler. | |
10964 | echo "$as_me:$LINENO:" \ | |
10965 | "checking for C++ compiler version" >&5 | |
10966 | ac_compiler=`set X $ac_compile; echo $2` | |
10967 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10968 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10969 | ac_status=$? | |
10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10971 | (exit $ac_status); } | |
10972 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10973 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10974 | ac_status=$? | |
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10976 | (exit $ac_status); } | |
10977 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10978 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10979 | ac_status=$? | |
10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10981 | (exit $ac_status); } | |
10982 | ||
10983 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
10984 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
10985 | if test "${ac_cv_cxx_compiler_gnu+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 | #ifndef __GNUC__ | |
11000 | choke me | |
11001 | #endif | |
10f2d63a | 11002 | |
e6cc62c6 VS |
11003 | ; |
11004 | return 0; | |
11005 | } | |
11006 | _ACEOF | |
11007 | rm -f conftest.$ac_objext | |
11008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11009 | (eval $ac_compile) 2>&5 | |
11010 | ac_status=$? | |
11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11012 | (exit $ac_status); } && | |
11013 | { ac_try='test -s conftest.$ac_objext' | |
11014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11015 | (eval $ac_try) 2>&5 | |
11016 | ac_status=$? | |
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11018 | (exit $ac_status); }; }; then | |
11019 | ac_compiler_gnu=yes | |
11020 | else | |
11021 | echo "$as_me: failed program was:" >&5 | |
11022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11023 | ||
11024 | ac_compiler_gnu=no | |
11025 | fi | |
11026 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11027 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11028 | ||
11029 | fi | |
11030 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11031 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11032 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11033 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11034 | ac_save_CXXFLAGS=$CXXFLAGS | |
11035 | CXXFLAGS="-g" | |
11036 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11037 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11038 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11040 | else | |
11041 | cat >conftest.$ac_ext <<_ACEOF | |
11042 | #line $LINENO "configure" | |
11043 | /* confdefs.h. */ | |
11044 | _ACEOF | |
11045 | cat confdefs.h >>conftest.$ac_ext | |
11046 | cat >>conftest.$ac_ext <<_ACEOF | |
11047 | /* end confdefs.h. */ | |
11048 | ||
11049 | int | |
11050 | main () | |
11051 | { | |
f09359cf | 11052 | |
e6cc62c6 VS |
11053 | ; |
11054 | return 0; | |
11055 | } | |
11056 | _ACEOF | |
11057 | rm -f conftest.$ac_objext | |
11058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11059 | (eval $ac_compile) 2>&5 | |
11060 | ac_status=$? | |
11061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11062 | (exit $ac_status); } && | |
11063 | { ac_try='test -s conftest.$ac_objext' | |
11064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11065 | (eval $ac_try) 2>&5 | |
11066 | ac_status=$? | |
11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11068 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11069 | ac_cv_prog_cxx_g=yes |
11070 | else | |
e6cc62c6 VS |
11071 | echo "$as_me: failed program was:" >&5 |
11072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11073 | |
e6cc62c6 | 11074 | ac_cv_prog_cxx_g=no |
10f2d63a | 11075 | fi |
e6cc62c6 VS |
11076 | rm -f conftest.$ac_objext conftest.$ac_ext |
11077 | fi | |
11078 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11079 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11080 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11081 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11082 | elif test $ac_cv_prog_cxx_g = yes; then |
11083 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11084 | CXXFLAGS="-g -O2" |
11085 | else | |
f09359cf | 11086 | CXXFLAGS="-g" |
10f2d63a | 11087 | fi |
5c0a20c3 | 11088 | else |
f09359cf VS |
11089 | if test "$GXX" = yes; then |
11090 | CXXFLAGS="-O2" | |
11091 | else | |
11092 | CXXFLAGS= | |
11093 | fi | |
10f2d63a | 11094 | fi |
e6cc62c6 | 11095 | for ac_declaration in \ |
6f628073 VS |
11096 | ''\ |
11097 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11098 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11099 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11100 | 'extern "C" void exit (int) throw ();' \ | |
11101 | 'extern "C" void exit (int);' \ | |
11102 | 'void exit (int);' | |
11103 | do | |
11104 | cat >conftest.$ac_ext <<_ACEOF | |
11105 | #line $LINENO "configure" | |
11106 | /* confdefs.h. */ | |
11107 | _ACEOF | |
11108 | cat confdefs.h >>conftest.$ac_ext | |
11109 | cat >>conftest.$ac_ext <<_ACEOF | |
11110 | /* end confdefs.h. */ | |
71e83a03 | 11111 | #include <stdlib.h> |
6f628073 | 11112 | $ac_declaration |
e6cc62c6 VS |
11113 | int |
11114 | main () | |
11115 | { | |
11116 | exit (42); | |
11117 | ; | |
11118 | return 0; | |
11119 | } | |
11120 | _ACEOF | |
11121 | rm -f conftest.$ac_objext | |
11122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11123 | (eval $ac_compile) 2>&5 | |
11124 | ac_status=$? | |
11125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11126 | (exit $ac_status); } && | |
11127 | { ac_try='test -s conftest.$ac_objext' | |
11128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11129 | (eval $ac_try) 2>&5 | |
11130 | ac_status=$? | |
11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11132 | (exit $ac_status); }; }; then | |
11133 | : | |
11134 | else | |
11135 | echo "$as_me: failed program was:" >&5 | |
11136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11137 | ||
11138 | continue | |
11139 | fi | |
11140 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11141 | cat >conftest.$ac_ext <<_ACEOF | |
11142 | #line $LINENO "configure" | |
11143 | /* confdefs.h. */ | |
11144 | _ACEOF | |
11145 | cat confdefs.h >>conftest.$ac_ext | |
11146 | cat >>conftest.$ac_ext <<_ACEOF | |
11147 | /* end confdefs.h. */ | |
11148 | $ac_declaration | |
11149 | int | |
11150 | main () | |
11151 | { | |
11152 | exit (42); | |
11153 | ; | |
11154 | return 0; | |
11155 | } | |
11156 | _ACEOF | |
11157 | rm -f conftest.$ac_objext | |
11158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11159 | (eval $ac_compile) 2>&5 | |
11160 | ac_status=$? | |
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11162 | (exit $ac_status); } && | |
11163 | { ac_try='test -s conftest.$ac_objext' | |
11164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11165 | (eval $ac_try) 2>&5 | |
11166 | ac_status=$? | |
11167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11168 | (exit $ac_status); }; }; then | |
11169 | break | |
11170 | else | |
11171 | echo "$as_me: failed program was:" >&5 | |
11172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11173 | ||
11174 | fi | |
11175 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11176 | done | |
11177 | rm -f conftest* | |
11178 | if test -n "$ac_declaration"; then | |
11179 | echo '#ifdef __cplusplus' >>confdefs.h | |
11180 | echo $ac_declaration >>confdefs.h | |
11181 | echo '#endif' >>confdefs.h | |
11182 | fi | |
11183 | ||
11184 | ac_ext=cc | |
11185 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11186 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11187 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11188 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11189 | |
11190 | ||
10f2d63a | 11191 | ac_ext=c |
10f2d63a | 11192 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11196 | |
11197 | ||
e6cc62c6 VS |
11198 | if test -n "$ac_tool_prefix"; then |
11199 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11200 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11203 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11205 | else |
11206 | if test -n "$RANLIB"; then | |
11207 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11208 | else | |
e6cc62c6 VS |
11209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11210 | for as_dir in $PATH | |
11211 | do | |
11212 | IFS=$as_save_IFS | |
11213 | test -z "$as_dir" && as_dir=. | |
11214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11216 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11218 | break 2 | |
11219 | fi | |
11220 | done | |
11221 | done | |
11222 | ||
10f2d63a VZ |
11223 | fi |
11224 | fi | |
e6cc62c6 | 11225 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11226 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11227 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11228 | echo "${ECHO_T}$RANLIB" >&6 | |
11229 | else | |
11230 | echo "$as_me:$LINENO: result: no" >&5 | |
11231 | echo "${ECHO_T}no" >&6 | |
11232 | fi | |
11233 | ||
11234 | fi | |
11235 | if test -z "$ac_cv_prog_RANLIB"; then | |
11236 | ac_ct_RANLIB=$RANLIB | |
11237 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11238 | set dummy ranlib; ac_word=$2 | |
11239 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11241 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11243 | else |
e6cc62c6 VS |
11244 | if test -n "$ac_ct_RANLIB"; then |
11245 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11246 | else | |
11247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11248 | for as_dir in $PATH | |
11249 | do | |
11250 | IFS=$as_save_IFS | |
11251 | test -z "$as_dir" && as_dir=. | |
11252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11253 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11254 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11256 | break 2 | |
11257 | fi | |
11258 | done | |
11259 | done | |
11260 | ||
11261 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11262 | fi | |
11263 | fi | |
11264 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11265 | if test -n "$ac_ct_RANLIB"; then | |
11266 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11267 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11268 | else | |
11269 | echo "$as_me:$LINENO: result: no" >&5 | |
11270 | echo "${ECHO_T}no" >&6 | |
11271 | fi | |
11272 | ||
11273 | RANLIB=$ac_ct_RANLIB | |
11274 | else | |
11275 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11276 | fi |
11277 | ||
10f2d63a VZ |
11278 | |
11279 | # Extract the first word of "ar", so it can be a program name with args. | |
11280 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11283 | if test "${ac_cv_prog_AR+set}" = set; then | |
11284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11285 | else |
11286 | if test -n "$AR"; then | |
11287 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11288 | else | |
e6cc62c6 VS |
11289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11290 | for as_dir in $PATH | |
11291 | do | |
11292 | IFS=$as_save_IFS | |
11293 | test -z "$as_dir" && as_dir=. | |
11294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11296 | ac_cv_prog_AR="ar" | |
11297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11298 | break 2 | |
11299 | fi | |
11300 | done | |
11301 | done | |
11302 | ||
10f2d63a VZ |
11303 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
11304 | fi | |
11305 | fi | |
e6cc62c6 | 11306 | AR=$ac_cv_prog_AR |
10f2d63a | 11307 | if test -n "$AR"; then |
e6cc62c6 VS |
11308 | echo "$as_me:$LINENO: result: $AR" >&5 |
11309 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11310 | else |
e6cc62c6 VS |
11311 | echo "$as_me:$LINENO: result: no" >&5 |
11312 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11313 | fi |
11314 | ||
8284b0c5 | 11315 | |
6054113a | 11316 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11317 | # so one script is as good as another. But avoid the broken or |
11318 | # incompatible versions: | |
11319 | # SysV /etc/install, /usr/sbin/install | |
11320 | # SunOS /usr/etc/install | |
11321 | # IRIX /sbin/install | |
11322 | # AIX /bin/install | |
e6cc62c6 | 11323 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11324 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11325 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11326 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11327 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11328 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11329 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11330 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11331 | if test "${ac_cv_path_install+set}" = set; then |
11332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11333 | else | |
11334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11335 | for as_dir in $PATH | |
11336 | do | |
11337 | IFS=$as_save_IFS | |
11338 | test -z "$as_dir" && as_dir=. | |
11339 | # Account for people who put trailing slashes in PATH elements. | |
11340 | case $as_dir/ in | |
11341 | ./ | .// | /cC/* | \ | |
11342 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11343 | /usr/ucb/* ) ;; | |
11344 | *) | |
11345 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11346 | # Don't use installbsd from OSF since it installs stuff as root | |
11347 | # by default. | |
11348 | for ac_prog in ginstall scoinst install; do | |
11349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11350 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11351 | if test $ac_prog = install && | |
11352 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11353 | # AIX install. It has an incompatible calling convention. | |
11354 | : | |
11355 | elif test $ac_prog = install && | |
11356 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11357 | # program-specific install script used by HP pwplus--don't use. | |
11358 | : | |
11359 | else | |
11360 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11361 | break 3 | |
11362 | fi | |
11363 | fi | |
10f2d63a | 11364 | done |
e6cc62c6 VS |
11365 | done |
11366 | ;; | |
11367 | esac | |
11368 | done | |
11369 | ||
10f2d63a VZ |
11370 | |
11371 | fi | |
11372 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11373 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11374 | else |
11375 | # As a last resort, use the slow shell script. We don't cache a | |
11376 | # path for INSTALL within a source directory, because that will | |
11377 | # break other packages using the cache if that directory is | |
11378 | # removed, or if the path is relative. | |
e6cc62c6 | 11379 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11380 | fi |
11381 | fi | |
e6cc62c6 VS |
11382 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11383 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11384 | |
11385 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11386 | # It thinks the first close brace ends the variable substitution. | |
11387 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11388 | ||
e6cc62c6 | 11389 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11390 | |
10f2d63a VZ |
11391 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11392 | ||
8284b0c5 | 11393 | |
1d1b75ac VZ |
11394 | case ${INSTALL} in |
11395 | /* ) # Absolute | |
11396 | ;; | |
4f5a7f74 VZ |
11397 | ?:* ) # Drive letter, considered as absolute. |
11398 | ;; | |
3bd8fb5f | 11399 | *) |
1d1b75ac VZ |
11400 | INSTALL=`pwd`/${INSTALL} ;; |
11401 | esac | |
11402 | ||
4f5a7f74 VZ |
11403 | case ${host} in |
11404 | *-hp-hpux* ) | |
11405 | INSTALL_DIR="mkdir" | |
11406 | ;; | |
11407 | ||
11408 | *) INSTALL_DIR="$INSTALL -d" | |
11409 | ;; | |
11410 | esac | |
11411 | ||
8284b0c5 | 11412 | |
6054113a GD |
11413 | case "${host}" in |
11414 | ||
b5853384 | 11415 | powerpc-*-darwin* ) |
eb99ae0b GD |
11416 | INSTALL_PROGRAM="cp -fp" |
11417 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11418 | ;; |
11419 | *) | |
11420 | ;; | |
d6853540 | 11421 | esac |
698dcdb6 | 11422 | |
10f2d63a VZ |
11423 | # Extract the first word of "strip", so it can be a program name with args. |
11424 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11427 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11429 | else |
11430 | if test -n "$STRIP"; then | |
11431 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11432 | else | |
e6cc62c6 VS |
11433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11434 | for as_dir in $PATH | |
11435 | do | |
11436 | IFS=$as_save_IFS | |
11437 | test -z "$as_dir" && as_dir=. | |
11438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11440 | ac_cv_prog_STRIP="strip" | |
11441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11442 | break 2 | |
11443 | fi | |
11444 | done | |
11445 | done | |
11446 | ||
10f2d63a VZ |
11447 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11448 | fi | |
11449 | fi | |
e6cc62c6 | 11450 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11451 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11452 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11453 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11454 | else |
e6cc62c6 VS |
11455 | echo "$as_me:$LINENO: result: no" >&5 |
11456 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11457 | fi |
11458 | ||
5c6fa7d2 | 11459 | |
e6cc62c6 VS |
11460 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11461 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11462 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11464 | else |
e6cc62c6 | 11465 | |
414eab6d | 11466 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11467 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11468 | wx_cv_prog_makeisgnu="yes" |
11469 | else | |
11470 | wx_cv_prog_makeisgnu="no" | |
11471 | fi | |
11472 | ||
11473 | fi | |
e6cc62c6 VS |
11474 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11475 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11476 | |
11477 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11478 | IF_GNU_MAKE="" | |
11479 | else | |
11480 | IF_GNU_MAKE="#" | |
11481 | fi | |
11482 | ||
8284b0c5 MB |
11483 | |
11484 | ||
414eab6d | 11485 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11486 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11487 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11488 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11490 | else |
e6cc62c6 | 11491 | |
10f2d63a VZ |
11492 | cat - << EOF > confMake |
11493 | check : file | |
11494 | cp \$? \$@ | |
11495 | cp \$? final_file | |
11496 | EOF | |
11497 | ||
11498 | if test ! -d sub ; then | |
11499 | mkdir sub | |
11500 | fi | |
11501 | echo dummy > sub/file | |
f6bcfd97 | 11502 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11503 | RESULT=$? |
11504 | rm -f sub/file check final_file confMake | |
11505 | rmdir sub | |
11506 | if test "$RESULT" = 0; then | |
04e7a216 | 11507 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11508 | else |
04e7a216 VZ |
11509 | wx_cv_prog_makevpath="no" |
11510 | fi | |
11511 | ||
11512 | fi | |
e6cc62c6 VS |
11513 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11514 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11515 | |
11516 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11517 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11518 | You need a make-utility that is able to use the variable |
11519 | VPATH correctly. | |
11520 | If your version of make does not support VPATH correctly, | |
11521 | please install GNU-make (possibly as gmake), and start | |
11522 | configure with the following command: | |
11523 | export MAKE=gmake; ./configure for sh-type shells | |
11524 | setenv MAKE gmake; ./configure for csh-type shells | |
11525 | Also please do remember to use gmake in this case every time | |
11526 | you are trying to compile. | |
e6cc62c6 VS |
11527 | " >&5 |
11528 | echo "$as_me: error: | |
11529 | You need a make-utility that is able to use the variable | |
11530 | VPATH correctly. | |
11531 | If your version of make does not support VPATH correctly, | |
11532 | please install GNU-make (possibly as gmake), and start | |
11533 | configure with the following command: | |
11534 | export MAKE=gmake; ./configure for sh-type shells | |
11535 | setenv MAKE gmake; ./configure for csh-type shells | |
11536 | Also please do remember to use gmake in this case every time | |
11537 | you are trying to compile. | |
11538 | " >&2;} | |
11539 | { (exit 1); exit 1; }; } | |
11540 | fi fi | |
10f2d63a VZ |
11541 | for ac_prog in 'bison -y' byacc |
11542 | do | |
e6cc62c6 | 11543 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 11544 | set dummy $ac_prog; ac_word=$2 |
e6cc62c6 VS |
11545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11547 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11549 | else |
11550 | if test -n "$YACC"; then | |
11551 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11552 | else | |
e6cc62c6 VS |
11553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11554 | for as_dir in $PATH | |
11555 | do | |
11556 | IFS=$as_save_IFS | |
11557 | test -z "$as_dir" && as_dir=. | |
11558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11560 | ac_cv_prog_YACC="$ac_prog" | |
11561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11562 | break 2 | |
11563 | fi | |
11564 | done | |
11565 | done | |
11566 | ||
10f2d63a VZ |
11567 | fi |
11568 | fi | |
e6cc62c6 | 11569 | YACC=$ac_cv_prog_YACC |
10f2d63a | 11570 | if test -n "$YACC"; then |
e6cc62c6 VS |
11571 | echo "$as_me:$LINENO: result: $YACC" >&5 |
11572 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 11573 | else |
e6cc62c6 VS |
11574 | echo "$as_me:$LINENO: result: no" >&5 |
11575 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11576 | fi |
11577 | ||
e6cc62c6 | 11578 | test -n "$YACC" && break |
10f2d63a VZ |
11579 | done |
11580 | test -n "$YACC" || YACC="yacc" | |
11581 | ||
8284b0c5 | 11582 | |
e6cc62c6 VS |
11583 | for ac_prog in flex lex |
11584 | do | |
11585 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11586 | set dummy $ac_prog; ac_word=$2 | |
11587 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11589 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11591 | else |
11592 | if test -n "$LEX"; then | |
11593 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11594 | else | |
e6cc62c6 VS |
11595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11596 | for as_dir in $PATH | |
11597 | do | |
11598 | IFS=$as_save_IFS | |
11599 | test -z "$as_dir" && as_dir=. | |
11600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11601 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11602 | ac_cv_prog_LEX="$ac_prog" | |
11603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11604 | break 2 | |
11605 | fi | |
11606 | done | |
11607 | done | |
11608 | ||
10f2d63a VZ |
11609 | fi |
11610 | fi | |
e6cc62c6 | 11611 | LEX=$ac_cv_prog_LEX |
10f2d63a | 11612 | if test -n "$LEX"; then |
e6cc62c6 VS |
11613 | echo "$as_me:$LINENO: result: $LEX" >&5 |
11614 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 11615 | else |
e6cc62c6 VS |
11616 | echo "$as_me:$LINENO: result: no" >&5 |
11617 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11618 | fi |
11619 | ||
e6cc62c6 VS |
11620 | test -n "$LEX" && break |
11621 | done | |
11622 | test -n "$LEX" || LEX=":" | |
11623 | ||
10f2d63a VZ |
11624 | if test -z "$LEXLIB" |
11625 | then | |
e6cc62c6 VS |
11626 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
11627 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11628 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11630 | else | |
11631 | ac_check_lib_save_LIBS=$LIBS | |
11632 | LIBS="-lfl $LIBS" | |
11633 | cat >conftest.$ac_ext <<_ACEOF | |
11634 | #line $LINENO "configure" | |
11635 | /* confdefs.h. */ | |
11636 | _ACEOF | |
11637 | cat confdefs.h >>conftest.$ac_ext | |
11638 | cat >>conftest.$ac_ext <<_ACEOF | |
11639 | /* end confdefs.h. */ | |
11640 | ||
11641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11642 | #ifdef __cplusplus | |
11643 | extern "C" | |
11644 | #endif | |
11645 | /* We use char because int might match the return type of a gcc2 | |
11646 | builtin and then its argument prototype would still apply. */ | |
11647 | char yywrap (); | |
11648 | int | |
11649 | main () | |
11650 | { | |
11651 | yywrap (); | |
11652 | ; | |
11653 | return 0; | |
11654 | } | |
11655 | _ACEOF | |
11656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11658 | (eval $ac_link) 2>&5 | |
11659 | ac_status=$? | |
11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11661 | (exit $ac_status); } && | |
11662 | { ac_try='test -s conftest$ac_exeext' | |
11663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11664 | (eval $ac_try) 2>&5 | |
11665 | ac_status=$? | |
11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11667 | (exit $ac_status); }; }; then | |
11668 | ac_cv_lib_fl_yywrap=yes | |
11669 | else | |
11670 | echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
11673 | ac_cv_lib_fl_yywrap=no | |
11674 | fi | |
11675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11676 | LIBS=$ac_check_lib_save_LIBS | |
11677 | fi | |
11678 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11679 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11680 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11681 | LEXLIB="-lfl" | |
11682 | else | |
11683 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11684 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11685 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11687 | else | |
11688 | ac_check_lib_save_LIBS=$LIBS | |
11689 | LIBS="-ll $LIBS" | |
11690 | cat >conftest.$ac_ext <<_ACEOF | |
11691 | #line $LINENO "configure" | |
11692 | /* confdefs.h. */ | |
11693 | _ACEOF | |
11694 | cat confdefs.h >>conftest.$ac_ext | |
11695 | cat >>conftest.$ac_ext <<_ACEOF | |
11696 | /* end confdefs.h. */ | |
11697 | ||
247f5006 | 11698 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11699 | #ifdef __cplusplus |
11700 | extern "C" | |
11701 | #endif | |
247f5006 | 11702 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11703 | builtin and then its argument prototype would still apply. */ |
11704 | char yywrap (); | |
11705 | int | |
11706 | main () | |
11707 | { | |
11708 | yywrap (); | |
11709 | ; | |
11710 | return 0; | |
11711 | } | |
11712 | _ACEOF | |
11713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11715 | (eval $ac_link) 2>&5 | |
11716 | ac_status=$? | |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); } && | |
11719 | { ac_try='test -s conftest$ac_exeext' | |
11720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11721 | (eval $ac_try) 2>&5 | |
11722 | ac_status=$? | |
11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11724 | (exit $ac_status); }; }; then | |
11725 | ac_cv_lib_l_yywrap=yes | |
11726 | else | |
11727 | echo "$as_me: failed program was:" >&5 | |
11728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11729 | ||
11730 | ac_cv_lib_l_yywrap=no | |
11731 | fi | |
11732 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11733 | LIBS=$ac_check_lib_save_LIBS | |
11734 | fi | |
11735 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11736 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11737 | if test $ac_cv_lib_l_yywrap = yes; then | |
11738 | LEXLIB="-ll" | |
11739 | fi | |
10f2d63a | 11740 | |
10f2d63a | 11741 | fi |
8284b0c5 | 11742 | |
10f2d63a | 11743 | fi |
e6cc62c6 VS |
11744 | |
11745 | if test "x$LEX" != "x:"; then | |
11746 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11747 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11748 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11750 | else | |
11751 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11752 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11753 | cat >conftest.l <<_ACEOF | |
11754 | %% | |
11755 | %% | |
11756 | _ACEOF | |
11757 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11758 | (eval $LEX conftest.l) 2>&5 | |
11759 | ac_status=$? | |
11760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11761 | (exit $ac_status); } | |
11762 | if test -f lex.yy.c; then | |
11763 | ac_cv_prog_lex_root=lex.yy | |
11764 | elif test -f lexyy.c; then | |
11765 | ac_cv_prog_lex_root=lexyy | |
8284b0c5 | 11766 | else |
e6cc62c6 VS |
11767 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
11768 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11769 | { (exit 1); exit 1; }; } | |
10f2d63a | 11770 | fi |
a0b9e27f | 11771 | fi |
e6cc62c6 VS |
11772 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
11773 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11774 | rm -f conftest.l | |
11775 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
10f2d63a | 11776 | |
e6cc62c6 VS |
11777 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
11778 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11779 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11781 | else |
e6cc62c6 VS |
11782 | # POSIX says lex can declare yytext either as a pointer or an array; the |
11783 | # default is implementation-dependent. Figure out which it is, since | |
11784 | # not all implementations provide the %pointer and %array declarations. | |
11785 | ac_cv_prog_lex_yytext_pointer=no | |
11786 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11787 | ac_save_LIBS=$LIBS | |
11788 | LIBS="$LIBS $LEXLIB" | |
11789 | cat >conftest.$ac_ext <<_ACEOF | |
11790 | `cat $LEX_OUTPUT_ROOT.c` | |
11791 | _ACEOF | |
11792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11794 | (eval $ac_link) 2>&5 | |
11795 | ac_status=$? | |
11796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11797 | (exit $ac_status); } && | |
11798 | { ac_try='test -s conftest$ac_exeext' | |
11799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11800 | (eval $ac_try) 2>&5 | |
11801 | ac_status=$? | |
11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11803 | (exit $ac_status); }; }; then | |
11804 | ac_cv_prog_lex_yytext_pointer=yes | |
10f2d63a | 11805 | else |
e6cc62c6 VS |
11806 | echo "$as_me: failed program was:" >&5 |
11807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11808 | ||
10f2d63a | 11809 | fi |
e6cc62c6 VS |
11810 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
11811 | LIBS=$ac_save_LIBS | |
11812 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11813 | ||
11814 | fi | |
11815 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11816 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11817 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11818 | ||
11819 | cat >>confdefs.h <<\_ACEOF | |
11820 | #define YYTEXT_POINTER 1 | |
11821 | _ACEOF | |
11822 | ||
a0b9e27f | 11823 | fi |
e6cc62c6 VS |
11824 | |
11825 | fi | |
11826 | ||
11827 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11828 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11829 | LN_S=$as_ln_s | |
11830 | if test "$LN_S" = "ln -s"; then | |
11831 | echo "$as_me:$LINENO: result: yes" >&5 | |
11832 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11833 | else |
e6cc62c6 VS |
11834 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11835 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11836 | fi |
5c6fa7d2 | 11837 | |
247f5006 | 11838 | |
2b5f62a0 VZ |
11839 | case "${host}" in |
11840 | *-pc-os2_emx | *-pc-os2-emx ) | |
11841 | LIBS="$LIBS -lstdcpp" | |
11842 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
e6cc62c6 VS |
11843 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11844 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11845 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11847 | else |
e6cc62c6 | 11848 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11849 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11850 | cat >conftest.$ac_ext <<_ACEOF |
11851 | #line $LINENO "configure" | |
11852 | /* confdefs.h. */ | |
11853 | _ACEOF | |
11854 | cat confdefs.h >>conftest.$ac_ext | |
11855 | cat >>conftest.$ac_ext <<_ACEOF | |
11856 | /* end confdefs.h. */ | |
11857 | ||
2b5f62a0 | 11858 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11859 | #ifdef __cplusplus |
11860 | extern "C" | |
11861 | #endif | |
2b5f62a0 | 11862 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11863 | builtin and then its argument prototype would still apply. */ |
11864 | char drand48 (); | |
11865 | int | |
11866 | main () | |
11867 | { | |
11868 | drand48 (); | |
11869 | ; | |
11870 | return 0; | |
11871 | } | |
11872 | _ACEOF | |
11873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11875 | (eval $ac_link) 2>&5 | |
11876 | ac_status=$? | |
11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11878 | (exit $ac_status); } && | |
11879 | { ac_try='test -s conftest$ac_exeext' | |
11880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11881 | (eval $ac_try) 2>&5 | |
11882 | ac_status=$? | |
11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11884 | (exit $ac_status); }; }; then | |
11885 | ac_cv_lib_cExt_drand48=yes | |
11886 | else | |
11887 | echo "$as_me: failed program was:" >&5 | |
11888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11889 | ||
11890 | ac_cv_lib_cExt_drand48=no | |
11891 | fi | |
11892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11893 | LIBS=$ac_check_lib_save_LIBS | |
11894 | fi | |
11895 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11896 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11897 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11898 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11899 | fi |
11900 | ||
11901 | else | |
11902 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11903 | fi | |
11904 | ;; | |
11905 | esac | |
11906 | ||
a0b9e27f | 11907 | |
01aa5863 VS |
11908 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11909 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11910 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11911 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11913 | else | |
11914 | ac_cv_header_strings_h=no | |
11915 | fi | |
11916 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11917 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11918 | if test "$ac_cv_header_strings_h" = "no"; then | |
11919 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11920 | echo "${ECHO_T}forced no into cache" >&6 | |
11921 | else | |
11922 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11923 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11924 | fi | |
11925 | fi | |
11926 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11927 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11928 | if test "${ac_cv_header_stdc+set}" = set; then | |
11929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11930 | else | |
11931 | cat >conftest.$ac_ext <<_ACEOF | |
11932 | #line $LINENO "configure" | |
11933 | /* confdefs.h. */ | |
11934 | _ACEOF | |
11935 | cat confdefs.h >>conftest.$ac_ext | |
11936 | cat >>conftest.$ac_ext <<_ACEOF | |
11937 | /* end confdefs.h. */ | |
11938 | #include <stdlib.h> | |
11939 | #include <stdarg.h> | |
11940 | #include <string.h> | |
11941 | #include <float.h> | |
247f5006 | 11942 | |
e6cc62c6 VS |
11943 | int |
11944 | main () | |
11945 | { | |
90dd450c | 11946 | |
e6cc62c6 VS |
11947 | ; |
11948 | return 0; | |
11949 | } | |
11950 | _ACEOF | |
11951 | rm -f conftest.$ac_objext | |
11952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11953 | (eval $ac_compile) 2>&5 | |
11954 | ac_status=$? | |
11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11956 | (exit $ac_status); } && | |
11957 | { ac_try='test -s conftest.$ac_objext' | |
11958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11959 | (eval $ac_try) 2>&5 | |
11960 | ac_status=$? | |
11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11962 | (exit $ac_status); }; }; then | |
11963 | ac_cv_header_stdc=yes | |
8284b0c5 | 11964 | else |
e6cc62c6 VS |
11965 | echo "$as_me: failed program was:" >&5 |
11966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11967 | ||
11968 | ac_cv_header_stdc=no | |
21d1c967 | 11969 | fi |
e6cc62c6 | 11970 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11971 | |
e6cc62c6 VS |
11972 | if test $ac_cv_header_stdc = yes; then |
11973 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11974 | cat >conftest.$ac_ext <<_ACEOF | |
11975 | #line $LINENO "configure" | |
11976 | /* confdefs.h. */ | |
11977 | _ACEOF | |
11978 | cat confdefs.h >>conftest.$ac_ext | |
11979 | cat >>conftest.$ac_ext <<_ACEOF | |
11980 | /* end confdefs.h. */ | |
11981 | #include <string.h> | |
11982 | ||
11983 | _ACEOF | |
11984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11985 | $EGREP "memchr" >/dev/null 2>&1; then | |
11986 | : | |
11987 | else | |
11988 | ac_cv_header_stdc=no | |
3a922bb4 | 11989 | fi |
a0b9e27f | 11990 | rm -f conftest* |
e6cc62c6 | 11991 | |
90dd450c | 11992 | fi |
e6cc62c6 VS |
11993 | |
11994 | if test $ac_cv_header_stdc = yes; then | |
11995 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11996 | cat >conftest.$ac_ext <<_ACEOF | |
11997 | #line $LINENO "configure" | |
11998 | /* confdefs.h. */ | |
11999 | _ACEOF | |
12000 | cat confdefs.h >>conftest.$ac_ext | |
12001 | cat >>conftest.$ac_ext <<_ACEOF | |
12002 | /* end confdefs.h. */ | |
12003 | #include <stdlib.h> | |
12004 | ||
12005 | _ACEOF | |
12006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12007 | $EGREP "free" >/dev/null 2>&1; then | |
12008 | : | |
a0b9e27f | 12009 | else |
e6cc62c6 | 12010 | ac_cv_header_stdc=no |
21d1c967 | 12011 | fi |
e6cc62c6 | 12012 | rm -f conftest* |
247f5006 VZ |
12013 | |
12014 | fi | |
e6cc62c6 VS |
12015 | |
12016 | if test $ac_cv_header_stdc = yes; then | |
12017 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12018 | if test "$cross_compiling" = yes; then | |
12019 | : | |
12020 | else | |
12021 | cat >conftest.$ac_ext <<_ACEOF | |
12022 | #line $LINENO "configure" | |
12023 | /* confdefs.h. */ | |
12024 | _ACEOF | |
12025 | cat confdefs.h >>conftest.$ac_ext | |
12026 | cat >>conftest.$ac_ext <<_ACEOF | |
12027 | /* end confdefs.h. */ | |
12028 | #include <ctype.h> | |
12029 | #if ((' ' & 0x0FF) == 0x020) | |
12030 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12031 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12032 | #else | |
12033 | # define ISLOWER(c) \ | |
12034 | (('a' <= (c) && (c) <= 'i') \ | |
12035 | || ('j' <= (c) && (c) <= 'r') \ | |
12036 | || ('s' <= (c) && (c) <= 'z')) | |
12037 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12038 | #endif | |
12039 | ||
12040 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12041 | int | |
12042 | main () | |
12043 | { | |
12044 | int i; | |
12045 | for (i = 0; i < 256; i++) | |
12046 | if (XOR (islower (i), ISLOWER (i)) | |
12047 | || toupper (i) != TOUPPER (i)) | |
12048 | exit(2); | |
12049 | exit (0); | |
12050 | } | |
12051 | _ACEOF | |
12052 | rm -f conftest$ac_exeext | |
12053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12054 | (eval $ac_link) 2>&5 | |
12055 | ac_status=$? | |
12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12059 | (eval $ac_try) 2>&5 | |
12060 | ac_status=$? | |
12061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12062 | (exit $ac_status); }; }; then | |
12063 | : | |
a0b9e27f | 12064 | else |
e6cc62c6 VS |
12065 | echo "$as_me: program exited with status $ac_status" >&5 |
12066 | echo "$as_me: failed program was:" >&5 | |
12067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12068 | ||
12069 | ( exit $ac_status ) | |
12070 | ac_cv_header_stdc=no | |
12071 | fi | |
12072 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12073 | fi | |
12074 | fi | |
12075 | fi | |
12076 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12077 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12078 | if test $ac_cv_header_stdc = yes; then | |
12079 | ||
12080 | cat >>confdefs.h <<\_ACEOF | |
12081 | #define STDC_HEADERS 1 | |
12082 | _ACEOF | |
12083 | ||
a0b9e27f | 12084 | fi |
e6cc62c6 VS |
12085 | |
12086 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12087 | ||
12088 | ||
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12097 | inttypes.h stdint.h unistd.h | |
12098 | do | |
12099 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12104 | else | |
12105 | cat >conftest.$ac_ext <<_ACEOF | |
12106 | #line $LINENO "configure" | |
12107 | /* confdefs.h. */ | |
12108 | _ACEOF | |
12109 | cat confdefs.h >>conftest.$ac_ext | |
12110 | cat >>conftest.$ac_ext <<_ACEOF | |
12111 | /* end confdefs.h. */ | |
12112 | $ac_includes_default | |
12113 | ||
12114 | #include <$ac_header> | |
12115 | _ACEOF | |
12116 | rm -f conftest.$ac_objext | |
12117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12118 | (eval $ac_compile) 2>&5 | |
12119 | ac_status=$? | |
12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12121 | (exit $ac_status); } && | |
12122 | { ac_try='test -s conftest.$ac_objext' | |
12123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12124 | (eval $ac_try) 2>&5 | |
12125 | ac_status=$? | |
12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12127 | (exit $ac_status); }; }; then | |
12128 | eval "$as_ac_Header=yes" | |
12129 | else | |
12130 | echo "$as_me: failed program was:" >&5 | |
12131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12132 | ||
12133 | eval "$as_ac_Header=no" | |
12134 | fi | |
12135 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12136 | fi | |
12137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12140 | cat >>confdefs.h <<_ACEOF | |
12141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12142 | _ACEOF | |
12143 | ||
12144 | fi | |
12145 | ||
a0b9e27f | 12146 | done |
90dd450c | 12147 | |
e6cc62c6 VS |
12148 | |
12149 | ||
12150 | for ac_header in strings.h | |
21d1c967 | 12151 | do |
e6cc62c6 VS |
12152 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12158 | fi | |
12159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12161 | else | |
12162 | # Is the header compilable? | |
12163 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12164 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12165 | cat >conftest.$ac_ext <<_ACEOF | |
12166 | #line $LINENO "configure" | |
12167 | /* confdefs.h. */ | |
12168 | _ACEOF | |
12169 | cat confdefs.h >>conftest.$ac_ext | |
12170 | cat >>conftest.$ac_ext <<_ACEOF | |
12171 | /* end confdefs.h. */ | |
12172 | $ac_includes_default | |
12173 | #include <$ac_header> | |
12174 | _ACEOF | |
12175 | rm -f conftest.$ac_objext | |
12176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12177 | (eval $ac_compile) 2>&5 | |
12178 | ac_status=$? | |
12179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12180 | (exit $ac_status); } && | |
12181 | { ac_try='test -s conftest.$ac_objext' | |
12182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12183 | (eval $ac_try) 2>&5 | |
12184 | ac_status=$? | |
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12186 | (exit $ac_status); }; }; then | |
12187 | ac_header_compiler=yes | |
12188 | else | |
12189 | echo "$as_me: failed program was:" >&5 | |
12190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12191 | ||
12192 | ac_header_compiler=no | |
12193 | fi | |
12194 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12196 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12197 | ||
12198 | # Is the header present? | |
12199 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12201 | cat >conftest.$ac_ext <<_ACEOF | |
12202 | #line $LINENO "configure" | |
12203 | /* confdefs.h. */ | |
12204 | _ACEOF | |
12205 | cat confdefs.h >>conftest.$ac_ext | |
12206 | cat >>conftest.$ac_ext <<_ACEOF | |
12207 | /* end confdefs.h. */ | |
12208 | #include <$ac_header> | |
12209 | _ACEOF | |
12210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12212 | ac_status=$? | |
12213 | grep -v '^ *+' conftest.er1 >conftest.err | |
12214 | rm -f conftest.er1 | |
12215 | cat conftest.err >&5 | |
12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12217 | (exit $ac_status); } >/dev/null; then | |
12218 | if test -s conftest.err; then | |
12219 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12220 | else | |
12221 | ac_cpp_err= | |
12222 | fi | |
12223 | else | |
12224 | ac_cpp_err=yes | |
12225 | fi | |
12226 | if test -z "$ac_cpp_err"; then | |
12227 | ac_header_preproc=yes | |
12228 | else | |
12229 | echo "$as_me: failed program was:" >&5 | |
12230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12231 | ||
12232 | ac_header_preproc=no | |
12233 | fi | |
12234 | rm -f conftest.err conftest.$ac_ext | |
12235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12236 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12237 | ||
12238 | # So? What about this header? | |
12239 | case $ac_header_compiler:$ac_header_preproc in | |
12240 | yes:no ) | |
12241 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12242 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12245 | ( | |
12246 | cat <<\_ASBOX | |
12247 | ## ------------------------------------ ## | |
12248 | ## Report this to bug-autoconf@gnu.org. ## | |
12249 | ## ------------------------------------ ## | |
12250 | _ASBOX | |
12251 | ) | | |
12252 | sed "s/^/$as_me: WARNING: /" >&2 | |
12253 | ;; | |
12254 | no:yes ) | |
12255 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12256 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12257 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12258 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12261 | ( | |
12262 | cat <<\_ASBOX | |
12263 | ## ------------------------------------ ## | |
12264 | ## Report this to bug-autoconf@gnu.org. ## | |
12265 | ## ------------------------------------ ## | |
12266 | _ASBOX | |
12267 | ) | | |
12268 | sed "s/^/$as_me: WARNING: /" >&2 | |
12269 | ;; | |
12270 | esac | |
12271 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12275 | else | |
12276 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12277 | fi |
e6cc62c6 VS |
12278 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12279 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12280 | ||
a0b9e27f | 12281 | fi |
e6cc62c6 VS |
12282 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12283 | cat >>confdefs.h <<_ACEOF | |
12284 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12285 | _ACEOF | |
12286 | ||
12287 | fi | |
12288 | ||
12289 | done | |
12290 | ||
e6cc62c6 VS |
12291 | |
12292 | ||
12293 | for ac_header in stdlib.h | |
12294 | do | |
12295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12301 | fi | |
12302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12304 | else | |
12305 | # Is the header compilable? | |
12306 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12307 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12308 | cat >conftest.$ac_ext <<_ACEOF | |
12309 | #line $LINENO "configure" | |
12310 | /* confdefs.h. */ | |
12311 | _ACEOF | |
12312 | cat confdefs.h >>conftest.$ac_ext | |
12313 | cat >>conftest.$ac_ext <<_ACEOF | |
12314 | /* end confdefs.h. */ | |
12315 | $ac_includes_default | |
12316 | #include <$ac_header> | |
12317 | _ACEOF | |
12318 | rm -f conftest.$ac_objext | |
12319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12320 | (eval $ac_compile) 2>&5 | |
12321 | ac_status=$? | |
12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12323 | (exit $ac_status); } && | |
12324 | { ac_try='test -s conftest.$ac_objext' | |
12325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12326 | (eval $ac_try) 2>&5 | |
12327 | ac_status=$? | |
12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12329 | (exit $ac_status); }; }; then | |
12330 | ac_header_compiler=yes | |
12331 | else | |
12332 | echo "$as_me: failed program was:" >&5 | |
12333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12334 | ||
12335 | ac_header_compiler=no | |
12336 | fi | |
12337 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12338 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12339 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12340 | ||
12341 | # Is the header present? | |
12342 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12343 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12344 | cat >conftest.$ac_ext <<_ACEOF | |
12345 | #line $LINENO "configure" | |
12346 | /* confdefs.h. */ | |
12347 | _ACEOF | |
12348 | cat confdefs.h >>conftest.$ac_ext | |
12349 | cat >>conftest.$ac_ext <<_ACEOF | |
12350 | /* end confdefs.h. */ | |
12351 | #include <$ac_header> | |
12352 | _ACEOF | |
12353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12355 | ac_status=$? | |
12356 | grep -v '^ *+' conftest.er1 >conftest.err | |
12357 | rm -f conftest.er1 | |
12358 | cat conftest.err >&5 | |
12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12360 | (exit $ac_status); } >/dev/null; then | |
12361 | if test -s conftest.err; then | |
12362 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12363 | else | |
12364 | ac_cpp_err= | |
12365 | fi | |
12366 | else | |
12367 | ac_cpp_err=yes | |
12368 | fi | |
12369 | if test -z "$ac_cpp_err"; then | |
12370 | ac_header_preproc=yes | |
12371 | else | |
12372 | echo "$as_me: failed program was:" >&5 | |
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12374 | ||
12375 | ac_header_preproc=no | |
12376 | fi | |
12377 | rm -f conftest.err conftest.$ac_ext | |
12378 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12379 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12380 | ||
12381 | # So? What about this header? | |
12382 | case $ac_header_compiler:$ac_header_preproc in | |
12383 | yes:no ) | |
12384 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12385 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12388 | ( | |
12389 | cat <<\_ASBOX | |
12390 | ## ------------------------------------ ## | |
12391 | ## Report this to bug-autoconf@gnu.org. ## | |
12392 | ## ------------------------------------ ## | |
12393 | _ASBOX | |
12394 | ) | | |
12395 | sed "s/^/$as_me: WARNING: /" >&2 | |
12396 | ;; | |
12397 | no:yes ) | |
12398 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12399 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12400 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12401 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12403 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12404 | ( | |
12405 | cat <<\_ASBOX | |
12406 | ## ------------------------------------ ## | |
12407 | ## Report this to bug-autoconf@gnu.org. ## | |
12408 | ## ------------------------------------ ## | |
12409 | _ASBOX | |
12410 | ) | | |
12411 | sed "s/^/$as_me: WARNING: /" >&2 | |
12412 | ;; | |
12413 | esac | |
12414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12418 | else |
e6cc62c6 VS |
12419 | eval "$as_ac_Header=$ac_header_preproc" |
12420 | fi | |
12421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12423 | ||
21d1c967 | 12424 | fi |
e6cc62c6 VS |
12425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12426 | cat >>confdefs.h <<_ACEOF | |
12427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12428 | _ACEOF | |
12429 | ||
12430 | fi | |
12431 | ||
21d1c967 | 12432 | done |
4f14bcd8 | 12433 | |
5c6fa7d2 | 12434 | |
e6cc62c6 | 12435 | for ac_header in malloc.h |
21d1c967 | 12436 | do |
e6cc62c6 VS |
12437 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12439 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12440 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12443 | fi | |
12444 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12445 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12446 | else | |
12447 | # Is the header compilable? | |
12448 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12449 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12450 | cat >conftest.$ac_ext <<_ACEOF | |
12451 | #line $LINENO "configure" | |
12452 | /* confdefs.h. */ | |
12453 | _ACEOF | |
12454 | cat confdefs.h >>conftest.$ac_ext | |
12455 | cat >>conftest.$ac_ext <<_ACEOF | |
12456 | /* end confdefs.h. */ | |
12457 | $ac_includes_default | |
12458 | #include <$ac_header> | |
12459 | _ACEOF | |
12460 | rm -f conftest.$ac_objext | |
12461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12462 | (eval $ac_compile) 2>&5 | |
12463 | ac_status=$? | |
12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12465 | (exit $ac_status); } && | |
12466 | { ac_try='test -s conftest.$ac_objext' | |
12467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12468 | (eval $ac_try) 2>&5 | |
12469 | ac_status=$? | |
12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12471 | (exit $ac_status); }; }; then | |
12472 | ac_header_compiler=yes | |
12473 | else | |
12474 | echo "$as_me: failed program was:" >&5 | |
12475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12476 | ||
12477 | ac_header_compiler=no | |
12478 | fi | |
12479 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12481 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12482 | ||
12483 | # Is the header present? | |
12484 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12485 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12486 | cat >conftest.$ac_ext <<_ACEOF | |
12487 | #line $LINENO "configure" | |
12488 | /* confdefs.h. */ | |
12489 | _ACEOF | |
12490 | cat confdefs.h >>conftest.$ac_ext | |
12491 | cat >>conftest.$ac_ext <<_ACEOF | |
12492 | /* end confdefs.h. */ | |
12493 | #include <$ac_header> | |
12494 | _ACEOF | |
12495 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12496 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12497 | ac_status=$? | |
12498 | grep -v '^ *+' conftest.er1 >conftest.err | |
12499 | rm -f conftest.er1 | |
12500 | cat conftest.err >&5 | |
12501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12502 | (exit $ac_status); } >/dev/null; then | |
12503 | if test -s conftest.err; then | |
12504 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12505 | else | |
12506 | ac_cpp_err= | |
12507 | fi | |
12508 | else | |
12509 | ac_cpp_err=yes | |
12510 | fi | |
12511 | if test -z "$ac_cpp_err"; then | |
12512 | ac_header_preproc=yes | |
12513 | else | |
12514 | echo "$as_me: failed program was:" >&5 | |
12515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12516 | ||
12517 | ac_header_preproc=no | |
12518 | fi | |
12519 | rm -f conftest.err conftest.$ac_ext | |
12520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12521 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12522 | ||
12523 | # So? What about this header? | |
12524 | case $ac_header_compiler:$ac_header_preproc in | |
12525 | yes:no ) | |
12526 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12527 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12529 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12530 | ( | |
12531 | cat <<\_ASBOX | |
12532 | ## ------------------------------------ ## | |
12533 | ## Report this to bug-autoconf@gnu.org. ## | |
12534 | ## ------------------------------------ ## | |
12535 | _ASBOX | |
12536 | ) | | |
12537 | sed "s/^/$as_me: WARNING: /" >&2 | |
12538 | ;; | |
12539 | no:yes ) | |
12540 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12541 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12542 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12543 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12546 | ( | |
12547 | cat <<\_ASBOX | |
12548 | ## ------------------------------------ ## | |
12549 | ## Report this to bug-autoconf@gnu.org. ## | |
12550 | ## ------------------------------------ ## | |
12551 | _ASBOX | |
12552 | ) | | |
12553 | sed "s/^/$as_me: WARNING: /" >&2 | |
12554 | ;; | |
12555 | esac | |
12556 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12557 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12558 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12560 | else | |
12561 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12562 | fi |
e6cc62c6 VS |
12563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12565 | ||
21d1c967 | 12566 | fi |
e6cc62c6 VS |
12567 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12568 | cat >>confdefs.h <<_ACEOF | |
12569 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12570 | _ACEOF | |
12571 | ||
12572 | fi | |
12573 | ||
12574 | done | |
12575 | ||
12576 | ||
12577 | for ac_header in unistd.h | |
12578 | do | |
12579 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12580 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12585 | fi | |
12586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12588 | else | |
12589 | # Is the header compilable? | |
12590 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12591 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12592 | cat >conftest.$ac_ext <<_ACEOF | |
12593 | #line $LINENO "configure" | |
12594 | /* confdefs.h. */ | |
12595 | _ACEOF | |
12596 | cat confdefs.h >>conftest.$ac_ext | |
12597 | cat >>conftest.$ac_ext <<_ACEOF | |
12598 | /* end confdefs.h. */ | |
12599 | $ac_includes_default | |
12600 | #include <$ac_header> | |
12601 | _ACEOF | |
12602 | rm -f conftest.$ac_objext | |
12603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12604 | (eval $ac_compile) 2>&5 | |
12605 | ac_status=$? | |
12606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12607 | (exit $ac_status); } && | |
12608 | { ac_try='test -s conftest.$ac_objext' | |
12609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12610 | (eval $ac_try) 2>&5 | |
12611 | ac_status=$? | |
12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12613 | (exit $ac_status); }; }; then | |
12614 | ac_header_compiler=yes | |
12615 | else | |
12616 | echo "$as_me: failed program was:" >&5 | |
12617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12618 | ||
12619 | ac_header_compiler=no | |
12620 | fi | |
12621 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12624 | ||
12625 | # Is the header present? | |
12626 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12627 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12628 | cat >conftest.$ac_ext <<_ACEOF | |
12629 | #line $LINENO "configure" | |
12630 | /* confdefs.h. */ | |
12631 | _ACEOF | |
12632 | cat confdefs.h >>conftest.$ac_ext | |
12633 | cat >>conftest.$ac_ext <<_ACEOF | |
12634 | /* end confdefs.h. */ | |
12635 | #include <$ac_header> | |
12636 | _ACEOF | |
12637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12639 | ac_status=$? | |
12640 | grep -v '^ *+' conftest.er1 >conftest.err | |
12641 | rm -f conftest.er1 | |
12642 | cat conftest.err >&5 | |
12643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12644 | (exit $ac_status); } >/dev/null; then | |
12645 | if test -s conftest.err; then | |
12646 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12647 | else | |
12648 | ac_cpp_err= | |
12649 | fi | |
a0b9e27f | 12650 | else |
e6cc62c6 VS |
12651 | ac_cpp_err=yes |
12652 | fi | |
12653 | if test -z "$ac_cpp_err"; then | |
12654 | ac_header_preproc=yes | |
12655 | else | |
12656 | echo "$as_me: failed program was:" >&5 | |
12657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12658 | ||
12659 | ac_header_preproc=no | |
12660 | fi | |
12661 | rm -f conftest.err conftest.$ac_ext | |
12662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12664 | ||
12665 | # So? What about this header? | |
12666 | case $ac_header_compiler:$ac_header_preproc in | |
12667 | yes:no ) | |
12668 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12669 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12671 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12672 | ( | |
12673 | cat <<\_ASBOX | |
12674 | ## ------------------------------------ ## | |
12675 | ## Report this to bug-autoconf@gnu.org. ## | |
12676 | ## ------------------------------------ ## | |
12677 | _ASBOX | |
12678 | ) | | |
12679 | sed "s/^/$as_me: WARNING: /" >&2 | |
12680 | ;; | |
12681 | no:yes ) | |
12682 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12683 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12684 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12685 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12688 | ( | |
12689 | cat <<\_ASBOX | |
12690 | ## ------------------------------------ ## | |
12691 | ## Report this to bug-autoconf@gnu.org. ## | |
12692 | ## ------------------------------------ ## | |
12693 | _ASBOX | |
12694 | ) | | |
12695 | sed "s/^/$as_me: WARNING: /" >&2 | |
12696 | ;; | |
12697 | esac | |
12698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12702 | else | |
12703 | eval "$as_ac_Header=$ac_header_preproc" | |
12704 | fi | |
12705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12707 | ||
12708 | fi | |
12709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12710 | cat >>confdefs.h <<_ACEOF | |
12711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12712 | _ACEOF | |
12713 | ||
d4158b5d | 12714 | fi |
e6cc62c6 | 12715 | |
21d1c967 | 12716 | done |
f6bcfd97 | 12717 | |
e6cc62c6 VS |
12718 | |
12719 | for ac_header in wchar.h | |
12720 | do | |
12721 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12727 | fi | |
12728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12730 | else | |
12731 | # Is the header compilable? | |
12732 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12733 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12734 | cat >conftest.$ac_ext <<_ACEOF | |
12735 | #line $LINENO "configure" | |
12736 | /* confdefs.h. */ | |
12737 | _ACEOF | |
12738 | cat confdefs.h >>conftest.$ac_ext | |
12739 | cat >>conftest.$ac_ext <<_ACEOF | |
12740 | /* end confdefs.h. */ | |
12741 | $ac_includes_default | |
12742 | #include <$ac_header> | |
12743 | _ACEOF | |
12744 | rm -f conftest.$ac_objext | |
12745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12746 | (eval $ac_compile) 2>&5 | |
12747 | ac_status=$? | |
12748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12749 | (exit $ac_status); } && | |
12750 | { ac_try='test -s conftest.$ac_objext' | |
12751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12752 | (eval $ac_try) 2>&5 | |
12753 | ac_status=$? | |
12754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12755 | (exit $ac_status); }; }; then | |
12756 | ac_header_compiler=yes | |
12757 | else | |
12758 | echo "$as_me: failed program was:" >&5 | |
12759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12760 | ||
12761 | ac_header_compiler=no | |
12762 | fi | |
12763 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12764 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12765 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12766 | ||
12767 | # Is the header present? | |
12768 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12769 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12770 | cat >conftest.$ac_ext <<_ACEOF | |
12771 | #line $LINENO "configure" | |
12772 | /* confdefs.h. */ | |
12773 | _ACEOF | |
12774 | cat confdefs.h >>conftest.$ac_ext | |
12775 | cat >>conftest.$ac_ext <<_ACEOF | |
12776 | /* end confdefs.h. */ | |
12777 | #include <$ac_header> | |
12778 | _ACEOF | |
12779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12781 | ac_status=$? | |
12782 | grep -v '^ *+' conftest.er1 >conftest.err | |
12783 | rm -f conftest.er1 | |
12784 | cat conftest.err >&5 | |
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12786 | (exit $ac_status); } >/dev/null; then | |
12787 | if test -s conftest.err; then | |
12788 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12789 | else | |
12790 | ac_cpp_err= | |
12791 | fi | |
12792 | else | |
12793 | ac_cpp_err=yes | |
12794 | fi | |
12795 | if test -z "$ac_cpp_err"; then | |
12796 | ac_header_preproc=yes | |
12797 | else | |
12798 | echo "$as_me: failed program was:" >&5 | |
12799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12800 | ||
12801 | ac_header_preproc=no | |
12802 | fi | |
12803 | rm -f conftest.err conftest.$ac_ext | |
12804 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12805 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12806 | ||
12807 | # So? What about this header? | |
12808 | case $ac_header_compiler:$ac_header_preproc in | |
12809 | yes:no ) | |
12810 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12811 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12813 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12814 | ( | |
12815 | cat <<\_ASBOX | |
12816 | ## ------------------------------------ ## | |
12817 | ## Report this to bug-autoconf@gnu.org. ## | |
12818 | ## ------------------------------------ ## | |
12819 | _ASBOX | |
12820 | ) | | |
12821 | sed "s/^/$as_me: WARNING: /" >&2 | |
12822 | ;; | |
12823 | no:yes ) | |
12824 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12825 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12826 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12827 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12830 | ( | |
12831 | cat <<\_ASBOX | |
12832 | ## ------------------------------------ ## | |
12833 | ## Report this to bug-autoconf@gnu.org. ## | |
12834 | ## ------------------------------------ ## | |
12835 | _ASBOX | |
12836 | ) | | |
12837 | sed "s/^/$as_me: WARNING: /" >&2 | |
12838 | ;; | |
12839 | esac | |
12840 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12842 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12844 | else | |
12845 | eval "$as_ac_Header=$ac_header_preproc" | |
12846 | fi | |
12847 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12848 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12849 | ||
90dd450c | 12850 | fi |
e6cc62c6 VS |
12851 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12852 | cat >>confdefs.h <<_ACEOF | |
12853 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12854 | _ACEOF | |
12855 | ||
12856 | fi | |
12857 | ||
12858 | done | |
90dd450c | 12859 | |
e6cc62c6 VS |
12860 | |
12861 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12862 | ||
12863 | for ac_header in wcstr.h | |
21d1c967 | 12864 | do |
e6cc62c6 VS |
12865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12871 | fi | |
12872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12874 | else | |
12875 | # Is the header compilable? | |
12876 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12878 | cat >conftest.$ac_ext <<_ACEOF | |
12879 | #line $LINENO "configure" | |
12880 | /* confdefs.h. */ | |
12881 | _ACEOF | |
12882 | cat confdefs.h >>conftest.$ac_ext | |
12883 | cat >>conftest.$ac_ext <<_ACEOF | |
12884 | /* end confdefs.h. */ | |
12885 | $ac_includes_default | |
12886 | #include <$ac_header> | |
12887 | _ACEOF | |
12888 | rm -f conftest.$ac_objext | |
12889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12890 | (eval $ac_compile) 2>&5 | |
12891 | ac_status=$? | |
12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12893 | (exit $ac_status); } && | |
12894 | { ac_try='test -s conftest.$ac_objext' | |
12895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12896 | (eval $ac_try) 2>&5 | |
12897 | ac_status=$? | |
12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12899 | (exit $ac_status); }; }; then | |
12900 | ac_header_compiler=yes | |
12901 | else | |
12902 | echo "$as_me: failed program was:" >&5 | |
12903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12904 | ||
12905 | ac_header_compiler=no | |
12906 | fi | |
12907 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12908 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12909 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12910 | ||
12911 | # Is the header present? | |
12912 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12913 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12914 | cat >conftest.$ac_ext <<_ACEOF | |
12915 | #line $LINENO "configure" | |
12916 | /* confdefs.h. */ | |
12917 | _ACEOF | |
12918 | cat confdefs.h >>conftest.$ac_ext | |
12919 | cat >>conftest.$ac_ext <<_ACEOF | |
12920 | /* end confdefs.h. */ | |
12921 | #include <$ac_header> | |
12922 | _ACEOF | |
12923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12925 | ac_status=$? | |
12926 | grep -v '^ *+' conftest.er1 >conftest.err | |
12927 | rm -f conftest.er1 | |
12928 | cat conftest.err >&5 | |
12929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12930 | (exit $ac_status); } >/dev/null; then | |
12931 | if test -s conftest.err; then | |
12932 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12933 | else | |
12934 | ac_cpp_err= | |
12935 | fi | |
12936 | else | |
12937 | ac_cpp_err=yes | |
12938 | fi | |
12939 | if test -z "$ac_cpp_err"; then | |
12940 | ac_header_preproc=yes | |
12941 | else | |
12942 | echo "$as_me: failed program was:" >&5 | |
12943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12944 | ||
12945 | ac_header_preproc=no | |
12946 | fi | |
12947 | rm -f conftest.err conftest.$ac_ext | |
12948 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12949 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12950 | ||
12951 | # So? What about this header? | |
12952 | case $ac_header_compiler:$ac_header_preproc in | |
12953 | yes:no ) | |
12954 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12955 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12956 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12957 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12958 | ( | |
12959 | cat <<\_ASBOX | |
12960 | ## ------------------------------------ ## | |
12961 | ## Report this to bug-autoconf@gnu.org. ## | |
12962 | ## ------------------------------------ ## | |
12963 | _ASBOX | |
12964 | ) | | |
12965 | sed "s/^/$as_me: WARNING: /" >&2 | |
12966 | ;; | |
12967 | no:yes ) | |
12968 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12969 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12970 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12971 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12974 | ( | |
12975 | cat <<\_ASBOX | |
12976 | ## ------------------------------------ ## | |
12977 | ## Report this to bug-autoconf@gnu.org. ## | |
12978 | ## ------------------------------------ ## | |
12979 | _ASBOX | |
12980 | ) | | |
12981 | sed "s/^/$as_me: WARNING: /" >&2 | |
12982 | ;; | |
12983 | esac | |
12984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12988 | else | |
12989 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12990 | fi |
e6cc62c6 VS |
12991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12993 | ||
4f14bcd8 | 12994 | fi |
e6cc62c6 VS |
12995 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12996 | cat >>confdefs.h <<_ACEOF | |
12997 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12998 | _ACEOF | |
12999 | ||
13000 | fi | |
13001 | ||
13002 | done | |
13003 | ||
13004 | fi | |
13005 | ||
13006 | ||
13007 | for ac_header in fnmatch.h | |
13008 | do | |
13009 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13010 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13011 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13012 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13015 | fi | |
13016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13017 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13018 | else | |
13019 | # Is the header compilable? | |
13020 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13021 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13022 | cat >conftest.$ac_ext <<_ACEOF | |
13023 | #line $LINENO "configure" | |
13024 | /* confdefs.h. */ | |
13025 | _ACEOF | |
13026 | cat confdefs.h >>conftest.$ac_ext | |
13027 | cat >>conftest.$ac_ext <<_ACEOF | |
13028 | /* end confdefs.h. */ | |
13029 | $ac_includes_default | |
13030 | #include <$ac_header> | |
13031 | _ACEOF | |
13032 | rm -f conftest.$ac_objext | |
13033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13034 | (eval $ac_compile) 2>&5 | |
13035 | ac_status=$? | |
13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13037 | (exit $ac_status); } && | |
13038 | { ac_try='test -s conftest.$ac_objext' | |
13039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13040 | (eval $ac_try) 2>&5 | |
13041 | ac_status=$? | |
13042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13043 | (exit $ac_status); }; }; then | |
13044 | ac_header_compiler=yes | |
13045 | else | |
13046 | echo "$as_me: failed program was:" >&5 | |
13047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13048 | ||
13049 | ac_header_compiler=no | |
13050 | fi | |
13051 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13052 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13053 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13054 | ||
13055 | # Is the header present? | |
13056 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13057 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13058 | cat >conftest.$ac_ext <<_ACEOF | |
13059 | #line $LINENO "configure" | |
13060 | /* confdefs.h. */ | |
13061 | _ACEOF | |
13062 | cat confdefs.h >>conftest.$ac_ext | |
13063 | cat >>conftest.$ac_ext <<_ACEOF | |
13064 | /* end confdefs.h. */ | |
13065 | #include <$ac_header> | |
13066 | _ACEOF | |
13067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13069 | ac_status=$? | |
13070 | grep -v '^ *+' conftest.er1 >conftest.err | |
13071 | rm -f conftest.er1 | |
13072 | cat conftest.err >&5 | |
13073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13074 | (exit $ac_status); } >/dev/null; then | |
13075 | if test -s conftest.err; then | |
13076 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13077 | else | |
13078 | ac_cpp_err= | |
13079 | fi | |
13080 | else | |
13081 | ac_cpp_err=yes | |
13082 | fi | |
13083 | if test -z "$ac_cpp_err"; then | |
13084 | ac_header_preproc=yes | |
13085 | else | |
13086 | echo "$as_me: failed program was:" >&5 | |
13087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13088 | ||
13089 | ac_header_preproc=no | |
13090 | fi | |
13091 | rm -f conftest.err conftest.$ac_ext | |
13092 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13093 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13094 | ||
13095 | # So? What about this header? | |
13096 | case $ac_header_compiler:$ac_header_preproc in | |
13097 | yes:no ) | |
13098 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13099 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13100 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13101 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13102 | ( | |
13103 | cat <<\_ASBOX | |
13104 | ## ------------------------------------ ## | |
13105 | ## Report this to bug-autoconf@gnu.org. ## | |
13106 | ## ------------------------------------ ## | |
13107 | _ASBOX | |
13108 | ) | | |
13109 | sed "s/^/$as_me: WARNING: /" >&2 | |
13110 | ;; | |
13111 | no:yes ) | |
13112 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13113 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13114 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13115 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13118 | ( | |
13119 | cat <<\_ASBOX | |
13120 | ## ------------------------------------ ## | |
13121 | ## Report this to bug-autoconf@gnu.org. ## | |
13122 | ## ------------------------------------ ## | |
13123 | _ASBOX | |
13124 | ) | | |
13125 | sed "s/^/$as_me: WARNING: /" >&2 | |
13126 | ;; | |
13127 | esac | |
13128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13132 | else |
e6cc62c6 VS |
13133 | eval "$as_ac_Header=$ac_header_preproc" |
13134 | fi | |
13135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13136 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13137 | ||
21d1c967 | 13138 | fi |
e6cc62c6 VS |
13139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13140 | cat >>confdefs.h <<_ACEOF | |
13141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13142 | _ACEOF | |
13143 | ||
13144 | fi | |
13145 | ||
21d1c967 | 13146 | done |
90dd450c | 13147 | |
5c6fa7d2 | 13148 | |
a0b9e27f | 13149 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13150 | |
13151 | for ac_func in fnmatch | |
21d1c967 | 13152 | do |
e6cc62c6 VS |
13153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13158 | else | |
13159 | cat >conftest.$ac_ext <<_ACEOF | |
13160 | #line $LINENO "configure" | |
13161 | /* confdefs.h. */ | |
13162 | _ACEOF | |
13163 | cat confdefs.h >>conftest.$ac_ext | |
13164 | cat >>conftest.$ac_ext <<_ACEOF | |
13165 | /* end confdefs.h. */ | |
a0b9e27f | 13166 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13167 | which can conflict with char $ac_func (); below. |
13168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13169 | <limits.h> exists even on freestanding compilers. */ | |
13170 | #ifdef __STDC__ | |
13171 | # include <limits.h> | |
13172 | #else | |
13173 | # include <assert.h> | |
13174 | #endif | |
a0b9e27f | 13175 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13176 | #ifdef __cplusplus |
13177 | extern "C" | |
13178 | { | |
13179 | #endif | |
a0b9e27f | 13180 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13181 | builtin and then its argument prototype would still apply. */ |
13182 | char $ac_func (); | |
a0b9e27f MB |
13183 | /* The GNU C library defines this for functions which it implements |
13184 | to always fail with ENOSYS. Some functions are actually named | |
13185 | something starting with __ and the normal name is an alias. */ | |
13186 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13187 | choke me | |
13188 | #else | |
e6cc62c6 VS |
13189 | char (*f) () = $ac_func; |
13190 | #endif | |
13191 | #ifdef __cplusplus | |
13192 | } | |
a0b9e27f MB |
13193 | #endif |
13194 | ||
e6cc62c6 VS |
13195 | int |
13196 | main () | |
13197 | { | |
13198 | return f != $ac_func; | |
13199 | ; | |
13200 | return 0; | |
13201 | } | |
13202 | _ACEOF | |
13203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13205 | (eval $ac_link) 2>&5 | |
13206 | ac_status=$? | |
13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13208 | (exit $ac_status); } && | |
13209 | { ac_try='test -s conftest$ac_exeext' | |
13210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13211 | (eval $ac_try) 2>&5 | |
13212 | ac_status=$? | |
13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13214 | (exit $ac_status); }; }; then | |
13215 | eval "$as_ac_var=yes" | |
13216 | else | |
13217 | echo "$as_me: failed program was:" >&5 | |
13218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13219 | ||
13220 | eval "$as_ac_var=no" | |
13221 | fi | |
13222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13223 | fi | |
13224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13225 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13226 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13227 | cat >>confdefs.h <<_ACEOF | |
13228 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13229 | _ACEOF | |
32832908 | 13230 | |
21d1c967 GD |
13231 | fi |
13232 | done | |
90dd450c | 13233 | |
a0b9e27f | 13234 | fi |
90dd450c | 13235 | |
e6cc62c6 VS |
13236 | |
13237 | for ac_header in langinfo.h | |
21d1c967 | 13238 | do |
e6cc62c6 VS |
13239 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13240 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13241 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13245 | fi | |
13246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13247 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13248 | else | |
13249 | # Is the header compilable? | |
13250 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13251 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13252 | cat >conftest.$ac_ext <<_ACEOF | |
13253 | #line $LINENO "configure" | |
13254 | /* confdefs.h. */ | |
13255 | _ACEOF | |
13256 | cat confdefs.h >>conftest.$ac_ext | |
13257 | cat >>conftest.$ac_ext <<_ACEOF | |
13258 | /* end confdefs.h. */ | |
13259 | $ac_includes_default | |
13260 | #include <$ac_header> | |
13261 | _ACEOF | |
13262 | rm -f conftest.$ac_objext | |
13263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13264 | (eval $ac_compile) 2>&5 | |
13265 | ac_status=$? | |
13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13267 | (exit $ac_status); } && | |
13268 | { ac_try='test -s conftest.$ac_objext' | |
13269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13270 | (eval $ac_try) 2>&5 | |
13271 | ac_status=$? | |
13272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13273 | (exit $ac_status); }; }; then | |
13274 | ac_header_compiler=yes | |
13275 | else | |
13276 | echo "$as_me: failed program was:" >&5 | |
13277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13278 | ||
13279 | ac_header_compiler=no | |
13280 | fi | |
13281 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13282 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13283 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13284 | ||
13285 | # Is the header present? | |
13286 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13287 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13288 | cat >conftest.$ac_ext <<_ACEOF | |
13289 | #line $LINENO "configure" | |
13290 | /* confdefs.h. */ | |
13291 | _ACEOF | |
13292 | cat confdefs.h >>conftest.$ac_ext | |
13293 | cat >>conftest.$ac_ext <<_ACEOF | |
13294 | /* end confdefs.h. */ | |
13295 | #include <$ac_header> | |
13296 | _ACEOF | |
13297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13299 | ac_status=$? | |
13300 | grep -v '^ *+' conftest.er1 >conftest.err | |
13301 | rm -f conftest.er1 | |
13302 | cat conftest.err >&5 | |
13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); } >/dev/null; then | |
13305 | if test -s conftest.err; then | |
13306 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13307 | else | |
13308 | ac_cpp_err= | |
13309 | fi | |
13310 | else | |
13311 | ac_cpp_err=yes | |
13312 | fi | |
13313 | if test -z "$ac_cpp_err"; then | |
13314 | ac_header_preproc=yes | |
13315 | else | |
13316 | echo "$as_me: failed program was:" >&5 | |
13317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13318 | ||
13319 | ac_header_preproc=no | |
13320 | fi | |
13321 | rm -f conftest.err conftest.$ac_ext | |
13322 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13323 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13324 | ||
13325 | # So? What about this header? | |
13326 | case $ac_header_compiler:$ac_header_preproc in | |
13327 | yes:no ) | |
13328 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13329 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13330 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13331 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13332 | ( | |
13333 | cat <<\_ASBOX | |
13334 | ## ------------------------------------ ## | |
13335 | ## Report this to bug-autoconf@gnu.org. ## | |
13336 | ## ------------------------------------ ## | |
13337 | _ASBOX | |
13338 | ) | | |
13339 | sed "s/^/$as_me: WARNING: /" >&2 | |
13340 | ;; | |
13341 | no:yes ) | |
13342 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13343 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13344 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13345 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13346 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13347 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13348 | ( | |
13349 | cat <<\_ASBOX | |
13350 | ## ------------------------------------ ## | |
13351 | ## Report this to bug-autoconf@gnu.org. ## | |
13352 | ## ------------------------------------ ## | |
13353 | _ASBOX | |
13354 | ) | | |
13355 | sed "s/^/$as_me: WARNING: /" >&2 | |
13356 | ;; | |
13357 | esac | |
13358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13362 | else | |
13363 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13364 | fi |
e6cc62c6 VS |
13365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13366 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13367 | ||
4f14bcd8 | 13368 | fi |
e6cc62c6 VS |
13369 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13370 | cat >>confdefs.h <<_ACEOF | |
13371 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13372 | _ACEOF | |
13373 | ||
21d1c967 | 13374 | fi |
e6cc62c6 | 13375 | |
21d1c967 | 13376 | done |
3a922bb4 | 13377 | |
8284b0c5 | 13378 | |
4f5a7f74 VZ |
13379 | case "${host}" in |
13380 | *-pc-os2_emx | *-pc-os2-emx ) | |
13381 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13382 | LIBS="$LIBS -lintl" | |
13383 | fi | |
13384 | ;; | |
13385 | esac | |
1542ea39 | 13386 | |
a0b9e27f MB |
13387 | if test "$wxUSE_GUI" = "yes"; then |
13388 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 VS |
13389 | |
13390 | for ac_header in X11/XKBlib.h | |
21d1c967 | 13391 | do |
e6cc62c6 VS |
13392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13398 | fi | |
13399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13401 | else | |
13402 | # Is the header compilable? | |
13403 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13405 | cat >conftest.$ac_ext <<_ACEOF | |
13406 | #line $LINENO "configure" | |
13407 | /* confdefs.h. */ | |
13408 | _ACEOF | |
13409 | cat confdefs.h >>conftest.$ac_ext | |
13410 | cat >>conftest.$ac_ext <<_ACEOF | |
13411 | /* end confdefs.h. */ | |
13412 | $ac_includes_default | |
13413 | #include <$ac_header> | |
13414 | _ACEOF | |
13415 | rm -f conftest.$ac_objext | |
13416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13417 | (eval $ac_compile) 2>&5 | |
13418 | ac_status=$? | |
13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13420 | (exit $ac_status); } && | |
13421 | { ac_try='test -s conftest.$ac_objext' | |
13422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13423 | (eval $ac_try) 2>&5 | |
13424 | ac_status=$? | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13426 | (exit $ac_status); }; }; then | |
13427 | ac_header_compiler=yes | |
13428 | else | |
13429 | echo "$as_me: failed program was:" >&5 | |
13430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13431 | ||
13432 | ac_header_compiler=no | |
13433 | fi | |
13434 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13435 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13436 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13437 | ||
13438 | # Is the header present? | |
13439 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13440 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13441 | cat >conftest.$ac_ext <<_ACEOF | |
13442 | #line $LINENO "configure" | |
13443 | /* confdefs.h. */ | |
13444 | _ACEOF | |
13445 | cat confdefs.h >>conftest.$ac_ext | |
13446 | cat >>conftest.$ac_ext <<_ACEOF | |
13447 | /* end confdefs.h. */ | |
13448 | #include <$ac_header> | |
13449 | _ACEOF | |
13450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13452 | ac_status=$? | |
13453 | grep -v '^ *+' conftest.er1 >conftest.err | |
13454 | rm -f conftest.er1 | |
13455 | cat conftest.err >&5 | |
13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13457 | (exit $ac_status); } >/dev/null; then | |
13458 | if test -s conftest.err; then | |
13459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13460 | else | |
13461 | ac_cpp_err= | |
13462 | fi | |
13463 | else | |
13464 | ac_cpp_err=yes | |
13465 | fi | |
13466 | if test -z "$ac_cpp_err"; then | |
13467 | ac_header_preproc=yes | |
13468 | else | |
13469 | echo "$as_me: failed program was:" >&5 | |
13470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13471 | ||
13472 | ac_header_preproc=no | |
13473 | fi | |
13474 | rm -f conftest.err conftest.$ac_ext | |
13475 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13476 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13477 | ||
13478 | # So? What about this header? | |
13479 | case $ac_header_compiler:$ac_header_preproc in | |
13480 | yes:no ) | |
13481 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13482 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13484 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13485 | ( | |
13486 | cat <<\_ASBOX | |
13487 | ## ------------------------------------ ## | |
13488 | ## Report this to bug-autoconf@gnu.org. ## | |
13489 | ## ------------------------------------ ## | |
13490 | _ASBOX | |
13491 | ) | | |
13492 | sed "s/^/$as_me: WARNING: /" >&2 | |
13493 | ;; | |
13494 | no:yes ) | |
13495 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13496 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13497 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13498 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13500 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13501 | ( | |
13502 | cat <<\_ASBOX | |
13503 | ## ------------------------------------ ## | |
13504 | ## Report this to bug-autoconf@gnu.org. ## | |
13505 | ## ------------------------------------ ## | |
13506 | _ASBOX | |
13507 | ) | | |
13508 | sed "s/^/$as_me: WARNING: /" >&2 | |
13509 | ;; | |
13510 | esac | |
13511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13515 | else | |
13516 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13517 | fi |
e6cc62c6 VS |
13518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13520 | ||
90dd450c | 13521 | fi |
e6cc62c6 VS |
13522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13523 | cat >>confdefs.h <<_ACEOF | |
13524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13525 | _ACEOF | |
13526 | ||
247f5006 | 13527 | fi |
e6cc62c6 | 13528 | |
247f5006 VZ |
13529 | done |
13530 | ||
a0b9e27f MB |
13531 | fi |
13532 | fi | |
247f5006 | 13533 | |
247f5006 | 13534 | |
e6cc62c6 VS |
13535 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13536 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13537 | if test "${ac_cv_c_const+set}" = set; then | |
13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13539 | else | |
13540 | cat >conftest.$ac_ext <<_ACEOF | |
13541 | #line $LINENO "configure" | |
13542 | /* confdefs.h. */ | |
13543 | _ACEOF | |
13544 | cat confdefs.h >>conftest.$ac_ext | |
13545 | cat >>conftest.$ac_ext <<_ACEOF | |
13546 | /* end confdefs.h. */ | |
13547 | ||
13548 | int | |
13549 | main () | |
13550 | { | |
13551 | /* FIXME: Include the comments suggested by Paul. */ | |
13552 | #ifndef __cplusplus | |
13553 | /* Ultrix mips cc rejects this. */ | |
13554 | typedef int charset[2]; | |
13555 | const charset x; | |
13556 | /* SunOS 4.1.1 cc rejects this. */ | |
13557 | char const *const *ccp; | |
13558 | char **p; | |
13559 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13560 | struct point {int x, y;}; | |
13561 | static struct point const zero = {0,0}; | |
13562 | /* AIX XL C 1.02.0.0 rejects this. | |
13563 | It does not let you subtract one const X* pointer from another in | |
13564 | an arm of an if-expression whose if-part is not a constant | |
13565 | expression */ | |
13566 | const char *g = "string"; | |
13567 | ccp = &g + (g ? g-g : 0); | |
13568 | /* HPUX 7.0 cc rejects these. */ | |
13569 | ++ccp; | |
13570 | p = (char**) ccp; | |
13571 | ccp = (char const *const *) p; | |
13572 | { /* SCO 3.2v4 cc rejects this. */ | |
13573 | char *t; | |
13574 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13575 | ||
13576 | *t++ = 0; | |
13577 | } | |
13578 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13579 | int x[] = {25, 17}; | |
13580 | const int *foo = &x[0]; | |
13581 | ++foo; | |
13582 | } | |
13583 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13584 | typedef const int *iptr; | |
13585 | iptr p = 0; | |
13586 | ++p; | |
13587 | } | |
13588 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13589 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13590 | struct s { int j; const int *ap[3]; }; | |
13591 | struct s *b; b->j = 5; | |
13592 | } | |
13593 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13594 | const int foo = 10; | |
13595 | } | |
13596 | #endif | |
13597 | ||
13598 | ; | |
13599 | return 0; | |
13600 | } | |
13601 | _ACEOF | |
13602 | rm -f conftest.$ac_objext | |
13603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13604 | (eval $ac_compile) 2>&5 | |
13605 | ac_status=$? | |
13606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13607 | (exit $ac_status); } && | |
13608 | { ac_try='test -s conftest.$ac_objext' | |
13609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13610 | (eval $ac_try) 2>&5 | |
13611 | ac_status=$? | |
13612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13613 | (exit $ac_status); }; }; then | |
a0b9e27f | 13614 | ac_cv_c_const=yes |
247f5006 | 13615 | else |
e6cc62c6 VS |
13616 | echo "$as_me: failed program was:" >&5 |
13617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13618 | ||
13619 | ac_cv_c_const=no | |
247f5006 | 13620 | fi |
e6cc62c6 | 13621 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13622 | fi |
e6cc62c6 VS |
13623 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13624 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13625 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13626 | |
13627 | cat >>confdefs.h <<\_ACEOF | |
13628 | #define const | |
13629 | _ACEOF | |
10f2d63a | 13630 | |
90dd450c | 13631 | fi |
81809c07 | 13632 | |
e6cc62c6 VS |
13633 | echo "$as_me:$LINENO: checking for inline" >&5 |
13634 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13635 | if test "${ac_cv_c_inline+set}" = set; then | |
13636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13637 | else |
a0b9e27f MB |
13638 | ac_cv_c_inline=no |
13639 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13640 | cat >conftest.$ac_ext <<_ACEOF |
13641 | #line $LINENO "configure" | |
13642 | /* confdefs.h. */ | |
13643 | _ACEOF | |
13644 | cat confdefs.h >>conftest.$ac_ext | |
13645 | cat >>conftest.$ac_ext <<_ACEOF | |
13646 | /* end confdefs.h. */ | |
13647 | #ifndef __cplusplus | |
13648 | typedef int foo_t; | |
13649 | static $ac_kw foo_t static_foo () {return 0; } | |
13650 | $ac_kw foo_t foo () {return 0; } | |
13651 | #endif | |
a0b9e27f | 13652 | |
e6cc62c6 VS |
13653 | _ACEOF |
13654 | rm -f conftest.$ac_objext | |
13655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13656 | (eval $ac_compile) 2>&5 | |
13657 | ac_status=$? | |
13658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13659 | (exit $ac_status); } && | |
13660 | { ac_try='test -s conftest.$ac_objext' | |
13661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13662 | (eval $ac_try) 2>&5 | |
13663 | ac_status=$? | |
13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13665 | (exit $ac_status); }; }; then | |
a0b9e27f | 13666 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13667 | else |
e6cc62c6 VS |
13668 | echo "$as_me: failed program was:" >&5 |
13669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13670 | ||
247f5006 | 13671 | fi |
e6cc62c6 | 13672 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13673 | done |
247f5006 VZ |
13674 | |
13675 | fi | |
e6cc62c6 VS |
13676 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13677 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13678 | case $ac_cv_c_inline in | |
a0b9e27f | 13679 | inline | yes) ;; |
e6cc62c6 VS |
13680 | no) |
13681 | cat >>confdefs.h <<\_ACEOF | |
13682 | #define inline | |
13683 | _ACEOF | |
a0b9e27f | 13684 | ;; |
e6cc62c6 | 13685 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13686 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13687 | _ACEOF |
a0b9e27f MB |
13688 | ;; |
13689 | esac | |
247f5006 | 13690 | |
247f5006 | 13691 | |
e6cc62c6 VS |
13692 | echo "$as_me:$LINENO: checking for char" >&5 |
13693 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13694 | if test "${ac_cv_type_char+set}" = set; then | |
13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13696 | else | |
13697 | cat >conftest.$ac_ext <<_ACEOF | |
13698 | #line $LINENO "configure" | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | $ac_includes_default | |
13705 | int | |
13706 | main () | |
13707 | { | |
13708 | if ((char *) 0) | |
13709 | return 0; | |
13710 | if (sizeof (char)) | |
13711 | return 0; | |
13712 | ; | |
13713 | return 0; | |
13714 | } | |
13715 | _ACEOF | |
13716 | rm -f conftest.$ac_objext | |
13717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13718 | (eval $ac_compile) 2>&5 | |
13719 | ac_status=$? | |
13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13721 | (exit $ac_status); } && | |
13722 | { ac_try='test -s conftest.$ac_objext' | |
13723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13724 | (eval $ac_try) 2>&5 | |
13725 | ac_status=$? | |
13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13727 | (exit $ac_status); }; }; then | |
13728 | ac_cv_type_char=yes | |
13729 | else | |
13730 | echo "$as_me: failed program was:" >&5 | |
13731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13732 | ||
13733 | ac_cv_type_char=no | |
13734 | fi | |
13735 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13736 | fi | |
13737 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13738 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13739 | ||
13740 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13741 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13742 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13744 | else | |
13745 | if test "$ac_cv_type_char" = yes; then | |
13746 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13747 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13748 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13749 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13750 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13751 | # Depending upon the size, compute the lo and hi bounds. |
13752 | cat >conftest.$ac_ext <<_ACEOF | |
13753 | #line $LINENO "configure" | |
13754 | /* confdefs.h. */ | |
13755 | _ACEOF | |
13756 | cat confdefs.h >>conftest.$ac_ext | |
13757 | cat >>conftest.$ac_ext <<_ACEOF | |
13758 | /* end confdefs.h. */ | |
13759 | $ac_includes_default | |
13760 | int | |
13761 | main () | |
13762 | { | |
13763 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13764 | test_array [0] = 0 | |
13765 | ||
13766 | ; | |
13767 | return 0; | |
13768 | } | |
13769 | _ACEOF | |
13770 | rm -f conftest.$ac_objext | |
13771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13772 | (eval $ac_compile) 2>&5 | |
13773 | ac_status=$? | |
13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13775 | (exit $ac_status); } && | |
13776 | { ac_try='test -s conftest.$ac_objext' | |
13777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13778 | (eval $ac_try) 2>&5 | |
13779 | ac_status=$? | |
13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13781 | (exit $ac_status); }; }; then | |
13782 | ac_lo=0 ac_mid=0 | |
13783 | while :; do | |
13784 | cat >conftest.$ac_ext <<_ACEOF | |
13785 | #line $LINENO "configure" | |
13786 | /* confdefs.h. */ | |
13787 | _ACEOF | |
13788 | cat confdefs.h >>conftest.$ac_ext | |
13789 | cat >>conftest.$ac_ext <<_ACEOF | |
13790 | /* end confdefs.h. */ | |
13791 | $ac_includes_default | |
13792 | int | |
13793 | main () | |
13794 | { | |
13795 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13796 | test_array [0] = 0 | |
13797 | ||
13798 | ; | |
13799 | return 0; | |
13800 | } | |
13801 | _ACEOF | |
13802 | rm -f conftest.$ac_objext | |
13803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13804 | (eval $ac_compile) 2>&5 | |
13805 | ac_status=$? | |
13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13807 | (exit $ac_status); } && | |
13808 | { ac_try='test -s conftest.$ac_objext' | |
13809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13810 | (eval $ac_try) 2>&5 | |
13811 | ac_status=$? | |
13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | (exit $ac_status); }; }; then | |
13814 | ac_hi=$ac_mid; break | |
13815 | else | |
13816 | echo "$as_me: failed program was:" >&5 | |
13817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13818 | ||
13819 | ac_lo=`expr $ac_mid + 1` | |
13820 | if test $ac_lo -le $ac_mid; then | |
13821 | ac_lo= ac_hi= | |
13822 | break | |
13823 | fi | |
13824 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13825 | fi | |
13826 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13827 | done | |
a0b9e27f | 13828 | else |
e6cc62c6 VS |
13829 | echo "$as_me: failed program was:" >&5 |
13830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13831 | ||
13832 | cat >conftest.$ac_ext <<_ACEOF | |
13833 | #line $LINENO "configure" | |
13834 | /* confdefs.h. */ | |
13835 | _ACEOF | |
13836 | cat confdefs.h >>conftest.$ac_ext | |
13837 | cat >>conftest.$ac_ext <<_ACEOF | |
13838 | /* end confdefs.h. */ | |
13839 | $ac_includes_default | |
13840 | int | |
13841 | main () | |
13842 | { | |
13843 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13844 | test_array [0] = 0 | |
13845 | ||
13846 | ; | |
13847 | return 0; | |
13848 | } | |
13849 | _ACEOF | |
13850 | rm -f conftest.$ac_objext | |
13851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13852 | (eval $ac_compile) 2>&5 | |
13853 | ac_status=$? | |
13854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13855 | (exit $ac_status); } && | |
13856 | { ac_try='test -s conftest.$ac_objext' | |
13857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13858 | (eval $ac_try) 2>&5 | |
13859 | ac_status=$? | |
13860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13861 | (exit $ac_status); }; }; then | |
13862 | ac_hi=-1 ac_mid=-1 | |
13863 | while :; do | |
13864 | cat >conftest.$ac_ext <<_ACEOF | |
13865 | #line $LINENO "configure" | |
13866 | /* confdefs.h. */ | |
13867 | _ACEOF | |
13868 | cat confdefs.h >>conftest.$ac_ext | |
13869 | cat >>conftest.$ac_ext <<_ACEOF | |
13870 | /* end confdefs.h. */ | |
13871 | $ac_includes_default | |
13872 | int | |
13873 | main () | |
13874 | { | |
13875 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13876 | test_array [0] = 0 | |
13877 | ||
13878 | ; | |
13879 | return 0; | |
13880 | } | |
13881 | _ACEOF | |
13882 | rm -f conftest.$ac_objext | |
13883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13884 | (eval $ac_compile) 2>&5 | |
13885 | ac_status=$? | |
13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13887 | (exit $ac_status); } && | |
13888 | { ac_try='test -s conftest.$ac_objext' | |
13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13890 | (eval $ac_try) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); }; }; then | |
13894 | ac_lo=$ac_mid; break | |
13895 | else | |
13896 | echo "$as_me: failed program was:" >&5 | |
13897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13898 | ||
13899 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13900 | if test $ac_mid -le $ac_hi; then | |
13901 | ac_lo= ac_hi= | |
13902 | break | |
13903 | fi | |
13904 | ac_mid=`expr 2 '*' $ac_mid` | |
13905 | fi | |
13906 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13907 | done | |
13908 | else | |
13909 | echo "$as_me: failed program was:" >&5 | |
13910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13911 | ||
13912 | ac_lo= ac_hi= | |
13913 | fi | |
13914 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13915 | fi | |
13916 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13917 | # Binary search between lo and hi bounds. | |
13918 | while test "x$ac_lo" != "x$ac_hi"; do | |
13919 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13920 | cat >conftest.$ac_ext <<_ACEOF | |
13921 | #line $LINENO "configure" | |
13922 | /* confdefs.h. */ | |
13923 | _ACEOF | |
13924 | cat confdefs.h >>conftest.$ac_ext | |
13925 | cat >>conftest.$ac_ext <<_ACEOF | |
13926 | /* end confdefs.h. */ | |
13927 | $ac_includes_default | |
13928 | int | |
13929 | main () | |
13930 | { | |
13931 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13932 | test_array [0] = 0 | |
13933 | ||
13934 | ; | |
13935 | return 0; | |
13936 | } | |
13937 | _ACEOF | |
13938 | rm -f conftest.$ac_objext | |
13939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13940 | (eval $ac_compile) 2>&5 | |
13941 | ac_status=$? | |
13942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13943 | (exit $ac_status); } && | |
13944 | { ac_try='test -s conftest.$ac_objext' | |
13945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13946 | (eval $ac_try) 2>&5 | |
13947 | ac_status=$? | |
13948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13949 | (exit $ac_status); }; }; then | |
13950 | ac_hi=$ac_mid | |
13951 | else | |
13952 | echo "$as_me: failed program was:" >&5 | |
13953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13954 | ||
13955 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13956 | fi | |
13957 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13958 | done | |
13959 | case $ac_lo in | |
13960 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13961 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13962 | See \`config.log' for more details." >&5 | |
13963 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13964 | See \`config.log' for more details." >&2;} | |
13965 | { (exit 1); exit 1; }; } ;; | |
13966 | esac | |
13967 | else | |
13968 | if test "$cross_compiling" = yes; then | |
13969 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13970 | See \`config.log' for more details." >&5 | |
13971 | echo "$as_me: error: cannot run test program while cross compiling | |
13972 | See \`config.log' for more details." >&2;} | |
13973 | { (exit 1); exit 1; }; } | |
13974 | else | |
13975 | cat >conftest.$ac_ext <<_ACEOF | |
13976 | #line $LINENO "configure" | |
13977 | /* confdefs.h. */ | |
13978 | _ACEOF | |
13979 | cat confdefs.h >>conftest.$ac_ext | |
13980 | cat >>conftest.$ac_ext <<_ACEOF | |
13981 | /* end confdefs.h. */ | |
13982 | $ac_includes_default | |
13983 | long longval () { return (long) (sizeof (char)); } | |
13984 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 13985 | #include <stdio.h> |
e6cc62c6 VS |
13986 | #include <stdlib.h> |
13987 | int | |
13988 | main () | |
247f5006 | 13989 | { |
e6cc62c6 VS |
13990 | |
13991 | FILE *f = fopen ("conftest.val", "w"); | |
13992 | if (! f) | |
13993 | exit (1); | |
13994 | if (((long) (sizeof (char))) < 0) | |
13995 | { | |
13996 | long i = longval (); | |
13997 | if (i != ((long) (sizeof (char)))) | |
13998 | exit (1); | |
13999 | fprintf (f, "%ld\n", i); | |
14000 | } | |
14001 | else | |
14002 | { | |
14003 | unsigned long i = ulongval (); | |
14004 | if (i != ((long) (sizeof (char)))) | |
14005 | exit (1); | |
14006 | fprintf (f, "%lu\n", i); | |
14007 | } | |
14008 | exit (ferror (f) || fclose (f) != 0); | |
14009 | ||
14010 | ; | |
14011 | return 0; | |
52127426 | 14012 | } |
e6cc62c6 VS |
14013 | _ACEOF |
14014 | rm -f conftest$ac_exeext | |
14015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14016 | (eval $ac_link) 2>&5 | |
14017 | ac_status=$? | |
14018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14021 | (eval $ac_try) 2>&5 | |
14022 | ac_status=$? | |
14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14024 | (exit $ac_status); }; }; then | |
14025 | ac_cv_sizeof_char=`cat conftest.val` | |
14026 | else | |
14027 | echo "$as_me: program exited with status $ac_status" >&5 | |
14028 | echo "$as_me: failed program was:" >&5 | |
14029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14030 | ||
14031 | ( exit $ac_status ) | |
14032 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14033 | See \`config.log' for more details." >&5 | |
14034 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14035 | See \`config.log' for more details." >&2;} | |
14036 | { (exit 1); exit 1; }; } | |
14037 | fi | |
14038 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14039 | fi | |
14040 | fi | |
14041 | rm -f conftest.val | |
247f5006 | 14042 | else |
a0b9e27f | 14043 | ac_cv_sizeof_char=0 |
247f5006 | 14044 | fi |
247f5006 | 14045 | fi |
e6cc62c6 VS |
14046 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14047 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14048 | cat >>confdefs.h <<_ACEOF | |
14049 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14050 | _ACEOF | |
14051 | ||
14052 | ||
14053 | echo "$as_me:$LINENO: checking for short" >&5 | |
14054 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14055 | if test "${ac_cv_type_short+set}" = set; then | |
14056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14057 | else | |
14058 | cat >conftest.$ac_ext <<_ACEOF | |
14059 | #line $LINENO "configure" | |
14060 | /* confdefs.h. */ | |
14061 | _ACEOF | |
14062 | cat confdefs.h >>conftest.$ac_ext | |
14063 | cat >>conftest.$ac_ext <<_ACEOF | |
14064 | /* end confdefs.h. */ | |
14065 | $ac_includes_default | |
14066 | int | |
14067 | main () | |
14068 | { | |
14069 | if ((short *) 0) | |
14070 | return 0; | |
14071 | if (sizeof (short)) | |
14072 | return 0; | |
14073 | ; | |
14074 | return 0; | |
14075 | } | |
14076 | _ACEOF | |
14077 | rm -f conftest.$ac_objext | |
14078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14079 | (eval $ac_compile) 2>&5 | |
14080 | ac_status=$? | |
14081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14082 | (exit $ac_status); } && | |
14083 | { ac_try='test -s conftest.$ac_objext' | |
14084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14085 | (eval $ac_try) 2>&5 | |
14086 | ac_status=$? | |
14087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14088 | (exit $ac_status); }; }; then | |
14089 | ac_cv_type_short=yes | |
14090 | else | |
14091 | echo "$as_me: failed program was:" >&5 | |
14092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14093 | ||
14094 | ac_cv_type_short=no | |
14095 | fi | |
14096 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14097 | fi | |
14098 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14099 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14100 | ||
14101 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14102 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14103 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14105 | else | |
14106 | if test "$ac_cv_type_short" = yes; then | |
14107 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14108 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14109 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14110 | # This bug is HP SR number 8606223364. | |
14111 | if test "$cross_compiling" = yes; then | |
14112 | # Depending upon the size, compute the lo and hi bounds. | |
14113 | cat >conftest.$ac_ext <<_ACEOF | |
14114 | #line $LINENO "configure" | |
14115 | /* confdefs.h. */ | |
14116 | _ACEOF | |
14117 | cat confdefs.h >>conftest.$ac_ext | |
14118 | cat >>conftest.$ac_ext <<_ACEOF | |
14119 | /* end confdefs.h. */ | |
14120 | $ac_includes_default | |
14121 | int | |
14122 | main () | |
14123 | { | |
14124 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14125 | test_array [0] = 0 | |
247f5006 | 14126 | |
e6cc62c6 VS |
14127 | ; |
14128 | return 0; | |
14129 | } | |
14130 | _ACEOF | |
14131 | rm -f conftest.$ac_objext | |
14132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14133 | (eval $ac_compile) 2>&5 | |
14134 | ac_status=$? | |
14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14136 | (exit $ac_status); } && | |
14137 | { ac_try='test -s conftest.$ac_objext' | |
14138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14139 | (eval $ac_try) 2>&5 | |
14140 | ac_status=$? | |
14141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14142 | (exit $ac_status); }; }; then | |
14143 | ac_lo=0 ac_mid=0 | |
14144 | while :; do | |
14145 | cat >conftest.$ac_ext <<_ACEOF | |
14146 | #line $LINENO "configure" | |
14147 | /* confdefs.h. */ | |
14148 | _ACEOF | |
14149 | cat confdefs.h >>conftest.$ac_ext | |
14150 | cat >>conftest.$ac_ext <<_ACEOF | |
14151 | /* end confdefs.h. */ | |
14152 | $ac_includes_default | |
14153 | int | |
14154 | main () | |
14155 | { | |
14156 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14157 | test_array [0] = 0 | |
14158 | ||
14159 | ; | |
14160 | return 0; | |
14161 | } | |
14162 | _ACEOF | |
14163 | rm -f conftest.$ac_objext | |
14164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14165 | (eval $ac_compile) 2>&5 | |
14166 | ac_status=$? | |
14167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14168 | (exit $ac_status); } && | |
14169 | { ac_try='test -s conftest.$ac_objext' | |
14170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14171 | (eval $ac_try) 2>&5 | |
14172 | ac_status=$? | |
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14174 | (exit $ac_status); }; }; then | |
14175 | ac_hi=$ac_mid; break | |
14176 | else | |
14177 | echo "$as_me: failed program was:" >&5 | |
14178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14179 | ||
14180 | ac_lo=`expr $ac_mid + 1` | |
14181 | if test $ac_lo -le $ac_mid; then | |
14182 | ac_lo= ac_hi= | |
14183 | break | |
14184 | fi | |
14185 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14186 | fi |
e6cc62c6 VS |
14187 | rm -f conftest.$ac_objext conftest.$ac_ext |
14188 | done | |
14189 | else | |
14190 | echo "$as_me: failed program was:" >&5 | |
14191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14192 | ||
14193 | cat >conftest.$ac_ext <<_ACEOF | |
14194 | #line $LINENO "configure" | |
14195 | /* confdefs.h. */ | |
14196 | _ACEOF | |
14197 | cat confdefs.h >>conftest.$ac_ext | |
14198 | cat >>conftest.$ac_ext <<_ACEOF | |
14199 | /* end confdefs.h. */ | |
14200 | $ac_includes_default | |
14201 | int | |
14202 | main () | |
14203 | { | |
14204 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14205 | test_array [0] = 0 | |
247f5006 | 14206 | |
e6cc62c6 VS |
14207 | ; |
14208 | return 0; | |
14209 | } | |
14210 | _ACEOF | |
14211 | rm -f conftest.$ac_objext | |
14212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14213 | (eval $ac_compile) 2>&5 | |
14214 | ac_status=$? | |
14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14216 | (exit $ac_status); } && | |
14217 | { ac_try='test -s conftest.$ac_objext' | |
14218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14219 | (eval $ac_try) 2>&5 | |
14220 | ac_status=$? | |
14221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14222 | (exit $ac_status); }; }; then | |
14223 | ac_hi=-1 ac_mid=-1 | |
14224 | while :; do | |
14225 | cat >conftest.$ac_ext <<_ACEOF | |
14226 | #line $LINENO "configure" | |
14227 | /* confdefs.h. */ | |
14228 | _ACEOF | |
14229 | cat confdefs.h >>conftest.$ac_ext | |
14230 | cat >>conftest.$ac_ext <<_ACEOF | |
14231 | /* end confdefs.h. */ | |
14232 | $ac_includes_default | |
14233 | int | |
14234 | main () | |
14235 | { | |
14236 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14237 | test_array [0] = 0 | |
247f5006 | 14238 | |
e6cc62c6 VS |
14239 | ; |
14240 | return 0; | |
14241 | } | |
14242 | _ACEOF | |
14243 | rm -f conftest.$ac_objext | |
14244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14245 | (eval $ac_compile) 2>&5 | |
14246 | ac_status=$? | |
14247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14248 | (exit $ac_status); } && | |
14249 | { ac_try='test -s conftest.$ac_objext' | |
14250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14251 | (eval $ac_try) 2>&5 | |
14252 | ac_status=$? | |
14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14254 | (exit $ac_status); }; }; then | |
14255 | ac_lo=$ac_mid; break | |
14256 | else | |
14257 | echo "$as_me: failed program was:" >&5 | |
14258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14259 | ||
14260 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14261 | if test $ac_mid -le $ac_hi; then | |
14262 | ac_lo= ac_hi= | |
14263 | break | |
14264 | fi | |
14265 | ac_mid=`expr 2 '*' $ac_mid` | |
14266 | fi | |
14267 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14268 | done | |
247f5006 | 14269 | else |
e6cc62c6 VS |
14270 | echo "$as_me: failed program was:" >&5 |
14271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14272 | ||
14273 | ac_lo= ac_hi= | |
14274 | fi | |
14275 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14276 | fi | |
14277 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14278 | # Binary search between lo and hi bounds. | |
14279 | while test "x$ac_lo" != "x$ac_hi"; do | |
14280 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14281 | cat >conftest.$ac_ext <<_ACEOF | |
14282 | #line $LINENO "configure" | |
14283 | /* confdefs.h. */ | |
14284 | _ACEOF | |
14285 | cat confdefs.h >>conftest.$ac_ext | |
14286 | cat >>conftest.$ac_ext <<_ACEOF | |
14287 | /* end confdefs.h. */ | |
14288 | $ac_includes_default | |
14289 | int | |
14290 | main () | |
14291 | { | |
14292 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14293 | test_array [0] = 0 | |
14294 | ||
14295 | ; | |
14296 | return 0; | |
14297 | } | |
14298 | _ACEOF | |
14299 | rm -f conftest.$ac_objext | |
14300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14301 | (eval $ac_compile) 2>&5 | |
14302 | ac_status=$? | |
14303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14304 | (exit $ac_status); } && | |
14305 | { ac_try='test -s conftest.$ac_objext' | |
14306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14307 | (eval $ac_try) 2>&5 | |
14308 | ac_status=$? | |
14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14310 | (exit $ac_status); }; }; then | |
14311 | ac_hi=$ac_mid | |
14312 | else | |
14313 | echo "$as_me: failed program was:" >&5 | |
14314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14315 | ||
14316 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14317 | fi | |
14318 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14319 | done | |
14320 | case $ac_lo in | |
14321 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14322 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14323 | See \`config.log' for more details." >&5 | |
14324 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14325 | See \`config.log' for more details." >&2;} | |
14326 | { (exit 1); exit 1; }; } ;; | |
14327 | esac | |
247f5006 | 14328 | else |
e6cc62c6 VS |
14329 | if test "$cross_compiling" = yes; then |
14330 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14331 | See \`config.log' for more details." >&5 | |
14332 | echo "$as_me: error: cannot run test program while cross compiling | |
14333 | See \`config.log' for more details." >&2;} | |
14334 | { (exit 1); exit 1; }; } | |
14335 | else | |
14336 | cat >conftest.$ac_ext <<_ACEOF | |
14337 | #line $LINENO "configure" | |
14338 | /* confdefs.h. */ | |
14339 | _ACEOF | |
14340 | cat confdefs.h >>conftest.$ac_ext | |
14341 | cat >>conftest.$ac_ext <<_ACEOF | |
14342 | /* end confdefs.h. */ | |
14343 | $ac_includes_default | |
14344 | long longval () { return (long) (sizeof (short)); } | |
14345 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14346 | #include <stdio.h> |
e6cc62c6 VS |
14347 | #include <stdlib.h> |
14348 | int | |
14349 | main () | |
a0b9e27f | 14350 | { |
e6cc62c6 VS |
14351 | |
14352 | FILE *f = fopen ("conftest.val", "w"); | |
14353 | if (! f) | |
14354 | exit (1); | |
14355 | if (((long) (sizeof (short))) < 0) | |
14356 | { | |
14357 | long i = longval (); | |
14358 | if (i != ((long) (sizeof (short)))) | |
14359 | exit (1); | |
14360 | fprintf (f, "%ld\n", i); | |
14361 | } | |
14362 | else | |
14363 | { | |
14364 | unsigned long i = ulongval (); | |
14365 | if (i != ((long) (sizeof (short)))) | |
14366 | exit (1); | |
14367 | fprintf (f, "%lu\n", i); | |
14368 | } | |
14369 | exit (ferror (f) || fclose (f) != 0); | |
14370 | ||
14371 | ; | |
14372 | return 0; | |
a0b9e27f | 14373 | } |
e6cc62c6 VS |
14374 | _ACEOF |
14375 | rm -f conftest$ac_exeext | |
14376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14377 | (eval $ac_link) 2>&5 | |
14378 | ac_status=$? | |
14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14382 | (eval $ac_try) 2>&5 | |
14383 | ac_status=$? | |
14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14385 | (exit $ac_status); }; }; then | |
14386 | ac_cv_sizeof_short=`cat conftest.val` | |
14387 | else | |
14388 | echo "$as_me: program exited with status $ac_status" >&5 | |
14389 | echo "$as_me: failed program was:" >&5 | |
14390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14391 | ||
14392 | ( exit $ac_status ) | |
14393 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14394 | See \`config.log' for more details." >&5 | |
14395 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14396 | See \`config.log' for more details." >&2;} | |
14397 | { (exit 1); exit 1; }; } | |
14398 | fi | |
14399 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14400 | fi | |
14401 | fi | |
14402 | rm -f conftest.val | |
247f5006 | 14403 | else |
a0b9e27f | 14404 | ac_cv_sizeof_short=0 |
247f5006 | 14405 | fi |
247f5006 | 14406 | fi |
e6cc62c6 VS |
14407 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14408 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14409 | cat >>confdefs.h <<_ACEOF | |
14410 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14411 | _ACEOF | |
14412 | ||
14413 | ||
14414 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14415 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14416 | if test "${ac_cv_type_void_p+set}" = set; then | |
14417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14418 | else | |
14419 | cat >conftest.$ac_ext <<_ACEOF | |
14420 | #line $LINENO "configure" | |
14421 | /* confdefs.h. */ | |
14422 | _ACEOF | |
14423 | cat confdefs.h >>conftest.$ac_ext | |
14424 | cat >>conftest.$ac_ext <<_ACEOF | |
14425 | /* end confdefs.h. */ | |
14426 | $ac_includes_default | |
14427 | int | |
14428 | main () | |
14429 | { | |
14430 | if ((void * *) 0) | |
14431 | return 0; | |
14432 | if (sizeof (void *)) | |
14433 | return 0; | |
14434 | ; | |
14435 | return 0; | |
14436 | } | |
14437 | _ACEOF | |
14438 | rm -f conftest.$ac_objext | |
14439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14440 | (eval $ac_compile) 2>&5 | |
14441 | ac_status=$? | |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14443 | (exit $ac_status); } && | |
14444 | { ac_try='test -s conftest.$ac_objext' | |
14445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14446 | (eval $ac_try) 2>&5 | |
14447 | ac_status=$? | |
14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14449 | (exit $ac_status); }; }; then | |
14450 | ac_cv_type_void_p=yes | |
14451 | else | |
14452 | echo "$as_me: failed program was:" >&5 | |
14453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14454 | ||
14455 | ac_cv_type_void_p=no | |
14456 | fi | |
14457 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14458 | fi | |
14459 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14460 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14461 | ||
14462 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14463 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14464 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14466 | else | |
14467 | if test "$ac_cv_type_void_p" = yes; then | |
14468 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14469 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14470 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14471 | # This bug is HP SR number 8606223364. | |
14472 | if test "$cross_compiling" = yes; then | |
14473 | # Depending upon the size, compute the lo and hi bounds. | |
14474 | cat >conftest.$ac_ext <<_ACEOF | |
14475 | #line $LINENO "configure" | |
14476 | /* confdefs.h. */ | |
14477 | _ACEOF | |
14478 | cat confdefs.h >>conftest.$ac_ext | |
14479 | cat >>conftest.$ac_ext <<_ACEOF | |
14480 | /* end confdefs.h. */ | |
14481 | $ac_includes_default | |
14482 | int | |
14483 | main () | |
14484 | { | |
14485 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14486 | test_array [0] = 0 | |
14487 | ||
14488 | ; | |
14489 | return 0; | |
14490 | } | |
14491 | _ACEOF | |
14492 | rm -f conftest.$ac_objext | |
14493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14494 | (eval $ac_compile) 2>&5 | |
14495 | ac_status=$? | |
14496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14497 | (exit $ac_status); } && | |
14498 | { ac_try='test -s conftest.$ac_objext' | |
14499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14500 | (eval $ac_try) 2>&5 | |
14501 | ac_status=$? | |
14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14503 | (exit $ac_status); }; }; then | |
14504 | ac_lo=0 ac_mid=0 | |
14505 | while :; do | |
14506 | cat >conftest.$ac_ext <<_ACEOF | |
14507 | #line $LINENO "configure" | |
14508 | /* confdefs.h. */ | |
14509 | _ACEOF | |
14510 | cat confdefs.h >>conftest.$ac_ext | |
14511 | cat >>conftest.$ac_ext <<_ACEOF | |
14512 | /* end confdefs.h. */ | |
14513 | $ac_includes_default | |
14514 | int | |
14515 | main () | |
14516 | { | |
14517 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14518 | test_array [0] = 0 | |
247f5006 | 14519 | |
e6cc62c6 VS |
14520 | ; |
14521 | return 0; | |
14522 | } | |
14523 | _ACEOF | |
14524 | rm -f conftest.$ac_objext | |
14525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14526 | (eval $ac_compile) 2>&5 | |
14527 | ac_status=$? | |
14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14529 | (exit $ac_status); } && | |
14530 | { ac_try='test -s conftest.$ac_objext' | |
14531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14532 | (eval $ac_try) 2>&5 | |
14533 | ac_status=$? | |
14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14535 | (exit $ac_status); }; }; then | |
14536 | ac_hi=$ac_mid; break | |
14537 | else | |
14538 | echo "$as_me: failed program was:" >&5 | |
14539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14540 | ||
14541 | ac_lo=`expr $ac_mid + 1` | |
14542 | if test $ac_lo -le $ac_mid; then | |
14543 | ac_lo= ac_hi= | |
14544 | break | |
14545 | fi | |
14546 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14547 | fi |
e6cc62c6 VS |
14548 | rm -f conftest.$ac_objext conftest.$ac_ext |
14549 | done | |
14550 | else | |
14551 | echo "$as_me: failed program was:" >&5 | |
14552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14553 | ||
14554 | cat >conftest.$ac_ext <<_ACEOF | |
14555 | #line $LINENO "configure" | |
14556 | /* confdefs.h. */ | |
14557 | _ACEOF | |
14558 | cat confdefs.h >>conftest.$ac_ext | |
14559 | cat >>conftest.$ac_ext <<_ACEOF | |
14560 | /* end confdefs.h. */ | |
14561 | $ac_includes_default | |
14562 | int | |
14563 | main () | |
14564 | { | |
14565 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14566 | test_array [0] = 0 | |
247f5006 | 14567 | |
e6cc62c6 VS |
14568 | ; |
14569 | return 0; | |
14570 | } | |
14571 | _ACEOF | |
14572 | rm -f conftest.$ac_objext | |
14573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14574 | (eval $ac_compile) 2>&5 | |
14575 | ac_status=$? | |
14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14577 | (exit $ac_status); } && | |
14578 | { ac_try='test -s conftest.$ac_objext' | |
14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14580 | (eval $ac_try) 2>&5 | |
14581 | ac_status=$? | |
14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14583 | (exit $ac_status); }; }; then | |
14584 | ac_hi=-1 ac_mid=-1 | |
14585 | while :; do | |
14586 | cat >conftest.$ac_ext <<_ACEOF | |
14587 | #line $LINENO "configure" | |
14588 | /* confdefs.h. */ | |
14589 | _ACEOF | |
14590 | cat confdefs.h >>conftest.$ac_ext | |
14591 | cat >>conftest.$ac_ext <<_ACEOF | |
14592 | /* end confdefs.h. */ | |
14593 | $ac_includes_default | |
14594 | int | |
14595 | main () | |
14596 | { | |
14597 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14598 | test_array [0] = 0 | |
247f5006 | 14599 | |
e6cc62c6 VS |
14600 | ; |
14601 | return 0; | |
14602 | } | |
14603 | _ACEOF | |
14604 | rm -f conftest.$ac_objext | |
14605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14606 | (eval $ac_compile) 2>&5 | |
14607 | ac_status=$? | |
14608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14609 | (exit $ac_status); } && | |
14610 | { ac_try='test -s conftest.$ac_objext' | |
14611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14612 | (eval $ac_try) 2>&5 | |
14613 | ac_status=$? | |
14614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14615 | (exit $ac_status); }; }; then | |
14616 | ac_lo=$ac_mid; break | |
14617 | else | |
14618 | echo "$as_me: failed program was:" >&5 | |
14619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14620 | ||
14621 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14622 | if test $ac_mid -le $ac_hi; then | |
14623 | ac_lo= ac_hi= | |
14624 | break | |
14625 | fi | |
14626 | ac_mid=`expr 2 '*' $ac_mid` | |
14627 | fi | |
14628 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14629 | done | |
a0b9e27f | 14630 | else |
e6cc62c6 VS |
14631 | echo "$as_me: failed program was:" >&5 |
14632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14633 | ||
14634 | ac_lo= ac_hi= | |
14635 | fi | |
14636 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14637 | fi | |
14638 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14639 | # Binary search between lo and hi bounds. | |
14640 | while test "x$ac_lo" != "x$ac_hi"; do | |
14641 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14642 | cat >conftest.$ac_ext <<_ACEOF | |
14643 | #line $LINENO "configure" | |
14644 | /* confdefs.h. */ | |
14645 | _ACEOF | |
14646 | cat confdefs.h >>conftest.$ac_ext | |
14647 | cat >>conftest.$ac_ext <<_ACEOF | |
14648 | /* end confdefs.h. */ | |
14649 | $ac_includes_default | |
14650 | int | |
14651 | main () | |
14652 | { | |
14653 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14654 | test_array [0] = 0 | |
14655 | ||
14656 | ; | |
14657 | return 0; | |
14658 | } | |
14659 | _ACEOF | |
14660 | rm -f conftest.$ac_objext | |
14661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14662 | (eval $ac_compile) 2>&5 | |
14663 | ac_status=$? | |
14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14665 | (exit $ac_status); } && | |
14666 | { ac_try='test -s conftest.$ac_objext' | |
14667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14668 | (eval $ac_try) 2>&5 | |
14669 | ac_status=$? | |
14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14671 | (exit $ac_status); }; }; then | |
14672 | ac_hi=$ac_mid | |
14673 | else | |
14674 | echo "$as_me: failed program was:" >&5 | |
14675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14676 | ||
14677 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14678 | fi | |
14679 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14680 | done | |
14681 | case $ac_lo in | |
14682 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14683 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14684 | See \`config.log' for more details." >&5 | |
14685 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14686 | See \`config.log' for more details." >&2;} | |
14687 | { (exit 1); exit 1; }; } ;; | |
14688 | esac | |
247f5006 | 14689 | else |
e6cc62c6 VS |
14690 | if test "$cross_compiling" = yes; then |
14691 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14692 | See \`config.log' for more details." >&5 | |
14693 | echo "$as_me: error: cannot run test program while cross compiling | |
14694 | See \`config.log' for more details." >&2;} | |
14695 | { (exit 1); exit 1; }; } | |
14696 | else | |
14697 | cat >conftest.$ac_ext <<_ACEOF | |
14698 | #line $LINENO "configure" | |
14699 | /* confdefs.h. */ | |
14700 | _ACEOF | |
14701 | cat confdefs.h >>conftest.$ac_ext | |
14702 | cat >>conftest.$ac_ext <<_ACEOF | |
14703 | /* end confdefs.h. */ | |
14704 | $ac_includes_default | |
14705 | long longval () { return (long) (sizeof (void *)); } | |
14706 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14707 | #include <stdio.h> |
e6cc62c6 VS |
14708 | #include <stdlib.h> |
14709 | int | |
14710 | main () | |
247f5006 | 14711 | { |
e6cc62c6 VS |
14712 | |
14713 | FILE *f = fopen ("conftest.val", "w"); | |
14714 | if (! f) | |
14715 | exit (1); | |
14716 | if (((long) (sizeof (void *))) < 0) | |
14717 | { | |
14718 | long i = longval (); | |
14719 | if (i != ((long) (sizeof (void *)))) | |
14720 | exit (1); | |
14721 | fprintf (f, "%ld\n", i); | |
14722 | } | |
14723 | else | |
14724 | { | |
14725 | unsigned long i = ulongval (); | |
14726 | if (i != ((long) (sizeof (void *)))) | |
14727 | exit (1); | |
14728 | fprintf (f, "%lu\n", i); | |
14729 | } | |
14730 | exit (ferror (f) || fclose (f) != 0); | |
14731 | ||
14732 | ; | |
14733 | return 0; | |
5c6fa7d2 | 14734 | } |
e6cc62c6 VS |
14735 | _ACEOF |
14736 | rm -f conftest$ac_exeext | |
14737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14738 | (eval $ac_link) 2>&5 | |
14739 | ac_status=$? | |
14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14743 | (eval $ac_try) 2>&5 | |
14744 | ac_status=$? | |
14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14746 | (exit $ac_status); }; }; then | |
14747 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14748 | else | |
14749 | echo "$as_me: program exited with status $ac_status" >&5 | |
14750 | echo "$as_me: failed program was:" >&5 | |
14751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14752 | ||
14753 | ( exit $ac_status ) | |
14754 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14755 | See \`config.log' for more details." >&5 | |
14756 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14757 | See \`config.log' for more details." >&2;} | |
14758 | { (exit 1); exit 1; }; } | |
14759 | fi | |
14760 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14761 | fi | |
14762 | fi | |
14763 | rm -f conftest.val | |
a0b9e27f | 14764 | else |
a0b9e27f MB |
14765 | ac_cv_sizeof_void_p=0 |
14766 | fi | |
a0b9e27f | 14767 | fi |
e6cc62c6 VS |
14768 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14769 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14770 | cat >>confdefs.h <<_ACEOF | |
14771 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14772 | _ACEOF | |
14773 | ||
14774 | ||
14775 | echo "$as_me:$LINENO: checking for int" >&5 | |
14776 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14777 | if test "${ac_cv_type_int+set}" = set; then | |
14778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14779 | else | |
14780 | cat >conftest.$ac_ext <<_ACEOF | |
14781 | #line $LINENO "configure" | |
14782 | /* confdefs.h. */ | |
14783 | _ACEOF | |
14784 | cat confdefs.h >>conftest.$ac_ext | |
14785 | cat >>conftest.$ac_ext <<_ACEOF | |
14786 | /* end confdefs.h. */ | |
14787 | $ac_includes_default | |
14788 | int | |
14789 | main () | |
14790 | { | |
14791 | if ((int *) 0) | |
14792 | return 0; | |
14793 | if (sizeof (int)) | |
14794 | return 0; | |
14795 | ; | |
14796 | return 0; | |
14797 | } | |
14798 | _ACEOF | |
14799 | rm -f conftest.$ac_objext | |
14800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14801 | (eval $ac_compile) 2>&5 | |
14802 | ac_status=$? | |
14803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14804 | (exit $ac_status); } && | |
14805 | { ac_try='test -s conftest.$ac_objext' | |
14806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14807 | (eval $ac_try) 2>&5 | |
14808 | ac_status=$? | |
14809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14810 | (exit $ac_status); }; }; then | |
14811 | ac_cv_type_int=yes | |
14812 | else | |
14813 | echo "$as_me: failed program was:" >&5 | |
14814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14815 | ||
14816 | ac_cv_type_int=no | |
14817 | fi | |
14818 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14819 | fi | |
14820 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14821 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14822 | ||
14823 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14824 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14825 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14827 | else | |
14828 | if test "$ac_cv_type_int" = yes; then | |
14829 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14830 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14831 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14832 | # This bug is HP SR number 8606223364. | |
14833 | if test "$cross_compiling" = yes; then | |
14834 | # Depending upon the size, compute the lo and hi bounds. | |
14835 | cat >conftest.$ac_ext <<_ACEOF | |
14836 | #line $LINENO "configure" | |
14837 | /* confdefs.h. */ | |
14838 | _ACEOF | |
14839 | cat confdefs.h >>conftest.$ac_ext | |
14840 | cat >>conftest.$ac_ext <<_ACEOF | |
14841 | /* end confdefs.h. */ | |
14842 | $ac_includes_default | |
14843 | int | |
14844 | main () | |
14845 | { | |
14846 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14847 | test_array [0] = 0 | |
8284b0c5 | 14848 | |
e6cc62c6 VS |
14849 | ; |
14850 | return 0; | |
14851 | } | |
14852 | _ACEOF | |
14853 | rm -f conftest.$ac_objext | |
14854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14855 | (eval $ac_compile) 2>&5 | |
14856 | ac_status=$? | |
14857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14858 | (exit $ac_status); } && | |
14859 | { ac_try='test -s conftest.$ac_objext' | |
14860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14861 | (eval $ac_try) 2>&5 | |
14862 | ac_status=$? | |
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); }; }; then | |
14865 | ac_lo=0 ac_mid=0 | |
14866 | while :; do | |
14867 | cat >conftest.$ac_ext <<_ACEOF | |
14868 | #line $LINENO "configure" | |
14869 | /* confdefs.h. */ | |
14870 | _ACEOF | |
14871 | cat confdefs.h >>conftest.$ac_ext | |
14872 | cat >>conftest.$ac_ext <<_ACEOF | |
14873 | /* end confdefs.h. */ | |
14874 | $ac_includes_default | |
14875 | int | |
14876 | main () | |
14877 | { | |
14878 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14879 | test_array [0] = 0 | |
14880 | ||
14881 | ; | |
14882 | return 0; | |
14883 | } | |
14884 | _ACEOF | |
14885 | rm -f conftest.$ac_objext | |
14886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14887 | (eval $ac_compile) 2>&5 | |
14888 | ac_status=$? | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); } && | |
14891 | { ac_try='test -s conftest.$ac_objext' | |
14892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14893 | (eval $ac_try) 2>&5 | |
14894 | ac_status=$? | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); }; }; then | |
14897 | ac_hi=$ac_mid; break | |
14898 | else | |
14899 | echo "$as_me: failed program was:" >&5 | |
14900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14901 | ||
14902 | ac_lo=`expr $ac_mid + 1` | |
14903 | if test $ac_lo -le $ac_mid; then | |
14904 | ac_lo= ac_hi= | |
14905 | break | |
14906 | fi | |
14907 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14908 | fi |
e6cc62c6 VS |
14909 | rm -f conftest.$ac_objext conftest.$ac_ext |
14910 | done | |
14911 | else | |
14912 | echo "$as_me: failed program was:" >&5 | |
14913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14914 | ||
14915 | cat >conftest.$ac_ext <<_ACEOF | |
14916 | #line $LINENO "configure" | |
14917 | /* confdefs.h. */ | |
14918 | _ACEOF | |
14919 | cat confdefs.h >>conftest.$ac_ext | |
14920 | cat >>conftest.$ac_ext <<_ACEOF | |
14921 | /* end confdefs.h. */ | |
14922 | $ac_includes_default | |
14923 | int | |
14924 | main () | |
14925 | { | |
14926 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14927 | test_array [0] = 0 | |
247f5006 | 14928 | |
e6cc62c6 VS |
14929 | ; |
14930 | return 0; | |
14931 | } | |
14932 | _ACEOF | |
14933 | rm -f conftest.$ac_objext | |
14934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14935 | (eval $ac_compile) 2>&5 | |
14936 | ac_status=$? | |
14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14938 | (exit $ac_status); } && | |
14939 | { ac_try='test -s conftest.$ac_objext' | |
14940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14941 | (eval $ac_try) 2>&5 | |
14942 | ac_status=$? | |
14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14944 | (exit $ac_status); }; }; then | |
14945 | ac_hi=-1 ac_mid=-1 | |
14946 | while :; do | |
14947 | cat >conftest.$ac_ext <<_ACEOF | |
14948 | #line $LINENO "configure" | |
14949 | /* confdefs.h. */ | |
14950 | _ACEOF | |
14951 | cat confdefs.h >>conftest.$ac_ext | |
14952 | cat >>conftest.$ac_ext <<_ACEOF | |
14953 | /* end confdefs.h. */ | |
14954 | $ac_includes_default | |
14955 | int | |
14956 | main () | |
14957 | { | |
14958 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14959 | test_array [0] = 0 | |
247f5006 | 14960 | |
e6cc62c6 VS |
14961 | ; |
14962 | return 0; | |
14963 | } | |
14964 | _ACEOF | |
14965 | rm -f conftest.$ac_objext | |
14966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14967 | (eval $ac_compile) 2>&5 | |
14968 | ac_status=$? | |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14970 | (exit $ac_status); } && | |
14971 | { ac_try='test -s conftest.$ac_objext' | |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; }; then | |
14977 | ac_lo=$ac_mid; break | |
14978 | else | |
14979 | echo "$as_me: failed program was:" >&5 | |
14980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14981 | ||
14982 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14983 | if test $ac_mid -le $ac_hi; then | |
14984 | ac_lo= ac_hi= | |
14985 | break | |
14986 | fi | |
14987 | ac_mid=`expr 2 '*' $ac_mid` | |
14988 | fi | |
14989 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14990 | done | |
247f5006 | 14991 | else |
e6cc62c6 VS |
14992 | echo "$as_me: failed program was:" >&5 |
14993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14994 | ||
14995 | ac_lo= ac_hi= | |
14996 | fi | |
14997 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14998 | fi | |
14999 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15000 | # Binary search between lo and hi bounds. | |
15001 | while test "x$ac_lo" != "x$ac_hi"; do | |
15002 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15003 | cat >conftest.$ac_ext <<_ACEOF | |
15004 | #line $LINENO "configure" | |
15005 | /* confdefs.h. */ | |
15006 | _ACEOF | |
15007 | cat confdefs.h >>conftest.$ac_ext | |
15008 | cat >>conftest.$ac_ext <<_ACEOF | |
15009 | /* end confdefs.h. */ | |
15010 | $ac_includes_default | |
15011 | int | |
15012 | main () | |
15013 | { | |
15014 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15015 | test_array [0] = 0 | |
15016 | ||
15017 | ; | |
15018 | return 0; | |
15019 | } | |
15020 | _ACEOF | |
15021 | rm -f conftest.$ac_objext | |
15022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15023 | (eval $ac_compile) 2>&5 | |
15024 | ac_status=$? | |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); } && | |
15027 | { ac_try='test -s conftest.$ac_objext' | |
15028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15029 | (eval $ac_try) 2>&5 | |
15030 | ac_status=$? | |
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15032 | (exit $ac_status); }; }; then | |
15033 | ac_hi=$ac_mid | |
15034 | else | |
15035 | echo "$as_me: failed program was:" >&5 | |
15036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15037 | ||
15038 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15039 | fi | |
15040 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15041 | done | |
15042 | case $ac_lo in | |
15043 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15044 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15045 | See \`config.log' for more details." >&5 | |
15046 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15047 | See \`config.log' for more details." >&2;} | |
15048 | { (exit 1); exit 1; }; } ;; | |
15049 | esac | |
a0b9e27f | 15050 | else |
e6cc62c6 VS |
15051 | if test "$cross_compiling" = yes; then |
15052 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15053 | See \`config.log' for more details." >&5 | |
15054 | echo "$as_me: error: cannot run test program while cross compiling | |
15055 | See \`config.log' for more details." >&2;} | |
15056 | { (exit 1); exit 1; }; } | |
15057 | else | |
15058 | cat >conftest.$ac_ext <<_ACEOF | |
15059 | #line $LINENO "configure" | |
15060 | /* confdefs.h. */ | |
15061 | _ACEOF | |
15062 | cat confdefs.h >>conftest.$ac_ext | |
15063 | cat >>conftest.$ac_ext <<_ACEOF | |
15064 | /* end confdefs.h. */ | |
15065 | $ac_includes_default | |
15066 | long longval () { return (long) (sizeof (int)); } | |
15067 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15068 | #include <stdio.h> |
e6cc62c6 VS |
15069 | #include <stdlib.h> |
15070 | int | |
15071 | main () | |
247f5006 | 15072 | { |
e6cc62c6 VS |
15073 | |
15074 | FILE *f = fopen ("conftest.val", "w"); | |
15075 | if (! f) | |
15076 | exit (1); | |
15077 | if (((long) (sizeof (int))) < 0) | |
15078 | { | |
15079 | long i = longval (); | |
15080 | if (i != ((long) (sizeof (int)))) | |
15081 | exit (1); | |
15082 | fprintf (f, "%ld\n", i); | |
15083 | } | |
15084 | else | |
15085 | { | |
15086 | unsigned long i = ulongval (); | |
15087 | if (i != ((long) (sizeof (int)))) | |
15088 | exit (1); | |
15089 | fprintf (f, "%lu\n", i); | |
15090 | } | |
15091 | exit (ferror (f) || fclose (f) != 0); | |
15092 | ||
15093 | ; | |
15094 | return 0; | |
247f5006 | 15095 | } |
e6cc62c6 VS |
15096 | _ACEOF |
15097 | rm -f conftest$ac_exeext | |
15098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15099 | (eval $ac_link) 2>&5 | |
15100 | ac_status=$? | |
15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15102 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15104 | (eval $ac_try) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); }; }; then | |
15108 | ac_cv_sizeof_int=`cat conftest.val` | |
15109 | else | |
15110 | echo "$as_me: program exited with status $ac_status" >&5 | |
15111 | echo "$as_me: failed program was:" >&5 | |
15112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15113 | ||
15114 | ( exit $ac_status ) | |
15115 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15116 | See \`config.log' for more details." >&5 | |
15117 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15118 | See \`config.log' for more details." >&2;} | |
15119 | { (exit 1); exit 1; }; } | |
15120 | fi | |
15121 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15122 | fi | |
15123 | fi | |
15124 | rm -f conftest.val | |
6f72b082 | 15125 | else |
a0b9e27f | 15126 | ac_cv_sizeof_int=0 |
21d1c967 | 15127 | fi |
698dcdb6 | 15128 | fi |
e6cc62c6 VS |
15129 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15130 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15131 | cat >>confdefs.h <<_ACEOF | |
15132 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15133 | _ACEOF | |
15134 | ||
15135 | ||
15136 | echo "$as_me:$LINENO: checking for long" >&5 | |
15137 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15138 | if test "${ac_cv_type_long+set}" = set; then | |
15139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15140 | else | |
15141 | cat >conftest.$ac_ext <<_ACEOF | |
15142 | #line $LINENO "configure" | |
15143 | /* confdefs.h. */ | |
15144 | _ACEOF | |
15145 | cat confdefs.h >>conftest.$ac_ext | |
15146 | cat >>conftest.$ac_ext <<_ACEOF | |
15147 | /* end confdefs.h. */ | |
15148 | $ac_includes_default | |
15149 | int | |
15150 | main () | |
15151 | { | |
15152 | if ((long *) 0) | |
15153 | return 0; | |
15154 | if (sizeof (long)) | |
15155 | return 0; | |
15156 | ; | |
15157 | return 0; | |
15158 | } | |
15159 | _ACEOF | |
15160 | rm -f conftest.$ac_objext | |
15161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15162 | (eval $ac_compile) 2>&5 | |
15163 | ac_status=$? | |
15164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15165 | (exit $ac_status); } && | |
15166 | { ac_try='test -s conftest.$ac_objext' | |
15167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15168 | (eval $ac_try) 2>&5 | |
15169 | ac_status=$? | |
15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15171 | (exit $ac_status); }; }; then | |
15172 | ac_cv_type_long=yes | |
15173 | else | |
15174 | echo "$as_me: failed program was:" >&5 | |
15175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15176 | ||
15177 | ac_cv_type_long=no | |
15178 | fi | |
15179 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15180 | fi | |
15181 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15182 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15183 | ||
15184 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15185 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15186 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15188 | else | |
15189 | if test "$ac_cv_type_long" = yes; then | |
15190 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15191 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15192 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15193 | # This bug is HP SR number 8606223364. | |
15194 | if test "$cross_compiling" = yes; then | |
15195 | # Depending upon the size, compute the lo and hi bounds. | |
15196 | cat >conftest.$ac_ext <<_ACEOF | |
15197 | #line $LINENO "configure" | |
15198 | /* confdefs.h. */ | |
15199 | _ACEOF | |
15200 | cat confdefs.h >>conftest.$ac_ext | |
15201 | cat >>conftest.$ac_ext <<_ACEOF | |
15202 | /* end confdefs.h. */ | |
15203 | $ac_includes_default | |
15204 | int | |
15205 | main () | |
15206 | { | |
15207 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15208 | test_array [0] = 0 | |
15209 | ||
15210 | ; | |
15211 | return 0; | |
15212 | } | |
15213 | _ACEOF | |
15214 | rm -f conftest.$ac_objext | |
15215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15216 | (eval $ac_compile) 2>&5 | |
15217 | ac_status=$? | |
15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15219 | (exit $ac_status); } && | |
15220 | { ac_try='test -s conftest.$ac_objext' | |
15221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15222 | (eval $ac_try) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); }; }; then | |
15226 | ac_lo=0 ac_mid=0 | |
15227 | while :; do | |
15228 | cat >conftest.$ac_ext <<_ACEOF | |
15229 | #line $LINENO "configure" | |
15230 | /* confdefs.h. */ | |
15231 | _ACEOF | |
15232 | cat confdefs.h >>conftest.$ac_ext | |
15233 | cat >>conftest.$ac_ext <<_ACEOF | |
15234 | /* end confdefs.h. */ | |
15235 | $ac_includes_default | |
15236 | int | |
15237 | main () | |
15238 | { | |
15239 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15240 | test_array [0] = 0 | |
4f14bcd8 | 15241 | |
e6cc62c6 VS |
15242 | ; |
15243 | return 0; | |
15244 | } | |
15245 | _ACEOF | |
15246 | rm -f conftest.$ac_objext | |
15247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15248 | (eval $ac_compile) 2>&5 | |
15249 | ac_status=$? | |
15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15251 | (exit $ac_status); } && | |
15252 | { ac_try='test -s conftest.$ac_objext' | |
15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15254 | (eval $ac_try) 2>&5 | |
15255 | ac_status=$? | |
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15257 | (exit $ac_status); }; }; then | |
15258 | ac_hi=$ac_mid; break | |
15259 | else | |
15260 | echo "$as_me: failed program was:" >&5 | |
15261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15262 | ||
15263 | ac_lo=`expr $ac_mid + 1` | |
15264 | if test $ac_lo -le $ac_mid; then | |
15265 | ac_lo= ac_hi= | |
15266 | break | |
15267 | fi | |
15268 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15269 | fi |
e6cc62c6 VS |
15270 | rm -f conftest.$ac_objext conftest.$ac_ext |
15271 | done | |
15272 | else | |
15273 | echo "$as_me: failed program was:" >&5 | |
15274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15275 | ||
15276 | cat >conftest.$ac_ext <<_ACEOF | |
15277 | #line $LINENO "configure" | |
15278 | /* confdefs.h. */ | |
15279 | _ACEOF | |
15280 | cat confdefs.h >>conftest.$ac_ext | |
15281 | cat >>conftest.$ac_ext <<_ACEOF | |
15282 | /* end confdefs.h. */ | |
15283 | $ac_includes_default | |
15284 | int | |
15285 | main () | |
15286 | { | |
15287 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15288 | test_array [0] = 0 | |
4f14bcd8 | 15289 | |
e6cc62c6 VS |
15290 | ; |
15291 | return 0; | |
15292 | } | |
15293 | _ACEOF | |
15294 | rm -f conftest.$ac_objext | |
15295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15296 | (eval $ac_compile) 2>&5 | |
15297 | ac_status=$? | |
15298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15299 | (exit $ac_status); } && | |
15300 | { ac_try='test -s conftest.$ac_objext' | |
15301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15302 | (eval $ac_try) 2>&5 | |
15303 | ac_status=$? | |
15304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15305 | (exit $ac_status); }; }; then | |
15306 | ac_hi=-1 ac_mid=-1 | |
15307 | while :; do | |
15308 | cat >conftest.$ac_ext <<_ACEOF | |
15309 | #line $LINENO "configure" | |
15310 | /* confdefs.h. */ | |
15311 | _ACEOF | |
15312 | cat confdefs.h >>conftest.$ac_ext | |
15313 | cat >>conftest.$ac_ext <<_ACEOF | |
15314 | /* end confdefs.h. */ | |
15315 | $ac_includes_default | |
15316 | int | |
15317 | main () | |
15318 | { | |
15319 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15320 | test_array [0] = 0 | |
5c6fa7d2 | 15321 | |
e6cc62c6 VS |
15322 | ; |
15323 | return 0; | |
15324 | } | |
15325 | _ACEOF | |
15326 | rm -f conftest.$ac_objext | |
15327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15328 | (eval $ac_compile) 2>&5 | |
15329 | ac_status=$? | |
15330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15331 | (exit $ac_status); } && | |
15332 | { ac_try='test -s conftest.$ac_objext' | |
15333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15334 | (eval $ac_try) 2>&5 | |
15335 | ac_status=$? | |
15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15337 | (exit $ac_status); }; }; then | |
15338 | ac_lo=$ac_mid; break | |
15339 | else | |
15340 | echo "$as_me: failed program was:" >&5 | |
15341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15342 | ||
15343 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15344 | if test $ac_mid -le $ac_hi; then | |
15345 | ac_lo= ac_hi= | |
15346 | break | |
15347 | fi | |
15348 | ac_mid=`expr 2 '*' $ac_mid` | |
15349 | fi | |
15350 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15351 | done | |
247f5006 | 15352 | else |
e6cc62c6 VS |
15353 | echo "$as_me: failed program was:" >&5 |
15354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15355 | ||
15356 | ac_lo= ac_hi= | |
15357 | fi | |
15358 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15359 | fi | |
15360 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15361 | # Binary search between lo and hi bounds. | |
15362 | while test "x$ac_lo" != "x$ac_hi"; do | |
15363 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15364 | cat >conftest.$ac_ext <<_ACEOF | |
15365 | #line $LINENO "configure" | |
15366 | /* confdefs.h. */ | |
15367 | _ACEOF | |
15368 | cat confdefs.h >>conftest.$ac_ext | |
15369 | cat >>conftest.$ac_ext <<_ACEOF | |
15370 | /* end confdefs.h. */ | |
15371 | $ac_includes_default | |
15372 | int | |
15373 | main () | |
15374 | { | |
15375 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15376 | test_array [0] = 0 | |
15377 | ||
15378 | ; | |
15379 | return 0; | |
15380 | } | |
15381 | _ACEOF | |
15382 | rm -f conftest.$ac_objext | |
15383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15384 | (eval $ac_compile) 2>&5 | |
15385 | ac_status=$? | |
15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15387 | (exit $ac_status); } && | |
15388 | { ac_try='test -s conftest.$ac_objext' | |
15389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15390 | (eval $ac_try) 2>&5 | |
15391 | ac_status=$? | |
15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15393 | (exit $ac_status); }; }; then | |
15394 | ac_hi=$ac_mid | |
15395 | else | |
15396 | echo "$as_me: failed program was:" >&5 | |
15397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15398 | ||
15399 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15400 | fi | |
15401 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15402 | done | |
15403 | case $ac_lo in | |
15404 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15405 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15406 | See \`config.log' for more details." >&5 | |
15407 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15408 | See \`config.log' for more details." >&2;} | |
15409 | { (exit 1); exit 1; }; } ;; | |
15410 | esac | |
247f5006 | 15411 | else |
e6cc62c6 VS |
15412 | if test "$cross_compiling" = yes; then |
15413 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15414 | See \`config.log' for more details." >&5 | |
15415 | echo "$as_me: error: cannot run test program while cross compiling | |
15416 | See \`config.log' for more details." >&2;} | |
15417 | { (exit 1); exit 1; }; } | |
15418 | else | |
15419 | cat >conftest.$ac_ext <<_ACEOF | |
15420 | #line $LINENO "configure" | |
15421 | /* confdefs.h. */ | |
15422 | _ACEOF | |
15423 | cat confdefs.h >>conftest.$ac_ext | |
15424 | cat >>conftest.$ac_ext <<_ACEOF | |
15425 | /* end confdefs.h. */ | |
15426 | $ac_includes_default | |
15427 | long longval () { return (long) (sizeof (long)); } | |
15428 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15429 | #include <stdio.h> |
e6cc62c6 VS |
15430 | #include <stdlib.h> |
15431 | int | |
15432 | main () | |
247f5006 | 15433 | { |
e6cc62c6 VS |
15434 | |
15435 | FILE *f = fopen ("conftest.val", "w"); | |
15436 | if (! f) | |
15437 | exit (1); | |
15438 | if (((long) (sizeof (long))) < 0) | |
15439 | { | |
15440 | long i = longval (); | |
15441 | if (i != ((long) (sizeof (long)))) | |
15442 | exit (1); | |
15443 | fprintf (f, "%ld\n", i); | |
15444 | } | |
15445 | else | |
15446 | { | |
15447 | unsigned long i = ulongval (); | |
15448 | if (i != ((long) (sizeof (long)))) | |
15449 | exit (1); | |
15450 | fprintf (f, "%lu\n", i); | |
15451 | } | |
15452 | exit (ferror (f) || fclose (f) != 0); | |
15453 | ||
15454 | ; | |
15455 | return 0; | |
247f5006 | 15456 | } |
e6cc62c6 VS |
15457 | _ACEOF |
15458 | rm -f conftest$ac_exeext | |
15459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15460 | (eval $ac_link) 2>&5 | |
15461 | ac_status=$? | |
15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15465 | (eval $ac_try) 2>&5 | |
15466 | ac_status=$? | |
15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15468 | (exit $ac_status); }; }; then | |
15469 | ac_cv_sizeof_long=`cat conftest.val` | |
15470 | else | |
15471 | echo "$as_me: program exited with status $ac_status" >&5 | |
15472 | echo "$as_me: failed program was:" >&5 | |
15473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15474 | ||
15475 | ( exit $ac_status ) | |
15476 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15477 | See \`config.log' for more details." >&5 | |
15478 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15479 | See \`config.log' for more details." >&2;} | |
15480 | { (exit 1); exit 1; }; } | |
15481 | fi | |
15482 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15483 | fi | |
15484 | fi | |
15485 | rm -f conftest.val | |
247f5006 | 15486 | else |
a0b9e27f | 15487 | ac_cv_sizeof_long=0 |
247f5006 | 15488 | fi |
247f5006 | 15489 | fi |
e6cc62c6 VS |
15490 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15491 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15492 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15493 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15494 | _ACEOF |
247f5006 | 15495 | |
a0b9e27f MB |
15496 | |
15497 | ||
15498 | case "${host}" in | |
15499 | arm-*-linux* ) | |
e6cc62c6 VS |
15500 | echo "$as_me:$LINENO: checking for long long" >&5 |
15501 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15502 | if test "${ac_cv_type_long_long+set}" = set; then | |
15503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15504 | else | |
15505 | cat >conftest.$ac_ext <<_ACEOF | |
15506 | #line $LINENO "configure" | |
15507 | /* confdefs.h. */ | |
15508 | _ACEOF | |
15509 | cat confdefs.h >>conftest.$ac_ext | |
15510 | cat >>conftest.$ac_ext <<_ACEOF | |
15511 | /* end confdefs.h. */ | |
15512 | $ac_includes_default | |
15513 | int | |
15514 | main () | |
15515 | { | |
15516 | if ((long long *) 0) | |
15517 | return 0; | |
15518 | if (sizeof (long long)) | |
15519 | return 0; | |
15520 | ; | |
15521 | return 0; | |
15522 | } | |
15523 | _ACEOF | |
15524 | rm -f conftest.$ac_objext | |
15525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15526 | (eval $ac_compile) 2>&5 | |
15527 | ac_status=$? | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); } && | |
15530 | { ac_try='test -s conftest.$ac_objext' | |
15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15532 | (eval $ac_try) 2>&5 | |
15533 | ac_status=$? | |
15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15535 | (exit $ac_status); }; }; then | |
15536 | ac_cv_type_long_long=yes | |
15537 | else | |
15538 | echo "$as_me: failed program was:" >&5 | |
15539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15540 | ||
15541 | ac_cv_type_long_long=no | |
15542 | fi | |
15543 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15544 | fi | |
15545 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15546 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15547 | ||
15548 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15549 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15550 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15552 | else | |
15553 | if test "$ac_cv_type_long_long" = yes; then | |
15554 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15555 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15556 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15557 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15558 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15559 | # Depending upon the size, compute the lo and hi bounds. |
15560 | cat >conftest.$ac_ext <<_ACEOF | |
15561 | #line $LINENO "configure" | |
15562 | /* confdefs.h. */ | |
15563 | _ACEOF | |
15564 | cat confdefs.h >>conftest.$ac_ext | |
15565 | cat >>conftest.$ac_ext <<_ACEOF | |
15566 | /* end confdefs.h. */ | |
15567 | $ac_includes_default | |
15568 | int | |
15569 | main () | |
15570 | { | |
15571 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15572 | test_array [0] = 0 | |
15573 | ||
15574 | ; | |
15575 | return 0; | |
15576 | } | |
15577 | _ACEOF | |
15578 | rm -f conftest.$ac_objext | |
15579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15580 | (eval $ac_compile) 2>&5 | |
15581 | ac_status=$? | |
15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15583 | (exit $ac_status); } && | |
15584 | { ac_try='test -s conftest.$ac_objext' | |
15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15586 | (eval $ac_try) 2>&5 | |
15587 | ac_status=$? | |
15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15589 | (exit $ac_status); }; }; then | |
15590 | ac_lo=0 ac_mid=0 | |
15591 | while :; do | |
15592 | cat >conftest.$ac_ext <<_ACEOF | |
15593 | #line $LINENO "configure" | |
15594 | /* confdefs.h. */ | |
15595 | _ACEOF | |
15596 | cat confdefs.h >>conftest.$ac_ext | |
15597 | cat >>conftest.$ac_ext <<_ACEOF | |
15598 | /* end confdefs.h. */ | |
15599 | $ac_includes_default | |
15600 | int | |
15601 | main () | |
15602 | { | |
15603 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15604 | test_array [0] = 0 | |
15605 | ||
15606 | ; | |
15607 | return 0; | |
15608 | } | |
15609 | _ACEOF | |
15610 | rm -f conftest.$ac_objext | |
15611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15612 | (eval $ac_compile) 2>&5 | |
15613 | ac_status=$? | |
15614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15615 | (exit $ac_status); } && | |
15616 | { ac_try='test -s conftest.$ac_objext' | |
15617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15618 | (eval $ac_try) 2>&5 | |
15619 | ac_status=$? | |
15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15621 | (exit $ac_status); }; }; then | |
15622 | ac_hi=$ac_mid; break | |
15623 | else | |
15624 | echo "$as_me: failed program was:" >&5 | |
15625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15626 | ||
15627 | ac_lo=`expr $ac_mid + 1` | |
15628 | if test $ac_lo -le $ac_mid; then | |
15629 | ac_lo= ac_hi= | |
15630 | break | |
15631 | fi | |
15632 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15633 | fi | |
15634 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15635 | done | |
15636 | else | |
15637 | echo "$as_me: failed program was:" >&5 | |
15638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15639 | ||
15640 | cat >conftest.$ac_ext <<_ACEOF | |
15641 | #line $LINENO "configure" | |
15642 | /* confdefs.h. */ | |
15643 | _ACEOF | |
15644 | cat confdefs.h >>conftest.$ac_ext | |
15645 | cat >>conftest.$ac_ext <<_ACEOF | |
15646 | /* end confdefs.h. */ | |
15647 | $ac_includes_default | |
15648 | int | |
15649 | main () | |
15650 | { | |
15651 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15652 | test_array [0] = 0 | |
15653 | ||
15654 | ; | |
15655 | return 0; | |
15656 | } | |
15657 | _ACEOF | |
15658 | rm -f conftest.$ac_objext | |
15659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15660 | (eval $ac_compile) 2>&5 | |
15661 | ac_status=$? | |
15662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15663 | (exit $ac_status); } && | |
15664 | { ac_try='test -s conftest.$ac_objext' | |
15665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15666 | (eval $ac_try) 2>&5 | |
15667 | ac_status=$? | |
15668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15669 | (exit $ac_status); }; }; then | |
15670 | ac_hi=-1 ac_mid=-1 | |
15671 | while :; do | |
15672 | cat >conftest.$ac_ext <<_ACEOF | |
15673 | #line $LINENO "configure" | |
15674 | /* confdefs.h. */ | |
15675 | _ACEOF | |
15676 | cat confdefs.h >>conftest.$ac_ext | |
15677 | cat >>conftest.$ac_ext <<_ACEOF | |
15678 | /* end confdefs.h. */ | |
15679 | $ac_includes_default | |
15680 | int | |
15681 | main () | |
15682 | { | |
15683 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15684 | test_array [0] = 0 | |
15685 | ||
15686 | ; | |
15687 | return 0; | |
15688 | } | |
15689 | _ACEOF | |
15690 | rm -f conftest.$ac_objext | |
15691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15692 | (eval $ac_compile) 2>&5 | |
15693 | ac_status=$? | |
15694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15695 | (exit $ac_status); } && | |
15696 | { ac_try='test -s conftest.$ac_objext' | |
15697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15698 | (eval $ac_try) 2>&5 | |
15699 | ac_status=$? | |
15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15701 | (exit $ac_status); }; }; then | |
15702 | ac_lo=$ac_mid; break | |
15703 | else | |
15704 | echo "$as_me: failed program was:" >&5 | |
15705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15706 | ||
15707 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15708 | if test $ac_mid -le $ac_hi; then | |
15709 | ac_lo= ac_hi= | |
15710 | break | |
15711 | fi | |
15712 | ac_mid=`expr 2 '*' $ac_mid` | |
15713 | fi | |
15714 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15715 | done | |
15716 | else | |
15717 | echo "$as_me: failed program was:" >&5 | |
15718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15719 | ||
15720 | ac_lo= ac_hi= | |
15721 | fi | |
15722 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15723 | fi | |
15724 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15725 | # Binary search between lo and hi bounds. | |
15726 | while test "x$ac_lo" != "x$ac_hi"; do | |
15727 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15728 | cat >conftest.$ac_ext <<_ACEOF | |
15729 | #line $LINENO "configure" | |
15730 | /* confdefs.h. */ | |
15731 | _ACEOF | |
15732 | cat confdefs.h >>conftest.$ac_ext | |
15733 | cat >>conftest.$ac_ext <<_ACEOF | |
15734 | /* end confdefs.h. */ | |
15735 | $ac_includes_default | |
15736 | int | |
15737 | main () | |
15738 | { | |
15739 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15740 | test_array [0] = 0 | |
15741 | ||
15742 | ; | |
15743 | return 0; | |
15744 | } | |
15745 | _ACEOF | |
15746 | rm -f conftest.$ac_objext | |
15747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15748 | (eval $ac_compile) 2>&5 | |
15749 | ac_status=$? | |
15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15751 | (exit $ac_status); } && | |
15752 | { ac_try='test -s conftest.$ac_objext' | |
15753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15754 | (eval $ac_try) 2>&5 | |
15755 | ac_status=$? | |
15756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15757 | (exit $ac_status); }; }; then | |
15758 | ac_hi=$ac_mid | |
15759 | else | |
15760 | echo "$as_me: failed program was:" >&5 | |
15761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15762 | ||
15763 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15764 | fi | |
15765 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15766 | done | |
15767 | case $ac_lo in | |
15768 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15769 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15770 | See \`config.log' for more details." >&5 | |
15771 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15772 | See \`config.log' for more details." >&2;} | |
15773 | { (exit 1); exit 1; }; } ;; | |
15774 | esac | |
a0b9e27f | 15775 | else |
e6cc62c6 VS |
15776 | if test "$cross_compiling" = yes; then |
15777 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15778 | See \`config.log' for more details." >&5 | |
15779 | echo "$as_me: error: cannot run test program while cross compiling | |
15780 | See \`config.log' for more details." >&2;} | |
15781 | { (exit 1); exit 1; }; } | |
15782 | else | |
15783 | cat >conftest.$ac_ext <<_ACEOF | |
15784 | #line $LINENO "configure" | |
15785 | /* confdefs.h. */ | |
15786 | _ACEOF | |
15787 | cat confdefs.h >>conftest.$ac_ext | |
15788 | cat >>conftest.$ac_ext <<_ACEOF | |
15789 | /* end confdefs.h. */ | |
15790 | $ac_includes_default | |
15791 | long longval () { return (long) (sizeof (long long)); } | |
15792 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15793 | #include <stdio.h> |
e6cc62c6 VS |
15794 | #include <stdlib.h> |
15795 | int | |
15796 | main () | |
247f5006 | 15797 | { |
e6cc62c6 VS |
15798 | |
15799 | FILE *f = fopen ("conftest.val", "w"); | |
15800 | if (! f) | |
15801 | exit (1); | |
15802 | if (((long) (sizeof (long long))) < 0) | |
15803 | { | |
15804 | long i = longval (); | |
15805 | if (i != ((long) (sizeof (long long)))) | |
15806 | exit (1); | |
15807 | fprintf (f, "%ld\n", i); | |
15808 | } | |
15809 | else | |
15810 | { | |
15811 | unsigned long i = ulongval (); | |
15812 | if (i != ((long) (sizeof (long long)))) | |
15813 | exit (1); | |
15814 | fprintf (f, "%lu\n", i); | |
15815 | } | |
15816 | exit (ferror (f) || fclose (f) != 0); | |
15817 | ||
15818 | ; | |
15819 | return 0; | |
247f5006 | 15820 | } |
e6cc62c6 VS |
15821 | _ACEOF |
15822 | rm -f conftest$ac_exeext | |
15823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15824 | (eval $ac_link) 2>&5 | |
15825 | ac_status=$? | |
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15829 | (eval $ac_try) 2>&5 | |
15830 | ac_status=$? | |
15831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15832 | (exit $ac_status); }; }; then | |
15833 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15834 | else | |
15835 | echo "$as_me: program exited with status $ac_status" >&5 | |
15836 | echo "$as_me: failed program was:" >&5 | |
15837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15838 | ||
15839 | ( exit $ac_status ) | |
15840 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15841 | See \`config.log' for more details." >&5 | |
15842 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15843 | See \`config.log' for more details." >&2;} | |
15844 | { (exit 1); exit 1; }; } | |
15845 | fi | |
15846 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15847 | fi | |
15848 | fi | |
15849 | rm -f conftest.val | |
7b4a847f | 15850 | else |
a0b9e27f | 15851 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15852 | fi |
15853 | fi | |
e6cc62c6 VS |
15854 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15855 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15856 | cat >>confdefs.h <<_ACEOF | |
15857 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15858 | _ACEOF | |
15859 | ||
15860 | ||
15861 | ;; | |
15862 | *-hp-hpux* ) | |
15863 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15864 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15865 | if test "${ac_cv_type_long_long+set}" = set; then | |
15866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15867 | else | |
15868 | cat >conftest.$ac_ext <<_ACEOF | |
15869 | #line $LINENO "configure" | |
15870 | /* confdefs.h. */ | |
15871 | _ACEOF | |
15872 | cat confdefs.h >>conftest.$ac_ext | |
15873 | cat >>conftest.$ac_ext <<_ACEOF | |
15874 | /* end confdefs.h. */ | |
15875 | $ac_includes_default | |
15876 | int | |
15877 | main () | |
15878 | { | |
15879 | if ((long long *) 0) | |
15880 | return 0; | |
15881 | if (sizeof (long long)) | |
15882 | return 0; | |
15883 | ; | |
15884 | return 0; | |
15885 | } | |
15886 | _ACEOF | |
15887 | rm -f conftest.$ac_objext | |
15888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15889 | (eval $ac_compile) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); } && | |
15893 | { ac_try='test -s conftest.$ac_objext' | |
15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15895 | (eval $ac_try) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); }; }; then | |
15899 | ac_cv_type_long_long=yes | |
15900 | else | |
15901 | echo "$as_me: failed program was:" >&5 | |
15902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15903 | ||
15904 | ac_cv_type_long_long=no | |
15905 | fi | |
15906 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15907 | fi | |
15908 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15909 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15910 | ||
15911 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15912 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15913 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15915 | else | |
15916 | if test "$ac_cv_type_long_long" = yes; then | |
15917 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15918 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15919 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15920 | # This bug is HP SR number 8606223364. | |
15921 | if test "$cross_compiling" = yes; then | |
15922 | # Depending upon the size, compute the lo and hi bounds. | |
15923 | cat >conftest.$ac_ext <<_ACEOF | |
15924 | #line $LINENO "configure" | |
15925 | /* confdefs.h. */ | |
15926 | _ACEOF | |
15927 | cat confdefs.h >>conftest.$ac_ext | |
15928 | cat >>conftest.$ac_ext <<_ACEOF | |
15929 | /* end confdefs.h. */ | |
15930 | $ac_includes_default | |
15931 | int | |
15932 | main () | |
15933 | { | |
15934 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15935 | test_array [0] = 0 | |
15936 | ||
15937 | ; | |
15938 | return 0; | |
15939 | } | |
15940 | _ACEOF | |
15941 | rm -f conftest.$ac_objext | |
15942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15943 | (eval $ac_compile) 2>&5 | |
15944 | ac_status=$? | |
15945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15946 | (exit $ac_status); } && | |
15947 | { ac_try='test -s conftest.$ac_objext' | |
15948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15949 | (eval $ac_try) 2>&5 | |
15950 | ac_status=$? | |
15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15952 | (exit $ac_status); }; }; then | |
15953 | ac_lo=0 ac_mid=0 | |
15954 | while :; do | |
15955 | cat >conftest.$ac_ext <<_ACEOF | |
15956 | #line $LINENO "configure" | |
15957 | /* confdefs.h. */ | |
15958 | _ACEOF | |
15959 | cat confdefs.h >>conftest.$ac_ext | |
15960 | cat >>conftest.$ac_ext <<_ACEOF | |
15961 | /* end confdefs.h. */ | |
15962 | $ac_includes_default | |
15963 | int | |
15964 | main () | |
15965 | { | |
15966 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15967 | test_array [0] = 0 | |
8284b0c5 | 15968 | |
e6cc62c6 VS |
15969 | ; |
15970 | return 0; | |
15971 | } | |
15972 | _ACEOF | |
15973 | rm -f conftest.$ac_objext | |
15974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15975 | (eval $ac_compile) 2>&5 | |
15976 | ac_status=$? | |
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15978 | (exit $ac_status); } && | |
15979 | { ac_try='test -s conftest.$ac_objext' | |
15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15981 | (eval $ac_try) 2>&5 | |
15982 | ac_status=$? | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); }; }; then | |
15985 | ac_hi=$ac_mid; break | |
15986 | else | |
15987 | echo "$as_me: failed program was:" >&5 | |
15988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15989 | ||
15990 | ac_lo=`expr $ac_mid + 1` | |
15991 | if test $ac_lo -le $ac_mid; then | |
15992 | ac_lo= ac_hi= | |
15993 | break | |
15994 | fi | |
15995 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 15996 | fi |
e6cc62c6 VS |
15997 | rm -f conftest.$ac_objext conftest.$ac_ext |
15998 | done | |
15999 | else | |
16000 | echo "$as_me: failed program was:" >&5 | |
16001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16002 | ||
16003 | cat >conftest.$ac_ext <<_ACEOF | |
16004 | #line $LINENO "configure" | |
16005 | /* confdefs.h. */ | |
16006 | _ACEOF | |
16007 | cat confdefs.h >>conftest.$ac_ext | |
16008 | cat >>conftest.$ac_ext <<_ACEOF | |
16009 | /* end confdefs.h. */ | |
16010 | $ac_includes_default | |
16011 | int | |
16012 | main () | |
16013 | { | |
16014 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16015 | test_array [0] = 0 | |
a0b9e27f | 16016 | |
e6cc62c6 VS |
16017 | ; |
16018 | return 0; | |
16019 | } | |
16020 | _ACEOF | |
16021 | rm -f conftest.$ac_objext | |
16022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16023 | (eval $ac_compile) 2>&5 | |
16024 | ac_status=$? | |
16025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16026 | (exit $ac_status); } && | |
16027 | { ac_try='test -s conftest.$ac_objext' | |
16028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16029 | (eval $ac_try) 2>&5 | |
16030 | ac_status=$? | |
16031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16032 | (exit $ac_status); }; }; then | |
16033 | ac_hi=-1 ac_mid=-1 | |
16034 | while :; do | |
16035 | cat >conftest.$ac_ext <<_ACEOF | |
16036 | #line $LINENO "configure" | |
16037 | /* confdefs.h. */ | |
16038 | _ACEOF | |
16039 | cat confdefs.h >>conftest.$ac_ext | |
16040 | cat >>conftest.$ac_ext <<_ACEOF | |
16041 | /* end confdefs.h. */ | |
16042 | $ac_includes_default | |
16043 | int | |
16044 | main () | |
16045 | { | |
16046 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16047 | test_array [0] = 0 | |
a0b9e27f | 16048 | |
e6cc62c6 VS |
16049 | ; |
16050 | return 0; | |
16051 | } | |
16052 | _ACEOF | |
16053 | rm -f conftest.$ac_objext | |
16054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16055 | (eval $ac_compile) 2>&5 | |
16056 | ac_status=$? | |
16057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16058 | (exit $ac_status); } && | |
16059 | { ac_try='test -s conftest.$ac_objext' | |
16060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16061 | (eval $ac_try) 2>&5 | |
16062 | ac_status=$? | |
16063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16064 | (exit $ac_status); }; }; then | |
16065 | ac_lo=$ac_mid; break | |
16066 | else | |
16067 | echo "$as_me: failed program was:" >&5 | |
16068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16069 | ||
16070 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16071 | if test $ac_mid -le $ac_hi; then | |
16072 | ac_lo= ac_hi= | |
16073 | break | |
16074 | fi | |
16075 | ac_mid=`expr 2 '*' $ac_mid` | |
16076 | fi | |
16077 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16078 | done | |
8284b0c5 | 16079 | else |
e6cc62c6 VS |
16080 | echo "$as_me: failed program was:" >&5 |
16081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16082 | ||
16083 | ac_lo= ac_hi= | |
16084 | fi | |
16085 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16086 | fi | |
16087 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16088 | # Binary search between lo and hi bounds. | |
16089 | while test "x$ac_lo" != "x$ac_hi"; do | |
16090 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16091 | cat >conftest.$ac_ext <<_ACEOF | |
16092 | #line $LINENO "configure" | |
16093 | /* confdefs.h. */ | |
16094 | _ACEOF | |
16095 | cat confdefs.h >>conftest.$ac_ext | |
16096 | cat >>conftest.$ac_ext <<_ACEOF | |
16097 | /* end confdefs.h. */ | |
16098 | $ac_includes_default | |
16099 | int | |
16100 | main () | |
16101 | { | |
16102 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16103 | test_array [0] = 0 | |
16104 | ||
16105 | ; | |
16106 | return 0; | |
16107 | } | |
16108 | _ACEOF | |
16109 | rm -f conftest.$ac_objext | |
16110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16111 | (eval $ac_compile) 2>&5 | |
16112 | ac_status=$? | |
16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16114 | (exit $ac_status); } && | |
16115 | { ac_try='test -s conftest.$ac_objext' | |
16116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16117 | (eval $ac_try) 2>&5 | |
16118 | ac_status=$? | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); }; }; then | |
16121 | ac_hi=$ac_mid | |
16122 | else | |
16123 | echo "$as_me: failed program was:" >&5 | |
16124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16125 | ||
16126 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16127 | fi | |
16128 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16129 | done | |
16130 | case $ac_lo in | |
16131 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16132 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16133 | See \`config.log' for more details." >&5 | |
16134 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16135 | See \`config.log' for more details." >&2;} | |
16136 | { (exit 1); exit 1; }; } ;; | |
16137 | esac | |
8284b0c5 | 16138 | else |
e6cc62c6 VS |
16139 | if test "$cross_compiling" = yes; then |
16140 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16141 | See \`config.log' for more details." >&5 | |
16142 | echo "$as_me: error: cannot run test program while cross compiling | |
16143 | See \`config.log' for more details." >&2;} | |
16144 | { (exit 1); exit 1; }; } | |
16145 | else | |
16146 | cat >conftest.$ac_ext <<_ACEOF | |
16147 | #line $LINENO "configure" | |
16148 | /* confdefs.h. */ | |
16149 | _ACEOF | |
16150 | cat confdefs.h >>conftest.$ac_ext | |
16151 | cat >>conftest.$ac_ext <<_ACEOF | |
16152 | /* end confdefs.h. */ | |
16153 | $ac_includes_default | |
16154 | long longval () { return (long) (sizeof (long long)); } | |
16155 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16156 | #include <stdio.h> |
e6cc62c6 VS |
16157 | #include <stdlib.h> |
16158 | int | |
16159 | main () | |
8284b0c5 | 16160 | { |
e6cc62c6 VS |
16161 | |
16162 | FILE *f = fopen ("conftest.val", "w"); | |
16163 | if (! f) | |
16164 | exit (1); | |
16165 | if (((long) (sizeof (long long))) < 0) | |
16166 | { | |
16167 | long i = longval (); | |
16168 | if (i != ((long) (sizeof (long long)))) | |
16169 | exit (1); | |
16170 | fprintf (f, "%ld\n", i); | |
16171 | } | |
16172 | else | |
16173 | { | |
16174 | unsigned long i = ulongval (); | |
16175 | if (i != ((long) (sizeof (long long)))) | |
16176 | exit (1); | |
16177 | fprintf (f, "%lu\n", i); | |
16178 | } | |
16179 | exit (ferror (f) || fclose (f) != 0); | |
16180 | ||
16181 | ; | |
16182 | return 0; | |
8284b0c5 | 16183 | } |
e6cc62c6 VS |
16184 | _ACEOF |
16185 | rm -f conftest$ac_exeext | |
16186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16187 | (eval $ac_link) 2>&5 | |
16188 | ac_status=$? | |
16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16192 | (eval $ac_try) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; }; then | |
16196 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16197 | else | |
16198 | echo "$as_me: program exited with status $ac_status" >&5 | |
16199 | echo "$as_me: failed program was:" >&5 | |
16200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16201 | ||
16202 | ( exit $ac_status ) | |
16203 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16204 | See \`config.log' for more details." >&5 | |
16205 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16206 | See \`config.log' for more details." >&2;} | |
16207 | { (exit 1); exit 1; }; } | |
16208 | fi | |
16209 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16210 | fi | |
16211 | fi | |
16212 | rm -f conftest.val | |
5c6fa7d2 RR |
16213 | else |
16214 | ac_cv_sizeof_long_long=0 | |
52127426 | 16215 | fi |
4f57cf11 | 16216 | fi |
e6cc62c6 VS |
16217 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16218 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16219 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16220 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16221 | _ACEOF |
4f57cf11 GD |
16222 | |
16223 | ||
16224 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16225 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16226 | fi | |
16227 | ;; | |
16228 | * ) | |
e6cc62c6 VS |
16229 | echo "$as_me:$LINENO: checking for long long" >&5 |
16230 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16231 | if test "${ac_cv_type_long_long+set}" = set; then | |
16232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16233 | else | |
16234 | cat >conftest.$ac_ext <<_ACEOF | |
16235 | #line $LINENO "configure" | |
16236 | /* confdefs.h. */ | |
16237 | _ACEOF | |
16238 | cat confdefs.h >>conftest.$ac_ext | |
16239 | cat >>conftest.$ac_ext <<_ACEOF | |
16240 | /* end confdefs.h. */ | |
16241 | $ac_includes_default | |
16242 | int | |
16243 | main () | |
16244 | { | |
16245 | if ((long long *) 0) | |
16246 | return 0; | |
16247 | if (sizeof (long long)) | |
16248 | return 0; | |
16249 | ; | |
16250 | return 0; | |
16251 | } | |
16252 | _ACEOF | |
16253 | rm -f conftest.$ac_objext | |
16254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16255 | (eval $ac_compile) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); } && | |
16259 | { ac_try='test -s conftest.$ac_objext' | |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); }; }; then | |
16265 | ac_cv_type_long_long=yes | |
16266 | else | |
16267 | echo "$as_me: failed program was:" >&5 | |
16268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16269 | ||
16270 | ac_cv_type_long_long=no | |
16271 | fi | |
16272 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16273 | fi | |
16274 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16275 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16276 | ||
16277 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16278 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16279 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16281 | else | |
16282 | if test "$ac_cv_type_long_long" = yes; then | |
16283 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16284 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16285 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16286 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16287 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16288 | # Depending upon the size, compute the lo and hi bounds. |
16289 | cat >conftest.$ac_ext <<_ACEOF | |
16290 | #line $LINENO "configure" | |
16291 | /* confdefs.h. */ | |
16292 | _ACEOF | |
16293 | cat confdefs.h >>conftest.$ac_ext | |
16294 | cat >>conftest.$ac_ext <<_ACEOF | |
16295 | /* end confdefs.h. */ | |
16296 | $ac_includes_default | |
16297 | int | |
16298 | main () | |
16299 | { | |
16300 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16301 | test_array [0] = 0 | |
16302 | ||
16303 | ; | |
16304 | return 0; | |
16305 | } | |
16306 | _ACEOF | |
16307 | rm -f conftest.$ac_objext | |
16308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16309 | (eval $ac_compile) 2>&5 | |
16310 | ac_status=$? | |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16312 | (exit $ac_status); } && | |
16313 | { ac_try='test -s conftest.$ac_objext' | |
16314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16315 | (eval $ac_try) 2>&5 | |
16316 | ac_status=$? | |
16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16318 | (exit $ac_status); }; }; then | |
16319 | ac_lo=0 ac_mid=0 | |
16320 | while :; do | |
16321 | cat >conftest.$ac_ext <<_ACEOF | |
16322 | #line $LINENO "configure" | |
16323 | /* confdefs.h. */ | |
16324 | _ACEOF | |
16325 | cat confdefs.h >>conftest.$ac_ext | |
16326 | cat >>conftest.$ac_ext <<_ACEOF | |
16327 | /* end confdefs.h. */ | |
16328 | $ac_includes_default | |
16329 | int | |
16330 | main () | |
16331 | { | |
16332 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16333 | test_array [0] = 0 | |
16334 | ||
16335 | ; | |
16336 | return 0; | |
16337 | } | |
16338 | _ACEOF | |
16339 | rm -f conftest.$ac_objext | |
16340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16341 | (eval $ac_compile) 2>&5 | |
16342 | ac_status=$? | |
16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16344 | (exit $ac_status); } && | |
16345 | { ac_try='test -s conftest.$ac_objext' | |
16346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16347 | (eval $ac_try) 2>&5 | |
16348 | ac_status=$? | |
16349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16350 | (exit $ac_status); }; }; then | |
16351 | ac_hi=$ac_mid; break | |
16352 | else | |
16353 | echo "$as_me: failed program was:" >&5 | |
16354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16355 | ||
16356 | ac_lo=`expr $ac_mid + 1` | |
16357 | if test $ac_lo -le $ac_mid; then | |
16358 | ac_lo= ac_hi= | |
16359 | break | |
16360 | fi | |
16361 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16362 | fi | |
16363 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16364 | done | |
16365 | else | |
16366 | echo "$as_me: failed program was:" >&5 | |
16367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16368 | ||
16369 | cat >conftest.$ac_ext <<_ACEOF | |
16370 | #line $LINENO "configure" | |
16371 | /* confdefs.h. */ | |
16372 | _ACEOF | |
16373 | cat confdefs.h >>conftest.$ac_ext | |
16374 | cat >>conftest.$ac_ext <<_ACEOF | |
16375 | /* end confdefs.h. */ | |
16376 | $ac_includes_default | |
16377 | int | |
16378 | main () | |
16379 | { | |
16380 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16381 | test_array [0] = 0 | |
16382 | ||
16383 | ; | |
16384 | return 0; | |
16385 | } | |
16386 | _ACEOF | |
16387 | rm -f conftest.$ac_objext | |
16388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16389 | (eval $ac_compile) 2>&5 | |
16390 | ac_status=$? | |
16391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16392 | (exit $ac_status); } && | |
16393 | { ac_try='test -s conftest.$ac_objext' | |
16394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16395 | (eval $ac_try) 2>&5 | |
16396 | ac_status=$? | |
16397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16398 | (exit $ac_status); }; }; then | |
16399 | ac_hi=-1 ac_mid=-1 | |
16400 | while :; do | |
16401 | cat >conftest.$ac_ext <<_ACEOF | |
16402 | #line $LINENO "configure" | |
16403 | /* confdefs.h. */ | |
16404 | _ACEOF | |
16405 | cat confdefs.h >>conftest.$ac_ext | |
16406 | cat >>conftest.$ac_ext <<_ACEOF | |
16407 | /* end confdefs.h. */ | |
16408 | $ac_includes_default | |
16409 | int | |
16410 | main () | |
16411 | { | |
16412 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16413 | test_array [0] = 0 | |
16414 | ||
16415 | ; | |
16416 | return 0; | |
16417 | } | |
16418 | _ACEOF | |
16419 | rm -f conftest.$ac_objext | |
16420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16421 | (eval $ac_compile) 2>&5 | |
16422 | ac_status=$? | |
16423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16424 | (exit $ac_status); } && | |
16425 | { ac_try='test -s conftest.$ac_objext' | |
16426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16427 | (eval $ac_try) 2>&5 | |
16428 | ac_status=$? | |
16429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16430 | (exit $ac_status); }; }; then | |
16431 | ac_lo=$ac_mid; break | |
16432 | else | |
16433 | echo "$as_me: failed program was:" >&5 | |
16434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16435 | ||
16436 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16437 | if test $ac_mid -le $ac_hi; then | |
16438 | ac_lo= ac_hi= | |
16439 | break | |
16440 | fi | |
16441 | ac_mid=`expr 2 '*' $ac_mid` | |
16442 | fi | |
16443 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16444 | done | |
4f57cf11 | 16445 | else |
e6cc62c6 VS |
16446 | echo "$as_me: failed program was:" >&5 |
16447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16448 | ||
16449 | ac_lo= ac_hi= | |
16450 | fi | |
16451 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16452 | fi | |
16453 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16454 | # Binary search between lo and hi bounds. | |
16455 | while test "x$ac_lo" != "x$ac_hi"; do | |
16456 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16457 | cat >conftest.$ac_ext <<_ACEOF | |
16458 | #line $LINENO "configure" | |
16459 | /* confdefs.h. */ | |
16460 | _ACEOF | |
16461 | cat confdefs.h >>conftest.$ac_ext | |
16462 | cat >>conftest.$ac_ext <<_ACEOF | |
16463 | /* end confdefs.h. */ | |
16464 | $ac_includes_default | |
16465 | int | |
16466 | main () | |
16467 | { | |
16468 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16469 | test_array [0] = 0 | |
16470 | ||
16471 | ; | |
16472 | return 0; | |
16473 | } | |
16474 | _ACEOF | |
16475 | rm -f conftest.$ac_objext | |
16476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16477 | (eval $ac_compile) 2>&5 | |
16478 | ac_status=$? | |
16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16480 | (exit $ac_status); } && | |
16481 | { ac_try='test -s conftest.$ac_objext' | |
16482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16483 | (eval $ac_try) 2>&5 | |
16484 | ac_status=$? | |
16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16486 | (exit $ac_status); }; }; then | |
16487 | ac_hi=$ac_mid | |
16488 | else | |
16489 | echo "$as_me: failed program was:" >&5 | |
16490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16491 | ||
16492 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16493 | fi | |
16494 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16495 | done | |
16496 | case $ac_lo in | |
16497 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16498 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16499 | See \`config.log' for more details." >&5 | |
16500 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16501 | See \`config.log' for more details." >&2;} | |
16502 | { (exit 1); exit 1; }; } ;; | |
16503 | esac | |
16504 | else | |
16505 | if test "$cross_compiling" = yes; then | |
16506 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16507 | See \`config.log' for more details." >&5 | |
16508 | echo "$as_me: error: cannot run test program while cross compiling | |
16509 | See \`config.log' for more details." >&2;} | |
16510 | { (exit 1); exit 1; }; } | |
16511 | else | |
16512 | cat >conftest.$ac_ext <<_ACEOF | |
16513 | #line $LINENO "configure" | |
16514 | /* confdefs.h. */ | |
16515 | _ACEOF | |
16516 | cat confdefs.h >>conftest.$ac_ext | |
16517 | cat >>conftest.$ac_ext <<_ACEOF | |
16518 | /* end confdefs.h. */ | |
16519 | $ac_includes_default | |
16520 | long longval () { return (long) (sizeof (long long)); } | |
16521 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16522 | #include <stdio.h> |
e6cc62c6 VS |
16523 | #include <stdlib.h> |
16524 | int | |
16525 | main () | |
4f57cf11 | 16526 | { |
e6cc62c6 VS |
16527 | |
16528 | FILE *f = fopen ("conftest.val", "w"); | |
16529 | if (! f) | |
16530 | exit (1); | |
16531 | if (((long) (sizeof (long long))) < 0) | |
16532 | { | |
16533 | long i = longval (); | |
16534 | if (i != ((long) (sizeof (long long)))) | |
16535 | exit (1); | |
16536 | fprintf (f, "%ld\n", i); | |
16537 | } | |
16538 | else | |
16539 | { | |
16540 | unsigned long i = ulongval (); | |
16541 | if (i != ((long) (sizeof (long long)))) | |
16542 | exit (1); | |
16543 | fprintf (f, "%lu\n", i); | |
16544 | } | |
16545 | exit (ferror (f) || fclose (f) != 0); | |
16546 | ||
16547 | ; | |
16548 | return 0; | |
4f57cf11 | 16549 | } |
e6cc62c6 VS |
16550 | _ACEOF |
16551 | rm -f conftest$ac_exeext | |
16552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16553 | (eval $ac_link) 2>&5 | |
16554 | ac_status=$? | |
16555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16558 | (eval $ac_try) 2>&5 | |
16559 | ac_status=$? | |
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16561 | (exit $ac_status); }; }; then | |
16562 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16563 | else | |
16564 | echo "$as_me: program exited with status $ac_status" >&5 | |
16565 | echo "$as_me: failed program was:" >&5 | |
16566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16567 | ||
16568 | ( exit $ac_status ) | |
16569 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16570 | See \`config.log' for more details." >&5 | |
16571 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16572 | See \`config.log' for more details." >&2;} | |
16573 | { (exit 1); exit 1; }; } | |
16574 | fi | |
16575 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16576 | fi | |
16577 | fi | |
16578 | rm -f conftest.val | |
4f57cf11 | 16579 | else |
4f57cf11 GD |
16580 | ac_cv_sizeof_long_long=0 |
16581 | fi | |
7b4a847f | 16582 | fi |
e6cc62c6 VS |
16583 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16584 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16585 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16586 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16587 | _ACEOF |
9e691f46 | 16588 | |
8284b0c5 | 16589 | |
21d1c967 GD |
16590 | esac |
16591 | ||
e6cc62c6 VS |
16592 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16593 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16594 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16596 | else |
e6cc62c6 | 16597 | |
21d1c967 | 16598 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16599 | |
2b5f62a0 VZ |
16600 | case "${host}" in |
16601 | *-pc-msdosdjgpp ) | |
16602 | wx_cv_sizeof_wchar_t=0 | |
16603 | ;; | |
16604 | * ) | |
16605 | wx_cv_sizeof_wchar_t=4 | |
16606 | ;; | |
16607 | esac | |
e6cc62c6 VS |
16608 | |
16609 | ||
6f72b082 | 16610 | else |
e6cc62c6 VS |
16611 | cat >conftest.$ac_ext <<_ACEOF |
16612 | #line $LINENO "configure" | |
16613 | /* confdefs.h. */ | |
16614 | _ACEOF | |
16615 | cat confdefs.h >>conftest.$ac_ext | |
16616 | cat >>conftest.$ac_ext <<_ACEOF | |
16617 | /* end confdefs.h. */ | |
21d1c967 | 16618 | |
2b5f62a0 VZ |
16619 | /* DJGPP only has fake wchar_t: */ |
16620 | #ifdef __DJGPP__ | |
16621 | # error "fake wchar_t" | |
16622 | #endif | |
21d1c967 GD |
16623 | #ifdef HAVE_WCHAR_H |
16624 | # ifdef __CYGWIN__ | |
16625 | # include <stddef.h> | |
16626 | # endif | |
16627 | # include <wchar.h> | |
16628 | #endif | |
16629 | #ifdef HAVE_STDLIB_H | |
16630 | # include <stdlib.h> | |
16631 | #endif | |
16632 | #include <stdio.h> | |
16633 | int main() | |
16634 | { | |
16635 | FILE *f=fopen("conftestval", "w"); | |
16636 | if (!f) exit(1); | |
16637 | fprintf(f, "%i", sizeof(wchar_t)); | |
16638 | exit(0); | |
16639 | } | |
e6cc62c6 VS |
16640 | |
16641 | _ACEOF | |
16642 | rm -f conftest$ac_exeext | |
16643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16644 | (eval $ac_link) 2>&5 | |
16645 | ac_status=$? | |
16646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16649 | (eval $ac_try) 2>&5 | |
16650 | ac_status=$? | |
16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16652 | (exit $ac_status); }; }; then | |
21d1c967 | 16653 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16654 | else |
e6cc62c6 VS |
16655 | echo "$as_me: program exited with status $ac_status" >&5 |
16656 | echo "$as_me: failed program was:" >&5 | |
16657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16658 | ||
16659 | ( exit $ac_status ) | |
16660 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16661 | fi |
e6cc62c6 | 16662 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16663 | fi |
6f72b082 | 16664 | |
3f345b47 | 16665 | fi |
e6cc62c6 VS |
16666 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16667 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16668 | |
e6cc62c6 | 16669 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16670 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16671 | _ACEOF |
90dd450c | 16672 | |
8284b0c5 | 16673 | |
21d1c967 GD |
16674 | # Check whether --enable-largefile or --disable-largefile was given. |
16675 | if test "${enable_largefile+set}" = set; then | |
16676 | enableval="$enable_largefile" | |
3f345b47 | 16677 | |
e6cc62c6 | 16678 | fi; |
21d1c967 GD |
16679 | if test "$enable_largefile" != no; then |
16680 | wx_largefile=no | |
e6cc62c6 VS |
16681 | |
16682 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16683 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16684 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16686 | else | |
16687 | ||
16688 | cat >conftest.$ac_ext <<_ACEOF | |
16689 | #line $LINENO "configure" | |
16690 | /* confdefs.h. */ | |
16691 | _ACEOF | |
16692 | cat confdefs.h >>conftest.$ac_ext | |
16693 | cat >>conftest.$ac_ext <<_ACEOF | |
16694 | /* end confdefs.h. */ | |
21d1c967 GD |
16695 | #define _FILE_OFFSET_BITS 64 |
16696 | #include <sys/types.h> | |
e6cc62c6 VS |
16697 | int |
16698 | main () | |
16699 | { | |
21d1c967 GD |
16700 | typedef struct { |
16701 | unsigned int field: sizeof(off_t) == 8; | |
16702 | } wxlf; | |
16703 | ||
e6cc62c6 VS |
16704 | ; |
16705 | return 0; | |
16706 | } | |
16707 | _ACEOF | |
16708 | rm -f conftest.$ac_objext | |
16709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16710 | (eval $ac_compile) 2>&5 | |
16711 | ac_status=$? | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); } && | |
16714 | { ac_try='test -s conftest.$ac_objext' | |
16715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16716 | (eval $ac_try) 2>&5 | |
16717 | ac_status=$? | |
16718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16719 | (exit $ac_status); }; }; then | |
21d1c967 | 16720 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16721 | else |
e6cc62c6 VS |
16722 | echo "$as_me: failed program was:" >&5 |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16724 | ||
16725 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16726 | fi |
e6cc62c6 VS |
16727 | rm -f conftest.$ac_objext conftest.$ac_ext |
16728 | ||
a0b9e27f | 16729 | |
e6cc62c6 VS |
16730 | fi |
16731 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16732 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16733 | |
16734 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16735 | wx_largefile=yes | |
e6cc62c6 | 16736 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16737 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16738 | _ACEOF |
21d1c967 GD |
16739 | |
16740 | fi | |
16741 | ||
16742 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16743 | |
16744 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16745 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16746 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16748 | else | |
16749 | ||
16750 | cat >conftest.$ac_ext <<_ACEOF | |
16751 | #line $LINENO "configure" | |
16752 | /* confdefs.h. */ | |
16753 | _ACEOF | |
16754 | cat confdefs.h >>conftest.$ac_ext | |
16755 | cat >>conftest.$ac_ext <<_ACEOF | |
16756 | /* end confdefs.h. */ | |
21d1c967 GD |
16757 | #define _LARGE_FILES 1 |
16758 | #include <sys/types.h> | |
e6cc62c6 VS |
16759 | int |
16760 | main () | |
16761 | { | |
21d1c967 GD |
16762 | typedef struct { |
16763 | unsigned int field: sizeof(off_t) == 8; | |
16764 | } wxlf; | |
16765 | ||
e6cc62c6 VS |
16766 | ; |
16767 | return 0; | |
16768 | } | |
16769 | _ACEOF | |
16770 | rm -f conftest.$ac_objext | |
16771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16772 | (eval $ac_compile) 2>&5 | |
16773 | ac_status=$? | |
16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16775 | (exit $ac_status); } && | |
16776 | { ac_try='test -s conftest.$ac_objext' | |
16777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16778 | (eval $ac_try) 2>&5 | |
16779 | ac_status=$? | |
16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16781 | (exit $ac_status); }; }; then | |
21d1c967 | 16782 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16783 | else |
e6cc62c6 VS |
16784 | echo "$as_me: failed program was:" >&5 |
16785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16786 | ||
16787 | ac_cv_sys_large_files=no | |
247f5006 | 16788 | fi |
e6cc62c6 | 16789 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16790 | |
e6cc62c6 VS |
16791 | |
16792 | fi | |
16793 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16794 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16795 | |
21d1c967 GD |
16796 | if test "$ac_cv_sys_large_files" != no; then |
16797 | wx_largefile=yes | |
e6cc62c6 | 16798 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16799 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16800 | _ACEOF |
90dd450c | 16801 | |
90dd450c VZ |
16802 | fi |
16803 | ||
90dd450c | 16804 | fi |
90dd450c | 16805 | |
e6cc62c6 VS |
16806 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16807 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16808 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16809 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16810 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16811 | _ACEOF |
90dd450c | 16812 | |
90dd450c | 16813 | fi |
e6cc62c6 VS |
16814 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16815 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16816 | fi |
90dd450c | 16817 | |
8284b0c5 | 16818 | |
f02444d0 | 16819 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16820 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16821 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16822 | else |
e26c13cf | 16823 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16824 | fi |
e26c13cf | 16825 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16826 | fi |
16827 | ||
e6cc62c6 VS |
16828 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16829 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16830 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16832 | else |
21d1c967 GD |
16833 | ac_cv_c_bigendian=unknown |
16834 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16835 | cat >conftest.$ac_ext <<_ACEOF |
16836 | #line $LINENO "configure" | |
16837 | /* confdefs.h. */ | |
16838 | _ACEOF | |
16839 | cat confdefs.h >>conftest.$ac_ext | |
16840 | cat >>conftest.$ac_ext <<_ACEOF | |
16841 | /* end confdefs.h. */ | |
21d1c967 GD |
16842 | #include <sys/types.h> |
16843 | #include <sys/param.h> | |
e6cc62c6 VS |
16844 | int |
16845 | main () | |
16846 | { | |
21d1c967 GD |
16847 | |
16848 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16849 | bogus endian macros | |
16850 | #endif | |
e6cc62c6 VS |
16851 | ; |
16852 | return 0; | |
16853 | } | |
16854 | _ACEOF | |
16855 | rm -f conftest.$ac_objext | |
16856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16857 | (eval $ac_compile) 2>&5 | |
16858 | ac_status=$? | |
16859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16860 | (exit $ac_status); } && | |
16861 | { ac_try='test -s conftest.$ac_objext' | |
16862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16863 | (eval $ac_try) 2>&5 | |
16864 | ac_status=$? | |
16865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16866 | (exit $ac_status); }; }; then | |
21d1c967 | 16867 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16868 | cat >conftest.$ac_ext <<_ACEOF |
16869 | #line $LINENO "configure" | |
16870 | /* confdefs.h. */ | |
16871 | _ACEOF | |
16872 | cat confdefs.h >>conftest.$ac_ext | |
16873 | cat >>conftest.$ac_ext <<_ACEOF | |
16874 | /* end confdefs.h. */ | |
21d1c967 GD |
16875 | #include <sys/types.h> |
16876 | #include <sys/param.h> | |
e6cc62c6 VS |
16877 | int |
16878 | main () | |
16879 | { | |
21d1c967 GD |
16880 | |
16881 | #if BYTE_ORDER != BIG_ENDIAN | |
16882 | not big endian | |
16883 | #endif | |
e6cc62c6 VS |
16884 | ; |
16885 | return 0; | |
16886 | } | |
16887 | _ACEOF | |
16888 | rm -f conftest.$ac_objext | |
16889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16890 | (eval $ac_compile) 2>&5 | |
16891 | ac_status=$? | |
16892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16893 | (exit $ac_status); } && | |
16894 | { ac_try='test -s conftest.$ac_objext' | |
16895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16896 | (eval $ac_try) 2>&5 | |
16897 | ac_status=$? | |
16898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16899 | (exit $ac_status); }; }; then | |
21d1c967 | 16900 | ac_cv_c_bigendian=yes |
3f345b47 | 16901 | else |
e6cc62c6 VS |
16902 | echo "$as_me: failed program was:" >&5 |
16903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16904 | ||
16905 | ac_cv_c_bigendian=no | |
3f345b47 | 16906 | fi |
e6cc62c6 | 16907 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16908 | else |
e6cc62c6 VS |
16909 | echo "$as_me: failed program was:" >&5 |
16910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16911 | ||
3f345b47 | 16912 | fi |
e6cc62c6 | 16913 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16914 | if test $ac_cv_c_bigendian = unknown; then |
16915 | if test "$cross_compiling" = yes; then | |
16916 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16917 | else |
e6cc62c6 VS |
16918 | cat >conftest.$ac_ext <<_ACEOF |
16919 | #line $LINENO "configure" | |
16920 | /* confdefs.h. */ | |
16921 | _ACEOF | |
16922 | cat confdefs.h >>conftest.$ac_ext | |
16923 | cat >>conftest.$ac_ext <<_ACEOF | |
16924 | /* end confdefs.h. */ | |
21d1c967 GD |
16925 | main () { |
16926 | /* Are we little or big endian? From Harbison&Steele. */ | |
16927 | union | |
16928 | { | |
16929 | long l; | |
16930 | char c[sizeof (long)]; | |
16931 | } u; | |
16932 | u.l = 1; | |
16933 | exit (u.c[sizeof (long) - 1] == 1); | |
16934 | } | |
e6cc62c6 VS |
16935 | _ACEOF |
16936 | rm -f conftest$ac_exeext | |
16937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16938 | (eval $ac_link) 2>&5 | |
16939 | ac_status=$? | |
16940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; }; then | |
21d1c967 | 16947 | ac_cv_c_bigendian=no |
3f345b47 | 16948 | else |
e6cc62c6 VS |
16949 | echo "$as_me: program exited with status $ac_status" >&5 |
16950 | echo "$as_me: failed program was:" >&5 | |
16951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16952 | ||
16953 | ( exit $ac_status ) | |
16954 | ac_cv_c_bigendian=yes | |
247f5006 | 16955 | fi |
e6cc62c6 | 16956 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 16957 | fi |
3f345b47 | 16958 | fi |
8168de4c | 16959 | fi |
e6cc62c6 VS |
16960 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
16961 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 16962 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
16963 | { 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 |
16964 | 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;} | |
247f5006 VZ |
16965 | fi |
16966 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 16967 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 16968 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 16969 | _ACEOF |
247f5006 VZ |
16970 | |
16971 | fi | |
16972 | ||
16973 | ||
e6cc62c6 VS |
16974 | |
16975 | ac_ext=cc | |
16976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16977 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16978 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16979 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16980 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16981 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 16982 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
16983 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
16984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16985 | else | |
16986 | # Double quotes because CXXCPP needs to be expanded | |
16987 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16988 | do | |
16989 | ac_preproc_ok=false | |
16990 | for ac_cxx_preproc_warn_flag in '' yes | |
16991 | do | |
16992 | # Use a header file that comes with gcc, so configuring glibc | |
16993 | # with a fresh cross-compiler works. | |
16994 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16995 | # <limits.h> exists even on freestanding compilers. | |
16996 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16997 | # not just through cpp. "Syntax error" is here to catch this case. | |
16998 | cat >conftest.$ac_ext <<_ACEOF | |
16999 | #line $LINENO "configure" | |
17000 | /* confdefs.h. */ | |
17001 | _ACEOF | |
17002 | cat confdefs.h >>conftest.$ac_ext | |
17003 | cat >>conftest.$ac_ext <<_ACEOF | |
17004 | /* end confdefs.h. */ | |
17005 | #ifdef __STDC__ | |
17006 | # include <limits.h> | |
17007 | #else | |
17008 | # include <assert.h> | |
17009 | #endif | |
17010 | Syntax error | |
17011 | _ACEOF | |
17012 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17013 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17014 | ac_status=$? | |
17015 | grep -v '^ *+' conftest.er1 >conftest.err | |
17016 | rm -f conftest.er1 | |
17017 | cat conftest.err >&5 | |
17018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17019 | (exit $ac_status); } >/dev/null; then | |
17020 | if test -s conftest.err; then | |
17021 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17022 | else | |
17023 | ac_cpp_err= | |
17024 | fi | |
247f5006 | 17025 | else |
e6cc62c6 VS |
17026 | ac_cpp_err=yes |
17027 | fi | |
17028 | if test -z "$ac_cpp_err"; then | |
17029 | : | |
17030 | else | |
17031 | echo "$as_me: failed program was:" >&5 | |
17032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17033 | ||
17034 | # Broken: fails on valid input. | |
17035 | continue | |
17036 | fi | |
17037 | rm -f conftest.err conftest.$ac_ext | |
17038 | ||
17039 | # OK, works on sane cases. Now check whether non-existent headers | |
17040 | # can be detected and how. | |
17041 | cat >conftest.$ac_ext <<_ACEOF | |
17042 | #line $LINENO "configure" | |
17043 | /* confdefs.h. */ | |
17044 | _ACEOF | |
17045 | cat confdefs.h >>conftest.$ac_ext | |
17046 | cat >>conftest.$ac_ext <<_ACEOF | |
17047 | /* end confdefs.h. */ | |
17048 | #include <ac_nonexistent.h> | |
17049 | _ACEOF | |
17050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17052 | ac_status=$? | |
17053 | grep -v '^ *+' conftest.er1 >conftest.err | |
17054 | rm -f conftest.er1 | |
17055 | cat conftest.err >&5 | |
17056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17057 | (exit $ac_status); } >/dev/null; then | |
17058 | if test -s conftest.err; then | |
17059 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17060 | else | |
17061 | ac_cpp_err= | |
17062 | fi | |
17063 | else | |
17064 | ac_cpp_err=yes | |
17065 | fi | |
17066 | if test -z "$ac_cpp_err"; then | |
17067 | # Broken: success on invalid input. | |
17068 | continue | |
17069 | else | |
17070 | echo "$as_me: failed program was:" >&5 | |
17071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17072 | ||
17073 | # Passes both tests. | |
17074 | ac_preproc_ok=: | |
17075 | break | |
17076 | fi | |
17077 | rm -f conftest.err conftest.$ac_ext | |
17078 | ||
17079 | done | |
17080 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17081 | rm -f conftest.err conftest.$ac_ext | |
17082 | if $ac_preproc_ok; then | |
17083 | break | |
17084 | fi | |
17085 | ||
17086 | done | |
17087 | ac_cv_prog_CXXCPP=$CXXCPP | |
17088 | ||
17089 | fi | |
17090 | CXXCPP=$ac_cv_prog_CXXCPP | |
17091 | else | |
17092 | ac_cv_prog_CXXCPP=$CXXCPP | |
17093 | fi | |
17094 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17095 | echo "${ECHO_T}$CXXCPP" >&6 | |
17096 | ac_preproc_ok=false | |
17097 | for ac_cxx_preproc_warn_flag in '' yes | |
17098 | do | |
17099 | # Use a header file that comes with gcc, so configuring glibc | |
17100 | # with a fresh cross-compiler works. | |
17101 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17102 | # <limits.h> exists even on freestanding compilers. | |
17103 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17104 | # not just through cpp. "Syntax error" is here to catch this case. | |
17105 | cat >conftest.$ac_ext <<_ACEOF | |
17106 | #line $LINENO "configure" | |
17107 | /* confdefs.h. */ | |
17108 | _ACEOF | |
17109 | cat confdefs.h >>conftest.$ac_ext | |
17110 | cat >>conftest.$ac_ext <<_ACEOF | |
17111 | /* end confdefs.h. */ | |
17112 | #ifdef __STDC__ | |
17113 | # include <limits.h> | |
17114 | #else | |
17115 | # include <assert.h> | |
17116 | #endif | |
17117 | Syntax error | |
17118 | _ACEOF | |
17119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17121 | ac_status=$? | |
17122 | grep -v '^ *+' conftest.er1 >conftest.err | |
17123 | rm -f conftest.er1 | |
17124 | cat conftest.err >&5 | |
17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17126 | (exit $ac_status); } >/dev/null; then | |
17127 | if test -s conftest.err; then | |
17128 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17129 | else | |
17130 | ac_cpp_err= | |
17131 | fi | |
17132 | else | |
17133 | ac_cpp_err=yes | |
17134 | fi | |
17135 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17136 | : |
698dcdb6 | 17137 | else |
e6cc62c6 VS |
17138 | echo "$as_me: failed program was:" >&5 |
17139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17140 | ||
17141 | # Broken: fails on valid input. | |
17142 | continue | |
17143 | fi | |
17144 | rm -f conftest.err conftest.$ac_ext | |
17145 | ||
17146 | # OK, works on sane cases. Now check whether non-existent headers | |
17147 | # can be detected and how. | |
17148 | cat >conftest.$ac_ext <<_ACEOF | |
17149 | #line $LINENO "configure" | |
17150 | /* confdefs.h. */ | |
17151 | _ACEOF | |
17152 | cat confdefs.h >>conftest.$ac_ext | |
17153 | cat >>conftest.$ac_ext <<_ACEOF | |
17154 | /* end confdefs.h. */ | |
17155 | #include <ac_nonexistent.h> | |
17156 | _ACEOF | |
17157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17159 | ac_status=$? | |
17160 | grep -v '^ *+' conftest.er1 >conftest.err | |
17161 | rm -f conftest.er1 | |
17162 | cat conftest.err >&5 | |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17164 | (exit $ac_status); } >/dev/null; then | |
17165 | if test -s conftest.err; then | |
17166 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17167 | else | |
17168 | ac_cpp_err= | |
17169 | fi | |
17170 | else | |
17171 | ac_cpp_err=yes | |
247f5006 | 17172 | fi |
e6cc62c6 VS |
17173 | if test -z "$ac_cpp_err"; then |
17174 | # Broken: success on invalid input. | |
17175 | continue | |
17176 | else | |
17177 | echo "$as_me: failed program was:" >&5 | |
17178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17179 | ||
17180 | # Passes both tests. | |
17181 | ac_preproc_ok=: | |
17182 | break | |
328a083c | 17183 | fi |
e6cc62c6 VS |
17184 | rm -f conftest.err conftest.$ac_ext |
17185 | ||
17186 | done | |
17187 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17188 | rm -f conftest.err conftest.$ac_ext | |
17189 | if $ac_preproc_ok; then | |
17190 | : | |
17191 | else | |
17192 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17193 | See \`config.log' for more details." >&5 | |
17194 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17195 | See \`config.log' for more details." >&2;} | |
17196 | { (exit 1); exit 1; }; } | |
90dd450c | 17197 | fi |
e6cc62c6 VS |
17198 | |
17199 | ac_ext=cc | |
17200 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17204 | ||
1e6feb95 | 17205 | |
1725144d | 17206 | |
21d1c967 | 17207 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17208 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17209 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17210 | _ACEOF |
ab9b9eab | 17211 | |
21d1c967 | 17212 | else |
e6cc62c6 VS |
17213 | |
17214 | ||
17215 | ac_ext=cc | |
5c6fa7d2 | 17216 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17217 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17218 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17219 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17220 | ||
52127426 | 17221 | |
247f5006 | 17222 | |
e6cc62c6 | 17223 | for ac_header in iostream |
21d1c967 | 17224 | do |
e6cc62c6 VS |
17225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17226 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17231 | fi | |
17232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17233 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17234 | else | |
17235 | # Is the header compilable? | |
17236 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17237 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17238 | cat >conftest.$ac_ext <<_ACEOF | |
17239 | #line $LINENO "configure" | |
17240 | /* confdefs.h. */ | |
17241 | _ACEOF | |
17242 | cat confdefs.h >>conftest.$ac_ext | |
17243 | cat >>conftest.$ac_ext <<_ACEOF | |
17244 | /* end confdefs.h. */ | |
17245 | $ac_includes_default | |
17246 | #include <$ac_header> | |
17247 | _ACEOF | |
17248 | rm -f conftest.$ac_objext | |
17249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17250 | (eval $ac_compile) 2>&5 | |
17251 | ac_status=$? | |
17252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17253 | (exit $ac_status); } && | |
17254 | { ac_try='test -s conftest.$ac_objext' | |
17255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17256 | (eval $ac_try) 2>&5 | |
17257 | ac_status=$? | |
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17259 | (exit $ac_status); }; }; then | |
17260 | ac_header_compiler=yes | |
17261 | else | |
17262 | echo "$as_me: failed program was:" >&5 | |
17263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17264 | ||
17265 | ac_header_compiler=no | |
17266 | fi | |
17267 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17268 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17269 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17270 | ||
17271 | # Is the header present? | |
17272 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17273 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17274 | cat >conftest.$ac_ext <<_ACEOF | |
17275 | #line $LINENO "configure" | |
17276 | /* confdefs.h. */ | |
17277 | _ACEOF | |
17278 | cat confdefs.h >>conftest.$ac_ext | |
17279 | cat >>conftest.$ac_ext <<_ACEOF | |
17280 | /* end confdefs.h. */ | |
17281 | #include <$ac_header> | |
17282 | _ACEOF | |
17283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17285 | ac_status=$? | |
17286 | grep -v '^ *+' conftest.er1 >conftest.err | |
17287 | rm -f conftest.er1 | |
17288 | cat conftest.err >&5 | |
17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17290 | (exit $ac_status); } >/dev/null; then | |
17291 | if test -s conftest.err; then | |
17292 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17293 | else | |
17294 | ac_cpp_err= | |
17295 | fi | |
17296 | else | |
17297 | ac_cpp_err=yes | |
17298 | fi | |
17299 | if test -z "$ac_cpp_err"; then | |
17300 | ac_header_preproc=yes | |
17301 | else | |
17302 | echo "$as_me: failed program was:" >&5 | |
17303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17304 | ||
17305 | ac_header_preproc=no | |
17306 | fi | |
17307 | rm -f conftest.err conftest.$ac_ext | |
17308 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17309 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17310 | ||
17311 | # So? What about this header? | |
17312 | case $ac_header_compiler:$ac_header_preproc in | |
17313 | yes:no ) | |
17314 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17315 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17318 | ( | |
17319 | cat <<\_ASBOX | |
17320 | ## ------------------------------------ ## | |
17321 | ## Report this to bug-autoconf@gnu.org. ## | |
17322 | ## ------------------------------------ ## | |
17323 | _ASBOX | |
17324 | ) | | |
17325 | sed "s/^/$as_me: WARNING: /" >&2 | |
17326 | ;; | |
17327 | no:yes ) | |
17328 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17329 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17330 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17331 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17333 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17334 | ( | |
17335 | cat <<\_ASBOX | |
17336 | ## ------------------------------------ ## | |
17337 | ## Report this to bug-autoconf@gnu.org. ## | |
17338 | ## ------------------------------------ ## | |
17339 | _ASBOX | |
17340 | ) | | |
17341 | sed "s/^/$as_me: WARNING: /" >&2 | |
17342 | ;; | |
17343 | esac | |
17344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17348 | else | |
17349 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17350 | fi |
e6cc62c6 VS |
17351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17353 | ||
90dd450c | 17354 | fi |
e6cc62c6 VS |
17355 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17356 | cat >>confdefs.h <<_ACEOF | |
17357 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17358 | _ACEOF | |
17359 | ||
90dd450c | 17360 | fi |
e6cc62c6 | 17361 | |
21d1c967 | 17362 | done |
10f2d63a | 17363 | |
8284b0c5 | 17364 | |
21d1c967 GD |
17365 | if test "$ac_cv_header_iostream" = "yes" ; then |
17366 | : | |
17367 | else | |
e6cc62c6 | 17368 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17369 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17370 | _ACEOF |
788deba1 | 17371 | |
90dd450c | 17372 | fi |
ab9b9eab | 17373 | |
21d1c967 | 17374 | ac_ext=c |
21d1c967 | 17375 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17379 | |
21d1c967 | 17380 | fi |
ab9b9eab | 17381 | |
52127426 | 17382 | |
8284b0c5 | 17383 | |
e6cc62c6 VS |
17384 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17385 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17386 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17388 | else |
e6cc62c6 VS |
17389 | |
17390 | ||
17391 | ||
17392 | ac_ext=cc | |
5c6fa7d2 | 17393 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17394 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17395 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17396 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17397 | |
8284b0c5 | 17398 | |
e6cc62c6 VS |
17399 | cat >conftest.$ac_ext <<_ACEOF |
17400 | #line $LINENO "configure" | |
17401 | /* confdefs.h. */ | |
17402 | _ACEOF | |
17403 | cat confdefs.h >>conftest.$ac_ext | |
17404 | cat >>conftest.$ac_ext <<_ACEOF | |
17405 | /* end confdefs.h. */ | |
21d1c967 | 17406 | |
e6cc62c6 VS |
17407 | |
17408 | int | |
17409 | main () | |
17410 | { | |
21d1c967 GD |
17411 | |
17412 | bool b = true; | |
17413 | ||
17414 | return 0; | |
e6cc62c6 VS |
17415 | |
17416 | ; | |
17417 | return 0; | |
17418 | } | |
17419 | _ACEOF | |
17420 | rm -f conftest.$ac_objext | |
17421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17422 | (eval $ac_compile) 2>&5 | |
17423 | ac_status=$? | |
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17425 | (exit $ac_status); } && | |
17426 | { ac_try='test -s conftest.$ac_objext' | |
17427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17428 | (eval $ac_try) 2>&5 | |
17429 | ac_status=$? | |
17430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17431 | (exit $ac_status); }; }; then | |
17432 | ||
21d1c967 | 17433 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17434 | |
698dcdb6 | 17435 | else |
e6cc62c6 VS |
17436 | echo "$as_me: failed program was:" >&5 |
17437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17438 | ||
17439 | ||
21d1c967 | 17440 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17441 | |
17442 | ||
698dcdb6 | 17443 | fi |
e6cc62c6 | 17444 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17445 | |
17446 | ac_ext=c | |
21d1c967 | 17447 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17451 | |
a0b9e27f | 17452 | |
e6cc62c6 VS |
17453 | fi |
17454 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17455 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17456 | |
17457 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17458 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17459 | #define HAVE_BOOL 1 |
e6cc62c6 | 17460 | _ACEOF |
ab9b9eab | 17461 | |
21d1c967 GD |
17462 | fi |
17463 | ||
52127426 | 17464 | |
8284b0c5 | 17465 | |
e6cc62c6 VS |
17466 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17467 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17468 | if test "${wx_cv_explicit+set}" = set; then | |
17469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17470 | else |
e6cc62c6 VS |
17471 | |
17472 | ||
17473 | ||
17474 | ac_ext=cc | |
5c6fa7d2 | 17475 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17476 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17477 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17478 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17479 | |
8284b0c5 | 17480 | |
e6cc62c6 VS |
17481 | cat >conftest.$ac_ext <<_ACEOF |
17482 | #line $LINENO "configure" | |
17483 | /* confdefs.h. */ | |
17484 | _ACEOF | |
17485 | cat confdefs.h >>conftest.$ac_ext | |
17486 | cat >>conftest.$ac_ext <<_ACEOF | |
17487 | /* end confdefs.h. */ | |
986ecc86 VZ |
17488 | |
17489 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17490 | |
17491 | int | |
17492 | main () | |
17493 | { | |
986ecc86 VZ |
17494 | |
17495 | return 0; | |
e6cc62c6 VS |
17496 | |
17497 | ; | |
17498 | return 0; | |
17499 | } | |
17500 | _ACEOF | |
17501 | rm -f conftest.$ac_objext | |
17502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17503 | (eval $ac_compile) 2>&5 | |
17504 | ac_status=$? | |
17505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17506 | (exit $ac_status); } && | |
17507 | { ac_try='test -s conftest.$ac_objext' | |
17508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17509 | (eval $ac_try) 2>&5 | |
17510 | ac_status=$? | |
17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17512 | (exit $ac_status); }; }; then | |
17513 | ||
17514 | cat >conftest.$ac_ext <<_ACEOF | |
17515 | #line $LINENO "configure" | |
17516 | /* confdefs.h. */ | |
17517 | _ACEOF | |
17518 | cat confdefs.h >>conftest.$ac_ext | |
17519 | cat >>conftest.$ac_ext <<_ACEOF | |
17520 | /* end confdefs.h. */ | |
986ecc86 VZ |
17521 | |
17522 | class Foo { public: explicit Foo(int) {} }; | |
17523 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17524 | |
17525 | int | |
17526 | main () | |
17527 | { | |
986ecc86 VZ |
17528 | |
17529 | TakeFoo(17); | |
17530 | return 0; | |
e6cc62c6 VS |
17531 | |
17532 | ; | |
17533 | return 0; | |
17534 | } | |
17535 | _ACEOF | |
17536 | rm -f conftest.$ac_objext | |
17537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17538 | (eval $ac_compile) 2>&5 | |
17539 | ac_status=$? | |
17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17541 | (exit $ac_status); } && | |
17542 | { ac_try='test -s conftest.$ac_objext' | |
17543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17544 | (eval $ac_try) 2>&5 | |
17545 | ac_status=$? | |
17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17547 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17548 | wx_cv_explicit=no |
17549 | else | |
e6cc62c6 VS |
17550 | echo "$as_me: failed program was:" >&5 |
17551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17552 | ||
17553 | wx_cv_explicit=yes | |
17554 | ||
986ecc86 | 17555 | fi |
e6cc62c6 VS |
17556 | rm -f conftest.$ac_objext conftest.$ac_ext |
17557 | ||
986ecc86 | 17558 | else |
e6cc62c6 VS |
17559 | echo "$as_me: failed program was:" >&5 |
17560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17561 | ||
17562 | wx_cv_explicit=no | |
17563 | ||
986ecc86 | 17564 | fi |
e6cc62c6 | 17565 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17566 | |
17567 | ac_ext=c | |
986ecc86 | 17568 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17572 | |
a0b9e27f | 17573 | |
e6cc62c6 VS |
17574 | fi |
17575 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17576 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17577 | |
17578 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17579 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17580 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17581 | _ACEOF |
986ecc86 VZ |
17582 | |
17583 | fi | |
17584 | ||
8284b0c5 | 17585 | |
e6cc62c6 VS |
17586 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17587 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17588 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17590 | else |
521196a2 | 17591 | |
521196a2 | 17592 | |
e6cc62c6 VS |
17593 | ac_ext=cc |
17594 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17598 | ||
17599 | cat >conftest.$ac_ext <<_ACEOF | |
17600 | #line $LINENO "configure" | |
17601 | /* confdefs.h. */ | |
17602 | _ACEOF | |
17603 | cat confdefs.h >>conftest.$ac_ext | |
17604 | cat >>conftest.$ac_ext <<_ACEOF | |
17605 | /* end confdefs.h. */ | |
17606 | ||
17607 | int | |
17608 | main () | |
17609 | { | |
521196a2 | 17610 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17611 | ; |
17612 | return 0; | |
17613 | } | |
17614 | _ACEOF | |
17615 | rm -f conftest.$ac_objext | |
17616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17617 | (eval $ac_compile) 2>&5 | |
17618 | ac_status=$? | |
17619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17620 | (exit $ac_status); } && | |
17621 | { ac_try='test -s conftest.$ac_objext' | |
17622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17623 | (eval $ac_try) 2>&5 | |
17624 | ac_status=$? | |
17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17626 | (exit $ac_status); }; }; then | |
521196a2 MB |
17627 | ac_cv_cxx_const_cast=yes |
17628 | else | |
e6cc62c6 VS |
17629 | echo "$as_me: failed program was:" >&5 |
17630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17631 | ||
17632 | ac_cv_cxx_const_cast=no | |
521196a2 | 17633 | fi |
e6cc62c6 | 17634 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17635 | ac_ext=c |
521196a2 | 17636 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17640 | |
17641 | ||
17642 | fi | |
e6cc62c6 VS |
17643 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17644 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17645 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17646 | |
17647 | cat >>confdefs.h <<\_ACEOF | |
17648 | #define HAVE_CONST_CAST | |
17649 | _ACEOF | |
521196a2 MB |
17650 | |
17651 | fi | |
17652 | ||
17653 | ||
8284b0c5 | 17654 | |
21d1c967 GD |
17655 | SEARCH_INCLUDE="\ |
17656 | /usr/local/include \ | |
17657 | \ | |
17658 | /usr/Motif-1.2/include \ | |
17659 | /usr/Motif-2.1/include \ | |
17660 | \ | |
17661 | /usr/include/Motif1.2 \ | |
17662 | /opt/xpm/include/X11 \ | |
17663 | /opt/GBxpm/include/ \ | |
17664 | /opt/GBxpm/X11/include/ \ | |
17665 | \ | |
17666 | /usr/Motif1.2/include \ | |
17667 | /usr/dt/include \ | |
17668 | /usr/openwin/include \ | |
17669 | \ | |
17670 | /usr/include/Xm \ | |
17671 | \ | |
17672 | /usr/X11R6/include \ | |
17673 | /usr/X11R6.4/include \ | |
17674 | /usr/X11R5/include \ | |
17675 | /usr/X11R4/include \ | |
17676 | \ | |
17677 | /usr/include/X11R6 \ | |
17678 | /usr/include/X11R5 \ | |
17679 | /usr/include/X11R4 \ | |
17680 | \ | |
17681 | /usr/local/X11R6/include \ | |
17682 | /usr/local/X11R5/include \ | |
17683 | /usr/local/X11R4/include \ | |
17684 | \ | |
17685 | /usr/local/include/X11R6 \ | |
17686 | /usr/local/include/X11R5 \ | |
17687 | /usr/local/include/X11R4 \ | |
17688 | \ | |
17689 | /usr/X11/include \ | |
17690 | /usr/include/X11 \ | |
17691 | /usr/local/X11/include \ | |
17692 | /usr/local/include/X11 \ | |
17693 | \ | |
17694 | /usr/X386/include \ | |
17695 | /usr/x386/include \ | |
17696 | /usr/XFree86/include/X11 \ | |
17697 | \ | |
17698 | X:/XFree86/include \ | |
17699 | X:/XFree86/include/X11 \ | |
17700 | \ | |
17701 | /usr/include/gtk \ | |
17702 | /usr/local/include/gtk \ | |
17703 | /usr/include/glib \ | |
17704 | /usr/local/include/glib \ | |
17705 | \ | |
17706 | /usr/include/qt \ | |
17707 | /usr/local/include/qt \ | |
17708 | \ | |
17709 | /usr/include/windows \ | |
17710 | /usr/include/wine \ | |
17711 | /usr/local/include/wine \ | |
17712 | \ | |
17713 | /usr/unsupported/include \ | |
17714 | /usr/athena/include \ | |
17715 | /usr/local/x11r5/include \ | |
17716 | /usr/lpp/Xamples/include \ | |
17717 | \ | |
2b5f62a0 | 17718 | /usr/openwin/share/include" |
21d1c967 GD |
17719 | |
17720 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17721 | ||
8284b0c5 | 17722 | |
e6cc62c6 | 17723 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17724 | # This file is a shell script that caches the results of configure |
17725 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17726 | # scripts and configure runs, see configure's option --config-cache. |
17727 | # It is not useful on other systems. If it contains results you don't | |
17728 | # want to keep, you may remove or edit it. | |
21d1c967 | 17729 | # |
e6cc62c6 VS |
17730 | # config.status only pays attention to the cache file if you give it |
17731 | # the --recheck option to rerun configure. | |
21d1c967 | 17732 | # |
e6cc62c6 VS |
17733 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17734 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17735 | # following values. | |
17736 | ||
17737 | _ACEOF | |
17738 | ||
21d1c967 GD |
17739 | # The following way of writing the cache mishandles newlines in values, |
17740 | # but we know of no workaround that is simple, portable, and efficient. | |
17741 | # So, don't put newlines in cache variables' values. | |
17742 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17743 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17744 | { |
17745 | (set) 2>&1 | | |
17746 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17747 | *ac_space=\ *) | |
17748 | # `set' does not quote correctly, so add quotes (double-quote | |
17749 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17750 | sed -n \ | |
17751 | "s/'/'\\\\''/g; | |
17752 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17753 | ;; | |
17754 | *) | |
17755 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17756 | sed -n \ | |
17757 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17758 | ;; | |
17759 | esac; | |
17760 | } | | |
17761 | sed ' | |
17762 | t clear | |
17763 | : clear | |
17764 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17765 | t end | |
17766 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17767 | : end' >>confcache | |
17768 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17769 | if test -w $cache_file; then |
e6cc62c6 VS |
17770 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17771 | cat confcache >$cache_file | |
21d1c967 GD |
17772 | else |
17773 | echo "not updating unwritable cache $cache_file" | |
17774 | fi | |
ab9b9eab | 17775 | fi |
21d1c967 | 17776 | rm -f confcache |
ab9b9eab | 17777 | |
fe0895cf | 17778 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
17779 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
17780 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17781 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17783 | else | |
17784 | ||
17785 | cat >conftest.$ac_ext <<_ACEOF | |
17786 | #line $LINENO "configure" | |
17787 | /* confdefs.h. */ | |
17788 | _ACEOF | |
17789 | cat confdefs.h >>conftest.$ac_ext | |
17790 | cat >>conftest.$ac_ext <<_ACEOF | |
17791 | /* end confdefs.h. */ | |
21d1c967 | 17792 | #include <features.h> |
e6cc62c6 VS |
17793 | int |
17794 | main () | |
17795 | { | |
ab9b9eab | 17796 | |
21d1c967 GD |
17797 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
17798 | #error not glibc2.1 | |
17799 | #endif | |
e6cc62c6 VS |
17800 | |
17801 | ; | |
17802 | return 0; | |
17803 | } | |
17804 | _ACEOF | |
17805 | rm -f conftest.$ac_objext | |
17806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17807 | (eval $ac_compile) 2>&5 | |
17808 | ac_status=$? | |
17809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17810 | (exit $ac_status); } && | |
17811 | { ac_try='test -s conftest.$ac_objext' | |
17812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17813 | (eval $ac_try) 2>&5 | |
17814 | ac_status=$? | |
17815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17816 | (exit $ac_status); }; }; then | |
17817 | ||
21d1c967 | 17818 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 17819 | |
698dcdb6 | 17820 | else |
e6cc62c6 VS |
17821 | echo "$as_me: failed program was:" >&5 |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | ||
21d1c967 | 17825 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
17826 | |
17827 | ||
247f5006 | 17828 | fi |
e6cc62c6 | 17829 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17830 | |
e6cc62c6 VS |
17831 | fi |
17832 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17833 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 17834 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 17835 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17836 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 17837 | _ACEOF |
1e487827 | 17838 | |
90dd450c | 17839 | fi |
ab9b9eab VZ |
17840 | fi |
17841 | ||
5c0a20c3 VZ |
17842 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
17843 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 17844 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 17845 | #define _GNU_SOURCE 1 |
e6cc62c6 | 17846 | _ACEOF |
5c0a20c3 VZ |
17847 | |
17848 | fi | |
17849 | fi | |
17850 | ||
8284b0c5 MB |
17851 | |
17852 | ||
21d1c967 GD |
17853 | REGEX_INCLUDE= |
17854 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 17855 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17856 | #define wxUSE_REGEX 1 |
e6cc62c6 | 17857 | _ACEOF |
698dcdb6 | 17858 | |
8284b0c5 | 17859 | |
21d1c967 | 17860 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
17861 | if test "${ac_cv_header_regex_h+set}" = set; then |
17862 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17863 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17864 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17866 | fi | |
17867 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17868 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17869 | else | |
17870 | # Is the header compilable? | |
17871 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17872 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17873 | cat >conftest.$ac_ext <<_ACEOF | |
17874 | #line $LINENO "configure" | |
17875 | /* confdefs.h. */ | |
17876 | _ACEOF | |
17877 | cat confdefs.h >>conftest.$ac_ext | |
17878 | cat >>conftest.$ac_ext <<_ACEOF | |
17879 | /* end confdefs.h. */ | |
17880 | $ac_includes_default | |
247f5006 | 17881 | #include <regex.h> |
e6cc62c6 VS |
17882 | _ACEOF |
17883 | rm -f conftest.$ac_objext | |
17884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17885 | (eval $ac_compile) 2>&5 | |
17886 | ac_status=$? | |
17887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17888 | (exit $ac_status); } && | |
17889 | { ac_try='test -s conftest.$ac_objext' | |
17890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17891 | (eval $ac_try) 2>&5 | |
17892 | ac_status=$? | |
17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17894 | (exit $ac_status); }; }; then | |
17895 | ac_header_compiler=yes | |
17896 | else | |
17897 | echo "$as_me: failed program was:" >&5 | |
17898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17899 | ||
17900 | ac_header_compiler=no | |
17901 | fi | |
17902 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17903 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17904 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17905 | ||
17906 | # Is the header present? | |
17907 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17908 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17909 | cat >conftest.$ac_ext <<_ACEOF | |
17910 | #line $LINENO "configure" | |
17911 | /* confdefs.h. */ | |
17912 | _ACEOF | |
17913 | cat confdefs.h >>conftest.$ac_ext | |
17914 | cat >>conftest.$ac_ext <<_ACEOF | |
17915 | /* end confdefs.h. */ | |
17916 | #include <regex.h> | |
17917 | _ACEOF | |
17918 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17920 | ac_status=$? | |
17921 | grep -v '^ *+' conftest.er1 >conftest.err | |
17922 | rm -f conftest.er1 | |
17923 | cat conftest.err >&5 | |
17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17925 | (exit $ac_status); } >/dev/null; then | |
17926 | if test -s conftest.err; then | |
17927 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17928 | else | |
17929 | ac_cpp_err= | |
17930 | fi | |
17931 | else | |
17932 | ac_cpp_err=yes | |
17933 | fi | |
17934 | if test -z "$ac_cpp_err"; then | |
17935 | ac_header_preproc=yes | |
17936 | else | |
17937 | echo "$as_me: failed program was:" >&5 | |
17938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17939 | ||
17940 | ac_header_preproc=no | |
17941 | fi | |
17942 | rm -f conftest.err conftest.$ac_ext | |
17943 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17944 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17945 | ||
17946 | # So? What about this header? | |
17947 | case $ac_header_compiler:$ac_header_preproc in | |
17948 | yes:no ) | |
17949 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17950 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17951 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17952 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17953 | ( | |
17954 | cat <<\_ASBOX | |
17955 | ## ------------------------------------ ## | |
17956 | ## Report this to bug-autoconf@gnu.org. ## | |
17957 | ## ------------------------------------ ## | |
17958 | _ASBOX | |
17959 | ) | | |
17960 | sed "s/^/$as_me: WARNING: /" >&2 | |
17961 | ;; | |
17962 | no:yes ) | |
17963 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
17964 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
17965 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
17966 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
17967 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17968 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17969 | ( | |
17970 | cat <<\_ASBOX | |
17971 | ## ------------------------------------ ## | |
17972 | ## Report this to bug-autoconf@gnu.org. ## | |
17973 | ## ------------------------------------ ## | |
17974 | _ASBOX | |
17975 | ) | | |
17976 | sed "s/^/$as_me: WARNING: /" >&2 | |
17977 | ;; | |
17978 | esac | |
17979 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17980 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17981 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17983 | else | |
17984 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 17985 | fi |
e6cc62c6 VS |
17986 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
17987 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17988 | ||
698dcdb6 | 17989 | fi |
e6cc62c6 VS |
17990 | if test $ac_cv_header_regex_h = yes; then |
17991 | ||
17992 | for ac_func in regcomp | |
21d1c967 | 17993 | do |
e6cc62c6 VS |
17994 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17995 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17996 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17997 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17999 | else | |
18000 | cat >conftest.$ac_ext <<_ACEOF | |
18001 | #line $LINENO "configure" | |
18002 | /* confdefs.h. */ | |
18003 | _ACEOF | |
18004 | cat confdefs.h >>conftest.$ac_ext | |
18005 | cat >>conftest.$ac_ext <<_ACEOF | |
18006 | /* end confdefs.h. */ | |
a0b9e27f | 18007 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
18008 | which can conflict with char $ac_func (); below. |
18009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18010 | <limits.h> exists even on freestanding compilers. */ | |
18011 | #ifdef __STDC__ | |
18012 | # include <limits.h> | |
18013 | #else | |
18014 | # include <assert.h> | |
18015 | #endif | |
21d1c967 | 18016 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18017 | #ifdef __cplusplus |
18018 | extern "C" | |
18019 | { | |
18020 | #endif | |
21d1c967 | 18021 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18022 | builtin and then its argument prototype would still apply. */ |
18023 | char $ac_func (); | |
21d1c967 GD |
18024 | /* The GNU C library defines this for functions which it implements |
18025 | to always fail with ENOSYS. Some functions are actually named | |
18026 | something starting with __ and the normal name is an alias. */ | |
18027 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18028 | choke me | |
18029 | #else | |
e6cc62c6 VS |
18030 | char (*f) () = $ac_func; |
18031 | #endif | |
18032 | #ifdef __cplusplus | |
18033 | } | |
21d1c967 | 18034 | #endif |
90dd450c | 18035 | |
e6cc62c6 VS |
18036 | int |
18037 | main () | |
18038 | { | |
18039 | return f != $ac_func; | |
18040 | ; | |
18041 | return 0; | |
18042 | } | |
18043 | _ACEOF | |
18044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18046 | (eval $ac_link) 2>&5 | |
18047 | ac_status=$? | |
18048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18049 | (exit $ac_status); } && | |
18050 | { ac_try='test -s conftest$ac_exeext' | |
18051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18052 | (eval $ac_try) 2>&5 | |
18053 | ac_status=$? | |
18054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18055 | (exit $ac_status); }; }; then | |
18056 | eval "$as_ac_var=yes" | |
18057 | else | |
18058 | echo "$as_me: failed program was:" >&5 | |
18059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18060 | ||
18061 | eval "$as_ac_var=no" | |
18062 | fi | |
18063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18064 | fi | |
18065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18066 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18067 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18068 | cat >>confdefs.h <<_ACEOF | |
18069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18070 | _ACEOF | |
5c6fa7d2 | 18071 | |
698dcdb6 | 18072 | fi |
21d1c967 GD |
18073 | done |
18074 | ||
ab9b9eab VZ |
18075 | fi |
18076 | ||
8284b0c5 | 18077 | |
e6cc62c6 | 18078 | |
21d1c967 GD |
18079 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18080 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18081 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18082 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18083 | { (exit 1); exit 1; }; } | |
21d1c967 | 18084 | else |
e6cc62c6 VS |
18085 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18086 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18087 | wxUSE_REGEX=builtin |
18088 | fi | |
18089 | else | |
18090 | wxUSE_REGEX=sys | |
18091 | fi | |
ab9b9eab | 18092 | fi |
90dd450c | 18093 | |
21d1c967 GD |
18094 | if test "$wxUSE_REGEX" = "builtin" ; then |
18095 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18096 | fi |
21d1c967 | 18097 | fi |
90dd450c | 18098 | |
8284b0c5 | 18099 | |
21d1c967 GD |
18100 | ZLIB_INCLUDE= |
18101 | ZLIB_LINK= | |
18102 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18103 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18104 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18105 | _ACEOF |
21d1c967 | 18106 | |
8284b0c5 | 18107 | |
21d1c967 | 18108 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18109 | if test "$USE_DARWIN" = 1; then |
18110 | system_zlib_h_ok="yes" | |
18111 | else | |
e6cc62c6 VS |
18112 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18113 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18114 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18116 | else |
18117 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18118 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18119 | |
d643b80e | 18120 | else |
e6cc62c6 VS |
18121 | cat >conftest.$ac_ext <<_ACEOF |
18122 | #line $LINENO "configure" | |
18123 | /* confdefs.h. */ | |
18124 | _ACEOF | |
18125 | cat confdefs.h >>conftest.$ac_ext | |
18126 | cat >>conftest.$ac_ext <<_ACEOF | |
18127 | /* end confdefs.h. */ | |
18128 | ||
ef33c576 | 18129 | #include <zlib.h> |
d775acfa | 18130 | #include <stdio.h> |
d643b80e | 18131 | |
d775acfa VZ |
18132 | int main() |
18133 | { | |
18134 | FILE *f=fopen("conftestval", "w"); | |
18135 | if (!f) exit(1); | |
18136 | fprintf(f, "%s", | |
18137 | ZLIB_VERSION[0] == '1' && | |
18138 | (ZLIB_VERSION[2] > '1' || | |
18139 | (ZLIB_VERSION[2] == '1' && | |
18140 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18141 | exit(0); | |
18142 | } | |
e6cc62c6 VS |
18143 | |
18144 | _ACEOF | |
18145 | rm -f conftest$ac_exeext | |
18146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18147 | (eval $ac_link) 2>&5 | |
18148 | ac_status=$? | |
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18152 | (eval $ac_try) 2>&5 | |
18153 | ac_status=$? | |
18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18155 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18156 | ac_cv_header_zlib_h=`cat conftestval` |
18157 | else | |
e6cc62c6 VS |
18158 | echo "$as_me: program exited with status $ac_status" >&5 |
18159 | echo "$as_me: failed program was:" >&5 | |
18160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18161 | ||
18162 | ( exit $ac_status ) | |
18163 | ac_cv_header_zlib_h=no | |
d643b80e | 18164 | fi |
e6cc62c6 | 18165 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18166 | fi |
18167 | ||
d643b80e | 18168 | fi |
e6cc62c6 VS |
18169 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18170 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18171 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18172 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18173 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18174 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18176 | fi | |
18177 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18178 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18179 | else |
e6cc62c6 VS |
18180 | # Is the header compilable? |
18181 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18182 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18183 | cat >conftest.$ac_ext <<_ACEOF | |
18184 | #line $LINENO "configure" | |
18185 | /* confdefs.h. */ | |
18186 | _ACEOF | |
18187 | cat confdefs.h >>conftest.$ac_ext | |
18188 | cat >>conftest.$ac_ext <<_ACEOF | |
18189 | /* end confdefs.h. */ | |
18190 | $ac_includes_default | |
89e6bf6d | 18191 | #include <zlib.h> |
e6cc62c6 VS |
18192 | _ACEOF |
18193 | rm -f conftest.$ac_objext | |
18194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18195 | (eval $ac_compile) 2>&5 | |
18196 | ac_status=$? | |
18197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18198 | (exit $ac_status); } && | |
18199 | { ac_try='test -s conftest.$ac_objext' | |
18200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18201 | (eval $ac_try) 2>&5 | |
18202 | ac_status=$? | |
18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18204 | (exit $ac_status); }; }; then | |
18205 | ac_header_compiler=yes | |
18206 | else | |
18207 | echo "$as_me: failed program was:" >&5 | |
18208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18209 | ||
18210 | ac_header_compiler=no | |
18211 | fi | |
18212 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18213 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18214 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18215 | ||
18216 | # Is the header present? | |
18217 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18218 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18219 | cat >conftest.$ac_ext <<_ACEOF | |
18220 | #line $LINENO "configure" | |
18221 | /* confdefs.h. */ | |
18222 | _ACEOF | |
18223 | cat confdefs.h >>conftest.$ac_ext | |
18224 | cat >>conftest.$ac_ext <<_ACEOF | |
18225 | /* end confdefs.h. */ | |
18226 | #include <zlib.h> | |
18227 | _ACEOF | |
18228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18230 | ac_status=$? | |
18231 | grep -v '^ *+' conftest.er1 >conftest.err | |
18232 | rm -f conftest.er1 | |
18233 | cat conftest.err >&5 | |
18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18235 | (exit $ac_status); } >/dev/null; then | |
18236 | if test -s conftest.err; then | |
18237 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18238 | else | |
18239 | ac_cpp_err= | |
18240 | fi | |
18241 | else | |
18242 | ac_cpp_err=yes | |
18243 | fi | |
18244 | if test -z "$ac_cpp_err"; then | |
18245 | ac_header_preproc=yes | |
18246 | else | |
18247 | echo "$as_me: failed program was:" >&5 | |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18249 | ||
18250 | ac_header_preproc=no | |
18251 | fi | |
18252 | rm -f conftest.err conftest.$ac_ext | |
18253 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18254 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18255 | ||
18256 | # So? What about this header? | |
18257 | case $ac_header_compiler:$ac_header_preproc in | |
18258 | yes:no ) | |
18259 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18260 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18261 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18262 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18263 | ( | |
18264 | cat <<\_ASBOX | |
18265 | ## ------------------------------------ ## | |
18266 | ## Report this to bug-autoconf@gnu.org. ## | |
18267 | ## ------------------------------------ ## | |
18268 | _ASBOX | |
18269 | ) | | |
18270 | sed "s/^/$as_me: WARNING: /" >&2 | |
18271 | ;; | |
18272 | no:yes ) | |
18273 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18274 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18275 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18276 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18277 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18278 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18279 | ( | |
18280 | cat <<\_ASBOX | |
18281 | ## ------------------------------------ ## | |
18282 | ## Report this to bug-autoconf@gnu.org. ## | |
18283 | ## ------------------------------------ ## | |
18284 | _ASBOX | |
18285 | ) | | |
18286 | sed "s/^/$as_me: WARNING: /" >&2 | |
18287 | ;; | |
18288 | esac | |
18289 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18290 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18291 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18293 | else |
e6cc62c6 VS |
18294 | ac_cv_header_zlib_h=$ac_header_preproc |
18295 | fi | |
18296 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18297 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18298 | ||
89e6bf6d VZ |
18299 | fi |
18300 | ||
d643b80e | 18301 | |
e6cc62c6 | 18302 | |
d775acfa VZ |
18303 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18304 | fi | |
18305 | ||
18306 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18307 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18308 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18309 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18311 | else |
e6cc62c6 | 18312 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18313 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18314 | cat >conftest.$ac_ext <<_ACEOF |
18315 | #line $LINENO "configure" | |
18316 | /* confdefs.h. */ | |
18317 | _ACEOF | |
18318 | cat confdefs.h >>conftest.$ac_ext | |
18319 | cat >>conftest.$ac_ext <<_ACEOF | |
18320 | /* end confdefs.h. */ | |
18321 | ||
21d1c967 | 18322 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18323 | #ifdef __cplusplus |
18324 | extern "C" | |
18325 | #endif | |
21d1c967 | 18326 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18327 | builtin and then its argument prototype would still apply. */ |
18328 | char deflate (); | |
18329 | int | |
18330 | main () | |
18331 | { | |
18332 | deflate (); | |
18333 | ; | |
18334 | return 0; | |
18335 | } | |
18336 | _ACEOF | |
18337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18339 | (eval $ac_link) 2>&5 | |
18340 | ac_status=$? | |
18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18342 | (exit $ac_status); } && | |
18343 | { ac_try='test -s conftest$ac_exeext' | |
18344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18345 | (eval $ac_try) 2>&5 | |
18346 | ac_status=$? | |
18347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18348 | (exit $ac_status); }; }; then | |
18349 | ac_cv_lib_z_deflate=yes | |
18350 | else | |
18351 | echo "$as_me: failed program was:" >&5 | |
18352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18353 | ||
18354 | ac_cv_lib_z_deflate=no | |
18355 | fi | |
18356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18357 | LIBS=$ac_check_lib_save_LIBS | |
18358 | fi | |
18359 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18360 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18361 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18362 | ZLIB_LINK=" -lz" |
a0b9e27f | 18363 | fi |
698dcdb6 | 18364 | |
d643b80e | 18365 | fi |
247f5006 | 18366 | |
21d1c967 GD |
18367 | if test "x$ZLIB_LINK" = "x" ; then |
18368 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18369 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18370 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18371 | { (exit 1); exit 1; }; } | |
21d1c967 | 18372 | else |
e6cc62c6 VS |
18373 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18374 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18375 | wxUSE_ZLIB=builtin |
18376 | fi | |
18377 | else | |
18378 | wxUSE_ZLIB=sys | |
18379 | fi | |
18380 | fi | |
18381 | ||
18382 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18383 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18384 | fi | |
ab9b9eab VZ |
18385 | fi |
18386 | ||
8284b0c5 | 18387 | |
21d1c967 GD |
18388 | PNG_INCLUDE= |
18389 | PNG_LINK= | |
18390 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18391 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18392 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18393 | _ACEOF |
90dd450c | 18394 | |
8284b0c5 | 18395 | |
21d1c967 | 18396 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18397 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18398 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18399 | wxUSE_LIBPNG=sys |
18400 | fi | |
90dd450c | 18401 | |
21d1c967 | 18402 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18403 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18404 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18405 | wxUSE_LIBPNG=builtin |
18406 | fi | |
18407 | ||
18408 | if test "$wxUSE_MGL" != 1 ; then | |
18409 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18410 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18411 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18412 | if test "${ac_cv_header_png_h+set}" = set; then | |
18413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18414 | else |
18415 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18416 | unset ac_cv_header_png_h |
e6cc62c6 | 18417 | |
5d3f766d | 18418 | else |
e6cc62c6 VS |
18419 | cat >conftest.$ac_ext <<_ACEOF |
18420 | #line $LINENO "configure" | |
18421 | /* confdefs.h. */ | |
18422 | _ACEOF | |
18423 | cat confdefs.h >>conftest.$ac_ext | |
18424 | cat >>conftest.$ac_ext <<_ACEOF | |
18425 | /* end confdefs.h. */ | |
18426 | ||
ef33c576 | 18427 | #include <png.h> |
5d3f766d VZ |
18428 | #include <stdio.h> |
18429 | ||
18430 | int main() | |
18431 | { | |
18432 | FILE *f=fopen("conftestval", "w"); | |
18433 | if (!f) exit(1); | |
18434 | fprintf(f, "%s", | |
18435 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18436 | exit(0); | |
18437 | } | |
e6cc62c6 VS |
18438 | |
18439 | _ACEOF | |
18440 | rm -f conftest$ac_exeext | |
18441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18442 | (eval $ac_link) 2>&5 | |
18443 | ac_status=$? | |
18444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18447 | (eval $ac_try) 2>&5 | |
18448 | ac_status=$? | |
18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18450 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18451 | ac_cv_header_png_h=`cat conftestval` |
18452 | else | |
e6cc62c6 VS |
18453 | echo "$as_me: program exited with status $ac_status" >&5 |
18454 | echo "$as_me: failed program was:" >&5 | |
18455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18456 | ||
18457 | ( exit $ac_status ) | |
18458 | ac_cv_header_png_h=no | |
5d3f766d | 18459 | fi |
e6cc62c6 | 18460 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18461 | fi |
18462 | ||
5d3f766d | 18463 | fi |
e6cc62c6 VS |
18464 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18465 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18466 | if test "${ac_cv_header_png_h+set}" = set; then | |
18467 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18468 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18469 | if test "${ac_cv_header_png_h+set}" = set; then | |
18470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18471 | fi | |
18472 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18473 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18474 | else |
e6cc62c6 VS |
18475 | # Is the header compilable? |
18476 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18477 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18478 | cat >conftest.$ac_ext <<_ACEOF | |
18479 | #line $LINENO "configure" | |
18480 | /* confdefs.h. */ | |
18481 | _ACEOF | |
18482 | cat confdefs.h >>conftest.$ac_ext | |
18483 | cat >>conftest.$ac_ext <<_ACEOF | |
18484 | /* end confdefs.h. */ | |
18485 | $ac_includes_default | |
89e6bf6d | 18486 | #include <png.h> |
e6cc62c6 VS |
18487 | _ACEOF |
18488 | rm -f conftest.$ac_objext | |
18489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18490 | (eval $ac_compile) 2>&5 | |
18491 | ac_status=$? | |
18492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18493 | (exit $ac_status); } && | |
18494 | { ac_try='test -s conftest.$ac_objext' | |
18495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18496 | (eval $ac_try) 2>&5 | |
18497 | ac_status=$? | |
18498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18499 | (exit $ac_status); }; }; then | |
18500 | ac_header_compiler=yes | |
18501 | else | |
18502 | echo "$as_me: failed program was:" >&5 | |
18503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18504 | ||
18505 | ac_header_compiler=no | |
18506 | fi | |
18507 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18509 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18510 | ||
18511 | # Is the header present? | |
18512 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18513 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18514 | cat >conftest.$ac_ext <<_ACEOF | |
18515 | #line $LINENO "configure" | |
18516 | /* confdefs.h. */ | |
18517 | _ACEOF | |
18518 | cat confdefs.h >>conftest.$ac_ext | |
18519 | cat >>conftest.$ac_ext <<_ACEOF | |
18520 | /* end confdefs.h. */ | |
18521 | #include <png.h> | |
18522 | _ACEOF | |
18523 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18525 | ac_status=$? | |
18526 | grep -v '^ *+' conftest.er1 >conftest.err | |
18527 | rm -f conftest.er1 | |
18528 | cat conftest.err >&5 | |
18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18530 | (exit $ac_status); } >/dev/null; then | |
18531 | if test -s conftest.err; then | |
18532 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18533 | else | |
18534 | ac_cpp_err= | |
18535 | fi | |
18536 | else | |
18537 | ac_cpp_err=yes | |
18538 | fi | |
18539 | if test -z "$ac_cpp_err"; then | |
18540 | ac_header_preproc=yes | |
18541 | else | |
18542 | echo "$as_me: failed program was:" >&5 | |
18543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18544 | ||
18545 | ac_header_preproc=no | |
18546 | fi | |
18547 | rm -f conftest.err conftest.$ac_ext | |
18548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18549 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18550 | ||
18551 | # So? What about this header? | |
18552 | case $ac_header_compiler:$ac_header_preproc in | |
18553 | yes:no ) | |
18554 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18555 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18556 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18557 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18558 | ( | |
18559 | cat <<\_ASBOX | |
18560 | ## ------------------------------------ ## | |
18561 | ## Report this to bug-autoconf@gnu.org. ## | |
18562 | ## ------------------------------------ ## | |
18563 | _ASBOX | |
18564 | ) | | |
18565 | sed "s/^/$as_me: WARNING: /" >&2 | |
18566 | ;; | |
18567 | no:yes ) | |
18568 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18569 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18570 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18571 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18572 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18573 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18574 | ( | |
18575 | cat <<\_ASBOX | |
18576 | ## ------------------------------------ ## | |
18577 | ## Report this to bug-autoconf@gnu.org. ## | |
18578 | ## ------------------------------------ ## | |
18579 | _ASBOX | |
18580 | ) | | |
18581 | sed "s/^/$as_me: WARNING: /" >&2 | |
18582 | ;; | |
18583 | esac | |
18584 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18585 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18586 | if test "${ac_cv_header_png_h+set}" = set; then | |
18587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18588 | else |
e6cc62c6 VS |
18589 | ac_cv_header_png_h=$ac_header_preproc |
18590 | fi | |
18591 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18592 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18593 | ||
89e6bf6d VZ |
18594 | fi |
18595 | ||
5d3f766d | 18596 | |
e6cc62c6 | 18597 | |
5d3f766d | 18598 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18599 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18600 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18601 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18603 | else |
e6cc62c6 | 18604 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18605 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18606 | cat >conftest.$ac_ext <<_ACEOF |
18607 | #line $LINENO "configure" | |
18608 | /* confdefs.h. */ | |
18609 | _ACEOF | |
18610 | cat confdefs.h >>conftest.$ac_ext | |
18611 | cat >>conftest.$ac_ext <<_ACEOF | |
18612 | /* end confdefs.h. */ | |
18613 | ||
21d1c967 | 18614 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18615 | #ifdef __cplusplus |
18616 | extern "C" | |
18617 | #endif | |
21d1c967 | 18618 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18619 | builtin and then its argument prototype would still apply. */ |
18620 | char png_check_sig (); | |
18621 | int | |
18622 | main () | |
18623 | { | |
18624 | png_check_sig (); | |
18625 | ; | |
18626 | return 0; | |
18627 | } | |
18628 | _ACEOF | |
18629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18631 | (eval $ac_link) 2>&5 | |
18632 | ac_status=$? | |
18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18634 | (exit $ac_status); } && | |
18635 | { ac_try='test -s conftest$ac_exeext' | |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; }; then | |
18641 | ac_cv_lib_png_png_check_sig=yes | |
18642 | else | |
18643 | echo "$as_me: failed program was:" >&5 | |
18644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18645 | ||
18646 | ac_cv_lib_png_png_check_sig=no | |
18647 | fi | |
18648 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18649 | LIBS=$ac_check_lib_save_LIBS | |
18650 | fi | |
18651 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18652 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18653 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18654 | PNG_LINK=" -lpng" |
a0b9e27f | 18655 | fi |
90dd450c | 18656 | |
5d3f766d | 18657 | fi |
247f5006 | 18658 | |
21d1c967 GD |
18659 | if test "x$PNG_LINK" = "x" ; then |
18660 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18661 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18662 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18663 | { (exit 1); exit 1; }; } | |
21d1c967 | 18664 | else |
e6cc62c6 VS |
18665 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18666 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18667 | wxUSE_LIBPNG=builtin |
18668 | fi | |
18669 | else | |
2b5f62a0 | 18670 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18671 | fi |
18672 | fi | |
18673 | fi | |
90dd450c | 18674 | |
21d1c967 GD |
18675 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18676 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18677 | fi | |
90dd450c | 18678 | |
21d1c967 | 18679 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18680 | fi |
18681 | ||
8284b0c5 | 18682 | |
21d1c967 GD |
18683 | JPEG_INCLUDE= |
18684 | JPEG_LINK= | |
18685 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18686 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18687 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18688 | _ACEOF |
90dd450c | 18689 | |
8284b0c5 | 18690 | |
21d1c967 | 18691 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18692 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18693 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18694 | wxUSE_LIBJPEG=sys |
18695 | fi | |
90dd450c | 18696 | |
21d1c967 GD |
18697 | if test "$wxUSE_MGL" != 1 ; then |
18698 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18699 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18700 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18701 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18703 | else | |
18704 | cat >conftest.$ac_ext <<_ACEOF | |
18705 | #line $LINENO "configure" | |
18706 | /* confdefs.h. */ | |
18707 | _ACEOF | |
18708 | cat confdefs.h >>conftest.$ac_ext | |
18709 | cat >>conftest.$ac_ext <<_ACEOF | |
18710 | /* end confdefs.h. */ | |
90dd450c | 18711 | |
21d1c967 GD |
18712 | #undef HAVE_STDLIB_H |
18713 | #include <stdio.h> | |
18714 | #include <jpeglib.h> | |
90dd450c | 18715 | |
e6cc62c6 VS |
18716 | int |
18717 | main () | |
18718 | { | |
18719 | ||
18720 | ||
18721 | ; | |
18722 | return 0; | |
18723 | } | |
18724 | _ACEOF | |
18725 | rm -f conftest.$ac_objext | |
18726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18727 | (eval $ac_compile) 2>&5 | |
18728 | ac_status=$? | |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); } && | |
18731 | { ac_try='test -s conftest.$ac_objext' | |
18732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18733 | (eval $ac_try) 2>&5 | |
18734 | ac_status=$? | |
18735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18736 | (exit $ac_status); }; }; then | |
21d1c967 | 18737 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18738 | else |
e6cc62c6 VS |
18739 | echo "$as_me: failed program was:" >&5 |
18740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18741 | ||
18742 | ac_cv_header_jpeglib_h=no | |
18743 | ||
90dd450c | 18744 | fi |
e6cc62c6 VS |
18745 | rm -f conftest.$ac_objext conftest.$ac_ext |
18746 | ||
90dd450c VZ |
18747 | fi |
18748 | ||
e6cc62c6 VS |
18749 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18750 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18751 | |
21d1c967 | 18752 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18753 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18754 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18755 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18757 | else |
e6cc62c6 | 18758 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18759 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18760 | cat >conftest.$ac_ext <<_ACEOF |
18761 | #line $LINENO "configure" | |
18762 | /* confdefs.h. */ | |
18763 | _ACEOF | |
18764 | cat confdefs.h >>conftest.$ac_ext | |
18765 | cat >>conftest.$ac_ext <<_ACEOF | |
18766 | /* end confdefs.h. */ | |
18767 | ||
21d1c967 | 18768 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18769 | #ifdef __cplusplus |
18770 | extern "C" | |
18771 | #endif | |
21d1c967 | 18772 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18773 | builtin and then its argument prototype would still apply. */ |
18774 | char jpeg_read_header (); | |
18775 | int | |
18776 | main () | |
18777 | { | |
18778 | jpeg_read_header (); | |
18779 | ; | |
18780 | return 0; | |
18781 | } | |
18782 | _ACEOF | |
18783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18785 | (eval $ac_link) 2>&5 | |
18786 | ac_status=$? | |
18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18788 | (exit $ac_status); } && | |
18789 | { ac_try='test -s conftest$ac_exeext' | |
18790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18791 | (eval $ac_try) 2>&5 | |
18792 | ac_status=$? | |
18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18794 | (exit $ac_status); }; }; then | |
18795 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18796 | else | |
18797 | echo "$as_me: failed program was:" >&5 | |
18798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18799 | ||
18800 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18801 | fi | |
18802 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18803 | LIBS=$ac_check_lib_save_LIBS | |
18804 | fi | |
18805 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18806 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18807 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 18808 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
18809 | fi |
18810 | ||
21d1c967 | 18811 | fi |
90dd450c | 18812 | |
21d1c967 GD |
18813 | if test "x$JPEG_LINK" = "x" ; then |
18814 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
18815 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
18816 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18817 | { (exit 1); exit 1; }; } | |
21d1c967 | 18818 | else |
e6cc62c6 VS |
18819 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
18820 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18821 | wxUSE_LIBJPEG=builtin |
18822 | fi | |
18823 | else | |
18824 | wxUSE_LIBJPEG=sys | |
18825 | fi | |
18826 | fi | |
18827 | fi | |
90dd450c | 18828 | |
21d1c967 GD |
18829 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
18830 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18831 | fi | |
18832 | fi | |
90dd450c | 18833 | |
8284b0c5 | 18834 | |
21d1c967 GD |
18835 | TIFF_INCLUDE= |
18836 | TIFF_LINK= | |
2b5f62a0 | 18837 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 18838 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 18839 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18840 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 18841 | _ACEOF |
21d1c967 | 18842 | |
8284b0c5 | 18843 | |
21d1c967 | 18844 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
18845 | if test "$wxUSE_LIBJPEG" = "sys"; then |
18846 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18847 | fi | |
18848 | if test "$wxUSE_ZLIB" = "sys"; then | |
18849 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18850 | fi | |
e6cc62c6 VS |
18851 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
18852 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18853 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18854 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18856 | fi | |
18857 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18858 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18859 | else | |
18860 | # Is the header compilable? | |
18861 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18862 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18863 | cat >conftest.$ac_ext <<_ACEOF | |
18864 | #line $LINENO "configure" | |
18865 | /* confdefs.h. */ | |
18866 | _ACEOF | |
18867 | cat confdefs.h >>conftest.$ac_ext | |
18868 | cat >>conftest.$ac_ext <<_ACEOF | |
18869 | /* end confdefs.h. */ | |
18870 | $ac_includes_default | |
247f5006 | 18871 | #include <tiffio.h> |
e6cc62c6 VS |
18872 | _ACEOF |
18873 | rm -f conftest.$ac_objext | |
18874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18875 | (eval $ac_compile) 2>&5 | |
18876 | ac_status=$? | |
18877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18878 | (exit $ac_status); } && | |
18879 | { ac_try='test -s conftest.$ac_objext' | |
18880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18881 | (eval $ac_try) 2>&5 | |
18882 | ac_status=$? | |
18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18884 | (exit $ac_status); }; }; then | |
18885 | ac_header_compiler=yes | |
18886 | else | |
18887 | echo "$as_me: failed program was:" >&5 | |
18888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18889 | ||
18890 | ac_header_compiler=no | |
18891 | fi | |
18892 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18894 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18895 | ||
18896 | # Is the header present? | |
18897 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18898 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18899 | cat >conftest.$ac_ext <<_ACEOF | |
18900 | #line $LINENO "configure" | |
18901 | /* confdefs.h. */ | |
18902 | _ACEOF | |
18903 | cat confdefs.h >>conftest.$ac_ext | |
18904 | cat >>conftest.$ac_ext <<_ACEOF | |
18905 | /* end confdefs.h. */ | |
18906 | #include <tiffio.h> | |
18907 | _ACEOF | |
18908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18910 | ac_status=$? | |
18911 | grep -v '^ *+' conftest.er1 >conftest.err | |
18912 | rm -f conftest.er1 | |
18913 | cat conftest.err >&5 | |
18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18915 | (exit $ac_status); } >/dev/null; then | |
18916 | if test -s conftest.err; then | |
18917 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18918 | else | |
18919 | ac_cpp_err= | |
18920 | fi | |
18921 | else | |
18922 | ac_cpp_err=yes | |
18923 | fi | |
18924 | if test -z "$ac_cpp_err"; then | |
18925 | ac_header_preproc=yes | |
18926 | else | |
18927 | echo "$as_me: failed program was:" >&5 | |
18928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18929 | ||
18930 | ac_header_preproc=no | |
18931 | fi | |
18932 | rm -f conftest.err conftest.$ac_ext | |
18933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18934 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18935 | ||
18936 | # So? What about this header? | |
18937 | case $ac_header_compiler:$ac_header_preproc in | |
18938 | yes:no ) | |
18939 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18940 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18941 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18942 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18943 | ( | |
18944 | cat <<\_ASBOX | |
18945 | ## ------------------------------------ ## | |
18946 | ## Report this to bug-autoconf@gnu.org. ## | |
18947 | ## ------------------------------------ ## | |
18948 | _ASBOX | |
18949 | ) | | |
18950 | sed "s/^/$as_me: WARNING: /" >&2 | |
18951 | ;; | |
18952 | no:yes ) | |
18953 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
18954 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
18955 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
18956 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
18957 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18958 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18959 | ( | |
18960 | cat <<\_ASBOX | |
18961 | ## ------------------------------------ ## | |
18962 | ## Report this to bug-autoconf@gnu.org. ## | |
18963 | ## ------------------------------------ ## | |
18964 | _ASBOX | |
18965 | ) | | |
18966 | sed "s/^/$as_me: WARNING: /" >&2 | |
18967 | ;; | |
18968 | esac | |
18969 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18970 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18971 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18973 | else | |
18974 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 18975 | fi |
e6cc62c6 VS |
18976 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
18977 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18978 | ||
21d1c967 | 18979 | fi |
e6cc62c6 VS |
18980 | if test $ac_cv_header_tiffio_h = yes; then |
18981 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
18982 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
18983 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
18984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 18985 | else |
e6cc62c6 | 18986 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 18987 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
18988 | cat >conftest.$ac_ext <<_ACEOF |
18989 | #line $LINENO "configure" | |
18990 | /* confdefs.h. */ | |
18991 | _ACEOF | |
18992 | cat confdefs.h >>conftest.$ac_ext | |
18993 | cat >>conftest.$ac_ext <<_ACEOF | |
18994 | /* end confdefs.h. */ | |
18995 | ||
ab9b9eab | 18996 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18997 | #ifdef __cplusplus |
18998 | extern "C" | |
18999 | #endif | |
ab9b9eab | 19000 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19001 | builtin and then its argument prototype would still apply. */ |
19002 | char TIFFError (); | |
19003 | int | |
19004 | main () | |
19005 | { | |
19006 | TIFFError (); | |
19007 | ; | |
19008 | return 0; | |
19009 | } | |
19010 | _ACEOF | |
19011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19013 | (eval $ac_link) 2>&5 | |
19014 | ac_status=$? | |
19015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19016 | (exit $ac_status); } && | |
19017 | { ac_try='test -s conftest$ac_exeext' | |
19018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19019 | (eval $ac_try) 2>&5 | |
19020 | ac_status=$? | |
19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19022 | (exit $ac_status); }; }; then | |
19023 | ac_cv_lib_tiff_TIFFError=yes | |
19024 | else | |
19025 | echo "$as_me: failed program was:" >&5 | |
19026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19027 | ||
19028 | ac_cv_lib_tiff_TIFFError=no | |
19029 | fi | |
19030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19031 | LIBS=$ac_check_lib_save_LIBS | |
19032 | fi | |
19033 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19034 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19035 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19036 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19037 | fi |
cd6d6d5b | 19038 | |
e6cc62c6 | 19039 | |
a0b9e27f | 19040 | fi |
8284b0c5 | 19041 | |
247f5006 | 19042 | |
e6cc62c6 | 19043 | |
21d1c967 GD |
19044 | if test "x$TIFF_LINK" = "x" ; then |
19045 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19046 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19047 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19048 | { (exit 1); exit 1; }; } | |
90dd450c | 19049 | else |
e6cc62c6 VS |
19050 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19051 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19052 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19053 | fi |
d8356fa3 | 19054 | else |
21d1c967 | 19055 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19056 | fi |
21d1c967 | 19057 | fi |
d8356fa3 | 19058 | |
21d1c967 GD |
19059 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19060 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19061 | fi |
21d1c967 | 19062 | fi |
10f2d63a | 19063 | |
8284b0c5 | 19064 | |
21d1c967 | 19065 | AFMINSTALL= |
2b5f62a0 | 19066 | WIN32INSTALL= |
90dd450c | 19067 | |
21d1c967 GD |
19068 | TOOLKIT= |
19069 | TOOLKIT_INCLUDE= | |
19070 | WIDGET_SET= | |
19071 | ||
19072 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19073 | |
19074 | for ac_header in w32api.h | |
21d1c967 | 19075 | do |
e6cc62c6 VS |
19076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19082 | fi | |
19083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19085 | else | |
19086 | # Is the header compilable? | |
19087 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19088 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19089 | cat >conftest.$ac_ext <<_ACEOF | |
19090 | #line $LINENO "configure" | |
19091 | /* confdefs.h. */ | |
19092 | _ACEOF | |
19093 | cat confdefs.h >>conftest.$ac_ext | |
19094 | cat >>conftest.$ac_ext <<_ACEOF | |
19095 | /* end confdefs.h. */ | |
19096 | $ac_includes_default | |
19097 | #include <$ac_header> | |
19098 | _ACEOF | |
19099 | rm -f conftest.$ac_objext | |
19100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19101 | (eval $ac_compile) 2>&5 | |
19102 | ac_status=$? | |
19103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19104 | (exit $ac_status); } && | |
19105 | { ac_try='test -s conftest.$ac_objext' | |
19106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19107 | (eval $ac_try) 2>&5 | |
19108 | ac_status=$? | |
19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19110 | (exit $ac_status); }; }; then | |
19111 | ac_header_compiler=yes | |
19112 | else | |
19113 | echo "$as_me: failed program was:" >&5 | |
19114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19115 | ||
19116 | ac_header_compiler=no | |
19117 | fi | |
19118 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19120 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19121 | ||
19122 | # Is the header present? | |
19123 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19124 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19125 | cat >conftest.$ac_ext <<_ACEOF | |
19126 | #line $LINENO "configure" | |
19127 | /* confdefs.h. */ | |
19128 | _ACEOF | |
19129 | cat confdefs.h >>conftest.$ac_ext | |
19130 | cat >>conftest.$ac_ext <<_ACEOF | |
19131 | /* end confdefs.h. */ | |
19132 | #include <$ac_header> | |
19133 | _ACEOF | |
19134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19136 | ac_status=$? | |
19137 | grep -v '^ *+' conftest.er1 >conftest.err | |
19138 | rm -f conftest.er1 | |
19139 | cat conftest.err >&5 | |
19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19141 | (exit $ac_status); } >/dev/null; then | |
19142 | if test -s conftest.err; then | |
19143 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19144 | else | |
19145 | ac_cpp_err= | |
19146 | fi | |
19147 | else | |
19148 | ac_cpp_err=yes | |
19149 | fi | |
19150 | if test -z "$ac_cpp_err"; then | |
19151 | ac_header_preproc=yes | |
19152 | else | |
19153 | echo "$as_me: failed program was:" >&5 | |
19154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19155 | ||
19156 | ac_header_preproc=no | |
19157 | fi | |
19158 | rm -f conftest.err conftest.$ac_ext | |
19159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19160 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19161 | ||
19162 | # So? What about this header? | |
19163 | case $ac_header_compiler:$ac_header_preproc in | |
19164 | yes:no ) | |
19165 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19166 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19169 | ( | |
19170 | cat <<\_ASBOX | |
19171 | ## ------------------------------------ ## | |
19172 | ## Report this to bug-autoconf@gnu.org. ## | |
19173 | ## ------------------------------------ ## | |
19174 | _ASBOX | |
19175 | ) | | |
19176 | sed "s/^/$as_me: WARNING: /" >&2 | |
19177 | ;; | |
19178 | no:yes ) | |
19179 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19180 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19181 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19182 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19184 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19185 | ( | |
19186 | cat <<\_ASBOX | |
19187 | ## ------------------------------------ ## | |
19188 | ## Report this to bug-autoconf@gnu.org. ## | |
19189 | ## ------------------------------------ ## | |
19190 | _ASBOX | |
19191 | ) | | |
19192 | sed "s/^/$as_me: WARNING: /" >&2 | |
19193 | ;; | |
19194 | esac | |
19195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19199 | else | |
19200 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19201 | fi |
e6cc62c6 VS |
19202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19204 | ||
21d1c967 | 19205 | fi |
e6cc62c6 VS |
19206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19207 | cat >>confdefs.h <<_ACEOF | |
19208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19209 | _ACEOF | |
19210 | ||
21d1c967 | 19211 | fi |
e6cc62c6 | 19212 | |
21d1c967 | 19213 | done |
f79bd02d | 19214 | |
e6cc62c6 VS |
19215 | if test "${ac_cv_header_windows_h+set}" = set; then |
19216 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19217 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19218 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19220 | fi | |
19221 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19222 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19223 | else | |
19224 | # Is the header compilable? | |
19225 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19226 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19227 | cat >conftest.$ac_ext <<_ACEOF | |
19228 | #line $LINENO "configure" | |
19229 | /* confdefs.h. */ | |
19230 | _ACEOF | |
19231 | cat confdefs.h >>conftest.$ac_ext | |
19232 | cat >>conftest.$ac_ext <<_ACEOF | |
19233 | /* end confdefs.h. */ | |
19234 | $ac_includes_default | |
247f5006 | 19235 | #include <windows.h> |
e6cc62c6 VS |
19236 | _ACEOF |
19237 | rm -f conftest.$ac_objext | |
19238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19239 | (eval $ac_compile) 2>&5 | |
19240 | ac_status=$? | |
19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 | (exit $ac_status); } && | |
19243 | { ac_try='test -s conftest.$ac_objext' | |
19244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19245 | (eval $ac_try) 2>&5 | |
19246 | ac_status=$? | |
19247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19248 | (exit $ac_status); }; }; then | |
19249 | ac_header_compiler=yes | |
19250 | else | |
19251 | echo "$as_me: failed program was:" >&5 | |
19252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19253 | ||
19254 | ac_header_compiler=no | |
19255 | fi | |
19256 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19257 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19258 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19259 | ||
19260 | # Is the header present? | |
19261 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19262 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19263 | cat >conftest.$ac_ext <<_ACEOF | |
19264 | #line $LINENO "configure" | |
19265 | /* confdefs.h. */ | |
19266 | _ACEOF | |
19267 | cat confdefs.h >>conftest.$ac_ext | |
19268 | cat >>conftest.$ac_ext <<_ACEOF | |
19269 | /* end confdefs.h. */ | |
19270 | #include <windows.h> | |
19271 | _ACEOF | |
19272 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19273 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19274 | ac_status=$? | |
19275 | grep -v '^ *+' conftest.er1 >conftest.err | |
19276 | rm -f conftest.er1 | |
19277 | cat conftest.err >&5 | |
19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19279 | (exit $ac_status); } >/dev/null; then | |
19280 | if test -s conftest.err; then | |
19281 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19282 | else | |
19283 | ac_cpp_err= | |
19284 | fi | |
19285 | else | |
19286 | ac_cpp_err=yes | |
19287 | fi | |
19288 | if test -z "$ac_cpp_err"; then | |
19289 | ac_header_preproc=yes | |
19290 | else | |
19291 | echo "$as_me: failed program was:" >&5 | |
19292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19293 | ||
19294 | ac_header_preproc=no | |
19295 | fi | |
19296 | rm -f conftest.err conftest.$ac_ext | |
19297 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19298 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19299 | ||
19300 | # So? What about this header? | |
19301 | case $ac_header_compiler:$ac_header_preproc in | |
19302 | yes:no ) | |
19303 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19304 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19305 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19306 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19307 | ( | |
19308 | cat <<\_ASBOX | |
19309 | ## ------------------------------------ ## | |
19310 | ## Report this to bug-autoconf@gnu.org. ## | |
19311 | ## ------------------------------------ ## | |
19312 | _ASBOX | |
19313 | ) | | |
19314 | sed "s/^/$as_me: WARNING: /" >&2 | |
19315 | ;; | |
19316 | no:yes ) | |
19317 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19318 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19319 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19320 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19321 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19322 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19323 | ( | |
19324 | cat <<\_ASBOX | |
19325 | ## ------------------------------------ ## | |
19326 | ## Report this to bug-autoconf@gnu.org. ## | |
19327 | ## ------------------------------------ ## | |
19328 | _ASBOX | |
19329 | ) | | |
19330 | sed "s/^/$as_me: WARNING: /" >&2 | |
19331 | ;; | |
19332 | esac | |
19333 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19334 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19335 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19337 | else | |
19338 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19339 | fi |
e6cc62c6 VS |
19340 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19341 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19342 | ||
90dd450c | 19343 | fi |
e6cc62c6 | 19344 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19345 | : |
90dd450c | 19346 | else |
21d1c967 | 19347 | |
e6cc62c6 VS |
19348 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19349 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19350 | { (exit 1); exit 1; }; } | |
19351 | ||
5c6fa7d2 | 19352 | fi |
7b4a847f | 19353 | |
5c6fa7d2 | 19354 | |
e6cc62c6 VS |
19355 | |
19356 | echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5 | |
19357 | echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6 | |
19358 | if test "${wx_cv_w32api_win32_ie+set}" = set; then | |
19359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 19360 | else |
e6cc62c6 VS |
19361 | |
19362 | cat >conftest.$ac_ext <<_ACEOF | |
19363 | #line $LINENO "configure" | |
19364 | /* confdefs.h. */ | |
19365 | _ACEOF | |
19366 | cat confdefs.h >>conftest.$ac_ext | |
19367 | cat >>conftest.$ac_ext <<_ACEOF | |
19368 | /* end confdefs.h. */ | |
21d1c967 | 19369 | #include <w32api.h> |
e6cc62c6 VS |
19370 | int |
19371 | main () | |
19372 | { | |
f79bd02d | 19373 | |
21d1c967 GD |
19374 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
19375 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
19376 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
19377 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
19378 | ||
19379 | #if !wxCHECK_W32API_VERSION(1,1) | |
19380 | #error You need w32api 1.1 or newer | |
19381 | #endif | |
e6cc62c6 VS |
19382 | |
19383 | ; | |
19384 | return 0; | |
19385 | } | |
19386 | _ACEOF | |
19387 | rm -f conftest.$ac_objext | |
19388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19389 | (eval $ac_compile) 2>&5 | |
19390 | ac_status=$? | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); } && | |
19393 | { ac_try='test -s conftest.$ac_objext' | |
19394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19395 | (eval $ac_try) 2>&5 | |
19396 | ac_status=$? | |
19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19398 | (exit $ac_status); }; }; then | |
19399 | ||
21d1c967 | 19400 | wx_cv_w32api_win32_ie=yes |
e6cc62c6 | 19401 | |
f79bd02d | 19402 | else |
e6cc62c6 VS |
19403 | echo "$as_me: failed program was:" >&5 |
19404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19405 | ||
19406 | ||
21d1c967 | 19407 | wx_cv_w32api_win32_ie=no |
e6cc62c6 | 19408 | |
247f5006 | 19409 | fi |
e6cc62c6 | 19410 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 19411 | |
e6cc62c6 VS |
19412 | fi |
19413 | echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5 | |
19414 | echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 | |
21d1c967 GD |
19415 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
19416 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
19417 | fi | |
f79bd02d | 19418 | |
b3dfbbc9 | 19419 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19420 | |
7bb2947d MB |
19421 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19422 | LIBS="$LIBS -loleacc" | |
19423 | fi | |
19424 | ||
21d1c967 GD |
19425 | case "${host}" in |
19426 | *-*-cygwin* ) | |
b3dfbbc9 | 19427 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19428 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19429 | esac |
f79bd02d | 19430 | |
8647bec6 RG |
19431 | if test "$wxUSE_ODBC" = "sys" ; then |
19432 | wxUSE_ODBC = "yes" | |
21d1c967 | 19433 | fi |
8647bec6 RG |
19434 | if test "$wxUSE_ODBC" = "yes" ; then |
19435 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19436 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19437 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19438 | _ACEOF |
f79bd02d | 19439 | |
8647bec6 | 19440 | fi |
e6cc62c6 | 19441 | |
21d1c967 GD |
19442 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19443 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19444 | |
19445 | WIN32INSTALL=win32install | |
f79bd02d | 19446 | fi |
f79bd02d | 19447 | |
b2fee376 | 19448 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 19449 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
19450 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
19451 | else | |
19452 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
19453 | fi | |
19454 | fi | |
19455 | ||
21d1c967 GD |
19456 | if test "$wxUSE_GUI" = "yes"; then |
19457 | USE_GUI=1 | |
f79bd02d | 19458 | |
21d1c967 | 19459 | GUI_TK_LIBRARY= |
f79bd02d | 19460 | |
21d1c967 GD |
19461 | WXGTK12= |
19462 | WXGTK127= | |
19463 | WXGTK20= | |
f79bd02d | 19464 | |
21d1c967 GD |
19465 | if test "$wxUSE_MSW" = 1 ; then |
19466 | TOOLKIT=MSW | |
19467 | GUIDIST=MSW_DIST | |
f79bd02d JS |
19468 | fi |
19469 | ||
21d1c967 | 19470 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19471 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19472 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19473 | |
19474 | gtk_version_cached=1 | |
e6cc62c6 VS |
19475 | if test "${wx_cv_lib_gtk+set}" = set; then |
19476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19477 | else |
e6cc62c6 | 19478 | |
21d1c967 | 19479 | gtk_version_cached=0 |
e6cc62c6 VS |
19480 | echo "$as_me:$LINENO: result: " >&5 |
19481 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19482 | |
21d1c967 GD |
19483 | GTK_MODULES= |
19484 | if test "$wxUSE_THREADS" = "yes"; then | |
19485 | GTK_MODULES=gthread | |
19486 | fi | |
f79bd02d | 19487 | |
2b5f62a0 | 19488 | wx_cv_lib_gtk= |
21d1c967 GD |
19489 | if test "x$wxUSE_GTK2" = "xyes"; then |
19490 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19491 | if test "${enable_gtktest+set}" = set; then | |
19492 | enableval="$enable_gtktest" | |
e6cc62c6 | 19493 | |
f79bd02d | 19494 | else |
21d1c967 | 19495 | enable_gtktest=yes |
e6cc62c6 | 19496 | fi; |
f79bd02d | 19497 | |
21d1c967 GD |
19498 | pkg_config_args=gtk+-2.0 |
19499 | for module in . $GTK_MODULES | |
19500 | do | |
19501 | case "$module" in | |
e6cc62c6 | 19502 | gthread) |
21d1c967 GD |
19503 | pkg_config_args="$pkg_config_args gthread-2.0" |
19504 | ;; | |
19505 | esac | |
19506 | done | |
19507 | ||
19508 | no_gtk="" | |
f79bd02d | 19509 | |
21d1c967 GD |
19510 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19511 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19514 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19516 | else |
e6cc62c6 VS |
19517 | case $PKG_CONFIG in |
19518 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19519 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19520 | ;; | |
21d1c967 | 19521 | *) |
e6cc62c6 VS |
19522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19523 | for as_dir in $PATH | |
19524 | do | |
19525 | IFS=$as_save_IFS | |
19526 | test -z "$as_dir" && as_dir=. | |
19527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19529 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19531 | break 2 | |
19532 | fi | |
19533 | done | |
19534 | done | |
19535 | ||
21d1c967 GD |
19536 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19537 | ;; | |
19538 | esac | |
f79bd02d | 19539 | fi |
e6cc62c6 VS |
19540 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19541 | ||
21d1c967 | 19542 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19543 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19544 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19545 | else |
e6cc62c6 VS |
19546 | echo "$as_me:$LINENO: result: no" >&5 |
19547 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19548 | fi |
19549 | ||
8284b0c5 | 19550 | |
21d1c967 GD |
19551 | if test x$PKG_CONFIG != xno ; then |
19552 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19553 | : | |
19554 | else | |
19555 | echo *** pkg-config too old; version 0.7 or better required. | |
19556 | no_gtk=yes | |
19557 | PKG_CONFIG=no | |
19558 | fi | |
19559 | else | |
19560 | no_gtk=yes | |
19561 | fi | |
f79bd02d | 19562 | |
21d1c967 | 19563 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
19564 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
19565 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 19566 | |
21d1c967 GD |
19567 | if test x$PKG_CONFIG != xno ; then |
19568 | ## don't try to run the test against uninstalled libtool libs | |
19569 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19570 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19571 | enable_gtktest=no | |
19572 | fi | |
f79bd02d | 19573 | |
21d1c967 GD |
19574 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
19575 | : | |
19576 | else | |
19577 | no_gtk=yes | |
19578 | fi | |
19579 | fi | |
f79bd02d | 19580 | |
21d1c967 GD |
19581 | if test x"$no_gtk" = x ; then |
19582 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19583 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19584 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19585 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19586 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19587 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19588 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19589 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19590 | if test "x$enable_gtktest" = "xyes" ; then | |
19591 | ac_save_CFLAGS="$CFLAGS" | |
19592 | ac_save_LIBS="$LIBS" | |
19593 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19594 | LIBS="$GTK_LIBS $LIBS" | |
19595 | rm -f conf.gtktest | |
19596 | if test "$cross_compiling" = yes; then | |
19597 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19598 | else |
e6cc62c6 VS |
19599 | cat >conftest.$ac_ext <<_ACEOF |
19600 | #line $LINENO "configure" | |
19601 | /* confdefs.h. */ | |
19602 | _ACEOF | |
19603 | cat confdefs.h >>conftest.$ac_ext | |
19604 | cat >>conftest.$ac_ext <<_ACEOF | |
19605 | /* end confdefs.h. */ | |
f79bd02d | 19606 | |
21d1c967 GD |
19607 | #include <gtk/gtk.h> |
19608 | #include <stdio.h> | |
19609 | #include <stdlib.h> | |
f79bd02d | 19610 | |
e6cc62c6 | 19611 | int |
21d1c967 GD |
19612 | main () |
19613 | { | |
19614 | int major, minor, micro; | |
19615 | char *tmp_version; | |
f79bd02d | 19616 | |
21d1c967 | 19617 | system ("touch conf.gtktest"); |
f79bd02d | 19618 | |
21d1c967 GD |
19619 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19620 | tmp_version = g_strdup("$min_gtk_version"); | |
19621 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19622 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19623 | exit(1); | |
19624 | } | |
f79bd02d | 19625 | |
21d1c967 GD |
19626 | if ((gtk_major_version != $gtk_config_major_version) || |
19627 | (gtk_minor_version != $gtk_config_minor_version) || | |
19628 | (gtk_micro_version != $gtk_config_micro_version)) | |
19629 | { | |
e6cc62c6 | 19630 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19631 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19632 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19633 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19634 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19635 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19636 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19637 | printf("*** required on your system.\n"); | |
19638 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19639 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 19640 | } |
21d1c967 GD |
19641 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
19642 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19643 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19644 | { | |
19645 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19646 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19647 | printf("*** library (version %d.%d.%d)\n", | |
19648 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19649 | } | |
19650 | else | |
19651 | { | |
19652 | if ((gtk_major_version > major) || | |
19653 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19654 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19655 | { | |
19656 | return 0; | |
19657 | } | |
19658 | else | |
19659 | { | |
19660 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19661 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19662 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19663 | major, minor, micro); | |
19664 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19665 | printf("***\n"); | |
19666 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19667 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19668 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19669 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19670 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19671 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19672 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19673 | } | |
19674 | } | |
19675 | return 1; | |
19676 | } | |
f79bd02d | 19677 | |
e6cc62c6 VS |
19678 | _ACEOF |
19679 | rm -f conftest$ac_exeext | |
19680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19681 | (eval $ac_link) 2>&5 | |
19682 | ac_status=$? | |
19683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19686 | (eval $ac_try) 2>&5 | |
19687 | ac_status=$? | |
19688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19689 | (exit $ac_status); }; }; then | |
21d1c967 | 19690 | : |
f79bd02d | 19691 | else |
e6cc62c6 VS |
19692 | echo "$as_me: program exited with status $ac_status" >&5 |
19693 | echo "$as_me: failed program was:" >&5 | |
19694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19695 | ||
19696 | ( exit $ac_status ) | |
19697 | no_gtk=yes | |
f79bd02d | 19698 | fi |
e6cc62c6 | 19699 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 19700 | fi |
21d1c967 GD |
19701 | CFLAGS="$ac_save_CFLAGS" |
19702 | LIBS="$ac_save_LIBS" | |
19703 | fi | |
19704 | fi | |
19705 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19706 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
19707 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
19708 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 19709 | else |
e6cc62c6 VS |
19710 | echo "$as_me:$LINENO: result: no" >&5 |
19711 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19712 | if test "$PKG_CONFIG" = "no" ; then |
19713 | echo "*** A new enough version of pkg-config was not found." | |
19714 | echo "*** See http://pkgconfig.sourceforge.net" | |
19715 | else | |
19716 | if test -f conf.gtktest ; then | |
19717 | : | |
19718 | else | |
19719 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
19720 | ac_save_CFLAGS="$CFLAGS" |
19721 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
19722 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
19723 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19724 | cat >conftest.$ac_ext <<_ACEOF |
19725 | #line $LINENO "configure" | |
19726 | /* confdefs.h. */ | |
19727 | _ACEOF | |
19728 | cat confdefs.h >>conftest.$ac_ext | |
19729 | cat >>conftest.$ac_ext <<_ACEOF | |
19730 | /* end confdefs.h. */ | |
21d1c967 GD |
19731 | |
19732 | #include <gtk/gtk.h> | |
19733 | #include <stdio.h> | |
f79bd02d | 19734 | |
e6cc62c6 VS |
19735 | int |
19736 | main () | |
19737 | { | |
19738 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19739 | ; | |
19740 | return 0; | |
19741 | } | |
19742 | _ACEOF | |
19743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19745 | (eval $ac_link) 2>&5 | |
19746 | ac_status=$? | |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); } && | |
19749 | { ac_try='test -s conftest$ac_exeext' | |
19750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19751 | (eval $ac_try) 2>&5 | |
19752 | ac_status=$? | |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19754 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19755 | echo "*** The test program compiled, but did not run. This usually means" |
19756 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
19757 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
19758 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19759 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19760 | echo "*** is required on your system" | |
19761 | echo "***" | |
19762 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 19763 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 19764 | else |
e6cc62c6 VS |
19765 | echo "$as_me: failed program was:" >&5 |
19766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19767 | ||
19768 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 19769 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 19770 | fi |
e6cc62c6 | 19771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
19772 | CFLAGS="$ac_save_CFLAGS" |
19773 | LIBS="$ac_save_LIBS" | |
19774 | fi | |
19775 | fi | |
19776 | GTK_CFLAGS="" | |
19777 | GTK_LIBS="" | |
19778 | : | |
19779 | fi | |
e6cc62c6 VS |
19780 | |
19781 | ||
21d1c967 | 19782 | rm -f conf.gtktest |
f79bd02d | 19783 | |
2b5f62a0 | 19784 | else |
e6cc62c6 VS |
19785 | |
19786 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
19787 | if test "${with_gtk_prefix+set}" = set; then |
19788 | withval="$with_gtk_prefix" | |
19789 | gtk_config_prefix="$withval" | |
19790 | else | |
19791 | gtk_config_prefix="" | |
e6cc62c6 | 19792 | fi; |
f79bd02d | 19793 | |
21d1c967 GD |
19794 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
19795 | if test "${with_gtk_exec_prefix+set}" = set; then | |
19796 | withval="$with_gtk_exec_prefix" | |
19797 | gtk_config_exec_prefix="$withval" | |
19798 | else | |
19799 | gtk_config_exec_prefix="" | |
e6cc62c6 | 19800 | fi; |
21d1c967 GD |
19801 | # Check whether --enable-gtktest or --disable-gtktest was given. |
19802 | if test "${enable_gtktest+set}" = set; then | |
19803 | enableval="$enable_gtktest" | |
e6cc62c6 | 19804 | |
21d1c967 GD |
19805 | else |
19806 | enable_gtktest=yes | |
e6cc62c6 | 19807 | fi; |
21d1c967 GD |
19808 | |
19809 | for module in . $GTK_MODULES | |
19810 | do | |
19811 | case "$module" in | |
e6cc62c6 | 19812 | gthread) |
21d1c967 GD |
19813 | gtk_config_args="$gtk_config_args gthread" |
19814 | ;; | |
19815 | esac | |
19816 | done | |
19817 | ||
19818 | if test x$gtk_config_exec_prefix != x ; then | |
19819 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
19820 | if test x${GTK_CONFIG+set} != xset ; then | |
19821 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
19822 | fi | |
19823 | fi | |
19824 | if test x$gtk_config_prefix != x ; then | |
19825 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
19826 | if test x${GTK_CONFIG+set} != xset ; then | |
19827 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
19828 | fi | |
19829 | fi | |
19830 | ||
19831 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
19832 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
19833 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19835 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
19836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19837 | else |
e6cc62c6 VS |
19838 | case $GTK_CONFIG in |
19839 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19840 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
19841 | ;; | |
21d1c967 | 19842 | *) |
e6cc62c6 VS |
19843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19844 | for as_dir in $PATH | |
19845 | do | |
19846 | IFS=$as_save_IFS | |
19847 | test -z "$as_dir" && as_dir=. | |
19848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19850 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19852 | break 2 | |
19853 | fi | |
19854 | done | |
19855 | done | |
19856 | ||
21d1c967 GD |
19857 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
19858 | ;; | |
19859 | esac | |
19860 | fi | |
e6cc62c6 VS |
19861 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
19862 | ||
21d1c967 | 19863 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
19864 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
19865 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 19866 | else |
e6cc62c6 VS |
19867 | echo "$as_me:$LINENO: result: no" >&5 |
19868 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19869 | fi |
19870 | ||
19871 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
19872 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
19873 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
19874 | no_gtk="" |
19875 | if test "$GTK_CONFIG" = "no" ; then | |
19876 | no_gtk=yes | |
19877 | else | |
19878 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
19879 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
19880 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19881 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19882 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19883 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19884 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19885 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19886 | if test "x$enable_gtktest" = "xyes" ; then | |
19887 | ac_save_CFLAGS="$CFLAGS" | |
19888 | ac_save_LIBS="$LIBS" | |
19889 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19890 | LIBS="$GTK_LIBS $LIBS" | |
19891 | rm -f conf.gtktest | |
19892 | if test "$cross_compiling" = yes; then | |
19893 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19894 | else |
e6cc62c6 VS |
19895 | cat >conftest.$ac_ext <<_ACEOF |
19896 | #line $LINENO "configure" | |
19897 | /* confdefs.h. */ | |
19898 | _ACEOF | |
19899 | cat confdefs.h >>conftest.$ac_ext | |
19900 | cat >>conftest.$ac_ext <<_ACEOF | |
19901 | /* end confdefs.h. */ | |
f79bd02d | 19902 | |
21d1c967 GD |
19903 | #include <gtk/gtk.h> |
19904 | #include <stdio.h> | |
19905 | #include <stdlib.h> | |
f79bd02d | 19906 | |
e6cc62c6 | 19907 | int |
21d1c967 GD |
19908 | main () |
19909 | { | |
19910 | int major, minor, micro; | |
19911 | char *tmp_version; | |
19912 | ||
19913 | system ("touch conf.gtktest"); | |
19914 | ||
19915 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
19916 | tmp_version = g_strdup("$min_gtk_version"); | |
19917 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19918 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19919 | exit(1); | |
19920 | } | |
90dd450c | 19921 | |
21d1c967 GD |
19922 | if ((gtk_major_version != $gtk_config_major_version) || |
19923 | (gtk_minor_version != $gtk_config_minor_version) || | |
19924 | (gtk_micro_version != $gtk_config_micro_version)) | |
19925 | { | |
e6cc62c6 | 19926 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19927 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19928 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19929 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
19930 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19931 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19932 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19933 | printf("*** required on your system.\n"); | |
19934 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
19935 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
19936 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 19937 | } |
21d1c967 GD |
19938 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
19939 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
19940 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19941 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19942 | { | |
19943 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19944 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19945 | printf("*** library (version %d.%d.%d)\n", | |
19946 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19947 | } | |
19948 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
19949 | else | |
19950 | { | |
19951 | if ((gtk_major_version > major) || | |
19952 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19953 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19954 | { | |
19955 | return 0; | |
19956 | } | |
19957 | else | |
19958 | { | |
19959 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19960 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19961 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19962 | major, minor, micro); | |
19963 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19964 | printf("***\n"); | |
19965 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19966 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
19967 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19968 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
19969 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
19970 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19971 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19972 | } | |
19973 | } | |
19974 | return 1; | |
19975 | } | |
19976 | ||
e6cc62c6 VS |
19977 | _ACEOF |
19978 | rm -f conftest$ac_exeext | |
19979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19980 | (eval $ac_link) 2>&5 | |
19981 | ac_status=$? | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19985 | (eval $ac_try) 2>&5 | |
19986 | ac_status=$? | |
19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19988 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19989 | : |
19990 | else | |
e6cc62c6 VS |
19991 | echo "$as_me: program exited with status $ac_status" >&5 |
19992 | echo "$as_me: failed program was:" >&5 | |
19993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19994 | ||
19995 | ( exit $ac_status ) | |
19996 | no_gtk=yes | |
21d1c967 | 19997 | fi |
e6cc62c6 | 19998 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 19999 | fi |
21d1c967 GD |
20000 | CFLAGS="$ac_save_CFLAGS" |
20001 | LIBS="$ac_save_LIBS" | |
20002 | fi | |
20003 | fi | |
20004 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20005 | echo "$as_me:$LINENO: result: yes" >&5 |
20006 | echo "${ECHO_T}yes" >&6 | |
20007 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20008 | else |
e6cc62c6 VS |
20009 | echo "$as_me:$LINENO: result: no" >&5 |
20010 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20011 | if test "$GTK_CONFIG" = "no" ; then |
20012 | echo "*** The gtk-config script installed by GTK could not be found" | |
20013 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20014 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20015 | echo "*** full path to gtk-config." | |
20016 | else | |
20017 | if test -f conf.gtktest ; then | |
20018 | : | |
20019 | else | |
20020 | echo "*** Could not run GTK test program, checking why..." | |
20021 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20022 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20023 | cat >conftest.$ac_ext <<_ACEOF |
20024 | #line $LINENO "configure" | |
20025 | /* confdefs.h. */ | |
20026 | _ACEOF | |
20027 | cat confdefs.h >>conftest.$ac_ext | |
20028 | cat >>conftest.$ac_ext <<_ACEOF | |
20029 | /* end confdefs.h. */ | |
21d1c967 GD |
20030 | |
20031 | #include <gtk/gtk.h> | |
20032 | #include <stdio.h> | |
20033 | ||
e6cc62c6 VS |
20034 | int |
20035 | main () | |
20036 | { | |
20037 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20038 | ; | |
20039 | return 0; | |
20040 | } | |
20041 | _ACEOF | |
20042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20044 | (eval $ac_link) 2>&5 | |
20045 | ac_status=$? | |
20046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20047 | (exit $ac_status); } && | |
20048 | { ac_try='test -s conftest$ac_exeext' | |
20049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20050 | (eval $ac_try) 2>&5 | |
20051 | ac_status=$? | |
20052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20053 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20054 | echo "*** The test program compiled, but did not run. This usually means" |
20055 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20056 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20057 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20058 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20059 | echo "*** is required on your system" | |
20060 | echo "***" | |
20061 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20062 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20063 | echo "***" | |
20064 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20065 | echo "*** came with the system with the command" | |
20066 | echo "***" | |
e6cc62c6 | 20067 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20068 | else |
e6cc62c6 VS |
20069 | echo "$as_me: failed program was:" >&5 |
20070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20071 | ||
20072 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20073 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20074 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20075 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20076 | fi |
e6cc62c6 | 20077 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20078 | CFLAGS="$ac_save_CFLAGS" |
20079 | LIBS="$ac_save_LIBS" | |
20080 | fi | |
20081 | fi | |
20082 | GTK_CFLAGS="" | |
20083 | GTK_LIBS="" | |
20084 | : | |
20085 | fi | |
e6cc62c6 VS |
20086 | |
20087 | ||
21d1c967 GD |
20088 | rm -f conf.gtktest |
20089 | ||
21d1c967 | 20090 | |
2b5f62a0 | 20091 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20092 | |
20093 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20094 | if test "${with_gtk_prefix+set}" = set; then |
20095 | withval="$with_gtk_prefix" | |
20096 | gtk_config_prefix="$withval" | |
20097 | else | |
20098 | gtk_config_prefix="" | |
e6cc62c6 | 20099 | fi; |
f79bd02d | 20100 | |
21d1c967 GD |
20101 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20102 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20103 | withval="$with_gtk_exec_prefix" | |
20104 | gtk_config_exec_prefix="$withval" | |
20105 | else | |
20106 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20107 | fi; |
21d1c967 GD |
20108 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20109 | if test "${enable_gtktest+set}" = set; then | |
20110 | enableval="$enable_gtktest" | |
e6cc62c6 | 20111 | |
90dd450c | 20112 | else |
21d1c967 | 20113 | enable_gtktest=yes |
e6cc62c6 | 20114 | fi; |
21d1c967 GD |
20115 | |
20116 | for module in . $GTK_MODULES | |
20117 | do | |
20118 | case "$module" in | |
e6cc62c6 | 20119 | gthread) |
21d1c967 GD |
20120 | gtk_config_args="$gtk_config_args gthread" |
20121 | ;; | |
20122 | esac | |
20123 | done | |
20124 | ||
20125 | if test x$gtk_config_exec_prefix != x ; then | |
20126 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20127 | if test x${GTK_CONFIG+set} != xset ; then | |
20128 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20129 | fi | |
20130 | fi | |
20131 | if test x$gtk_config_prefix != x ; then | |
20132 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20133 | if test x${GTK_CONFIG+set} != xset ; then | |
20134 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20135 | fi | |
20136 | fi | |
20137 | ||
20138 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20139 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20140 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20142 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20144 | else |
e6cc62c6 VS |
20145 | case $GTK_CONFIG in |
20146 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20147 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20148 | ;; | |
21d1c967 | 20149 | *) |
e6cc62c6 VS |
20150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20151 | for as_dir in $PATH | |
20152 | do | |
20153 | IFS=$as_save_IFS | |
20154 | test -z "$as_dir" && as_dir=. | |
20155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20157 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20159 | break 2 | |
20160 | fi | |
20161 | done | |
20162 | done | |
20163 | ||
21d1c967 GD |
20164 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20165 | ;; | |
20166 | esac | |
20167 | fi | |
e6cc62c6 VS |
20168 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20169 | ||
21d1c967 | 20170 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20171 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20172 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20173 | else |
e6cc62c6 VS |
20174 | echo "$as_me:$LINENO: result: no" >&5 |
20175 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20176 | fi |
20177 | ||
20178 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20179 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20180 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20181 | no_gtk="" |
20182 | if test "$GTK_CONFIG" = "no" ; then | |
20183 | no_gtk=yes | |
20184 | else | |
20185 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20186 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20187 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20188 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20189 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20190 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20191 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20192 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20193 | if test "x$enable_gtktest" = "xyes" ; then | |
20194 | ac_save_CFLAGS="$CFLAGS" | |
20195 | ac_save_LIBS="$LIBS" | |
20196 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20197 | LIBS="$GTK_LIBS $LIBS" | |
20198 | rm -f conf.gtktest | |
20199 | if test "$cross_compiling" = yes; then | |
20200 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20201 | else | |
e6cc62c6 VS |
20202 | cat >conftest.$ac_ext <<_ACEOF |
20203 | #line $LINENO "configure" | |
20204 | /* confdefs.h. */ | |
20205 | _ACEOF | |
20206 | cat confdefs.h >>conftest.$ac_ext | |
20207 | cat >>conftest.$ac_ext <<_ACEOF | |
20208 | /* end confdefs.h. */ | |
21d1c967 GD |
20209 | |
20210 | #include <gtk/gtk.h> | |
20211 | #include <stdio.h> | |
20212 | #include <stdlib.h> | |
20213 | ||
e6cc62c6 | 20214 | int |
21d1c967 GD |
20215 | main () |
20216 | { | |
20217 | int major, minor, micro; | |
20218 | char *tmp_version; | |
20219 | ||
20220 | system ("touch conf.gtktest"); | |
20221 | ||
20222 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20223 | tmp_version = g_strdup("$min_gtk_version"); | |
20224 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20225 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20226 | exit(1); | |
20227 | } | |
20228 | ||
20229 | if ((gtk_major_version != $gtk_config_major_version) || | |
20230 | (gtk_minor_version != $gtk_config_minor_version) || | |
20231 | (gtk_micro_version != $gtk_config_micro_version)) | |
20232 | { | |
e6cc62c6 | 20233 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20234 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20235 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20236 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20237 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20238 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20239 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20240 | printf("*** required on your system.\n"); | |
20241 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20242 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20243 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20244 | } |
21d1c967 GD |
20245 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20246 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20247 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20248 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20249 | { | |
20250 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20251 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20252 | printf("*** library (version %d.%d.%d)\n", | |
20253 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20254 | } | |
20255 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20256 | else | |
20257 | { | |
20258 | if ((gtk_major_version > major) || | |
20259 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20260 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20261 | { | |
20262 | return 0; | |
20263 | } | |
20264 | else | |
20265 | { | |
20266 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20267 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20268 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20269 | major, minor, micro); | |
20270 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20271 | printf("***\n"); | |
20272 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20273 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20274 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20275 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20276 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20277 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20278 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20279 | } | |
20280 | } | |
20281 | return 1; | |
20282 | } | |
20283 | ||
e6cc62c6 VS |
20284 | _ACEOF |
20285 | rm -f conftest$ac_exeext | |
20286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20287 | (eval $ac_link) 2>&5 | |
20288 | ac_status=$? | |
20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20290 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20292 | (eval $ac_try) 2>&5 | |
20293 | ac_status=$? | |
20294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20295 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20296 | : |
20297 | else | |
e6cc62c6 VS |
20298 | echo "$as_me: program exited with status $ac_status" >&5 |
20299 | echo "$as_me: failed program was:" >&5 | |
20300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20301 | ||
20302 | ( exit $ac_status ) | |
20303 | no_gtk=yes | |
21d1c967 | 20304 | fi |
e6cc62c6 | 20305 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20306 | fi |
21d1c967 GD |
20307 | CFLAGS="$ac_save_CFLAGS" |
20308 | LIBS="$ac_save_LIBS" | |
20309 | fi | |
20310 | fi | |
20311 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20312 | echo "$as_me:$LINENO: result: yes" >&5 |
20313 | echo "${ECHO_T}yes" >&6 | |
20314 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20315 | else |
e6cc62c6 VS |
20316 | echo "$as_me:$LINENO: result: no" >&5 |
20317 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20318 | if test "$GTK_CONFIG" = "no" ; then |
20319 | echo "*** The gtk-config script installed by GTK could not be found" | |
20320 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20321 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20322 | echo "*** full path to gtk-config." | |
20323 | else | |
20324 | if test -f conf.gtktest ; then | |
20325 | : | |
20326 | else | |
20327 | echo "*** Could not run GTK test program, checking why..." | |
20328 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20329 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20330 | cat >conftest.$ac_ext <<_ACEOF |
20331 | #line $LINENO "configure" | |
20332 | /* confdefs.h. */ | |
20333 | _ACEOF | |
20334 | cat confdefs.h >>conftest.$ac_ext | |
20335 | cat >>conftest.$ac_ext <<_ACEOF | |
20336 | /* end confdefs.h. */ | |
21d1c967 GD |
20337 | |
20338 | #include <gtk/gtk.h> | |
20339 | #include <stdio.h> | |
f79bd02d | 20340 | |
e6cc62c6 VS |
20341 | int |
20342 | main () | |
20343 | { | |
20344 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20345 | ; | |
20346 | return 0; | |
20347 | } | |
20348 | _ACEOF | |
20349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20351 | (eval $ac_link) 2>&5 | |
20352 | ac_status=$? | |
20353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20354 | (exit $ac_status); } && | |
20355 | { ac_try='test -s conftest$ac_exeext' | |
20356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20357 | (eval $ac_try) 2>&5 | |
20358 | ac_status=$? | |
20359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20360 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20361 | echo "*** The test program compiled, but did not run. This usually means" |
20362 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20363 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20364 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20365 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20366 | echo "*** is required on your system" | |
20367 | echo "***" | |
20368 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20369 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20370 | echo "***" | |
20371 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20372 | echo "*** came with the system with the command" | |
20373 | echo "***" | |
e6cc62c6 | 20374 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20375 | else |
e6cc62c6 VS |
20376 | echo "$as_me: failed program was:" >&5 |
20377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20378 | ||
20379 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20380 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20381 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20382 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20383 | fi |
e6cc62c6 | 20384 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20385 | CFLAGS="$ac_save_CFLAGS" |
20386 | LIBS="$ac_save_LIBS" | |
20387 | fi | |
20388 | fi | |
20389 | GTK_CFLAGS="" | |
20390 | GTK_LIBS="" | |
20391 | : | |
20392 | fi | |
e6cc62c6 VS |
20393 | |
20394 | ||
21d1c967 | 20395 | rm -f conf.gtktest |
f79bd02d | 20396 | |
2b5f62a0 | 20397 | fi |
21d1c967 GD |
20398 | fi |
20399 | ||
20400 | if test -z "$wx_cv_lib_gtk"; then | |
20401 | wx_cv_lib_gtk=none | |
20402 | else | |
20403 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20404 | wx_cv_libs_gtk=$GTK_LIBS | |
20405 | fi | |
e6cc62c6 VS |
20406 | |
20407 | ||
5c6fa7d2 | 20408 | fi |
52127426 | 20409 | |
8284b0c5 | 20410 | |
21d1c967 | 20411 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20412 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20413 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20414 | fi |
20415 | ||
20416 | case "$wx_cv_lib_gtk" in | |
20417 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20418 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20419 | ;; |
20420 | 1.2.7) WXGTK127=1 | |
20421 | WXGTK12=1 | |
20422 | ;; | |
20423 | 1.2.3) WXGTK12=1 | |
20424 | ;; | |
e6cc62c6 VS |
20425 | *) { { echo "$as_me:$LINENO: error: |
20426 | Please check that gtk-config is in path, the directory | |
20427 | where GTK+ libraries are installed (returned by | |
20428 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20429 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20430 | " >&5 | |
20431 | echo "$as_me: error: | |
247f5006 VZ |
20432 | Please check that gtk-config is in path, the directory |
20433 | where GTK+ libraries are installed (returned by | |
20434 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20435 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20436 | " >&2;} |
20437 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20438 | ;; |
20439 | esac | |
20440 | ||
b13cd66e VZ |
20441 | if test "$WXGTK20" = 1; then |
20442 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20443 | |
f09359cf VS |
20444 | succeeded=no |
20445 | ||
20446 | if test -z "$PKG_CONFIG"; then | |
20447 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20448 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20451 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20453 | else |
e6cc62c6 VS |
20454 | case $PKG_CONFIG in |
20455 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20456 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20457 | ;; | |
f09359cf | 20458 | *) |
e6cc62c6 VS |
20459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20460 | for as_dir in $PATH | |
20461 | do | |
20462 | IFS=$as_save_IFS | |
20463 | test -z "$as_dir" && as_dir=. | |
20464 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20465 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20466 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20468 | break 2 | |
20469 | fi | |
20470 | done | |
20471 | done | |
20472 | ||
f09359cf VS |
20473 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20474 | ;; | |
20475 | esac | |
20476 | fi | |
e6cc62c6 VS |
20477 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20478 | ||
f09359cf | 20479 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20480 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20481 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20482 | else |
e6cc62c6 VS |
20483 | echo "$as_me:$LINENO: result: no" >&5 |
20484 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20485 | fi |
20486 | ||
20487 | fi | |
20488 | ||
20489 | if test "$PKG_CONFIG" = "no" ; then | |
20490 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20491 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20492 | echo "*** to the full path to pkg-config." | |
20493 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20494 | else | |
20495 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20496 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20497 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20498 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20499 | |
20500 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20501 | echo "$as_me:$LINENO: result: yes" >&5 |
20502 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20503 | succeeded=yes |
20504 | ||
e6cc62c6 VS |
20505 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20506 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20507 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20508 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20509 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20510 | |
e6cc62c6 VS |
20511 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20512 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20513 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20514 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20515 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20516 | else |
20517 | PANGOFT2_CFLAGS="" | |
20518 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20519 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20520 | ## do set a variable so people can do so. |
20521 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20522 | |
f09359cf VS |
20523 | fi |
20524 | ||
e6cc62c6 VS |
20525 | |
20526 | ||
f09359cf VS |
20527 | else |
20528 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20529 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20530 | fi | |
20531 | fi | |
20532 | ||
20533 | if test $succeeded = yes; then | |
e6cc62c6 | 20534 | |
b13cd66e | 20535 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20536 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20537 | |
f09359cf | 20538 | else |
e6cc62c6 VS |
20539 | |
20540 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20541 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20542 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20543 | |
20544 | ||
f09359cf VS |
20545 | fi |
20546 | ||
b13cd66e | 20547 | fi |
2b5f62a0 VZ |
20548 | else |
20549 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20550 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20551 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20552 | wxUSE_UNICODE=no |
20553 | fi | |
20554 | fi | |
20555 | ||
20556 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
20557 | |
20558 | for ac_func in poll | |
2b5f62a0 | 20559 | do |
e6cc62c6 VS |
20560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20565 | else | |
20566 | cat >conftest.$ac_ext <<_ACEOF | |
20567 | #line $LINENO "configure" | |
20568 | /* confdefs.h. */ | |
20569 | _ACEOF | |
20570 | cat confdefs.h >>conftest.$ac_ext | |
20571 | cat >>conftest.$ac_ext <<_ACEOF | |
20572 | /* end confdefs.h. */ | |
2b5f62a0 | 20573 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
20574 | which can conflict with char $ac_func (); below. |
20575 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20576 | <limits.h> exists even on freestanding compilers. */ | |
20577 | #ifdef __STDC__ | |
20578 | # include <limits.h> | |
20579 | #else | |
20580 | # include <assert.h> | |
20581 | #endif | |
2b5f62a0 | 20582 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20583 | #ifdef __cplusplus |
20584 | extern "C" | |
20585 | { | |
20586 | #endif | |
2b5f62a0 | 20587 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20588 | builtin and then its argument prototype would still apply. */ |
20589 | char $ac_func (); | |
2b5f62a0 VZ |
20590 | /* The GNU C library defines this for functions which it implements |
20591 | to always fail with ENOSYS. Some functions are actually named | |
20592 | something starting with __ and the normal name is an alias. */ | |
20593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20594 | choke me | |
20595 | #else | |
e6cc62c6 VS |
20596 | char (*f) () = $ac_func; |
20597 | #endif | |
20598 | #ifdef __cplusplus | |
20599 | } | |
2b5f62a0 VZ |
20600 | #endif |
20601 | ||
e6cc62c6 VS |
20602 | int |
20603 | main () | |
20604 | { | |
20605 | return f != $ac_func; | |
20606 | ; | |
20607 | return 0; | |
20608 | } | |
20609 | _ACEOF | |
20610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20612 | (eval $ac_link) 2>&5 | |
20613 | ac_status=$? | |
20614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20615 | (exit $ac_status); } && | |
20616 | { ac_try='test -s conftest$ac_exeext' | |
20617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20618 | (eval $ac_try) 2>&5 | |
20619 | ac_status=$? | |
20620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20621 | (exit $ac_status); }; }; then | |
20622 | eval "$as_ac_var=yes" | |
20623 | else | |
20624 | echo "$as_me: failed program was:" >&5 | |
20625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20626 | ||
20627 | eval "$as_ac_var=no" | |
20628 | fi | |
20629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20630 | fi | |
20631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20632 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20633 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20634 | cat >>confdefs.h <<_ACEOF | |
20635 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20636 | _ACEOF | |
2b5f62a0 | 20637 | |
2b5f62a0 VZ |
20638 | fi |
20639 | done | |
20640 | ||
f09359cf VS |
20641 | fi |
20642 | ||
21d1c967 | 20643 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 20644 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
20645 | |
20646 | AFMINSTALL=afminstall | |
20647 | TOOLKIT=GTK | |
20648 | GUIDIST=GTK_DIST | |
20649 | ||
e6cc62c6 VS |
20650 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
20651 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20652 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20654 | else |
e6cc62c6 | 20655 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20656 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
20657 | cat >conftest.$ac_ext <<_ACEOF |
20658 | #line $LINENO "configure" | |
20659 | /* confdefs.h. */ | |
20660 | _ACEOF | |
20661 | cat confdefs.h >>conftest.$ac_ext | |
20662 | cat >>conftest.$ac_ext <<_ACEOF | |
20663 | /* end confdefs.h. */ | |
20664 | ||
5c6fa7d2 | 20665 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20666 | #ifdef __cplusplus |
20667 | extern "C" | |
20668 | #endif | |
5c6fa7d2 | 20669 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20670 | builtin and then its argument prototype would still apply. */ |
20671 | char gdk_im_open (); | |
20672 | int | |
20673 | main () | |
20674 | { | |
20675 | gdk_im_open (); | |
20676 | ; | |
20677 | return 0; | |
20678 | } | |
20679 | _ACEOF | |
20680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20682 | (eval $ac_link) 2>&5 | |
20683 | ac_status=$? | |
20684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20685 | (exit $ac_status); } && | |
20686 | { ac_try='test -s conftest$ac_exeext' | |
20687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20688 | (eval $ac_try) 2>&5 | |
20689 | ac_status=$? | |
20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20691 | (exit $ac_status); }; }; then | |
20692 | ac_cv_lib_gdk_gdk_im_open=yes | |
20693 | else | |
20694 | echo "$as_me: failed program was:" >&5 | |
20695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20696 | ||
20697 | ac_cv_lib_gdk_gdk_im_open=no | |
20698 | fi | |
20699 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20700 | LIBS=$ac_check_lib_save_LIBS | |
20701 | fi | |
20702 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
20703 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
20704 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
20705 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20706 | #define HAVE_XIM 1 |
e6cc62c6 | 20707 | _ACEOF |
21d1c967 | 20708 | |
90dd450c | 20709 | fi |
1e6feb95 | 20710 | |
21d1c967 | 20711 | fi |
1e6feb95 | 20712 | |
21d1c967 | 20713 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
20714 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
20715 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 20716 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
20717 | echo "$as_me:$LINENO: result: not found" >&5 |
20718 | echo "${ECHO_T}not found" >&6 | |
20719 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
20720 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
20721 | { (exit 1); exit 1; }; } | |
21d1c967 | 20722 | else |
e6cc62c6 VS |
20723 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
20724 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
20725 | fi |
20726 | ||
e6cc62c6 VS |
20727 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
20728 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
20729 | case "${host}" in |
20730 | *-*-linux* ) | |
63a76696 VS |
20731 | if test "x$wxUSE_SHARED" = xyes ; then |
20732 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
20733 | else | |
20734 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
20735 | fi | |
21d1c967 GD |
20736 | ;; |
20737 | *-pc-msdosdjgpp ) | |
63a76696 | 20738 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
20739 | ;; |
20740 | *) | |
e6cc62c6 VS |
20741 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
20742 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
20743 | { (exit 1); exit 1; }; } | |
21d1c967 | 20744 | esac |
1e6feb95 | 20745 | |
21d1c967 | 20746 | mgl_lib_type="" |
63a76696 VS |
20747 | mgl_os="" |
20748 | ||
20749 | for mgl_os_i in $mgl_os_candidates ; do | |
20750 | if test "x$mgl_os" = x ; then | |
20751 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
20752 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
20753 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
20754 | mgl_lib_type=debug | |
20755 | mgl_os=$mgl_os_i | |
20756 | fi | |
20757 | fi | |
20758 | if test "x$mgl_lib_type" = x ; then | |
20759 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
20760 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
20761 | mgl_lib_type=release | |
20762 | mgl_os=$mgl_os_i | |
20763 | fi | |
20764 | fi | |
21d1c967 | 20765 | fi |
63a76696 | 20766 | done |
2224580a | 20767 | |
63a76696 | 20768 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
20769 | echo "$as_me:$LINENO: result: not found" >&5 |
20770 | echo "${ECHO_T}not found" >&6 | |
20771 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
20772 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
20773 | { (exit 1); exit 1; }; } | |
63a76696 | 20774 | fi |
e6cc62c6 VS |
20775 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
20776 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 20777 | |
1d1b75ac VZ |
20778 | wxUSE_UNIVERSAL="yes" |
20779 | ||
21d1c967 GD |
20780 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
20781 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
20782 | ||
90dd450c | 20783 | AFMINSTALL=afminstall |
21d1c967 GD |
20784 | TOOLKIT=MGL |
20785 | GUIDIST=MGL_DIST | |
20786 | fi | |
dad6c0ea | 20787 | |
21d1c967 | 20788 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
20789 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
20790 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 20791 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
20792 | echo "$as_me:$LINENO: result: not found" >&5 |
20793 | echo "${ECHO_T}not found" >&6 | |
20794 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
20795 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
20796 | { (exit 1); exit 1; }; } | |
21d1c967 | 20797 | else |
e6cc62c6 VS |
20798 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
20799 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 20800 | fi |
f6bcfd97 | 20801 | |
21d1c967 | 20802 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
20803 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
20804 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 20805 | else |
e6cc62c6 VS |
20806 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
20807 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
20808 | { (exit 1); exit 1; }; } | |
90dd450c | 20809 | fi |
0b2effe9 | 20810 | |
21d1c967 GD |
20811 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
20812 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
20813 | ||
1d1b75ac VZ |
20814 | wxUSE_UNIVERSAL="yes" |
20815 | ||
21d1c967 GD |
20816 | AFMINSTALL=afminstall |
20817 | TOOLKIT=MICROWIN | |
20818 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
20819 | |
20820 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 20821 | fi |
f6bcfd97 | 20822 | |
21d1c967 | 20823 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
20824 | echo "$as_me:$LINENO: checking for X" >&5 |
20825 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
20826 | ||
d8356fa3 | 20827 | |
21d1c967 GD |
20828 | # Check whether --with-x or --without-x was given. |
20829 | if test "${with_x+set}" = set; then | |
20830 | withval="$with_x" | |
2224580a | 20831 | |
e6cc62c6 | 20832 | fi; |
21d1c967 GD |
20833 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
20834 | if test "x$with_x" = xno; then | |
20835 | # The user explicitly disabled X. | |
20836 | have_x=disabled | |
20837 | else | |
20838 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
20839 | # Both variables are already set. | |
20840 | have_x=yes | |
20841 | else | |
e6cc62c6 VS |
20842 | if test "${ac_cv_have_x+set}" = set; then |
20843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
20844 | else |
20845 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
20846 | ac_x_includes=no ac_x_libraries=no |
20847 | rm -fr conftest.dir | |
20848 | if mkdir conftest.dir; then | |
20849 | cd conftest.dir | |
21d1c967 | 20850 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 20851 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
20852 | acfindx: |
20853 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 20854 | _ACEOF |
21d1c967 GD |
20855 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
20856 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20857 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
20858 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
20859 | for ac_extension in a so sl; do | |
20860 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 20861 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
20862 | ac_im_usrlibdir=$ac_im_libdir; break |
20863 | fi | |
20864 | done | |
20865 | # Screen out bogus values from the imake configuration. They are | |
20866 | # bogus both because they are the default anyway, and because | |
20867 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 20868 | case $ac_im_incroot in |
21d1c967 | 20869 | /usr/include) ;; |
e6cc62c6 | 20870 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 20871 | esac |
e6cc62c6 | 20872 | case $ac_im_usrlibdir in |
21d1c967 | 20873 | /usr/lib | /lib) ;; |
e6cc62c6 | 20874 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
20875 | esac |
20876 | fi | |
20877 | cd .. | |
e6cc62c6 | 20878 | rm -fr conftest.dir |
21d1c967 | 20879 | fi |
10f2d63a | 20880 | |
e6cc62c6 VS |
20881 | # Standard set of common directories for X headers. |
20882 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
20883 | ac_x_header_dirs=' | |
20884 | /usr/X11/include | |
20885 | /usr/X11R6/include | |
20886 | /usr/X11R5/include | |
20887 | /usr/X11R4/include | |
20888 | ||
20889 | /usr/include/X11 | |
20890 | /usr/include/X11R6 | |
20891 | /usr/include/X11R5 | |
20892 | /usr/include/X11R4 | |
20893 | ||
20894 | /usr/local/X11/include | |
20895 | /usr/local/X11R6/include | |
20896 | /usr/local/X11R5/include | |
20897 | /usr/local/X11R4/include | |
20898 | ||
20899 | /usr/local/include/X11 | |
20900 | /usr/local/include/X11R6 | |
20901 | /usr/local/include/X11R5 | |
20902 | /usr/local/include/X11R4 | |
20903 | ||
20904 | /usr/X386/include | |
20905 | /usr/x386/include | |
20906 | /usr/XFree86/include/X11 | |
20907 | ||
20908 | /usr/include | |
20909 | /usr/local/include | |
20910 | /usr/unsupported/include | |
20911 | /usr/athena/include | |
20912 | /usr/local/x11r5/include | |
20913 | /usr/lpp/Xamples/include | |
20914 | ||
20915 | /usr/openwin/include | |
20916 | /usr/openwin/share/include' | |
20917 | ||
20918 | if test "$ac_x_includes" = no; then | |
20919 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 20920 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
20921 | cat >conftest.$ac_ext <<_ACEOF |
20922 | #line $LINENO "configure" | |
20923 | /* confdefs.h. */ | |
20924 | _ACEOF | |
20925 | cat confdefs.h >>conftest.$ac_ext | |
20926 | cat >>conftest.$ac_ext <<_ACEOF | |
20927 | /* end confdefs.h. */ | |
20928 | #include <X11/Intrinsic.h> | |
20929 | _ACEOF | |
20930 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20931 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20932 | ac_status=$? | |
20933 | grep -v '^ *+' conftest.er1 >conftest.err | |
20934 | rm -f conftest.er1 | |
20935 | cat conftest.err >&5 | |
20936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20937 | (exit $ac_status); } >/dev/null; then | |
20938 | if test -s conftest.err; then | |
20939 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20940 | else | |
20941 | ac_cpp_err= | |
20942 | fi | |
20943 | else | |
20944 | ac_cpp_err=yes | |
20945 | fi | |
20946 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
20947 | # We can compile using X headers with no special include directory. |
20948 | ac_x_includes= | |
90dd450c | 20949 | else |
e6cc62c6 VS |
20950 | echo "$as_me: failed program was:" >&5 |
20951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20952 | ||
20953 | for ac_dir in $ac_x_header_dirs; do | |
20954 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
20955 | ac_x_includes=$ac_dir | |
20956 | break | |
20957 | fi | |
20958 | done | |
3a922bb4 | 20959 | fi |
e6cc62c6 VS |
20960 | rm -f conftest.err conftest.$ac_ext |
20961 | fi # $ac_x_includes = no | |
10f2d63a | 20962 | |
e6cc62c6 | 20963 | if test "$ac_x_libraries" = no; then |
21d1c967 | 20964 | # Check for the libraries. |
21d1c967 GD |
20965 | # See if we find them without any special options. |
20966 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
20967 | ac_save_LIBS=$LIBS |
20968 | LIBS="-lXt $LIBS" | |
20969 | cat >conftest.$ac_ext <<_ACEOF | |
20970 | #line $LINENO "configure" | |
20971 | /* confdefs.h. */ | |
20972 | _ACEOF | |
20973 | cat confdefs.h >>conftest.$ac_ext | |
20974 | cat >>conftest.$ac_ext <<_ACEOF | |
20975 | /* end confdefs.h. */ | |
20976 | #include <X11/Intrinsic.h> | |
20977 | int | |
20978 | main () | |
20979 | { | |
20980 | XtMalloc (0) | |
20981 | ; | |
20982 | return 0; | |
20983 | } | |
20984 | _ACEOF | |
20985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20987 | (eval $ac_link) 2>&5 | |
20988 | ac_status=$? | |
20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20990 | (exit $ac_status); } && | |
20991 | { ac_try='test -s conftest$ac_exeext' | |
20992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20993 | (eval $ac_try) 2>&5 | |
20994 | ac_status=$? | |
20995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20996 | (exit $ac_status); }; }; then | |
20997 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
20998 | # We can link X programs with no special library path. |
20999 | ac_x_libraries= | |
3a922bb4 | 21000 | else |
e6cc62c6 VS |
21001 | echo "$as_me: failed program was:" >&5 |
21002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21003 | ||
21004 | LIBS=$ac_save_LIBS | |
21005 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21006 | do |
e6cc62c6 | 21007 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21008 | for ac_extension in a so sl; do |
e6cc62c6 | 21009 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21010 | ac_x_libraries=$ac_dir |
21011 | break 2 | |
21012 | fi | |
21013 | done | |
21014 | done | |
3a922bb4 | 21015 | fi |
e6cc62c6 VS |
21016 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21017 | fi # $ac_x_libraries = no | |
90dd450c | 21018 | |
e6cc62c6 | 21019 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21020 | # Didn't find X anywhere. Cache the known absence of X. |
21021 | ac_cv_have_x="have_x=no" | |
21022 | else | |
21023 | # Record where we found X for the cache. | |
21024 | ac_cv_have_x="have_x=yes \ | |
21025 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 21026 | fi |
21d1c967 | 21027 | fi |
e6cc62c6 | 21028 | |
21d1c967 GD |
21029 | fi |
21030 | eval "$ac_cv_have_x" | |
21031 | fi # $with_x != no | |
90dd450c | 21032 | |
21d1c967 | 21033 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21034 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21035 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21036 | no_x=yes |
21037 | else | |
21038 | # If each of the values was on the command line, it overrides each guess. | |
21039 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21040 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21041 | # Update the cache value to reflect the command line values. | |
21042 | ac_cv_have_x="have_x=yes \ | |
21043 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21044 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21045 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21046 | fi |
90dd450c | 21047 | |
21d1c967 | 21048 | if test "$no_x" = yes; then |
90dd450c | 21049 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21050 | |
21051 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21052 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21053 | _ACEOF |
90dd450c VZ |
21054 | |
21055 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21056 | else | |
21057 | if test -n "$x_includes"; then | |
21058 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21059 | fi |
3a922bb4 | 21060 | |
90dd450c VZ |
21061 | # It would also be nice to do this for all -L options, not just this one. |
21062 | if test -n "$x_libraries"; then | |
21063 | X_LIBS="$X_LIBS -L$x_libraries" | |
21064 | # For Solaris; some versions of Sun CC require a space after -R and | |
21065 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21066 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21067 | "SunOS 5"*) |
e6cc62c6 VS |
21068 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21069 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21070 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21071 | cat >conftest.$ac_ext <<_ACEOF | |
21072 | #line $LINENO "configure" | |
21073 | /* confdefs.h. */ | |
21074 | _ACEOF | |
21075 | cat confdefs.h >>conftest.$ac_ext | |
21076 | cat >>conftest.$ac_ext <<_ACEOF | |
21077 | /* end confdefs.h. */ | |
21078 | ||
21079 | int | |
21080 | main () | |
21081 | { | |
90dd450c | 21082 | |
e6cc62c6 VS |
21083 | ; |
21084 | return 0; | |
21085 | } | |
21086 | _ACEOF | |
21087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21089 | (eval $ac_link) 2>&5 | |
21090 | ac_status=$? | |
21091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21092 | (exit $ac_status); } && | |
21093 | { ac_try='test -s conftest$ac_exeext' | |
21094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21095 | (eval $ac_try) 2>&5 | |
21096 | ac_status=$? | |
21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21098 | (exit $ac_status); }; }; then | |
90dd450c | 21099 | ac_R_nospace=yes |
3a922bb4 | 21100 | else |
e6cc62c6 VS |
21101 | echo "$as_me: failed program was:" >&5 |
21102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21103 | ||
21104 | ac_R_nospace=no | |
3a922bb4 | 21105 | fi |
e6cc62c6 | 21106 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21107 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21108 | echo "$as_me:$LINENO: result: no" >&5 |
21109 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21110 | X_LIBS="$X_LIBS -R$x_libraries" |
21111 | else | |
21112 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21113 | cat >conftest.$ac_ext <<_ACEOF |
21114 | #line $LINENO "configure" | |
21115 | /* confdefs.h. */ | |
21116 | _ACEOF | |
21117 | cat confdefs.h >>conftest.$ac_ext | |
21118 | cat >>conftest.$ac_ext <<_ACEOF | |
21119 | /* end confdefs.h. */ | |
21120 | ||
21121 | int | |
21122 | main () | |
21123 | { | |
6f754473 | 21124 | |
e6cc62c6 VS |
21125 | ; |
21126 | return 0; | |
21127 | } | |
21128 | _ACEOF | |
21129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21131 | (eval $ac_link) 2>&5 | |
21132 | ac_status=$? | |
21133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21134 | (exit $ac_status); } && | |
21135 | { ac_try='test -s conftest$ac_exeext' | |
21136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21137 | (eval $ac_try) 2>&5 | |
21138 | ac_status=$? | |
21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21140 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21141 | ac_R_space=yes |
21142 | else | |
e6cc62c6 VS |
21143 | echo "$as_me: failed program was:" >&5 |
21144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21145 | ||
21146 | ac_R_space=no | |
90dd450c | 21147 | fi |
e6cc62c6 | 21148 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21149 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21150 | echo "$as_me:$LINENO: result: yes" >&5 |
21151 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21152 | X_LIBS="$X_LIBS -R $x_libraries" |
21153 | else | |
e6cc62c6 VS |
21154 | echo "$as_me:$LINENO: result: neither works" >&5 |
21155 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21156 | fi |
21157 | fi | |
e6cc62c6 | 21158 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21159 | esac |
21160 | fi | |
21161 | ||
21162 | # Check for system-dependent libraries X programs must link with. | |
21163 | # Do this before checking for the system-independent R6 libraries | |
21164 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21165 | |
90dd450c VZ |
21166 | if test "$ISC" = yes; then |
21167 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21168 | else | |
e6cc62c6 VS |
21169 | # Martyn Johnson says this is needed for Ultrix, if the X |
21170 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21171 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21172 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21173 | cat >conftest.$ac_ext <<_ACEOF | |
21174 | #line $LINENO "configure" | |
21175 | /* confdefs.h. */ | |
21176 | _ACEOF | |
21177 | cat confdefs.h >>conftest.$ac_ext | |
21178 | cat >>conftest.$ac_ext <<_ACEOF | |
21179 | /* end confdefs.h. */ | |
21180 | ||
247f5006 | 21181 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21182 | #ifdef __cplusplus |
21183 | extern "C" | |
21184 | #endif | |
247f5006 | 21185 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21186 | builtin and then its argument prototype would still apply. */ |
21187 | char XOpenDisplay (); | |
21188 | int | |
21189 | main () | |
21190 | { | |
21191 | XOpenDisplay (); | |
21192 | ; | |
21193 | return 0; | |
21194 | } | |
21195 | _ACEOF | |
21196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21198 | (eval $ac_link) 2>&5 | |
21199 | ac_status=$? | |
21200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21201 | (exit $ac_status); } && | |
21202 | { ac_try='test -s conftest$ac_exeext' | |
21203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21204 | (eval $ac_try) 2>&5 | |
21205 | ac_status=$? | |
21206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21207 | (exit $ac_status); }; }; then | |
21208 | : | |
21209 | else | |
21210 | echo "$as_me: failed program was:" >&5 | |
21211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21212 | |
e6cc62c6 VS |
21213 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21214 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21215 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21217 | else |
e6cc62c6 VS |
21218 | ac_check_lib_save_LIBS=$LIBS |
21219 | LIBS="-ldnet $LIBS" | |
21220 | cat >conftest.$ac_ext <<_ACEOF | |
21221 | #line $LINENO "configure" | |
21222 | /* confdefs.h. */ | |
21223 | _ACEOF | |
21224 | cat confdefs.h >>conftest.$ac_ext | |
21225 | cat >>conftest.$ac_ext <<_ACEOF | |
21226 | /* end confdefs.h. */ | |
a0b9e27f | 21227 | |
e6cc62c6 VS |
21228 | /* Override any gcc2 internal prototype to avoid an error. */ |
21229 | #ifdef __cplusplus | |
21230 | extern "C" | |
21231 | #endif | |
21232 | /* We use char because int might match the return type of a gcc2 | |
21233 | builtin and then its argument prototype would still apply. */ | |
21234 | char dnet_ntoa (); | |
21235 | int | |
21236 | main () | |
21237 | { | |
21238 | dnet_ntoa (); | |
21239 | ; | |
21240 | return 0; | |
21241 | } | |
21242 | _ACEOF | |
21243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21245 | (eval $ac_link) 2>&5 | |
21246 | ac_status=$? | |
21247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21248 | (exit $ac_status); } && | |
21249 | { ac_try='test -s conftest$ac_exeext' | |
21250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21251 | (eval $ac_try) 2>&5 | |
21252 | ac_status=$? | |
21253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21254 | (exit $ac_status); }; }; then | |
21255 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21256 | else | |
21257 | echo "$as_me: failed program was:" >&5 | |
21258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21259 | ||
21260 | ac_cv_lib_dnet_dnet_ntoa=no | |
21261 | fi | |
21262 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21263 | LIBS=$ac_check_lib_save_LIBS | |
21264 | fi | |
21265 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21266 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21267 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21268 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21269 | fi |
21270 | ||
90dd450c | 21271 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21272 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21273 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21274 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21276 | else |
e6cc62c6 | 21277 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21278 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21279 | cat >conftest.$ac_ext <<_ACEOF |
21280 | #line $LINENO "configure" | |
21281 | /* confdefs.h. */ | |
21282 | _ACEOF | |
21283 | cat confdefs.h >>conftest.$ac_ext | |
21284 | cat >>conftest.$ac_ext <<_ACEOF | |
21285 | /* end confdefs.h. */ | |
21286 | ||
90dd450c | 21287 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21288 | #ifdef __cplusplus |
21289 | extern "C" | |
21290 | #endif | |
90dd450c | 21291 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21292 | builtin and then its argument prototype would still apply. */ |
21293 | char dnet_ntoa (); | |
21294 | int | |
21295 | main () | |
21296 | { | |
21297 | dnet_ntoa (); | |
21298 | ; | |
21299 | return 0; | |
21300 | } | |
21301 | _ACEOF | |
21302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21304 | (eval $ac_link) 2>&5 | |
21305 | ac_status=$? | |
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21307 | (exit $ac_status); } && | |
21308 | { ac_try='test -s conftest$ac_exeext' | |
21309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21310 | (eval $ac_try) 2>&5 | |
21311 | ac_status=$? | |
21312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21313 | (exit $ac_status); }; }; then | |
21314 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21315 | else | |
21316 | echo "$as_me: failed program was:" >&5 | |
21317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21318 | ||
21319 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21320 | fi | |
21321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21322 | LIBS=$ac_check_lib_save_LIBS | |
21323 | fi | |
21324 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21325 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21326 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21327 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21328 | fi |
21329 | ||
90dd450c | 21330 | fi |
e6cc62c6 VS |
21331 | fi |
21332 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21333 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21334 | |
90dd450c VZ |
21335 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21336 | # to get the SysV transport functions. | |
e6cc62c6 | 21337 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21338 | # needs -lnsl. |
21339 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21340 | # on Irix 5.2, according to T.E. Dickey. |
21341 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21342 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21343 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21344 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21345 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21347 | else | |
21348 | cat >conftest.$ac_ext <<_ACEOF | |
21349 | #line $LINENO "configure" | |
21350 | /* confdefs.h. */ | |
21351 | _ACEOF | |
21352 | cat confdefs.h >>conftest.$ac_ext | |
21353 | cat >>conftest.$ac_ext <<_ACEOF | |
21354 | /* end confdefs.h. */ | |
90dd450c | 21355 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21356 | which can conflict with char gethostbyname (); below. |
21357 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21358 | <limits.h> exists even on freestanding compilers. */ | |
21359 | #ifdef __STDC__ | |
21360 | # include <limits.h> | |
21361 | #else | |
21362 | # include <assert.h> | |
21363 | #endif | |
90dd450c | 21364 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21365 | #ifdef __cplusplus |
21366 | extern "C" | |
21367 | { | |
21368 | #endif | |
90dd450c | 21369 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21370 | builtin and then its argument prototype would still apply. */ |
21371 | char gethostbyname (); | |
90dd450c VZ |
21372 | /* The GNU C library defines this for functions which it implements |
21373 | to always fail with ENOSYS. Some functions are actually named | |
21374 | something starting with __ and the normal name is an alias. */ | |
21375 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21376 | choke me | |
21377 | #else | |
e6cc62c6 VS |
21378 | char (*f) () = gethostbyname; |
21379 | #endif | |
21380 | #ifdef __cplusplus | |
21381 | } | |
90dd450c | 21382 | #endif |
978f1259 | 21383 | |
e6cc62c6 VS |
21384 | int |
21385 | main () | |
21386 | { | |
21387 | return f != gethostbyname; | |
21388 | ; | |
21389 | return 0; | |
21390 | } | |
21391 | _ACEOF | |
21392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21394 | (eval $ac_link) 2>&5 | |
21395 | ac_status=$? | |
21396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21397 | (exit $ac_status); } && | |
21398 | { ac_try='test -s conftest$ac_exeext' | |
21399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21400 | (eval $ac_try) 2>&5 | |
21401 | ac_status=$? | |
21402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21403 | (exit $ac_status); }; }; then | |
21404 | ac_cv_func_gethostbyname=yes | |
21405 | else | |
21406 | echo "$as_me: failed program was:" >&5 | |
21407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21408 | ||
21409 | ac_cv_func_gethostbyname=no | |
21410 | fi | |
21411 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21412 | fi | |
21413 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21414 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21415 | |
90dd450c | 21416 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21417 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21418 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21419 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21421 | else |
e6cc62c6 | 21422 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21423 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21424 | cat >conftest.$ac_ext <<_ACEOF |
21425 | #line $LINENO "configure" | |
21426 | /* confdefs.h. */ | |
21427 | _ACEOF | |
21428 | cat confdefs.h >>conftest.$ac_ext | |
21429 | cat >>conftest.$ac_ext <<_ACEOF | |
21430 | /* end confdefs.h. */ | |
21431 | ||
90dd450c | 21432 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21433 | #ifdef __cplusplus |
21434 | extern "C" | |
21435 | #endif | |
90dd450c | 21436 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21437 | builtin and then its argument prototype would still apply. */ |
21438 | char gethostbyname (); | |
21439 | int | |
21440 | main () | |
21441 | { | |
21442 | gethostbyname (); | |
21443 | ; | |
21444 | return 0; | |
21445 | } | |
21446 | _ACEOF | |
21447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21449 | (eval $ac_link) 2>&5 | |
21450 | ac_status=$? | |
21451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21452 | (exit $ac_status); } && | |
21453 | { ac_try='test -s conftest$ac_exeext' | |
21454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21455 | (eval $ac_try) 2>&5 | |
21456 | ac_status=$? | |
21457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21458 | (exit $ac_status); }; }; then | |
21459 | ac_cv_lib_nsl_gethostbyname=yes | |
21460 | else | |
21461 | echo "$as_me: failed program was:" >&5 | |
21462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21463 | ||
21464 | ac_cv_lib_nsl_gethostbyname=no | |
21465 | fi | |
21466 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21467 | LIBS=$ac_check_lib_save_LIBS | |
21468 | fi | |
21469 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21470 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21471 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21472 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21473 | fi |
247f5006 | 21474 | |
e6cc62c6 VS |
21475 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21476 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21477 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21478 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21480 | else |
e6cc62c6 VS |
21481 | ac_check_lib_save_LIBS=$LIBS |
21482 | LIBS="-lbsd $LIBS" | |
21483 | cat >conftest.$ac_ext <<_ACEOF | |
21484 | #line $LINENO "configure" | |
21485 | /* confdefs.h. */ | |
21486 | _ACEOF | |
21487 | cat confdefs.h >>conftest.$ac_ext | |
21488 | cat >>conftest.$ac_ext <<_ACEOF | |
21489 | /* end confdefs.h. */ | |
21490 | ||
21491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21492 | #ifdef __cplusplus | |
21493 | extern "C" | |
21494 | #endif | |
21495 | /* We use char because int might match the return type of a gcc2 | |
21496 | builtin and then its argument prototype would still apply. */ | |
21497 | char gethostbyname (); | |
21498 | int | |
21499 | main () | |
21500 | { | |
21501 | gethostbyname (); | |
21502 | ; | |
21503 | return 0; | |
21504 | } | |
21505 | _ACEOF | |
21506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21508 | (eval $ac_link) 2>&5 | |
21509 | ac_status=$? | |
21510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21511 | (exit $ac_status); } && | |
21512 | { ac_try='test -s conftest$ac_exeext' | |
21513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21514 | (eval $ac_try) 2>&5 | |
21515 | ac_status=$? | |
21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21517 | (exit $ac_status); }; }; then | |
21518 | ac_cv_lib_bsd_gethostbyname=yes | |
21519 | else | |
21520 | echo "$as_me: failed program was:" >&5 | |
21521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21522 | ||
21523 | ac_cv_lib_bsd_gethostbyname=no | |
21524 | fi | |
21525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21526 | LIBS=$ac_check_lib_save_LIBS | |
21527 | fi | |
21528 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21529 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21530 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21531 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21532 | fi |
b12915c1 | 21533 | |
e6cc62c6 | 21534 | fi |
90dd450c VZ |
21535 | fi |
21536 | ||
21537 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21538 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21539 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21540 | # on later versions), says Simon Leinen: it contains gethostby* |
21541 | # variants that don't use the name server (or something). -lsocket | |
21542 | # must be given before -lnsl if both are needed. We assume that | |
21543 | # if connect needs -lnsl, so does gethostbyname. | |
21544 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21545 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21546 | if test "${ac_cv_func_connect+set}" = set; then | |
21547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21548 | else | |
21549 | cat >conftest.$ac_ext <<_ACEOF | |
21550 | #line $LINENO "configure" | |
21551 | /* confdefs.h. */ | |
21552 | _ACEOF | |
21553 | cat confdefs.h >>conftest.$ac_ext | |
21554 | cat >>conftest.$ac_ext <<_ACEOF | |
21555 | /* end confdefs.h. */ | |
90dd450c | 21556 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21557 | which can conflict with char connect (); below. |
21558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21559 | <limits.h> exists even on freestanding compilers. */ | |
21560 | #ifdef __STDC__ | |
21561 | # include <limits.h> | |
21562 | #else | |
21563 | # include <assert.h> | |
21564 | #endif | |
90dd450c | 21565 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21566 | #ifdef __cplusplus |
21567 | extern "C" | |
21568 | { | |
21569 | #endif | |
90dd450c | 21570 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21571 | builtin and then its argument prototype would still apply. */ |
21572 | char connect (); | |
90dd450c VZ |
21573 | /* The GNU C library defines this for functions which it implements |
21574 | to always fail with ENOSYS. Some functions are actually named | |
21575 | something starting with __ and the normal name is an alias. */ | |
21576 | #if defined (__stub_connect) || defined (__stub___connect) | |
21577 | choke me | |
21578 | #else | |
e6cc62c6 VS |
21579 | char (*f) () = connect; |
21580 | #endif | |
21581 | #ifdef __cplusplus | |
21582 | } | |
90dd450c VZ |
21583 | #endif |
21584 | ||
e6cc62c6 VS |
21585 | int |
21586 | main () | |
21587 | { | |
21588 | return f != connect; | |
21589 | ; | |
21590 | return 0; | |
21591 | } | |
21592 | _ACEOF | |
21593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21595 | (eval $ac_link) 2>&5 | |
21596 | ac_status=$? | |
21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21598 | (exit $ac_status); } && | |
21599 | { ac_try='test -s conftest$ac_exeext' | |
21600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21601 | (eval $ac_try) 2>&5 | |
21602 | ac_status=$? | |
21603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21604 | (exit $ac_status); }; }; then | |
21605 | ac_cv_func_connect=yes | |
21606 | else | |
21607 | echo "$as_me: failed program was:" >&5 | |
21608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21609 | ||
21610 | ac_cv_func_connect=no | |
21611 | fi | |
21612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21613 | fi | |
21614 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21615 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 21616 | |
90dd450c | 21617 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
21618 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21619 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21620 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21622 | else |
e6cc62c6 | 21623 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21624 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21625 | cat >conftest.$ac_ext <<_ACEOF |
21626 | #line $LINENO "configure" | |
21627 | /* confdefs.h. */ | |
21628 | _ACEOF | |
21629 | cat confdefs.h >>conftest.$ac_ext | |
21630 | cat >>conftest.$ac_ext <<_ACEOF | |
21631 | /* end confdefs.h. */ | |
21632 | ||
90dd450c | 21633 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21634 | #ifdef __cplusplus |
21635 | extern "C" | |
21636 | #endif | |
90dd450c | 21637 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21638 | builtin and then its argument prototype would still apply. */ |
21639 | char connect (); | |
21640 | int | |
21641 | main () | |
21642 | { | |
21643 | connect (); | |
21644 | ; | |
21645 | return 0; | |
21646 | } | |
21647 | _ACEOF | |
21648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21650 | (eval $ac_link) 2>&5 | |
21651 | ac_status=$? | |
21652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21653 | (exit $ac_status); } && | |
21654 | { ac_try='test -s conftest$ac_exeext' | |
21655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21656 | (eval $ac_try) 2>&5 | |
21657 | ac_status=$? | |
21658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21659 | (exit $ac_status); }; }; then | |
21660 | ac_cv_lib_socket_connect=yes | |
21661 | else | |
21662 | echo "$as_me: failed program was:" >&5 | |
21663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21664 | ||
21665 | ac_cv_lib_socket_connect=no | |
21666 | fi | |
21667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21668 | LIBS=$ac_check_lib_save_LIBS | |
21669 | fi | |
21670 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21671 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21672 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 21673 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 21674 | fi |
77e13408 | 21675 | |
90dd450c | 21676 | fi |
25d0687a | 21677 | |
e6cc62c6 VS |
21678 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21679 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21680 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21681 | if test "${ac_cv_func_remove+set}" = set; then | |
21682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21683 | else | |
21684 | cat >conftest.$ac_ext <<_ACEOF | |
21685 | #line $LINENO "configure" | |
21686 | /* confdefs.h. */ | |
21687 | _ACEOF | |
21688 | cat confdefs.h >>conftest.$ac_ext | |
21689 | cat >>conftest.$ac_ext <<_ACEOF | |
21690 | /* end confdefs.h. */ | |
90dd450c | 21691 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21692 | which can conflict with char remove (); below. |
21693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21694 | <limits.h> exists even on freestanding compilers. */ | |
21695 | #ifdef __STDC__ | |
21696 | # include <limits.h> | |
21697 | #else | |
21698 | # include <assert.h> | |
21699 | #endif | |
90dd450c | 21700 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21701 | #ifdef __cplusplus |
21702 | extern "C" | |
21703 | { | |
21704 | #endif | |
90dd450c | 21705 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21706 | builtin and then its argument prototype would still apply. */ |
21707 | char remove (); | |
90dd450c VZ |
21708 | /* The GNU C library defines this for functions which it implements |
21709 | to always fail with ENOSYS. Some functions are actually named | |
21710 | something starting with __ and the normal name is an alias. */ | |
21711 | #if defined (__stub_remove) || defined (__stub___remove) | |
21712 | choke me | |
21713 | #else | |
e6cc62c6 VS |
21714 | char (*f) () = remove; |
21715 | #endif | |
21716 | #ifdef __cplusplus | |
21717 | } | |
90dd450c | 21718 | #endif |
55e80573 | 21719 | |
e6cc62c6 VS |
21720 | int |
21721 | main () | |
21722 | { | |
21723 | return f != remove; | |
21724 | ; | |
21725 | return 0; | |
21726 | } | |
21727 | _ACEOF | |
21728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21730 | (eval $ac_link) 2>&5 | |
21731 | ac_status=$? | |
21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21733 | (exit $ac_status); } && | |
21734 | { ac_try='test -s conftest$ac_exeext' | |
21735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21736 | (eval $ac_try) 2>&5 | |
21737 | ac_status=$? | |
21738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21739 | (exit $ac_status); }; }; then | |
21740 | ac_cv_func_remove=yes | |
21741 | else | |
21742 | echo "$as_me: failed program was:" >&5 | |
21743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21744 | ||
21745 | ac_cv_func_remove=no | |
21746 | fi | |
21747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21748 | fi | |
21749 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21750 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 21751 | |
90dd450c | 21752 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
21753 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
21754 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21755 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21757 | else |
e6cc62c6 | 21758 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21759 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
21760 | cat >conftest.$ac_ext <<_ACEOF |
21761 | #line $LINENO "configure" | |
21762 | /* confdefs.h. */ | |
21763 | _ACEOF | |
21764 | cat confdefs.h >>conftest.$ac_ext | |
21765 | cat >>conftest.$ac_ext <<_ACEOF | |
21766 | /* end confdefs.h. */ | |
21767 | ||
90dd450c | 21768 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21769 | #ifdef __cplusplus |
21770 | extern "C" | |
21771 | #endif | |
90dd450c | 21772 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21773 | builtin and then its argument prototype would still apply. */ |
21774 | char remove (); | |
21775 | int | |
21776 | main () | |
21777 | { | |
21778 | remove (); | |
21779 | ; | |
21780 | return 0; | |
21781 | } | |
21782 | _ACEOF | |
21783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21785 | (eval $ac_link) 2>&5 | |
21786 | ac_status=$? | |
21787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21788 | (exit $ac_status); } && | |
21789 | { ac_try='test -s conftest$ac_exeext' | |
21790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21791 | (eval $ac_try) 2>&5 | |
21792 | ac_status=$? | |
21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21794 | (exit $ac_status); }; }; then | |
21795 | ac_cv_lib_posix_remove=yes | |
21796 | else | |
21797 | echo "$as_me: failed program was:" >&5 | |
21798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21799 | ||
21800 | ac_cv_lib_posix_remove=no | |
21801 | fi | |
21802 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21803 | LIBS=$ac_check_lib_save_LIBS | |
21804 | fi | |
21805 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
21806 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
21807 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 21808 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 21809 | fi |
f6bcfd97 | 21810 | |
6fa882bd RR |
21811 | fi |
21812 | ||
90dd450c | 21813 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
21814 | echo "$as_me:$LINENO: checking for shmat" >&5 |
21815 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
21816 | if test "${ac_cv_func_shmat+set}" = set; then | |
21817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21818 | else | |
21819 | cat >conftest.$ac_ext <<_ACEOF | |
21820 | #line $LINENO "configure" | |
21821 | /* confdefs.h. */ | |
21822 | _ACEOF | |
21823 | cat confdefs.h >>conftest.$ac_ext | |
21824 | cat >>conftest.$ac_ext <<_ACEOF | |
21825 | /* end confdefs.h. */ | |
90dd450c | 21826 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21827 | which can conflict with char shmat (); below. |
21828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21829 | <limits.h> exists even on freestanding compilers. */ | |
21830 | #ifdef __STDC__ | |
21831 | # include <limits.h> | |
21832 | #else | |
21833 | # include <assert.h> | |
21834 | #endif | |
90dd450c | 21835 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21836 | #ifdef __cplusplus |
21837 | extern "C" | |
21838 | { | |
21839 | #endif | |
90dd450c | 21840 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21841 | builtin and then its argument prototype would still apply. */ |
21842 | char shmat (); | |
90dd450c VZ |
21843 | /* The GNU C library defines this for functions which it implements |
21844 | to always fail with ENOSYS. Some functions are actually named | |
21845 | something starting with __ and the normal name is an alias. */ | |
21846 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
21847 | choke me | |
21848 | #else | |
e6cc62c6 VS |
21849 | char (*f) () = shmat; |
21850 | #endif | |
21851 | #ifdef __cplusplus | |
21852 | } | |
90dd450c | 21853 | #endif |
10f2d63a | 21854 | |
e6cc62c6 VS |
21855 | int |
21856 | main () | |
21857 | { | |
21858 | return f != shmat; | |
21859 | ; | |
21860 | return 0; | |
21861 | } | |
21862 | _ACEOF | |
21863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21865 | (eval $ac_link) 2>&5 | |
21866 | ac_status=$? | |
21867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21868 | (exit $ac_status); } && | |
21869 | { ac_try='test -s conftest$ac_exeext' | |
21870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21871 | (eval $ac_try) 2>&5 | |
21872 | ac_status=$? | |
21873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21874 | (exit $ac_status); }; }; then | |
21875 | ac_cv_func_shmat=yes | |
21876 | else | |
21877 | echo "$as_me: failed program was:" >&5 | |
21878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21879 | ||
21880 | ac_cv_func_shmat=no | |
21881 | fi | |
21882 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21883 | fi | |
21884 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
21885 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 21886 | |
90dd450c | 21887 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
21888 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
21889 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
21890 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
21891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 21892 | else |
e6cc62c6 | 21893 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21894 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
21895 | cat >conftest.$ac_ext <<_ACEOF |
21896 | #line $LINENO "configure" | |
21897 | /* confdefs.h. */ | |
21898 | _ACEOF | |
21899 | cat confdefs.h >>conftest.$ac_ext | |
21900 | cat >>conftest.$ac_ext <<_ACEOF | |
21901 | /* end confdefs.h. */ | |
21902 | ||
8284b0c5 | 21903 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21904 | #ifdef __cplusplus |
21905 | extern "C" | |
21906 | #endif | |
90dd450c | 21907 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21908 | builtin and then its argument prototype would still apply. */ |
21909 | char shmat (); | |
21910 | int | |
21911 | main () | |
21912 | { | |
21913 | shmat (); | |
21914 | ; | |
21915 | return 0; | |
21916 | } | |
21917 | _ACEOF | |
21918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21920 | (eval $ac_link) 2>&5 | |
21921 | ac_status=$? | |
21922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21923 | (exit $ac_status); } && | |
21924 | { ac_try='test -s conftest$ac_exeext' | |
21925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21926 | (eval $ac_try) 2>&5 | |
21927 | ac_status=$? | |
21928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21929 | (exit $ac_status); }; }; then | |
21930 | ac_cv_lib_ipc_shmat=yes | |
21931 | else | |
21932 | echo "$as_me: failed program was:" >&5 | |
21933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21934 | ||
21935 | ac_cv_lib_ipc_shmat=no | |
21936 | fi | |
21937 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21938 | LIBS=$ac_check_lib_save_LIBS | |
21939 | fi | |
21940 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
21941 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
21942 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 21943 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
21944 | fi |
21945 | ||
d558c907 | 21946 | fi |
90dd450c | 21947 | fi |
3a922bb4 | 21948 | |
90dd450c | 21949 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 21950 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
21951 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
21952 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
21953 | # check for ICE first), but we must link in the order -lSM -lICE or | |
21954 | # we get undefined symbols. So assume we have SM if we have ICE. | |
21955 | # These have to be linked with before -lX11, unlike the other | |
21956 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
21957 | # John Interrante, Karl Berry |
21958 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
21959 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
21960 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
21961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21962 | else | |
21963 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 21964 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21965 | cat >conftest.$ac_ext <<_ACEOF |
21966 | #line $LINENO "configure" | |
21967 | /* confdefs.h. */ | |
21968 | _ACEOF | |
21969 | cat confdefs.h >>conftest.$ac_ext | |
21970 | cat >>conftest.$ac_ext <<_ACEOF | |
21971 | /* end confdefs.h. */ | |
21972 | ||
90dd450c | 21973 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21974 | #ifdef __cplusplus |
21975 | extern "C" | |
21976 | #endif | |
90dd450c | 21977 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21978 | builtin and then its argument prototype would still apply. */ |
21979 | char IceConnectionNumber (); | |
21980 | int | |
21981 | main () | |
21982 | { | |
21983 | IceConnectionNumber (); | |
21984 | ; | |
21985 | return 0; | |
21986 | } | |
21987 | _ACEOF | |
21988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21990 | (eval $ac_link) 2>&5 | |
21991 | ac_status=$? | |
21992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21993 | (exit $ac_status); } && | |
21994 | { ac_try='test -s conftest$ac_exeext' | |
21995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21996 | (eval $ac_try) 2>&5 | |
21997 | ac_status=$? | |
21998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21999 | (exit $ac_status); }; }; then | |
22000 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22001 | else | |
22002 | echo "$as_me: failed program was:" >&5 | |
22003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22004 | ||
22005 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22006 | fi | |
22007 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22008 | LIBS=$ac_check_lib_save_LIBS | |
22009 | fi | |
22010 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22011 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22012 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22013 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22014 | fi |
10f2d63a | 22015 | |
e6cc62c6 | 22016 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22017 | |
22018 | fi | |
22019 | ||
8284b0c5 | 22020 | |
90dd450c | 22021 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22022 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22023 | echo "$as_me: error: X11 not found" >&2;} | |
22024 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22025 | fi |
22026 | ||
22027 | GUI_TK_LIBRARY="$X_LIBS" | |
22028 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22029 | AFMINSTALL=afminstall | |
22030 | COMPILED_X_PROGRAM=0 | |
22031 | ||
21d1c967 | 22032 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22033 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22034 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22035 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22036 | echo "$as_me:$LINENO: result: not found" >&5 |
22037 | echo "${ECHO_T}not found" >&6 | |
22038 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22039 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22040 | { (exit 1); exit 1; }; } | |
90dd450c | 22041 | else |
e6cc62c6 VS |
22042 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22043 | echo "${ECHO_T}$MICROWIN" >&6 | |
22044 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22045 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22046 | _ACEOF |
21d1c967 | 22047 | |
90dd450c VZ |
22048 | fi |
22049 | fi | |
22050 | ||
22051 | xpm_link= | |
e6cc62c6 VS |
22052 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22053 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22054 | ||
90dd450c | 22055 | ac_find_libraries= |
2b5f62a0 | 22056 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22057 | do |
22058 | for ac_extension in a so sl dylib; do | |
22059 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22060 | ac_find_libraries=$ac_dir | |
22061 | break 2 | |
22062 | fi | |
22063 | done | |
22064 | done | |
22065 | ||
22066 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22067 | |
90dd450c VZ |
22068 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22069 | result=$? | |
22070 | if test $result = 0; then | |
22071 | ac_path_to_link="" | |
22072 | else | |
22073 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22074 | fi |
90dd450c | 22075 | |
21d1c967 GD |
22076 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22077 | xpm_link=" -lXpm" | |
e6cc62c6 | 22078 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22079 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22080 | _ACEOF |
90dd450c | 22081 | |
e6cc62c6 VS |
22082 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22083 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22084 | else |
e6cc62c6 VS |
22085 | cat >conftest.$ac_ext <<_ACEOF |
22086 | #line $LINENO "configure" | |
22087 | /* confdefs.h. */ | |
22088 | _ACEOF | |
22089 | cat confdefs.h >>conftest.$ac_ext | |
22090 | cat >>conftest.$ac_ext <<_ACEOF | |
22091 | /* end confdefs.h. */ | |
90dd450c | 22092 | |
21d1c967 | 22093 | #include <X11/xpm.h> |
e6cc62c6 VS |
22094 | |
22095 | int | |
22096 | main () | |
22097 | { | |
6f72b082 | 22098 | |
21d1c967 GD |
22099 | int version; |
22100 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22101 | |
22102 | ; | |
22103 | return 0; | |
22104 | } | |
22105 | _ACEOF | |
22106 | rm -f conftest.$ac_objext | |
22107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22108 | (eval $ac_compile) 2>&5 | |
22109 | ac_status=$? | |
22110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22111 | (exit $ac_status); } && | |
22112 | { ac_try='test -s conftest.$ac_objext' | |
22113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22114 | (eval $ac_try) 2>&5 | |
22115 | ac_status=$? | |
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22117 | (exit $ac_status); }; }; then | |
22118 | ||
21d1c967 | 22119 | xpm_link=" -lXpm" |
e6cc62c6 | 22120 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22121 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22122 | _ACEOF |
90dd450c | 22123 | |
e6cc62c6 VS |
22124 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22125 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22126 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22127 | |
21d1c967 | 22128 | else |
e6cc62c6 VS |
22129 | echo "$as_me: failed program was:" >&5 |
22130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22131 | ||
22132 | ||
22133 | echo "$as_me:$LINENO: result: no" >&5 | |
22134 | echo "${ECHO_T}no" >&6 | |
22135 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22136 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22137 | ||
22138 | ||
6f72b082 | 22139 | fi |
e6cc62c6 | 22140 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22141 | fi |
90dd450c | 22142 | |
e6cc62c6 VS |
22143 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22144 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22145 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22147 | else |
e6cc62c6 | 22148 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22149 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22150 | cat >conftest.$ac_ext <<_ACEOF |
22151 | #line $LINENO "configure" | |
22152 | /* confdefs.h. */ | |
22153 | _ACEOF | |
22154 | cat confdefs.h >>conftest.$ac_ext | |
22155 | cat >>conftest.$ac_ext <<_ACEOF | |
22156 | /* end confdefs.h. */ | |
22157 | ||
f7f78039 | 22158 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22159 | #ifdef __cplusplus |
22160 | extern "C" | |
22161 | #endif | |
f7f78039 | 22162 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22163 | builtin and then its argument prototype would still apply. */ |
22164 | char XShapeQueryExtension (); | |
22165 | int | |
22166 | main () | |
22167 | { | |
22168 | XShapeQueryExtension (); | |
22169 | ; | |
22170 | return 0; | |
22171 | } | |
22172 | _ACEOF | |
22173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22175 | (eval $ac_link) 2>&5 | |
22176 | ac_status=$? | |
22177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22178 | (exit $ac_status); } && | |
22179 | { ac_try='test -s conftest$ac_exeext' | |
22180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22181 | (eval $ac_try) 2>&5 | |
22182 | ac_status=$? | |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22184 | (exit $ac_status); }; }; then | |
22185 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22186 | else | |
22187 | echo "$as_me: failed program was:" >&5 | |
22188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22189 | ||
22190 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22191 | fi | |
22192 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22193 | LIBS=$ac_check_lib_save_LIBS | |
22194 | fi | |
22195 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22196 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22197 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22198 | |
f7f78039 MB |
22199 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22200 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22201 | |
f7f78039 MB |
22202 | fi |
22203 | ||
22204 | ||
2b5f62a0 | 22205 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22206 | |
2b5f62a0 | 22207 | succeeded=no |
90dd450c | 22208 | |
2b5f62a0 VZ |
22209 | if test -z "$PKG_CONFIG"; then |
22210 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22211 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22214 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22216 | else |
e6cc62c6 VS |
22217 | case $PKG_CONFIG in |
22218 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22219 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22220 | ;; | |
2b5f62a0 | 22221 | *) |
e6cc62c6 VS |
22222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22223 | for as_dir in $PATH | |
22224 | do | |
22225 | IFS=$as_save_IFS | |
22226 | test -z "$as_dir" && as_dir=. | |
22227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22228 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22229 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22230 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22231 | break 2 | |
22232 | fi | |
22233 | done | |
22234 | done | |
22235 | ||
2b5f62a0 VZ |
22236 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22237 | ;; | |
22238 | esac | |
22239 | fi | |
e6cc62c6 VS |
22240 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22241 | ||
2b5f62a0 | 22242 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22243 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22244 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22245 | else |
e6cc62c6 VS |
22246 | echo "$as_me:$LINENO: result: no" >&5 |
22247 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22248 | fi |
22249 | ||
22250 | fi | |
22251 | ||
22252 | if test "$PKG_CONFIG" = "no" ; then | |
22253 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22254 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22255 | echo "*** to the full path to pkg-config." | |
22256 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22257 | else | |
22258 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22259 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22260 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22261 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22262 | |
22263 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22264 | echo "$as_me:$LINENO: result: yes" >&5 |
22265 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22266 | succeeded=yes |
22267 | ||
e6cc62c6 VS |
22268 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22269 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22270 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22271 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22272 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22273 | |
e6cc62c6 VS |
22274 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22275 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22276 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22277 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22278 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22279 | else |
22280 | PANGOX_CFLAGS="" | |
22281 | PANGOX_LIBS="" | |
e6cc62c6 | 22282 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22283 | ## do set a variable so people can do so. |
22284 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22285 | |
2b5f62a0 VZ |
22286 | fi |
22287 | ||
e6cc62c6 VS |
22288 | |
22289 | ||
2b5f62a0 VZ |
22290 | else |
22291 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22292 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22293 | fi | |
22294 | fi | |
22295 | ||
22296 | if test $succeeded = yes; then | |
e6cc62c6 | 22297 | |
2b5f62a0 | 22298 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22299 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22300 | |
2b5f62a0 | 22301 | else |
e6cc62c6 VS |
22302 | |
22303 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22304 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22305 | { (exit 1); exit 1; }; } | |
22306 | ||
22307 | ||
2b5f62a0 VZ |
22308 | fi |
22309 | ||
e6cc62c6 | 22310 | |
2b5f62a0 VZ |
22311 | succeeded=no |
22312 | ||
22313 | if test -z "$PKG_CONFIG"; then | |
22314 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22315 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22318 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22320 | else |
e6cc62c6 VS |
22321 | case $PKG_CONFIG in |
22322 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22323 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22324 | ;; | |
2b5f62a0 | 22325 | *) |
e6cc62c6 VS |
22326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22327 | for as_dir in $PATH | |
22328 | do | |
22329 | IFS=$as_save_IFS | |
22330 | test -z "$as_dir" && as_dir=. | |
22331 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22332 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22333 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22334 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22335 | break 2 | |
22336 | fi | |
22337 | done | |
22338 | done | |
22339 | ||
2b5f62a0 VZ |
22340 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22341 | ;; | |
22342 | esac | |
22343 | fi | |
e6cc62c6 VS |
22344 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22345 | ||
2b5f62a0 | 22346 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22347 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22348 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22349 | else |
e6cc62c6 VS |
22350 | echo "$as_me:$LINENO: result: no" >&5 |
22351 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22352 | fi |
22353 | ||
22354 | fi | |
22355 | ||
22356 | if test "$PKG_CONFIG" = "no" ; then | |
22357 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22358 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22359 | echo "*** to the full path to pkg-config." | |
22360 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22361 | else | |
22362 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22363 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22364 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22365 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22366 | |
22367 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22368 | echo "$as_me:$LINENO: result: yes" >&5 |
22369 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22370 | succeeded=yes |
22371 | ||
e6cc62c6 VS |
22372 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22373 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22374 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22375 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22376 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22377 | |
e6cc62c6 VS |
22378 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22379 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22380 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22381 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22382 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22383 | else |
22384 | PANGOFT2_CFLAGS="" | |
22385 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22386 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22387 | ## do set a variable so people can do so. |
22388 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22389 | |
2b5f62a0 VZ |
22390 | fi |
22391 | ||
e6cc62c6 VS |
22392 | |
22393 | ||
2b5f62a0 VZ |
22394 | else |
22395 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22396 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22397 | fi | |
22398 | fi | |
22399 | ||
22400 | if test $succeeded = yes; then | |
e6cc62c6 | 22401 | |
2b5f62a0 | 22402 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22403 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22404 | |
2b5f62a0 | 22405 | else |
e6cc62c6 VS |
22406 | |
22407 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22408 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22409 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22410 | |
22411 | ||
2b5f62a0 VZ |
22412 | fi |
22413 | ||
e6cc62c6 | 22414 | |
2b5f62a0 VZ |
22415 | succeeded=no |
22416 | ||
22417 | if test -z "$PKG_CONFIG"; then | |
22418 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22419 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22422 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22424 | else |
e6cc62c6 VS |
22425 | case $PKG_CONFIG in |
22426 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22427 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22428 | ;; | |
2b5f62a0 | 22429 | *) |
e6cc62c6 VS |
22430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22431 | for as_dir in $PATH | |
22432 | do | |
22433 | IFS=$as_save_IFS | |
22434 | test -z "$as_dir" && as_dir=. | |
22435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22437 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22439 | break 2 | |
22440 | fi | |
22441 | done | |
22442 | done | |
22443 | ||
2b5f62a0 VZ |
22444 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22445 | ;; | |
22446 | esac | |
22447 | fi | |
e6cc62c6 VS |
22448 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22449 | ||
2b5f62a0 | 22450 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22451 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22452 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22453 | else |
e6cc62c6 VS |
22454 | echo "$as_me:$LINENO: result: no" >&5 |
22455 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22456 | fi |
22457 | ||
22458 | fi | |
22459 | ||
22460 | if test "$PKG_CONFIG" = "no" ; then | |
22461 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22462 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22463 | echo "*** to the full path to pkg-config." | |
22464 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22465 | else | |
22466 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22467 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22468 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22469 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22470 | |
22471 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22472 | echo "$as_me:$LINENO: result: yes" >&5 |
22473 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22474 | succeeded=yes |
22475 | ||
e6cc62c6 VS |
22476 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22477 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22478 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22479 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22480 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22481 | |
e6cc62c6 VS |
22482 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22483 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22484 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22485 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22486 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22487 | else |
22488 | PANGOXFT_CFLAGS="" | |
22489 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22490 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22491 | ## do set a variable so people can do so. |
22492 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22493 | |
2b5f62a0 VZ |
22494 | fi |
22495 | ||
e6cc62c6 VS |
22496 | |
22497 | ||
2b5f62a0 VZ |
22498 | else |
22499 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22500 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22501 | fi | |
22502 | fi | |
22503 | ||
22504 | if test $succeeded = yes; then | |
e6cc62c6 | 22505 | |
2b5f62a0 | 22506 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22507 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22508 | |
2b5f62a0 | 22509 | else |
e6cc62c6 VS |
22510 | |
22511 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22512 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22513 | ||
22514 | ||
2b5f62a0 VZ |
22515 | fi |
22516 | ||
22517 | fi | |
22518 | ||
22519 | wxUSE_UNIVERSAL="yes" | |
22520 | ||
22521 | if test "$wxUSE_NANOX" = "yes"; then | |
22522 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22523 | 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" |
2b5f62a0 VZ |
22524 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22525 | else | |
22526 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22527 | fi | |
22528 | ||
22529 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22530 | TOOLKIT=X11 | |
22531 | GUIDIST=X11_DIST | |
22532 | fi | |
22533 | ||
21d1c967 GD |
22534 | if test "$wxUSE_MOTIF" = 1; then |
22535 | if test "$no_x" = yes; then | |
22536 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22537 | |
22538 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22539 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22540 | _ACEOF |
21d1c967 GD |
22541 | |
22542 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22543 | else | |
22544 | if test -n "$x_includes"; then | |
22545 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22546 | fi |
22547 | ||
21d1c967 GD |
22548 | # It would also be nice to do this for all -L options, not just this one. |
22549 | if test -n "$x_libraries"; then | |
22550 | X_LIBS="$X_LIBS -L$x_libraries" | |
22551 | # For Solaris; some versions of Sun CC require a space after -R and | |
22552 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22553 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 22554 | "SunOS 5"*) |
e6cc62c6 VS |
22555 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22556 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22557 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22558 | cat >conftest.$ac_ext <<_ACEOF | |
22559 | #line $LINENO "configure" | |
22560 | /* confdefs.h. */ | |
22561 | _ACEOF | |
22562 | cat confdefs.h >>conftest.$ac_ext | |
22563 | cat >>conftest.$ac_ext <<_ACEOF | |
22564 | /* end confdefs.h. */ | |
22565 | ||
22566 | int | |
22567 | main () | |
22568 | { | |
21d1c967 | 22569 | |
e6cc62c6 VS |
22570 | ; |
22571 | return 0; | |
22572 | } | |
22573 | _ACEOF | |
22574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22576 | (eval $ac_link) 2>&5 | |
22577 | ac_status=$? | |
22578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22579 | (exit $ac_status); } && | |
22580 | { ac_try='test -s conftest$ac_exeext' | |
22581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22582 | (eval $ac_try) 2>&5 | |
22583 | ac_status=$? | |
22584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22585 | (exit $ac_status); }; }; then | |
21d1c967 | 22586 | ac_R_nospace=yes |
698dcdb6 | 22587 | else |
e6cc62c6 VS |
22588 | echo "$as_me: failed program was:" >&5 |
22589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22590 | ||
22591 | ac_R_nospace=no | |
10f2d63a | 22592 | fi |
e6cc62c6 | 22593 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22594 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22595 | echo "$as_me:$LINENO: result: no" >&5 |
22596 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22597 | X_LIBS="$X_LIBS -R$x_libraries" |
22598 | else | |
22599 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
22600 | cat >conftest.$ac_ext <<_ACEOF |
22601 | #line $LINENO "configure" | |
22602 | /* confdefs.h. */ | |
22603 | _ACEOF | |
22604 | cat confdefs.h >>conftest.$ac_ext | |
22605 | cat >>conftest.$ac_ext <<_ACEOF | |
22606 | /* end confdefs.h. */ | |
22607 | ||
22608 | int | |
22609 | main () | |
22610 | { | |
f0c87536 | 22611 | |
e6cc62c6 VS |
22612 | ; |
22613 | return 0; | |
22614 | } | |
22615 | _ACEOF | |
22616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22618 | (eval $ac_link) 2>&5 | |
22619 | ac_status=$? | |
22620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22621 | (exit $ac_status); } && | |
22622 | { ac_try='test -s conftest$ac_exeext' | |
22623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22624 | (eval $ac_try) 2>&5 | |
22625 | ac_status=$? | |
22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22627 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22628 | ac_R_space=yes |
22629 | else | |
e6cc62c6 VS |
22630 | echo "$as_me: failed program was:" >&5 |
22631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22632 | ||
22633 | ac_R_space=no | |
21d1c967 | 22634 | fi |
e6cc62c6 | 22635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22636 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22637 | echo "$as_me:$LINENO: result: yes" >&5 |
22638 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
22639 | X_LIBS="$X_LIBS -R $x_libraries" |
22640 | else | |
e6cc62c6 VS |
22641 | echo "$as_me:$LINENO: result: neither works" >&5 |
22642 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
22643 | fi |
22644 | fi | |
e6cc62c6 | 22645 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
22646 | esac |
22647 | fi | |
90dd450c | 22648 | |
21d1c967 GD |
22649 | # Check for system-dependent libraries X programs must link with. |
22650 | # Do this before checking for the system-independent R6 libraries | |
22651 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22652 | ||
22653 | if test "$ISC" = yes; then | |
22654 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22655 | else | |
e6cc62c6 VS |
22656 | # Martyn Johnson says this is needed for Ultrix, if the X |
22657 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 22658 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22659 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22660 | cat >conftest.$ac_ext <<_ACEOF | |
22661 | #line $LINENO "configure" | |
22662 | /* confdefs.h. */ | |
22663 | _ACEOF | |
22664 | cat confdefs.h >>conftest.$ac_ext | |
22665 | cat >>conftest.$ac_ext <<_ACEOF | |
22666 | /* end confdefs.h. */ | |
22667 | ||
247f5006 | 22668 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22669 | #ifdef __cplusplus |
22670 | extern "C" | |
22671 | #endif | |
247f5006 | 22672 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22673 | builtin and then its argument prototype would still apply. */ |
22674 | char XOpenDisplay (); | |
22675 | int | |
22676 | main () | |
22677 | { | |
22678 | XOpenDisplay (); | |
22679 | ; | |
22680 | return 0; | |
22681 | } | |
22682 | _ACEOF | |
22683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22685 | (eval $ac_link) 2>&5 | |
22686 | ac_status=$? | |
22687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22688 | (exit $ac_status); } && | |
22689 | { ac_try='test -s conftest$ac_exeext' | |
22690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22691 | (eval $ac_try) 2>&5 | |
22692 | ac_status=$? | |
22693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22694 | (exit $ac_status); }; }; then | |
22695 | : | |
22696 | else | |
22697 | echo "$as_me: failed program was:" >&5 | |
22698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22699 | |
e6cc62c6 VS |
22700 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22701 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22702 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22704 | else |
e6cc62c6 VS |
22705 | ac_check_lib_save_LIBS=$LIBS |
22706 | LIBS="-ldnet $LIBS" | |
22707 | cat >conftest.$ac_ext <<_ACEOF | |
22708 | #line $LINENO "configure" | |
22709 | /* confdefs.h. */ | |
22710 | _ACEOF | |
22711 | cat confdefs.h >>conftest.$ac_ext | |
22712 | cat >>conftest.$ac_ext <<_ACEOF | |
22713 | /* end confdefs.h. */ | |
a0b9e27f | 22714 | |
e6cc62c6 VS |
22715 | /* Override any gcc2 internal prototype to avoid an error. */ |
22716 | #ifdef __cplusplus | |
22717 | extern "C" | |
22718 | #endif | |
22719 | /* We use char because int might match the return type of a gcc2 | |
22720 | builtin and then its argument prototype would still apply. */ | |
22721 | char dnet_ntoa (); | |
22722 | int | |
22723 | main () | |
22724 | { | |
22725 | dnet_ntoa (); | |
22726 | ; | |
22727 | return 0; | |
22728 | } | |
22729 | _ACEOF | |
22730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22732 | (eval $ac_link) 2>&5 | |
22733 | ac_status=$? | |
22734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22735 | (exit $ac_status); } && | |
22736 | { ac_try='test -s conftest$ac_exeext' | |
22737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22738 | (eval $ac_try) 2>&5 | |
22739 | ac_status=$? | |
22740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22741 | (exit $ac_status); }; }; then | |
22742 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22743 | else | |
22744 | echo "$as_me: failed program was:" >&5 | |
22745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22746 | ||
22747 | ac_cv_lib_dnet_dnet_ntoa=no | |
22748 | fi | |
22749 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22750 | LIBS=$ac_check_lib_save_LIBS | |
22751 | fi | |
22752 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22753 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22754 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 22755 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 22756 | fi |
0fb0dd83 | 22757 | |
21d1c967 | 22758 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
22759 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22760 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22761 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22763 | else |
e6cc62c6 | 22764 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22765 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
22766 | cat >conftest.$ac_ext <<_ACEOF |
22767 | #line $LINENO "configure" | |
22768 | /* confdefs.h. */ | |
22769 | _ACEOF | |
22770 | cat confdefs.h >>conftest.$ac_ext | |
22771 | cat >>conftest.$ac_ext <<_ACEOF | |
22772 | /* end confdefs.h. */ | |
22773 | ||
21d1c967 | 22774 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22775 | #ifdef __cplusplus |
22776 | extern "C" | |
22777 | #endif | |
21d1c967 | 22778 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22779 | builtin and then its argument prototype would still apply. */ |
22780 | char dnet_ntoa (); | |
22781 | int | |
22782 | main () | |
22783 | { | |
22784 | dnet_ntoa (); | |
22785 | ; | |
22786 | return 0; | |
22787 | } | |
22788 | _ACEOF | |
22789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22791 | (eval $ac_link) 2>&5 | |
22792 | ac_status=$? | |
22793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22794 | (exit $ac_status); } && | |
22795 | { ac_try='test -s conftest$ac_exeext' | |
22796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22797 | (eval $ac_try) 2>&5 | |
22798 | ac_status=$? | |
22799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22800 | (exit $ac_status); }; }; then | |
22801 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22802 | else | |
22803 | echo "$as_me: failed program was:" >&5 | |
22804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22805 | ||
22806 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22807 | fi | |
22808 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22809 | LIBS=$ac_check_lib_save_LIBS | |
22810 | fi | |
22811 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22812 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22813 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 22814 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
22815 | fi |
22816 | ||
21d1c967 | 22817 | fi |
e6cc62c6 VS |
22818 | fi |
22819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22820 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 22821 | |
21d1c967 GD |
22822 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
22823 | # to get the SysV transport functions. | |
e6cc62c6 | 22824 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
22825 | # needs -lnsl. |
22826 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
22827 | # on Irix 5.2, according to T.E. Dickey. |
22828 | # The functions gethostbyname, getservbyname, and inet_addr are | |
22829 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
22830 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
22831 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
22832 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
22833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22834 | else | |
22835 | cat >conftest.$ac_ext <<_ACEOF | |
22836 | #line $LINENO "configure" | |
22837 | /* confdefs.h. */ | |
22838 | _ACEOF | |
22839 | cat confdefs.h >>conftest.$ac_ext | |
22840 | cat >>conftest.$ac_ext <<_ACEOF | |
22841 | /* end confdefs.h. */ | |
21d1c967 | 22842 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22843 | which can conflict with char gethostbyname (); below. |
22844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22845 | <limits.h> exists even on freestanding compilers. */ | |
22846 | #ifdef __STDC__ | |
22847 | # include <limits.h> | |
22848 | #else | |
22849 | # include <assert.h> | |
22850 | #endif | |
21d1c967 | 22851 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22852 | #ifdef __cplusplus |
22853 | extern "C" | |
22854 | { | |
22855 | #endif | |
21d1c967 | 22856 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22857 | builtin and then its argument prototype would still apply. */ |
22858 | char gethostbyname (); | |
21d1c967 GD |
22859 | /* The GNU C library defines this for functions which it implements |
22860 | to always fail with ENOSYS. Some functions are actually named | |
22861 | something starting with __ and the normal name is an alias. */ | |
22862 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22863 | choke me | |
22864 | #else | |
e6cc62c6 VS |
22865 | char (*f) () = gethostbyname; |
22866 | #endif | |
22867 | #ifdef __cplusplus | |
22868 | } | |
21d1c967 | 22869 | #endif |
90dd450c | 22870 | |
e6cc62c6 VS |
22871 | int |
22872 | main () | |
22873 | { | |
22874 | return f != gethostbyname; | |
22875 | ; | |
22876 | return 0; | |
22877 | } | |
22878 | _ACEOF | |
22879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22881 | (eval $ac_link) 2>&5 | |
22882 | ac_status=$? | |
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22884 | (exit $ac_status); } && | |
22885 | { ac_try='test -s conftest$ac_exeext' | |
22886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22887 | (eval $ac_try) 2>&5 | |
22888 | ac_status=$? | |
22889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22890 | (exit $ac_status); }; }; then | |
22891 | ac_cv_func_gethostbyname=yes | |
22892 | else | |
22893 | echo "$as_me: failed program was:" >&5 | |
22894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22895 | ||
22896 | ac_cv_func_gethostbyname=no | |
22897 | fi | |
22898 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22899 | fi | |
22900 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22901 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 22902 | |
21d1c967 | 22903 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
22904 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
22905 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22906 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22908 | else |
e6cc62c6 | 22909 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22910 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
22911 | cat >conftest.$ac_ext <<_ACEOF |
22912 | #line $LINENO "configure" | |
22913 | /* confdefs.h. */ | |
22914 | _ACEOF | |
22915 | cat confdefs.h >>conftest.$ac_ext | |
22916 | cat >>conftest.$ac_ext <<_ACEOF | |
22917 | /* end confdefs.h. */ | |
22918 | ||
21d1c967 | 22919 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22920 | #ifdef __cplusplus |
22921 | extern "C" | |
22922 | #endif | |
21d1c967 | 22923 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22924 | builtin and then its argument prototype would still apply. */ |
22925 | char gethostbyname (); | |
22926 | int | |
22927 | main () | |
22928 | { | |
22929 | gethostbyname (); | |
22930 | ; | |
22931 | return 0; | |
22932 | } | |
22933 | _ACEOF | |
22934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22936 | (eval $ac_link) 2>&5 | |
22937 | ac_status=$? | |
22938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22939 | (exit $ac_status); } && | |
22940 | { ac_try='test -s conftest$ac_exeext' | |
22941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22942 | (eval $ac_try) 2>&5 | |
22943 | ac_status=$? | |
22944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22945 | (exit $ac_status); }; }; then | |
22946 | ac_cv_lib_nsl_gethostbyname=yes | |
22947 | else | |
22948 | echo "$as_me: failed program was:" >&5 | |
22949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22950 | ||
22951 | ac_cv_lib_nsl_gethostbyname=no | |
22952 | fi | |
22953 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22954 | LIBS=$ac_check_lib_save_LIBS | |
22955 | fi | |
22956 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22957 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22958 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22959 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 22960 | fi |
247f5006 | 22961 | |
e6cc62c6 VS |
22962 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
22963 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
22964 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
22965 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22967 | else |
e6cc62c6 VS |
22968 | ac_check_lib_save_LIBS=$LIBS |
22969 | LIBS="-lbsd $LIBS" | |
22970 | cat >conftest.$ac_ext <<_ACEOF | |
22971 | #line $LINENO "configure" | |
22972 | /* confdefs.h. */ | |
22973 | _ACEOF | |
22974 | cat confdefs.h >>conftest.$ac_ext | |
22975 | cat >>conftest.$ac_ext <<_ACEOF | |
22976 | /* end confdefs.h. */ | |
22977 | ||
22978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22979 | #ifdef __cplusplus | |
22980 | extern "C" | |
22981 | #endif | |
22982 | /* We use char because int might match the return type of a gcc2 | |
22983 | builtin and then its argument prototype would still apply. */ | |
22984 | char gethostbyname (); | |
22985 | int | |
22986 | main () | |
22987 | { | |
22988 | gethostbyname (); | |
22989 | ; | |
22990 | return 0; | |
22991 | } | |
22992 | _ACEOF | |
22993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22995 | (eval $ac_link) 2>&5 | |
22996 | ac_status=$? | |
22997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22998 | (exit $ac_status); } && | |
22999 | { ac_try='test -s conftest$ac_exeext' | |
23000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23001 | (eval $ac_try) 2>&5 | |
23002 | ac_status=$? | |
23003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23004 | (exit $ac_status); }; }; then | |
23005 | ac_cv_lib_bsd_gethostbyname=yes | |
23006 | else | |
23007 | echo "$as_me: failed program was:" >&5 | |
23008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23009 | ||
23010 | ac_cv_lib_bsd_gethostbyname=no | |
23011 | fi | |
23012 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23013 | LIBS=$ac_check_lib_save_LIBS | |
23014 | fi | |
23015 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23016 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23017 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23018 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23019 | fi |
90dd450c | 23020 | |
e6cc62c6 | 23021 | fi |
90dd450c VZ |
23022 | fi |
23023 | ||
21d1c967 GD |
23024 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23025 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23026 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23027 | # on later versions), says Simon Leinen: it contains gethostby* |
23028 | # variants that don't use the name server (or something). -lsocket | |
23029 | # must be given before -lnsl if both are needed. We assume that | |
23030 | # if connect needs -lnsl, so does gethostbyname. | |
23031 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23032 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23033 | if test "${ac_cv_func_connect+set}" = set; then | |
23034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23035 | else | |
23036 | cat >conftest.$ac_ext <<_ACEOF | |
23037 | #line $LINENO "configure" | |
23038 | /* confdefs.h. */ | |
23039 | _ACEOF | |
23040 | cat confdefs.h >>conftest.$ac_ext | |
23041 | cat >>conftest.$ac_ext <<_ACEOF | |
23042 | /* end confdefs.h. */ | |
21d1c967 | 23043 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23044 | which can conflict with char connect (); below. |
23045 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23046 | <limits.h> exists even on freestanding compilers. */ | |
23047 | #ifdef __STDC__ | |
23048 | # include <limits.h> | |
23049 | #else | |
23050 | # include <assert.h> | |
23051 | #endif | |
21d1c967 | 23052 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23053 | #ifdef __cplusplus |
23054 | extern "C" | |
23055 | { | |
23056 | #endif | |
21d1c967 | 23057 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23058 | builtin and then its argument prototype would still apply. */ |
23059 | char connect (); | |
21d1c967 GD |
23060 | /* The GNU C library defines this for functions which it implements |
23061 | to always fail with ENOSYS. Some functions are actually named | |
23062 | something starting with __ and the normal name is an alias. */ | |
23063 | #if defined (__stub_connect) || defined (__stub___connect) | |
23064 | choke me | |
23065 | #else | |
e6cc62c6 VS |
23066 | char (*f) () = connect; |
23067 | #endif | |
23068 | #ifdef __cplusplus | |
23069 | } | |
21d1c967 | 23070 | #endif |
90dd450c | 23071 | |
e6cc62c6 VS |
23072 | int |
23073 | main () | |
23074 | { | |
23075 | return f != connect; | |
23076 | ; | |
23077 | return 0; | |
23078 | } | |
23079 | _ACEOF | |
23080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23082 | (eval $ac_link) 2>&5 | |
23083 | ac_status=$? | |
23084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23085 | (exit $ac_status); } && | |
23086 | { ac_try='test -s conftest$ac_exeext' | |
23087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23088 | (eval $ac_try) 2>&5 | |
23089 | ac_status=$? | |
23090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23091 | (exit $ac_status); }; }; then | |
23092 | ac_cv_func_connect=yes | |
23093 | else | |
23094 | echo "$as_me: failed program was:" >&5 | |
23095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23096 | ||
23097 | ac_cv_func_connect=no | |
23098 | fi | |
23099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23100 | fi | |
23101 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23102 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23103 | |
21d1c967 | 23104 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23105 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23106 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23107 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23109 | else |
e6cc62c6 | 23110 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23111 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23112 | cat >conftest.$ac_ext <<_ACEOF |
23113 | #line $LINENO "configure" | |
23114 | /* confdefs.h. */ | |
23115 | _ACEOF | |
23116 | cat confdefs.h >>conftest.$ac_ext | |
23117 | cat >>conftest.$ac_ext <<_ACEOF | |
23118 | /* end confdefs.h. */ | |
23119 | ||
21d1c967 | 23120 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23121 | #ifdef __cplusplus |
23122 | extern "C" | |
23123 | #endif | |
21d1c967 | 23124 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23125 | builtin and then its argument prototype would still apply. */ |
23126 | char connect (); | |
23127 | int | |
23128 | main () | |
23129 | { | |
23130 | connect (); | |
23131 | ; | |
23132 | return 0; | |
23133 | } | |
23134 | _ACEOF | |
23135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23137 | (eval $ac_link) 2>&5 | |
23138 | ac_status=$? | |
23139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23140 | (exit $ac_status); } && | |
23141 | { ac_try='test -s conftest$ac_exeext' | |
23142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23143 | (eval $ac_try) 2>&5 | |
23144 | ac_status=$? | |
23145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23146 | (exit $ac_status); }; }; then | |
23147 | ac_cv_lib_socket_connect=yes | |
23148 | else | |
23149 | echo "$as_me: failed program was:" >&5 | |
23150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23151 | ||
23152 | ac_cv_lib_socket_connect=no | |
23153 | fi | |
23154 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23155 | LIBS=$ac_check_lib_save_LIBS | |
23156 | fi | |
23157 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23158 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23159 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23160 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23161 | fi |
90dd450c | 23162 | |
21d1c967 | 23163 | fi |
90dd450c | 23164 | |
e6cc62c6 VS |
23165 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23166 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23167 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23168 | if test "${ac_cv_func_remove+set}" = set; then | |
23169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23170 | else | |
23171 | cat >conftest.$ac_ext <<_ACEOF | |
23172 | #line $LINENO "configure" | |
23173 | /* confdefs.h. */ | |
23174 | _ACEOF | |
23175 | cat confdefs.h >>conftest.$ac_ext | |
23176 | cat >>conftest.$ac_ext <<_ACEOF | |
23177 | /* end confdefs.h. */ | |
21d1c967 | 23178 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23179 | which can conflict with char remove (); below. |
23180 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23181 | <limits.h> exists even on freestanding compilers. */ | |
23182 | #ifdef __STDC__ | |
23183 | # include <limits.h> | |
23184 | #else | |
23185 | # include <assert.h> | |
23186 | #endif | |
21d1c967 | 23187 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23188 | #ifdef __cplusplus |
23189 | extern "C" | |
23190 | { | |
23191 | #endif | |
21d1c967 | 23192 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23193 | builtin and then its argument prototype would still apply. */ |
23194 | char remove (); | |
21d1c967 GD |
23195 | /* The GNU C library defines this for functions which it implements |
23196 | to always fail with ENOSYS. Some functions are actually named | |
23197 | something starting with __ and the normal name is an alias. */ | |
23198 | #if defined (__stub_remove) || defined (__stub___remove) | |
23199 | choke me | |
23200 | #else | |
e6cc62c6 VS |
23201 | char (*f) () = remove; |
23202 | #endif | |
23203 | #ifdef __cplusplus | |
23204 | } | |
21d1c967 | 23205 | #endif |
90dd450c | 23206 | |
e6cc62c6 VS |
23207 | int |
23208 | main () | |
23209 | { | |
23210 | return f != remove; | |
23211 | ; | |
23212 | return 0; | |
23213 | } | |
23214 | _ACEOF | |
23215 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23217 | (eval $ac_link) 2>&5 | |
23218 | ac_status=$? | |
23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23220 | (exit $ac_status); } && | |
23221 | { ac_try='test -s conftest$ac_exeext' | |
23222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23223 | (eval $ac_try) 2>&5 | |
23224 | ac_status=$? | |
23225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23226 | (exit $ac_status); }; }; then | |
23227 | ac_cv_func_remove=yes | |
23228 | else | |
23229 | echo "$as_me: failed program was:" >&5 | |
23230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23231 | ||
23232 | ac_cv_func_remove=no | |
23233 | fi | |
23234 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23235 | fi | |
23236 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23237 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23238 | |
21d1c967 | 23239 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23240 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23241 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23242 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23244 | else |
e6cc62c6 | 23245 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23246 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23247 | cat >conftest.$ac_ext <<_ACEOF |
23248 | #line $LINENO "configure" | |
23249 | /* confdefs.h. */ | |
23250 | _ACEOF | |
23251 | cat confdefs.h >>conftest.$ac_ext | |
23252 | cat >>conftest.$ac_ext <<_ACEOF | |
23253 | /* end confdefs.h. */ | |
23254 | ||
21d1c967 | 23255 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23256 | #ifdef __cplusplus |
23257 | extern "C" | |
23258 | #endif | |
21d1c967 | 23259 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23260 | builtin and then its argument prototype would still apply. */ |
23261 | char remove (); | |
23262 | int | |
23263 | main () | |
23264 | { | |
23265 | remove (); | |
23266 | ; | |
23267 | return 0; | |
23268 | } | |
23269 | _ACEOF | |
23270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23272 | (eval $ac_link) 2>&5 | |
23273 | ac_status=$? | |
23274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23275 | (exit $ac_status); } && | |
23276 | { ac_try='test -s conftest$ac_exeext' | |
23277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23278 | (eval $ac_try) 2>&5 | |
23279 | ac_status=$? | |
23280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23281 | (exit $ac_status); }; }; then | |
23282 | ac_cv_lib_posix_remove=yes | |
23283 | else | |
23284 | echo "$as_me: failed program was:" >&5 | |
23285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23286 | ||
23287 | ac_cv_lib_posix_remove=no | |
23288 | fi | |
23289 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23290 | LIBS=$ac_check_lib_save_LIBS | |
23291 | fi | |
23292 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23293 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23294 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23295 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23296 | fi |
19bc6aad | 23297 | |
90dd450c | 23298 | fi |
19bc6aad | 23299 | |
21d1c967 | 23300 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23301 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23302 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23303 | if test "${ac_cv_func_shmat+set}" = set; then | |
23304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23305 | else | |
23306 | cat >conftest.$ac_ext <<_ACEOF | |
23307 | #line $LINENO "configure" | |
23308 | /* confdefs.h. */ | |
23309 | _ACEOF | |
23310 | cat confdefs.h >>conftest.$ac_ext | |
23311 | cat >>conftest.$ac_ext <<_ACEOF | |
23312 | /* end confdefs.h. */ | |
21d1c967 | 23313 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23314 | which can conflict with char shmat (); below. |
23315 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23316 | <limits.h> exists even on freestanding compilers. */ | |
23317 | #ifdef __STDC__ | |
23318 | # include <limits.h> | |
23319 | #else | |
23320 | # include <assert.h> | |
23321 | #endif | |
21d1c967 | 23322 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23323 | #ifdef __cplusplus |
23324 | extern "C" | |
23325 | { | |
23326 | #endif | |
21d1c967 | 23327 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23328 | builtin and then its argument prototype would still apply. */ |
23329 | char shmat (); | |
21d1c967 GD |
23330 | /* The GNU C library defines this for functions which it implements |
23331 | to always fail with ENOSYS. Some functions are actually named | |
23332 | something starting with __ and the normal name is an alias. */ | |
23333 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23334 | choke me | |
23335 | #else | |
e6cc62c6 VS |
23336 | char (*f) () = shmat; |
23337 | #endif | |
23338 | #ifdef __cplusplus | |
23339 | } | |
21d1c967 | 23340 | #endif |
90dd450c | 23341 | |
e6cc62c6 VS |
23342 | int |
23343 | main () | |
23344 | { | |
23345 | return f != shmat; | |
23346 | ; | |
23347 | return 0; | |
23348 | } | |
23349 | _ACEOF | |
23350 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23352 | (eval $ac_link) 2>&5 | |
23353 | ac_status=$? | |
23354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23355 | (exit $ac_status); } && | |
23356 | { ac_try='test -s conftest$ac_exeext' | |
23357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23358 | (eval $ac_try) 2>&5 | |
23359 | ac_status=$? | |
23360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23361 | (exit $ac_status); }; }; then | |
23362 | ac_cv_func_shmat=yes | |
23363 | else | |
23364 | echo "$as_me: failed program was:" >&5 | |
23365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23366 | ||
23367 | ac_cv_func_shmat=no | |
23368 | fi | |
23369 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23370 | fi | |
23371 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23372 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23373 | |
21d1c967 | 23374 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23375 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23376 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23377 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23379 | else |
e6cc62c6 | 23380 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23381 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23382 | cat >conftest.$ac_ext <<_ACEOF |
23383 | #line $LINENO "configure" | |
23384 | /* confdefs.h. */ | |
23385 | _ACEOF | |
23386 | cat confdefs.h >>conftest.$ac_ext | |
23387 | cat >>conftest.$ac_ext <<_ACEOF | |
23388 | /* end confdefs.h. */ | |
23389 | ||
5c6fa7d2 | 23390 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23391 | #ifdef __cplusplus |
23392 | extern "C" | |
23393 | #endif | |
5c6fa7d2 | 23394 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23395 | builtin and then its argument prototype would still apply. */ |
23396 | char shmat (); | |
23397 | int | |
23398 | main () | |
23399 | { | |
23400 | shmat (); | |
23401 | ; | |
23402 | return 0; | |
23403 | } | |
23404 | _ACEOF | |
23405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23407 | (eval $ac_link) 2>&5 | |
23408 | ac_status=$? | |
23409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23410 | (exit $ac_status); } && | |
23411 | { ac_try='test -s conftest$ac_exeext' | |
23412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23413 | (eval $ac_try) 2>&5 | |
23414 | ac_status=$? | |
23415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23416 | (exit $ac_status); }; }; then | |
23417 | ac_cv_lib_ipc_shmat=yes | |
23418 | else | |
23419 | echo "$as_me: failed program was:" >&5 | |
23420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23421 | ||
23422 | ac_cv_lib_ipc_shmat=no | |
23423 | fi | |
23424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23425 | LIBS=$ac_check_lib_save_LIBS | |
23426 | fi | |
23427 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23428 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23429 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23430 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23431 | fi |
90dd450c | 23432 | |
90dd450c | 23433 | fi |
21d1c967 | 23434 | fi |
10f2d63a | 23435 | |
21d1c967 | 23436 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23437 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23438 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23439 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23440 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23441 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23442 | # These have to be linked with before -lX11, unlike the other | |
23443 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23444 | # John Interrante, Karl Berry |
23445 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23446 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23447 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23449 | else | |
23450 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23451 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23452 | cat >conftest.$ac_ext <<_ACEOF |
23453 | #line $LINENO "configure" | |
23454 | /* confdefs.h. */ | |
23455 | _ACEOF | |
23456 | cat confdefs.h >>conftest.$ac_ext | |
23457 | cat >>conftest.$ac_ext <<_ACEOF | |
23458 | /* end confdefs.h. */ | |
23459 | ||
21d1c967 | 23460 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23461 | #ifdef __cplusplus |
23462 | extern "C" | |
23463 | #endif | |
21d1c967 | 23464 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23465 | builtin and then its argument prototype would still apply. */ |
23466 | char IceConnectionNumber (); | |
23467 | int | |
23468 | main () | |
23469 | { | |
23470 | IceConnectionNumber (); | |
23471 | ; | |
23472 | return 0; | |
23473 | } | |
23474 | _ACEOF | |
23475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23477 | (eval $ac_link) 2>&5 | |
23478 | ac_status=$? | |
23479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23480 | (exit $ac_status); } && | |
23481 | { ac_try='test -s conftest$ac_exeext' | |
23482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23483 | (eval $ac_try) 2>&5 | |
23484 | ac_status=$? | |
23485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23486 | (exit $ac_status); }; }; then | |
23487 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23488 | else | |
23489 | echo "$as_me: failed program was:" >&5 | |
23490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23491 | ||
23492 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23493 | fi | |
23494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23495 | LIBS=$ac_check_lib_save_LIBS | |
23496 | fi | |
23497 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23498 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23499 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23500 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23501 | fi |
21d1c967 | 23502 | |
e6cc62c6 | 23503 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23504 | |
10f2d63a VZ |
23505 | fi |
23506 | ||
8284b0c5 | 23507 | |
21d1c967 | 23508 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23509 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23510 | echo "$as_me: error: X11 not found" >&2;} | |
23511 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23512 | fi |
23513 | ||
2b5f62a0 VZ |
23514 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23515 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23516 | AFMINSTALL=afminstall |
23517 | COMPILED_X_PROGRAM=0 | |
23518 | ||
e6cc62c6 VS |
23519 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23520 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23521 | ||
21d1c967 | 23522 | ac_find_includes= |
2b5f62a0 | 23523 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23524 | do |
23525 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23526 | ac_find_includes=$ac_dir | |
23527 | break | |
23528 | fi | |
23529 | done | |
23530 | ||
23531 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23532 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23533 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23534 | ||
2b5f62a0 | 23535 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23536 | ac_path_to_include="" |
23537 | else | |
2b5f62a0 VZ |
23538 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23539 | result=$? | |
23540 | if test $result = 0; then | |
23541 | ac_path_to_include="" | |
23542 | else | |
23543 | ac_path_to_include=" -I$ac_find_includes" | |
23544 | fi | |
dd0e4a90 VZ |
23545 | fi |
23546 | ||
23547 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23548 | else |
e6cc62c6 VS |
23549 | cat >conftest.$ac_ext <<_ACEOF |
23550 | #line $LINENO "configure" | |
23551 | /* confdefs.h. */ | |
23552 | _ACEOF | |
23553 | cat confdefs.h >>conftest.$ac_ext | |
23554 | cat >>conftest.$ac_ext <<_ACEOF | |
23555 | /* end confdefs.h. */ | |
21d1c967 GD |
23556 | |
23557 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23558 | |
23559 | int | |
23560 | main () | |
23561 | { | |
21d1c967 GD |
23562 | |
23563 | int version; | |
23564 | version = xmUseVersion; | |
e6cc62c6 VS |
23565 | |
23566 | ; | |
23567 | return 0; | |
23568 | } | |
23569 | _ACEOF | |
23570 | rm -f conftest.$ac_objext | |
23571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23572 | (eval $ac_compile) 2>&5 | |
23573 | ac_status=$? | |
23574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23575 | (exit $ac_status); } && | |
23576 | { ac_try='test -s conftest.$ac_objext' | |
23577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23578 | (eval $ac_try) 2>&5 | |
23579 | ac_status=$? | |
23580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23581 | (exit $ac_status); }; }; then | |
23582 | ||
23583 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23584 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23585 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23586 | |
10f2d63a | 23587 | else |
e6cc62c6 VS |
23588 | echo "$as_me: failed program was:" >&5 |
23589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23590 | ||
23591 | ||
23592 | echo "$as_me:$LINENO: result: no" >&5 | |
23593 | echo "${ECHO_T}no" >&6 | |
23594 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23595 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23596 | { (exit 1); exit 1; }; } | |
23597 | ||
23598 | ||
10f2d63a | 23599 | fi |
e6cc62c6 | 23600 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 23601 | fi |
10f2d63a | 23602 | |
21d1c967 | 23603 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
23604 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
23605 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23606 | ||
21d1c967 | 23607 | ac_find_libraries= |
2b5f62a0 | 23608 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23609 | do |
23610 | for ac_extension in a so sl dylib; do | |
23611 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23612 | ac_find_libraries=$ac_dir | |
23613 | break 2 | |
23614 | fi | |
23615 | done | |
23616 | done | |
23617 | ||
23618 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
23619 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23620 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23621 | ||
21d1c967 | 23622 | |
21d1c967 GD |
23623 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23624 | result=$? | |
23625 | if test $result = 0; then | |
23626 | ac_path_to_link="" | |
23627 | else | |
23628 | ac_path_to_link=" -L$ac_find_libraries" | |
23629 | fi | |
23630 | ||
21d1c967 | 23631 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 23632 | else |
dd0e4a90 VZ |
23633 | save_CFLAGS=$CFLAGS |
23634 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23635 | ||
e6cc62c6 VS |
23636 | cat >conftest.$ac_ext <<_ACEOF |
23637 | #line $LINENO "configure" | |
23638 | /* confdefs.h. */ | |
23639 | _ACEOF | |
23640 | cat confdefs.h >>conftest.$ac_ext | |
23641 | cat >>conftest.$ac_ext <<_ACEOF | |
23642 | /* end confdefs.h. */ | |
21d1c967 GD |
23643 | |
23644 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23645 | |
23646 | int | |
23647 | main () | |
23648 | { | |
21d1c967 GD |
23649 | |
23650 | int version; | |
23651 | version = xmUseVersion; | |
e6cc62c6 VS |
23652 | |
23653 | ; | |
23654 | return 0; | |
23655 | } | |
23656 | _ACEOF | |
23657 | rm -f conftest.$ac_objext | |
23658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23659 | (eval $ac_compile) 2>&5 | |
23660 | ac_status=$? | |
23661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23662 | (exit $ac_status); } && | |
23663 | { ac_try='test -s conftest.$ac_objext' | |
23664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23665 | (eval $ac_try) 2>&5 | |
23666 | ac_status=$? | |
23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23668 | (exit $ac_status); }; }; then | |
23669 | ||
23670 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23671 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23672 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23673 | |
d836ee96 | 23674 | else |
e6cc62c6 VS |
23675 | echo "$as_me: failed program was:" >&5 |
23676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23677 | ||
23678 | ||
23679 | echo "$as_me:$LINENO: result: no" >&5 | |
23680 | echo "${ECHO_T}no" >&6 | |
23681 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23682 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23683 | { (exit 1); exit 1; }; } | |
23684 | ||
23685 | ||
d836ee96 | 23686 | fi |
e6cc62c6 | 23687 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23688 | |
23689 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23690 | fi |
23691 | fi | |
23692 | ||
23693 | xpm_link= | |
e6cc62c6 VS |
23694 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
23695 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
23696 | ||
21d1c967 | 23697 | ac_find_libraries= |
2b5f62a0 | 23698 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23699 | do |
23700 | for ac_extension in a so sl dylib; do | |
23701 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
23702 | ac_find_libraries=$ac_dir | |
23703 | break 2 | |
23704 | fi | |
23705 | done | |
23706 | done | |
23707 | ||
23708 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 23709 | |
21d1c967 GD |
23710 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23711 | result=$? | |
23712 | if test $result = 0; then | |
23713 | ac_path_to_link="" | |
23714 | else | |
23715 | ac_path_to_link=" -L$ac_find_libraries" | |
23716 | fi | |
23717 | ||
23718 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 23719 | |
21d1c967 | 23720 | xpm_link=" -lXpm" |
e6cc62c6 | 23721 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23722 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23723 | _ACEOF |
90dd450c | 23724 | |
e6cc62c6 VS |
23725 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23726 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 23727 | else |
dd0e4a90 VZ |
23728 | save_CFLAGS=$CFLAGS |
23729 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23730 | ||
e6cc62c6 VS |
23731 | cat >conftest.$ac_ext <<_ACEOF |
23732 | #line $LINENO "configure" | |
23733 | /* confdefs.h. */ | |
23734 | _ACEOF | |
23735 | cat confdefs.h >>conftest.$ac_ext | |
23736 | cat >>conftest.$ac_ext <<_ACEOF | |
23737 | /* end confdefs.h. */ | |
21d1c967 GD |
23738 | |
23739 | #include <X11/xpm.h> | |
e6cc62c6 VS |
23740 | |
23741 | int | |
23742 | main () | |
23743 | { | |
21d1c967 GD |
23744 | |
23745 | int version; | |
23746 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
23747 | |
23748 | ; | |
23749 | return 0; | |
23750 | } | |
23751 | _ACEOF | |
23752 | rm -f conftest.$ac_objext | |
23753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23754 | (eval $ac_compile) 2>&5 | |
23755 | ac_status=$? | |
23756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23757 | (exit $ac_status); } && | |
23758 | { ac_try='test -s conftest.$ac_objext' | |
23759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23760 | (eval $ac_try) 2>&5 | |
23761 | ac_status=$? | |
23762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23763 | (exit $ac_status); }; }; then | |
23764 | ||
21d1c967 | 23765 | xpm_link=" -lXpm" |
e6cc62c6 | 23766 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23767 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23768 | _ACEOF |
21d1c967 | 23769 | |
e6cc62c6 VS |
23770 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
23771 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23772 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 23773 | |
d836ee96 | 23774 | else |
e6cc62c6 VS |
23775 | echo "$as_me: failed program was:" >&5 |
23776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23777 | ||
23778 | ||
23779 | echo "$as_me:$LINENO: result: no" >&5 | |
23780 | echo "${ECHO_T}no" >&6 | |
23781 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
23782 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
23783 | ||
23784 | ||
d836ee96 | 23785 | fi |
e6cc62c6 | 23786 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23787 | |
23788 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23789 | fi |
23790 | ||
e6cc62c6 VS |
23791 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
23792 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
23793 | libp_link="" |
23794 | libsm_ice_link="" | |
23795 | libs_found=0 | |
23796 | for libp in "" " -lXp"; do | |
23797 | if test "$libs_found" = "0"; then | |
23798 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 23799 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
23800 | save_LIBS="$LIBS" |
23801 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
23802 | save_CFLAGS=$CFLAGS |
23803 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23804 | ||
e6cc62c6 VS |
23805 | cat >conftest.$ac_ext <<_ACEOF |
23806 | #line $LINENO "configure" | |
23807 | /* confdefs.h. */ | |
23808 | _ACEOF | |
23809 | cat confdefs.h >>conftest.$ac_ext | |
23810 | cat >>conftest.$ac_ext <<_ACEOF | |
23811 | /* end confdefs.h. */ | |
17234b26 | 23812 | |
6a30f1c8 MB |
23813 | #include <Xm/Xm.h> |
23814 | #include <Xm/List.h> | |
e6cc62c6 VS |
23815 | |
23816 | int | |
23817 | main () | |
23818 | { | |
6a30f1c8 MB |
23819 | |
23820 | XmString string = NULL; | |
23821 | Widget w = NULL; | |
23822 | int position = 0; | |
23823 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
23824 | |
23825 | ; | |
23826 | return 0; | |
23827 | } | |
23828 | _ACEOF | |
23829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23831 | (eval $ac_link) 2>&5 | |
23832 | ac_status=$? | |
23833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23834 | (exit $ac_status); } && | |
23835 | { ac_try='test -s conftest$ac_exeext' | |
23836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23837 | (eval $ac_try) 2>&5 | |
23838 | ac_status=$? | |
23839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23840 | (exit $ac_status); }; }; then | |
23841 | ||
6a30f1c8 MB |
23842 | libp_link="$libp" |
23843 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
23844 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
23845 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 23846 | libs_found=1 |
e6cc62c6 | 23847 | |
6a30f1c8 | 23848 | else |
e6cc62c6 VS |
23849 | echo "$as_me: failed program was:" >&5 |
23850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23851 | ||
23852 | ||
23853 | ||
6a30f1c8 | 23854 | fi |
e6cc62c6 | 23855 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 23856 | |
6a30f1c8 | 23857 | LIBS="$save_LIBS" |
dd0e4a90 | 23858 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
23859 | fi |
23860 | done | |
23861 | fi | |
23862 | done | |
23863 | ||
23864 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
23865 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
23866 | echo "${ECHO_T}can't find the right libraries" >&6 | |
23867 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
23868 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
23869 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
23870 | fi |
23871 | ||
da494b40 MB |
23872 | save_CFLAGS=$CFLAGS |
23873 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
23874 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
23875 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
23876 | cat >conftest.$ac_ext <<_ACEOF | |
23877 | #line $LINENO "configure" | |
23878 | /* confdefs.h. */ | |
23879 | _ACEOF | |
23880 | cat confdefs.h >>conftest.$ac_ext | |
23881 | cat >>conftest.$ac_ext <<_ACEOF | |
23882 | /* end confdefs.h. */ | |
da494b40 MB |
23883 | |
23884 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23885 | |
23886 | int | |
23887 | main () | |
23888 | { | |
da494b40 MB |
23889 | |
23890 | #if XmVersion < 2000 | |
23891 | #error "Not Motif 2" | |
23892 | #endif | |
e6cc62c6 VS |
23893 | |
23894 | ; | |
23895 | return 0; | |
23896 | } | |
23897 | _ACEOF | |
23898 | rm -f conftest.$ac_objext | |
23899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23900 | (eval $ac_compile) 2>&5 | |
23901 | ac_status=$? | |
23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23903 | (exit $ac_status); } && | |
23904 | { ac_try='test -s conftest.$ac_objext' | |
23905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23906 | (eval $ac_try) 2>&5 | |
23907 | ac_status=$? | |
23908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23909 | (exit $ac_status); }; }; then | |
23910 | ||
23911 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 23912 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
23913 | _ACEOF |
23914 | ||
23915 | echo "$as_me:$LINENO: result: found" >&5 | |
23916 | echo "${ECHO_T}found" >&6 | |
da494b40 | 23917 | |
da494b40 | 23918 | else |
e6cc62c6 VS |
23919 | echo "$as_me: failed program was:" >&5 |
23920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23921 | ||
23922 | ||
23923 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 23924 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
23925 | _ACEOF |
23926 | ||
23927 | echo "$as_me:$LINENO: result: not found" >&5 | |
23928 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 23929 | |
da494b40 | 23930 | fi |
e6cc62c6 | 23931 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
23932 | CFLAGS=$save_CFLAGS |
23933 | ||
6a30f1c8 | 23934 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 23935 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
23936 | TOOLKIT=MOTIF |
23937 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
23938 | wxHAVE_XEXT_LIB=1 |
23939 | fi | |
23940 | ||
23941 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
23942 | test "$wxHAVE_XEXT_LIB" = 1; then | |
23943 | save_CFLAGS="$CFLAGS" | |
23944 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23945 | ||
e6cc62c6 VS |
23946 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
23947 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
23948 | cat >conftest.$ac_ext <<_ACEOF | |
23949 | #line $LINENO "configure" | |
23950 | /* confdefs.h. */ | |
23951 | _ACEOF | |
23952 | cat confdefs.h >>conftest.$ac_ext | |
23953 | cat >>conftest.$ac_ext <<_ACEOF | |
23954 | /* end confdefs.h. */ | |
23955 | ||
23956 | #include <X11/Xlib.h> | |
f7f78039 | 23957 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
23958 | |
23959 | int | |
23960 | main () | |
23961 | { | |
f7f78039 MB |
23962 | |
23963 | int dummy1, dummy2; | |
23964 | XShapeQueryExtension((Display*)NULL, | |
23965 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
23966 | |
23967 | ; | |
23968 | return 0; | |
23969 | } | |
23970 | _ACEOF | |
23971 | rm -f conftest.$ac_objext | |
23972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23973 | (eval $ac_compile) 2>&5 | |
23974 | ac_status=$? | |
23975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23976 | (exit $ac_status); } && | |
23977 | { ac_try='test -s conftest.$ac_objext' | |
23978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23979 | (eval $ac_try) 2>&5 | |
23980 | ac_status=$? | |
23981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23982 | (exit $ac_status); }; }; then | |
23983 | ||
23984 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 23985 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
23986 | _ACEOF |
23987 | ||
23988 | echo "$as_me:$LINENO: result: found" >&5 | |
23989 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 23990 | |
f7f78039 | 23991 | else |
e6cc62c6 VS |
23992 | echo "$as_me: failed program was:" >&5 |
23993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23994 | ||
23995 | ||
23996 | echo "$as_me:$LINENO: result: not found" >&5 | |
23997 | echo "${ECHO_T}not found" >&6 | |
23998 | ||
f7f78039 | 23999 | fi |
e6cc62c6 | 24000 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 24001 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
24002 | fi |
24003 | ||
24004 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 24005 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 24006 | |
0c98a14e | 24007 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24008 | TOOLKIT=MAC |
24009 | GUIDIST=MACX_DIST | |
24010 | fi | |
24011 | ||
ac0c4cc3 DE |
24012 | if test "$wxUSE_COCOA" = 1; then |
24013 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24014 | TOOLKIT=COCOA | |
24015 | GUIDIST=COCOA_DIST | |
24016 | fi | |
24017 | ||
21d1c967 GD |
24018 | if test "$wxUSE_PM" = 1; then |
24019 | TOOLKIT=PM | |
24020 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
24021 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
24022 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 24023 | wxUSE_THREADS="no" |
21d1c967 GD |
24024 | fi |
24025 | ||
24026 | if test "$TOOLKIT" = "PM" ; then | |
24027 | TOOLKIT_DIR="os2" | |
24028 | else | |
24029 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24030 | fi | |
24031 | ||
24032 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24033 | ||
24034 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24035 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24036 | ||
24037 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24038 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24039 | ||
24040 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24041 | if test "$wxUSE_X11" = 1; then | |
24042 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24043 | else | |
24044 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24045 | fi | |
24046 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24047 | WIDGET_SET=univ | |
24048 | else | |
24049 | ALL_OBJECTS="\$(GUIOBJS)" | |
24050 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24051 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24052 | fi | |
24053 | ||
24054 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24055 | ||
24056 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24057 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24058 | fi | |
24059 | ||
24060 | if test "$wxUSE_HTML" = "yes"; then | |
24061 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24062 | fi | |
24063 | ||
24064 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24065 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24066 | fi | |
24067 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24068 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24069 | fi | |
24070 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24071 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24072 | fi | |
24073 | ||
24074 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24075 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24076 | else |
21d1c967 GD |
24077 | USE_GUI=0 |
24078 | ||
24079 | TOOLKIT_DIR="base" | |
24080 | ||
24081 | if test "$USE_WIN32" = 1 ; then | |
24082 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24083 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24084 | ||
24085 | TOOLKIT="MSW" | |
24086 | else | |
24087 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24088 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24089 | fi | |
24090 | ||
24091 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24092 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24093 | ||
24094 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24095 | ||
24096 | GUIDIST="BASE_DIST" | |
24097 | DISTDIR="wxBase" | |
d836ee96 VZ |
24098 | fi |
24099 | ||
8284b0c5 | 24100 | |
8647bec6 RG |
24101 | |
24102 | ||
24103 | IODBC_C_SRC="" | |
24104 | ||
24105 | ||
24106 | if test "$TOOLKIT" != "MSW" ; then | |
24107 | ||
24108 | if test "$wxUSE_ODBC" != "no" ; then | |
e6cc62c6 | 24109 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 24110 | #define wxUSE_ODBC 1 |
e6cc62c6 | 24111 | _ACEOF |
8647bec6 RG |
24112 | |
24113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
e6cc62c6 | 24114 | |
8647bec6 RG |
24115 | WXODBCFLAG="-D_IODBC_" |
24116 | ||
24117 | ||
24118 | if test "$wxUSE_ODBC" = "sys" ; then | |
e6cc62c6 VS |
24119 | |
24120 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24121 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24122 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24123 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24125 | fi | |
24126 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24127 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24128 | else | |
24129 | # Is the header compilable? | |
24130 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24131 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24132 | cat >conftest.$ac_ext <<_ACEOF | |
24133 | #line $LINENO "configure" | |
24134 | /* confdefs.h. */ | |
24135 | _ACEOF | |
24136 | cat confdefs.h >>conftest.$ac_ext | |
24137 | cat >>conftest.$ac_ext <<_ACEOF | |
24138 | /* end confdefs.h. */ | |
24139 | $ac_includes_default | |
8647bec6 | 24140 | #include <sql.h> |
e6cc62c6 VS |
24141 | _ACEOF |
24142 | rm -f conftest.$ac_objext | |
24143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24144 | (eval $ac_compile) 2>&5 | |
24145 | ac_status=$? | |
24146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24147 | (exit $ac_status); } && | |
24148 | { ac_try='test -s conftest.$ac_objext' | |
24149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24150 | (eval $ac_try) 2>&5 | |
24151 | ac_status=$? | |
24152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24153 | (exit $ac_status); }; }; then | |
24154 | ac_header_compiler=yes | |
24155 | else | |
24156 | echo "$as_me: failed program was:" >&5 | |
24157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24158 | ||
24159 | ac_header_compiler=no | |
24160 | fi | |
24161 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24163 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24164 | ||
24165 | # Is the header present? | |
24166 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24167 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24168 | cat >conftest.$ac_ext <<_ACEOF | |
24169 | #line $LINENO "configure" | |
24170 | /* confdefs.h. */ | |
24171 | _ACEOF | |
24172 | cat confdefs.h >>conftest.$ac_ext | |
24173 | cat >>conftest.$ac_ext <<_ACEOF | |
24174 | /* end confdefs.h. */ | |
24175 | #include <sql.h> | |
24176 | _ACEOF | |
24177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24179 | ac_status=$? | |
24180 | grep -v '^ *+' conftest.er1 >conftest.err | |
24181 | rm -f conftest.er1 | |
24182 | cat conftest.err >&5 | |
24183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24184 | (exit $ac_status); } >/dev/null; then | |
24185 | if test -s conftest.err; then | |
24186 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24187 | else | |
24188 | ac_cpp_err= | |
24189 | fi | |
24190 | else | |
24191 | ac_cpp_err=yes | |
24192 | fi | |
24193 | if test -z "$ac_cpp_err"; then | |
24194 | ac_header_preproc=yes | |
24195 | else | |
24196 | echo "$as_me: failed program was:" >&5 | |
24197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24198 | ||
24199 | ac_header_preproc=no | |
24200 | fi | |
24201 | rm -f conftest.err conftest.$ac_ext | |
24202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24203 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24204 | ||
24205 | # So? What about this header? | |
24206 | case $ac_header_compiler:$ac_header_preproc in | |
24207 | yes:no ) | |
24208 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24209 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24210 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24211 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24212 | ( | |
24213 | cat <<\_ASBOX | |
24214 | ## ------------------------------------ ## | |
24215 | ## Report this to bug-autoconf@gnu.org. ## | |
24216 | ## ------------------------------------ ## | |
24217 | _ASBOX | |
24218 | ) | | |
24219 | sed "s/^/$as_me: WARNING: /" >&2 | |
24220 | ;; | |
24221 | no:yes ) | |
24222 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24223 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24224 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24225 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24226 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24227 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24228 | ( | |
24229 | cat <<\_ASBOX | |
24230 | ## ------------------------------------ ## | |
24231 | ## Report this to bug-autoconf@gnu.org. ## | |
24232 | ## ------------------------------------ ## | |
24233 | _ASBOX | |
24234 | ) | | |
24235 | sed "s/^/$as_me: WARNING: /" >&2 | |
24236 | ;; | |
24237 | esac | |
24238 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24239 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24240 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24242 | else |
e6cc62c6 VS |
24243 | ac_cv_header_sql_h=$ac_header_preproc |
24244 | fi | |
24245 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24246 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24247 | ||
8647bec6 RG |
24248 | fi |
24249 | ||
e6cc62c6 VS |
24250 | |
24251 | echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5 | |
24252 | echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6 | |
24253 | if test "${ac_cv_search_SQLAllocEnv+set}" = set; then | |
24254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24255 | else |
e6cc62c6 VS |
24256 | ac_func_search_save_LIBS=$LIBS |
24257 | ac_cv_search_SQLAllocEnv=no | |
24258 | cat >conftest.$ac_ext <<_ACEOF | |
24259 | #line $LINENO "configure" | |
24260 | /* confdefs.h. */ | |
24261 | _ACEOF | |
24262 | cat confdefs.h >>conftest.$ac_ext | |
24263 | cat >>conftest.$ac_ext <<_ACEOF | |
24264 | /* end confdefs.h. */ | |
24265 | ||
8647bec6 | 24266 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24267 | #ifdef __cplusplus |
24268 | extern "C" | |
24269 | #endif | |
8647bec6 | 24270 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24271 | builtin and then its argument prototype would still apply. */ |
24272 | char SQLAllocEnv (); | |
24273 | int | |
24274 | main () | |
24275 | { | |
24276 | SQLAllocEnv (); | |
24277 | ; | |
24278 | return 0; | |
24279 | } | |
24280 | _ACEOF | |
24281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24283 | (eval $ac_link) 2>&5 | |
24284 | ac_status=$? | |
24285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24286 | (exit $ac_status); } && | |
24287 | { ac_try='test -s conftest$ac_exeext' | |
24288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24289 | (eval $ac_try) 2>&5 | |
24290 | ac_status=$? | |
24291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24292 | (exit $ac_status); }; }; then | |
8647bec6 RG |
24293 | ac_cv_search_SQLAllocEnv="none required" |
24294 | else | |
e6cc62c6 VS |
24295 | echo "$as_me: failed program was:" >&5 |
24296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24297 | ||
8647bec6 | 24298 | fi |
e6cc62c6 VS |
24299 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24300 | if test "$ac_cv_search_SQLAllocEnv" = no; then | |
24301 | for ac_lib in iodbc unixodbc odbc ; do | |
24302 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
24303 | cat >conftest.$ac_ext <<_ACEOF | |
24304 | #line $LINENO "configure" | |
24305 | /* confdefs.h. */ | |
24306 | _ACEOF | |
24307 | cat confdefs.h >>conftest.$ac_ext | |
24308 | cat >>conftest.$ac_ext <<_ACEOF | |
24309 | /* end confdefs.h. */ | |
24310 | ||
8647bec6 | 24311 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24312 | #ifdef __cplusplus |
24313 | extern "C" | |
24314 | #endif | |
8647bec6 | 24315 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24316 | builtin and then its argument prototype would still apply. */ |
24317 | char SQLAllocEnv (); | |
24318 | int | |
24319 | main () | |
24320 | { | |
24321 | SQLAllocEnv (); | |
24322 | ; | |
24323 | return 0; | |
24324 | } | |
24325 | _ACEOF | |
24326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24328 | (eval $ac_link) 2>&5 | |
24329 | ac_status=$? | |
24330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24331 | (exit $ac_status); } && | |
24332 | { ac_try='test -s conftest$ac_exeext' | |
24333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24334 | (eval $ac_try) 2>&5 | |
24335 | ac_status=$? | |
24336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24337 | (exit $ac_status); }; }; then | |
24338 | ac_cv_search_SQLAllocEnv="-l$ac_lib" | |
8647bec6 RG |
24339 | break |
24340 | else | |
e6cc62c6 VS |
24341 | echo "$as_me: failed program was:" >&5 |
24342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24343 | ||
8647bec6 | 24344 | fi |
e6cc62c6 VS |
24345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24346 | done | |
8647bec6 | 24347 | fi |
e6cc62c6 VS |
24348 | LIBS=$ac_func_search_save_LIBS |
24349 | fi | |
24350 | echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5 | |
24351 | echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6 | |
24352 | if test "$ac_cv_search_SQLAllocEnv" != no; then | |
8647bec6 | 24353 | test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS" |
e6cc62c6 VS |
24354 | |
24355 | else | |
24356 | ||
24357 | wxUSE_ODBC=builtin; | |
24358 | { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5 | |
24359 | echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;} | |
24360 | ||
8647bec6 | 24361 | fi |
e6cc62c6 | 24362 | |
fd3d7534 RG |
24363 | fi |
24364 | if test "$wxUSE_ODBC" != "sys" ; then | |
24365 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8647bec6 RG |
24366 | fi |
24367 | ||
24368 | fi | |
e6cc62c6 | 24369 | |
6232543b | 24370 | fi |
21d1c967 GD |
24371 | |
24372 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24373 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24374 | fi |
21d1c967 GD |
24375 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24376 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24377 | fi |
24378 | ||
8284b0c5 | 24379 | |
21d1c967 | 24380 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24381 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24382 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24383 | elif test "$wxUSE_MSW" = 1; then | |
24384 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24385 | else | |
01aa5863 VS |
24386 | |
24387 | ||
24388 | ac_find_includes= | |
24389 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24390 | do | |
24391 | if test -f "$ac_dir/GL/gl.h"; then | |
24392 | ac_find_includes=$ac_dir | |
24393 | break | |
24394 | fi | |
24395 | done | |
24396 | ||
24397 | if test "$ac_find_includes" != "" ; then | |
24398 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24399 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24400 | set -x | |
24401 | ||
24402 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24403 | ac_path_to_include="" | |
24404 | else | |
24405 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24406 | result=$? | |
24407 | if test $result = 0; then | |
24408 | ac_path_to_include="" | |
24409 | else | |
24410 | ac_path_to_include=" -I$ac_find_includes" | |
24411 | fi | |
24412 | fi | |
24413 | ||
24414 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
24415 | set +x | |
24416 | fi | |
24417 | ||
e6cc62c6 VS |
24418 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24419 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24420 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24421 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24423 | fi | |
24424 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24425 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24426 | else | |
24427 | # Is the header compilable? | |
24428 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24429 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24430 | cat >conftest.$ac_ext <<_ACEOF | |
24431 | #line $LINENO "configure" | |
24432 | /* confdefs.h. */ | |
24433 | _ACEOF | |
24434 | cat confdefs.h >>conftest.$ac_ext | |
24435 | cat >>conftest.$ac_ext <<_ACEOF | |
24436 | /* end confdefs.h. */ | |
24437 | $ac_includes_default | |
21d1c967 | 24438 | #include <GL/gl.h> |
e6cc62c6 VS |
24439 | _ACEOF |
24440 | rm -f conftest.$ac_objext | |
24441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24442 | (eval $ac_compile) 2>&5 | |
24443 | ac_status=$? | |
24444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24445 | (exit $ac_status); } && | |
24446 | { ac_try='test -s conftest.$ac_objext' | |
24447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24448 | (eval $ac_try) 2>&5 | |
24449 | ac_status=$? | |
24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24451 | (exit $ac_status); }; }; then | |
24452 | ac_header_compiler=yes | |
24453 | else | |
24454 | echo "$as_me: failed program was:" >&5 | |
24455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24456 | ||
24457 | ac_header_compiler=no | |
24458 | fi | |
24459 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24460 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24461 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24462 | ||
24463 | # Is the header present? | |
24464 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24465 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24466 | cat >conftest.$ac_ext <<_ACEOF | |
24467 | #line $LINENO "configure" | |
24468 | /* confdefs.h. */ | |
24469 | _ACEOF | |
24470 | cat confdefs.h >>conftest.$ac_ext | |
24471 | cat >>conftest.$ac_ext <<_ACEOF | |
24472 | /* end confdefs.h. */ | |
24473 | #include <GL/gl.h> | |
24474 | _ACEOF | |
24475 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24476 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24477 | ac_status=$? | |
24478 | grep -v '^ *+' conftest.er1 >conftest.err | |
24479 | rm -f conftest.er1 | |
24480 | cat conftest.err >&5 | |
24481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24482 | (exit $ac_status); } >/dev/null; then | |
24483 | if test -s conftest.err; then | |
24484 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24485 | else | |
24486 | ac_cpp_err= | |
24487 | fi | |
24488 | else | |
24489 | ac_cpp_err=yes | |
24490 | fi | |
24491 | if test -z "$ac_cpp_err"; then | |
24492 | ac_header_preproc=yes | |
24493 | else | |
24494 | echo "$as_me: failed program was:" >&5 | |
24495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24496 | ||
24497 | ac_header_preproc=no | |
24498 | fi | |
24499 | rm -f conftest.err conftest.$ac_ext | |
24500 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24501 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24502 | ||
24503 | # So? What about this header? | |
24504 | case $ac_header_compiler:$ac_header_preproc in | |
24505 | yes:no ) | |
24506 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24507 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24508 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24509 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24510 | ( | |
24511 | cat <<\_ASBOX | |
24512 | ## ------------------------------------ ## | |
24513 | ## Report this to bug-autoconf@gnu.org. ## | |
24514 | ## ------------------------------------ ## | |
24515 | _ASBOX | |
24516 | ) | | |
24517 | sed "s/^/$as_me: WARNING: /" >&2 | |
24518 | ;; | |
24519 | no:yes ) | |
24520 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24521 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24522 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24523 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24524 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24525 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24526 | ( | |
24527 | cat <<\_ASBOX | |
24528 | ## ------------------------------------ ## | |
24529 | ## Report this to bug-autoconf@gnu.org. ## | |
24530 | ## ------------------------------------ ## | |
24531 | _ASBOX | |
24532 | ) | | |
24533 | sed "s/^/$as_me: WARNING: /" >&2 | |
24534 | ;; | |
24535 | esac | |
24536 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24537 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24538 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24540 | else | |
24541 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 24542 | fi |
e6cc62c6 VS |
24543 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
24544 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24545 | ||
698dcdb6 | 24546 | fi |
e6cc62c6 VS |
24547 | if test $ac_cv_header_GL_gl_h = yes; then |
24548 | ||
89e3b3e4 VZ |
24549 | found_gl=0 |
24550 | ||
e6cc62c6 VS |
24551 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
24552 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24553 | ||
21d1c967 | 24554 | ac_find_libraries= |
2b5f62a0 | 24555 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24556 | do |
24557 | for ac_extension in a so sl dylib; do | |
24558 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24559 | ac_find_libraries=$ac_dir | |
24560 | break 2 | |
24561 | fi | |
24562 | done | |
24563 | done | |
24564 | ||
24565 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24566 | |
21d1c967 GD |
24567 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24568 | result=$? | |
24569 | if test $result = 0; then | |
24570 | ac_path_to_link="" | |
24571 | else | |
24572 | ac_path_to_link=" -L$ac_find_libraries" | |
24573 | fi | |
24574 | ||
89e3b3e4 VZ |
24575 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
24576 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 24577 | fi |
89e3b3e4 | 24578 | |
e6cc62c6 | 24579 | |
89e3b3e4 VZ |
24580 | ac_find_libraries= |
24581 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24582 | do | |
24583 | for ac_extension in a so sl dylib; do | |
24584 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24585 | ac_find_libraries=$ac_dir | |
24586 | break 2 | |
24587 | fi | |
24588 | done | |
24589 | done | |
24590 | ||
24591 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24592 | |
89e3b3e4 VZ |
24593 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24594 | result=$? | |
24595 | if test $result = 0; then | |
24596 | ac_path_to_link="" | |
24597 | else | |
24598 | ac_path_to_link=" -L$ac_find_libraries" | |
24599 | fi | |
24600 | ||
24601 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24602 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24603 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24604 | fi | |
24605 | ||
24606 | found_gl=1 | |
24607 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
24608 | echo "$as_me:$LINENO: result: yes" >&5 |
24609 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
24610 | fi |
24611 | fi | |
24612 | ||
24613 | if "$found_gl" != 1; then | |
e6cc62c6 VS |
24614 | echo "$as_me:$LINENO: result: no" >&5 |
24615 | echo "${ECHO_T}no" >&6 | |
24616 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
24617 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
24618 | ||
21d1c967 | 24619 | ac_find_libraries= |
2b5f62a0 | 24620 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24621 | do |
24622 | for ac_extension in a so sl dylib; do | |
24623 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
24624 | ac_find_libraries=$ac_dir | |
24625 | break 2 | |
24626 | fi | |
24627 | done | |
24628 | done | |
24629 | ||
24630 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24631 | |
21d1c967 GD |
24632 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24633 | result=$? | |
24634 | if test $result = 0; then | |
24635 | ac_path_to_link="" | |
24636 | else | |
24637 | ac_path_to_link=" -L$ac_find_libraries" | |
24638 | fi | |
24639 | ||
24640 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
24641 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
24642 | echo "$as_me:$LINENO: result: yes" >&5 |
24643 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 24644 | else |
e6cc62c6 VS |
24645 | echo "$as_me:$LINENO: result: no" >&5 |
24646 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24647 | fi |
24648 | fi | |
e6cc62c6 | 24649 | |
5c6fa7d2 | 24650 | fi |
52127426 | 24651 | |
8284b0c5 | 24652 | |
e6cc62c6 | 24653 | |
21d1c967 | 24654 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
24655 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
24656 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
24657 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
24658 | fi |
24659 | fi | |
90dd450c | 24660 | |
21d1c967 | 24661 | if test "$wxUSE_OPENGL" = "yes"; then |
e6cc62c6 | 24662 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24663 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 24664 | _ACEOF |
21d1c967 | 24665 | |
e6cc62c6 | 24666 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24667 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 24668 | _ACEOF |
21d1c967 GD |
24669 | |
24670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
24671 | fi | |
10f2d63a | 24672 | fi |
21d1c967 GD |
24673 | |
24674 | if test -z "$TOOLKIT_VPATH" ; then | |
24675 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 24676 | fi |
21d1c967 GD |
24677 | |
24678 | if test -n "$TOOLKIT" ; then | |
24679 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
24680 | fi | |
24681 | ||
fe0895cf | 24682 | UNICODE=0 |
21d1c967 GD |
24683 | lib_unicode_suffix= |
24684 | if test "$wxUSE_UNICODE" = "yes"; then | |
24685 | lib_unicode_suffix=u | |
fe0895cf | 24686 | UNICODE=1 |
90dd450c | 24687 | fi |
698dcdb6 | 24688 | |
21d1c967 | 24689 | lib_debug_suffix= |
fe0895cf | 24690 | BUILD=release |
21d1c967 GD |
24691 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
24692 | lib_debug_suffix=d | |
fe0895cf | 24693 | BUILD=debug |
21d1c967 | 24694 | fi |
698dcdb6 | 24695 | |
2b5f62a0 VZ |
24696 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
24697 | ||
24698 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
24699 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
24700 | |
24701 | if test "$cross_compiling" = "yes"; then | |
24702 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
24703 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
24704 | fi | |
24705 | ||
24706 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
24707 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 24708 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
24709 | |
24710 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24711 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24712 | ||
24713 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
24714 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24715 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
24716 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24717 | ||
24718 | case "${host}" in | |
24719 | *-*-cygwin* | *-*-mingw32* ) | |
24720 | ||
e6cc62c6 VS |
24721 | |
24722 | ||
17234b26 | 24723 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
24724 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
24725 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
24726 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
24727 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24728 | else | |
24729 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24730 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24731 | fi | |
24732 | ;; | |
24733 | ||
24734 | *-*-darwin* ) | |
e6cc62c6 | 24735 | |
05159a27 GD |
24736 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
24737 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
24738 | ||
24739 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
24740 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24741 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
24742 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24743 | ||
21d1c967 | 24744 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
24745 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
24746 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
24747 | fi |
24748 | ;; | |
24749 | esac | |
24750 | ||
24751 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
24752 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
24753 | ||
24754 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
24755 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
24756 | ||
24757 | if test "$wxUSE_OPENGL" = "yes"; then | |
24758 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
24759 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
24760 | fi | |
24761 | ||
8284b0c5 MB |
24762 | |
24763 | ||
21d1c967 GD |
24764 | if test "$wxUSE_SHARED" = "yes"; then |
24765 | case "${host}" in | |
24766 | *-pc-os2_emx | *-pc-os2-emx | \ | |
24767 | *-pc-msdosdjgpp ) | |
24768 | wxUSE_SHARED=no | |
e6cc62c6 VS |
24769 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
24770 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
24771 | ;; |
24772 | esac | |
24773 | fi | |
24774 | ||
fe0895cf | 24775 | SHARED=0 |
2b5f62a0 | 24776 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 24777 | SHARED=1 |
2b5f62a0 | 24778 | |
e6cc62c6 | 24779 | |
2b5f62a0 VZ |
24780 | found_versioning=no |
24781 | ||
e6cc62c6 | 24782 | |
2b5f62a0 | 24783 | if test $found_versioning = no ; then |
e6cc62c6 VS |
24784 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
24785 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
24786 | if test "${wx_cv_version_script+set}" = set; then | |
24787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24788 | else |
e6cc62c6 | 24789 | |
2b5f62a0 VZ |
24790 | echo "VER_1 { *; };" >conftest.sym |
24791 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 24792 | |
2b5f62a0 VZ |
24793 | if { ac_try=' |
24794 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
24795 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
24796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24797 | (eval $ac_try) 2>&5 | |
24798 | ac_status=$? | |
24799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24800 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
24801 | if test -s conftest.stderr ; then |
24802 | wx_cv_version_script=no | |
24803 | else | |
24804 | wx_cv_version_script=yes | |
24805 | fi | |
24806 | else | |
24807 | wx_cv_version_script=no | |
24808 | fi | |
24809 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 24810 | |
e6cc62c6 VS |
24811 | fi |
24812 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
24813 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 24814 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 24815 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
24816 | fi |
24817 | fi | |
21d1c967 | 24818 | |
21d1c967 | 24819 | |
21d1c967 | 24820 | case "${host}" in |
fe0895cf | 24821 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 24822 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
21d1c967 GD |
24823 | ;; |
24824 | ||
24825 | *-*-solaris2* ) | |
24826 | if test "$GCC" = yes ; then | |
24827 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
24828 | |
24829 | saveLdflags="$LDFLAGS" | |
24830 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
24831 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
24832 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
24833 | cat >conftest.$ac_ext <<_ACEOF | |
24834 | #line $LINENO "configure" | |
24835 | /* confdefs.h. */ | |
24836 | _ACEOF | |
24837 | cat confdefs.h >>conftest.$ac_ext | |
24838 | cat >>conftest.$ac_ext <<_ACEOF | |
24839 | /* end confdefs.h. */ | |
24840 | ||
24841 | int | |
24842 | main () | |
24843 | { | |
fe0895cf | 24844 | |
e6cc62c6 VS |
24845 | ; |
24846 | return 0; | |
24847 | } | |
24848 | _ACEOF | |
24849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24851 | (eval $ac_link) 2>&5 | |
24852 | ac_status=$? | |
24853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24854 | (exit $ac_status); } && | |
24855 | { ac_try='test -s conftest$ac_exeext' | |
24856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24857 | (eval $ac_try) 2>&5 | |
24858 | ac_status=$? | |
24859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24860 | (exit $ac_status); }; }; then | |
24861 | ||
24862 | echo "$as_me:$LINENO: result: yes" >&5 | |
24863 | echo "${ECHO_T}yes" >&6 | |
24864 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
24865 | ||
24866 | else | |
24867 | echo "$as_me: failed program was:" >&5 | |
24868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24869 | ||
24870 | ||
24871 | echo "$as_me:$LINENO: result: no" >&5 | |
24872 | echo "${ECHO_T}no" >&6 | |
24873 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
24874 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 24875 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
24876 | cat >conftest.$ac_ext <<_ACEOF |
24877 | #line $LINENO "configure" | |
24878 | /* confdefs.h. */ | |
24879 | _ACEOF | |
24880 | cat confdefs.h >>conftest.$ac_ext | |
24881 | cat >>conftest.$ac_ext <<_ACEOF | |
24882 | /* end confdefs.h. */ | |
24883 | ||
24884 | int | |
24885 | main () | |
24886 | { | |
24887 | ||
24888 | ; | |
24889 | return 0; | |
24890 | } | |
24891 | _ACEOF | |
24892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24894 | (eval $ac_link) 2>&5 | |
24895 | ac_status=$? | |
24896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24897 | (exit $ac_status); } && | |
24898 | { ac_try='test -s conftest$ac_exeext' | |
24899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24900 | (eval $ac_try) 2>&5 | |
24901 | ac_status=$? | |
24902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24903 | (exit $ac_status); }; }; then | |
24904 | ||
24905 | echo "$as_me:$LINENO: result: yes" >&5 | |
24906 | echo "${ECHO_T}yes" >&6 | |
24907 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
24908 | else | |
24909 | echo "$as_me: failed program was:" >&5 | |
24910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 24911 | |
fe0895cf | 24912 | |
e6cc62c6 VS |
24913 | echo "$as_me:$LINENO: result: no" >&5 |
24914 | echo "${ECHO_T}no" >&6 | |
24915 | ||
fe0895cf | 24916 | fi |
e6cc62c6 VS |
24917 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24918 | ||
24919 | fi | |
24920 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 24921 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
24922 | else |
24923 | SHARED_LD="${CXX} -G -o" | |
24924 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 24925 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
24926 | fi |
24927 | ;; | |
24928 | ||
21d1c967 | 24929 | *-*-cygwin* | *-*-mingw32* ) |
f657dbe7 MB |
24930 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
24931 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
24932 | ||
24933 | if test "$wxUSE_OPENGL" = "yes"; then | |
24934 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
24935 | fi |
24936 | ;; | |
21d1c967 GD |
24937 | esac |
24938 | ||
24939 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
24940 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
24941 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
24942 | fi | |
24943 | ||
24944 | WX_TARGET_LIBRARY_TYPE="so" | |
24945 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 24946 | fi |
10f2d63a | 24947 | |
21d1c967 GD |
24948 | if test "$wxUSE_SHARED" = "no"; then |
24949 | ||
24950 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
24951 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
24952 | fi | |
24953 | ||
ac0c4cc3 | 24954 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
24955 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
24956 | fi | |
24957 | ||
24958 | if test "$wxUSE_OPENGL" = "yes"; then | |
24959 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
24960 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
24961 | else | |
24962 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
24963 | fi | |
24964 | ||
24965 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
24966 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
24967 | ||
24968 | WX_TARGET_LIBRARY_TYPE="a" | |
24969 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
24970 | |
24971 | STATIC_FLAG="yes" | |
24972 | else | |
24973 | STATIC_FLAG="no" | |
90dd450c | 24974 | fi |
1e487827 | 24975 | |
93fac604 VZ |
24976 | MACRESCOMP="@#" |
24977 | MACSETFILE="@#" | |
36825681 | 24978 | MACRESWXCONFIG="#" |
21d1c967 | 24979 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 24980 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
24981 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
24982 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
24983 | # Extract the first word of "Rez", so it can be a program name with args. | |
24984 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
24985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24987 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
24988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 24989 | else |
21d1c967 GD |
24990 | if test -n "$RESCOMP"; then |
24991 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 24992 | else |
e6cc62c6 VS |
24993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24994 | for as_dir in $PATH | |
24995 | do | |
24996 | IFS=$as_save_IFS | |
24997 | test -z "$as_dir" && as_dir=. | |
24998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25000 | ac_cv_prog_RESCOMP="Rez" | |
25001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25002 | break 2 | |
25003 | fi | |
25004 | done | |
25005 | done | |
25006 | ||
21d1c967 | 25007 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25008 | fi |
b93d0d08 | 25009 | fi |
e6cc62c6 | 25010 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25011 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25012 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25013 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25014 | else |
e6cc62c6 VS |
25015 | echo "$as_me:$LINENO: result: no" >&5 |
25016 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25017 | fi |
b93d0d08 | 25018 | |
21d1c967 GD |
25019 | # Extract the first word of "DeRez", so it can be a program name with args. |
25020 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25021 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25023 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25025 | else |
21d1c967 GD |
25026 | if test -n "$DEREZ"; then |
25027 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25028 | else |
e6cc62c6 VS |
25029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25030 | for as_dir in $PATH | |
25031 | do | |
25032 | IFS=$as_save_IFS | |
25033 | test -z "$as_dir" && as_dir=. | |
25034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25035 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25036 | ac_cv_prog_DEREZ="DeRez" | |
25037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25038 | break 2 | |
25039 | fi | |
25040 | done | |
25041 | done | |
25042 | ||
21d1c967 | 25043 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25044 | fi |
90dd450c | 25045 | fi |
e6cc62c6 | 25046 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25047 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25048 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25049 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25050 | else |
e6cc62c6 VS |
25051 | echo "$as_me:$LINENO: result: no" >&5 |
25052 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25053 | fi |
698dcdb6 | 25054 | |
36825681 GD |
25055 | # Extract the first word of "SetFile", so it can be a program name with args. |
25056 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25059 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25061 | else |
25062 | if test -n "$SETFILE"; then | |
25063 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25064 | else | |
e6cc62c6 VS |
25065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25066 | for as_dir in $PATH | |
25067 | do | |
25068 | IFS=$as_save_IFS | |
25069 | test -z "$as_dir" && as_dir=. | |
25070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25072 | ac_cv_prog_SETFILE="SetFile" | |
25073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25074 | break 2 | |
25075 | fi | |
25076 | done | |
25077 | done | |
25078 | ||
36825681 GD |
25079 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25080 | fi | |
25081 | fi | |
e6cc62c6 | 25082 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25083 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25084 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25085 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25086 | else |
e6cc62c6 VS |
25087 | echo "$as_me:$LINENO: result: no" >&5 |
25088 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25089 | fi |
25090 | ||
21d1c967 | 25091 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25092 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25093 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25094 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25095 | elif test "$wxUSE_COCOA" = 1; then |
25096 | # Extract the first word of "Rez", so it can be a program name with args. | |
25097 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25100 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25102 | else |
25103 | if test -n "$RESCOMP"; then | |
25104 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25105 | else | |
e6cc62c6 VS |
25106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25107 | for as_dir in $PATH | |
25108 | do | |
25109 | IFS=$as_save_IFS | |
25110 | test -z "$as_dir" && as_dir=. | |
25111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25113 | ac_cv_prog_RESCOMP="Rez" | |
25114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25115 | break 2 | |
25116 | fi | |
25117 | done | |
25118 | done | |
25119 | ||
64440d77 DE |
25120 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25121 | fi | |
25122 | fi | |
e6cc62c6 | 25123 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25124 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25125 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25126 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25127 | else |
e6cc62c6 VS |
25128 | echo "$as_me:$LINENO: result: no" >&5 |
25129 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25130 | fi |
25131 | ||
25132 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25133 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25134 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25136 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25138 | else |
25139 | if test -n "$DEREZ"; then | |
25140 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25141 | else | |
e6cc62c6 VS |
25142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25143 | for as_dir in $PATH | |
25144 | do | |
25145 | IFS=$as_save_IFS | |
25146 | test -z "$as_dir" && as_dir=. | |
25147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25148 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25149 | ac_cv_prog_DEREZ="DeRez" | |
25150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25151 | break 2 | |
25152 | fi | |
25153 | done | |
25154 | done | |
25155 | ||
64440d77 DE |
25156 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25157 | fi | |
25158 | fi | |
e6cc62c6 | 25159 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25160 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25161 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25162 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25163 | else |
e6cc62c6 VS |
25164 | echo "$as_me:$LINENO: result: no" >&5 |
25165 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25166 | fi |
25167 | ||
25168 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25169 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25172 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25174 | else |
25175 | if test -n "$SETFILE"; then | |
25176 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25177 | else | |
e6cc62c6 VS |
25178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25179 | for as_dir in $PATH | |
25180 | do | |
25181 | IFS=$as_save_IFS | |
25182 | test -z "$as_dir" && as_dir=. | |
25183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25185 | ac_cv_prog_SETFILE="SetFile" | |
25186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25187 | break 2 | |
25188 | fi | |
25189 | done | |
25190 | done | |
25191 | ||
64440d77 DE |
25192 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25193 | fi | |
25194 | fi | |
e6cc62c6 | 25195 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25196 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25197 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25198 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25199 | else |
e6cc62c6 VS |
25200 | echo "$as_me:$LINENO: result: no" >&5 |
25201 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25202 | fi |
25203 | ||
25204 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25205 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25206 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25207 | else |
25208 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25209 | MACRESCOMP="emxbind -ep" |
90dd450c | 25210 | fi |
4f14bcd8 | 25211 | fi |
10f2d63a | 25212 | |
8284b0c5 | 25213 | |
e6cc62c6 VS |
25214 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25215 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25216 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25218 | else |
e6cc62c6 VS |
25219 | cat >conftest.$ac_ext <<_ACEOF |
25220 | #line $LINENO "configure" | |
25221 | /* confdefs.h. */ | |
25222 | _ACEOF | |
25223 | cat confdefs.h >>conftest.$ac_ext | |
25224 | cat >>conftest.$ac_ext <<_ACEOF | |
25225 | /* end confdefs.h. */ | |
25226 | $ac_includes_default | |
25227 | int | |
25228 | main () | |
25229 | { | |
25230 | if ((mode_t *) 0) | |
25231 | return 0; | |
25232 | if (sizeof (mode_t)) | |
25233 | return 0; | |
25234 | ; | |
25235 | return 0; | |
25236 | } | |
25237 | _ACEOF | |
25238 | rm -f conftest.$ac_objext | |
25239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25240 | (eval $ac_compile) 2>&5 | |
25241 | ac_status=$? | |
25242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25243 | (exit $ac_status); } && | |
25244 | { ac_try='test -s conftest.$ac_objext' | |
25245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25246 | (eval $ac_try) 2>&5 | |
25247 | ac_status=$? | |
25248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25249 | (exit $ac_status); }; }; then | |
25250 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25251 | else |
e6cc62c6 VS |
25252 | echo "$as_me: failed program was:" >&5 |
25253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25254 | |
e6cc62c6 | 25255 | ac_cv_type_mode_t=no |
a0b9e27f | 25256 | fi |
e6cc62c6 | 25257 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25258 | fi |
e6cc62c6 VS |
25259 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25260 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25261 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25262 | : |
25263 | else | |
a0b9e27f | 25264 | |
e6cc62c6 VS |
25265 | cat >>confdefs.h <<_ACEOF |
25266 | #define mode_t int | |
25267 | _ACEOF | |
8284b0c5 MB |
25268 | |
25269 | fi | |
25270 | ||
e6cc62c6 VS |
25271 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25272 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25273 | if test "${ac_cv_type_off_t+set}" = set; then | |
25274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25275 | else |
e6cc62c6 VS |
25276 | cat >conftest.$ac_ext <<_ACEOF |
25277 | #line $LINENO "configure" | |
25278 | /* confdefs.h. */ | |
25279 | _ACEOF | |
25280 | cat confdefs.h >>conftest.$ac_ext | |
25281 | cat >>conftest.$ac_ext <<_ACEOF | |
25282 | /* end confdefs.h. */ | |
25283 | $ac_includes_default | |
25284 | int | |
25285 | main () | |
25286 | { | |
25287 | if ((off_t *) 0) | |
25288 | return 0; | |
25289 | if (sizeof (off_t)) | |
25290 | return 0; | |
25291 | ; | |
25292 | return 0; | |
25293 | } | |
25294 | _ACEOF | |
25295 | rm -f conftest.$ac_objext | |
25296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25297 | (eval $ac_compile) 2>&5 | |
25298 | ac_status=$? | |
25299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25300 | (exit $ac_status); } && | |
25301 | { ac_try='test -s conftest.$ac_objext' | |
25302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25303 | (eval $ac_try) 2>&5 | |
25304 | ac_status=$? | |
25305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25306 | (exit $ac_status); }; }; then | |
25307 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25308 | else |
e6cc62c6 VS |
25309 | echo "$as_me: failed program was:" >&5 |
25310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25311 | |
e6cc62c6 | 25312 | ac_cv_type_off_t=no |
8284b0c5 | 25313 | fi |
e6cc62c6 | 25314 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25315 | fi |
e6cc62c6 VS |
25316 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25317 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25318 | if test $ac_cv_type_off_t = yes; then | |
25319 | : | |
247f5006 VZ |
25320 | else |
25321 | ||
e6cc62c6 | 25322 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25323 | #define off_t long |
e6cc62c6 | 25324 | _ACEOF |
10f2d63a | 25325 | |
90dd450c | 25326 | fi |
10f2d63a | 25327 | |
e6cc62c6 VS |
25328 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25329 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25330 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25332 | else |
e6cc62c6 VS |
25333 | cat >conftest.$ac_ext <<_ACEOF |
25334 | #line $LINENO "configure" | |
25335 | /* confdefs.h. */ | |
25336 | _ACEOF | |
25337 | cat confdefs.h >>conftest.$ac_ext | |
25338 | cat >>conftest.$ac_ext <<_ACEOF | |
25339 | /* end confdefs.h. */ | |
25340 | $ac_includes_default | |
25341 | int | |
25342 | main () | |
25343 | { | |
25344 | if ((pid_t *) 0) | |
25345 | return 0; | |
25346 | if (sizeof (pid_t)) | |
25347 | return 0; | |
25348 | ; | |
25349 | return 0; | |
25350 | } | |
25351 | _ACEOF | |
25352 | rm -f conftest.$ac_objext | |
25353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25354 | (eval $ac_compile) 2>&5 | |
25355 | ac_status=$? | |
25356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25357 | (exit $ac_status); } && | |
25358 | { ac_try='test -s conftest.$ac_objext' | |
25359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25360 | (eval $ac_try) 2>&5 | |
25361 | ac_status=$? | |
25362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25363 | (exit $ac_status); }; }; then | |
90dd450c | 25364 | ac_cv_type_pid_t=yes |
698dcdb6 | 25365 | else |
e6cc62c6 VS |
25366 | echo "$as_me: failed program was:" >&5 |
25367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25368 | |
e6cc62c6 VS |
25369 | ac_cv_type_pid_t=no |
25370 | fi | |
25371 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25372 | fi |
e6cc62c6 VS |
25373 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25374 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25375 | if test $ac_cv_type_pid_t = yes; then | |
25376 | : | |
25377 | else | |
25378 | ||
25379 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25380 | #define pid_t int |
e6cc62c6 | 25381 | _ACEOF |
10f2d63a | 25382 | |
7b4a847f RR |
25383 | fi |
25384 | ||
e6cc62c6 VS |
25385 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25386 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25387 | if test "${ac_cv_type_size_t+set}" = set; then | |
25388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25389 | else |
e6cc62c6 VS |
25390 | cat >conftest.$ac_ext <<_ACEOF |
25391 | #line $LINENO "configure" | |
25392 | /* confdefs.h. */ | |
25393 | _ACEOF | |
25394 | cat confdefs.h >>conftest.$ac_ext | |
25395 | cat >>conftest.$ac_ext <<_ACEOF | |
25396 | /* end confdefs.h. */ | |
25397 | $ac_includes_default | |
25398 | int | |
25399 | main () | |
25400 | { | |
25401 | if ((size_t *) 0) | |
25402 | return 0; | |
25403 | if (sizeof (size_t)) | |
25404 | return 0; | |
25405 | ; | |
25406 | return 0; | |
25407 | } | |
25408 | _ACEOF | |
25409 | rm -f conftest.$ac_objext | |
25410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25411 | (eval $ac_compile) 2>&5 | |
25412 | ac_status=$? | |
25413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25414 | (exit $ac_status); } && | |
25415 | { ac_try='test -s conftest.$ac_objext' | |
25416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25417 | (eval $ac_try) 2>&5 | |
25418 | ac_status=$? | |
25419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25420 | (exit $ac_status); }; }; then | |
90dd450c | 25421 | ac_cv_type_size_t=yes |
18dbb1f6 | 25422 | else |
e6cc62c6 VS |
25423 | echo "$as_me: failed program was:" >&5 |
25424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25425 | |
e6cc62c6 | 25426 | ac_cv_type_size_t=no |
a0b9e27f | 25427 | fi |
e6cc62c6 VS |
25428 | rm -f conftest.$ac_objext conftest.$ac_ext |
25429 | fi | |
25430 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25431 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25432 | if test $ac_cv_type_size_t = yes; then | |
25433 | : | |
25434 | else | |
25435 | ||
25436 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25437 | #define size_t unsigned |
e6cc62c6 | 25438 | _ACEOF |
90dd450c VZ |
25439 | |
25440 | fi | |
25441 | ||
e6cc62c6 VS |
25442 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25443 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25444 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25446 | else |
e6cc62c6 VS |
25447 | cat >conftest.$ac_ext <<_ACEOF |
25448 | #line $LINENO "configure" | |
25449 | /* confdefs.h. */ | |
25450 | _ACEOF | |
25451 | cat confdefs.h >>conftest.$ac_ext | |
25452 | cat >>conftest.$ac_ext <<_ACEOF | |
25453 | /* end confdefs.h. */ | |
90dd450c | 25454 | #include <sys/types.h> |
e6cc62c6 VS |
25455 | |
25456 | _ACEOF | |
90dd450c | 25457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25458 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25459 | ac_cv_type_uid_t=yes |
b3e8d00a | 25460 | else |
90dd450c | 25461 | ac_cv_type_uid_t=no |
b3e8d00a | 25462 | fi |
90dd450c | 25463 | rm -f conftest* |
b3e8d00a | 25464 | |
4f14bcd8 | 25465 | fi |
e6cc62c6 VS |
25466 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25467 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25468 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25469 | |
25470 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25471 | #define uid_t int |
e6cc62c6 | 25472 | _ACEOF |
247f5006 | 25473 | |
e6cc62c6 VS |
25474 | |
25475 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25476 | #define gid_t int |
e6cc62c6 | 25477 | _ACEOF |
4f14bcd8 | 25478 | |
b3e8d00a | 25479 | fi |
b3e8d00a | 25480 | |
8284b0c5 MB |
25481 | |
25482 | ||
e6cc62c6 VS |
25483 | |
25484 | ac_ext=cc | |
4f14bcd8 | 25485 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25486 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25487 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25488 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25489 | ||
25490 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25491 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25492 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25494 | else | |
25495 | ||
25496 | cat >conftest.$ac_ext <<_ACEOF | |
25497 | #line $LINENO "configure" | |
25498 | /* confdefs.h. */ | |
25499 | _ACEOF | |
25500 | cat confdefs.h >>conftest.$ac_ext | |
25501 | cat >>conftest.$ac_ext <<_ACEOF | |
25502 | /* end confdefs.h. */ | |
90dd450c | 25503 | #include <stddef.h> |
e6cc62c6 VS |
25504 | int |
25505 | main () | |
25506 | { | |
90dd450c VZ |
25507 | |
25508 | return 0; } | |
25509 | ||
25510 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25511 | ||
25512 | int bar() { | |
e6cc62c6 VS |
25513 | |
25514 | ; | |
25515 | return 0; | |
25516 | } | |
25517 | _ACEOF | |
25518 | rm -f conftest.$ac_objext | |
25519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25520 | (eval $ac_compile) 2>&5 | |
25521 | ac_status=$? | |
25522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25523 | (exit $ac_status); } && | |
25524 | { ac_try='test -s conftest.$ac_objext' | |
25525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25526 | (eval $ac_try) 2>&5 | |
25527 | ac_status=$? | |
25528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25529 | (exit $ac_status); }; }; then | |
90dd450c | 25530 | wx_cv_size_t_is_uint=no |
698dcdb6 | 25531 | else |
e6cc62c6 VS |
25532 | echo "$as_me: failed program was:" >&5 |
25533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25534 | ||
25535 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 25536 | |
247f5006 | 25537 | fi |
e6cc62c6 VS |
25538 | rm -f conftest.$ac_objext conftest.$ac_ext |
25539 | ||
a0b9e27f | 25540 | |
e6cc62c6 VS |
25541 | fi |
25542 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25543 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 25544 | |
90dd450c | 25545 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 25546 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25547 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 25548 | _ACEOF |
698dcdb6 | 25549 | |
90dd450c | 25550 | else |
e6cc62c6 VS |
25551 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
25552 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25553 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25555 | else |
e6cc62c6 VS |
25556 | cat >conftest.$ac_ext <<_ACEOF |
25557 | #line $LINENO "configure" | |
25558 | /* confdefs.h. */ | |
25559 | _ACEOF | |
25560 | cat confdefs.h >>conftest.$ac_ext | |
25561 | cat >>conftest.$ac_ext <<_ACEOF | |
25562 | /* end confdefs.h. */ | |
90dd450c | 25563 | #include <stddef.h> |
e6cc62c6 VS |
25564 | int |
25565 | main () | |
25566 | { | |
90dd450c VZ |
25567 | |
25568 | return 0; } | |
25569 | ||
25570 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25571 | ||
25572 | int bar() { | |
e6cc62c6 VS |
25573 | |
25574 | ; | |
25575 | return 0; | |
25576 | } | |
25577 | _ACEOF | |
25578 | rm -f conftest.$ac_objext | |
25579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25580 | (eval $ac_compile) 2>&5 | |
25581 | ac_status=$? | |
25582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25583 | (exit $ac_status); } && | |
25584 | { ac_try='test -s conftest.$ac_objext' | |
25585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25586 | (eval $ac_try) 2>&5 | |
25587 | ac_status=$? | |
25588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25589 | (exit $ac_status); }; }; then | |
90dd450c | 25590 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 25591 | else |
e6cc62c6 VS |
25592 | echo "$as_me: failed program was:" >&5 |
25593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25594 | ||
25595 | wx_cv_size_t_is_ulong=yes | |
25596 | ||
247f5006 | 25597 | fi |
e6cc62c6 | 25598 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25599 | |
e6cc62c6 VS |
25600 | fi |
25601 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25602 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 25603 | |
90dd450c | 25604 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 25605 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25606 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 25607 | _ACEOF |
4f14bcd8 GD |
25608 | |
25609 | fi | |
90dd450c | 25610 | fi |
1e487827 | 25611 | |
90dd450c | 25612 | ac_ext=c |
4f14bcd8 | 25613 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
25614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 25617 | |
5c6fa7d2 | 25618 | |
8284b0c5 | 25619 | |
e6cc62c6 VS |
25620 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
25621 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
25622 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
25623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25624 | else |
e6cc62c6 VS |
25625 | |
25626 | cat >conftest.$ac_ext <<_ACEOF | |
25627 | #line $LINENO "configure" | |
25628 | /* confdefs.h. */ | |
25629 | _ACEOF | |
25630 | cat confdefs.h >>conftest.$ac_ext | |
25631 | cat >>conftest.$ac_ext <<_ACEOF | |
25632 | /* end confdefs.h. */ | |
90dd450c | 25633 | #include <pwd.h> |
e6cc62c6 VS |
25634 | int |
25635 | main () | |
25636 | { | |
f6bcfd97 | 25637 | |
90dd450c VZ |
25638 | char *p; |
25639 | struct passwd *pw; | |
25640 | p = pw->pw_gecos; | |
e6cc62c6 VS |
25641 | |
25642 | ; | |
25643 | return 0; | |
25644 | } | |
25645 | _ACEOF | |
25646 | rm -f conftest.$ac_objext | |
25647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25648 | (eval $ac_compile) 2>&5 | |
25649 | ac_status=$? | |
25650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25651 | (exit $ac_status); } && | |
25652 | { ac_try='test -s conftest.$ac_objext' | |
25653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25654 | (eval $ac_try) 2>&5 | |
25655 | ac_status=$? | |
25656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25657 | (exit $ac_status); }; }; then | |
25658 | ||
90dd450c | 25659 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 25660 | |
10f2d63a | 25661 | else |
e6cc62c6 VS |
25662 | echo "$as_me: failed program was:" >&5 |
25663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25664 | ||
25665 | ||
90dd450c | 25666 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 25667 | |
247f5006 VZ |
25668 | |
25669 | fi | |
e6cc62c6 | 25670 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25671 | |
e6cc62c6 VS |
25672 | |
25673 | fi | |
25674 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
25675 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 25676 | |
90dd450c | 25677 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 25678 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25679 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 25680 | _ACEOF |
c521c494 | 25681 | |
90dd450c | 25682 | fi |
4f14bcd8 | 25683 | |
8284b0c5 | 25684 | |
d29b553b | 25685 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 25686 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25687 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 25688 | _ACEOF |
d74f4b5a | 25689 | |
8284b0c5 | 25690 | |
d74f4b5a VZ |
25691 | WCSLEN_FOUND=0 |
25692 | WCHAR_LINK= | |
e6cc62c6 VS |
25693 | |
25694 | for ac_func in wcslen | |
7a30264c | 25695 | do |
e6cc62c6 VS |
25696 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25697 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25698 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25699 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25701 | else | |
25702 | cat >conftest.$ac_ext <<_ACEOF | |
25703 | #line $LINENO "configure" | |
25704 | /* confdefs.h. */ | |
25705 | _ACEOF | |
25706 | cat confdefs.h >>conftest.$ac_ext | |
25707 | cat >>conftest.$ac_ext <<_ACEOF | |
25708 | /* end confdefs.h. */ | |
7a30264c | 25709 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25710 | which can conflict with char $ac_func (); below. |
25711 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25712 | <limits.h> exists even on freestanding compilers. */ | |
25713 | #ifdef __STDC__ | |
25714 | # include <limits.h> | |
25715 | #else | |
25716 | # include <assert.h> | |
25717 | #endif | |
4f14bcd8 | 25718 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25719 | #ifdef __cplusplus |
25720 | extern "C" | |
25721 | { | |
25722 | #endif | |
4f14bcd8 | 25723 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25724 | builtin and then its argument prototype would still apply. */ |
25725 | char $ac_func (); | |
7a30264c VZ |
25726 | /* The GNU C library defines this for functions which it implements |
25727 | to always fail with ENOSYS. Some functions are actually named | |
25728 | something starting with __ and the normal name is an alias. */ | |
25729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25730 | choke me | |
25731 | #else | |
e6cc62c6 VS |
25732 | char (*f) () = $ac_func; |
25733 | #endif | |
25734 | #ifdef __cplusplus | |
25735 | } | |
7a30264c VZ |
25736 | #endif |
25737 | ||
e6cc62c6 VS |
25738 | int |
25739 | main () | |
25740 | { | |
25741 | return f != $ac_func; | |
25742 | ; | |
25743 | return 0; | |
25744 | } | |
25745 | _ACEOF | |
25746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25748 | (eval $ac_link) 2>&5 | |
25749 | ac_status=$? | |
25750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25751 | (exit $ac_status); } && | |
25752 | { ac_try='test -s conftest$ac_exeext' | |
25753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25754 | (eval $ac_try) 2>&5 | |
25755 | ac_status=$? | |
25756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25757 | (exit $ac_status); }; }; then | |
25758 | eval "$as_ac_var=yes" | |
25759 | else | |
25760 | echo "$as_me: failed program was:" >&5 | |
25761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25762 | ||
25763 | eval "$as_ac_var=no" | |
25764 | fi | |
25765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25766 | fi | |
25767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25768 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25769 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25770 | cat >>confdefs.h <<_ACEOF | |
25771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25772 | _ACEOF | |
d74f4b5a | 25773 | WCSLEN_FOUND=1 |
7a30264c VZ |
25774 | fi |
25775 | done | |
9d8deca0 | 25776 | |
8284b0c5 | 25777 | |
d74f4b5a | 25778 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 25779 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
25780 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
25781 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
25782 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
25783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 25784 | else |
e6cc62c6 | 25785 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 25786 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
25787 | cat >conftest.$ac_ext <<_ACEOF |
25788 | #line $LINENO "configure" | |
25789 | /* confdefs.h. */ | |
25790 | _ACEOF | |
25791 | cat confdefs.h >>conftest.$ac_ext | |
25792 | cat >>conftest.$ac_ext <<_ACEOF | |
25793 | /* end confdefs.h. */ | |
25794 | ||
4f14bcd8 | 25795 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25796 | #ifdef __cplusplus |
25797 | extern "C" | |
25798 | #endif | |
4f14bcd8 | 25799 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25800 | builtin and then its argument prototype would still apply. */ |
25801 | char wcslen (); | |
25802 | int | |
25803 | main () | |
25804 | { | |
25805 | wcslen (); | |
25806 | ; | |
25807 | return 0; | |
25808 | } | |
25809 | _ACEOF | |
25810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25812 | (eval $ac_link) 2>&5 | |
25813 | ac_status=$? | |
25814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25815 | (exit $ac_status); } && | |
25816 | { ac_try='test -s conftest$ac_exeext' | |
25817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25818 | (eval $ac_try) 2>&5 | |
25819 | ac_status=$? | |
25820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25821 | (exit $ac_status); }; }; then | |
25822 | ac_cv_lib_msvcrt_wcslen=yes | |
25823 | else | |
25824 | echo "$as_me: failed program was:" >&5 | |
25825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25826 | ||
25827 | ac_cv_lib_msvcrt_wcslen=no | |
25828 | fi | |
25829 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25830 | LIBS=$ac_check_lib_save_LIBS | |
25831 | fi | |
25832 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
25833 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
25834 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 25835 | WCHAR_OK=1 |
d29b553b | 25836 | fi |
698dcdb6 | 25837 | |
7a30264c | 25838 | else |
e6cc62c6 VS |
25839 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
25840 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
25841 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
25842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25843 | else |
e6cc62c6 | 25844 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 25845 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
25846 | cat >conftest.$ac_ext <<_ACEOF |
25847 | #line $LINENO "configure" | |
25848 | /* confdefs.h. */ | |
25849 | _ACEOF | |
25850 | cat confdefs.h >>conftest.$ac_ext | |
25851 | cat >>conftest.$ac_ext <<_ACEOF | |
25852 | /* end confdefs.h. */ | |
25853 | ||
4f14bcd8 | 25854 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25855 | #ifdef __cplusplus |
25856 | extern "C" | |
25857 | #endif | |
4f14bcd8 | 25858 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25859 | builtin and then its argument prototype would still apply. */ |
25860 | char wcslen (); | |
25861 | int | |
25862 | main () | |
25863 | { | |
25864 | wcslen (); | |
25865 | ; | |
25866 | return 0; | |
25867 | } | |
25868 | _ACEOF | |
25869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25871 | (eval $ac_link) 2>&5 | |
25872 | ac_status=$? | |
25873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25874 | (exit $ac_status); } && | |
25875 | { ac_try='test -s conftest$ac_exeext' | |
25876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25877 | (eval $ac_try) 2>&5 | |
25878 | ac_status=$? | |
25879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25880 | (exit $ac_status); }; }; then | |
25881 | ac_cv_lib_w_wcslen=yes | |
25882 | else | |
25883 | echo "$as_me: failed program was:" >&5 | |
25884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25885 | ||
25886 | ac_cv_lib_w_wcslen=no | |
25887 | fi | |
25888 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25889 | LIBS=$ac_check_lib_save_LIBS | |
25890 | fi | |
25891 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
25892 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
25893 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 25894 | |
7a30264c | 25895 | WCHAR_LINK=" -lw" |
d74f4b5a | 25896 | WCSLEN_FOUND=1 |
e6cc62c6 | 25897 | |
4f14bcd8 | 25898 | fi |
10f2d63a | 25899 | |
7a30264c | 25900 | fi |
d29b553b | 25901 | fi |
95c8801c | 25902 | |
d74f4b5a | 25903 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 25904 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25905 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 25906 | _ACEOF |
10f2d63a | 25907 | |
d74f4b5a | 25908 | fi |
52127426 | 25909 | |
e6cc62c6 VS |
25910 | |
25911 | for ac_func in wcsrtombs | |
eb4efbdc | 25912 | do |
e6cc62c6 VS |
25913 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25914 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25915 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25916 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25918 | else | |
25919 | cat >conftest.$ac_ext <<_ACEOF | |
25920 | #line $LINENO "configure" | |
25921 | /* confdefs.h. */ | |
25922 | _ACEOF | |
25923 | cat confdefs.h >>conftest.$ac_ext | |
25924 | cat >>conftest.$ac_ext <<_ACEOF | |
25925 | /* end confdefs.h. */ | |
eb4efbdc | 25926 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25927 | which can conflict with char $ac_func (); below. |
25928 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25929 | <limits.h> exists even on freestanding compilers. */ | |
25930 | #ifdef __STDC__ | |
25931 | # include <limits.h> | |
25932 | #else | |
25933 | # include <assert.h> | |
25934 | #endif | |
eb4efbdc | 25935 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25936 | #ifdef __cplusplus |
25937 | extern "C" | |
25938 | { | |
25939 | #endif | |
4f14bcd8 | 25940 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25941 | builtin and then its argument prototype would still apply. */ |
25942 | char $ac_func (); | |
10f2d63a VZ |
25943 | /* The GNU C library defines this for functions which it implements |
25944 | to always fail with ENOSYS. Some functions are actually named | |
25945 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 25946 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
25947 | choke me |
25948 | #else | |
e6cc62c6 VS |
25949 | char (*f) () = $ac_func; |
25950 | #endif | |
25951 | #ifdef __cplusplus | |
25952 | } | |
10f2d63a VZ |
25953 | #endif |
25954 | ||
e6cc62c6 VS |
25955 | int |
25956 | main () | |
25957 | { | |
25958 | return f != $ac_func; | |
25959 | ; | |
25960 | return 0; | |
25961 | } | |
25962 | _ACEOF | |
25963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25965 | (eval $ac_link) 2>&5 | |
25966 | ac_status=$? | |
25967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25968 | (exit $ac_status); } && | |
25969 | { ac_try='test -s conftest$ac_exeext' | |
25970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25971 | (eval $ac_try) 2>&5 | |
25972 | ac_status=$? | |
25973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25974 | (exit $ac_status); }; }; then | |
25975 | eval "$as_ac_var=yes" | |
25976 | else | |
25977 | echo "$as_me: failed program was:" >&5 | |
25978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25979 | ||
25980 | eval "$as_ac_var=no" | |
25981 | fi | |
25982 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25983 | fi | |
25984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25985 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25986 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25987 | cat >>confdefs.h <<_ACEOF | |
25988 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25989 | _ACEOF | |
270a909e | 25990 | |
4f14bcd8 | 25991 | fi |
247f5006 | 25992 | done |
1e487827 | 25993 | |
af15babd | 25994 | else |
e6cc62c6 VS |
25995 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
25996 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 25997 | fi |
52127426 | 25998 | |
8284b0c5 | 25999 | |
e6cc62c6 VS |
26000 | |
26001 | ac_ext=cc | |
247f5006 | 26002 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26003 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26004 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26005 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26006 | ||
af15babd | 26007 | |
247f5006 VZ |
26008 | |
26009 | for ac_func in vsnprintf | |
26010 | do | |
e6cc62c6 VS |
26011 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26012 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26013 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26014 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26016 | else | |
26017 | cat >conftest.$ac_ext <<_ACEOF | |
26018 | #line $LINENO "configure" | |
26019 | /* confdefs.h. */ | |
26020 | _ACEOF | |
26021 | cat confdefs.h >>conftest.$ac_ext | |
26022 | cat >>conftest.$ac_ext <<_ACEOF | |
26023 | /* end confdefs.h. */ | |
247f5006 | 26024 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26025 | which can conflict with char $ac_func (); below. |
26026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26027 | <limits.h> exists even on freestanding compilers. */ | |
26028 | #ifdef __STDC__ | |
26029 | # include <limits.h> | |
26030 | #else | |
26031 | # include <assert.h> | |
26032 | #endif | |
247f5006 VZ |
26033 | /* Override any gcc2 internal prototype to avoid an error. */ |
26034 | #ifdef __cplusplus | |
26035 | extern "C" | |
e6cc62c6 | 26036 | { |
247f5006 VZ |
26037 | #endif |
26038 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26039 | builtin and then its argument prototype would still apply. */ |
26040 | char $ac_func (); | |
247f5006 VZ |
26041 | /* The GNU C library defines this for functions which it implements |
26042 | to always fail with ENOSYS. Some functions are actually named | |
26043 | something starting with __ and the normal name is an alias. */ | |
26044 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26045 | choke me | |
26046 | #else | |
e6cc62c6 VS |
26047 | char (*f) () = $ac_func; |
26048 | #endif | |
26049 | #ifdef __cplusplus | |
26050 | } | |
247f5006 | 26051 | #endif |
af15babd | 26052 | |
e6cc62c6 VS |
26053 | int |
26054 | main () | |
26055 | { | |
26056 | return f != $ac_func; | |
26057 | ; | |
26058 | return 0; | |
26059 | } | |
26060 | _ACEOF | |
26061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26063 | (eval $ac_link) 2>&5 | |
26064 | ac_status=$? | |
26065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26066 | (exit $ac_status); } && | |
26067 | { ac_try='test -s conftest$ac_exeext' | |
26068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26069 | (eval $ac_try) 2>&5 | |
26070 | ac_status=$? | |
26071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26072 | (exit $ac_status); }; }; then | |
26073 | eval "$as_ac_var=yes" | |
26074 | else | |
26075 | echo "$as_me: failed program was:" >&5 | |
26076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26077 | ||
26078 | eval "$as_ac_var=no" | |
26079 | fi | |
26080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26081 | fi | |
26082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26083 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26084 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26085 | cat >>confdefs.h <<_ACEOF | |
26086 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26087 | _ACEOF | |
52127426 | 26088 | |
5c6fa7d2 | 26089 | fi |
247f5006 | 26090 | done |
8284b0c5 | 26091 | |
4f14bcd8 | 26092 | |
8d90d2f2 | 26093 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26094 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26095 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26096 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26098 | else |
e6cc62c6 VS |
26099 | |
26100 | cat >conftest.$ac_ext <<_ACEOF | |
26101 | #line $LINENO "configure" | |
26102 | /* confdefs.h. */ | |
26103 | _ACEOF | |
26104 | cat confdefs.h >>conftest.$ac_ext | |
26105 | cat >>conftest.$ac_ext <<_ACEOF | |
26106 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26107 | |
26108 | #include <stdio.h> | |
26109 | #include <stdarg.h> | |
e6cc62c6 VS |
26110 | |
26111 | int | |
26112 | main () | |
26113 | { | |
8d90d2f2 VZ |
26114 | |
26115 | char *buf; | |
26116 | va_list ap; | |
26117 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26118 | |
26119 | ; | |
26120 | return 0; | |
26121 | } | |
26122 | _ACEOF | |
26123 | rm -f conftest.$ac_objext | |
26124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26125 | (eval $ac_compile) 2>&5 | |
26126 | ac_status=$? | |
26127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26128 | (exit $ac_status); } && | |
26129 | { ac_try='test -s conftest.$ac_objext' | |
26130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26131 | (eval $ac_try) 2>&5 | |
26132 | ac_status=$? | |
26133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26134 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26135 | wx_cv_func_vsnprintf_decl=yes |
26136 | else | |
e6cc62c6 VS |
26137 | echo "$as_me: failed program was:" >&5 |
26138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26139 | ||
26140 | wx_cv_func_vsnprintf_decl=no | |
26141 | ||
8d90d2f2 | 26142 | fi |
e6cc62c6 VS |
26143 | rm -f conftest.$ac_objext conftest.$ac_ext |
26144 | ||
8d90d2f2 | 26145 | |
e6cc62c6 VS |
26146 | fi |
26147 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26148 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26149 | |
26150 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26151 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26152 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26153 | _ACEOF |
8d90d2f2 VZ |
26154 | |
26155 | fi | |
26156 | fi | |
26157 | ||
247f5006 | 26158 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26159 | |
26160 | ||
26161 | ||
26162 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26163 | do |
e6cc62c6 VS |
26164 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26165 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26166 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26167 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26169 | else | |
26170 | cat >conftest.$ac_ext <<_ACEOF | |
26171 | #line $LINENO "configure" | |
26172 | /* confdefs.h. */ | |
26173 | _ACEOF | |
26174 | cat confdefs.h >>conftest.$ac_ext | |
26175 | cat >>conftest.$ac_ext <<_ACEOF | |
26176 | /* end confdefs.h. */ | |
d74f4b5a | 26177 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26178 | which can conflict with char $ac_func (); below. |
26179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26180 | <limits.h> exists even on freestanding compilers. */ | |
26181 | #ifdef __STDC__ | |
26182 | # include <limits.h> | |
26183 | #else | |
26184 | # include <assert.h> | |
26185 | #endif | |
d74f4b5a | 26186 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26187 | #ifdef __cplusplus |
26188 | extern "C" | |
e6cc62c6 | 26189 | { |
247f5006 | 26190 | #endif |
d74f4b5a | 26191 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26192 | builtin and then its argument prototype would still apply. */ |
26193 | char $ac_func (); | |
d74f4b5a VZ |
26194 | /* The GNU C library defines this for functions which it implements |
26195 | to always fail with ENOSYS. Some functions are actually named | |
26196 | something starting with __ and the normal name is an alias. */ | |
26197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26198 | choke me | |
26199 | #else | |
e6cc62c6 VS |
26200 | char (*f) () = $ac_func; |
26201 | #endif | |
26202 | #ifdef __cplusplus | |
26203 | } | |
d74f4b5a VZ |
26204 | #endif |
26205 | ||
e6cc62c6 VS |
26206 | int |
26207 | main () | |
26208 | { | |
26209 | return f != $ac_func; | |
26210 | ; | |
26211 | return 0; | |
26212 | } | |
26213 | _ACEOF | |
26214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26216 | (eval $ac_link) 2>&5 | |
26217 | ac_status=$? | |
26218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26219 | (exit $ac_status); } && | |
26220 | { ac_try='test -s conftest$ac_exeext' | |
26221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26222 | (eval $ac_try) 2>&5 | |
26223 | ac_status=$? | |
26224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26225 | (exit $ac_status); }; }; then | |
26226 | eval "$as_ac_var=yes" | |
26227 | else | |
26228 | echo "$as_me: failed program was:" >&5 | |
26229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26230 | ||
26231 | eval "$as_ac_var=no" | |
26232 | fi | |
26233 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26234 | fi | |
26235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26236 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26237 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26238 | cat >>confdefs.h <<_ACEOF | |
26239 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26240 | _ACEOF | |
d74f4b5a | 26241 | |
d74f4b5a VZ |
26242 | fi |
26243 | done | |
26244 | ||
8d90d2f2 | 26245 | |
e6cc62c6 VS |
26246 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26247 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26248 | cat >conftest.$ac_ext <<_ACEOF | |
26249 | #line $LINENO "configure" | |
26250 | /* confdefs.h. */ | |
26251 | _ACEOF | |
26252 | cat confdefs.h >>conftest.$ac_ext | |
26253 | cat >>conftest.$ac_ext <<_ACEOF | |
26254 | /* end confdefs.h. */ | |
79668cae | 26255 | #include <wchar.h> |
e6cc62c6 VS |
26256 | int |
26257 | main () | |
26258 | { | |
79668cae | 26259 | &_vsnwprintf; |
e6cc62c6 VS |
26260 | ; |
26261 | return 0; | |
26262 | } | |
26263 | _ACEOF | |
26264 | rm -f conftest.$ac_objext | |
26265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26266 | (eval $ac_compile) 2>&5 | |
26267 | ac_status=$? | |
26268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26269 | (exit $ac_status); } && | |
26270 | { ac_try='test -s conftest.$ac_objext' | |
26271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26272 | (eval $ac_try) 2>&5 | |
26273 | ac_status=$? | |
26274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26275 | (exit $ac_status); }; }; then | |
26276 | echo "$as_me:$LINENO: result: yes" >&5 | |
26277 | echo "${ECHO_T}yes" >&6 | |
26278 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26279 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26280 | _ACEOF |
79668cae MB |
26281 | |
26282 | else | |
e6cc62c6 VS |
26283 | echo "$as_me: failed program was:" >&5 |
26284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26285 | ||
26286 | echo "$as_me:$LINENO: result: no" >&5 | |
26287 | echo "${ECHO_T}no" >&6 | |
79668cae | 26288 | fi |
e6cc62c6 | 26289 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26290 | fi |
26291 | ||
247f5006 VZ |
26292 | ac_ext=c |
26293 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26297 | |
26298 | ||
26299 | ||
26300 | ||
4f14bcd8 | 26301 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26302 | |
8284b0c5 MB |
26303 | |
26304 | ||
e6cc62c6 VS |
26305 | |
26306 | ac_ext=cc | |
4f14bcd8 | 26307 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26311 | |
52127426 | 26312 | |
e6cc62c6 VS |
26313 | |
26314 | ||
26315 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26316 | if test "${with_libiconv_prefix+set}" = set; then |
26317 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26318 | |
b040e242 VS |
26319 | for dir in `echo "$withval" | tr : ' '`; do |
26320 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26321 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26322 | done | |
b040e242 | 26323 | |
e6cc62c6 | 26324 | fi; |
b040e242 | 26325 | |
e6cc62c6 VS |
26326 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26327 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26328 | if test "${am_cv_func_iconv+set}" = set; then | |
26329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26330 | else |
e6cc62c6 | 26331 | |
b040e242 VS |
26332 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26333 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26334 | cat >conftest.$ac_ext <<_ACEOF |
26335 | #line $LINENO "configure" | |
26336 | /* confdefs.h. */ | |
26337 | _ACEOF | |
26338 | cat confdefs.h >>conftest.$ac_ext | |
26339 | cat >>conftest.$ac_ext <<_ACEOF | |
26340 | /* end confdefs.h. */ | |
b040e242 | 26341 | #include <stdlib.h> |
4f14bcd8 | 26342 | #include <iconv.h> |
e6cc62c6 VS |
26343 | int |
26344 | main () | |
26345 | { | |
b040e242 VS |
26346 | iconv_t cd = iconv_open("",""); |
26347 | iconv(cd,NULL,NULL,NULL,NULL); | |
26348 | iconv_close(cd); | |
e6cc62c6 VS |
26349 | ; |
26350 | return 0; | |
26351 | } | |
26352 | _ACEOF | |
26353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26355 | (eval $ac_link) 2>&5 | |
26356 | ac_status=$? | |
26357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26358 | (exit $ac_status); } && | |
26359 | { ac_try='test -s conftest$ac_exeext' | |
26360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26361 | (eval $ac_try) 2>&5 | |
26362 | ac_status=$? | |
26363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26364 | (exit $ac_status); }; }; then | |
b040e242 | 26365 | am_cv_func_iconv=yes |
af15babd | 26366 | else |
e6cc62c6 VS |
26367 | echo "$as_me: failed program was:" >&5 |
26368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26369 | ||
b040e242 | 26370 | fi |
e6cc62c6 | 26371 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26372 | if test "$am_cv_func_iconv" != yes; then |
26373 | am_save_LIBS="$LIBS" | |
26374 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26375 | cat >conftest.$ac_ext <<_ACEOF |
26376 | #line $LINENO "configure" | |
26377 | /* confdefs.h. */ | |
26378 | _ACEOF | |
26379 | cat confdefs.h >>conftest.$ac_ext | |
26380 | cat >>conftest.$ac_ext <<_ACEOF | |
26381 | /* end confdefs.h. */ | |
b040e242 VS |
26382 | #include <stdlib.h> |
26383 | #include <iconv.h> | |
e6cc62c6 VS |
26384 | int |
26385 | main () | |
26386 | { | |
b040e242 VS |
26387 | iconv_t cd = iconv_open("",""); |
26388 | iconv(cd,NULL,NULL,NULL,NULL); | |
26389 | iconv_close(cd); | |
e6cc62c6 VS |
26390 | ; |
26391 | return 0; | |
26392 | } | |
26393 | _ACEOF | |
26394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26396 | (eval $ac_link) 2>&5 | |
26397 | ac_status=$? | |
26398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26399 | (exit $ac_status); } && | |
26400 | { ac_try='test -s conftest$ac_exeext' | |
26401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26402 | (eval $ac_try) 2>&5 | |
26403 | ac_status=$? | |
26404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26405 | (exit $ac_status); }; }; then | |
b040e242 VS |
26406 | am_cv_lib_iconv=yes |
26407 | am_cv_func_iconv=yes | |
26408 | else | |
e6cc62c6 VS |
26409 | echo "$as_me: failed program was:" >&5 |
26410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26411 | ||
af15babd | 26412 | fi |
e6cc62c6 | 26413 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26414 | LIBS="$am_save_LIBS" |
26415 | fi | |
247f5006 | 26416 | |
e6cc62c6 VS |
26417 | fi |
26418 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26419 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26420 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26421 | |
26422 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26423 | #define HAVE_ICONV 1 |
e6cc62c6 | 26424 | _ACEOF |
b040e242 | 26425 | |
e6cc62c6 VS |
26426 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26427 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26428 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26430 | else |
e6cc62c6 VS |
26431 | cat >conftest.$ac_ext <<_ACEOF |
26432 | #line $LINENO "configure" | |
26433 | /* confdefs.h. */ | |
26434 | _ACEOF | |
26435 | cat confdefs.h >>conftest.$ac_ext | |
26436 | cat >>conftest.$ac_ext <<_ACEOF | |
26437 | /* end confdefs.h. */ | |
b040e242 VS |
26438 | |
26439 | #include <stdlib.h> | |
26440 | #include <iconv.h> | |
26441 | extern | |
26442 | #ifdef __cplusplus | |
26443 | "C" | |
26444 | #endif | |
26445 | #if defined(__STDC__) || defined(__cplusplus) | |
26446 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26447 | #else | |
26448 | size_t iconv(); | |
26449 | #endif | |
af15babd | 26450 | |
e6cc62c6 VS |
26451 | int |
26452 | main () | |
26453 | { | |
26454 | ||
26455 | ; | |
26456 | return 0; | |
26457 | } | |
26458 | _ACEOF | |
26459 | rm -f conftest.$ac_objext | |
26460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26461 | (eval $ac_compile) 2>&5 | |
26462 | ac_status=$? | |
26463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26464 | (exit $ac_status); } && | |
26465 | { ac_try='test -s conftest.$ac_objext' | |
26466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26467 | (eval $ac_try) 2>&5 | |
26468 | ac_status=$? | |
26469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26470 | (exit $ac_status); }; }; then | |
b7043674 | 26471 | wx_cv_func_iconv_const="no" |
b040e242 | 26472 | else |
e6cc62c6 VS |
26473 | echo "$as_me: failed program was:" >&5 |
26474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26475 | ||
26476 | wx_cv_func_iconv_const="yes" | |
26477 | ||
247f5006 | 26478 | fi |
e6cc62c6 | 26479 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26480 | |
e6cc62c6 VS |
26481 | fi |
26482 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26483 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26484 | |
26485 | iconv_const= | |
1c405bb5 | 26486 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
26487 | iconv_const="const" |
26488 | fi | |
26489 | ||
e6cc62c6 VS |
26490 | |
26491 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 26492 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 26493 | _ACEOF |
b040e242 VS |
26494 | |
26495 | fi | |
26496 | LIBICONV= | |
26497 | if test "$am_cv_lib_iconv" = yes; then | |
26498 | LIBICONV="-liconv" | |
26499 | fi | |
e6cc62c6 | 26500 | |
b040e242 VS |
26501 | |
26502 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 26503 | ac_ext=c |
4f14bcd8 | 26504 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 26508 | |
5c6fa7d2 | 26509 | |
8284b0c5 | 26510 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
26511 | |
26512 | for ac_func in sigaction | |
af15babd | 26513 | do |
e6cc62c6 VS |
26514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26515 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26517 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26519 | else | |
26520 | cat >conftest.$ac_ext <<_ACEOF | |
26521 | #line $LINENO "configure" | |
26522 | /* confdefs.h. */ | |
26523 | _ACEOF | |
26524 | cat confdefs.h >>conftest.$ac_ext | |
26525 | cat >>conftest.$ac_ext <<_ACEOF | |
26526 | /* end confdefs.h. */ | |
af15babd | 26527 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26528 | which can conflict with char $ac_func (); below. |
26529 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26530 | <limits.h> exists even on freestanding compilers. */ | |
26531 | #ifdef __STDC__ | |
26532 | # include <limits.h> | |
26533 | #else | |
26534 | # include <assert.h> | |
26535 | #endif | |
af15babd | 26536 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26537 | #ifdef __cplusplus |
26538 | extern "C" | |
26539 | { | |
26540 | #endif | |
af15babd | 26541 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26542 | builtin and then its argument prototype would still apply. */ |
26543 | char $ac_func (); | |
af15babd VZ |
26544 | /* The GNU C library defines this for functions which it implements |
26545 | to always fail with ENOSYS. Some functions are actually named | |
26546 | something starting with __ and the normal name is an alias. */ | |
26547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26548 | choke me | |
26549 | #else | |
e6cc62c6 VS |
26550 | char (*f) () = $ac_func; |
26551 | #endif | |
26552 | #ifdef __cplusplus | |
26553 | } | |
af15babd VZ |
26554 | #endif |
26555 | ||
e6cc62c6 VS |
26556 | int |
26557 | main () | |
26558 | { | |
26559 | return f != $ac_func; | |
26560 | ; | |
26561 | return 0; | |
26562 | } | |
26563 | _ACEOF | |
26564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26566 | (eval $ac_link) 2>&5 | |
26567 | ac_status=$? | |
26568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26569 | (exit $ac_status); } && | |
26570 | { ac_try='test -s conftest$ac_exeext' | |
26571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26572 | (eval $ac_try) 2>&5 | |
26573 | ac_status=$? | |
26574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26575 | (exit $ac_status); }; }; then | |
26576 | eval "$as_ac_var=yes" | |
26577 | else | |
26578 | echo "$as_me: failed program was:" >&5 | |
26579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26580 | ||
26581 | eval "$as_ac_var=no" | |
26582 | fi | |
26583 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26584 | fi | |
26585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26586 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26587 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26588 | cat >>confdefs.h <<_ACEOF | |
26589 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26590 | _ACEOF | |
7b4a847f | 26591 | |
4f14bcd8 GD |
26592 | fi |
26593 | done | |
26594 | ||
8284b0c5 | 26595 | |
4f14bcd8 | 26596 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
26597 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
26598 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
26599 | wxUSE_ON_FATAL_EXCEPTION=no |
26600 | fi | |
26601 | ||
26602 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
26603 | |
26604 | ||
26605 | ac_ext=cc | |
5c6fa7d2 | 26606 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26607 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26608 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26609 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 26610 | |
5c6fa7d2 | 26611 | |
e6cc62c6 VS |
26612 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
26613 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
26614 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
26615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26616 | else |
e6cc62c6 VS |
26617 | |
26618 | cat >conftest.$ac_ext <<_ACEOF | |
26619 | #line $LINENO "configure" | |
26620 | /* confdefs.h. */ | |
26621 | _ACEOF | |
26622 | cat confdefs.h >>conftest.$ac_ext | |
26623 | cat >>conftest.$ac_ext <<_ACEOF | |
26624 | /* end confdefs.h. */ | |
4f14bcd8 | 26625 | #include <signal.h> |
e6cc62c6 VS |
26626 | int |
26627 | main () | |
26628 | { | |
4f14bcd8 GD |
26629 | |
26630 | extern void testSigHandler(int); | |
26631 | ||
26632 | struct sigaction sa; | |
26633 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
26634 | |
26635 | ; | |
26636 | return 0; | |
26637 | } | |
26638 | _ACEOF | |
26639 | rm -f conftest.$ac_objext | |
26640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26641 | (eval $ac_compile) 2>&5 | |
26642 | ac_status=$? | |
26643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26644 | (exit $ac_status); } && | |
26645 | { ac_try='test -s conftest.$ac_objext' | |
26646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26647 | (eval $ac_try) 2>&5 | |
26648 | ac_status=$? | |
26649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26650 | (exit $ac_status); }; }; then | |
26651 | ||
4f14bcd8 | 26652 | wx_cv_type_sa_handler=int |
e6cc62c6 | 26653 | |
af15babd | 26654 | else |
e6cc62c6 VS |
26655 | echo "$as_me: failed program was:" >&5 |
26656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26657 | ||
26658 | ||
4f14bcd8 | 26659 | wx_cv_type_sa_handler=void |
e6cc62c6 | 26660 | |
247f5006 | 26661 | fi |
e6cc62c6 | 26662 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26663 | |
e6cc62c6 VS |
26664 | fi |
26665 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
26666 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
26667 | |
26668 | ac_ext=c | |
4f14bcd8 | 26669 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 26673 | |
8284b0c5 | 26674 | |
e6cc62c6 | 26675 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26676 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 26677 | _ACEOF |
af15babd | 26678 | |
4f14bcd8 GD |
26679 | fi |
26680 | fi | |
af15babd | 26681 | |
e6cc62c6 VS |
26682 | |
26683 | ||
a1d22ad7 | 26684 | for ac_func in mkstemp mktemp |
af15babd | 26685 | do |
e6cc62c6 VS |
26686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26687 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26689 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26691 | else | |
26692 | cat >conftest.$ac_ext <<_ACEOF | |
26693 | #line $LINENO "configure" | |
26694 | /* confdefs.h. */ | |
26695 | _ACEOF | |
26696 | cat confdefs.h >>conftest.$ac_ext | |
26697 | cat >>conftest.$ac_ext <<_ACEOF | |
26698 | /* end confdefs.h. */ | |
af15babd | 26699 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26700 | which can conflict with char $ac_func (); below. |
26701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26702 | <limits.h> exists even on freestanding compilers. */ | |
26703 | #ifdef __STDC__ | |
26704 | # include <limits.h> | |
26705 | #else | |
26706 | # include <assert.h> | |
26707 | #endif | |
af15babd | 26708 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26709 | #ifdef __cplusplus |
26710 | extern "C" | |
26711 | { | |
26712 | #endif | |
af15babd | 26713 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26714 | builtin and then its argument prototype would still apply. */ |
26715 | char $ac_func (); | |
af15babd VZ |
26716 | /* The GNU C library defines this for functions which it implements |
26717 | to always fail with ENOSYS. Some functions are actually named | |
26718 | something starting with __ and the normal name is an alias. */ | |
26719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26720 | choke me | |
26721 | #else | |
e6cc62c6 VS |
26722 | char (*f) () = $ac_func; |
26723 | #endif | |
26724 | #ifdef __cplusplus | |
26725 | } | |
af15babd VZ |
26726 | #endif |
26727 | ||
e6cc62c6 VS |
26728 | int |
26729 | main () | |
26730 | { | |
26731 | return f != $ac_func; | |
26732 | ; | |
26733 | return 0; | |
26734 | } | |
26735 | _ACEOF | |
26736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26738 | (eval $ac_link) 2>&5 | |
26739 | ac_status=$? | |
26740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26741 | (exit $ac_status); } && | |
26742 | { ac_try='test -s conftest$ac_exeext' | |
26743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26744 | (eval $ac_try) 2>&5 | |
26745 | ac_status=$? | |
26746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26747 | (exit $ac_status); }; }; then | |
26748 | eval "$as_ac_var=yes" | |
26749 | else | |
26750 | echo "$as_me: failed program was:" >&5 | |
26751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26752 | ||
26753 | eval "$as_ac_var=no" | |
26754 | fi | |
26755 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26756 | fi | |
26757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26758 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26759 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26760 | cat >>confdefs.h <<_ACEOF | |
26761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26762 | _ACEOF | |
ade35f11 | 26763 | break |
ade35f11 VZ |
26764 | fi |
26765 | done | |
26766 | ||
8284b0c5 | 26767 | |
e6cc62c6 VS |
26768 | echo "$as_me:$LINENO: checking for statfs" >&5 |
26769 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
26770 | if test "${wx_cv_func_statfs+set}" = set; then | |
26771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 26772 | else |
e6cc62c6 VS |
26773 | cat >conftest.$ac_ext <<_ACEOF |
26774 | #line $LINENO "configure" | |
26775 | /* confdefs.h. */ | |
26776 | _ACEOF | |
26777 | cat confdefs.h >>conftest.$ac_ext | |
26778 | cat >>conftest.$ac_ext <<_ACEOF | |
26779 | /* end confdefs.h. */ | |
4f14bcd8 GD |
26780 | |
26781 | #if defined(__BSD__) | |
26782 | #include <sys/param.h> | |
26783 | #include <sys/mount.h> | |
26784 | #else | |
26785 | #include <sys/vfs.h> | |
26786 | #endif | |
e6cc62c6 VS |
26787 | |
26788 | int | |
26789 | main () | |
26790 | { | |
4f14bcd8 GD |
26791 | |
26792 | long l; | |
26793 | struct statfs fs; | |
26794 | statfs("/", &fs); | |
26795 | l = fs.f_bsize; | |
26796 | l += fs.f_blocks; | |
26797 | l += fs.f_bavail; | |
e6cc62c6 VS |
26798 | |
26799 | ; | |
26800 | return 0; | |
26801 | } | |
26802 | _ACEOF | |
26803 | rm -f conftest.$ac_objext | |
26804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26805 | (eval $ac_compile) 2>&5 | |
26806 | ac_status=$? | |
26807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26808 | (exit $ac_status); } && | |
26809 | { ac_try='test -s conftest.$ac_objext' | |
26810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26811 | (eval $ac_try) 2>&5 | |
26812 | ac_status=$? | |
26813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26814 | (exit $ac_status); }; }; then | |
26815 | ||
4f14bcd8 | 26816 | wx_cv_func_statfs=yes |
e6cc62c6 | 26817 | |
4f14bcd8 | 26818 | else |
e6cc62c6 VS |
26819 | echo "$as_me: failed program was:" >&5 |
26820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26821 | ||
26822 | ||
4f14bcd8 | 26823 | wx_cv_func_statfs=no |
e6cc62c6 | 26824 | |
8284b0c5 | 26825 | |
247f5006 | 26826 | fi |
e6cc62c6 | 26827 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26828 | |
e6cc62c6 VS |
26829 | fi |
26830 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
26831 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
26832 | |
26833 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 26834 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 26835 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26836 | #define HAVE_STATFS 1 |
e6cc62c6 | 26837 | _ACEOF |
4f14bcd8 GD |
26838 | |
26839 | else | |
e6cc62c6 VS |
26840 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
26841 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
26842 | if test "${wx_cv_func_statvfs+set}" = set; then | |
26843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26844 | else |
e6cc62c6 VS |
26845 | cat >conftest.$ac_ext <<_ACEOF |
26846 | #line $LINENO "configure" | |
26847 | /* confdefs.h. */ | |
26848 | _ACEOF | |
26849 | cat confdefs.h >>conftest.$ac_ext | |
26850 | cat >>conftest.$ac_ext <<_ACEOF | |
26851 | /* end confdefs.h. */ | |
af15babd | 26852 | |
54ab82b3 VZ |
26853 | #include <stddef.h> |
26854 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
26855 | |
26856 | int | |
26857 | main () | |
26858 | { | |
af15babd | 26859 | |
54ab82b3 | 26860 | statvfs("/", NULL); |
e6cc62c6 VS |
26861 | |
26862 | ; | |
26863 | return 0; | |
26864 | } | |
26865 | _ACEOF | |
26866 | rm -f conftest.$ac_objext | |
26867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26868 | (eval $ac_compile) 2>&5 | |
26869 | ac_status=$? | |
26870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26871 | (exit $ac_status); } && | |
26872 | { ac_try='test -s conftest.$ac_objext' | |
26873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26874 | (eval $ac_try) 2>&5 | |
26875 | ac_status=$? | |
26876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26877 | (exit $ac_status); }; }; then | |
54ab82b3 | 26878 | wx_cv_func_statvfs=yes |
af15babd | 26879 | else |
e6cc62c6 VS |
26880 | echo "$as_me: failed program was:" >&5 |
26881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26882 | ||
26883 | wx_cv_func_statvfs=no | |
26884 | ||
247f5006 | 26885 | fi |
e6cc62c6 | 26886 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26887 | |
e6cc62c6 VS |
26888 | fi |
26889 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
26890 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 26891 | |
4f14bcd8 | 26892 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
26893 | |
26894 | ||
26895 | ac_ext=cc | |
54ab82b3 | 26896 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
26900 | |
26901 | ||
e6cc62c6 VS |
26902 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
26903 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
26904 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
26905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 26906 | else |
e6cc62c6 VS |
26907 | cat >conftest.$ac_ext <<_ACEOF |
26908 | #line $LINENO "configure" | |
26909 | /* confdefs.h. */ | |
26910 | _ACEOF | |
26911 | cat confdefs.h >>conftest.$ac_ext | |
26912 | cat >>conftest.$ac_ext <<_ACEOF | |
26913 | /* end confdefs.h. */ | |
54ab82b3 VZ |
26914 | |
26915 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
26916 | |
26917 | int | |
26918 | main () | |
26919 | { | |
54ab82b3 VZ |
26920 | |
26921 | long l; | |
26922 | statvfs_t fs; | |
26923 | statvfs("/", &fs); | |
26924 | l = fs.f_bsize; | |
26925 | l += fs.f_blocks; | |
26926 | l += fs.f_bavail; | |
e6cc62c6 VS |
26927 | |
26928 | ; | |
26929 | return 0; | |
26930 | } | |
26931 | _ACEOF | |
26932 | rm -f conftest.$ac_objext | |
26933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26934 | (eval $ac_compile) 2>&5 | |
26935 | ac_status=$? | |
26936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26937 | (exit $ac_status); } && | |
26938 | { ac_try='test -s conftest.$ac_objext' | |
26939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26940 | (eval $ac_try) 2>&5 | |
26941 | ac_status=$? | |
26942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26943 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
26944 | wx_cv_type_statvfs_t=statvfs_t |
26945 | else | |
e6cc62c6 VS |
26946 | echo "$as_me: failed program was:" >&5 |
26947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26948 | ||
26949 | ||
26950 | cat >conftest.$ac_ext <<_ACEOF | |
26951 | #line $LINENO "configure" | |
26952 | /* confdefs.h. */ | |
26953 | _ACEOF | |
26954 | cat confdefs.h >>conftest.$ac_ext | |
26955 | cat >>conftest.$ac_ext <<_ACEOF | |
26956 | /* end confdefs.h. */ | |
54ab82b3 VZ |
26957 | |
26958 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
26959 | |
26960 | int | |
26961 | main () | |
26962 | { | |
54ab82b3 VZ |
26963 | |
26964 | long l; | |
65d8ef1e | 26965 | struct statvfs fs; |
54ab82b3 VZ |
26966 | statvfs("/", &fs); |
26967 | l = fs.f_bsize; | |
26968 | l += fs.f_blocks; | |
26969 | l += fs.f_bavail; | |
e6cc62c6 VS |
26970 | |
26971 | ; | |
26972 | return 0; | |
26973 | } | |
26974 | _ACEOF | |
26975 | rm -f conftest.$ac_objext | |
26976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26977 | (eval $ac_compile) 2>&5 | |
26978 | ac_status=$? | |
26979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26980 | (exit $ac_status); } && | |
26981 | { ac_try='test -s conftest.$ac_objext' | |
26982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26983 | (eval $ac_try) 2>&5 | |
26984 | ac_status=$? | |
26985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26986 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
26987 | wx_cv_type_statvfs_t="struct statvfs" |
26988 | else | |
e6cc62c6 VS |
26989 | echo "$as_me: failed program was:" >&5 |
26990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26991 | ||
26992 | wx_cv_type_statvfs_t="unknown" | |
26993 | ||
54ab82b3 | 26994 | fi |
e6cc62c6 VS |
26995 | rm -f conftest.$ac_objext conftest.$ac_ext |
26996 | ||
26997 | ||
54ab82b3 | 26998 | fi |
e6cc62c6 | 26999 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27000 | |
e6cc62c6 VS |
27001 | fi |
27002 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27003 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27004 | |
27005 | ac_ext=c | |
54ab82b3 | 27006 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27010 | |
27011 | ||
27012 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27013 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27014 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27015 | _ACEOF |
af15babd | 27016 | |
54ab82b3 | 27017 | fi |
4f14bcd8 | 27018 | else |
54ab82b3 | 27019 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27020 | fi |
27021 | fi | |
af15babd | 27022 | |
54ab82b3 | 27023 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27024 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27025 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27026 | _ACEOF |
54ab82b3 VZ |
27027 | |
27028 | else | |
e6cc62c6 VS |
27029 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27030 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27031 | fi |
27032 | ||
4f14bcd8 | 27033 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27034 | |
27035 | ||
27036 | for ac_func in fcntl flock | |
af15babd | 27037 | do |
e6cc62c6 VS |
27038 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27039 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27040 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27041 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27043 | else | |
27044 | cat >conftest.$ac_ext <<_ACEOF | |
27045 | #line $LINENO "configure" | |
27046 | /* confdefs.h. */ | |
27047 | _ACEOF | |
27048 | cat confdefs.h >>conftest.$ac_ext | |
27049 | cat >>conftest.$ac_ext <<_ACEOF | |
27050 | /* end confdefs.h. */ | |
af15babd | 27051 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27052 | which can conflict with char $ac_func (); below. |
27053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27054 | <limits.h> exists even on freestanding compilers. */ | |
27055 | #ifdef __STDC__ | |
27056 | # include <limits.h> | |
27057 | #else | |
27058 | # include <assert.h> | |
27059 | #endif | |
af15babd | 27060 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27061 | #ifdef __cplusplus |
27062 | extern "C" | |
27063 | { | |
27064 | #endif | |
af15babd | 27065 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27066 | builtin and then its argument prototype would still apply. */ |
27067 | char $ac_func (); | |
af15babd VZ |
27068 | /* The GNU C library defines this for functions which it implements |
27069 | to always fail with ENOSYS. Some functions are actually named | |
27070 | something starting with __ and the normal name is an alias. */ | |
27071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27072 | choke me | |
27073 | #else | |
e6cc62c6 VS |
27074 | char (*f) () = $ac_func; |
27075 | #endif | |
27076 | #ifdef __cplusplus | |
27077 | } | |
af15babd VZ |
27078 | #endif |
27079 | ||
e6cc62c6 VS |
27080 | int |
27081 | main () | |
27082 | { | |
27083 | return f != $ac_func; | |
27084 | ; | |
27085 | return 0; | |
27086 | } | |
27087 | _ACEOF | |
27088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27090 | (eval $ac_link) 2>&5 | |
27091 | ac_status=$? | |
27092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27093 | (exit $ac_status); } && | |
27094 | { ac_try='test -s conftest$ac_exeext' | |
27095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27096 | (eval $ac_try) 2>&5 | |
27097 | ac_status=$? | |
27098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27099 | (exit $ac_status); }; }; then | |
27100 | eval "$as_ac_var=yes" | |
27101 | else | |
27102 | echo "$as_me: failed program was:" >&5 | |
27103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27104 | ||
27105 | eval "$as_ac_var=no" | |
27106 | fi | |
27107 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27108 | fi | |
27109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27110 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27111 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27112 | cat >>confdefs.h <<_ACEOF | |
27113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27114 | _ACEOF | |
4f14bcd8 | 27115 | break |
af15babd VZ |
27116 | fi |
27117 | done | |
27118 | ||
8284b0c5 | 27119 | |
4f14bcd8 | 27120 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27121 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27122 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27123 | wxUSE_SNGLINST_CHECKER=no |
27124 | fi | |
27125 | fi | |
af15babd | 27126 | |
e6cc62c6 | 27127 | |
4f14bcd8 | 27128 | for ac_func in timegm |
af15babd | 27129 | do |
e6cc62c6 VS |
27130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27131 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27133 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27135 | else | |
27136 | cat >conftest.$ac_ext <<_ACEOF | |
27137 | #line $LINENO "configure" | |
27138 | /* confdefs.h. */ | |
27139 | _ACEOF | |
27140 | cat confdefs.h >>conftest.$ac_ext | |
27141 | cat >>conftest.$ac_ext <<_ACEOF | |
27142 | /* end confdefs.h. */ | |
af15babd | 27143 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27144 | which can conflict with char $ac_func (); below. |
27145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27146 | <limits.h> exists even on freestanding compilers. */ | |
27147 | #ifdef __STDC__ | |
27148 | # include <limits.h> | |
27149 | #else | |
27150 | # include <assert.h> | |
27151 | #endif | |
af15babd | 27152 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27153 | #ifdef __cplusplus |
27154 | extern "C" | |
27155 | { | |
27156 | #endif | |
af15babd | 27157 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27158 | builtin and then its argument prototype would still apply. */ |
27159 | char $ac_func (); | |
af15babd VZ |
27160 | /* The GNU C library defines this for functions which it implements |
27161 | to always fail with ENOSYS. Some functions are actually named | |
27162 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27164 | choke me | |
27165 | #else | |
e6cc62c6 VS |
27166 | char (*f) () = $ac_func; |
27167 | #endif | |
27168 | #ifdef __cplusplus | |
27169 | } | |
247f5006 VZ |
27170 | #endif |
27171 | ||
e6cc62c6 VS |
27172 | int |
27173 | main () | |
27174 | { | |
27175 | return f != $ac_func; | |
27176 | ; | |
27177 | return 0; | |
27178 | } | |
27179 | _ACEOF | |
27180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27182 | (eval $ac_link) 2>&5 | |
27183 | ac_status=$? | |
27184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27185 | (exit $ac_status); } && | |
27186 | { ac_try='test -s conftest$ac_exeext' | |
27187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27188 | (eval $ac_try) 2>&5 | |
27189 | ac_status=$? | |
27190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27191 | (exit $ac_status); }; }; then | |
27192 | eval "$as_ac_var=yes" | |
27193 | else | |
27194 | echo "$as_me: failed program was:" >&5 | |
27195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27196 | ||
27197 | eval "$as_ac_var=no" | |
27198 | fi | |
27199 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27200 | fi | |
27201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27202 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27203 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27204 | cat >>confdefs.h <<_ACEOF | |
27205 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27206 | _ACEOF | |
703e0a69 | 27207 | |
af15babd VZ |
27208 | fi |
27209 | done | |
27210 | ||
8284b0c5 | 27211 | |
e6cc62c6 VS |
27212 | |
27213 | ||
4f14bcd8 | 27214 | for ac_func in putenv setenv |
10f2d63a | 27215 | do |
e6cc62c6 VS |
27216 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27217 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27218 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27219 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27221 | else | |
27222 | cat >conftest.$ac_ext <<_ACEOF | |
27223 | #line $LINENO "configure" | |
27224 | /* confdefs.h. */ | |
27225 | _ACEOF | |
27226 | cat confdefs.h >>conftest.$ac_ext | |
27227 | cat >>conftest.$ac_ext <<_ACEOF | |
27228 | /* end confdefs.h. */ | |
af15babd | 27229 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27230 | which can conflict with char $ac_func (); below. |
27231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27232 | <limits.h> exists even on freestanding compilers. */ | |
27233 | #ifdef __STDC__ | |
27234 | # include <limits.h> | |
27235 | #else | |
27236 | # include <assert.h> | |
27237 | #endif | |
af15babd | 27238 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27239 | #ifdef __cplusplus |
27240 | extern "C" | |
27241 | { | |
27242 | #endif | |
af15babd | 27243 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27244 | builtin and then its argument prototype would still apply. */ |
27245 | char $ac_func (); | |
af15babd VZ |
27246 | /* The GNU C library defines this for functions which it implements |
27247 | to always fail with ENOSYS. Some functions are actually named | |
27248 | something starting with __ and the normal name is an alias. */ | |
27249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27250 | choke me | |
27251 | #else | |
e6cc62c6 VS |
27252 | char (*f) () = $ac_func; |
27253 | #endif | |
27254 | #ifdef __cplusplus | |
27255 | } | |
af15babd VZ |
27256 | #endif |
27257 | ||
e6cc62c6 VS |
27258 | int |
27259 | main () | |
27260 | { | |
27261 | return f != $ac_func; | |
27262 | ; | |
27263 | return 0; | |
27264 | } | |
27265 | _ACEOF | |
27266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27268 | (eval $ac_link) 2>&5 | |
27269 | ac_status=$? | |
27270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27271 | (exit $ac_status); } && | |
27272 | { ac_try='test -s conftest$ac_exeext' | |
27273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27274 | (eval $ac_try) 2>&5 | |
27275 | ac_status=$? | |
27276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27277 | (exit $ac_status); }; }; then | |
27278 | eval "$as_ac_var=yes" | |
27279 | else | |
27280 | echo "$as_me: failed program was:" >&5 | |
27281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27282 | ||
27283 | eval "$as_ac_var=no" | |
27284 | fi | |
27285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27286 | fi | |
27287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27288 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27289 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27290 | cat >>confdefs.h <<_ACEOF | |
27291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27292 | _ACEOF | |
4f14bcd8 | 27293 | break |
af15babd | 27294 | fi |
af15babd VZ |
27295 | done |
27296 | ||
8284b0c5 | 27297 | |
4f14bcd8 GD |
27298 | HAVE_SOME_SLEEP_FUNC=0 |
27299 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27300 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27301 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27302 | _ACEOF |
af15babd | 27303 | |
4f14bcd8 | 27304 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27305 | fi |
27306 | ||
4f14bcd8 | 27307 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27308 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27309 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27310 | _ACEOF |
10f2d63a | 27311 | |
4f14bcd8 | 27312 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27313 | fi |
27314 | ||
4f14bcd8 GD |
27315 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27316 | POSIX4_LINK= | |
e6cc62c6 VS |
27317 | |
27318 | for ac_func in nanosleep | |
4f14bcd8 | 27319 | do |
e6cc62c6 VS |
27320 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27321 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27322 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27323 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27325 | else | |
27326 | cat >conftest.$ac_ext <<_ACEOF | |
27327 | #line $LINENO "configure" | |
27328 | /* confdefs.h. */ | |
27329 | _ACEOF | |
27330 | cat confdefs.h >>conftest.$ac_ext | |
27331 | cat >>conftest.$ac_ext <<_ACEOF | |
27332 | /* end confdefs.h. */ | |
4f14bcd8 | 27333 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27334 | which can conflict with char $ac_func (); below. |
27335 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27336 | <limits.h> exists even on freestanding compilers. */ | |
27337 | #ifdef __STDC__ | |
27338 | # include <limits.h> | |
27339 | #else | |
27340 | # include <assert.h> | |
27341 | #endif | |
10f2d63a | 27342 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27343 | #ifdef __cplusplus |
27344 | extern "C" | |
27345 | { | |
27346 | #endif | |
10f2d63a | 27347 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27348 | builtin and then its argument prototype would still apply. */ |
27349 | char $ac_func (); | |
4f14bcd8 GD |
27350 | /* The GNU C library defines this for functions which it implements |
27351 | to always fail with ENOSYS. Some functions are actually named | |
27352 | something starting with __ and the normal name is an alias. */ | |
27353 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27354 | choke me | |
27355 | #else | |
e6cc62c6 VS |
27356 | char (*f) () = $ac_func; |
27357 | #endif | |
27358 | #ifdef __cplusplus | |
27359 | } | |
4f14bcd8 GD |
27360 | #endif |
27361 | ||
e6cc62c6 VS |
27362 | int |
27363 | main () | |
27364 | { | |
27365 | return f != $ac_func; | |
27366 | ; | |
27367 | return 0; | |
27368 | } | |
27369 | _ACEOF | |
27370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27372 | (eval $ac_link) 2>&5 | |
27373 | ac_status=$? | |
27374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27375 | (exit $ac_status); } && | |
27376 | { ac_try='test -s conftest$ac_exeext' | |
27377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27378 | (eval $ac_try) 2>&5 | |
27379 | ac_status=$? | |
27380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27381 | (exit $ac_status); }; }; then | |
27382 | eval "$as_ac_var=yes" | |
27383 | else | |
27384 | echo "$as_me: failed program was:" >&5 | |
27385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27386 | ||
27387 | eval "$as_ac_var=no" | |
27388 | fi | |
27389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27390 | fi | |
27391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27392 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27393 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27394 | cat >>confdefs.h <<_ACEOF | |
27395 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27396 | _ACEOF | |
27397 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27398 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27399 | _ACEOF |
4f14bcd8 | 27400 | |
10f2d63a | 27401 | else |
e6cc62c6 VS |
27402 | |
27403 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27404 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27405 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27407 | else |
e6cc62c6 | 27408 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27409 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27410 | cat >conftest.$ac_ext <<_ACEOF |
27411 | #line $LINENO "configure" | |
27412 | /* confdefs.h. */ | |
27413 | _ACEOF | |
27414 | cat confdefs.h >>conftest.$ac_ext | |
27415 | cat >>conftest.$ac_ext <<_ACEOF | |
27416 | /* end confdefs.h. */ | |
27417 | ||
10f2d63a | 27418 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27419 | #ifdef __cplusplus |
27420 | extern "C" | |
27421 | #endif | |
10f2d63a | 27422 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27423 | builtin and then its argument prototype would still apply. */ |
27424 | char nanosleep (); | |
27425 | int | |
27426 | main () | |
27427 | { | |
27428 | nanosleep (); | |
27429 | ; | |
27430 | return 0; | |
27431 | } | |
27432 | _ACEOF | |
27433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27435 | (eval $ac_link) 2>&5 | |
27436 | ac_status=$? | |
27437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27438 | (exit $ac_status); } && | |
27439 | { ac_try='test -s conftest$ac_exeext' | |
27440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27441 | (eval $ac_try) 2>&5 | |
27442 | ac_status=$? | |
27443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27444 | (exit $ac_status); }; }; then | |
27445 | ac_cv_lib_posix4_nanosleep=yes | |
27446 | else | |
27447 | echo "$as_me: failed program was:" >&5 | |
27448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27449 | ||
27450 | ac_cv_lib_posix4_nanosleep=no | |
27451 | fi | |
27452 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27453 | LIBS=$ac_check_lib_save_LIBS | |
27454 | fi | |
27455 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27456 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27457 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27458 | ||
27459 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27460 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27461 | _ACEOF |
4f14bcd8 | 27462 | |
3d63bc3a | 27463 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27464 | |
10f2d63a | 27465 | else |
10f2d63a | 27466 | |
e6cc62c6 VS |
27467 | |
27468 | for ac_func in usleep | |
4f14bcd8 | 27469 | do |
e6cc62c6 VS |
27470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27471 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27473 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27475 | else | |
27476 | cat >conftest.$ac_ext <<_ACEOF | |
27477 | #line $LINENO "configure" | |
27478 | /* confdefs.h. */ | |
27479 | _ACEOF | |
27480 | cat confdefs.h >>conftest.$ac_ext | |
27481 | cat >>conftest.$ac_ext <<_ACEOF | |
27482 | /* end confdefs.h. */ | |
4f14bcd8 | 27483 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27484 | which can conflict with char $ac_func (); below. |
27485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27486 | <limits.h> exists even on freestanding compilers. */ | |
27487 | #ifdef __STDC__ | |
27488 | # include <limits.h> | |
27489 | #else | |
27490 | # include <assert.h> | |
27491 | #endif | |
4f14bcd8 | 27492 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27493 | #ifdef __cplusplus |
27494 | extern "C" | |
27495 | { | |
27496 | #endif | |
4f14bcd8 | 27497 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27498 | builtin and then its argument prototype would still apply. */ |
27499 | char $ac_func (); | |
4f14bcd8 GD |
27500 | /* The GNU C library defines this for functions which it implements |
27501 | to always fail with ENOSYS. Some functions are actually named | |
27502 | something starting with __ and the normal name is an alias. */ | |
27503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27504 | choke me | |
27505 | #else | |
e6cc62c6 VS |
27506 | char (*f) () = $ac_func; |
27507 | #endif | |
27508 | #ifdef __cplusplus | |
27509 | } | |
4f14bcd8 GD |
27510 | #endif |
27511 | ||
e6cc62c6 VS |
27512 | int |
27513 | main () | |
27514 | { | |
27515 | return f != $ac_func; | |
27516 | ; | |
27517 | return 0; | |
27518 | } | |
27519 | _ACEOF | |
27520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27522 | (eval $ac_link) 2>&5 | |
27523 | ac_status=$? | |
27524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27525 | (exit $ac_status); } && | |
27526 | { ac_try='test -s conftest$ac_exeext' | |
27527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27528 | (eval $ac_try) 2>&5 | |
27529 | ac_status=$? | |
27530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27531 | (exit $ac_status); }; }; then | |
27532 | eval "$as_ac_var=yes" | |
27533 | else | |
27534 | echo "$as_me: failed program was:" >&5 | |
27535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27536 | ||
27537 | eval "$as_ac_var=no" | |
27538 | fi | |
27539 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27540 | fi | |
27541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27542 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27543 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27544 | cat >>confdefs.h <<_ACEOF | |
27545 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27546 | _ACEOF | |
27547 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27548 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27549 | _ACEOF |
4f14bcd8 | 27550 | |
698dcdb6 | 27551 | else |
e6cc62c6 VS |
27552 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
27553 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27554 | ||
10f2d63a | 27555 | fi |
4f14bcd8 | 27556 | done |
10f2d63a | 27557 | |
e6cc62c6 VS |
27558 | |
27559 | ||
6232543b | 27560 | fi |
10f2d63a | 27561 | |
e6cc62c6 VS |
27562 | |
27563 | ||
1e487827 | 27564 | fi |
4f14bcd8 | 27565 | done |
703e0a69 | 27566 | |
10f2d63a VZ |
27567 | fi |
27568 | ||
e6cc62c6 VS |
27569 | |
27570 | ||
4f14bcd8 | 27571 | for ac_func in uname gethostname |
70846f0a | 27572 | do |
e6cc62c6 VS |
27573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27574 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27576 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27578 | else | |
27579 | cat >conftest.$ac_ext <<_ACEOF | |
27580 | #line $LINENO "configure" | |
27581 | /* confdefs.h. */ | |
27582 | _ACEOF | |
27583 | cat confdefs.h >>conftest.$ac_ext | |
27584 | cat >>conftest.$ac_ext <<_ACEOF | |
27585 | /* end confdefs.h. */ | |
70846f0a | 27586 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27587 | which can conflict with char $ac_func (); below. |
27588 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27589 | <limits.h> exists even on freestanding compilers. */ | |
27590 | #ifdef __STDC__ | |
27591 | # include <limits.h> | |
27592 | #else | |
27593 | # include <assert.h> | |
27594 | #endif | |
70846f0a | 27595 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27596 | #ifdef __cplusplus |
27597 | extern "C" | |
27598 | { | |
27599 | #endif | |
70846f0a | 27600 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27601 | builtin and then its argument prototype would still apply. */ |
27602 | char $ac_func (); | |
70846f0a VZ |
27603 | /* The GNU C library defines this for functions which it implements |
27604 | to always fail with ENOSYS. Some functions are actually named | |
27605 | something starting with __ and the normal name is an alias. */ | |
27606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27607 | choke me | |
27608 | #else | |
e6cc62c6 VS |
27609 | char (*f) () = $ac_func; |
27610 | #endif | |
27611 | #ifdef __cplusplus | |
27612 | } | |
70846f0a VZ |
27613 | #endif |
27614 | ||
e6cc62c6 VS |
27615 | int |
27616 | main () | |
27617 | { | |
27618 | return f != $ac_func; | |
27619 | ; | |
27620 | return 0; | |
27621 | } | |
27622 | _ACEOF | |
27623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27625 | (eval $ac_link) 2>&5 | |
27626 | ac_status=$? | |
27627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27628 | (exit $ac_status); } && | |
27629 | { ac_try='test -s conftest$ac_exeext' | |
27630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27631 | (eval $ac_try) 2>&5 | |
27632 | ac_status=$? | |
27633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27634 | (exit $ac_status); }; }; then | |
27635 | eval "$as_ac_var=yes" | |
27636 | else | |
27637 | echo "$as_me: failed program was:" >&5 | |
27638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27639 | ||
27640 | eval "$as_ac_var=no" | |
27641 | fi | |
27642 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27643 | fi | |
27644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27645 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27646 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27647 | cat >>confdefs.h <<_ACEOF | |
27648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27649 | _ACEOF | |
4f14bcd8 | 27650 | break |
70846f0a VZ |
27651 | fi |
27652 | done | |
27653 | ||
8284b0c5 MB |
27654 | |
27655 | ||
e6cc62c6 VS |
27656 | |
27657 | ac_ext=cc | |
4f14bcd8 | 27658 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27659 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27660 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27661 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27662 | ||
8284b0c5 | 27663 | |
4f14bcd8 GD |
27664 | |
27665 | for ac_func in strtok_r | |
10f2d63a | 27666 | do |
e6cc62c6 VS |
27667 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27668 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27669 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27670 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27672 | else | |
27673 | cat >conftest.$ac_ext <<_ACEOF | |
27674 | #line $LINENO "configure" | |
27675 | /* confdefs.h. */ | |
27676 | _ACEOF | |
27677 | cat confdefs.h >>conftest.$ac_ext | |
27678 | cat >>conftest.$ac_ext <<_ACEOF | |
27679 | /* end confdefs.h. */ | |
4f14bcd8 | 27680 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27681 | which can conflict with char $ac_func (); below. |
27682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27683 | <limits.h> exists even on freestanding compilers. */ | |
27684 | #ifdef __STDC__ | |
27685 | # include <limits.h> | |
27686 | #else | |
27687 | # include <assert.h> | |
27688 | #endif | |
4f14bcd8 GD |
27689 | /* Override any gcc2 internal prototype to avoid an error. */ |
27690 | #ifdef __cplusplus | |
27691 | extern "C" | |
e6cc62c6 | 27692 | { |
4f14bcd8 GD |
27693 | #endif |
27694 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
27695 | builtin and then its argument prototype would still apply. */ |
27696 | char $ac_func (); | |
4f14bcd8 GD |
27697 | /* The GNU C library defines this for functions which it implements |
27698 | to always fail with ENOSYS. Some functions are actually named | |
27699 | something starting with __ and the normal name is an alias. */ | |
27700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27701 | choke me | |
27702 | #else | |
e6cc62c6 VS |
27703 | char (*f) () = $ac_func; |
27704 | #endif | |
27705 | #ifdef __cplusplus | |
27706 | } | |
4f14bcd8 GD |
27707 | #endif |
27708 | ||
e6cc62c6 VS |
27709 | int |
27710 | main () | |
27711 | { | |
27712 | return f != $ac_func; | |
27713 | ; | |
27714 | return 0; | |
27715 | } | |
27716 | _ACEOF | |
27717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27719 | (eval $ac_link) 2>&5 | |
27720 | ac_status=$? | |
27721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27722 | (exit $ac_status); } && | |
27723 | { ac_try='test -s conftest$ac_exeext' | |
27724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27725 | (eval $ac_try) 2>&5 | |
27726 | ac_status=$? | |
27727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27728 | (exit $ac_status); }; }; then | |
27729 | eval "$as_ac_var=yes" | |
27730 | else | |
27731 | echo "$as_me: failed program was:" >&5 | |
27732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27733 | ||
27734 | eval "$as_ac_var=no" | |
27735 | fi | |
27736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27737 | fi | |
27738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27739 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27740 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27741 | cat >>confdefs.h <<_ACEOF | |
27742 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27743 | _ACEOF | |
4f14bcd8 | 27744 | |
10f2d63a VZ |
27745 | fi |
27746 | done | |
27747 | ||
8284b0c5 | 27748 | |
4f14bcd8 | 27749 | ac_ext=c |
4f14bcd8 | 27750 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27754 | |
5c6fa7d2 | 27755 | |
8284b0c5 | 27756 | INET_LINK= |
e6cc62c6 | 27757 | |
4f14bcd8 GD |
27758 | for ac_func in inet_addr |
27759 | do | |
e6cc62c6 VS |
27760 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27761 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27762 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27763 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27765 | else | |
27766 | cat >conftest.$ac_ext <<_ACEOF | |
27767 | #line $LINENO "configure" | |
27768 | /* confdefs.h. */ | |
27769 | _ACEOF | |
27770 | cat confdefs.h >>conftest.$ac_ext | |
27771 | cat >>conftest.$ac_ext <<_ACEOF | |
27772 | /* end confdefs.h. */ | |
4f14bcd8 | 27773 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27774 | which can conflict with char $ac_func (); below. |
27775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27776 | <limits.h> exists even on freestanding compilers. */ | |
27777 | #ifdef __STDC__ | |
27778 | # include <limits.h> | |
27779 | #else | |
27780 | # include <assert.h> | |
27781 | #endif | |
10f2d63a | 27782 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27783 | #ifdef __cplusplus |
27784 | extern "C" | |
27785 | { | |
27786 | #endif | |
10f2d63a | 27787 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27788 | builtin and then its argument prototype would still apply. */ |
27789 | char $ac_func (); | |
4f14bcd8 GD |
27790 | /* The GNU C library defines this for functions which it implements |
27791 | to always fail with ENOSYS. Some functions are actually named | |
27792 | something starting with __ and the normal name is an alias. */ | |
27793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27794 | choke me | |
27795 | #else | |
e6cc62c6 VS |
27796 | char (*f) () = $ac_func; |
27797 | #endif | |
27798 | #ifdef __cplusplus | |
27799 | } | |
4f14bcd8 GD |
27800 | #endif |
27801 | ||
e6cc62c6 VS |
27802 | int |
27803 | main () | |
27804 | { | |
27805 | return f != $ac_func; | |
27806 | ; | |
27807 | return 0; | |
27808 | } | |
27809 | _ACEOF | |
27810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27812 | (eval $ac_link) 2>&5 | |
27813 | ac_status=$? | |
27814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27815 | (exit $ac_status); } && | |
27816 | { ac_try='test -s conftest$ac_exeext' | |
27817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27818 | (eval $ac_try) 2>&5 | |
27819 | ac_status=$? | |
27820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27821 | (exit $ac_status); }; }; then | |
27822 | eval "$as_ac_var=yes" | |
27823 | else | |
27824 | echo "$as_me: failed program was:" >&5 | |
27825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27826 | ||
27827 | eval "$as_ac_var=no" | |
27828 | fi | |
27829 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27830 | fi | |
27831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27832 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27833 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27834 | cat >>confdefs.h <<_ACEOF | |
27835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27836 | _ACEOF | |
27837 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27838 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 27839 | _ACEOF |
10f2d63a VZ |
27840 | |
27841 | else | |
e6cc62c6 VS |
27842 | |
27843 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
27844 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
27845 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
27846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27847 | else |
e6cc62c6 | 27848 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27849 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
27850 | cat >conftest.$ac_ext <<_ACEOF |
27851 | #line $LINENO "configure" | |
27852 | /* confdefs.h. */ | |
27853 | _ACEOF | |
27854 | cat confdefs.h >>conftest.$ac_ext | |
27855 | cat >>conftest.$ac_ext <<_ACEOF | |
27856 | /* end confdefs.h. */ | |
27857 | ||
10f2d63a | 27858 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27859 | #ifdef __cplusplus |
27860 | extern "C" | |
27861 | #endif | |
10f2d63a | 27862 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27863 | builtin and then its argument prototype would still apply. */ |
27864 | char inet_addr (); | |
27865 | int | |
27866 | main () | |
27867 | { | |
27868 | inet_addr (); | |
27869 | ; | |
27870 | return 0; | |
27871 | } | |
27872 | _ACEOF | |
27873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27875 | (eval $ac_link) 2>&5 | |
27876 | ac_status=$? | |
27877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27878 | (exit $ac_status); } && | |
27879 | { ac_try='test -s conftest$ac_exeext' | |
27880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27881 | (eval $ac_try) 2>&5 | |
27882 | ac_status=$? | |
27883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27884 | (exit $ac_status); }; }; then | |
27885 | ac_cv_lib_nsl_inet_addr=yes | |
27886 | else | |
27887 | echo "$as_me: failed program was:" >&5 | |
27888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27889 | ||
27890 | ac_cv_lib_nsl_inet_addr=no | |
27891 | fi | |
27892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27893 | LIBS=$ac_check_lib_save_LIBS | |
27894 | fi | |
27895 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
27896 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
27897 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 27898 | INET_LINK="nsl" |
10f2d63a | 27899 | else |
e6cc62c6 VS |
27900 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
27901 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
27902 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
27903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27904 | else |
e6cc62c6 | 27905 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27906 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
27907 | cat >conftest.$ac_ext <<_ACEOF |
27908 | #line $LINENO "configure" | |
27909 | /* confdefs.h. */ | |
27910 | _ACEOF | |
27911 | cat confdefs.h >>conftest.$ac_ext | |
27912 | cat >>conftest.$ac_ext <<_ACEOF | |
27913 | /* end confdefs.h. */ | |
27914 | ||
5c6fa7d2 | 27915 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27916 | #ifdef __cplusplus |
27917 | extern "C" | |
27918 | #endif | |
5c6fa7d2 | 27919 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27920 | builtin and then its argument prototype would still apply. */ |
27921 | char inet_addr (); | |
27922 | int | |
27923 | main () | |
27924 | { | |
27925 | inet_addr (); | |
27926 | ; | |
27927 | return 0; | |
27928 | } | |
27929 | _ACEOF | |
27930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27932 | (eval $ac_link) 2>&5 | |
27933 | ac_status=$? | |
27934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27935 | (exit $ac_status); } && | |
27936 | { ac_try='test -s conftest$ac_exeext' | |
27937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27938 | (eval $ac_try) 2>&5 | |
27939 | ac_status=$? | |
27940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27941 | (exit $ac_status); }; }; then | |
27942 | ac_cv_lib_resolv_inet_addr=yes | |
27943 | else | |
27944 | echo "$as_me: failed program was:" >&5 | |
27945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27946 | ||
27947 | ac_cv_lib_resolv_inet_addr=no | |
27948 | fi | |
27949 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27950 | LIBS=$ac_check_lib_save_LIBS | |
27951 | fi | |
27952 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
27953 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
27954 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 27955 | INET_LINK="resolv" |
698dcdb6 | 27956 | else |
e6cc62c6 VS |
27957 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
27958 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
27959 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
27960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 27961 | else |
e6cc62c6 | 27962 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 27963 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
27964 | cat >conftest.$ac_ext <<_ACEOF |
27965 | #line $LINENO "configure" | |
27966 | /* confdefs.h. */ | |
27967 | _ACEOF | |
27968 | cat confdefs.h >>conftest.$ac_ext | |
27969 | cat >>conftest.$ac_ext <<_ACEOF | |
27970 | /* end confdefs.h. */ | |
27971 | ||
3c011993 | 27972 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27973 | #ifdef __cplusplus |
27974 | extern "C" | |
27975 | #endif | |
3c011993 | 27976 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27977 | builtin and then its argument prototype would still apply. */ |
27978 | char inet_addr (); | |
27979 | int | |
27980 | main () | |
27981 | { | |
27982 | inet_addr (); | |
27983 | ; | |
27984 | return 0; | |
27985 | } | |
27986 | _ACEOF | |
27987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27989 | (eval $ac_link) 2>&5 | |
27990 | ac_status=$? | |
27991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27992 | (exit $ac_status); } && | |
27993 | { ac_try='test -s conftest$ac_exeext' | |
27994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27995 | (eval $ac_try) 2>&5 | |
27996 | ac_status=$? | |
27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27998 | (exit $ac_status); }; }; then | |
27999 | ac_cv_lib_socket_inet_addr=yes | |
28000 | else | |
28001 | echo "$as_me: failed program was:" >&5 | |
28002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28003 | ||
28004 | ac_cv_lib_socket_inet_addr=no | |
28005 | fi | |
28006 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28007 | LIBS=$ac_check_lib_save_LIBS | |
28008 | fi | |
28009 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28010 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28011 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28012 | INET_LINK="socket" | |
4f14bcd8 | 28013 | |
8284b0c5 | 28014 | fi |
e6cc62c6 | 28015 | |
698dcdb6 | 28016 | |
7b4a847f | 28017 | fi |
e6cc62c6 VS |
28018 | |
28019 | ||
a0b9e27f | 28020 | fi |
579d8138 | 28021 | |
e6cc62c6 VS |
28022 | |
28023 | ||
5c6fa7d2 | 28024 | fi |
e6cc62c6 VS |
28025 | done |
28026 | ||
28027 | ||
28028 | ||
28029 | for ac_func in inet_aton | |
28030 | do | |
28031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28032 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28034 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28036 | else | |
28037 | cat >conftest.$ac_ext <<_ACEOF | |
28038 | #line $LINENO "configure" | |
28039 | /* confdefs.h. */ | |
28040 | _ACEOF | |
28041 | cat confdefs.h >>conftest.$ac_ext | |
28042 | cat >>conftest.$ac_ext <<_ACEOF | |
28043 | /* end confdefs.h. */ | |
28044 | /* System header to define __stub macros and hopefully few prototypes, | |
28045 | which can conflict with char $ac_func (); below. | |
28046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28047 | <limits.h> exists even on freestanding compilers. */ | |
28048 | #ifdef __STDC__ | |
28049 | # include <limits.h> | |
28050 | #else | |
28051 | # include <assert.h> | |
28052 | #endif | |
28053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28054 | #ifdef __cplusplus | |
28055 | extern "C" | |
28056 | { | |
28057 | #endif | |
28058 | /* We use char because int might match the return type of a gcc2 | |
28059 | builtin and then its argument prototype would still apply. */ | |
28060 | char $ac_func (); | |
28061 | /* The GNU C library defines this for functions which it implements | |
28062 | to always fail with ENOSYS. Some functions are actually named | |
28063 | something starting with __ and the normal name is an alias. */ | |
28064 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28065 | choke me | |
28066 | #else | |
28067 | char (*f) () = $ac_func; | |
28068 | #endif | |
28069 | #ifdef __cplusplus | |
28070 | } | |
28071 | #endif | |
28072 | ||
28073 | int | |
28074 | main () | |
28075 | { | |
28076 | return f != $ac_func; | |
28077 | ; | |
28078 | return 0; | |
28079 | } | |
28080 | _ACEOF | |
28081 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28083 | (eval $ac_link) 2>&5 | |
28084 | ac_status=$? | |
28085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28086 | (exit $ac_status); } && | |
28087 | { ac_try='test -s conftest$ac_exeext' | |
28088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28089 | (eval $ac_try) 2>&5 | |
28090 | ac_status=$? | |
28091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28092 | (exit $ac_status); }; }; then | |
28093 | eval "$as_ac_var=yes" | |
28094 | else | |
28095 | echo "$as_me: failed program was:" >&5 | |
28096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28097 | ||
28098 | eval "$as_ac_var=no" | |
28099 | fi | |
28100 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28101 | fi | |
28102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28103 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28104 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28105 | cat >>confdefs.h <<_ACEOF | |
28106 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28107 | _ACEOF | |
28108 | cat >>confdefs.h <<\_ACEOF | |
28109 | #define HAVE_INET_ATON 1 | |
28110 | _ACEOF | |
28111 | ||
28112 | else | |
28113 | ||
28114 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28115 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28116 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28117 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28119 | else | |
28120 | ac_check_lib_save_LIBS=$LIBS | |
28121 | LIBS="-l$INET_LINK $LIBS" | |
28122 | cat >conftest.$ac_ext <<_ACEOF | |
28123 | #line $LINENO "configure" | |
28124 | /* confdefs.h. */ | |
28125 | _ACEOF | |
28126 | cat confdefs.h >>conftest.$ac_ext | |
28127 | cat >>conftest.$ac_ext <<_ACEOF | |
28128 | /* end confdefs.h. */ | |
28129 | ||
28130 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28131 | #ifdef __cplusplus | |
28132 | extern "C" | |
28133 | #endif | |
28134 | /* We use char because int might match the return type of a gcc2 | |
28135 | builtin and then its argument prototype would still apply. */ | |
28136 | char inet_aton (); | |
28137 | int | |
28138 | main () | |
28139 | { | |
28140 | inet_aton (); | |
28141 | ; | |
28142 | return 0; | |
28143 | } | |
28144 | _ACEOF | |
28145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28147 | (eval $ac_link) 2>&5 | |
28148 | ac_status=$? | |
28149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28150 | (exit $ac_status); } && | |
28151 | { ac_try='test -s conftest$ac_exeext' | |
28152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28153 | (eval $ac_try) 2>&5 | |
28154 | ac_status=$? | |
28155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28156 | (exit $ac_status); }; }; then | |
28157 | eval "$as_ac_Lib=yes" | |
28158 | else | |
28159 | echo "$as_me: failed program was:" >&5 | |
28160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28161 | ||
28162 | eval "$as_ac_Lib=no" | |
28163 | fi | |
28164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28165 | LIBS=$ac_check_lib_save_LIBS | |
28166 | fi | |
28167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28168 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28169 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28170 | cat >>confdefs.h <<\_ACEOF | |
28171 | #define HAVE_INET_ATON 1 | |
28172 | _ACEOF | |
52127426 | 28173 | |
a0b9e27f | 28174 | fi |
247f5006 | 28175 | |
8284b0c5 | 28176 | |
698dcdb6 | 28177 | fi |
4f14bcd8 GD |
28178 | done |
28179 | ||
8284b0c5 | 28180 | |
e6cc62c6 VS |
28181 | if test "x$INET_LINK" != "x"; then |
28182 | cat >>confdefs.h <<\_ACEOF | |
28183 | #define HAVE_INET_ADDR 1 | |
28184 | _ACEOF | |
28185 | ||
28186 | INET_LINK=" -l$INET_LINK" | |
28187 | fi | |
28188 | ||
28189 | fi | |
a0b9e27f | 28190 | |
a0b9e27f | 28191 | |
4f14bcd8 | 28192 | |
e6cc62c6 VS |
28193 | ESD_LINK= |
28194 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28195 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28196 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28197 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28199 | fi | |
28200 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 | |
28201 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
28202 | else | |
28203 | # Is the header compilable? | |
28204 | echo "$as_me:$LINENO: checking esd.h usability" >&5 | |
28205 | echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6 | |
28206 | cat >conftest.$ac_ext <<_ACEOF | |
28207 | #line $LINENO "configure" | |
28208 | /* confdefs.h. */ | |
28209 | _ACEOF | |
28210 | cat confdefs.h >>conftest.$ac_ext | |
28211 | cat >>conftest.$ac_ext <<_ACEOF | |
28212 | /* end confdefs.h. */ | |
28213 | $ac_includes_default | |
28214 | #include <esd.h> | |
28215 | _ACEOF | |
28216 | rm -f conftest.$ac_objext | |
28217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28218 | (eval $ac_compile) 2>&5 | |
28219 | ac_status=$? | |
28220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28221 | (exit $ac_status); } && | |
28222 | { ac_try='test -s conftest.$ac_objext' | |
28223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28224 | (eval $ac_try) 2>&5 | |
28225 | ac_status=$? | |
28226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28227 | (exit $ac_status); }; }; then | |
28228 | ac_header_compiler=yes | |
28229 | else | |
28230 | echo "$as_me: failed program was:" >&5 | |
28231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28232 | ||
28233 | ac_header_compiler=no | |
28234 | fi | |
28235 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28236 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28237 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28238 | ||
28239 | # Is the header present? | |
28240 | echo "$as_me:$LINENO: checking esd.h presence" >&5 | |
28241 | echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6 | |
28242 | cat >conftest.$ac_ext <<_ACEOF | |
28243 | #line $LINENO "configure" | |
28244 | /* confdefs.h. */ | |
28245 | _ACEOF | |
28246 | cat confdefs.h >>conftest.$ac_ext | |
28247 | cat >>conftest.$ac_ext <<_ACEOF | |
28248 | /* end confdefs.h. */ | |
28249 | #include <esd.h> | |
28250 | _ACEOF | |
28251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28253 | ac_status=$? | |
28254 | grep -v '^ *+' conftest.er1 >conftest.err | |
28255 | rm -f conftest.er1 | |
28256 | cat conftest.err >&5 | |
28257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28258 | (exit $ac_status); } >/dev/null; then | |
28259 | if test -s conftest.err; then | |
28260 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28261 | else | |
28262 | ac_cpp_err= | |
28263 | fi | |
a0b9e27f | 28264 | else |
e6cc62c6 VS |
28265 | ac_cpp_err=yes |
28266 | fi | |
28267 | if test -z "$ac_cpp_err"; then | |
28268 | ac_header_preproc=yes | |
28269 | else | |
28270 | echo "$as_me: failed program was:" >&5 | |
28271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28272 | ||
28273 | ac_header_preproc=no | |
28274 | fi | |
28275 | rm -f conftest.err conftest.$ac_ext | |
28276 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28277 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28278 | ||
28279 | # So? What about this header? | |
28280 | case $ac_header_compiler:$ac_header_preproc in | |
28281 | yes:no ) | |
28282 | { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28283 | echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28284 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28285 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28286 | ( | |
28287 | cat <<\_ASBOX | |
28288 | ## ------------------------------------ ## | |
28289 | ## Report this to bug-autoconf@gnu.org. ## | |
28290 | ## ------------------------------------ ## | |
28291 | _ASBOX | |
28292 | ) | | |
28293 | sed "s/^/$as_me: WARNING: /" >&2 | |
28294 | ;; | |
28295 | no:yes ) | |
28296 | { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5 | |
28297 | echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;} | |
28298 | { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5 | |
28299 | echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;} | |
28300 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28301 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28302 | ( | |
28303 | cat <<\_ASBOX | |
28304 | ## ------------------------------------ ## | |
28305 | ## Report this to bug-autoconf@gnu.org. ## | |
28306 | ## ------------------------------------ ## | |
28307 | _ASBOX | |
28308 | ) | | |
28309 | sed "s/^/$as_me: WARNING: /" >&2 | |
28310 | ;; | |
28311 | esac | |
28312 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28313 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28314 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28316 | else | |
28317 | ac_cv_header_esd_h=$ac_header_preproc | |
a0b9e27f | 28318 | fi |
e6cc62c6 VS |
28319 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 |
28320 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
a0b9e27f | 28321 | |
e6cc62c6 VS |
28322 | fi |
28323 | if test $ac_cv_header_esd_h = yes; then | |
4f14bcd8 | 28324 | |
e6cc62c6 VS |
28325 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 |
28326 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28327 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28329 | else |
e6cc62c6 VS |
28330 | ac_check_lib_save_LIBS=$LIBS |
28331 | LIBS="-lesd $LIBS" | |
28332 | cat >conftest.$ac_ext <<_ACEOF | |
28333 | #line $LINENO "configure" | |
28334 | /* confdefs.h. */ | |
28335 | _ACEOF | |
28336 | cat confdefs.h >>conftest.$ac_ext | |
28337 | cat >>conftest.$ac_ext <<_ACEOF | |
28338 | /* end confdefs.h. */ | |
28339 | ||
6232543b | 28340 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28341 | #ifdef __cplusplus |
28342 | extern "C" | |
28343 | #endif | |
6232543b | 28344 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28345 | builtin and then its argument prototype would still apply. */ |
28346 | char esd_close (); | |
28347 | int | |
28348 | main () | |
28349 | { | |
28350 | esd_close (); | |
28351 | ; | |
28352 | return 0; | |
28353 | } | |
28354 | _ACEOF | |
28355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28357 | (eval $ac_link) 2>&5 | |
28358 | ac_status=$? | |
28359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28360 | (exit $ac_status); } && | |
28361 | { ac_try='test -s conftest$ac_exeext' | |
28362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28363 | (eval $ac_try) 2>&5 | |
28364 | ac_status=$? | |
28365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28366 | (exit $ac_status); }; }; then | |
28367 | ac_cv_lib_esd_esd_close=yes | |
a0b9e27f | 28368 | else |
e6cc62c6 VS |
28369 | echo "$as_me: failed program was:" >&5 |
28370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f14bcd8 | 28371 | |
e6cc62c6 | 28372 | ac_cv_lib_esd_esd_close=no |
10f2d63a | 28373 | fi |
e6cc62c6 VS |
28374 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
28375 | LIBS=$ac_check_lib_save_LIBS | |
a0b9e27f | 28376 | fi |
e6cc62c6 VS |
28377 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 |
28378 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28379 | if test $ac_cv_lib_esd_esd_close = yes; then | |
247f5006 | 28380 | |
e6cc62c6 | 28381 | ESD_LINK="-lesd" |
10f2d63a | 28382 | |
e6cc62c6 | 28383 | fi |
8284b0c5 | 28384 | |
4f14bcd8 | 28385 | |
6232543b | 28386 | fi |
10f2d63a | 28387 | |
703e0a69 | 28388 | |
8284b0c5 | 28389 | |
e6cc62c6 VS |
28390 | |
28391 | ||
28392 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28393 | # This file is a shell script that caches the results of configure |
28394 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28395 | # scripts and configure runs, see configure's option --config-cache. |
28396 | # It is not useful on other systems. If it contains results you don't | |
28397 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28398 | # |
e6cc62c6 VS |
28399 | # config.status only pays attention to the cache file if you give it |
28400 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28401 | # |
e6cc62c6 VS |
28402 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28403 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28404 | # following values. | |
28405 | ||
28406 | _ACEOF | |
28407 | ||
4f14bcd8 GD |
28408 | # The following way of writing the cache mishandles newlines in values, |
28409 | # but we know of no workaround that is simple, portable, and efficient. | |
28410 | # So, don't put newlines in cache variables' values. | |
28411 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28412 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28413 | { |
28414 | (set) 2>&1 | | |
28415 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28416 | *ac_space=\ *) | |
28417 | # `set' does not quote correctly, so add quotes (double-quote | |
28418 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28419 | sed -n \ | |
28420 | "s/'/'\\\\''/g; | |
28421 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28422 | ;; | |
28423 | *) | |
28424 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28425 | sed -n \ | |
28426 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28427 | ;; | |
28428 | esac; | |
28429 | } | | |
28430 | sed ' | |
28431 | t clear | |
28432 | : clear | |
28433 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28434 | t end | |
28435 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28436 | : end' >>confcache | |
28437 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28438 | if test -w $cache_file; then |
e6cc62c6 VS |
28439 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28440 | cat confcache >$cache_file | |
f6bcfd97 | 28441 | else |
4f14bcd8 | 28442 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28443 | fi |
4f14bcd8 GD |
28444 | fi |
28445 | rm -f confcache | |
f6bcfd97 | 28446 | |
8284b0c5 | 28447 | |
009fead0 | 28448 | CPP_MT_FLAG= |
4f14bcd8 GD |
28449 | if test "$TOOLKIT" != "MSW"; then |
28450 | ||
e6cc62c6 | 28451 | |
7274f1c7 | 28452 | THREADS_LINK= |
009fead0 | 28453 | THREADS_CFLAGS= |
7274f1c7 RL |
28454 | |
28455 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28456 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28457 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28458 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28459 | wxUSE_THREADS="no" |
28460 | fi | |
4f14bcd8 | 28461 | fi |
4f14bcd8 | 28462 | |
7274f1c7 | 28463 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28464 | |
28465 | ||
009fead0 VZ |
28466 | THREAD_OPTS="-pthread" |
28467 | case "${host}" in | |
28468 | *-*-solaris2* | *-*-sunos4* ) | |
28469 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28470 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28471 | else |
28472 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28473 | fi | |
28474 | ;; | |
28475 | *-*-freebsd*) | |
28476 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28477 | ;; | |
17234b26 MB |
28478 | *-*-darwin* | *-*-cygwin* ) |
28479 | THREAD_OPTS="" | |
4101db81 | 28480 | ;; |
8f4a9a10 | 28481 | *-*-aix*) |
009fead0 VZ |
28482 | THREAD_OPTS="pthreads" |
28483 | ;; | |
4f5a7f74 VZ |
28484 | *-hp-hpux* ) |
28485 | if test "x$GCC" != "xyes"; then | |
28486 | THREAD_OPTS="" | |
28487 | fi | |
89e3b3e4 VZ |
28488 | ;; |
28489 | ||
28490 | *-*-irix* ) | |
28491 | if test "x$GCC" = "xyes"; then | |
28492 | THREAD_OPTS="" | |
28493 | fi | |
28494 | ;; | |
28495 | ||
28496 | *-*-*UnixWare*) | |
28497 | if test "x$GCC" != "xyes"; then | |
28498 | THREAD_OPTS="-Ethread" | |
28499 | fi | |
28500 | ;; | |
009fead0 | 28501 | esac |
4f14bcd8 | 28502 | |
02a1dfba | 28503 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 28504 | |
009fead0 VZ |
28505 | THREADS_OK=no |
28506 | for flag in $THREAD_OPTS; do | |
28507 | case $flag in | |
28508 | none) | |
e6cc62c6 VS |
28509 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
28510 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 28511 | ;; |
698dcdb6 | 28512 | |
009fead0 | 28513 | -*) |
e6cc62c6 VS |
28514 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
28515 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
28516 | THREADS_CFLAGS="$flag" |
28517 | ;; | |
698dcdb6 | 28518 | |
009fead0 | 28519 | *) |
e6cc62c6 VS |
28520 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
28521 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
28522 | THREADS_LINK="-l$flag" |
28523 | ;; | |
28524 | esac | |
10f2d63a | 28525 | |
009fead0 VZ |
28526 | save_LIBS="$LIBS" |
28527 | save_CFLAGS="$CFLAGS" | |
28528 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 28529 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 28530 | |
e6cc62c6 VS |
28531 | cat >conftest.$ac_ext <<_ACEOF |
28532 | #line $LINENO "configure" | |
28533 | /* confdefs.h. */ | |
28534 | _ACEOF | |
28535 | cat confdefs.h >>conftest.$ac_ext | |
28536 | cat >>conftest.$ac_ext <<_ACEOF | |
28537 | /* end confdefs.h. */ | |
009fead0 | 28538 | #include <pthread.h> |
e6cc62c6 VS |
28539 | int |
28540 | main () | |
28541 | { | |
009fead0 | 28542 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
28543 | ; |
28544 | return 0; | |
28545 | } | |
28546 | _ACEOF | |
28547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28549 | (eval $ac_link) 2>&5 | |
28550 | ac_status=$? | |
28551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28552 | (exit $ac_status); } && | |
28553 | { ac_try='test -s conftest$ac_exeext' | |
28554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28555 | (eval $ac_try) 2>&5 | |
28556 | ac_status=$? | |
28557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28558 | (exit $ac_status); }; }; then | |
009fead0 | 28559 | THREADS_OK=yes |
10f2d63a | 28560 | else |
e6cc62c6 VS |
28561 | echo "$as_me: failed program was:" >&5 |
28562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28563 | ||
6232543b | 28564 | fi |
e6cc62c6 | 28565 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 28566 | |
009fead0 VZ |
28567 | LIBS="$save_LIBS" |
28568 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 28569 | |
e6cc62c6 VS |
28570 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
28571 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
28572 | if test "x$THREADS_OK" = "xyes"; then |
28573 | break; | |
28574 | fi | |
d9b9876f | 28575 | |
009fead0 VZ |
28576 | THREADS_LINK="" |
28577 | THREADS_CFLAGS="" | |
28578 | done | |
4f14bcd8 | 28579 | |
009fead0 VZ |
28580 | if test "x$THREADS_OK" != "xyes"; then |
28581 | wxUSE_THREADS=no | |
e6cc62c6 VS |
28582 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
28583 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 28584 | else |
db82f09e VZ |
28585 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
28586 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 28587 | |
e6cc62c6 VS |
28588 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
28589 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
28590 | flag=no |
28591 | case "${host}" in | |
2b5f62a0 VZ |
28592 | *-aix*) |
28593 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
28594 | flag="-D_THREAD_SAFE" | |
28595 | ;; | |
28596 | *-freebsd*) | |
009fead0 VZ |
28597 | flag="-D_THREAD_SAFE" |
28598 | ;; | |
06313569 GD |
28599 | *-hp-hpux* ) |
28600 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
28601 | if test "x$GCC" != "xyes"; then |
28602 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
28603 | fi | |
06313569 | 28604 | ;; |
009fead0 VZ |
28605 | *solaris* | alpha*-osf*) |
28606 | flag="-D_REENTRANT" | |
28607 | ;; | |
28608 | esac | |
e6cc62c6 VS |
28609 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
28610 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 28611 | if test "x$flag" != xno; then |
04727afd | 28612 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
28613 | fi |
28614 | ||
009fead0 | 28615 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 28616 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
28617 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
28618 | fi | |
28619 | fi | |
4f14bcd8 | 28620 | fi |
4f14bcd8 | 28621 | |
7274f1c7 | 28622 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28623 | |
28624 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 28625 | do |
e6cc62c6 VS |
28626 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28627 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28628 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28629 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28631 | else | |
28632 | cat >conftest.$ac_ext <<_ACEOF | |
28633 | #line $LINENO "configure" | |
28634 | /* confdefs.h. */ | |
28635 | _ACEOF | |
28636 | cat confdefs.h >>conftest.$ac_ext | |
28637 | cat >>conftest.$ac_ext <<_ACEOF | |
28638 | /* end confdefs.h. */ | |
4f14bcd8 | 28639 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28640 | which can conflict with char $ac_func (); below. |
28641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28642 | <limits.h> exists even on freestanding compilers. */ | |
28643 | #ifdef __STDC__ | |
28644 | # include <limits.h> | |
28645 | #else | |
28646 | # include <assert.h> | |
28647 | #endif | |
4f14bcd8 | 28648 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28649 | #ifdef __cplusplus |
28650 | extern "C" | |
28651 | { | |
28652 | #endif | |
4f14bcd8 | 28653 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28654 | builtin and then its argument prototype would still apply. */ |
28655 | char $ac_func (); | |
4f14bcd8 GD |
28656 | /* The GNU C library defines this for functions which it implements |
28657 | to always fail with ENOSYS. Some functions are actually named | |
28658 | something starting with __ and the normal name is an alias. */ | |
28659 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28660 | choke me | |
28661 | #else | |
e6cc62c6 VS |
28662 | char (*f) () = $ac_func; |
28663 | #endif | |
28664 | #ifdef __cplusplus | |
28665 | } | |
4f14bcd8 GD |
28666 | #endif |
28667 | ||
e6cc62c6 VS |
28668 | int |
28669 | main () | |
28670 | { | |
28671 | return f != $ac_func; | |
28672 | ; | |
28673 | return 0; | |
28674 | } | |
28675 | _ACEOF | |
28676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28678 | (eval $ac_link) 2>&5 | |
28679 | ac_status=$? | |
28680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28681 | (exit $ac_status); } && | |
28682 | { ac_try='test -s conftest$ac_exeext' | |
28683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28684 | (eval $ac_try) 2>&5 | |
28685 | ac_status=$? | |
28686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28687 | (exit $ac_status); }; }; then | |
28688 | eval "$as_ac_var=yes" | |
28689 | else | |
28690 | echo "$as_me: failed program was:" >&5 | |
28691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28692 | ||
28693 | eval "$as_ac_var=no" | |
28694 | fi | |
28695 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28696 | fi | |
28697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28698 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28699 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28700 | cat >>confdefs.h <<_ACEOF | |
28701 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28702 | _ACEOF | |
698dcdb6 | 28703 | |
10f2d63a | 28704 | fi |
4f14bcd8 | 28705 | done |
10f2d63a | 28706 | |
8284b0c5 | 28707 | |
e6cc62c6 VS |
28708 | |
28709 | for ac_header in sched.h | |
4f14bcd8 | 28710 | do |
e6cc62c6 VS |
28711 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
28712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28717 | fi | |
28718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28719 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28720 | else | |
28721 | # Is the header compilable? | |
28722 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
28723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
28724 | cat >conftest.$ac_ext <<_ACEOF | |
28725 | #line $LINENO "configure" | |
28726 | /* confdefs.h. */ | |
28727 | _ACEOF | |
28728 | cat confdefs.h >>conftest.$ac_ext | |
28729 | cat >>conftest.$ac_ext <<_ACEOF | |
28730 | /* end confdefs.h. */ | |
28731 | $ac_includes_default | |
28732 | #include <$ac_header> | |
28733 | _ACEOF | |
28734 | rm -f conftest.$ac_objext | |
28735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28736 | (eval $ac_compile) 2>&5 | |
28737 | ac_status=$? | |
28738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28739 | (exit $ac_status); } && | |
28740 | { ac_try='test -s conftest.$ac_objext' | |
28741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28742 | (eval $ac_try) 2>&5 | |
28743 | ac_status=$? | |
28744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28745 | (exit $ac_status); }; }; then | |
28746 | ac_header_compiler=yes | |
28747 | else | |
28748 | echo "$as_me: failed program was:" >&5 | |
28749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28750 | ||
28751 | ac_header_compiler=no | |
28752 | fi | |
28753 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28754 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28755 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28756 | ||
28757 | # Is the header present? | |
28758 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
28759 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
28760 | cat >conftest.$ac_ext <<_ACEOF | |
28761 | #line $LINENO "configure" | |
28762 | /* confdefs.h. */ | |
28763 | _ACEOF | |
28764 | cat confdefs.h >>conftest.$ac_ext | |
28765 | cat >>conftest.$ac_ext <<_ACEOF | |
28766 | /* end confdefs.h. */ | |
28767 | #include <$ac_header> | |
28768 | _ACEOF | |
28769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28771 | ac_status=$? | |
28772 | grep -v '^ *+' conftest.er1 >conftest.err | |
28773 | rm -f conftest.er1 | |
28774 | cat conftest.err >&5 | |
28775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28776 | (exit $ac_status); } >/dev/null; then | |
28777 | if test -s conftest.err; then | |
28778 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28779 | else | |
28780 | ac_cpp_err= | |
28781 | fi | |
28782 | else | |
28783 | ac_cpp_err=yes | |
28784 | fi | |
28785 | if test -z "$ac_cpp_err"; then | |
28786 | ac_header_preproc=yes | |
28787 | else | |
28788 | echo "$as_me: failed program was:" >&5 | |
28789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28790 | ||
28791 | ac_header_preproc=no | |
28792 | fi | |
28793 | rm -f conftest.err conftest.$ac_ext | |
28794 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28795 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28796 | ||
28797 | # So? What about this header? | |
28798 | case $ac_header_compiler:$ac_header_preproc in | |
28799 | yes:no ) | |
28800 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28801 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28804 | ( | |
28805 | cat <<\_ASBOX | |
28806 | ## ------------------------------------ ## | |
28807 | ## Report this to bug-autoconf@gnu.org. ## | |
28808 | ## ------------------------------------ ## | |
28809 | _ASBOX | |
28810 | ) | | |
28811 | sed "s/^/$as_me: WARNING: /" >&2 | |
28812 | ;; | |
28813 | no:yes ) | |
28814 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
28815 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28816 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28817 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28819 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28820 | ( | |
28821 | cat <<\_ASBOX | |
28822 | ## ------------------------------------ ## | |
28823 | ## Report this to bug-autoconf@gnu.org. ## | |
28824 | ## ------------------------------------ ## | |
28825 | _ASBOX | |
28826 | ) | | |
28827 | sed "s/^/$as_me: WARNING: /" >&2 | |
28828 | ;; | |
28829 | esac | |
28830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28834 | else | |
28835 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 28836 | fi |
e6cc62c6 VS |
28837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28838 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28839 | ||
10f2d63a | 28840 | fi |
e6cc62c6 VS |
28841 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28842 | cat >>confdefs.h <<_ACEOF | |
28843 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28844 | _ACEOF | |
28845 | ||
f6bcfd97 | 28846 | fi |
e6cc62c6 | 28847 | |
4f14bcd8 | 28848 | done |
f6bcfd97 | 28849 | |
009fead0 | 28850 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
28851 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
28852 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
28853 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
28854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28855 | else | |
28856 | cat >conftest.$ac_ext <<_ACEOF | |
28857 | #line $LINENO "configure" | |
28858 | /* confdefs.h. */ | |
28859 | _ACEOF | |
28860 | cat confdefs.h >>conftest.$ac_ext | |
28861 | cat >>conftest.$ac_ext <<_ACEOF | |
28862 | /* end confdefs.h. */ | |
009fead0 | 28863 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28864 | which can conflict with char sched_yield (); below. |
28865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28866 | <limits.h> exists even on freestanding compilers. */ | |
28867 | #ifdef __STDC__ | |
28868 | # include <limits.h> | |
28869 | #else | |
28870 | # include <assert.h> | |
28871 | #endif | |
4f14bcd8 | 28872 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28873 | #ifdef __cplusplus |
28874 | extern "C" | |
28875 | { | |
28876 | #endif | |
4f14bcd8 | 28877 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28878 | builtin and then its argument prototype would still apply. */ |
28879 | char sched_yield (); | |
009fead0 VZ |
28880 | /* The GNU C library defines this for functions which it implements |
28881 | to always fail with ENOSYS. Some functions are actually named | |
28882 | something starting with __ and the normal name is an alias. */ | |
28883 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
28884 | choke me | |
28885 | #else | |
e6cc62c6 VS |
28886 | char (*f) () = sched_yield; |
28887 | #endif | |
28888 | #ifdef __cplusplus | |
28889 | } | |
009fead0 VZ |
28890 | #endif |
28891 | ||
e6cc62c6 VS |
28892 | int |
28893 | main () | |
28894 | { | |
28895 | return f != sched_yield; | |
28896 | ; | |
28897 | return 0; | |
28898 | } | |
28899 | _ACEOF | |
28900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28902 | (eval $ac_link) 2>&5 | |
28903 | ac_status=$? | |
28904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28905 | (exit $ac_status); } && | |
28906 | { ac_try='test -s conftest$ac_exeext' | |
28907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28908 | (eval $ac_try) 2>&5 | |
28909 | ac_status=$? | |
28910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28911 | (exit $ac_status); }; }; then | |
28912 | ac_cv_func_sched_yield=yes | |
28913 | else | |
28914 | echo "$as_me: failed program was:" >&5 | |
28915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28916 | ||
28917 | ac_cv_func_sched_yield=no | |
28918 | fi | |
28919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28920 | fi | |
28921 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
28922 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
28923 | if test $ac_cv_func_sched_yield = yes; then | |
28924 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28925 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 28926 | _ACEOF |
10f2d63a | 28927 | |
4f14bcd8 | 28928 | else |
009fead0 | 28929 | |
e6cc62c6 VS |
28930 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
28931 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
28932 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
28933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 28934 | else |
e6cc62c6 | 28935 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28936 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
28937 | cat >conftest.$ac_ext <<_ACEOF |
28938 | #line $LINENO "configure" | |
28939 | /* confdefs.h. */ | |
28940 | _ACEOF | |
28941 | cat confdefs.h >>conftest.$ac_ext | |
28942 | cat >>conftest.$ac_ext <<_ACEOF | |
28943 | /* end confdefs.h. */ | |
28944 | ||
4f14bcd8 | 28945 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28946 | #ifdef __cplusplus |
28947 | extern "C" | |
28948 | #endif | |
4f14bcd8 | 28949 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28950 | builtin and then its argument prototype would still apply. */ |
28951 | char sched_yield (); | |
28952 | int | |
28953 | main () | |
28954 | { | |
28955 | sched_yield (); | |
28956 | ; | |
28957 | return 0; | |
28958 | } | |
28959 | _ACEOF | |
28960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28962 | (eval $ac_link) 2>&5 | |
28963 | ac_status=$? | |
28964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28965 | (exit $ac_status); } && | |
28966 | { ac_try='test -s conftest$ac_exeext' | |
28967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28968 | (eval $ac_try) 2>&5 | |
28969 | ac_status=$? | |
28970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28971 | (exit $ac_status); }; }; then | |
28972 | ac_cv_lib_posix4_sched_yield=yes | |
28973 | else | |
28974 | echo "$as_me: failed program was:" >&5 | |
28975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28976 | ||
28977 | ac_cv_lib_posix4_sched_yield=no | |
28978 | fi | |
28979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28980 | LIBS=$ac_check_lib_save_LIBS | |
28981 | fi | |
28982 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
28983 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
28984 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
28985 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28986 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 28987 | _ACEOF |
3d63bc3a | 28988 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 28989 | else |
e6cc62c6 VS |
28990 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
28991 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
28992 | ||
54276ccf VZ |
28993 | fi |
28994 | ||
e6cc62c6 VS |
28995 | |
28996 | ||
4f14bcd8 | 28997 | fi |
698dcdb6 | 28998 | |
009fead0 | 28999 | fi |
10f2d63a | 29000 | |
7274f1c7 | 29001 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29002 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29003 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29004 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29006 | else | |
29007 | cat >conftest.$ac_ext <<_ACEOF | |
29008 | #line $LINENO "configure" | |
29009 | /* confdefs.h. */ | |
29010 | _ACEOF | |
29011 | cat confdefs.h >>conftest.$ac_ext | |
29012 | cat >>conftest.$ac_ext <<_ACEOF | |
29013 | /* end confdefs.h. */ | |
009fead0 | 29014 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29015 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29017 | <limits.h> exists even on freestanding compilers. */ | |
29018 | #ifdef __STDC__ | |
29019 | # include <limits.h> | |
29020 | #else | |
29021 | # include <assert.h> | |
29022 | #endif | |
4f14bcd8 | 29023 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29024 | #ifdef __cplusplus |
29025 | extern "C" | |
29026 | { | |
29027 | #endif | |
4f14bcd8 | 29028 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29029 | builtin and then its argument prototype would still apply. */ |
29030 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29031 | /* The GNU C library defines this for functions which it implements |
29032 | to always fail with ENOSYS. Some functions are actually named | |
29033 | something starting with __ and the normal name is an alias. */ | |
29034 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29035 | choke me | |
29036 | #else | |
e6cc62c6 VS |
29037 | char (*f) () = pthread_attr_getschedpolicy; |
29038 | #endif | |
29039 | #ifdef __cplusplus | |
29040 | } | |
009fead0 VZ |
29041 | #endif |
29042 | ||
e6cc62c6 VS |
29043 | int |
29044 | main () | |
29045 | { | |
29046 | return f != pthread_attr_getschedpolicy; | |
29047 | ; | |
29048 | return 0; | |
29049 | } | |
29050 | _ACEOF | |
29051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29053 | (eval $ac_link) 2>&5 | |
29054 | ac_status=$? | |
29055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29056 | (exit $ac_status); } && | |
29057 | { ac_try='test -s conftest$ac_exeext' | |
29058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29059 | (eval $ac_try) 2>&5 | |
29060 | ac_status=$? | |
29061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29062 | (exit $ac_status); }; }; then | |
29063 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29064 | else | |
29065 | echo "$as_me: failed program was:" >&5 | |
29066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29067 | ||
29068 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29069 | fi | |
29070 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29071 | fi | |
29072 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29073 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29074 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29075 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29076 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29077 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29079 | else | |
29080 | cat >conftest.$ac_ext <<_ACEOF | |
29081 | #line $LINENO "configure" | |
29082 | /* confdefs.h. */ | |
29083 | _ACEOF | |
29084 | cat confdefs.h >>conftest.$ac_ext | |
29085 | cat >>conftest.$ac_ext <<_ACEOF | |
29086 | /* end confdefs.h. */ | |
a0b9e27f | 29087 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29088 | which can conflict with char pthread_attr_setschedparam (); below. |
29089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29090 | <limits.h> exists even on freestanding compilers. */ | |
29091 | #ifdef __STDC__ | |
29092 | # include <limits.h> | |
29093 | #else | |
29094 | # include <assert.h> | |
29095 | #endif | |
422107f9 | 29096 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29097 | #ifdef __cplusplus |
29098 | extern "C" | |
29099 | { | |
29100 | #endif | |
422107f9 | 29101 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29102 | builtin and then its argument prototype would still apply. */ |
29103 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29104 | /* The GNU C library defines this for functions which it implements |
29105 | to always fail with ENOSYS. Some functions are actually named | |
29106 | something starting with __ and the normal name is an alias. */ | |
29107 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29108 | choke me | |
29109 | #else | |
e6cc62c6 VS |
29110 | char (*f) () = pthread_attr_setschedparam; |
29111 | #endif | |
29112 | #ifdef __cplusplus | |
29113 | } | |
009fead0 VZ |
29114 | #endif |
29115 | ||
e6cc62c6 VS |
29116 | int |
29117 | main () | |
29118 | { | |
29119 | return f != pthread_attr_setschedparam; | |
29120 | ; | |
29121 | return 0; | |
29122 | } | |
29123 | _ACEOF | |
29124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29126 | (eval $ac_link) 2>&5 | |
29127 | ac_status=$? | |
29128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29129 | (exit $ac_status); } && | |
29130 | { ac_try='test -s conftest$ac_exeext' | |
29131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29132 | (eval $ac_try) 2>&5 | |
29133 | ac_status=$? | |
29134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29135 | (exit $ac_status); }; }; then | |
29136 | ac_cv_func_pthread_attr_setschedparam=yes | |
29137 | else | |
29138 | echo "$as_me: failed program was:" >&5 | |
29139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29140 | ||
29141 | ac_cv_func_pthread_attr_setschedparam=no | |
29142 | fi | |
29143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29144 | fi | |
29145 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29146 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29147 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29148 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29149 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29150 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29152 | else | |
29153 | cat >conftest.$ac_ext <<_ACEOF | |
29154 | #line $LINENO "configure" | |
29155 | /* confdefs.h. */ | |
29156 | _ACEOF | |
29157 | cat confdefs.h >>conftest.$ac_ext | |
29158 | cat >>conftest.$ac_ext <<_ACEOF | |
29159 | /* end confdefs.h. */ | |
ef33c576 | 29160 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29161 | which can conflict with char sched_get_priority_max (); below. |
29162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29163 | <limits.h> exists even on freestanding compilers. */ | |
29164 | #ifdef __STDC__ | |
29165 | # include <limits.h> | |
29166 | #else | |
29167 | # include <assert.h> | |
29168 | #endif | |
4f14bcd8 | 29169 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29170 | #ifdef __cplusplus |
29171 | extern "C" | |
29172 | { | |
29173 | #endif | |
4f14bcd8 | 29174 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29175 | builtin and then its argument prototype would still apply. */ |
29176 | char sched_get_priority_max (); | |
009fead0 VZ |
29177 | /* The GNU C library defines this for functions which it implements |
29178 | to always fail with ENOSYS. Some functions are actually named | |
29179 | something starting with __ and the normal name is an alias. */ | |
29180 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29181 | choke me | |
29182 | #else | |
e6cc62c6 VS |
29183 | char (*f) () = sched_get_priority_max; |
29184 | #endif | |
29185 | #ifdef __cplusplus | |
29186 | } | |
009fead0 VZ |
29187 | #endif |
29188 | ||
e6cc62c6 VS |
29189 | int |
29190 | main () | |
29191 | { | |
29192 | return f != sched_get_priority_max; | |
29193 | ; | |
29194 | return 0; | |
29195 | } | |
29196 | _ACEOF | |
29197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29199 | (eval $ac_link) 2>&5 | |
29200 | ac_status=$? | |
29201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29202 | (exit $ac_status); } && | |
29203 | { ac_try='test -s conftest$ac_exeext' | |
29204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29205 | (eval $ac_try) 2>&5 | |
29206 | ac_status=$? | |
29207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29208 | (exit $ac_status); }; }; then | |
29209 | ac_cv_func_sched_get_priority_max=yes | |
29210 | else | |
29211 | echo "$as_me: failed program was:" >&5 | |
29212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29213 | ||
29214 | ac_cv_func_sched_get_priority_max=no | |
29215 | fi | |
29216 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29217 | fi | |
29218 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29219 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29220 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29221 | HAVE_PRIOR_FUNCS=1 |
29222 | else | |
e6cc62c6 VS |
29223 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29224 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29225 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29227 | else |
e6cc62c6 | 29228 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29229 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29230 | cat >conftest.$ac_ext <<_ACEOF |
29231 | #line $LINENO "configure" | |
29232 | /* confdefs.h. */ | |
29233 | _ACEOF | |
29234 | cat confdefs.h >>conftest.$ac_ext | |
29235 | cat >>conftest.$ac_ext <<_ACEOF | |
29236 | /* end confdefs.h. */ | |
29237 | ||
422107f9 | 29238 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29239 | #ifdef __cplusplus |
29240 | extern "C" | |
29241 | #endif | |
422107f9 | 29242 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29243 | builtin and then its argument prototype would still apply. */ |
29244 | char sched_get_priority_max (); | |
29245 | int | |
29246 | main () | |
29247 | { | |
29248 | sched_get_priority_max (); | |
29249 | ; | |
29250 | return 0; | |
29251 | } | |
29252 | _ACEOF | |
29253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29255 | (eval $ac_link) 2>&5 | |
29256 | ac_status=$? | |
29257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29258 | (exit $ac_status); } && | |
29259 | { ac_try='test -s conftest$ac_exeext' | |
29260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29261 | (eval $ac_try) 2>&5 | |
29262 | ac_status=$? | |
29263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29264 | (exit $ac_status); }; }; then | |
29265 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29266 | else | |
29267 | echo "$as_me: failed program was:" >&5 | |
29268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29269 | ||
29270 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29271 | fi | |
29272 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29273 | LIBS=$ac_check_lib_save_LIBS | |
29274 | fi | |
29275 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29276 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29277 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29278 | |
7274f1c7 RL |
29279 | HAVE_PRIOR_FUNCS=1 |
29280 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29281 | |
4f14bcd8 | 29282 | fi |
463abc64 | 29283 | |
e6cc62c6 | 29284 | |
328a083c | 29285 | fi |
463abc64 | 29286 | |
e6cc62c6 | 29287 | |
7b4a847f | 29288 | fi |
579d8138 | 29289 | |
e6cc62c6 | 29290 | |
5c6fa7d2 | 29291 | fi |
52127426 | 29292 | |
8284b0c5 | 29293 | |
7274f1c7 | 29294 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29295 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29296 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29297 | _ACEOF |
463abc64 | 29298 | |
7274f1c7 | 29299 | else |
e6cc62c6 VS |
29300 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29301 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29302 | fi |
463abc64 | 29303 | |
e6cc62c6 VS |
29304 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29305 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29306 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29308 | else | |
29309 | cat >conftest.$ac_ext <<_ACEOF | |
29310 | #line $LINENO "configure" | |
29311 | /* confdefs.h. */ | |
29312 | _ACEOF | |
29313 | cat confdefs.h >>conftest.$ac_ext | |
29314 | cat >>conftest.$ac_ext <<_ACEOF | |
29315 | /* end confdefs.h. */ | |
009fead0 | 29316 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29317 | which can conflict with char pthread_cancel (); below. |
29318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29319 | <limits.h> exists even on freestanding compilers. */ | |
29320 | #ifdef __STDC__ | |
29321 | # include <limits.h> | |
29322 | #else | |
29323 | # include <assert.h> | |
29324 | #endif | |
422107f9 | 29325 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29326 | #ifdef __cplusplus |
29327 | extern "C" | |
29328 | { | |
29329 | #endif | |
422107f9 | 29330 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29331 | builtin and then its argument prototype would still apply. */ |
29332 | char pthread_cancel (); | |
009fead0 VZ |
29333 | /* The GNU C library defines this for functions which it implements |
29334 | to always fail with ENOSYS. Some functions are actually named | |
29335 | something starting with __ and the normal name is an alias. */ | |
29336 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29337 | choke me | |
29338 | #else | |
e6cc62c6 VS |
29339 | char (*f) () = pthread_cancel; |
29340 | #endif | |
29341 | #ifdef __cplusplus | |
29342 | } | |
009fead0 VZ |
29343 | #endif |
29344 | ||
e6cc62c6 VS |
29345 | int |
29346 | main () | |
29347 | { | |
29348 | return f != pthread_cancel; | |
29349 | ; | |
29350 | return 0; | |
29351 | } | |
29352 | _ACEOF | |
29353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29355 | (eval $ac_link) 2>&5 | |
29356 | ac_status=$? | |
29357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29358 | (exit $ac_status); } && | |
29359 | { ac_try='test -s conftest$ac_exeext' | |
29360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29361 | (eval $ac_try) 2>&5 | |
29362 | ac_status=$? | |
29363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29364 | (exit $ac_status); }; }; then | |
29365 | ac_cv_func_pthread_cancel=yes | |
29366 | else | |
29367 | echo "$as_me: failed program was:" >&5 | |
29368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29369 | ||
29370 | ac_cv_func_pthread_cancel=no | |
29371 | fi | |
29372 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29373 | fi | |
29374 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29375 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29376 | if test $ac_cv_func_pthread_cancel = yes; then | |
29377 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29378 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29379 | _ACEOF |
4f14bcd8 | 29380 | |
698dcdb6 | 29381 | else |
e6cc62c6 VS |
29382 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29383 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29384 | fi |
29385 | ||
5c6fa7d2 | 29386 | |
e6cc62c6 VS |
29387 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29388 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29389 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29391 | else |
e6cc62c6 VS |
29392 | |
29393 | cat >conftest.$ac_ext <<_ACEOF | |
29394 | #line $LINENO "configure" | |
29395 | /* confdefs.h. */ | |
29396 | _ACEOF | |
29397 | cat confdefs.h >>conftest.$ac_ext | |
29398 | cat >>conftest.$ac_ext <<_ACEOF | |
29399 | /* end confdefs.h. */ | |
4f14bcd8 | 29400 | #include <pthread.h> |
e6cc62c6 VS |
29401 | int |
29402 | main () | |
29403 | { | |
4f14bcd8 | 29404 | |
7274f1c7 RL |
29405 | pthread_cleanup_push(NULL, NULL); |
29406 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29407 | |
29408 | ; | |
29409 | return 0; | |
29410 | } | |
29411 | _ACEOF | |
29412 | rm -f conftest.$ac_objext | |
29413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29414 | (eval $ac_compile) 2>&5 | |
29415 | ac_status=$? | |
29416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29417 | (exit $ac_status); } && | |
29418 | { ac_try='test -s conftest.$ac_objext' | |
29419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29420 | (eval $ac_try) 2>&5 | |
29421 | ac_status=$? | |
29422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29423 | (exit $ac_status); }; }; then | |
29424 | ||
7274f1c7 | 29425 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29426 | |
4f14bcd8 | 29427 | else |
e6cc62c6 VS |
29428 | echo "$as_me: failed program was:" >&5 |
29429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29430 | ||
29431 | ||
7274f1c7 | 29432 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29433 | |
247f5006 | 29434 | fi |
e6cc62c6 | 29435 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29436 | |
e6cc62c6 VS |
29437 | fi |
29438 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29439 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29440 | |
7274f1c7 | 29441 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29442 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29443 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29444 | _ACEOF |
c7a2bf27 | 29445 | |
7274f1c7 | 29446 | fi |
4f14bcd8 | 29447 | |
e6cc62c6 VS |
29448 | |
29449 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29450 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29451 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29453 | else |
e6cc62c6 VS |
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. */ | |
4f14bcd8 | 29462 | #include <pthread.h> |
e6cc62c6 VS |
29463 | int |
29464 | main () | |
29465 | { | |
4f14bcd8 | 29466 | |
7274f1c7 RL |
29467 | pthread_mutexattr_t attr; |
29468 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29469 | |
29470 | ; | |
29471 | return 0; | |
29472 | } | |
29473 | _ACEOF | |
29474 | rm -f conftest.$ac_objext | |
29475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29476 | (eval $ac_compile) 2>&5 | |
29477 | ac_status=$? | |
29478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29479 | (exit $ac_status); } && | |
29480 | { ac_try='test -s conftest.$ac_objext' | |
29481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29482 | (eval $ac_try) 2>&5 | |
29483 | ac_status=$? | |
29484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29485 | (exit $ac_status); }; }; then | |
29486 | ||
7274f1c7 | 29487 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 29488 | |
3fed1840 | 29489 | else |
e6cc62c6 VS |
29490 | echo "$as_me: failed program was:" >&5 |
29491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29492 | ||
29493 | ||
7274f1c7 | 29494 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
29495 | |
29496 | ||
247f5006 | 29497 | fi |
e6cc62c6 | 29498 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29499 | |
e6cc62c6 VS |
29500 | fi |
29501 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29502 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 29503 | |
7274f1c7 | 29504 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 29505 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29506 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 29507 | _ACEOF |
4f14bcd8 | 29508 | |
7274f1c7 | 29509 | else |
e6cc62c6 VS |
29510 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
29511 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29512 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29514 | else | |
29515 | ||
29516 | cat >conftest.$ac_ext <<_ACEOF | |
29517 | #line $LINENO "configure" | |
29518 | /* confdefs.h. */ | |
29519 | _ACEOF | |
29520 | cat confdefs.h >>conftest.$ac_ext | |
29521 | cat >>conftest.$ac_ext <<_ACEOF | |
29522 | /* end confdefs.h. */ | |
4f14bcd8 | 29523 | #include <pthread.h> |
e6cc62c6 VS |
29524 | int |
29525 | main () | |
29526 | { | |
4f14bcd8 | 29527 | |
7274f1c7 | 29528 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
29529 | |
29530 | ; | |
29531 | return 0; | |
29532 | } | |
29533 | _ACEOF | |
29534 | rm -f conftest.$ac_objext | |
29535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29536 | (eval $ac_compile) 2>&5 | |
29537 | ac_status=$? | |
29538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29539 | (exit $ac_status); } && | |
29540 | { ac_try='test -s conftest.$ac_objext' | |
29541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29542 | (eval $ac_try) 2>&5 | |
29543 | ac_status=$? | |
29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29545 | (exit $ac_status); }; }; then | |
29546 | ||
7274f1c7 | 29547 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 29548 | |
698dcdb6 | 29549 | else |
e6cc62c6 VS |
29550 | echo "$as_me: failed program was:" >&5 |
29551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29552 | ||
29553 | ||
7274f1c7 | 29554 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
29555 | |
29556 | ||
247f5006 | 29557 | fi |
e6cc62c6 | 29558 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29559 | |
e6cc62c6 VS |
29560 | fi |
29561 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
29562 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 29563 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 29564 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29565 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 29566 | _ACEOF |
3fed1840 | 29567 | |
7274f1c7 | 29568 | else |
e6cc62c6 VS |
29569 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
29570 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
29571 | fi |
29572 | fi | |
7274f1c7 | 29573 | fi |
3fed1840 | 29574 | |
a0b9e27f MB |
29575 | else |
29576 | if test "$wxUSE_THREADS" = "yes" ; then | |
29577 | case "${host}" in | |
29578 | *-*-mingw32* ) | |
e6cc62c6 VS |
29579 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
29580 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
29581 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
29582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 29583 | else |
e6cc62c6 | 29584 | |
ca8e52b3 VZ |
29585 | CFLAGS_OLD="$CFLAGS" |
29586 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
29587 | cat >conftest.$ac_ext <<_ACEOF |
29588 | #line $LINENO "configure" | |
29589 | /* confdefs.h. */ | |
29590 | _ACEOF | |
29591 | cat confdefs.h >>conftest.$ac_ext | |
29592 | cat >>conftest.$ac_ext <<_ACEOF | |
29593 | /* end confdefs.h. */ | |
29594 | ||
29595 | int | |
29596 | main () | |
29597 | { | |
ca8e52b3 | 29598 | |
e6cc62c6 VS |
29599 | ; |
29600 | return 0; | |
29601 | } | |
29602 | _ACEOF | |
29603 | rm -f conftest.$ac_objext | |
29604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29605 | (eval $ac_compile) 2>&5 | |
29606 | ac_status=$? | |
29607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29608 | (exit $ac_status); } && | |
29609 | { ac_try='test -s conftest.$ac_objext' | |
29610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29611 | (eval $ac_try) 2>&5 | |
29612 | ac_status=$? | |
29613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29614 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
29615 | wx_cv_cflags_mthread=yes |
29616 | else | |
e6cc62c6 VS |
29617 | echo "$as_me: failed program was:" >&5 |
29618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29619 | ||
29620 | wx_cv_cflags_mthread=no | |
29621 | ||
ca8e52b3 | 29622 | fi |
e6cc62c6 VS |
29623 | rm -f conftest.$ac_objext conftest.$ac_ext |
29624 | ||
ca8e52b3 | 29625 | |
e6cc62c6 VS |
29626 | fi |
29627 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
29628 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
29629 | |
29630 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
29631 | CXXFLAGS="$CXXFLAGS -mthreads" | |
29632 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
29633 | LDFLAGS="$LDFLAGS -mthreads" | |
29634 | else | |
29635 | CFLAGS="$CFLAGS_OLD" | |
29636 | fi | |
a0b9e27f MB |
29637 | ;; |
29638 | esac | |
29639 | fi | |
4f14bcd8 GD |
29640 | fi |
29641 | ||
29642 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 29643 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29644 | #define wxUSE_THREADS 1 |
e6cc62c6 | 29645 | _ACEOF |
7b6058cd | 29646 | |
8284b0c5 | 29647 | |
4f14bcd8 | 29648 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 29649 | else |
4f14bcd8 | 29650 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
29651 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
29652 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
29653 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
29654 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
29655 | echo "$as_me:$LINENO: result: yes" >&5 |
29656 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 29657 | else |
e6cc62c6 VS |
29658 | echo "$as_me:$LINENO: result: no" >&5 |
29659 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
29660 | fi |
29661 | fi | |
29662 | fi | |
29663 | ||
29664 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 29665 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29666 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 29667 | _ACEOF |
4f14bcd8 GD |
29668 | |
29669 | WXGTK12=1 | |
10f2d63a | 29670 | fi |
4f14bcd8 GD |
29671 | |
29672 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 29673 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29674 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 29675 | _ACEOF |
4f14bcd8 | 29676 | |
10f2d63a | 29677 | fi |
698dcdb6 | 29678 | |
4f14bcd8 | 29679 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 29680 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29681 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 29682 | _ACEOF |
4f14bcd8 | 29683 | |
698dcdb6 | 29684 | fi |
10f2d63a | 29685 | |
4f14bcd8 GD |
29686 | WXDEBUG= |
29687 | ||
29688 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
29689 | WXDEBUG="-g" | |
29690 | wxUSE_OPTIMISE=no | |
698dcdb6 | 29691 | fi |
4f14bcd8 GD |
29692 | |
29693 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
29694 | wxUSE_DEBUG_INFO=yes | |
29695 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
29696 | fi |
29697 | ||
4f14bcd8 | 29698 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 29699 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29700 | #define WXDEBUG 1 |
e6cc62c6 | 29701 | _ACEOF |
4f14bcd8 GD |
29702 | |
29703 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 29704 | else |
4f14bcd8 GD |
29705 | if test "$wxUSE_GTK" = 1 ; then |
29706 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
29707 | fi | |
29708 | fi | |
29709 | ||
29710 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 29711 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29712 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 29713 | _ACEOF |
4f14bcd8 | 29714 | |
e6cc62c6 | 29715 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29716 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 29717 | _ACEOF |
4f14bcd8 | 29718 | |
e6cc62c6 | 29719 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29720 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 29721 | _ACEOF |
4f14bcd8 GD |
29722 | |
29723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
29724 | fi | |
29725 | ||
29726 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 29727 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
29728 | fi |
29729 | ||
29730 | PROFILE= | |
29731 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 29732 | PROFILE=" -pg" |
10f2d63a VZ |
29733 | fi |
29734 | ||
009fead0 VZ |
29735 | CODE_GEN_FLAGS= |
29736 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 29737 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
29738 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
29739 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 29740 | fi |
4f14bcd8 GD |
29741 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
29742 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
29743 | fi | |
29744 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
29745 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
29746 | fi | |
4f14bcd8 GD |
29747 | if test "$USE_WIN32" = 1 ; then |
29748 | # I'm not even really sure what this was ever added to solve, | |
29749 | # but someone added it for mingw native builds, so I guess | |
29750 | # they had a reason, right?? | |
29751 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
29752 | fi | |
1d1b75ac | 29753 | |
2b5f62a0 | 29754 | case "${host}" in |
1d1b75ac VZ |
29755 | powerpc*-*-aix* ) |
29756 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
29757 | ;; | |
2b5f62a0 VZ |
29758 | *-hppa* ) |
29759 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
29760 | ;; | |
1d1b75ac | 29761 | esac |
4f14bcd8 GD |
29762 | fi |
29763 | ||
af7b5345 | 29764 | OPTIMISE= |
4f14bcd8 | 29765 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
29766 | if test "$GCC" = yes ; then |
29767 | OPTIMISE="-O0" | |
29768 | fi | |
4f14bcd8 GD |
29769 | else |
29770 | if test "$GCC" = yes ; then | |
29771 | OPTIMISE="-O2" | |
af7b5345 VZ |
29772 | |
29773 | case "${host}" in | |
4f14bcd8 GD |
29774 | i586-*-*|i686-*-* ) |
29775 | OPTIMISE="${OPTIMISE} " | |
29776 | ;; | |
29777 | esac | |
29778 | else | |
29779 | OPTIMISE="-O" | |
29780 | fi | |
29781 | fi | |
29782 | ||
8d90d2f2 | 29783 | |
4f14bcd8 | 29784 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
e6cc62c6 | 29785 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29786 | #define WXWIN_COMPATIBILITY_2 1 |
e6cc62c6 | 29787 | _ACEOF |
4f14bcd8 | 29788 | |
8284b0c5 | 29789 | |
4f14bcd8 GD |
29790 | WXWIN_COMPATIBILITY_2_2="yes" |
29791 | fi | |
29792 | ||
65d8ef1e | 29793 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 29794 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29795 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 29796 | _ACEOF |
4f14bcd8 | 29797 | |
8d90d2f2 VZ |
29798 | |
29799 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
29800 | fi |
29801 | ||
65d8ef1e | 29802 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 29803 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 29804 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 29805 | _ACEOF |
65d8ef1e VS |
29806 | |
29807 | fi | |
29808 | ||
8284b0c5 | 29809 | |
10f2d63a | 29810 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 29811 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29812 | #define wxUSE_GUI 1 |
e6cc62c6 | 29813 | _ACEOF |
10f2d63a | 29814 | |
8284b0c5 | 29815 | |
10f2d63a | 29816 | else |
e6cc62c6 | 29817 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29818 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 29819 | _ACEOF |
10f2d63a VZ |
29820 | |
29821 | fi | |
29822 | ||
8284b0c5 | 29823 | |
10f2d63a | 29824 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 29825 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29826 | #define wxUSE_UNIX 1 |
e6cc62c6 | 29827 | _ACEOF |
10f2d63a VZ |
29828 | |
29829 | fi | |
29830 | ||
8284b0c5 | 29831 | |
df5168c4 MB |
29832 | if test "$wxUSE_STL" = "yes"; then |
29833 | cat >>confdefs.h <<\_ACEOF | |
29834 | #define wxUSE_STL 1 | |
29835 | _ACEOF | |
29836 | ||
29837 | fi | |
29838 | ||
10f2d63a | 29839 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 29840 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29841 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 29842 | _ACEOF |
10f2d63a VZ |
29843 | |
29844 | fi | |
29845 | ||
1e6feb95 | 29846 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 29847 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29848 | #define wxUSE_TIMER 1 |
e6cc62c6 | 29849 | _ACEOF |
1e6feb95 VZ |
29850 | |
29851 | fi | |
29852 | ||
10f2d63a | 29853 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 29854 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29855 | #define wxUSE_WAVE 1 |
e6cc62c6 | 29856 | _ACEOF |
10f2d63a VZ |
29857 | |
29858 | fi | |
29859 | ||
1e6feb95 | 29860 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 29861 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29862 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 29863 | _ACEOF |
1e6feb95 VZ |
29864 | |
29865 | fi | |
29866 | ||
29867 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 29868 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29869 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 29870 | _ACEOF |
1e6feb95 VZ |
29871 | |
29872 | fi | |
29873 | ||
29874 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 29875 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29876 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 29877 | _ACEOF |
1e6feb95 VZ |
29878 | |
29879 | fi | |
29880 | ||
10f2d63a | 29881 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 29882 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29883 | #define wxUSE_FILE 1 |
e6cc62c6 | 29884 | _ACEOF |
10f2d63a VZ |
29885 | |
29886 | fi | |
29887 | ||
1e6feb95 | 29888 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 29889 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29890 | #define wxUSE_FFILE 1 |
e6cc62c6 | 29891 | _ACEOF |
1e6feb95 VZ |
29892 | |
29893 | fi | |
29894 | ||
24528b0c | 29895 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 29896 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 29897 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 29898 | _ACEOF |
24528b0c VS |
29899 | |
29900 | fi | |
29901 | ||
10f2d63a | 29902 | if test "$wxUSE_FS_INET" = "yes"; then |
e6cc62c6 | 29903 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29904 | #define wxUSE_FS_INET 1 |
e6cc62c6 | 29905 | _ACEOF |
10f2d63a VZ |
29906 | |
29907 | fi | |
29908 | ||
29909 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
e6cc62c6 | 29910 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29911 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 29912 | _ACEOF |
10f2d63a VZ |
29913 | |
29914 | fi | |
29915 | ||
29916 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 29917 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29918 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 29919 | _ACEOF |
10f2d63a VZ |
29920 | |
29921 | fi | |
29922 | ||
eb4efbdc | 29923 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 29924 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 29925 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 29926 | _ACEOF |
eb4efbdc VZ |
29927 | |
29928 | fi | |
29929 | ||
4f3c5f06 | 29930 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 29931 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 29932 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 29933 | _ACEOF |
4f3c5f06 VZ |
29934 | |
29935 | fi | |
29936 | ||
10f2d63a | 29937 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 29938 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29939 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 29940 | _ACEOF |
10f2d63a VZ |
29941 | |
29942 | fi | |
29943 | ||
29944 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 29945 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29946 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 29947 | _ACEOF |
10f2d63a VZ |
29948 | |
29949 | fi | |
29950 | ||
a3a584a7 | 29951 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 29952 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 29953 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 29954 | _ACEOF |
a3a584a7 VZ |
29955 | |
29956 | fi | |
29957 | ||
10f2d63a | 29958 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 29959 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
29960 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
29961 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 29962 | else |
e6cc62c6 | 29963 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29964 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 29965 | _ACEOF |
10f2d63a VZ |
29966 | |
29967 | fi | |
29968 | fi | |
29969 | ||
29970 | if test "$wxUSE_CONFIG" = "yes" ; then | |
29971 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
29972 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
29973 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 29974 | else |
e6cc62c6 | 29975 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29976 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 29977 | _ACEOF |
10f2d63a VZ |
29978 | |
29979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
29980 | fi | |
29981 | fi | |
29982 | ||
29983 | if test "$wxUSE_INTL" = "yes" ; then | |
29984 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
29985 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
29986 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 29987 | else |
e6cc62c6 | 29988 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29989 | #define wxUSE_INTL 1 |
e6cc62c6 | 29990 | _ACEOF |
10f2d63a VZ |
29991 | |
29992 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 29993 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
29994 | fi |
29995 | fi | |
29996 | ||
29997 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 29998 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29999 | #define wxUSE_LOG 1 |
e6cc62c6 | 30000 | _ACEOF |
10f2d63a | 30001 | |
8284b0c5 | 30002 | |
d73be714 | 30003 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30004 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30005 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30006 | _ACEOF |
d73be714 VZ |
30007 | |
30008 | fi | |
30009 | ||
30010 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30011 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30012 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30013 | _ACEOF |
69d27ff7 MB |
30014 | |
30015 | fi | |
30016 | ||
30017 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30018 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30019 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30020 | _ACEOF |
d73be714 VZ |
30021 | |
30022 | fi | |
10f2d63a VZ |
30023 | fi |
30024 | ||
30025 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30026 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30027 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30028 | _ACEOF |
10f2d63a VZ |
30029 | |
30030 | fi | |
30031 | ||
e8f65ba6 | 30032 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30033 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30034 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30035 | _ACEOF |
e8f65ba6 RR |
30036 | |
30037 | fi | |
30038 | ||
10f2d63a | 30039 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30040 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30041 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30042 | _ACEOF |
10f2d63a | 30043 | |
70f7a477 | 30044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30045 | fi |
30046 | ||
30047 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30048 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30049 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30050 | _ACEOF |
10f2d63a VZ |
30051 | |
30052 | fi | |
30053 | ||
5c6fa7d2 | 30054 | |
8284b0c5 | 30055 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30056 | |
30057 | for ac_func in strptime | |
83307f33 | 30058 | do |
e6cc62c6 VS |
30059 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30060 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30061 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30062 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30064 | else | |
30065 | cat >conftest.$ac_ext <<_ACEOF | |
30066 | #line $LINENO "configure" | |
30067 | /* confdefs.h. */ | |
30068 | _ACEOF | |
30069 | cat confdefs.h >>conftest.$ac_ext | |
30070 | cat >>conftest.$ac_ext <<_ACEOF | |
30071 | /* end confdefs.h. */ | |
83307f33 | 30072 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30073 | which can conflict with char $ac_func (); below. |
30074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30075 | <limits.h> exists even on freestanding compilers. */ | |
30076 | #ifdef __STDC__ | |
30077 | # include <limits.h> | |
30078 | #else | |
30079 | # include <assert.h> | |
30080 | #endif | |
83307f33 | 30081 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30082 | #ifdef __cplusplus |
30083 | extern "C" | |
30084 | { | |
30085 | #endif | |
83307f33 | 30086 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30087 | builtin and then its argument prototype would still apply. */ |
30088 | char $ac_func (); | |
83307f33 VZ |
30089 | /* The GNU C library defines this for functions which it implements |
30090 | to always fail with ENOSYS. Some functions are actually named | |
30091 | something starting with __ and the normal name is an alias. */ | |
30092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30093 | choke me | |
30094 | #else | |
e6cc62c6 VS |
30095 | char (*f) () = $ac_func; |
30096 | #endif | |
30097 | #ifdef __cplusplus | |
30098 | } | |
83307f33 VZ |
30099 | #endif |
30100 | ||
e6cc62c6 VS |
30101 | int |
30102 | main () | |
30103 | { | |
30104 | return f != $ac_func; | |
30105 | ; | |
30106 | return 0; | |
30107 | } | |
30108 | _ACEOF | |
30109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30111 | (eval $ac_link) 2>&5 | |
30112 | ac_status=$? | |
30113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30114 | (exit $ac_status); } && | |
30115 | { ac_try='test -s conftest$ac_exeext' | |
30116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30117 | (eval $ac_try) 2>&5 | |
30118 | ac_status=$? | |
30119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30120 | (exit $ac_status); }; }; then | |
30121 | eval "$as_ac_var=yes" | |
30122 | else | |
30123 | echo "$as_me: failed program was:" >&5 | |
30124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30125 | ||
30126 | eval "$as_ac_var=no" | |
30127 | fi | |
30128 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30129 | fi | |
30130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30131 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30132 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30133 | cat >>confdefs.h <<_ACEOF | |
30134 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30135 | _ACEOF | |
83307f33 | 30136 | |
83307f33 VZ |
30137 | fi |
30138 | done | |
30139 | ||
5c6fa7d2 | 30140 | |
e6cc62c6 VS |
30141 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30142 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30143 | if test "${wx_cv_var_timezone+set}" = set; then | |
30144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30145 | else |
e6cc62c6 VS |
30146 | |
30147 | cat >conftest.$ac_ext <<_ACEOF | |
30148 | #line $LINENO "configure" | |
30149 | /* confdefs.h. */ | |
30150 | _ACEOF | |
30151 | cat confdefs.h >>conftest.$ac_ext | |
30152 | cat >>conftest.$ac_ext <<_ACEOF | |
30153 | /* end confdefs.h. */ | |
360d6699 | 30154 | |
b4085ce6 | 30155 | #include <time.h> |
e6cc62c6 VS |
30156 | |
30157 | int | |
30158 | main () | |
30159 | { | |
360d6699 VZ |
30160 | |
30161 | int tz; | |
4f11a343 | 30162 | tz = timezone; |
e6cc62c6 VS |
30163 | |
30164 | ; | |
30165 | return 0; | |
30166 | } | |
30167 | _ACEOF | |
30168 | rm -f conftest.$ac_objext | |
30169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30170 | (eval $ac_compile) 2>&5 | |
30171 | ac_status=$? | |
30172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30173 | (exit $ac_status); } && | |
30174 | { ac_try='test -s conftest.$ac_objext' | |
30175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30176 | (eval $ac_try) 2>&5 | |
30177 | ac_status=$? | |
30178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30179 | (exit $ac_status); }; }; then | |
30180 | ||
4f11a343 | 30181 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30182 | |
360d6699 | 30183 | else |
e6cc62c6 VS |
30184 | echo "$as_me: failed program was:" >&5 |
30185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30186 | ||
30187 | ||
30188 | cat >conftest.$ac_ext <<_ACEOF | |
30189 | #line $LINENO "configure" | |
30190 | /* confdefs.h. */ | |
30191 | _ACEOF | |
30192 | cat confdefs.h >>conftest.$ac_ext | |
30193 | cat >>conftest.$ac_ext <<_ACEOF | |
30194 | /* end confdefs.h. */ | |
360d6699 | 30195 | |
b4085ce6 | 30196 | #include <time.h> |
e6cc62c6 VS |
30197 | |
30198 | int | |
30199 | main () | |
30200 | { | |
360d6699 VZ |
30201 | |
30202 | int tz; | |
30203 | tz = _timezone; | |
e6cc62c6 VS |
30204 | |
30205 | ; | |
30206 | return 0; | |
30207 | } | |
30208 | _ACEOF | |
30209 | rm -f conftest.$ac_objext | |
30210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30211 | (eval $ac_compile) 2>&5 | |
30212 | ac_status=$? | |
30213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30214 | (exit $ac_status); } && | |
30215 | { ac_try='test -s conftest.$ac_objext' | |
30216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30217 | (eval $ac_try) 2>&5 | |
30218 | ac_status=$? | |
30219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30220 | (exit $ac_status); }; }; then | |
30221 | ||
360d6699 | 30222 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30223 | |
5357c8e8 | 30224 | else |
e6cc62c6 VS |
30225 | echo "$as_me: failed program was:" >&5 |
30226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30227 | ||
30228 | ||
30229 | cat >conftest.$ac_ext <<_ACEOF | |
30230 | #line $LINENO "configure" | |
30231 | /* confdefs.h. */ | |
30232 | _ACEOF | |
30233 | cat confdefs.h >>conftest.$ac_ext | |
30234 | cat >>conftest.$ac_ext <<_ACEOF | |
30235 | /* end confdefs.h. */ | |
5357c8e8 | 30236 | |
b4085ce6 | 30237 | #include <time.h> |
e6cc62c6 VS |
30238 | |
30239 | int | |
30240 | main () | |
30241 | { | |
5357c8e8 VZ |
30242 | |
30243 | int tz; | |
4f11a343 | 30244 | tz = __timezone; |
e6cc62c6 VS |
30245 | |
30246 | ; | |
30247 | return 0; | |
30248 | } | |
30249 | _ACEOF | |
30250 | rm -f conftest.$ac_objext | |
30251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30252 | (eval $ac_compile) 2>&5 | |
30253 | ac_status=$? | |
30254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30255 | (exit $ac_status); } && | |
30256 | { ac_try='test -s conftest.$ac_objext' | |
30257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30258 | (eval $ac_try) 2>&5 | |
30259 | ac_status=$? | |
30260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30261 | (exit $ac_status); }; }; then | |
30262 | ||
4f11a343 | 30263 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30264 | |
360d6699 | 30265 | else |
e6cc62c6 VS |
30266 | echo "$as_me: failed program was:" >&5 |
30267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30268 | ||
30269 | ||
f9bc1684 | 30270 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30271 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30272 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30273 | fi |
e6cc62c6 VS |
30274 | |
30275 | ||
7b4a847f | 30276 | fi |
e6cc62c6 VS |
30277 | rm -f conftest.$ac_objext conftest.$ac_ext |
30278 | ||
30279 | ||
5c6fa7d2 | 30280 | fi |
e6cc62c6 VS |
30281 | rm -f conftest.$ac_objext conftest.$ac_ext |
30282 | ||
30283 | ||
247f5006 | 30284 | fi |
e6cc62c6 | 30285 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30286 | |
e6cc62c6 VS |
30287 | |
30288 | fi | |
30289 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30290 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30291 | |
f9bc1684 | 30292 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30293 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30294 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30295 | _ACEOF |
360d6699 | 30296 | |
f9bc1684 | 30297 | fi |
698dcdb6 | 30298 | |
e6cc62c6 VS |
30299 | |
30300 | for ac_func in localtime | |
afc31813 | 30301 | do |
e6cc62c6 VS |
30302 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30303 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30304 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30305 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30307 | else | |
30308 | cat >conftest.$ac_ext <<_ACEOF | |
30309 | #line $LINENO "configure" | |
30310 | /* confdefs.h. */ | |
30311 | _ACEOF | |
30312 | cat confdefs.h >>conftest.$ac_ext | |
30313 | cat >>conftest.$ac_ext <<_ACEOF | |
30314 | /* end confdefs.h. */ | |
afc31813 | 30315 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30316 | which can conflict with char $ac_func (); below. |
30317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30318 | <limits.h> exists even on freestanding compilers. */ | |
30319 | #ifdef __STDC__ | |
30320 | # include <limits.h> | |
30321 | #else | |
30322 | # include <assert.h> | |
30323 | #endif | |
afc31813 | 30324 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30325 | #ifdef __cplusplus |
30326 | extern "C" | |
30327 | { | |
30328 | #endif | |
afc31813 | 30329 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30330 | builtin and then its argument prototype would still apply. */ |
30331 | char $ac_func (); | |
afc31813 VZ |
30332 | /* The GNU C library defines this for functions which it implements |
30333 | to always fail with ENOSYS. Some functions are actually named | |
30334 | something starting with __ and the normal name is an alias. */ | |
30335 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30336 | choke me | |
30337 | #else | |
e6cc62c6 VS |
30338 | char (*f) () = $ac_func; |
30339 | #endif | |
30340 | #ifdef __cplusplus | |
30341 | } | |
afc31813 VZ |
30342 | #endif |
30343 | ||
e6cc62c6 VS |
30344 | int |
30345 | main () | |
30346 | { | |
30347 | return f != $ac_func; | |
30348 | ; | |
30349 | return 0; | |
30350 | } | |
30351 | _ACEOF | |
30352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30354 | (eval $ac_link) 2>&5 | |
30355 | ac_status=$? | |
30356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30357 | (exit $ac_status); } && | |
30358 | { ac_try='test -s conftest$ac_exeext' | |
30359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30360 | (eval $ac_try) 2>&5 | |
30361 | ac_status=$? | |
30362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30363 | (exit $ac_status); }; }; then | |
30364 | eval "$as_ac_var=yes" | |
30365 | else | |
30366 | echo "$as_me: failed program was:" >&5 | |
30367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30368 | ||
30369 | eval "$as_ac_var=no" | |
30370 | fi | |
30371 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30372 | fi | |
30373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30374 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30375 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30376 | cat >>confdefs.h <<_ACEOF | |
30377 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30378 | _ACEOF | |
afc31813 | 30379 | |
afc31813 VZ |
30380 | fi |
30381 | done | |
30382 | ||
5c6fa7d2 | 30383 | |
8284b0c5 | 30384 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30385 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30386 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30387 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30389 | else |
e6cc62c6 VS |
30390 | |
30391 | cat >conftest.$ac_ext <<_ACEOF | |
30392 | #line $LINENO "configure" | |
30393 | /* confdefs.h. */ | |
30394 | _ACEOF | |
30395 | cat confdefs.h >>conftest.$ac_ext | |
30396 | cat >>conftest.$ac_ext <<_ACEOF | |
30397 | /* end confdefs.h. */ | |
0470b1e6 | 30398 | |
b4085ce6 | 30399 | #include <time.h> |
e6cc62c6 VS |
30400 | |
30401 | int | |
30402 | main () | |
30403 | { | |
0470b1e6 VZ |
30404 | |
30405 | struct tm tm; | |
30406 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30407 | |
30408 | ; | |
30409 | return 0; | |
30410 | } | |
30411 | _ACEOF | |
30412 | rm -f conftest.$ac_objext | |
30413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30414 | (eval $ac_compile) 2>&5 | |
30415 | ac_status=$? | |
30416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30417 | (exit $ac_status); } && | |
30418 | { ac_try='test -s conftest.$ac_objext' | |
30419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30420 | (eval $ac_try) 2>&5 | |
30421 | ac_status=$? | |
30422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30423 | (exit $ac_status); }; }; then | |
30424 | ||
f03a98d8 | 30425 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30426 | |
0470b1e6 | 30427 | else |
e6cc62c6 VS |
30428 | echo "$as_me: failed program was:" >&5 |
30429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30430 | ||
30431 | wx_cv_struct_tm_has_gmtoff=no | |
30432 | ||
247f5006 | 30433 | fi |
e6cc62c6 | 30434 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30435 | |
e6cc62c6 VS |
30436 | fi |
30437 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30438 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30439 | fi |
30440 | ||
30441 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30442 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30443 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30444 | _ACEOF |
0470b1e6 | 30445 | |
3fcdd07b VZ |
30446 | fi |
30447 | ||
e6cc62c6 VS |
30448 | |
30449 | ||
30450 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30451 | do |
e6cc62c6 VS |
30452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30453 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30455 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30457 | else | |
30458 | cat >conftest.$ac_ext <<_ACEOF | |
30459 | #line $LINENO "configure" | |
30460 | /* confdefs.h. */ | |
30461 | _ACEOF | |
30462 | cat confdefs.h >>conftest.$ac_ext | |
30463 | cat >>conftest.$ac_ext <<_ACEOF | |
30464 | /* end confdefs.h. */ | |
3fcdd07b | 30465 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30466 | which can conflict with char $ac_func (); below. |
30467 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30468 | <limits.h> exists even on freestanding compilers. */ | |
30469 | #ifdef __STDC__ | |
30470 | # include <limits.h> | |
30471 | #else | |
30472 | # include <assert.h> | |
30473 | #endif | |
3fcdd07b | 30474 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30475 | #ifdef __cplusplus |
30476 | extern "C" | |
30477 | { | |
30478 | #endif | |
3fcdd07b | 30479 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30480 | builtin and then its argument prototype would still apply. */ |
30481 | char $ac_func (); | |
3fcdd07b VZ |
30482 | /* The GNU C library defines this for functions which it implements |
30483 | to always fail with ENOSYS. Some functions are actually named | |
30484 | something starting with __ and the normal name is an alias. */ | |
30485 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30486 | choke me | |
30487 | #else | |
e6cc62c6 VS |
30488 | char (*f) () = $ac_func; |
30489 | #endif | |
30490 | #ifdef __cplusplus | |
30491 | } | |
3fcdd07b VZ |
30492 | #endif |
30493 | ||
e6cc62c6 VS |
30494 | int |
30495 | main () | |
30496 | { | |
30497 | return f != $ac_func; | |
30498 | ; | |
30499 | return 0; | |
30500 | } | |
30501 | _ACEOF | |
30502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30504 | (eval $ac_link) 2>&5 | |
30505 | ac_status=$? | |
30506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30507 | (exit $ac_status); } && | |
30508 | { ac_try='test -s conftest$ac_exeext' | |
30509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30510 | (eval $ac_try) 2>&5 | |
30511 | ac_status=$? | |
30512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30513 | (exit $ac_status); }; }; then | |
30514 | eval "$as_ac_var=yes" | |
30515 | else | |
30516 | echo "$as_me: failed program was:" >&5 | |
30517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30518 | ||
30519 | eval "$as_ac_var=no" | |
30520 | fi | |
30521 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30522 | fi | |
30523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30524 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30525 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30526 | cat >>confdefs.h <<_ACEOF | |
30527 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30528 | _ACEOF | |
3fcdd07b | 30529 | break |
3fcdd07b VZ |
30530 | fi |
30531 | done | |
30532 | ||
698dcdb6 | 30533 | |
8284b0c5 | 30534 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
30535 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
30536 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30537 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30539 | else | |
30540 | ||
30541 | ||
30542 | ||
30543 | ac_ext=cc | |
5c6fa7d2 | 30544 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30545 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30546 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30547 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 30548 | |
8284b0c5 | 30549 | |
e6cc62c6 VS |
30550 | cat >conftest.$ac_ext <<_ACEOF |
30551 | #line $LINENO "configure" | |
30552 | /* confdefs.h. */ | |
30553 | _ACEOF | |
30554 | cat confdefs.h >>conftest.$ac_ext | |
30555 | cat >>conftest.$ac_ext <<_ACEOF | |
30556 | /* end confdefs.h. */ | |
afc31813 VZ |
30557 | |
30558 | #include <sys/time.h> | |
30559 | #include <unistd.h> | |
e6cc62c6 VS |
30560 | |
30561 | int | |
30562 | main () | |
30563 | { | |
afc31813 VZ |
30564 | |
30565 | struct timeval tv; | |
776862b4 | 30566 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
30567 | |
30568 | ; | |
30569 | return 0; | |
30570 | } | |
30571 | _ACEOF | |
30572 | rm -f conftest.$ac_objext | |
30573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30574 | (eval $ac_compile) 2>&5 | |
30575 | ac_status=$? | |
30576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30577 | (exit $ac_status); } && | |
30578 | { ac_try='test -s conftest.$ac_objext' | |
30579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30580 | (eval $ac_try) 2>&5 | |
30581 | ac_status=$? | |
30582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30583 | (exit $ac_status); }; }; then | |
afc31813 | 30584 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 30585 | else |
e6cc62c6 VS |
30586 | echo "$as_me: failed program was:" >&5 |
30587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30588 | ||
30589 | cat >conftest.$ac_ext <<_ACEOF | |
30590 | #line $LINENO "configure" | |
30591 | /* confdefs.h. */ | |
30592 | _ACEOF | |
30593 | cat confdefs.h >>conftest.$ac_ext | |
30594 | cat >>conftest.$ac_ext <<_ACEOF | |
30595 | /* end confdefs.h. */ | |
afc31813 VZ |
30596 | |
30597 | #include <sys/time.h> | |
30598 | #include <unistd.h> | |
e6cc62c6 VS |
30599 | |
30600 | int | |
30601 | main () | |
30602 | { | |
afc31813 VZ |
30603 | |
30604 | struct timeval tv; | |
30605 | gettimeofday(&tv); | |
e6cc62c6 VS |
30606 | |
30607 | ; | |
30608 | return 0; | |
30609 | } | |
30610 | _ACEOF | |
30611 | rm -f conftest.$ac_objext | |
30612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30613 | (eval $ac_compile) 2>&5 | |
30614 | ac_status=$? | |
30615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30616 | (exit $ac_status); } && | |
30617 | { ac_try='test -s conftest.$ac_objext' | |
30618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30619 | (eval $ac_try) 2>&5 | |
30620 | ac_status=$? | |
30621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30622 | (exit $ac_status); }; }; then | |
afc31813 | 30623 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 30624 | else |
e6cc62c6 VS |
30625 | echo "$as_me: failed program was:" >&5 |
30626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30627 | ||
30628 | ||
30629 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
30630 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 30631 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
30632 | |
30633 | ||
10f2d63a | 30634 | fi |
e6cc62c6 VS |
30635 | rm -f conftest.$ac_objext conftest.$ac_ext |
30636 | ||
10f2d63a | 30637 | fi |
e6cc62c6 | 30638 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 30639 | ac_ext=c |
10f2d63a | 30640 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 30644 | |
a0b9e27f | 30645 | |
e6cc62c6 VS |
30646 | fi |
30647 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
30648 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 30649 | |
afc31813 | 30650 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 30651 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30652 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 30653 | _ACEOF |
afc31813 VZ |
30654 | |
30655 | fi | |
30656 | fi | |
30657 | ||
afc31813 VZ |
30658 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
30659 | fi | |
30660 | ||
8284b0c5 | 30661 | |
52127426 | 30662 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 30663 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
30664 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
30665 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
30666 | wxUSE_SOCKETS="no" |
30667 | fi | |
0feee163 | 30668 | fi |
b089607b | 30669 | |
0feee163 VZ |
30670 | if test "$wxUSE_SOCKETS" = "yes"; then |
30671 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30672 | echo "$as_me:$LINENO: checking for socket" >&5 |
30673 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
30674 | if test "${ac_cv_func_socket+set}" = set; then | |
30675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30676 | else | |
30677 | cat >conftest.$ac_ext <<_ACEOF | |
30678 | #line $LINENO "configure" | |
30679 | /* confdefs.h. */ | |
30680 | _ACEOF | |
30681 | cat confdefs.h >>conftest.$ac_ext | |
30682 | cat >>conftest.$ac_ext <<_ACEOF | |
30683 | /* end confdefs.h. */ | |
c63c7106 | 30684 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30685 | which can conflict with char socket (); below. |
30686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30687 | <limits.h> exists even on freestanding compilers. */ | |
30688 | #ifdef __STDC__ | |
30689 | # include <limits.h> | |
30690 | #else | |
30691 | # include <assert.h> | |
30692 | #endif | |
c63c7106 | 30693 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30694 | #ifdef __cplusplus |
30695 | extern "C" | |
30696 | { | |
30697 | #endif | |
c63c7106 | 30698 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30699 | builtin and then its argument prototype would still apply. */ |
30700 | char socket (); | |
c63c7106 VZ |
30701 | /* The GNU C library defines this for functions which it implements |
30702 | to always fail with ENOSYS. Some functions are actually named | |
30703 | something starting with __ and the normal name is an alias. */ | |
30704 | #if defined (__stub_socket) || defined (__stub___socket) | |
30705 | choke me | |
30706 | #else | |
e6cc62c6 VS |
30707 | char (*f) () = socket; |
30708 | #endif | |
30709 | #ifdef __cplusplus | |
30710 | } | |
c63c7106 VZ |
30711 | #endif |
30712 | ||
e6cc62c6 VS |
30713 | int |
30714 | main () | |
30715 | { | |
30716 | return f != socket; | |
30717 | ; | |
30718 | return 0; | |
30719 | } | |
30720 | _ACEOF | |
30721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30723 | (eval $ac_link) 2>&5 | |
30724 | ac_status=$? | |
30725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30726 | (exit $ac_status); } && | |
30727 | { ac_try='test -s conftest$ac_exeext' | |
30728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30729 | (eval $ac_try) 2>&5 | |
30730 | ac_status=$? | |
30731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30732 | (exit $ac_status); }; }; then | |
30733 | ac_cv_func_socket=yes | |
30734 | else | |
30735 | echo "$as_me: failed program was:" >&5 | |
30736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30737 | ||
30738 | ac_cv_func_socket=no | |
30739 | fi | |
30740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30741 | fi | |
30742 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
30743 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
30744 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
30745 | : |
30746 | else | |
e6cc62c6 VS |
30747 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
30748 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
30749 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
30750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 30751 | else |
e6cc62c6 | 30752 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 30753 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
30754 | cat >conftest.$ac_ext <<_ACEOF |
30755 | #line $LINENO "configure" | |
30756 | /* confdefs.h. */ | |
30757 | _ACEOF | |
30758 | cat confdefs.h >>conftest.$ac_ext | |
30759 | cat >>conftest.$ac_ext <<_ACEOF | |
30760 | /* end confdefs.h. */ | |
30761 | ||
c63c7106 | 30762 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30763 | #ifdef __cplusplus |
30764 | extern "C" | |
30765 | #endif | |
c63c7106 | 30766 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30767 | builtin and then its argument prototype would still apply. */ |
30768 | char socket (); | |
30769 | int | |
30770 | main () | |
30771 | { | |
30772 | socket (); | |
30773 | ; | |
30774 | return 0; | |
30775 | } | |
30776 | _ACEOF | |
30777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30779 | (eval $ac_link) 2>&5 | |
30780 | ac_status=$? | |
30781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30782 | (exit $ac_status); } && | |
30783 | { ac_try='test -s conftest$ac_exeext' | |
30784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30785 | (eval $ac_try) 2>&5 | |
30786 | ac_status=$? | |
30787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30788 | (exit $ac_status); }; }; then | |
30789 | ac_cv_lib_socket_socket=yes | |
30790 | else | |
30791 | echo "$as_me: failed program was:" >&5 | |
30792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30793 | ||
30794 | ac_cv_lib_socket_socket=no | |
30795 | fi | |
30796 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30797 | LIBS=$ac_check_lib_save_LIBS | |
30798 | fi | |
30799 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
30800 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
30801 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
30802 | if test "$INET_LINK" != " -lsocket"; then |
30803 | INET_LINK="$INET_LINK -lsocket" | |
30804 | fi | |
c63c7106 | 30805 | else |
afc31813 | 30806 | |
e6cc62c6 VS |
30807 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
30808 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 30809 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
30810 | |
30811 | ||
6232543b | 30812 | fi |
b089607b | 30813 | |
e6cc62c6 | 30814 | |
1e487827 | 30815 | fi |
afc31813 | 30816 | |
3a922bb4 | 30817 | fi |
0feee163 | 30818 | fi |
51a9faba | 30819 | |
0feee163 VZ |
30820 | if test "$wxUSE_SOCKETS" = "yes" ; then |
30821 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30822 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
30823 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
30824 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
30825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30826 | else |
e6cc62c6 VS |
30827 | |
30828 | cat >conftest.$ac_ext <<_ACEOF | |
30829 | #line $LINENO "configure" | |
30830 | /* confdefs.h. */ | |
30831 | _ACEOF | |
30832 | cat confdefs.h >>conftest.$ac_ext | |
30833 | cat >>conftest.$ac_ext <<_ACEOF | |
30834 | /* end confdefs.h. */ | |
51a9faba | 30835 | |
3a922bb4 RL |
30836 | #include <sys/types.h> |
30837 | #include <sys/socket.h> | |
e6cc62c6 VS |
30838 | |
30839 | int | |
30840 | main () | |
30841 | { | |
51a9faba | 30842 | |
3a922bb4 RL |
30843 | socklen_t len; |
30844 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30845 | |
30846 | ; | |
30847 | return 0; | |
30848 | } | |
30849 | _ACEOF | |
30850 | rm -f conftest.$ac_objext | |
30851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30852 | (eval $ac_compile) 2>&5 | |
30853 | ac_status=$? | |
30854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30855 | (exit $ac_status); } && | |
30856 | { ac_try='test -s conftest.$ac_objext' | |
30857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30858 | (eval $ac_try) 2>&5 | |
30859 | ac_status=$? | |
30860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30861 | (exit $ac_status); }; }; then | |
51a9faba | 30862 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 30863 | else |
e6cc62c6 VS |
30864 | echo "$as_me: failed program was:" >&5 |
30865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30866 | ||
30867 | ||
9711d31e GD |
30868 | CFLAGS_OLD="$CFLAGS" |
30869 | if test "$GCC" = yes ; then | |
30870 | CFLAGS="$CFLAGS -Werror" | |
30871 | fi | |
30872 | ||
e6cc62c6 VS |
30873 | cat >conftest.$ac_ext <<_ACEOF |
30874 | #line $LINENO "configure" | |
30875 | /* confdefs.h. */ | |
30876 | _ACEOF | |
30877 | cat confdefs.h >>conftest.$ac_ext | |
30878 | cat >>conftest.$ac_ext <<_ACEOF | |
30879 | /* end confdefs.h. */ | |
51a9faba | 30880 | |
9711d31e GD |
30881 | #include <sys/types.h> |
30882 | #include <sys/socket.h> | |
e6cc62c6 VS |
30883 | |
30884 | int | |
30885 | main () | |
30886 | { | |
51a9faba | 30887 | |
9711d31e GD |
30888 | size_t len; |
30889 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30890 | |
30891 | ; | |
30892 | return 0; | |
30893 | } | |
30894 | _ACEOF | |
30895 | rm -f conftest.$ac_objext | |
30896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30897 | (eval $ac_compile) 2>&5 | |
30898 | ac_status=$? | |
30899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30900 | (exit $ac_status); } && | |
30901 | { ac_try='test -s conftest.$ac_objext' | |
30902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30903 | (eval $ac_try) 2>&5 | |
30904 | ac_status=$? | |
30905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30906 | (exit $ac_status); }; }; then | |
51a9faba | 30907 | wx_cv_type_getsockname3=size_t |
afc31813 | 30908 | else |
e6cc62c6 VS |
30909 | echo "$as_me: failed program was:" >&5 |
30910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30911 | ||
30912 | cat >conftest.$ac_ext <<_ACEOF | |
30913 | #line $LINENO "configure" | |
30914 | /* confdefs.h. */ | |
30915 | _ACEOF | |
30916 | cat confdefs.h >>conftest.$ac_ext | |
30917 | cat >>conftest.$ac_ext <<_ACEOF | |
30918 | /* end confdefs.h. */ | |
51a9faba | 30919 | |
9711d31e GD |
30920 | #include <sys/types.h> |
30921 | #include <sys/socket.h> | |
e6cc62c6 VS |
30922 | |
30923 | int | |
30924 | main () | |
30925 | { | |
51a9faba | 30926 | |
9711d31e GD |
30927 | int len; |
30928 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30929 | |
30930 | ; | |
30931 | return 0; | |
30932 | } | |
30933 | _ACEOF | |
30934 | rm -f conftest.$ac_objext | |
30935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30936 | (eval $ac_compile) 2>&5 | |
30937 | ac_status=$? | |
30938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30939 | (exit $ac_status); } && | |
30940 | { ac_try='test -s conftest.$ac_objext' | |
30941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30942 | (eval $ac_try) 2>&5 | |
30943 | ac_status=$? | |
30944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30945 | (exit $ac_status); }; }; then | |
51a9faba | 30946 | wx_cv_type_getsockname3=int |
afc31813 | 30947 | else |
e6cc62c6 VS |
30948 | echo "$as_me: failed program was:" >&5 |
30949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30950 | ||
30951 | wx_cv_type_getsockname3=unknown | |
30952 | ||
afc31813 | 30953 | fi |
e6cc62c6 VS |
30954 | rm -f conftest.$ac_objext conftest.$ac_ext |
30955 | ||
afc31813 | 30956 | fi |
e6cc62c6 | 30957 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
30958 | |
30959 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
30960 | |
30961 | ||
247f5006 | 30962 | fi |
e6cc62c6 | 30963 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30964 | |
e6cc62c6 VS |
30965 | fi |
30966 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
30967 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 30968 | |
3a922bb4 RL |
30969 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
30970 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
30971 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
30972 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 30973 | else |
e6cc62c6 | 30974 | cat >>confdefs.h <<_ACEOF |
51a9faba | 30975 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 30976 | _ACEOF |
51a9faba | 30977 | |
3a922bb4 | 30978 | fi |
51a9faba VZ |
30979 | fi |
30980 | fi | |
afc31813 | 30981 | |
51a9faba | 30982 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 30983 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30984 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 30985 | _ACEOF |
afc31813 | 30986 | |
70f7a477 | 30987 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
30988 | fi |
30989 | ||
8284b0c5 | 30990 | |
dc3d889d VZ |
30991 | if test "$wxUSE_GUI" = "yes"; then |
30992 | ||
ac0c4cc3 | 30993 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
30994 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
30995 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
30996 | wxUSE_JOYSTICK=no |
30997 | fi | |
30998 | if test "$TOOLKIT" = "MOTIF"; then | |
e6cc62c6 VS |
30999 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5 |
31000 | echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;} | |
156b2523 | 31001 | wxUSE_JOYSTICK=no |
f79bd02d JS |
31002 | fi |
31003 | if test "$TOOLKIT" = "X11"; then | |
e6cc62c6 VS |
31004 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5 |
31005 | echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;} | |
f79bd02d | 31006 | wxUSE_JOYSTICK=no |
156b2523 GD |
31007 | fi |
31008 | ||
3a922bb4 RL |
31009 | if test "$TOOLKIT" != "MSW"; then |
31010 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
e6cc62c6 VS |
31011 | |
31012 | for ac_header in linux/joystick.h | |
10f2d63a | 31013 | do |
e6cc62c6 VS |
31014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31020 | fi | |
31021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31023 | else | |
31024 | # Is the header compilable? | |
31025 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31027 | cat >conftest.$ac_ext <<_ACEOF | |
31028 | #line $LINENO "configure" | |
31029 | /* confdefs.h. */ | |
31030 | _ACEOF | |
31031 | cat confdefs.h >>conftest.$ac_ext | |
31032 | cat >>conftest.$ac_ext <<_ACEOF | |
31033 | /* end confdefs.h. */ | |
31034 | $ac_includes_default | |
31035 | #include <$ac_header> | |
31036 | _ACEOF | |
31037 | rm -f conftest.$ac_objext | |
31038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31039 | (eval $ac_compile) 2>&5 | |
31040 | ac_status=$? | |
31041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31042 | (exit $ac_status); } && | |
31043 | { ac_try='test -s conftest.$ac_objext' | |
31044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31045 | (eval $ac_try) 2>&5 | |
31046 | ac_status=$? | |
31047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31048 | (exit $ac_status); }; }; then | |
31049 | ac_header_compiler=yes | |
31050 | else | |
31051 | echo "$as_me: failed program was:" >&5 | |
31052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31053 | ||
31054 | ac_header_compiler=no | |
31055 | fi | |
31056 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31057 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31058 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31059 | ||
31060 | # Is the header present? | |
31061 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31062 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31063 | cat >conftest.$ac_ext <<_ACEOF | |
31064 | #line $LINENO "configure" | |
31065 | /* confdefs.h. */ | |
31066 | _ACEOF | |
31067 | cat confdefs.h >>conftest.$ac_ext | |
31068 | cat >>conftest.$ac_ext <<_ACEOF | |
31069 | /* end confdefs.h. */ | |
31070 | #include <$ac_header> | |
31071 | _ACEOF | |
31072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31074 | ac_status=$? | |
31075 | grep -v '^ *+' conftest.er1 >conftest.err | |
31076 | rm -f conftest.er1 | |
31077 | cat conftest.err >&5 | |
31078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31079 | (exit $ac_status); } >/dev/null; then | |
31080 | if test -s conftest.err; then | |
31081 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31082 | else | |
31083 | ac_cpp_err= | |
31084 | fi | |
31085 | else | |
31086 | ac_cpp_err=yes | |
31087 | fi | |
31088 | if test -z "$ac_cpp_err"; then | |
31089 | ac_header_preproc=yes | |
31090 | else | |
31091 | echo "$as_me: failed program was:" >&5 | |
31092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31093 | ||
31094 | ac_header_preproc=no | |
31095 | fi | |
31096 | rm -f conftest.err conftest.$ac_ext | |
31097 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31098 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31099 | ||
31100 | # So? What about this header? | |
31101 | case $ac_header_compiler:$ac_header_preproc in | |
31102 | yes:no ) | |
31103 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31104 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31106 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31107 | ( | |
31108 | cat <<\_ASBOX | |
31109 | ## ------------------------------------ ## | |
31110 | ## Report this to bug-autoconf@gnu.org. ## | |
31111 | ## ------------------------------------ ## | |
31112 | _ASBOX | |
31113 | ) | | |
31114 | sed "s/^/$as_me: WARNING: /" >&2 | |
31115 | ;; | |
31116 | no:yes ) | |
31117 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31118 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31119 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31120 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31122 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31123 | ( | |
31124 | cat <<\_ASBOX | |
31125 | ## ------------------------------------ ## | |
31126 | ## Report this to bug-autoconf@gnu.org. ## | |
31127 | ## ------------------------------------ ## | |
31128 | _ASBOX | |
31129 | ) | | |
31130 | sed "s/^/$as_me: WARNING: /" >&2 | |
31131 | ;; | |
31132 | esac | |
31133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31137 | else | |
31138 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31139 | fi |
e6cc62c6 VS |
31140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31142 | ||
10f2d63a | 31143 | fi |
e6cc62c6 VS |
31144 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31145 | cat >>confdefs.h <<_ACEOF | |
31146 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31147 | _ACEOF | |
31148 | ||
247f5006 | 31149 | fi |
e6cc62c6 | 31150 | |
10f2d63a VZ |
31151 | done |
31152 | ||
3a922bb4 RL |
31153 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31154 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31155 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31156 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31157 | fi |
31158 | fi | |
31159 | fi | |
b089607b | 31160 | |
3a922bb4 | 31161 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31162 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31163 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31164 | _ACEOF |
10f2d63a | 31165 | |
3a922bb4 RL |
31166 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31167 | fi | |
dc3d889d VZ |
31168 | fi |
31169 | ||
8284b0c5 | 31170 | |
b089607b VZ |
31171 | if test "$TOOLKIT" != "MSW"; then |
31172 | ||
3a922bb4 RL |
31173 | HAVE_DL_FUNCS=0 |
31174 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31175 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31176 | if test "$USE_DARWIN" = 1; then |
31177 | HAVE_DL_FUNCS=1 | |
31178 | else | |
e6cc62c6 VS |
31179 | |
31180 | for ac_func in dlopen | |
10f2d63a | 31181 | do |
e6cc62c6 VS |
31182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31183 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31185 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31187 | else | |
31188 | cat >conftest.$ac_ext <<_ACEOF | |
31189 | #line $LINENO "configure" | |
31190 | /* confdefs.h. */ | |
31191 | _ACEOF | |
31192 | cat confdefs.h >>conftest.$ac_ext | |
31193 | cat >>conftest.$ac_ext <<_ACEOF | |
31194 | /* end confdefs.h. */ | |
10f2d63a | 31195 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31196 | which can conflict with char $ac_func (); below. |
31197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31198 | <limits.h> exists even on freestanding compilers. */ | |
31199 | #ifdef __STDC__ | |
31200 | # include <limits.h> | |
31201 | #else | |
31202 | # include <assert.h> | |
31203 | #endif | |
10f2d63a | 31204 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31205 | #ifdef __cplusplus |
31206 | extern "C" | |
31207 | { | |
31208 | #endif | |
10f2d63a | 31209 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31210 | builtin and then its argument prototype would still apply. */ |
31211 | char $ac_func (); | |
10f2d63a VZ |
31212 | /* The GNU C library defines this for functions which it implements |
31213 | to always fail with ENOSYS. Some functions are actually named | |
31214 | something starting with __ and the normal name is an alias. */ | |
31215 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31216 | choke me | |
31217 | #else | |
e6cc62c6 VS |
31218 | char (*f) () = $ac_func; |
31219 | #endif | |
31220 | #ifdef __cplusplus | |
31221 | } | |
10f2d63a VZ |
31222 | #endif |
31223 | ||
e6cc62c6 VS |
31224 | int |
31225 | main () | |
31226 | { | |
31227 | return f != $ac_func; | |
31228 | ; | |
31229 | return 0; | |
31230 | } | |
31231 | _ACEOF | |
31232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31234 | (eval $ac_link) 2>&5 | |
31235 | ac_status=$? | |
31236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31237 | (exit $ac_status); } && | |
31238 | { ac_try='test -s conftest$ac_exeext' | |
31239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31240 | (eval $ac_try) 2>&5 | |
31241 | ac_status=$? | |
31242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31243 | (exit $ac_status); }; }; then | |
31244 | eval "$as_ac_var=yes" | |
31245 | else | |
31246 | echo "$as_me: failed program was:" >&5 | |
31247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31248 | ||
31249 | eval "$as_ac_var=no" | |
31250 | fi | |
31251 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31252 | fi | |
31253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31254 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31255 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31256 | cat >>confdefs.h <<_ACEOF | |
31257 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31258 | _ACEOF | |
31259 | ||
31260 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31261 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31262 | _ACEOF |
10f2d63a | 31263 | |
3a922bb4 | 31264 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31265 | |
10f2d63a | 31266 | else |
e6cc62c6 VS |
31267 | |
31268 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31269 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31270 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31272 | else |
e6cc62c6 | 31273 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31274 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31275 | cat >conftest.$ac_ext <<_ACEOF |
31276 | #line $LINENO "configure" | |
31277 | /* confdefs.h. */ | |
31278 | _ACEOF | |
31279 | cat confdefs.h >>conftest.$ac_ext | |
31280 | cat >>conftest.$ac_ext <<_ACEOF | |
31281 | /* end confdefs.h. */ | |
31282 | ||
10f2d63a | 31283 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31284 | #ifdef __cplusplus |
31285 | extern "C" | |
31286 | #endif | |
10f2d63a | 31287 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31288 | builtin and then its argument prototype would still apply. */ |
31289 | char dlopen (); | |
31290 | int | |
31291 | main () | |
31292 | { | |
31293 | dlopen (); | |
31294 | ; | |
31295 | return 0; | |
31296 | } | |
31297 | _ACEOF | |
31298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31300 | (eval $ac_link) 2>&5 | |
31301 | ac_status=$? | |
31302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31303 | (exit $ac_status); } && | |
31304 | { ac_try='test -s conftest$ac_exeext' | |
31305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31306 | (eval $ac_try) 2>&5 | |
31307 | ac_status=$? | |
31308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31309 | (exit $ac_status); }; }; then | |
31310 | ac_cv_lib_dl_dlopen=yes | |
31311 | else | |
31312 | echo "$as_me: failed program was:" >&5 | |
31313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31314 | ||
31315 | ac_cv_lib_dl_dlopen=no | |
31316 | fi | |
31317 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31318 | LIBS=$ac_check_lib_save_LIBS | |
31319 | fi | |
31320 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31321 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31322 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31323 | ||
31324 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31325 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31326 | _ACEOF |
10f2d63a | 31327 | |
3a922bb4 | 31328 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31329 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31330 | |
10f2d63a | 31331 | else |
10f2d63a | 31332 | |
e6cc62c6 VS |
31333 | |
31334 | for ac_func in shl_load | |
10f2d63a | 31335 | do |
e6cc62c6 VS |
31336 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31337 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31338 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31339 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31341 | else | |
31342 | cat >conftest.$ac_ext <<_ACEOF | |
31343 | #line $LINENO "configure" | |
31344 | /* confdefs.h. */ | |
31345 | _ACEOF | |
31346 | cat confdefs.h >>conftest.$ac_ext | |
31347 | cat >>conftest.$ac_ext <<_ACEOF | |
31348 | /* end confdefs.h. */ | |
10f2d63a | 31349 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31350 | which can conflict with char $ac_func (); below. |
31351 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31352 | <limits.h> exists even on freestanding compilers. */ | |
31353 | #ifdef __STDC__ | |
31354 | # include <limits.h> | |
31355 | #else | |
31356 | # include <assert.h> | |
31357 | #endif | |
10f2d63a | 31358 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31359 | #ifdef __cplusplus |
31360 | extern "C" | |
31361 | { | |
31362 | #endif | |
10f2d63a | 31363 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31364 | builtin and then its argument prototype would still apply. */ |
31365 | char $ac_func (); | |
10f2d63a VZ |
31366 | /* The GNU C library defines this for functions which it implements |
31367 | to always fail with ENOSYS. Some functions are actually named | |
31368 | something starting with __ and the normal name is an alias. */ | |
31369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31370 | choke me | |
31371 | #else | |
e6cc62c6 VS |
31372 | char (*f) () = $ac_func; |
31373 | #endif | |
31374 | #ifdef __cplusplus | |
31375 | } | |
10f2d63a VZ |
31376 | #endif |
31377 | ||
e6cc62c6 VS |
31378 | int |
31379 | main () | |
31380 | { | |
31381 | return f != $ac_func; | |
31382 | ; | |
31383 | return 0; | |
31384 | } | |
31385 | _ACEOF | |
31386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31388 | (eval $ac_link) 2>&5 | |
31389 | ac_status=$? | |
31390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31391 | (exit $ac_status); } && | |
31392 | { ac_try='test -s conftest$ac_exeext' | |
31393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31394 | (eval $ac_try) 2>&5 | |
31395 | ac_status=$? | |
31396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31397 | (exit $ac_status); }; }; then | |
31398 | eval "$as_ac_var=yes" | |
31399 | else | |
31400 | echo "$as_me: failed program was:" >&5 | |
31401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31402 | ||
31403 | eval "$as_ac_var=no" | |
31404 | fi | |
31405 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31406 | fi | |
31407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31408 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31409 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31410 | cat >>confdefs.h <<_ACEOF | |
31411 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31412 | _ACEOF | |
31413 | ||
31414 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31415 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31416 | _ACEOF |
10f2d63a | 31417 | |
3a922bb4 | 31418 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31419 | |
10f2d63a | 31420 | else |
e6cc62c6 VS |
31421 | |
31422 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31423 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31424 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31426 | else |
e6cc62c6 | 31427 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31428 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31429 | cat >conftest.$ac_ext <<_ACEOF |
31430 | #line $LINENO "configure" | |
31431 | /* confdefs.h. */ | |
31432 | _ACEOF | |
31433 | cat confdefs.h >>conftest.$ac_ext | |
31434 | cat >>conftest.$ac_ext <<_ACEOF | |
31435 | /* end confdefs.h. */ | |
31436 | ||
8284b0c5 | 31437 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31438 | #ifdef __cplusplus |
31439 | extern "C" | |
31440 | #endif | |
f6bcfd97 | 31441 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31442 | builtin and then its argument prototype would still apply. */ |
31443 | char dld (); | |
31444 | int | |
31445 | main () | |
31446 | { | |
31447 | dld (); | |
31448 | ; | |
31449 | return 0; | |
31450 | } | |
31451 | _ACEOF | |
31452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31454 | (eval $ac_link) 2>&5 | |
31455 | ac_status=$? | |
31456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31457 | (exit $ac_status); } && | |
31458 | { ac_try='test -s conftest$ac_exeext' | |
31459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31460 | (eval $ac_try) 2>&5 | |
31461 | ac_status=$? | |
31462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31463 | (exit $ac_status); }; }; then | |
31464 | ac_cv_lib_shl_load_dld=yes | |
31465 | else | |
31466 | echo "$as_me: failed program was:" >&5 | |
31467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31468 | ||
31469 | ac_cv_lib_shl_load_dld=no | |
31470 | fi | |
31471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31472 | LIBS=$ac_check_lib_save_LIBS | |
31473 | fi | |
31474 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31475 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31476 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 31477 | |
3a922bb4 | 31478 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 31479 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 31480 | |
f6bcfd97 BP |
31481 | fi |
31482 | ||
e6cc62c6 | 31483 | |
10f2d63a VZ |
31484 | fi |
31485 | done | |
31486 | ||
e6cc62c6 | 31487 | |
10f2d63a VZ |
31488 | fi |
31489 | ||
e6cc62c6 | 31490 | |
10f2d63a VZ |
31491 | fi |
31492 | done | |
31493 | ||
5c6fa7d2 | 31494 | |
8284b0c5 | 31495 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
31496 | |
31497 | for ac_func in dlerror | |
f6bcfd97 | 31498 | do |
e6cc62c6 VS |
31499 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31500 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31501 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31502 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31504 | else | |
31505 | cat >conftest.$ac_ext <<_ACEOF | |
31506 | #line $LINENO "configure" | |
31507 | /* confdefs.h. */ | |
31508 | _ACEOF | |
31509 | cat confdefs.h >>conftest.$ac_ext | |
31510 | cat >>conftest.$ac_ext <<_ACEOF | |
31511 | /* end confdefs.h. */ | |
f6bcfd97 | 31512 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31513 | which can conflict with char $ac_func (); below. |
31514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31515 | <limits.h> exists even on freestanding compilers. */ | |
31516 | #ifdef __STDC__ | |
31517 | # include <limits.h> | |
31518 | #else | |
31519 | # include <assert.h> | |
31520 | #endif | |
f6bcfd97 | 31521 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31522 | #ifdef __cplusplus |
31523 | extern "C" | |
31524 | { | |
31525 | #endif | |
f6bcfd97 | 31526 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31527 | builtin and then its argument prototype would still apply. */ |
31528 | char $ac_func (); | |
f6bcfd97 BP |
31529 | /* The GNU C library defines this for functions which it implements |
31530 | to always fail with ENOSYS. Some functions are actually named | |
31531 | something starting with __ and the normal name is an alias. */ | |
31532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31533 | choke me | |
31534 | #else | |
e6cc62c6 VS |
31535 | char (*f) () = $ac_func; |
31536 | #endif | |
31537 | #ifdef __cplusplus | |
31538 | } | |
f6bcfd97 BP |
31539 | #endif |
31540 | ||
e6cc62c6 VS |
31541 | int |
31542 | main () | |
31543 | { | |
31544 | return f != $ac_func; | |
31545 | ; | |
31546 | return 0; | |
31547 | } | |
31548 | _ACEOF | |
31549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31551 | (eval $ac_link) 2>&5 | |
31552 | ac_status=$? | |
31553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31554 | (exit $ac_status); } && | |
31555 | { ac_try='test -s conftest$ac_exeext' | |
31556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31557 | (eval $ac_try) 2>&5 | |
31558 | ac_status=$? | |
31559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31560 | (exit $ac_status); }; }; then | |
31561 | eval "$as_ac_var=yes" | |
31562 | else | |
31563 | echo "$as_me: failed program was:" >&5 | |
31564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31565 | ||
31566 | eval "$as_ac_var=no" | |
31567 | fi | |
31568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31569 | fi | |
31570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31572 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31573 | cat >>confdefs.h <<_ACEOF | |
31574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31575 | _ACEOF | |
31576 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31577 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31578 | _ACEOF |
f6bcfd97 BP |
31579 | |
31580 | else | |
e6cc62c6 VS |
31581 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
31582 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31583 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31585 | else |
e6cc62c6 | 31586 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31587 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31588 | cat >conftest.$ac_ext <<_ACEOF |
31589 | #line $LINENO "configure" | |
31590 | /* confdefs.h. */ | |
31591 | _ACEOF | |
31592 | cat confdefs.h >>conftest.$ac_ext | |
31593 | cat >>conftest.$ac_ext <<_ACEOF | |
31594 | /* end confdefs.h. */ | |
31595 | ||
f6bcfd97 | 31596 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31597 | #ifdef __cplusplus |
31598 | extern "C" | |
31599 | #endif | |
f6bcfd97 | 31600 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31601 | builtin and then its argument prototype would still apply. */ |
31602 | char dlerror (); | |
31603 | int | |
31604 | main () | |
31605 | { | |
31606 | dlerror (); | |
31607 | ; | |
31608 | return 0; | |
31609 | } | |
31610 | _ACEOF | |
31611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31613 | (eval $ac_link) 2>&5 | |
31614 | ac_status=$? | |
31615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31616 | (exit $ac_status); } && | |
31617 | { ac_try='test -s conftest$ac_exeext' | |
31618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31619 | (eval $ac_try) 2>&5 | |
31620 | ac_status=$? | |
31621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31622 | (exit $ac_status); }; }; then | |
31623 | ac_cv_lib_dl_dlerror=yes | |
31624 | else | |
31625 | echo "$as_me: failed program was:" >&5 | |
31626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31627 | ||
31628 | ac_cv_lib_dl_dlerror=no | |
31629 | fi | |
31630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31631 | LIBS=$ac_check_lib_save_LIBS | |
31632 | fi | |
31633 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31634 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31635 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31636 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31637 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31638 | _ACEOF |
f6bcfd97 | 31639 | |
f6bcfd97 BP |
31640 | fi |
31641 | ||
31642 | fi | |
31643 | done | |
31644 | ||
3a922bb4 RL |
31645 | fi |
31646 | fi | |
f6bcfd97 | 31647 | |
3a922bb4 RL |
31648 | if test "$HAVE_DL_FUNCS" = 0; then |
31649 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31650 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
31651 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
31652 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 31653 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
31654 | wxUSE_DYNLIB_CLASS=no |
31655 | else | |
e6cc62c6 VS |
31656 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
31657 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
31658 | fi |
31659 | fi | |
10f2d63a VZ |
31660 | fi |
31661 | fi | |
31662 | fi | |
31663 | ||
0b9ab0bd | 31664 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 31665 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 31666 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 31667 | _ACEOF |
0b9ab0bd RL |
31668 | |
31669 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 31670 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31671 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 31672 | _ACEOF |
10f2d63a VZ |
31673 | |
31674 | fi | |
31675 | ||
8284b0c5 | 31676 | |
1e6feb95 | 31677 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 31678 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 31679 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 31680 | _ACEOF |
1e6feb95 VZ |
31681 | |
31682 | fi | |
31683 | ||
10f2d63a | 31684 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 31685 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31686 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 31687 | _ACEOF |
10f2d63a | 31688 | |
8284b0c5 | 31689 | |
bbc3925a VS |
31690 | if test "$wxUSE_MSW" != 1; then |
31691 | wxUSE_UNICODE_MSLU=no | |
31692 | fi | |
a72a4bfa VS |
31693 | |
31694 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
e6cc62c6 VS |
31695 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
31696 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
31697 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
31698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 31699 | else |
e6cc62c6 | 31700 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 31701 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
31702 | cat >conftest.$ac_ext <<_ACEOF |
31703 | #line $LINENO "configure" | |
31704 | /* confdefs.h. */ | |
31705 | _ACEOF | |
31706 | cat confdefs.h >>conftest.$ac_ext | |
31707 | cat >>conftest.$ac_ext <<_ACEOF | |
31708 | /* end confdefs.h. */ | |
a72a4bfa | 31709 | |
8284b0c5 | 31710 | |
e6cc62c6 VS |
31711 | int |
31712 | main () | |
31713 | { | |
31714 | main (); | |
31715 | ; | |
31716 | return 0; | |
31717 | } | |
31718 | _ACEOF | |
31719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31721 | (eval $ac_link) 2>&5 | |
31722 | ac_status=$? | |
31723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31724 | (exit $ac_status); } && | |
31725 | { ac_try='test -s conftest$ac_exeext' | |
31726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31727 | (eval $ac_try) 2>&5 | |
31728 | ac_status=$? | |
31729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31730 | (exit $ac_status); }; }; then | |
31731 | ac_cv_lib_unicows_main=yes | |
31732 | else | |
31733 | echo "$as_me: failed program was:" >&5 | |
31734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31735 | ||
31736 | ac_cv_lib_unicows_main=no | |
31737 | fi | |
31738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31739 | LIBS=$ac_check_lib_save_LIBS | |
31740 | fi | |
31741 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
31742 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
31743 | if test $ac_cv_lib_unicows_main = yes; then | |
31744 | ||
31745 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 31746 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
31747 | _ACEOF |
31748 | ||
a72a4bfa | 31749 | |
a72a4bfa | 31750 | else |
a72a4bfa | 31751 | |
e6cc62c6 VS |
31752 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
31753 | Applications will only run on Windows NT/2000/XP!" >&5 | |
31754 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
31755 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 31756 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 31757 | |
a72a4bfa VS |
31758 | fi |
31759 | ||
31760 | fi | |
10f2d63a VZ |
31761 | fi |
31762 | ||
10f2d63a | 31763 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 31764 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31765 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 31766 | _ACEOF |
10f2d63a VZ |
31767 | |
31768 | fi | |
31769 | ||
8284b0c5 | 31770 | |
10f2d63a | 31771 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 31772 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31773 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 31774 | _ACEOF |
10f2d63a VZ |
31775 | |
31776 | fi | |
31777 | ||
e6cc62c6 | 31778 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31779 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 31780 | _ACEOF |
10f2d63a | 31781 | |
8284b0c5 | 31782 | |
e6cc62c6 | 31783 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31784 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 31785 | _ACEOF |
10f2d63a | 31786 | |
8284b0c5 MB |
31787 | |
31788 | ||
10f2d63a | 31789 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 31790 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31791 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 31792 | _ACEOF |
10f2d63a VZ |
31793 | |
31794 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
31795 | fi | |
31796 | ||
31797 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 31798 | |
8284b0c5 | 31799 | |
bb811f17 | 31800 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
e6cc62c6 | 31801 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31802 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 31803 | _ACEOF |
10f2d63a | 31804 | |
bb811f17 JS |
31805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
31806 | fi | |
10f2d63a VZ |
31807 | fi |
31808 | ||
31809 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 31810 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31811 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 31812 | _ACEOF |
10f2d63a VZ |
31813 | |
31814 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
31815 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
31816 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
31817 | fi | |
31818 | fi | |
31819 | ||
31820 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 31821 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31822 | #define wxUSE_HELP 1 |
e6cc62c6 | 31823 | _ACEOF |
10f2d63a VZ |
31824 | |
31825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 31826 | |
77e13408 | 31827 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 31828 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 31829 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 31830 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 31831 | _ACEOF |
29fd3c0c | 31832 | |
3e44f09d | 31833 | fi |
3379ed37 | 31834 | fi |
031d8228 VS |
31835 | |
31836 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
31837 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 31838 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 31839 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 31840 | _ACEOF |
031d8228 VS |
31841 | |
31842 | else | |
e6cc62c6 VS |
31843 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
31844 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
31845 | wxUSE_WXHTML_HELP=no |
31846 | fi | |
31847 | fi | |
10f2d63a VZ |
31848 | fi |
31849 | ||
31850 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
31851 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
31852 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
31853 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 31854 | else |
e6cc62c6 | 31855 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31856 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 31857 | _ACEOF |
10f2d63a VZ |
31858 | |
31859 | fi | |
31860 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
31861 | fi | |
31862 | ||
e6cc62c6 VS |
31863 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
31864 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
31865 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
31866 | { (exit 1); exit 1; }; } | |
31867 | fi | |
31868 | ||
31869 | ||
31870 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
31871 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
31872 | -o "$wxUSE_OLE" = "yes" \ | |
31873 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
31874 | ||
31875 | for ac_header in ole2.h | |
31876 | do | |
31877 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31883 | fi | |
31884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31886 | else | |
31887 | # Is the header compilable? | |
31888 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31889 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31890 | cat >conftest.$ac_ext <<_ACEOF | |
31891 | #line $LINENO "configure" | |
31892 | /* confdefs.h. */ | |
31893 | _ACEOF | |
31894 | cat confdefs.h >>conftest.$ac_ext | |
31895 | cat >>conftest.$ac_ext <<_ACEOF | |
31896 | /* end confdefs.h. */ | |
31897 | $ac_includes_default | |
31898 | #include <$ac_header> | |
31899 | _ACEOF | |
31900 | rm -f conftest.$ac_objext | |
31901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31902 | (eval $ac_compile) 2>&5 | |
31903 | ac_status=$? | |
31904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31905 | (exit $ac_status); } && | |
31906 | { ac_try='test -s conftest.$ac_objext' | |
31907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31908 | (eval $ac_try) 2>&5 | |
31909 | ac_status=$? | |
31910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31911 | (exit $ac_status); }; }; then | |
31912 | ac_header_compiler=yes | |
31913 | else | |
31914 | echo "$as_me: failed program was:" >&5 | |
31915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31916 | ||
31917 | ac_header_compiler=no | |
31918 | fi | |
31919 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31920 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31921 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31922 | ||
31923 | # Is the header present? | |
31924 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31925 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31926 | cat >conftest.$ac_ext <<_ACEOF | |
31927 | #line $LINENO "configure" | |
31928 | /* confdefs.h. */ | |
31929 | _ACEOF | |
31930 | cat confdefs.h >>conftest.$ac_ext | |
31931 | cat >>conftest.$ac_ext <<_ACEOF | |
31932 | /* end confdefs.h. */ | |
31933 | #include <$ac_header> | |
31934 | _ACEOF | |
31935 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31936 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31937 | ac_status=$? | |
31938 | grep -v '^ *+' conftest.er1 >conftest.err | |
31939 | rm -f conftest.er1 | |
31940 | cat conftest.err >&5 | |
31941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31942 | (exit $ac_status); } >/dev/null; then | |
31943 | if test -s conftest.err; then | |
31944 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31945 | else | |
31946 | ac_cpp_err= | |
31947 | fi | |
31948 | else | |
31949 | ac_cpp_err=yes | |
31950 | fi | |
31951 | if test -z "$ac_cpp_err"; then | |
31952 | ac_header_preproc=yes | |
31953 | else | |
31954 | echo "$as_me: failed program was:" >&5 | |
31955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31956 | ||
31957 | ac_header_preproc=no | |
31958 | fi | |
31959 | rm -f conftest.err conftest.$ac_ext | |
31960 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31961 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31962 | ||
31963 | # So? What about this header? | |
31964 | case $ac_header_compiler:$ac_header_preproc in | |
31965 | yes:no ) | |
31966 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31967 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31970 | ( | |
31971 | cat <<\_ASBOX | |
31972 | ## ------------------------------------ ## | |
31973 | ## Report this to bug-autoconf@gnu.org. ## | |
31974 | ## ------------------------------------ ## | |
31975 | _ASBOX | |
31976 | ) | | |
31977 | sed "s/^/$as_me: WARNING: /" >&2 | |
31978 | ;; | |
31979 | no:yes ) | |
31980 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31981 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31982 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31983 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31985 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31986 | ( | |
31987 | cat <<\_ASBOX | |
31988 | ## ------------------------------------ ## | |
31989 | ## Report this to bug-autoconf@gnu.org. ## | |
31990 | ## ------------------------------------ ## | |
31991 | _ASBOX | |
31992 | ) | | |
31993 | sed "s/^/$as_me: WARNING: /" >&2 | |
31994 | ;; | |
31995 | esac | |
31996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32000 | else | |
32001 | eval "$as_ac_Header=$ac_header_preproc" | |
32002 | fi | |
32003 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32004 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32005 | ||
10f2d63a | 32006 | fi |
e6cc62c6 VS |
32007 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32008 | cat >>confdefs.h <<_ACEOF | |
32009 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32010 | _ACEOF | |
10f2d63a | 32011 | |
10f2d63a | 32012 | fi |
e6cc62c6 | 32013 | |
10f2d63a VZ |
32014 | done |
32015 | ||
8284b0c5 | 32016 | |
2b9bdf71 VZ |
32017 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32018 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32019 | |
32020 | ||
e6cc62c6 VS |
32021 | ac_ext=cc |
32022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32023 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32024 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32025 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32026 | ||
32027 | ||
32028 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32029 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32030 | cat >conftest.$ac_ext <<_ACEOF | |
32031 | #line $LINENO "configure" | |
32032 | /* confdefs.h. */ | |
32033 | _ACEOF | |
32034 | cat confdefs.h >>conftest.$ac_ext | |
32035 | cat >>conftest.$ac_ext <<_ACEOF | |
32036 | /* end confdefs.h. */ | |
8284b0c5 MB |
32037 | #include <windows.h> |
32038 | #include <ole2.h> | |
e6cc62c6 VS |
32039 | int |
32040 | main () | |
32041 | { | |
8284b0c5 | 32042 | |
e6cc62c6 VS |
32043 | ; |
32044 | return 0; | |
32045 | } | |
32046 | _ACEOF | |
32047 | rm -f conftest.$ac_objext | |
32048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32049 | (eval $ac_compile) 2>&5 | |
32050 | ac_status=$? | |
32051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32052 | (exit $ac_status); } && | |
32053 | { ac_try='test -s conftest.$ac_objext' | |
32054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32055 | (eval $ac_try) 2>&5 | |
32056 | ac_status=$? | |
32057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32058 | (exit $ac_status); }; }; then | |
32059 | echo "$as_me:$LINENO: result: no" >&5 | |
32060 | echo "${ECHO_T}no" >&6 | |
32061 | else | |
32062 | echo "$as_me: failed program was:" >&5 | |
32063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32064 | ||
32065 | echo "$as_me:$LINENO: result: yes" >&5 | |
32066 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32067 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32068 | fi | |
e6cc62c6 | 32069 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32070 | ac_ext=c |
8284b0c5 | 32071 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32075 | |
2b9bdf71 | 32076 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32077 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32078 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32079 | #define wxUSE_OLE 1 |
e6cc62c6 | 32080 | _ACEOF |
4f11a343 | 32081 | |
8284b0c5 | 32082 | |
2b9bdf71 VZ |
32083 | fi |
32084 | ||
e6cc62c6 | 32085 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32086 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32087 | _ACEOF |
2b9bdf71 VZ |
32088 | |
32089 | else | |
e6cc62c6 VS |
32090 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32091 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32092 | |
32093 | wxUSE_CLIPBOARD=no | |
32094 | wxUSE_DRAG_AND_DROP=no | |
32095 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32096 | wxUSE_OLE=no |
32097 | fi | |
32098 | ||
32099 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32100 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32101 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32102 | _ACEOF |
3bce6687 JS |
32103 | |
32104 | ||
e6cc62c6 | 32105 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32106 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32107 | _ACEOF |
3bce6687 JS |
32108 | |
32109 | fi | |
32110 | fi | |
32111 | ||
2b9bdf71 VZ |
32112 | if test "$wxUSE_IPC" = "yes"; then |
32113 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32114 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32115 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32116 | fi |
32117 | ||
e6cc62c6 | 32118 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32119 | #define wxUSE_IPC 1 |
e6cc62c6 | 32120 | _ACEOF |
2b9bdf71 VZ |
32121 | |
32122 | fi | |
32123 | ||
32124 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32125 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32126 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32127 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32128 | wxUSE_CLIPBOARD=no |
32129 | fi | |
32130 | ||
32131 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32132 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32133 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32134 | _ACEOF |
2b9bdf71 | 32135 | |
8284b0c5 | 32136 | |
e6cc62c6 | 32137 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32138 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32139 | _ACEOF |
673f4220 | 32140 | |
6c657b52 | 32141 | fi |
2b9bdf71 VZ |
32142 | fi |
32143 | ||
32144 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32145 | if test "$wxUSE_GTK" = 1; then | |
32146 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32147 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32148 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32149 | wxUSE_DRAG_AND_DROP=no |
32150 | fi | |
32151 | fi | |
32152 | ||
2b9bdf71 | 32153 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32154 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32155 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32156 | wxUSE_DRAG_AND_DROP=no |
32157 | fi | |
32158 | ||
f79bd02d | 32159 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32160 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32161 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32162 | wxUSE_DRAG_AND_DROP=no |
32163 | fi | |
32164 | ||
6c657b52 | 32165 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32166 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32167 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32168 | wxUSE_DRAG_AND_DROP=no |
32169 | fi | |
32170 | ||
10f2d63a | 32171 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32172 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32173 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32174 | _ACEOF |
10f2d63a VZ |
32175 | |
32176 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32177 | fi | |
32178 | ||
32179 | fi | |
32180 | ||
32181 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32182 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32183 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32184 | _ACEOF |
10f2d63a VZ |
32185 | |
32186 | fi | |
32187 | ||
8284b0c5 | 32188 | |
1e6feb95 VZ |
32189 | USES_CONTROLS=0 |
32190 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32191 | USES_CONTROLS=1 | |
32192 | fi | |
32193 | ||
10f2d63a | 32194 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32195 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32196 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32197 | _ACEOF |
10f2d63a | 32198 | |
1e6feb95 VZ |
32199 | USES_CONTROLS=1 |
32200 | fi | |
32201 | ||
32202 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32203 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32204 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32205 | _ACEOF |
1e6feb95 VZ |
32206 | |
32207 | USES_CONTROLS=1 | |
32208 | fi | |
32209 | ||
32210 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32211 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32212 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32213 | _ACEOF |
1e6feb95 VZ |
32214 | |
32215 | USES_CONTROLS=1 | |
32216 | fi | |
32217 | ||
32218 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32219 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32220 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32221 | _ACEOF |
1e6feb95 VZ |
32222 | |
32223 | USES_CONTROLS=1 | |
32224 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32225 | fi |
32226 | ||
32227 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32228 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32229 | #define wxUSE_CARET 1 |
e6cc62c6 | 32230 | _ACEOF |
10f2d63a | 32231 | |
1e6feb95 | 32232 | USES_CONTROLS=1 |
10f2d63a VZ |
32233 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32234 | fi | |
32235 | ||
32236 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32237 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32238 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32239 | _ACEOF |
10f2d63a | 32240 | |
1e6feb95 | 32241 | USES_CONTROLS=1 |
10f2d63a VZ |
32242 | fi |
32243 | ||
32244 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32245 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32246 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32247 | _ACEOF |
10f2d63a | 32248 | |
1e6feb95 | 32249 | USES_CONTROLS=1 |
10f2d63a VZ |
32250 | fi |
32251 | ||
32252 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32253 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32254 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32255 | _ACEOF |
10f2d63a | 32256 | |
1e6feb95 | 32257 | USES_CONTROLS=1 |
10f2d63a VZ |
32258 | fi |
32259 | ||
32260 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32261 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32262 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32263 | _ACEOF |
10f2d63a | 32264 | |
1e6feb95 | 32265 | USES_CONTROLS=1 |
10f2d63a VZ |
32266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32267 | fi | |
32268 | ||
da494b40 | 32269 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32270 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32271 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32272 | _ACEOF |
da494b40 MB |
32273 | |
32274 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32275 | fi | |
32276 | ||
10f2d63a | 32277 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32278 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32279 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32280 | _ACEOF |
10f2d63a | 32281 | |
1e6feb95 | 32282 | USES_CONTROLS=1 |
10f2d63a VZ |
32283 | fi |
32284 | ||
d6a55c4b | 32285 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32286 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32287 | #define wxUSE_GRID 1 |
e6cc62c6 | 32288 | _ACEOF |
10f2d63a | 32289 | |
1e6feb95 | 32290 | USES_CONTROLS=1 |
d6a55c4b | 32291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32292 | fi |
32293 | ||
32294 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32295 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32296 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32297 | _ACEOF |
10f2d63a VZ |
32298 | |
32299 | fi | |
32300 | ||
32301 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32302 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32303 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32304 | _ACEOF |
10f2d63a | 32305 | |
1e6feb95 | 32306 | USES_CONTROLS=1 |
10f2d63a VZ |
32307 | fi |
32308 | ||
32309 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32310 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32311 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32312 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32313 | _ACEOF |
10f2d63a | 32314 | |
1e6feb95 | 32315 | USES_CONTROLS=1 |
10f2d63a VZ |
32316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32317 | else | |
e6cc62c6 VS |
32318 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32319 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32320 | fi |
32321 | fi | |
32322 | ||
32323 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32324 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32325 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32326 | _ACEOF |
10f2d63a | 32327 | |
1e6feb95 | 32328 | USES_CONTROLS=1 |
10f2d63a VZ |
32329 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32330 | fi | |
32331 | ||
24176f2c | 32332 | |
10f2d63a | 32333 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32334 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32335 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32336 | _ACEOF |
10f2d63a | 32337 | |
1e6feb95 | 32338 | USES_CONTROLS=1 |
10f2d63a VZ |
32339 | fi |
32340 | ||
32341 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32342 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32343 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32344 | _ACEOF |
10f2d63a | 32345 | |
1e6feb95 | 32346 | USES_CONTROLS=1 |
10f2d63a VZ |
32347 | fi |
32348 | ||
32349 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32350 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32351 | #define wxUSE_SASH 1 |
e6cc62c6 | 32352 | _ACEOF |
10f2d63a VZ |
32353 | |
32354 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32355 | fi | |
32356 | ||
32357 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32358 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32359 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32360 | _ACEOF |
10f2d63a | 32361 | |
1e6feb95 | 32362 | USES_CONTROLS=1 |
741a9306 | 32363 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32364 | fi |
32365 | ||
32366 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32367 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32368 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32369 | _ACEOF |
10f2d63a | 32370 | |
1e6feb95 | 32371 | USES_CONTROLS=1 |
10f2d63a VZ |
32372 | fi |
32373 | ||
32374 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32375 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32376 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32377 | _ACEOF |
10f2d63a | 32378 | |
1e6feb95 | 32379 | USES_CONTROLS=1 |
10f2d63a VZ |
32380 | fi |
32381 | ||
56cfaa52 | 32382 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32383 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32384 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32385 | _ACEOF |
56cfaa52 | 32386 | |
1e6feb95 | 32387 | USES_CONTROLS=1 |
56cfaa52 RR |
32388 | fi |
32389 | ||
10f2d63a | 32390 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32391 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32392 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32393 | _ACEOF |
10f2d63a VZ |
32394 | |
32395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32396 | fi | |
32397 | ||
32398 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32399 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32400 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32401 | _ACEOF |
10f2d63a | 32402 | |
1e6feb95 | 32403 | USES_CONTROLS=1 |
10f2d63a VZ |
32404 | fi |
32405 | ||
32406 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32407 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32408 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32409 | _ACEOF |
10f2d63a | 32410 | |
1e6feb95 VZ |
32411 | USES_CONTROLS=1 |
32412 | fi | |
32413 | ||
32414 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32415 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32416 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32417 | _ACEOF |
1e6feb95 VZ |
32418 | |
32419 | USES_CONTROLS=1 | |
10f2d63a VZ |
32420 | fi |
32421 | ||
32422 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32423 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32424 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32425 | _ACEOF |
10f2d63a | 32426 | |
89e6bf6d | 32427 | USES_CONTROLS=1 |
10f2d63a VZ |
32428 | fi |
32429 | ||
32430 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32431 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32432 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32433 | _ACEOF |
10f2d63a | 32434 | |
1e6feb95 | 32435 | USES_CONTROLS=1 |
698dcdb6 | 32436 | |
2286341c | 32437 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
32438 | fi |
32439 | ||
32440 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 32441 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32442 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 32443 | _ACEOF |
10f2d63a VZ |
32444 | |
32445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32446 | fi | |
32447 | ||
1e6feb95 | 32448 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 32449 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32450 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 32451 | _ACEOF |
1e6feb95 VZ |
32452 | |
32453 | USES_CONTROLS=1 | |
32454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32455 | fi | |
32456 | ||
1db8dc4a | 32457 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 32458 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32459 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
32460 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
32461 | wxUSE_TOGGLEBTN=no |
32462 | fi | |
32463 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
32464 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
32465 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
32466 | wxUSE_TOGGLEBTN=no |
32467 | fi | |
32468 | ||
32469 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 32470 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 32471 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 32472 | _ACEOF |
1db8dc4a | 32473 | |
1e6feb95 | 32474 | USES_CONTROLS=1 |
a45d7ab7 | 32475 | fi |
1db8dc4a VZ |
32476 | fi |
32477 | ||
360d6699 | 32478 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 32479 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32480 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 32481 | _ACEOF |
360d6699 VZ |
32482 | |
32483 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 32484 | USES_CONTROLS=1 |
360d6699 VZ |
32485 | fi |
32486 | ||
10f2d63a | 32487 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 32488 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32489 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 32490 | _ACEOF |
10f2d63a | 32491 | |
1e6feb95 | 32492 | USES_CONTROLS=1 |
698dcdb6 | 32493 | |
360d6699 VZ |
32494 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
32495 | wxUSE_TOOLBAR_NATIVE="yes" | |
32496 | fi | |
32497 | ||
1e6feb95 | 32498 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 32499 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32500 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 32501 | _ACEOF |
360d6699 | 32502 | |
1e6feb95 VZ |
32503 | USES_CONTROLS=1 |
32504 | fi | |
32505 | ||
32506 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
32507 | fi |
32508 | ||
10f2d63a VZ |
32509 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
32510 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
32511 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
32512 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 32513 | else |
89e6bf6d | 32514 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
32515 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
32516 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 32517 | else |
e6cc62c6 | 32518 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32519 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 32520 | _ACEOF |
10f2d63a VZ |
32521 | |
32522 | fi | |
32523 | fi | |
32524 | fi | |
32525 | ||
32526 | if test "$wxUSE_TREECTRL" = "yes"; then | |
32527 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32528 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32529 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 32530 | _ACEOF |
10f2d63a | 32531 | |
1e6feb95 | 32532 | USES_CONTROLS=1 |
10f2d63a VZ |
32533 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
32534 | else | |
e6cc62c6 VS |
32535 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
32536 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32537 | fi |
32538 | fi | |
32539 | ||
9f41d601 | 32540 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 32541 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32542 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
32543 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 32544 | else |
485cf710 | 32545 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32546 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
32547 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 32548 | else |
3c011993 | 32549 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32550 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
32551 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32552 | else |
e6cc62c6 | 32553 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 32554 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 32555 | _ACEOF |
9f41d601 | 32556 | |
8284b0c5 | 32557 | |
3c011993 VZ |
32558 | USES_CONTROLS=1 |
32559 | fi | |
485cf710 | 32560 | fi |
6abe4b65 | 32561 | fi |
9f41d601 RR |
32562 | fi |
32563 | ||
dd964dcc | 32564 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 32565 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32566 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
32567 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32568 | else |
e6cc62c6 | 32569 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 32570 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 32571 | _ACEOF |
dd964dcc | 32572 | |
3c011993 | 32573 | fi |
dd964dcc VZ |
32574 | fi |
32575 | ||
1e6feb95 | 32576 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 32577 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32578 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 32579 | _ACEOF |
10f2d63a | 32580 | |
10f2d63a VZ |
32581 | fi |
32582 | ||
8284b0c5 | 32583 | |
1e6feb95 | 32584 | |
24fd6d87 | 32585 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 32586 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 32587 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 32588 | _ACEOF |
24fd6d87 VZ |
32589 | |
32590 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
32591 | fi | |
32592 | ||
7bb2947d | 32593 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 32594 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 32595 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 32596 | _ACEOF |
7bb2947d MB |
32597 | |
32598 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
32599 | fi | |
32600 | ||
1e6feb95 | 32601 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 32602 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32603 | #define wxUSE_MENUS 1 |
e6cc62c6 | 32604 | _ACEOF |
10f2d63a | 32605 | |
1e6feb95 | 32606 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
32607 | fi |
32608 | ||
1e6feb95 | 32609 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 32610 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32611 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32612 | _ACEOF |
10f2d63a | 32613 | |
10f2d63a VZ |
32614 | fi |
32615 | ||
1e6feb95 | 32616 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 32617 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32618 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 32619 | _ACEOF |
10f2d63a | 32620 | |
10f2d63a VZ |
32621 | fi |
32622 | ||
3e44f09d | 32623 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 32624 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 32625 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 32626 | _ACEOF |
3e44f09d | 32627 | |
321d2b14 VZ |
32628 | if test "$TOOLKIT" = "MSW"; then |
32629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
32630 | fi | |
32631 | ||
3e44f09d VZ |
32632 | fi |
32633 | ||
4cdb0ab0 | 32634 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 32635 | if test "$wxUSE_SOCKETS" != "yes"; then |
e6cc62c6 VS |
32636 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 |
32637 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
3954f9ca VS |
32638 | wxUSE_PROTOCOL=no |
32639 | fi | |
32640 | ||
32641 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 32642 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32643 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 32644 | _ACEOF |
4cdb0ab0 | 32645 | |
8284b0c5 | 32646 | |
3954f9ca | 32647 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
e6cc62c6 | 32648 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32649 | #define wxUSE_PROTOCOL_HTTP 1 |
e6cc62c6 | 32650 | _ACEOF |
4cdb0ab0 | 32651 | |
3954f9ca VS |
32652 | fi |
32653 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
e6cc62c6 | 32654 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32655 | #define wxUSE_PROTOCOL_FTP 1 |
e6cc62c6 | 32656 | _ACEOF |
4cdb0ab0 | 32657 | |
3954f9ca VS |
32658 | fi |
32659 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
e6cc62c6 | 32660 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 32661 | #define wxUSE_PROTOCOL_FILE 1 |
e6cc62c6 | 32662 | _ACEOF |
3954f9ca VS |
32663 | |
32664 | fi | |
4cdb0ab0 | 32665 | fi |
3954f9ca VS |
32666 | fi |
32667 | ||
32668 | if test "$wxUSE_URL" = "yes"; then | |
32669 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
e6cc62c6 VS |
32670 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 |
32671 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
3954f9ca VS |
32672 | wxUSE_URL=no |
32673 | fi | |
32674 | if test "$wxUSE_URL" = "yes"; then | |
e6cc62c6 | 32675 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 32676 | #define wxUSE_URL 1 |
e6cc62c6 | 32677 | _ACEOF |
4cdb0ab0 VS |
32678 | |
32679 | fi | |
32680 | fi | |
32681 | ||
10f2d63a | 32682 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 32683 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32684 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 32685 | _ACEOF |
10f2d63a VZ |
32686 | |
32687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
32688 | fi | |
32689 | ||
32690 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32691 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32692 | #define wxUSE_HTML 1 |
e6cc62c6 | 32693 | _ACEOF |
10f2d63a | 32694 | |
c74dc163 | 32695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
32696 | fi |
32697 | ||
32698 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 32699 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 32700 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 32701 | _ACEOF |
703e0a69 | 32702 | |
698dcdb6 VZ |
32703 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
32704 | fi | |
32705 | ||
edae8572 | 32706 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 32707 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 32708 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 32709 | _ACEOF |
edae8572 VZ |
32710 | |
32711 | fi | |
32712 | ||
698dcdb6 | 32713 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 32714 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32715 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 32716 | _ACEOF |
698dcdb6 VZ |
32717 | |
32718 | fi | |
32719 | ||
32720 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 32721 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32722 | #define wxUSE_GIF 1 |
e6cc62c6 | 32723 | _ACEOF |
698dcdb6 VZ |
32724 | |
32725 | fi | |
32726 | ||
32727 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 32728 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32729 | #define wxUSE_PCX 1 |
e6cc62c6 | 32730 | _ACEOF |
698dcdb6 VZ |
32731 | |
32732 | fi | |
32733 | ||
4b6b4dfc | 32734 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 32735 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 32736 | #define wxUSE_IFF 1 |
e6cc62c6 | 32737 | _ACEOF |
4b6b4dfc RR |
32738 | |
32739 | fi | |
32740 | ||
698dcdb6 | 32741 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 32742 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32743 | #define wxUSE_PNM 1 |
e6cc62c6 | 32744 | _ACEOF |
698dcdb6 VZ |
32745 | |
32746 | fi | |
32747 | ||
32748 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 32749 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32750 | #define wxUSE_XPM 1 |
e6cc62c6 | 32751 | _ACEOF |
698dcdb6 VZ |
32752 | |
32753 | fi | |
32754 | ||
658974ae | 32755 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 32756 | cat >>confdefs.h <<\_ACEOF |
658974ae | 32757 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 32758 | _ACEOF |
658974ae VS |
32759 | |
32760 | fi | |
32761 | ||
a72a4bfa VS |
32762 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
32763 | LIBS=" -lunicows $LIBS" | |
32764 | fi | |
32765 | ||
8284b0c5 | 32766 | |
1e6feb95 | 32767 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 32768 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32769 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 32770 | _ACEOF |
1e6feb95 VZ |
32771 | |
32772 | fi | |
32773 | ||
32774 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 32775 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32776 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 32777 | _ACEOF |
1e6feb95 VZ |
32778 | |
32779 | fi | |
32780 | ||
32781 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 32782 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32783 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 32784 | _ACEOF |
1e6feb95 VZ |
32785 | |
32786 | fi | |
32787 | ||
8db37e06 | 32788 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 32789 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 32790 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 32791 | _ACEOF |
8db37e06 VZ |
32792 | |
32793 | fi | |
32794 | ||
1e6feb95 | 32795 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 32796 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32797 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 32798 | _ACEOF |
1e6feb95 VZ |
32799 | |
32800 | fi | |
32801 | ||
32802 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 32803 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
32804 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
32805 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 32806 | else |
e6cc62c6 | 32807 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32808 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 32809 | _ACEOF |
1e6feb95 | 32810 | |
1e6feb95 VZ |
32811 | fi |
32812 | fi | |
32813 | ||
32814 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 32815 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32816 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 32817 | _ACEOF |
1e6feb95 VZ |
32818 | |
32819 | fi | |
32820 | ||
32821 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 32822 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32823 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 32824 | _ACEOF |
1e6feb95 VZ |
32825 | |
32826 | fi | |
32827 | ||
32828 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
32829 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32830 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
32831 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 32832 | else |
e6cc62c6 | 32833 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32834 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 32835 | _ACEOF |
1e6feb95 VZ |
32836 | |
32837 | fi | |
32838 | fi | |
32839 | ||
cbca9943 | 32840 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 32841 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 32842 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 32843 | _ACEOF |
cbca9943 VZ |
32844 | |
32845 | fi | |
32846 | ||
1e6feb95 VZ |
32847 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
32848 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32849 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
32850 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 32851 | else |
e6cc62c6 | 32852 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32853 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 32854 | _ACEOF |
1e6feb95 | 32855 | |
7b4a847f RR |
32856 | fi |
32857 | fi | |
579d8138 | 32858 | |
8284b0c5 | 32859 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 32860 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 32861 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 32862 | _ACEOF |
8284b0c5 MB |
32863 | |
32864 | fi | |
32865 | ||
32866 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 32867 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 32868 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 32869 | _ACEOF |
8284b0c5 MB |
32870 | |
32871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
32872 | fi | |
32873 | ||
32874 | ||
32875 | if test "$cross_compiling" = "yes"; then | |
32876 | OSINFO="\"$host\"" | |
32877 | else | |
32878 | OSINFO=`uname -s -r -m` | |
32879 | OSINFO="\"$OSINFO\"" | |
32880 | fi | |
32881 | ||
e6cc62c6 | 32882 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 32883 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 32884 | _ACEOF |
8284b0c5 MB |
32885 | |
32886 | ||
32887 | ||
32888 | if test "x$prefix" != "xNONE"; then | |
32889 | wxPREFIX=$prefix | |
32890 | else | |
32891 | wxPREFIX=$ac_default_prefix | |
32892 | fi | |
32893 | ||
e6cc62c6 | 32894 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 32895 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 32896 | _ACEOF |
8284b0c5 MB |
32897 | |
32898 | ||
e6cc62c6 | 32899 | top_builddir_wxconfig=`pwd` |
52c71b80 | 32900 | |
8284b0c5 MB |
32901 | |
32902 | ||
32903 | ||
32904 | if test "$wxUSE_MAC" = 1 ; then | |
32905 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
32906 | fi | |
ac0c4cc3 DE |
32907 | if test "$wxUSE_COCOA" = 1 ; then |
32908 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
32909 | fi | |
8284b0c5 MB |
32910 | |
32911 | ||
2b5f62a0 VZ |
32912 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
32913 | ||
32914 | have_cos=0 | |
32915 | have_floor=0 | |
e6cc62c6 | 32916 | |
2b5f62a0 VZ |
32917 | for ac_func in cos |
32918 | do | |
e6cc62c6 VS |
32919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32920 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32922 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32924 | else | |
32925 | cat >conftest.$ac_ext <<_ACEOF | |
32926 | #line $LINENO "configure" | |
32927 | /* confdefs.h. */ | |
32928 | _ACEOF | |
32929 | cat confdefs.h >>conftest.$ac_ext | |
32930 | cat >>conftest.$ac_ext <<_ACEOF | |
32931 | /* end confdefs.h. */ | |
2b5f62a0 | 32932 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32933 | which can conflict with char $ac_func (); below. |
32934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32935 | <limits.h> exists even on freestanding compilers. */ | |
32936 | #ifdef __STDC__ | |
32937 | # include <limits.h> | |
32938 | #else | |
32939 | # include <assert.h> | |
32940 | #endif | |
2b5f62a0 | 32941 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32942 | #ifdef __cplusplus |
32943 | extern "C" | |
32944 | { | |
32945 | #endif | |
2b5f62a0 | 32946 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32947 | builtin and then its argument prototype would still apply. */ |
32948 | char $ac_func (); | |
2b5f62a0 VZ |
32949 | /* The GNU C library defines this for functions which it implements |
32950 | to always fail with ENOSYS. Some functions are actually named | |
32951 | something starting with __ and the normal name is an alias. */ | |
32952 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32953 | choke me | |
32954 | #else | |
e6cc62c6 VS |
32955 | char (*f) () = $ac_func; |
32956 | #endif | |
32957 | #ifdef __cplusplus | |
32958 | } | |
2b5f62a0 VZ |
32959 | #endif |
32960 | ||
e6cc62c6 VS |
32961 | int |
32962 | main () | |
32963 | { | |
32964 | return f != $ac_func; | |
32965 | ; | |
32966 | return 0; | |
32967 | } | |
32968 | _ACEOF | |
32969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32971 | (eval $ac_link) 2>&5 | |
32972 | ac_status=$? | |
32973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32974 | (exit $ac_status); } && | |
32975 | { ac_try='test -s conftest$ac_exeext' | |
32976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32977 | (eval $ac_try) 2>&5 | |
32978 | ac_status=$? | |
32979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32980 | (exit $ac_status); }; }; then | |
32981 | eval "$as_ac_var=yes" | |
32982 | else | |
32983 | echo "$as_me: failed program was:" >&5 | |
32984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32985 | ||
32986 | eval "$as_ac_var=no" | |
32987 | fi | |
32988 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32989 | fi | |
32990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32991 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32992 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32993 | cat >>confdefs.h <<_ACEOF | |
32994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32995 | _ACEOF | |
2b5f62a0 | 32996 | have_cos=1 |
2b5f62a0 VZ |
32997 | fi |
32998 | done | |
32999 | ||
e6cc62c6 | 33000 | |
2b5f62a0 VZ |
33001 | for ac_func in floor |
33002 | do | |
e6cc62c6 VS |
33003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33004 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33006 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33008 | else | |
33009 | cat >conftest.$ac_ext <<_ACEOF | |
33010 | #line $LINENO "configure" | |
33011 | /* confdefs.h. */ | |
33012 | _ACEOF | |
33013 | cat confdefs.h >>conftest.$ac_ext | |
33014 | cat >>conftest.$ac_ext <<_ACEOF | |
33015 | /* end confdefs.h. */ | |
2b5f62a0 | 33016 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33017 | which can conflict with char $ac_func (); below. |
33018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33019 | <limits.h> exists even on freestanding compilers. */ | |
33020 | #ifdef __STDC__ | |
33021 | # include <limits.h> | |
33022 | #else | |
33023 | # include <assert.h> | |
33024 | #endif | |
2b5f62a0 | 33025 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33026 | #ifdef __cplusplus |
33027 | extern "C" | |
33028 | { | |
33029 | #endif | |
2b5f62a0 | 33030 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33031 | builtin and then its argument prototype would still apply. */ |
33032 | char $ac_func (); | |
2b5f62a0 VZ |
33033 | /* The GNU C library defines this for functions which it implements |
33034 | to always fail with ENOSYS. Some functions are actually named | |
33035 | something starting with __ and the normal name is an alias. */ | |
33036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33037 | choke me | |
33038 | #else | |
e6cc62c6 VS |
33039 | char (*f) () = $ac_func; |
33040 | #endif | |
33041 | #ifdef __cplusplus | |
33042 | } | |
2b5f62a0 VZ |
33043 | #endif |
33044 | ||
e6cc62c6 VS |
33045 | int |
33046 | main () | |
33047 | { | |
33048 | return f != $ac_func; | |
33049 | ; | |
33050 | return 0; | |
33051 | } | |
33052 | _ACEOF | |
33053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33055 | (eval $ac_link) 2>&5 | |
33056 | ac_status=$? | |
33057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33058 | (exit $ac_status); } && | |
33059 | { ac_try='test -s conftest$ac_exeext' | |
33060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33061 | (eval $ac_try) 2>&5 | |
33062 | ac_status=$? | |
33063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33064 | (exit $ac_status); }; }; then | |
33065 | eval "$as_ac_var=yes" | |
33066 | else | |
33067 | echo "$as_me: failed program was:" >&5 | |
33068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33069 | ||
33070 | eval "$as_ac_var=no" | |
33071 | fi | |
33072 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33073 | fi | |
33074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33075 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33076 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33077 | cat >>confdefs.h <<_ACEOF | |
33078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33079 | _ACEOF | |
2b5f62a0 | 33080 | have_floor=1 |
2b5f62a0 VZ |
33081 | fi |
33082 | done | |
33083 | ||
e6cc62c6 VS |
33084 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33085 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33086 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33087 | echo "$as_me:$LINENO: result: yes" >&5 |
33088 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33089 | else |
e6cc62c6 VS |
33090 | echo "$as_me:$LINENO: result: no" >&5 |
33091 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33092 | LIBS="$LIBS -lm" |
33093 | # use different functions to avoid configure caching | |
33094 | have_sin=0 | |
33095 | have_ceil=0 | |
e6cc62c6 VS |
33096 | |
33097 | for ac_func in sin | |
2b5f62a0 | 33098 | do |
e6cc62c6 VS |
33099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33100 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33102 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33104 | else | |
33105 | cat >conftest.$ac_ext <<_ACEOF | |
33106 | #line $LINENO "configure" | |
33107 | /* confdefs.h. */ | |
33108 | _ACEOF | |
33109 | cat confdefs.h >>conftest.$ac_ext | |
33110 | cat >>conftest.$ac_ext <<_ACEOF | |
33111 | /* end confdefs.h. */ | |
2b5f62a0 | 33112 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33113 | which can conflict with char $ac_func (); below. |
33114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33115 | <limits.h> exists even on freestanding compilers. */ | |
33116 | #ifdef __STDC__ | |
33117 | # include <limits.h> | |
33118 | #else | |
33119 | # include <assert.h> | |
33120 | #endif | |
2b5f62a0 | 33121 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33122 | #ifdef __cplusplus |
33123 | extern "C" | |
33124 | { | |
33125 | #endif | |
2b5f62a0 | 33126 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33127 | builtin and then its argument prototype would still apply. */ |
33128 | char $ac_func (); | |
2b5f62a0 VZ |
33129 | /* The GNU C library defines this for functions which it implements |
33130 | to always fail with ENOSYS. Some functions are actually named | |
33131 | something starting with __ and the normal name is an alias. */ | |
33132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33133 | choke me | |
33134 | #else | |
e6cc62c6 VS |
33135 | char (*f) () = $ac_func; |
33136 | #endif | |
33137 | #ifdef __cplusplus | |
33138 | } | |
2b5f62a0 VZ |
33139 | #endif |
33140 | ||
e6cc62c6 VS |
33141 | int |
33142 | main () | |
33143 | { | |
33144 | return f != $ac_func; | |
33145 | ; | |
33146 | return 0; | |
33147 | } | |
33148 | _ACEOF | |
33149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33151 | (eval $ac_link) 2>&5 | |
33152 | ac_status=$? | |
33153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33154 | (exit $ac_status); } && | |
33155 | { ac_try='test -s conftest$ac_exeext' | |
33156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33157 | (eval $ac_try) 2>&5 | |
33158 | ac_status=$? | |
33159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33160 | (exit $ac_status); }; }; then | |
33161 | eval "$as_ac_var=yes" | |
33162 | else | |
33163 | echo "$as_me: failed program was:" >&5 | |
33164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33165 | ||
33166 | eval "$as_ac_var=no" | |
33167 | fi | |
33168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33169 | fi | |
33170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33173 | cat >>confdefs.h <<_ACEOF | |
33174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33175 | _ACEOF | |
2b5f62a0 | 33176 | have_sin=1 |
2b5f62a0 VZ |
33177 | fi |
33178 | done | |
33179 | ||
e6cc62c6 VS |
33180 | |
33181 | for ac_func in ceil | |
2b5f62a0 | 33182 | do |
e6cc62c6 VS |
33183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33188 | else | |
33189 | cat >conftest.$ac_ext <<_ACEOF | |
33190 | #line $LINENO "configure" | |
33191 | /* confdefs.h. */ | |
33192 | _ACEOF | |
33193 | cat confdefs.h >>conftest.$ac_ext | |
33194 | cat >>conftest.$ac_ext <<_ACEOF | |
33195 | /* end confdefs.h. */ | |
2b5f62a0 | 33196 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33197 | which can conflict with char $ac_func (); below. |
33198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33199 | <limits.h> exists even on freestanding compilers. */ | |
33200 | #ifdef __STDC__ | |
33201 | # include <limits.h> | |
33202 | #else | |
33203 | # include <assert.h> | |
33204 | #endif | |
2b5f62a0 | 33205 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33206 | #ifdef __cplusplus |
33207 | extern "C" | |
33208 | { | |
33209 | #endif | |
2b5f62a0 | 33210 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33211 | builtin and then its argument prototype would still apply. */ |
33212 | char $ac_func (); | |
2b5f62a0 VZ |
33213 | /* The GNU C library defines this for functions which it implements |
33214 | to always fail with ENOSYS. Some functions are actually named | |
33215 | something starting with __ and the normal name is an alias. */ | |
33216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33217 | choke me | |
33218 | #else | |
e6cc62c6 VS |
33219 | char (*f) () = $ac_func; |
33220 | #endif | |
33221 | #ifdef __cplusplus | |
33222 | } | |
2b5f62a0 VZ |
33223 | #endif |
33224 | ||
e6cc62c6 VS |
33225 | int |
33226 | main () | |
33227 | { | |
33228 | return f != $ac_func; | |
33229 | ; | |
33230 | return 0; | |
33231 | } | |
33232 | _ACEOF | |
33233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33235 | (eval $ac_link) 2>&5 | |
33236 | ac_status=$? | |
33237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33238 | (exit $ac_status); } && | |
33239 | { ac_try='test -s conftest$ac_exeext' | |
33240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33241 | (eval $ac_try) 2>&5 | |
33242 | ac_status=$? | |
33243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33244 | (exit $ac_status); }; }; then | |
33245 | eval "$as_ac_var=yes" | |
33246 | else | |
33247 | echo "$as_me: failed program was:" >&5 | |
33248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33249 | ||
33250 | eval "$as_ac_var=no" | |
33251 | fi | |
33252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33253 | fi | |
33254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33255 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33256 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33257 | cat >>confdefs.h <<_ACEOF | |
33258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33259 | _ACEOF | |
2b5f62a0 | 33260 | have_ceil=1 |
2b5f62a0 VZ |
33261 | fi |
33262 | done | |
33263 | ||
e6cc62c6 VS |
33264 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33265 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33266 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33267 | echo "$as_me:$LINENO: result: yes" >&5 |
33268 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33269 | else |
e6cc62c6 VS |
33270 | echo "$as_me:$LINENO: result: no" >&5 |
33271 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33272 | # not sure we should warn the user, crash, etc. |
33273 | fi | |
33274 | fi | |
8284b0c5 MB |
33275 | |
33276 | if test "$wxUSE_GUI" = "yes"; then | |
33277 | ||
e6cc62c6 | 33278 | |
8284b0c5 MB |
33279 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33280 | drawing dynamic erase event exec font image \ | |
1542ea39 | 33281 | minimal propsize rotate shaped widgets" |
b625909c VS |
33282 | |
33283 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33284 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33285 | fi | |
8284b0c5 MB |
33286 | else |
33287 | SAMPLES_SUBDIRS="console" | |
33288 | fi | |
33289 | ||
33290 | ||
e6cc62c6 | 33291 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33292 | -I\${top_srcdir}/include \ |
33293 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33294 | $TOOLKIT_INCLUDE" | |
33295 | ||
fddeb06b VS |
33296 | if test "$GXX" = yes ; then |
33297 | CXXWARNINGS="-Wall" | |
33298 | fi | |
33299 | ||
33300 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33301 | ||
95318f7d | 33302 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33303 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33304 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33305 | |
33306 | ||
fddeb06b | 33307 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 VS |
33308 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
33309 | if test "$wxUSE_GUI" = "yes"; then | |
33310 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33311 | fi | |
fddeb06b VS |
33312 | |
33313 | LDFLAGS="$LDFLAGS $PROFILE" | |
33314 | ||
8284b0c5 MB |
33315 | if test "$wxUSE_GTK" = 1; then |
33316 | WXCONFIG_INCLUDE= | |
33317 | else | |
33318 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33319 | fi | |
33320 | ||
fe0895cf VS |
33321 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33322 | WXUNIV=1 | |
33323 | else | |
33324 | WXUNIV=0 | |
8284b0c5 MB |
33325 | fi |
33326 | ||
8284b0c5 MB |
33327 | |
33328 | ||
33329 | ||
33330 | ||
33331 | ||
33332 | ||
33333 | ||
9747f85d VS |
33334 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33335 | MONOLITHIC=1 | |
33336 | else | |
33337 | MONOLITHIC=0 | |
33338 | fi | |
8284b0c5 | 33339 | |
8ee2dd05 VS |
33340 | VENDOR="custom" |
33341 | OFFICIAL_BUILD=0 | |
33342 | ||
33343 | ||
33344 | ||
8284b0c5 MB |
33345 | |
33346 | ||
33347 | ||
33348 | ||
33349 | ||
33350 | ||
c74dc163 | 33351 | |
fe0895cf | 33352 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33353 | |
33354 | ||
33355 | ||
33356 | ||
33357 | ||
fe0895cf | 33358 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33359 | |
33360 | if test -n "$ac_tool_prefix"; then | |
33361 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33362 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33365 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33367 | else |
fe0895cf VS |
33368 | if test -n "$RANLIB"; then |
33369 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33370 | else |
e6cc62c6 VS |
33371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33372 | for as_dir in $PATH | |
33373 | do | |
33374 | IFS=$as_save_IFS | |
33375 | test -z "$as_dir" && as_dir=. | |
33376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33378 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33380 | break 2 | |
33381 | fi | |
33382 | done | |
33383 | done | |
33384 | ||
10f2d63a | 33385 | fi |
10f2d63a | 33386 | fi |
e6cc62c6 | 33387 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33388 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33389 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33390 | echo "${ECHO_T}$RANLIB" >&6 | |
33391 | else | |
33392 | echo "$as_me:$LINENO: result: no" >&5 | |
33393 | echo "${ECHO_T}no" >&6 | |
33394 | fi | |
33395 | ||
33396 | fi | |
33397 | if test -z "$ac_cv_prog_RANLIB"; then | |
33398 | ac_ct_RANLIB=$RANLIB | |
33399 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33400 | set dummy ranlib; ac_word=$2 | |
33401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33403 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33405 | else | |
33406 | if test -n "$ac_ct_RANLIB"; then | |
33407 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33408 | else | |
33409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33410 | for as_dir in $PATH | |
33411 | do | |
33412 | IFS=$as_save_IFS | |
33413 | test -z "$as_dir" && as_dir=. | |
33414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33416 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33418 | break 2 | |
33419 | fi | |
33420 | done | |
33421 | done | |
33422 | ||
33423 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33424 | fi | |
33425 | fi | |
33426 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33427 | if test -n "$ac_ct_RANLIB"; then | |
33428 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33429 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 33430 | else |
e6cc62c6 VS |
33431 | echo "$as_me:$LINENO: result: no" >&5 |
33432 | echo "${ECHO_T}no" >&6 | |
33433 | fi | |
33434 | ||
33435 | RANLIB=$ac_ct_RANLIB | |
33436 | else | |
33437 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 33438 | fi |
665bbe97 | 33439 | |
fe0895cf VS |
33440 | # Find a good install program. We prefer a C program (faster), |
33441 | # so one script is as good as another. But avoid the broken or | |
33442 | # incompatible versions: | |
33443 | # SysV /etc/install, /usr/sbin/install | |
33444 | # SunOS /usr/etc/install | |
33445 | # IRIX /sbin/install | |
33446 | # AIX /bin/install | |
e6cc62c6 | 33447 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
33448 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
33449 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33450 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33451 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
33452 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
33453 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 33454 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
33455 | if test "${ac_cv_path_install+set}" = set; then |
33456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33457 | else | |
33458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33459 | for as_dir in $PATH | |
33460 | do | |
33461 | IFS=$as_save_IFS | |
33462 | test -z "$as_dir" && as_dir=. | |
33463 | # Account for people who put trailing slashes in PATH elements. | |
33464 | case $as_dir/ in | |
33465 | ./ | .// | /cC/* | \ | |
33466 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
33467 | /usr/ucb/* ) ;; | |
33468 | *) | |
33469 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
33470 | # Don't use installbsd from OSF since it installs stuff as root | |
33471 | # by default. | |
33472 | for ac_prog in ginstall scoinst install; do | |
33473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33474 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
33475 | if test $ac_prog = install && | |
33476 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33477 | # AIX install. It has an incompatible calling convention. | |
33478 | : | |
33479 | elif test $ac_prog = install && | |
33480 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33481 | # program-specific install script used by HP pwplus--don't use. | |
33482 | : | |
33483 | else | |
33484 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
33485 | break 3 | |
33486 | fi | |
33487 | fi | |
fe0895cf | 33488 | done |
e6cc62c6 VS |
33489 | done |
33490 | ;; | |
33491 | esac | |
33492 | done | |
33493 | ||
fe0895cf VS |
33494 | |
33495 | fi | |
33496 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 33497 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
33498 | else |
33499 | # As a last resort, use the slow shell script. We don't cache a | |
33500 | # path for INSTALL within a source directory, because that will | |
33501 | # break other packages using the cache if that directory is | |
33502 | # removed, or if the path is relative. | |
e6cc62c6 | 33503 | INSTALL=$ac_install_sh |
fe0895cf VS |
33504 | fi |
33505 | fi | |
e6cc62c6 VS |
33506 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
33507 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
33508 | |
33509 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
33510 | # It thinks the first close brace ends the variable substitution. | |
33511 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
33512 | ||
e6cc62c6 | 33513 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
33514 | |
33515 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
33516 | ||
e6cc62c6 VS |
33517 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
33518 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
33519 | LN_S=$as_ln_s | |
33520 | if test "$LN_S" = "ln -s"; then | |
33521 | echo "$as_me:$LINENO: result: yes" >&5 | |
33522 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 33523 | else |
e6cc62c6 VS |
33524 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
33525 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
33526 | fi |
33527 | ||
33528 | ||
e6cc62c6 VS |
33529 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
33530 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
33531 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
33532 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
33533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33534 | else |
e6cc62c6 | 33535 | cat >conftest.make <<\_ACEOF |
fe0895cf | 33536 | all: |
e6cc62c6 VS |
33537 | @echo 'ac_maketemp="$(MAKE)"' |
33538 | _ACEOF | |
fe0895cf | 33539 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 33540 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
33541 | if test -n "$ac_maketemp"; then |
33542 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33543 | else | |
33544 | eval ac_cv_prog_make_${ac_make}_set=no | |
33545 | fi | |
e6cc62c6 | 33546 | rm -f conftest.make |
fe0895cf VS |
33547 | fi |
33548 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
33549 | echo "$as_me:$LINENO: result: yes" >&5 |
33550 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
33551 | SET_MAKE= |
33552 | else | |
e6cc62c6 VS |
33553 | echo "$as_me:$LINENO: result: no" >&5 |
33554 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33555 | SET_MAKE="MAKE=${MAKE-make}" |
33556 | fi | |
33557 | ||
e6cc62c6 VS |
33558 | |
33559 | ||
fe0895cf VS |
33560 | if test "$build" != "$host" ; then |
33561 | AR=$host_alias-ar | |
33562 | STRIP=$host_alias-strip | |
33563 | else | |
33564 | # Extract the first word of "ar", so it can be a program name with args. | |
33565 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
33566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33568 | if test "${ac_cv_prog_AR+set}" = set; then | |
33569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33570 | else |
33571 | if test -n "$AR"; then | |
33572 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
33573 | else | |
e6cc62c6 VS |
33574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33575 | for as_dir in $PATH | |
33576 | do | |
33577 | IFS=$as_save_IFS | |
33578 | test -z "$as_dir" && as_dir=. | |
33579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33581 | ac_cv_prog_AR="ar" | |
33582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33583 | break 2 | |
33584 | fi | |
33585 | done | |
33586 | done | |
33587 | ||
fe0895cf VS |
33588 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
33589 | fi | |
33590 | fi | |
e6cc62c6 | 33591 | AR=$ac_cv_prog_AR |
fe0895cf | 33592 | if test -n "$AR"; then |
e6cc62c6 VS |
33593 | echo "$as_me:$LINENO: result: $AR" >&5 |
33594 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 33595 | else |
e6cc62c6 VS |
33596 | echo "$as_me:$LINENO: result: no" >&5 |
33597 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33598 | fi |
33599 | ||
33600 | # Extract the first word of "strip", so it can be a program name with args. | |
33601 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
33602 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33604 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
33605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33606 | else |
33607 | if test -n "$STRIP"; then | |
33608 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33609 | else | |
e6cc62c6 VS |
33610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33611 | for as_dir in $PATH | |
33612 | do | |
33613 | IFS=$as_save_IFS | |
33614 | test -z "$as_dir" && as_dir=. | |
33615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33616 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33617 | ac_cv_prog_STRIP="strip" | |
33618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33619 | break 2 | |
33620 | fi | |
33621 | done | |
33622 | done | |
33623 | ||
fe0895cf VS |
33624 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
33625 | fi | |
33626 | fi | |
e6cc62c6 | 33627 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 33628 | if test -n "$STRIP"; then |
e6cc62c6 VS |
33629 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
33630 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 33631 | else |
e6cc62c6 VS |
33632 | echo "$as_me:$LINENO: result: no" >&5 |
33633 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33634 | fi |
33635 | ||
33636 | fi | |
33637 | ||
33638 | case ${host} in | |
33639 | *-hp-hpux* ) | |
33640 | INSTALL_DIR="mkdir" | |
33641 | ;; | |
33642 | *) INSTALL_DIR="$INSTALL -d" | |
33643 | ;; | |
33644 | esac | |
e6cc62c6 | 33645 | |
fe0895cf | 33646 | |
6b9d41a5 VS |
33647 | LDFLAGS_GUI= |
33648 | case ${host} in | |
33649 | *-*-cygwin* | *-*-mingw32* ) | |
33650 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
33651 | esac | |
33652 | ||
33653 | ||
fe0895cf | 33654 | fi |
e6cc62c6 VS |
33655 | |
33656 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
33657 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 33658 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 33659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 33660 | else |
e6cc62c6 | 33661 | |
fe0895cf VS |
33662 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
33663 | egrep -s GNU > /dev/null); then | |
33664 | bakefile_cv_prog_makeisgnu="yes" | |
33665 | else | |
33666 | bakefile_cv_prog_makeisgnu="no" | |
33667 | fi | |
fe0895cf | 33668 | |
e6cc62c6 | 33669 | fi |
49b0a3aa VS |
33670 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
33671 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
33672 | |
33673 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
33674 | IF_GNU_MAKE="" | |
33675 | else | |
33676 | IF_GNU_MAKE="#" | |
33677 | fi | |
fe0895cf | 33678 | |
e6cc62c6 VS |
33679 | |
33680 | ||
fe0895cf VS |
33681 | PLATFORM_UNIX=0 |
33682 | PLATFORM_WIN32=0 | |
33683 | PLATFORM_MSDOS=0 | |
33684 | PLATFORM_MAC=0 | |
33685 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 33686 | |
fe0895cf VS |
33687 | case "${host}" in |
33688 | *-*-cygwin* | *-*-mingw32* ) | |
33689 | PLATFORM_WIN32=1 | |
33690 | ;; | |
33691 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33692 | PLATFORM_MSDOS=1 | |
33693 | ;; | |
33694 | powerpc-*-darwin* ) | |
33695 | PLATFORM_MAC=1 | |
33696 | PLATFORM_MACOSX=1 | |
33697 | ;; | |
33698 | * ) | |
33699 | PLATFORM_UNIX=1 | |
33700 | ;; | |
33701 | esac | |
33702 | ||
fe0895cf | 33703 | |
e6cc62c6 VS |
33704 | |
33705 | ||
33706 | ||
33707 | ||
33708 | ||
33709 | ||
fe0895cf VS |
33710 | SO_SUFFIX="so" |
33711 | EXEEXT="" | |
33712 | DLLPREFIX=lib | |
e6cc62c6 | 33713 | |
fe0895cf VS |
33714 | case "${host}" in |
33715 | *-hp-hpux* ) | |
33716 | SO_SUFFIX="sl" | |
33717 | ;; | |
33718 | *-*-aix* ) | |
33719 | SO_SUFFIX="a" | |
33720 | ;; | |
33721 | *-*-cygwin* | *-*-mingw32* ) | |
33722 | SO_SUFFIX="dll" | |
33723 | EXEEXT=".exe" | |
33724 | DLLPREFIX="" | |
33725 | ;; | |
33726 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33727 | EXEEXT=".exe" | |
33728 | DLLPREFIX="" | |
33729 | ;; | |
33730 | powerpc-*-darwin* ) | |
33731 | SO_SUFFIX="dylib" | |
33732 | ;; | |
33733 | esac | |
33734 | ||
fe0895cf | 33735 | |
e6cc62c6 VS |
33736 | |
33737 | ||
33738 | ||
33739 | ||
fe0895cf VS |
33740 | SHARED_LD_CC="\$(CC) -shared -o" |
33741 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
33742 | ||
33743 | if test "x$GCC" = "xyes"; then | |
33744 | PIC_FLAG="-fPIC" | |
33745 | fi | |
33746 | ||
33747 | case "${host}" in | |
33748 | *-hp-hpux* ) | |
33749 | if test "x$GCC" = "xyes"; then | |
33750 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
33751 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
33752 | else | |
33753 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
33754 | ||
33755 | SHARED_LD_CC="${CC} -b -o" | |
33756 | SHARED_LD_CXX="${CXX} -b -o" | |
33757 | PIC_FLAG="+Z" | |
33758 | fi | |
33759 | ;; | |
33760 | ||
33761 | *-*-linux* ) | |
33762 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
33763 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
33764 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
33765 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
33766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33767 | else |
fe0895cf | 33768 | |
e6cc62c6 VS |
33769 | cat >conftest.$ac_ext <<_ACEOF |
33770 | #line $LINENO "configure" | |
33771 | /* confdefs.h. */ | |
33772 | _ACEOF | |
33773 | cat confdefs.h >>conftest.$ac_ext | |
33774 | cat >>conftest.$ac_ext <<_ACEOF | |
33775 | /* end confdefs.h. */ | |
33776 | ||
33777 | int | |
33778 | main () | |
33779 | { | |
fe0895cf VS |
33780 | |
33781 | #ifndef __INTEL_COMPILER | |
33782 | #error Not icc | |
33783 | #endif | |
e6cc62c6 VS |
33784 | |
33785 | ; | |
33786 | return 0; | |
33787 | } | |
33788 | _ACEOF | |
33789 | rm -f conftest.$ac_objext | |
33790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33791 | (eval $ac_compile) 2>&5 | |
33792 | ac_status=$? | |
33793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33794 | (exit $ac_status); } && | |
33795 | { ac_try='test -s conftest.$ac_objext' | |
33796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33797 | (eval $ac_try) 2>&5 | |
33798 | ac_status=$? | |
33799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33800 | (exit $ac_status); }; }; then | |
fe0895cf VS |
33801 | bakefile_cv_prog_icc=yes |
33802 | else | |
e6cc62c6 VS |
33803 | echo "$as_me: failed program was:" >&5 |
33804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33805 | ||
33806 | bakefile_cv_prog_icc=no | |
33807 | ||
fe0895cf | 33808 | fi |
e6cc62c6 | 33809 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 33810 | |
e6cc62c6 VS |
33811 | fi |
33812 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
33813 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
33814 | if test "$bakefile_cv_prog_icc" = "yes"; then |
33815 | PIC_FLAG="-KPIC" | |
33816 | fi | |
33817 | fi | |
33818 | ;; | |
33819 | ||
33820 | *-*-solaris2* ) | |
33821 | if test "x$GCC" != xyes ; then | |
33822 | SHARED_LD_CC="${CC} -G -o" | |
33823 | SHARED_LD_CXX="${CXX} -G -o" | |
33824 | PIC_FLAG="-KPIC" | |
33825 | fi | |
33826 | ;; | |
33827 | ||
33828 | *-*-darwin* ) | |
33829 | CFLAGS="$CFLAGS -fno-common" | |
33830 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
33831 | |
33832 | ||
fe0895cf VS |
33833 | cat <<EOF >shared-ld-sh |
33834 | #!/bin/sh | |
33835 | #----------------------------------------------------------------------------- | |
33836 | #-- Name: distrib/mac/shared-ld-sh | |
33837 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
33838 | #-- Author: Gilles Depeyrot | |
33839 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
33840 | #-- Licence: any use permitted | |
33841 | #----------------------------------------------------------------------------- | |
33842 | ||
33843 | verbose=0 | |
33844 | args="" | |
33845 | objects="" | |
33846 | ||
33847 | while test \${#} -gt 0; do | |
33848 | case \${1} in | |
33849 | ||
33850 | -v) | |
33851 | verbose=1 | |
33852 | ;; | |
33853 | ||
33854 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
33855 | # collect these options and values | |
33856 | args="\${args} \${1} \${2}" | |
33857 | shift | |
33858 | ;; | |
33859 | ||
33860 | -l*|-L*|-flat_namespace) | |
33861 | # collect these options | |
33862 | args="\${args} \${1}" | |
33863 | ;; | |
33864 | ||
33865 | -dynamiclib) | |
33866 | # skip these options | |
33867 | ;; | |
33868 | ||
33869 | -*) | |
33870 | echo "shared-ld: unhandled option '\${1}'" | |
33871 | exit 1 | |
33872 | ;; | |
33873 | ||
33874 | *.o | *.a) | |
33875 | # collect object files | |
33876 | objects="\${objects} \${1}" | |
33877 | ;; | |
33878 | ||
33879 | *) | |
33880 | echo "shared-ld: unhandled argument '\${1}'" | |
33881 | exit 1 | |
33882 | ;; | |
33883 | ||
33884 | esac | |
33885 | shift | |
33886 | done | |
33887 | ||
33888 | # | |
33889 | # Link one module containing all the others | |
33890 | # | |
33891 | if test \${verbose} = 1; then | |
33892 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
33893 | fi | |
33894 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
33895 | status=\$? | |
33896 | if test \${status} != 0; then | |
33897 | exit \${status} | |
33898 | fi | |
33899 | ||
33900 | # | |
33901 | # Link the shared library from the single module created | |
33902 | # | |
33903 | if test \${verbose} = 1; then | |
33904 | echo "cc -dynamiclib master.\$\$.o \${args}" | |
33905 | fi | |
33906 | c++ -dynamiclib master.\$\$.o \${args} | |
33907 | status=\$? | |
33908 | if test \${status} != 0; then | |
33909 | exit \${status} | |
33910 | fi | |
33911 | ||
33912 | # | |
33913 | # Remove intermediate module | |
33914 | # | |
33915 | rm -f master.\$\$.o | |
33916 | ||
33917 | exit 0 | |
33918 | EOF | |
33919 | chmod +x shared-ld-sh | |
33920 | ||
33921 | SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o" | |
33922 | SHARED_LD_CXX="$SHARED_LD_CC" | |
33923 | PIC_FLAG="-dynamic -fPIC" | |
33924 | ;; | |
33925 | ||
33926 | *-*-aix* ) | |
33927 | if test "x$GCC" != "xyes"; then | |
33928 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
33929 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
33930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33932 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
33933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33934 | else |
33935 | if test -n "$AIX_CXX_LD"; then | |
33936 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
33937 | else | |
e6cc62c6 VS |
33938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33939 | for as_dir in $PATH | |
33940 | do | |
33941 | IFS=$as_save_IFS | |
33942 | test -z "$as_dir" && as_dir=. | |
33943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33945 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
33946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33947 | break 2 | |
33948 | fi | |
33949 | done | |
33950 | done | |
33951 | ||
fe0895cf VS |
33952 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
33953 | fi | |
33954 | fi | |
e6cc62c6 | 33955 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 33956 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
33957 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
33958 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 33959 | else |
e6cc62c6 VS |
33960 | echo "$as_me:$LINENO: result: no" >&5 |
33961 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33962 | fi |
33963 | ||
33964 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
33965 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
33966 | fi | |
33967 | ;; | |
33968 | ||
33969 | *-*-beos* ) | |
33970 | SHARED_LD_CC="${LD} -shared -o" | |
33971 | SHARED_LD_CXX="${LD} -shared -o" | |
33972 | ;; | |
33973 | ||
33974 | *-*-irix* ) | |
33975 | if test "x$GCC" != "xyes"; then | |
33976 | PIC_FLAG="-KPIC" | |
33977 | fi | |
33978 | ;; | |
e6cc62c6 | 33979 | |
fe0895cf VS |
33980 | *-*-cygwin* | *-*-mingw32* ) |
33981 | PIC_FLAG="" | |
33982 | ;; | |
e6cc62c6 | 33983 | |
fe0895cf VS |
33984 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
33985 | *-*-sunos4* | \ | |
33986 | *-*-osf* | \ | |
33987 | *-*-dgux5* | \ | |
33988 | *-*-sysv5* ) | |
33989 | ;; | |
33990 | ||
33991 | *) | |
e6cc62c6 VS |
33992 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
33993 | echo "$as_me: error: unknown system type $host." >&2;} | |
33994 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
33995 | esac |
33996 | ||
fe0895cf | 33997 | |
e6cc62c6 VS |
33998 | |
33999 | ||
34000 | ||
34001 | ||
fe0895cf VS |
34002 | USE_SOVERSION=0 |
34003 | USE_SOVERLINUX=0 | |
34004 | USE_SOVERSOLARIS=0 | |
34005 | USE_SOSYMLINKS=0 | |
34006 | USE_MACVERSION=0 | |
34007 | SONAME_FLAG= | |
34008 | ||
34009 | case "${host}" in | |
34010 | *-*-linux* ) | |
34011 | SONAME_FLAG="-Wl,-soname," | |
34012 | USE_SOVERSION=1 | |
34013 | USE_SOVERLINUX=1 | |
34014 | USE_SOSYMLINKS=1 | |
34015 | ;; | |
34016 | ||
34017 | *-*-solaris2* ) | |
34018 | SONAME_FLAG="-h " | |
34019 | USE_SOVERSION=1 | |
34020 | USE_SOVERSOLARIS=1 | |
34021 | USE_SOSYMLINKS=1 | |
34022 | ;; | |
34023 | ||
34024 | *-*-darwin* ) | |
34025 | USE_MACVERSION=1 | |
34026 | USE_SOVERSION=1 | |
34027 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34028 | ;; |
fe0895cf VS |
34029 | esac |
34030 | ||
fe0895cf | 34031 | |
e6cc62c6 VS |
34032 | |
34033 | ||
34034 | ||
34035 | ||
34036 | ||
34037 | ||
34038 | ||
49b0a3aa VS |
34039 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34040 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34041 | DEPS_TRACKING=0 | |
34042 | ||
fe0895cf | 34043 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34044 | DEPSMODE=gcc |
34045 | DEPS_TRACKING=1 | |
34046 | echo "$as_me:$LINENO: result: gcc" >&5 | |
34047 | echo "${ECHO_T}gcc" >&6 | |
34048 | else | |
34049 | echo "$as_me:$LINENO: result: none" >&5 | |
34050 | echo "${ECHO_T}none" >&6 | |
34051 | fi | |
34052 | ||
34053 | if test $DEPS_TRACKING = 1 ; then | |
34054 | cat <<EOF >bk-deps | |
34055 | #!/bin/sh | |
34056 | ||
34057 | # This script is part of Bakefile (http://bakefile.sf.net) autoconf script. | |
34058 | # It is used to track C/C++ files dependencies in portable way. | |
34059 | # | |
34060 | # Permission is given to use this file in any way. | |
34061 | ||
34062 | DEPSMODE=$DEPSMODE | |
34063 | DEPSDIR=.deps | |
34064 | ||
34065 | mkdir -p \$DEPSDIR | |
34066 | ||
34067 | if test \$DEPSMODE = gcc ; then | |
34068 | \${*} -MMD | |
34069 | status=\${?} | |
34070 | if test \${status} != 0 ; then | |
34071 | exit \${status} | |
34072 | fi | |
34073 | # move created file to the location we want it in: | |
34074 | while test \${#} -gt 0; do | |
34075 | case "\${1}" in | |
34076 | -o ) | |
34077 | shift | |
34078 | objfile=\${1} | |
34079 | ;; | |
34080 | -* ) | |
34081 | ;; | |
34082 | * ) | |
34083 | srcfile=\${1} | |
34084 | ;; | |
34085 | esac | |
34086 | shift | |
34087 | done | |
34088 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34089 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34090 | if test -f \$depfile ; then |
34091 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34092 | rm -f \$depfile | |
34093 | else | |
34094 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34095 | if test -f \$depfile ; then | |
4c8b7f4b | 34096 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34097 | rm -f \$depfile |
34098 | fi | |
34099 | fi | |
49b0a3aa VS |
34100 | exit 0 |
34101 | else | |
34102 | \${*} | |
34103 | exit \${?} | |
34104 | fi | |
34105 | EOF | |
34106 | chmod +x bk-deps | |
fe0895cf | 34107 | fi |
fe0895cf | 34108 | |
e6cc62c6 VS |
34109 | |
34110 | ||
34111 | ||
fe0895cf VS |
34112 | RESCOMP= |
34113 | SETFILE= | |
34114 | ||
e6cc62c6 | 34115 | case ${host} in |
fe0895cf VS |
34116 | *-*-cygwin* | *-*-mingw32* ) |
34117 | if test "$build" != "$host" ; then | |
34118 | RESCOMP=$host_alias-windres | |
34119 | else | |
34120 | # Extract the first word of "windres", so it can be a program name with args. | |
34121 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34122 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34124 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34126 | else |
34127 | if test -n "$RESCOMP"; then | |
34128 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34129 | else | |
e6cc62c6 VS |
34130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34131 | for as_dir in $PATH | |
34132 | do | |
34133 | IFS=$as_save_IFS | |
34134 | test -z "$as_dir" && as_dir=. | |
34135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34137 | ac_cv_prog_RESCOMP="windres" | |
34138 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34139 | break 2 | |
34140 | fi | |
34141 | done | |
34142 | done | |
34143 | ||
fe0895cf VS |
34144 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34145 | fi | |
34146 | fi | |
e6cc62c6 | 34147 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34148 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34149 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34150 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34151 | else |
e6cc62c6 VS |
34152 | echo "$as_me:$LINENO: result: no" >&5 |
34153 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34154 | fi |
34155 | ||
34156 | fi | |
34157 | ;; | |
e6cc62c6 | 34158 | |
fe0895cf VS |
34159 | *-*-darwin* ) |
34160 | # Extract the first word of "Rez", so it can be a program name with args. | |
34161 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34164 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34166 | else |
34167 | if test -n "$RESCOMP"; then | |
34168 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34169 | else | |
e6cc62c6 VS |
34170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34171 | for as_dir in $PATH | |
34172 | do | |
34173 | IFS=$as_save_IFS | |
34174 | test -z "$as_dir" && as_dir=. | |
34175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34177 | ac_cv_prog_RESCOMP="Rez" | |
34178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34179 | break 2 | |
34180 | fi | |
34181 | done | |
34182 | done | |
34183 | ||
fe0895cf VS |
34184 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34185 | fi | |
34186 | fi | |
e6cc62c6 | 34187 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34188 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34189 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34190 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34191 | else |
e6cc62c6 VS |
34192 | echo "$as_me:$LINENO: result: no" >&5 |
34193 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34194 | fi |
34195 | ||
34196 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34197 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34200 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34202 | else |
34203 | if test -n "$SETFILE"; then | |
34204 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34205 | else | |
e6cc62c6 VS |
34206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34207 | for as_dir in $PATH | |
34208 | do | |
34209 | IFS=$as_save_IFS | |
34210 | test -z "$as_dir" && as_dir=. | |
34211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34213 | ac_cv_prog_SETFILE="SetFile" | |
34214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34215 | break 2 | |
34216 | fi | |
34217 | done | |
34218 | done | |
34219 | ||
fe0895cf VS |
34220 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34221 | fi | |
34222 | fi | |
e6cc62c6 | 34223 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34224 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34225 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34226 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34227 | else |
e6cc62c6 VS |
34228 | echo "$as_me:$LINENO: result: no" >&5 |
34229 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34230 | fi |
34231 | ||
34232 | ;; | |
34233 | esac | |
34234 | ||
fe0895cf VS |
34235 | |
34236 | ||
e6cc62c6 VS |
34237 | |
34238 | ||
34239 | ||
34240 | ||
d78c94f2 | 34241 | COND_BUILD_DEBUG="#" |
6f628073 | 34242 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34243 | COND_BUILD_DEBUG="" |
6f628073 VS |
34244 | fi |
34245 | ||
d78c94f2 | 34246 | COND_BUILD_RELEASE="#" |
6f628073 | 34247 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34248 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
34249 | fi |
34250 | ||
f95cd8fa VS |
34251 | COND_DEPS_TRACKING_0="#" |
34252 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34253 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
34254 | fi |
34255 | ||
8ee2dd05 VS |
34256 | COND_DEPS_TRACKING_1="#" |
34257 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34258 | COND_DEPS_TRACKING_1="" | |
34259 | fi | |
34260 | ||
6f628073 VS |
34261 | COND_MONOLITHIC_0="#" |
34262 | if test "x$MONOLITHIC" = "x0" ; then | |
34263 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
34264 | fi |
34265 | ||
6f628073 VS |
34266 | COND_MONOLITHIC_0_SHARED_0="#" |
34267 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
34268 | COND_MONOLITHIC_0_SHARED_0="" | |
34269 | fi | |
34270 | ||
34271 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
34272 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
34273 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 34274 | fi |
e6cc62c6 | 34275 | |
8ee2dd05 VS |
34276 | COND_MONOLITHIC_0_SHARED_1="#" |
34277 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
34278 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 34279 | fi |
e6cc62c6 | 34280 | |
6f628073 VS |
34281 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
34282 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
34283 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
34284 | fi | |
34285 | ||
3af038c0 VS |
34286 | COND_MONOLITHIC_1="#" |
34287 | if test "x$MONOLITHIC" = "x1" ; then | |
34288 | COND_MONOLITHIC_1="" | |
34289 | fi | |
34290 | ||
6f628073 VS |
34291 | COND_MONOLITHIC_1_SHARED_0="#" |
34292 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
34293 | COND_MONOLITHIC_1_SHARED_0="" | |
34294 | fi | |
34295 | ||
34296 | COND_MONOLITHIC_1_SHARED_1="#" | |
34297 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
34298 | COND_MONOLITHIC_1_SHARED_1="" | |
34299 | fi | |
34300 | ||
3af038c0 VS |
34301 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
34302 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34303 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
34304 | fi | |
34305 | ||
34306 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
34307 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34308 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
34309 | fi | |
34310 | ||
6f628073 VS |
34311 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
34312 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
34313 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
34314 | fi | |
34315 | ||
3af038c0 VS |
34316 | COND_PLATFORM_MACOSX_1="#" |
34317 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
34318 | COND_PLATFORM_MACOSX_1="" | |
34319 | fi | |
34320 | ||
8ee2dd05 VS |
34321 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
34322 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
34323 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
34324 | fi | |
34325 | ||
3af038c0 VS |
34326 | COND_PLATFORM_UNIX_1="#" |
34327 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
34328 | COND_PLATFORM_UNIX_1="" | |
34329 | fi | |
34330 | ||
34331 | COND_PLATFORM_WIN32_0="#" | |
34332 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
34333 | COND_PLATFORM_WIN32_0="" | |
34334 | fi | |
34335 | ||
34336 | COND_PLATFORM_WIN32_1="#" | |
34337 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
34338 | COND_PLATFORM_WIN32_1="" | |
34339 | fi | |
34340 | ||
6f628073 VS |
34341 | COND_TOOLKIT_COCOA="#" |
34342 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
34343 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
34344 | fi |
34345 | ||
6f628073 VS |
34346 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
34347 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34348 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34349 | fi |
34350 | ||
6f628073 VS |
34351 | COND_TOOLKIT_GTK="#" |
34352 | if test "x$TOOLKIT" = "xGTK" ; then | |
34353 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
34354 | fi |
34355 | ||
6f628073 VS |
34356 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
34357 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
34358 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
34359 | fi |
34360 | ||
6f628073 VS |
34361 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
34362 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34363 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34364 | fi |
34365 | ||
6f628073 VS |
34366 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#" |
34367 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34368 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="" | |
8ee2dd05 VS |
34369 | fi |
34370 | ||
3af038c0 VS |
34371 | COND_TOOLKIT_MAC="#" |
34372 | if test "x$TOOLKIT" = "xMAC" ; then | |
34373 | COND_TOOLKIT_MAC="" | |
34374 | fi | |
34375 | ||
6f628073 VS |
34376 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
34377 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34378 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34379 | fi |
34380 | ||
6f628073 VS |
34381 | COND_TOOLKIT_MGL="#" |
34382 | if test "x$TOOLKIT" = "xMGL" ; then | |
34383 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
34384 | fi |
34385 | ||
6f628073 VS |
34386 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
34387 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
34388 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
34389 | fi |
34390 | ||
6f628073 VS |
34391 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#" |
34392 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34393 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="" | |
8ee2dd05 VS |
34394 | fi |
34395 | ||
6f628073 VS |
34396 | COND_TOOLKIT_MOTIF="#" |
34397 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
34398 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
34399 | fi |
34400 | ||
6f628073 VS |
34401 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
34402 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
34403 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 34404 | fi |
e6cc62c6 | 34405 | |
6f628073 VS |
34406 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
34407 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34408 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34409 | fi |
34410 | ||
6f628073 VS |
34411 | COND_TOOLKIT_MSW="#" |
34412 | if test "x$TOOLKIT" = "xMSW" ; then | |
34413 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
34414 | fi |
34415 | ||
6f628073 VS |
34416 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
34417 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
34418 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 34419 | fi |
e6cc62c6 | 34420 | |
6f628073 VS |
34421 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
34422 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34423 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 34424 | fi |
e6cc62c6 | 34425 | |
6f628073 VS |
34426 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#" |
34427 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34428 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="" | |
f95cd8fa VS |
34429 | fi |
34430 | ||
6f628073 VS |
34431 | COND_TOOLKIT_OS2="#" |
34432 | if test "x$TOOLKIT" = "xOS2" ; then | |
34433 | COND_TOOLKIT_OS2="" | |
9747f85d VS |
34434 | fi |
34435 | ||
6f628073 VS |
34436 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" |
34437 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34438 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
f95cd8fa VS |
34439 | fi |
34440 | ||
6f628073 VS |
34441 | COND_TOOLKIT_X11="#" |
34442 | if test "x$TOOLKIT" = "xX11" ; then | |
34443 | COND_TOOLKIT_X11="" | |
9747f85d VS |
34444 | fi |
34445 | ||
6f628073 VS |
34446 | COND_TOOLKIT_X11_USE_GUI_1="#" |
34447 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
34448 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
34449 | fi |
34450 | ||
8ee2dd05 VS |
34451 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#" |
34452 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34453 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="" | |
f95cd8fa VS |
34454 | fi |
34455 | ||
3af038c0 VS |
34456 | COND_UNICODE_1="#" |
34457 | if test "x$UNICODE" = "x1" ; then | |
34458 | COND_UNICODE_1="" | |
34459 | fi | |
34460 | ||
34461 | COND_USE_GUI_0="#" | |
34462 | if test "x$USE_GUI" = "x0" ; then | |
34463 | COND_USE_GUI_0="" | |
34464 | fi | |
34465 | ||
34466 | COND_USE_GUI_1="#" | |
34467 | if test "x$USE_GUI" = "x1" ; then | |
34468 | COND_USE_GUI_1="" | |
34469 | fi | |
34470 | ||
e6cc62c6 | 34471 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
34472 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
34473 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 34474 | fi |
e6cc62c6 VS |
34475 | |
34476 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
34477 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
34478 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
34479 | fi |
34480 | ||
6f628073 VS |
34481 | COND_USE_SOSYMLINKS_1="#" |
34482 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
34483 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
34484 | fi |
34485 | ||
6f628073 VS |
34486 | COND_USE_SOVERLINUX_1="#" |
34487 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
34488 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
34489 | fi |
34490 | ||
6f628073 VS |
34491 | COND_USE_SOVERSION_0="#" |
34492 | if test "x$USE_SOVERSION" = "x0" ; then | |
34493 | COND_USE_SOVERSION_0="" | |
fddeb06b | 34494 | fi |
fe0895cf | 34495 | |
6f628073 VS |
34496 | COND_USE_SOVERSOLARIS_1="#" |
34497 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
34498 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 34499 | fi |
fe0895cf | 34500 | |
3af038c0 VS |
34501 | COND_WXUNIV_1="#" |
34502 | if test "x$WXUNIV" = "x1" ; then | |
34503 | COND_WXUNIV_1="" | |
34504 | fi | |
34505 | ||
02980527 VS |
34506 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
34507 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
34508 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
34509 | fi | |
34510 | ||
34511 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
34512 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
34513 | COND_WXUSE_LIBPNG_BUILTIN="" | |
34514 | fi | |
34515 | ||
34516 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
34517 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
34518 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
34519 | fi | |
34520 | ||
34521 | COND_WXUSE_ODBC_BUILTIN="#" | |
34522 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
34523 | COND_WXUSE_ODBC_BUILTIN="" | |
34524 | fi | |
34525 | ||
34526 | COND_WXUSE_REGEX_BUILTIN="#" | |
34527 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
34528 | COND_WXUSE_REGEX_BUILTIN="" | |
34529 | fi | |
34530 | ||
34531 | COND_WXUSE_ZLIB_BUILTIN="#" | |
34532 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
34533 | COND_WXUSE_ZLIB_BUILTIN="" | |
34534 | fi | |
34535 | ||
dc838d98 VS |
34536 | COND_PLATFORM_MAC_1="#" |
34537 | if test "x$PLATFORM_MAC" = "x1" ; then | |
34538 | COND_PLATFORM_MAC_1="" | |
34539 | fi | |
34540 | ||
34541 | COND_SHARED_1="#" | |
34542 | if test "x$SHARED" = "x1" ; then | |
34543 | COND_SHARED_1="" | |
34544 | fi | |
34545 | ||
34546 | COND_SHARED_0="#" | |
34547 | if test "x$SHARED" = "x0" ; then | |
34548 | COND_SHARED_0="" | |
34549 | fi | |
34550 | ||
fe0895cf | 34551 | |
fe0895cf | 34552 | |
fe0895cf | 34553 | |
fe0895cf VS |
34554 | |
34555 | ||
fddeb06b | 34556 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
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 | ||
34612 | ||
34613 | ||
34614 | ||
34615 | ||
34616 | ||
34617 | ||
34618 | ||
34619 | ||
34620 | ||
34621 | ||
34622 | ||
34623 | ||
34624 | ||
34625 | ||
34626 | ||
34627 | ||
34628 | ||
34629 | ||
34630 | ||
34631 | ||
34632 | ||
34633 | ||
34634 | ||
34635 | ||
34636 | ||
34637 | ||
34638 | ||
34639 | ||
34640 | ||
34641 | ||
34642 | ||
34643 | ||
34644 | ||
34645 | ||
34646 | ||
34647 | ||
34648 | ||
34649 | ||
34650 | ||
fe0895cf | 34651 | |
f0290fca VS |
34652 | |
34653 | ||
e6cc62c6 VS |
34654 | |
34655 | ||
34656 | ||
34657 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
34658 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34659 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34660 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34662 | else | |
34663 | cat >conftest.make <<\_ACEOF | |
34664 | all: | |
34665 | @echo 'ac_maketemp="$(MAKE)"' | |
34666 | _ACEOF | |
34667 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
34668 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
34669 | if test -n "$ac_maketemp"; then | |
34670 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34671 | else | |
34672 | eval ac_cv_prog_make_${ac_make}_set=no | |
34673 | fi | |
34674 | rm -f conftest.make | |
34675 | fi | |
34676 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
34677 | echo "$as_me:$LINENO: result: yes" >&5 | |
34678 | echo "${ECHO_T}yes" >&6 | |
34679 | SET_MAKE= | |
34680 | else | |
34681 | echo "$as_me:$LINENO: result: no" >&5 | |
34682 | echo "${ECHO_T}no" >&6 | |
34683 | SET_MAKE="MAKE=${MAKE-make}" | |
34684 | fi | |
34685 | ||
34686 | ||
34687 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
34688 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
34689 | fi | |
34690 | ||
34691 | ac_config_headers="$ac_config_headers setup.h" | |
34692 | ||
34693 | ||
81345eef | 34694 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
34695 | |
34696 | ||
34697 | ac_config_commands="$ac_config_commands default" | |
34698 | ||
34699 | ||
9de9b8f0 | 34700 | |
6c3e36af VZ |
34701 | if test "$wxUSE_GUI" = "yes"; then |
34702 | SUBDIRS="samples demos utils contrib" | |
34703 | else SUBDIRS="samples utils" | |
34704 | fi | |
e6cc62c6 | 34705 | |
166263e6 | 34706 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 34707 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 34708 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 VZ |
34709 | if test ${subdir} = "samples"; then |
34710 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
34711 | if test -d $srcdir/samples/$sample; then | |
34712 | makefiles="samples/$sample/Makefile.in $makefiles" | |
34713 | fi | |
34714 | done | |
34715 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
34716 | fi | |
6c3e36af VZ |
34717 | else if test ${subdir} = "samples"; then |
34718 | makefiles="samples/console/Makefile.in" | |
34719 | else makefiles="utils/HelpGen/Makefile.in \ | |
34720 | utils/HelpGen/src/Makefile.in \ | |
34721 | utils/makegen/Makefile.in" | |
34722 | fi | |
34723 | fi | |
34724 | ||
9747f85d VS |
34725 | for mkin in $makefiles ; do |
34726 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
34727 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 34728 | |
9747f85d VS |
34729 | done |
34730 | fi | |
34731 | done | |
e6cc62c6 | 34732 | |
9de9b8f0 | 34733 | |
e6cc62c6 VS |
34734 | cat >confcache <<\_ACEOF |
34735 | # This file is a shell script that caches the results of configure | |
34736 | # tests run on this system so they can be shared between configure | |
34737 | # scripts and configure runs, see configure's option --config-cache. | |
34738 | # It is not useful on other systems. If it contains results you don't | |
34739 | # want to keep, you may remove or edit it. | |
34740 | # | |
34741 | # config.status only pays attention to the cache file if you give it | |
34742 | # the --recheck option to rerun configure. | |
34743 | # | |
34744 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
34745 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
34746 | # following values. | |
34747 | ||
34748 | _ACEOF | |
34749 | ||
34750 | # The following way of writing the cache mishandles newlines in values, | |
34751 | # but we know of no workaround that is simple, portable, and efficient. | |
34752 | # So, don't put newlines in cache variables' values. | |
34753 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
34754 | # and sets the high bit in the cache file unless we assign to the vars. | |
34755 | { | |
34756 | (set) 2>&1 | | |
34757 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
34758 | *ac_space=\ *) | |
34759 | # `set' does not quote correctly, so add quotes (double-quote | |
34760 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
34761 | sed -n \ | |
34762 | "s/'/'\\\\''/g; | |
34763 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
34764 | ;; | |
34765 | *) | |
34766 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
34767 | sed -n \ | |
34768 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
34769 | ;; | |
34770 | esac; | |
34771 | } | | |
34772 | sed ' | |
34773 | t clear | |
34774 | : clear | |
34775 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
34776 | t end | |
34777 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
34778 | : end' >>confcache | |
34779 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
34780 | if test -w $cache_file; then | |
34781 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
34782 | cat confcache >$cache_file | |
34783 | else | |
34784 | echo "not updating unwritable cache $cache_file" | |
34785 | fi | |
34786 | fi | |
34787 | rm -f confcache | |
34788 | ||
34789 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
34790 | # Let make expand exec_prefix. | |
34791 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
34792 | ||
34793 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
34794 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
34795 | # trailing colons and then remove the whole line if VPATH becomes empty | |
34796 | # (actually we leave an empty line to preserve line numbers). | |
34797 | if test "x$srcdir" = x.; then | |
34798 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
34799 | s/:*\$(srcdir):*/:/; | |
34800 | s/:*\${srcdir}:*/:/; | |
34801 | s/:*@srcdir@:*/:/; | |
34802 | s/^\([^=]*=[ ]*\):*/\1/; | |
34803 | s/:*$//; | |
34804 | s/^[^=]*=[ ]*$//; | |
34805 | }' | |
34806 | fi | |
34807 | ||
34808 | DEFS=-DHAVE_CONFIG_H | |
34809 | ||
34810 | ac_libobjs= | |
34811 | ac_ltlibobjs= | |
34812 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
34813 | # 1. Remove the extension, and $U if already installed. | |
34814 | ac_i=`echo "$ac_i" | | |
34815 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
34816 | # 2. Add them. | |
34817 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
34818 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
34819 | done | |
34820 | LIBOBJS=$ac_libobjs | |
34821 | ||
34822 | LTLIBOBJS=$ac_ltlibobjs | |
34823 | ||
34824 | ||
34825 | ||
34826 | : ${CONFIG_STATUS=./config.status} | |
34827 | ac_clean_files_save=$ac_clean_files | |
34828 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
34829 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
34830 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
34831 | cat >$CONFIG_STATUS <<_ACEOF | |
34832 | #! $SHELL | |
34833 | # Generated by $as_me. | |
34834 | # Run this file to recreate the current configuration. | |
34835 | # Compiler output produced by configure, useful for debugging | |
34836 | # configure, is in config.log if it exists. | |
34837 | ||
34838 | debug=false | |
34839 | ac_cs_recheck=false | |
34840 | ac_cs_silent=false | |
34841 | SHELL=\${CONFIG_SHELL-$SHELL} | |
34842 | _ACEOF | |
34843 | ||
34844 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34845 | ## --------------------- ## | |
34846 | ## M4sh Initialization. ## | |
34847 | ## --------------------- ## | |
34848 | ||
34849 | # Be Bourne compatible | |
34850 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
34851 | emulate sh | |
34852 | NULLCMD=: | |
34853 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
34854 | # is contrary to our usage. Disable this feature. | |
34855 | alias -g '${1+"$@"}'='"$@"' | |
34856 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
34857 | set -o posix | |
34858 | fi | |
34859 | ||
34860 | # Support unset when possible. | |
34861 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
34862 | as_unset=unset | |
34863 | else | |
34864 | as_unset=false | |
34865 | fi | |
34866 | ||
34867 | ||
34868 | # Work around bugs in pre-3.0 UWIN ksh. | |
34869 | $as_unset ENV MAIL MAILPATH | |
34870 | PS1='$ ' | |
34871 | PS2='> ' | |
34872 | PS4='+ ' | |
34873 | ||
34874 | # NLS nuisances. | |
34875 | for as_var in \ | |
34876 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
34877 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
34878 | LC_TELEPHONE LC_TIME | |
34879 | do | |
34880 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
34881 | eval $as_var=C; export $as_var | |
34882 | else | |
34883 | $as_unset $as_var | |
34884 | fi | |
34885 | done | |
34886 | ||
34887 | # Required to use basename. | |
34888 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
34889 | as_expr=expr | |
34890 | else | |
34891 | as_expr=false | |
34892 | fi | |
34893 | ||
34894 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
34895 | as_basename=basename | |
34896 | else | |
34897 | as_basename=false | |
34898 | fi | |
34899 | ||
34900 | ||
34901 | # Name of the executable. | |
34902 | as_me=`$as_basename "$0" || | |
34903 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
34904 | X"$0" : 'X\(//\)$' \| \ | |
34905 | X"$0" : 'X\(/\)$' \| \ | |
34906 | . : '\(.\)' 2>/dev/null || | |
34907 | echo X/"$0" | | |
34908 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
34909 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
34910 | /^X\/\(\/\).*/{ s//\1/; q; } | |
34911 | s/.*/./; q'` | |
34912 | ||
34913 | ||
34914 | # PATH needs CR, and LINENO needs CR and PATH. | |
34915 | # Avoid depending upon Character Ranges. | |
34916 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34917 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
34918 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
34919 | as_cr_digits='0123456789' | |
34920 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
34921 | ||
34922 | # The user is always right. | |
34923 | if test "${PATH_SEPARATOR+set}" != set; then | |
34924 | echo "#! /bin/sh" >conf$$.sh | |
34925 | echo "exit 0" >>conf$$.sh | |
34926 | chmod +x conf$$.sh | |
34927 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
34928 | PATH_SEPARATOR=';' | |
34929 | else | |
34930 | PATH_SEPARATOR=: | |
34931 | fi | |
34932 | rm -f conf$$.sh | |
34933 | fi | |
34934 | ||
34935 | ||
34936 | as_lineno_1=$LINENO | |
34937 | as_lineno_2=$LINENO | |
34938 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34939 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34940 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
34941 | # Find who we are. Look in the path if we contain no path at all | |
34942 | # relative or not. | |
34943 | case $0 in | |
34944 | *[\\/]* ) as_myself=$0 ;; | |
34945 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34946 | for as_dir in $PATH | |
34947 | do | |
34948 | IFS=$as_save_IFS | |
34949 | test -z "$as_dir" && as_dir=. | |
34950 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
34951 | done | |
34952 | ||
34953 | ;; | |
34954 | esac | |
34955 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
34956 | # in which case we are not to be found in the path. | |
34957 | if test "x$as_myself" = x; then | |
34958 | as_myself=$0 | |
34959 | fi | |
34960 | if test ! -f "$as_myself"; then | |
34961 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
34962 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
34963 | { (exit 1); exit 1; }; } | |
34964 | fi | |
34965 | case $CONFIG_SHELL in | |
34966 | '') | |
34967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34968 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
34969 | do | |
34970 | IFS=$as_save_IFS | |
34971 | test -z "$as_dir" && as_dir=. | |
34972 | for as_base in sh bash ksh sh5; do | |
34973 | case $as_dir in | |
34974 | /*) | |
34975 | if ("$as_dir/$as_base" -c ' | |
34976 | as_lineno_1=$LINENO | |
34977 | as_lineno_2=$LINENO | |
34978 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34979 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34980 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
34981 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
34982 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
34983 | CONFIG_SHELL=$as_dir/$as_base | |
34984 | export CONFIG_SHELL | |
34985 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
34986 | fi;; | |
34987 | esac | |
34988 | done | |
34989 | done | |
34990 | ;; | |
34991 | esac | |
34992 | ||
34993 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
34994 | # uniformly replaced by the line number. The first 'sed' inserts a | |
34995 | # line-number line before each line; the second 'sed' does the real | |
34996 | # work. The second script uses 'N' to pair each line-number line | |
34997 | # with the numbered line, and appends trailing '-' during | |
34998 | # substitution so that $LINENO is not a special case at line end. | |
34999 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35000 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35001 | sed '=' <$as_myself | | |
35002 | sed ' | |
35003 | N | |
35004 | s,$,-, | |
35005 | : loop | |
35006 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35007 | t loop | |
35008 | s,-$,, | |
35009 | s,^['$as_cr_digits']*\n,, | |
35010 | ' >$as_me.lineno && | |
35011 | chmod +x $as_me.lineno || | |
35012 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35013 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35014 | { (exit 1); exit 1; }; } | |
35015 | ||
35016 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35017 | # (the dirname of $[0] is not the place where we might find the | |
35018 | # original and so on. Autoconf is especially sensible to this). | |
35019 | . ./$as_me.lineno | |
35020 | # Exit status is that of the last command. | |
35021 | exit | |
35022 | } | |
35023 | ||
35024 | ||
35025 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35026 | *c*,-n*) ECHO_N= ECHO_C=' | |
35027 | ' ECHO_T=' ' ;; | |
35028 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35029 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35030 | esac | |
35031 | ||
35032 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35033 | as_expr=expr | |
35034 | else | |
35035 | as_expr=false | |
35036 | fi | |
35037 | ||
35038 | rm -f conf$$ conf$$.exe conf$$.file | |
35039 | echo >conf$$.file | |
35040 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35041 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35042 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35043 | if test -f conf$$.exe; then | |
35044 | # Don't use ln at all; we don't have any links | |
35045 | as_ln_s='cp -p' | |
35046 | else | |
35047 | as_ln_s='ln -s' | |
35048 | fi | |
35049 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35050 | as_ln_s=ln | |
35051 | else | |
35052 | as_ln_s='cp -p' | |
35053 | fi | |
35054 | rm -f conf$$ conf$$.exe conf$$.file | |
35055 | ||
35056 | if mkdir -p . 2>/dev/null; then | |
35057 | as_mkdir_p=: | |
35058 | else | |
35059 | as_mkdir_p=false | |
35060 | fi | |
35061 | ||
35062 | as_executable_p="test -f" | |
35063 | ||
35064 | # Sed expression to map a string onto a valid CPP name. | |
35065 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35066 | ||
35067 | # Sed expression to map a string onto a valid variable name. | |
35068 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35069 | ||
35070 | ||
35071 | # IFS | |
35072 | # We need space, tab and new line, in precisely that order. | |
35073 | as_nl=' | |
35074 | ' | |
35075 | IFS=" $as_nl" | |
35076 | ||
35077 | # CDPATH. | |
35078 | $as_unset CDPATH | |
35079 | ||
35080 | exec 6>&1 | |
35081 | ||
35082 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35083 | # report actual input values of CONFIG_FILES etc. instead of their | |
35084 | # values after options handling. Logging --version etc. is OK. | |
35085 | exec 5>>config.log | |
35086 | { | |
35087 | echo | |
35088 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35089 | ## Running $as_me. ## | |
35090 | _ASBOX | |
35091 | } >&5 | |
35092 | cat >&5 <<_CSEOF | |
35093 | ||
35094 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35095 | generated by GNU Autoconf 2.57. Invocation command line was | |
35096 | ||
35097 | CONFIG_FILES = $CONFIG_FILES | |
35098 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35099 | CONFIG_LINKS = $CONFIG_LINKS | |
35100 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35101 | $ $0 $@ | |
35102 | ||
35103 | _CSEOF | |
35104 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35105 | echo >&5 | |
35106 | _ACEOF | |
35107 | ||
35108 | # Files that config.status was made for. | |
35109 | if test -n "$ac_config_files"; then | |
35110 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35111 | fi | |
35112 | ||
35113 | if test -n "$ac_config_headers"; then | |
35114 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35115 | fi | |
35116 | ||
35117 | if test -n "$ac_config_links"; then | |
35118 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35119 | fi | |
35120 | ||
35121 | if test -n "$ac_config_commands"; then | |
35122 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35123 | fi | |
35124 | ||
35125 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35126 | ||
35127 | ac_cs_usage="\ | |
35128 | \`$as_me' instantiates files from templates according to the | |
35129 | current configuration. | |
35130 | ||
35131 | Usage: $0 [OPTIONS] [FILE]... | |
35132 | ||
35133 | -h, --help print this help, then exit | |
35134 | -V, --version print version number, then exit | |
35135 | -q, --quiet do not print progress messages | |
35136 | -d, --debug don't remove temporary files | |
35137 | --recheck update $as_me by reconfiguring in the same conditions | |
35138 | --file=FILE[:TEMPLATE] | |
35139 | instantiate the configuration file FILE | |
35140 | --header=FILE[:TEMPLATE] | |
35141 | instantiate the configuration header FILE | |
35142 | ||
35143 | Configuration files: | |
35144 | $config_files | |
35145 | ||
35146 | Configuration headers: | |
35147 | $config_headers | |
35148 | ||
35149 | Configuration commands: | |
35150 | $config_commands | |
35151 | ||
35152 | Report bugs to <bug-autoconf@gnu.org>." | |
35153 | _ACEOF | |
35154 | ||
35155 | cat >>$CONFIG_STATUS <<_ACEOF | |
35156 | ac_cs_version="\\ | |
35157 | wxWindows config.status 2.5.0 | |
35158 | configured by $0, generated by GNU Autoconf 2.57, | |
35159 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35160 | ||
35161 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35162 | Free Software Foundation, Inc. | |
35163 | This config.status script is free software; the Free Software Foundation | |
35164 | gives unlimited permission to copy, distribute and modify it." | |
35165 | srcdir=$srcdir | |
35166 | INSTALL="$INSTALL" | |
35167 | _ACEOF | |
35168 | ||
35169 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35170 | # If no file are specified by the user, then we need to provide default | |
35171 | # value. By we need to know if files were specified by the user. | |
35172 | ac_need_defaults=: | |
35173 | while test $# != 0 | |
35174 | do | |
35175 | case $1 in | |
35176 | --*=*) | |
35177 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35178 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35179 | ac_shift=: | |
35180 | ;; | |
35181 | -*) | |
35182 | ac_option=$1 | |
35183 | ac_optarg=$2 | |
35184 | ac_shift=shift | |
35185 | ;; | |
35186 | *) # This is not an option, so the user has probably given explicit | |
35187 | # arguments. | |
35188 | ac_option=$1 | |
35189 | ac_need_defaults=false;; | |
35190 | esac | |
35191 | ||
35192 | case $ac_option in | |
35193 | # Handling of the options. | |
35194 | _ACEOF | |
35195 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35196 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35197 | ac_cs_recheck=: ;; | |
35198 | --version | --vers* | -V ) | |
35199 | echo "$ac_cs_version"; exit 0 ;; | |
35200 | --he | --h) | |
35201 | # Conflict between --help and --header | |
35202 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35203 | Try \`$0 --help' for more information." >&5 | |
35204 | echo "$as_me: error: ambiguous option: $1 | |
35205 | Try \`$0 --help' for more information." >&2;} | |
35206 | { (exit 1); exit 1; }; };; | |
35207 | --help | --hel | -h ) | |
35208 | echo "$ac_cs_usage"; exit 0 ;; | |
35209 | --debug | --d* | -d ) | |
35210 | debug=: ;; | |
35211 | --file | --fil | --fi | --f ) | |
35212 | $ac_shift | |
35213 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35214 | ac_need_defaults=false;; | |
35215 | --header | --heade | --head | --hea ) | |
35216 | $ac_shift | |
35217 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35218 | ac_need_defaults=false;; | |
35219 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35220 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35221 | ac_cs_silent=: ;; | |
35222 | ||
35223 | # This is an error. | |
35224 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35225 | Try \`$0 --help' for more information." >&5 | |
35226 | echo "$as_me: error: unrecognized option: $1 | |
35227 | Try \`$0 --help' for more information." >&2;} | |
35228 | { (exit 1); exit 1; }; } ;; | |
35229 | ||
35230 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35231 | ||
35232 | esac | |
35233 | shift | |
35234 | done | |
35235 | ||
35236 | ac_configure_extra_args= | |
35237 | ||
35238 | if $ac_cs_silent; then | |
35239 | exec 6>/dev/null | |
35240 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
35241 | fi |
35242 | ||
e6cc62c6 VS |
35243 | _ACEOF |
35244 | cat >>$CONFIG_STATUS <<_ACEOF | |
35245 | if \$ac_cs_recheck; then | |
35246 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35247 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
35248 | fi |
35249 | ||
e6cc62c6 | 35250 | _ACEOF |
fe0895cf | 35251 | |
e6cc62c6 | 35252 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 35253 | # |
e6cc62c6 | 35254 | # INIT-COMMANDS section. |
10f2d63a | 35255 | # |
10f2d63a | 35256 | |
a0b9e27f | 35257 | |
e6cc62c6 VS |
35258 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
35259 | LN_S="${LN_S}" | |
10f2d63a | 35260 | |
10f2d63a | 35261 | |
10f2d63a | 35262 | |
e6cc62c6 | 35263 | _ACEOF |
8284b0c5 | 35264 | |
52127426 | 35265 | |
247f5006 | 35266 | |
e6cc62c6 VS |
35267 | cat >>$CONFIG_STATUS <<\_ACEOF |
35268 | for ac_config_target in $ac_config_targets | |
247f5006 | 35269 | do |
e6cc62c6 VS |
35270 | case "$ac_config_target" in |
35271 | # Handling of arguments. | |
81345eef VZ |
35272 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
35273 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
35274 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 35275 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
35276 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
35277 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
35278 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
35279 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35280 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
35281 | esac |
35282 | done | |
35283 | ||
e6cc62c6 VS |
35284 | # If the user did not use the arguments to specify the items to instantiate, |
35285 | # then the envvar interface is used. Set only those that are not. | |
35286 | # We use the long form for the default assignment because of an extremely | |
35287 | # bizarre bug on SunOS 4.1.3. | |
35288 | if $ac_need_defaults; then | |
35289 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
35290 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
35291 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
35292 | fi | |
35293 | ||
35294 | # Have a temporary directory for convenience. Make it in the build tree | |
35295 | # simply because there is no reason to put it here, and in addition, | |
35296 | # creating and moving files from /tmp can sometimes cause problems. | |
35297 | # Create a temporary directory, and hook for its removal unless debugging. | |
35298 | $debug || | |
35299 | { | |
35300 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
35301 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
35302 | } | |
247f5006 | 35303 | |
e6cc62c6 | 35304 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 35305 | |
e6cc62c6 VS |
35306 | { |
35307 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
35308 | test -n "$tmp" && test -d "$tmp" | |
35309 | } || | |
35310 | { | |
35311 | tmp=./confstat$$-$RANDOM | |
35312 | (umask 077 && mkdir $tmp) | |
35313 | } || | |
35314 | { | |
35315 | echo "$me: cannot create a temporary directory in ." >&2 | |
35316 | { (exit 1); exit 1; } | |
35317 | } | |
35318 | ||
35319 | _ACEOF | |
35320 | ||
35321 | cat >>$CONFIG_STATUS <<_ACEOF | |
35322 | ||
35323 | # | |
35324 | # CONFIG_FILES section. | |
35325 | # | |
247f5006 | 35326 | |
e6cc62c6 VS |
35327 | # No need to generate the scripts if there are no CONFIG_FILES. |
35328 | # This happens for instance when ./config.status config.h | |
35329 | if test -n "\$CONFIG_FILES"; then | |
35330 | # Protect against being on the right side of a sed subst in config.status. | |
35331 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
35332 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
35333 | s,@SHELL@,$SHELL,;t t | |
35334 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35335 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
35336 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
35337 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
35338 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
35339 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
35340 | s,@exec_prefix@,$exec_prefix,;t t | |
35341 | s,@prefix@,$prefix,;t t | |
35342 | s,@program_transform_name@,$program_transform_name,;t t | |
35343 | s,@bindir@,$bindir,;t t | |
35344 | s,@sbindir@,$sbindir,;t t | |
35345 | s,@libexecdir@,$libexecdir,;t t | |
35346 | s,@datadir@,$datadir,;t t | |
35347 | s,@sysconfdir@,$sysconfdir,;t t | |
35348 | s,@sharedstatedir@,$sharedstatedir,;t t | |
35349 | s,@localstatedir@,$localstatedir,;t t | |
35350 | s,@libdir@,$libdir,;t t | |
35351 | s,@includedir@,$includedir,;t t | |
35352 | s,@oldincludedir@,$oldincludedir,;t t | |
35353 | s,@infodir@,$infodir,;t t | |
35354 | s,@mandir@,$mandir,;t t | |
35355 | s,@build_alias@,$build_alias,;t t | |
35356 | s,@host_alias@,$host_alias,;t t | |
35357 | s,@target_alias@,$target_alias,;t t | |
35358 | s,@DEFS@,$DEFS,;t t | |
35359 | s,@ECHO_C@,$ECHO_C,;t t | |
35360 | s,@ECHO_N@,$ECHO_N,;t t | |
35361 | s,@ECHO_T@,$ECHO_T,;t t | |
35362 | s,@LIBS@,$LIBS,;t t | |
35363 | s,@build@,$build,;t t | |
35364 | s,@build_cpu@,$build_cpu,;t t | |
35365 | s,@build_vendor@,$build_vendor,;t t | |
35366 | s,@build_os@,$build_os,;t t | |
35367 | s,@host@,$host,;t t | |
35368 | s,@host_cpu@,$host_cpu,;t t | |
35369 | s,@host_vendor@,$host_vendor,;t t | |
35370 | s,@host_os@,$host_os,;t t | |
35371 | s,@target@,$target,;t t | |
35372 | s,@target_cpu@,$target_cpu,;t t | |
35373 | s,@target_vendor@,$target_vendor,;t t | |
35374 | s,@target_os@,$target_os,;t t | |
35375 | s,@CC@,$CC,;t t | |
35376 | s,@CFLAGS@,$CFLAGS,;t t | |
35377 | s,@LDFLAGS@,$LDFLAGS,;t t | |
35378 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
35379 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
35380 | s,@EXEEXT@,$EXEEXT,;t t | |
35381 | s,@OBJEXT@,$OBJEXT,;t t | |
35382 | s,@CPP@,$CPP,;t t | |
35383 | s,@EGREP@,$EGREP,;t t | |
35384 | s,@CXX@,$CXX,;t t | |
35385 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
35386 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
35387 | s,@RANLIB@,$RANLIB,;t t | |
35388 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
35389 | s,@AR@,$AR,;t t | |
35390 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
35391 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
35392 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
35393 | s,@STRIP@,$STRIP,;t t | |
35394 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
35395 | s,@YACC@,$YACC,;t t | |
35396 | s,@LEX@,$LEX,;t t | |
35397 | s,@LEXLIB@,$LEXLIB,;t t | |
35398 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
35399 | s,@LN_S@,$LN_S,;t t | |
35400 | s,@CXXCPP@,$CXXCPP,;t t | |
35401 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
35402 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
35403 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
35404 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
35405 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
35406 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
35407 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
35408 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
35409 | s,@X_LIBS@,$X_LIBS,;t t | |
35410 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
35411 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
35412 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
35413 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
35414 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
35415 | s,@RESCOMP@,$RESCOMP,;t t |
35416 | s,@DEREZ@,$DEREZ,;t t | |
35417 | s,@SETFILE@,$SETFILE,;t t | |
35418 | s,@LIBICONV@,$LIBICONV,;t t | |
35419 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
35420 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
35421 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
35422 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
35423 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
35424 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
35425 | s,@VENDOR@,$VENDOR,;t t |
35426 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
35427 | s,@WXUNIV@,$WXUNIV,;t t |
35428 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
35429 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
c74dc163 | 35430 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
e6cc62c6 VS |
35431 | s,@UNICODE@,$UNICODE,;t t |
35432 | s,@BUILD@,$BUILD,;t t | |
35433 | s,@SHARED@,$SHARED,;t t | |
35434 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
35435 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
35436 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
35437 | s,@SET_MAKE@,$SET_MAKE,;t t | |
35438 | s,@MAKE_SET@,$MAKE_SET,;t t | |
35439 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 35440 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
35441 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
35442 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
35443 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
35444 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
35445 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
35446 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
35447 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
dc838d98 | 35448 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
35449 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
35450 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
35451 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
35452 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
35453 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
35454 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
35455 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
35456 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
35457 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 35458 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
d78c94f2 VS |
35459 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
35460 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
f95cd8fa | 35461 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 35462 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
6f628073 | 35463 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
35464 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
35465 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8ee2dd05 | 35466 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 35467 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
3af038c0 | 35468 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
35469 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
35470 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
35471 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
35472 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 35473 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 35474 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
8ee2dd05 | 35475 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
3af038c0 VS |
35476 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
35477 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
35478 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
6f628073 VS |
35479 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
35480 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
35481 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
35482 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 VS |
35483 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
35484 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t | |
3af038c0 | 35485 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
6f628073 VS |
35486 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
35487 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
35488 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
35489 | s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t | |
35490 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
35491 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
35492 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 35493 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
35494 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
35495 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 35496 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t |
6f628073 VS |
35497 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t |
35498 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t | |
35499 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
35500 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
8ee2dd05 | 35501 | s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t |
3af038c0 VS |
35502 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
35503 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
35504 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
35505 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
35506 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
6f628073 VS |
35507 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
35508 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
35509 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
35510 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 VS |
35511 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
35512 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
35513 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
35514 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
35515 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
35516 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
35517 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
dc838d98 VS |
35518 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
35519 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
35520 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
e6cc62c6 VS |
35521 | s,@LEX_STEM@,$LEX_STEM,;t t |
35522 | s,@PATH_IFS@,$PATH_IFS,;t t | |
35523 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
35524 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
35525 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
35526 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
35527 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
35528 | s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t | |
35529 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
35530 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
35531 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
35532 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
35533 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
35534 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
35535 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
35536 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
35537 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
35538 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
35539 | s,@WX_ALL@,$WX_ALL,;t t | |
35540 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
35541 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
35542 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
35543 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
35544 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
35545 | s,@USE_GUI@,$USE_GUI,;t t | |
35546 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
35547 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
35548 | s,@TOOLKIT@,$TOOLKIT,;t t | |
35549 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
35550 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
35551 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
35552 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
35553 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
35554 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
35555 | s,@cross_compiling@,$cross_compiling,;t t | |
35556 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
35557 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
35558 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
35559 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
35560 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
35561 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
35562 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
f0290fca VS |
35563 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
35564 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
35565 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
35566 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
35567 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
35568 | s,@GUIDIST@,$GUIDIST,;t t | |
35569 | s,@PORT_FILES@,$PORT_FILES,;t t | |
35570 | s,@DISTDIR@,$DISTDIR,;t t | |
35571 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
35572 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
35573 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
35574 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
35575 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
35576 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
35577 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
35578 | s,@RESFLAGS@,$RESFLAGS,;t t | |
35579 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
35580 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
35581 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
35582 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
35583 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
35584 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
35585 | s,@MACSETFILE@,$MACSETFILE,;t t | |
35586 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
35587 | s,@GCC@,$GCC,;t t | |
35588 | s,@DLLTOOL@,$DLLTOOL,;t t | |
35589 | s,@AS@,$AS,;t t | |
35590 | s,@NM@,$NM,;t t | |
35591 | s,@LD@,$LD,;t t | |
35592 | s,@MAKEINFO@,$MAKEINFO,;t t | |
35593 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
35594 | s,@ESD_LINK@,$ESD_LINK,;t t | |
35595 | s,@LIBOBJS@,$LIBOBJS,;t t | |
35596 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
35597 | CEOF |
35598 | ||
e6cc62c6 VS |
35599 | _ACEOF |
35600 | ||
35601 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35602 | # Split the substitutions into bite-sized pieces for seds with | |
35603 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
35604 | ac_max_sed_lines=48 | |
35605 | ac_sed_frag=1 # Number of current file. | |
35606 | ac_beg=1 # First line for current file. | |
35607 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
35608 | ac_more_lines=: | |
35609 | ac_sed_cmds= | |
35610 | while $ac_more_lines; do | |
35611 | if test $ac_beg -gt 1; then | |
35612 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 35613 | else |
e6cc62c6 VS |
35614 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
35615 | fi | |
35616 | if test ! -s $tmp/subs.frag; then | |
35617 | ac_more_lines=false | |
35618 | else | |
35619 | # The purpose of the label and of the branching condition is to | |
35620 | # speed up the sed processing (if there are no `@' at all, there | |
35621 | # is no need to browse any of the substitutions). | |
35622 | # These are the two extra sed commands mentioned above. | |
35623 | (echo ':t | |
35624 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
35625 | if test -z "$ac_sed_cmds"; then | |
35626 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
35627 | else | |
35628 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
35629 | fi | |
35630 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
35631 | ac_beg=$ac_end | |
35632 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 35633 | fi |
e6cc62c6 VS |
35634 | done |
35635 | if test -z "$ac_sed_cmds"; then | |
35636 | ac_sed_cmds=cat | |
10f2d63a | 35637 | fi |
e6cc62c6 | 35638 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 35639 | |
e6cc62c6 VS |
35640 | _ACEOF |
35641 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35642 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 35643 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
35644 | case $ac_file in |
35645 | - | *:- | *:-:* ) # input from stdin | |
35646 | cat >$tmp/stdin | |
35647 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35648 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35649 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35650 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35651 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 35652 | esac |
247f5006 | 35653 | |
e6cc62c6 VS |
35654 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
35655 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35656 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35657 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35658 | X"$ac_file" : 'X\(//\)$' \| \ | |
35659 | X"$ac_file" : 'X\(/\)' \| \ | |
35660 | . : '\(.\)' 2>/dev/null || | |
35661 | echo X"$ac_file" | | |
35662 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35663 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35664 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35665 | /^X\(\/\).*/{ s//\1/; q; } | |
35666 | s/.*/./; q'` | |
35667 | { if $as_mkdir_p; then | |
35668 | mkdir -p "$ac_dir" | |
a0b9e27f | 35669 | else |
e6cc62c6 VS |
35670 | as_dir="$ac_dir" |
35671 | as_dirs= | |
35672 | while test ! -d "$as_dir"; do | |
35673 | as_dirs="$as_dir $as_dirs" | |
35674 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35675 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35676 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35677 | X"$as_dir" : 'X\(//\)$' \| \ | |
35678 | X"$as_dir" : 'X\(/\)' \| \ | |
35679 | . : '\(.\)' 2>/dev/null || | |
35680 | echo X"$as_dir" | | |
35681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35682 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35683 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35684 | /^X\(\/\).*/{ s//\1/; q; } | |
35685 | s/.*/./; q'` | |
35686 | done | |
35687 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35688 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35689 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35690 | { (exit 1); exit 1; }; }; } | |
35691 | ||
35692 | ac_builddir=. | |
35693 | ||
35694 | if test "$ac_dir" != .; then | |
35695 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
35696 | # A "../" for each directory in $ac_dir_suffix. | |
35697 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
35698 | else | |
35699 | ac_dir_suffix= ac_top_builddir= | |
35700 | fi | |
247f5006 | 35701 | |
e6cc62c6 VS |
35702 | case $srcdir in |
35703 | .) # No --srcdir option. We are building in place. | |
35704 | ac_srcdir=. | |
35705 | if test -z "$ac_top_builddir"; then | |
35706 | ac_top_srcdir=. | |
35707 | else | |
35708 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
35709 | fi ;; | |
35710 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
35711 | ac_srcdir=$srcdir$ac_dir_suffix; | |
35712 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 35713 | *) # Relative path. |
e6cc62c6 VS |
35714 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
35715 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
35716 | esac | |
35717 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
35718 | # absolute. | |
35719 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
35720 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
35721 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
35722 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 35723 | |
247f5006 | 35724 | |
e6cc62c6 VS |
35725 | case $INSTALL in |
35726 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
35727 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 35728 | esac |
247f5006 | 35729 | |
e6cc62c6 VS |
35730 | if test x"$ac_file" != x-; then |
35731 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
35732 | echo "$as_me: creating $ac_file" >&6;} | |
35733 | rm -f "$ac_file" | |
35734 | fi | |
35735 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35736 | # use $as_me), people would be surprised to read: | |
35737 | # /* config.h. Generated by config.status. */ | |
35738 | if test x"$ac_file" = x-; then | |
35739 | configure_input= | |
35740 | else | |
35741 | configure_input="$ac_file. " | |
35742 | fi | |
35743 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35744 | sed 's,.*/,,'` by configure." | |
35745 | ||
35746 | # First look for the input files in the build tree, otherwise in the | |
35747 | # src tree. | |
35748 | ac_file_inputs=`IFS=: | |
35749 | for f in $ac_file_in; do | |
35750 | case $f in | |
35751 | -) echo $tmp/stdin ;; | |
35752 | [\\/$]*) | |
35753 | # Absolute (can't be DOS-style, as IFS=:) | |
35754 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35755 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35756 | { (exit 1); exit 1; }; } | |
35757 | echo $f;; | |
35758 | *) # Relative | |
35759 | if test -f "$f"; then | |
35760 | # Build tree | |
35761 | echo $f | |
35762 | elif test -f "$srcdir/$f"; then | |
35763 | # Source tree | |
35764 | echo $srcdir/$f | |
35765 | else | |
35766 | # /dev/null tree | |
35767 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35768 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35769 | { (exit 1); exit 1; }; } | |
35770 | fi;; | |
35771 | esac | |
35772 | done` || { (exit 1); exit 1; } | |
35773 | _ACEOF | |
35774 | cat >>$CONFIG_STATUS <<_ACEOF | |
35775 | sed "$ac_vpsub | |
35776 | $extrasub | |
35777 | _ACEOF | |
35778 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35779 | :t | |
35780 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
35781 | s,@configure_input@,$configure_input,;t t | |
35782 | s,@srcdir@,$ac_srcdir,;t t | |
35783 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
35784 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
35785 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
35786 | s,@builddir@,$ac_builddir,;t t | |
35787 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
35788 | s,@top_builddir@,$ac_top_builddir,;t t | |
35789 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
35790 | s,@INSTALL@,$ac_INSTALL,;t t | |
35791 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
35792 | rm -f $tmp/stdin | |
35793 | if test x"$ac_file" != x-; then | |
35794 | mv $tmp/out $ac_file | |
35795 | else | |
35796 | cat $tmp/out | |
35797 | rm -f $tmp/out | |
35798 | fi | |
35799 | ||
35800 | done | |
35801 | _ACEOF | |
35802 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35803 | ||
35804 | # | |
35805 | # CONFIG_HEADER section. | |
35806 | # | |
10f2d63a VZ |
35807 | |
35808 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
35809 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
35810 | # | |
35811 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
35812 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
35813 | ac_dB='[ ].*$,\1#\2' | |
35814 | ac_dC=' ' | |
35815 | ac_dD=',;t' | |
35816 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35817 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
35818 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 35819 | ac_uC=' ' |
e6cc62c6 VS |
35820 | ac_uD=',;t' |
35821 | ||
35822 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 35823 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
35824 | case $ac_file in |
35825 | - | *:- | *:-:* ) # input from stdin | |
35826 | cat >$tmp/stdin | |
35827 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35828 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35829 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35830 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35831 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
35832 | esac |
35833 | ||
e6cc62c6 VS |
35834 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
35835 | echo "$as_me: creating $ac_file" >&6;} | |
35836 | ||
35837 | # First look for the input files in the build tree, otherwise in the | |
35838 | # src tree. | |
35839 | ac_file_inputs=`IFS=: | |
35840 | for f in $ac_file_in; do | |
35841 | case $f in | |
35842 | -) echo $tmp/stdin ;; | |
35843 | [\\/$]*) | |
35844 | # Absolute (can't be DOS-style, as IFS=:) | |
35845 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35846 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35847 | { (exit 1); exit 1; }; } | |
35848 | echo $f;; | |
35849 | *) # Relative | |
35850 | if test -f "$f"; then | |
35851 | # Build tree | |
35852 | echo $f | |
35853 | elif test -f "$srcdir/$f"; then | |
35854 | # Source tree | |
35855 | echo $srcdir/$f | |
35856 | else | |
35857 | # /dev/null tree | |
35858 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35859 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35860 | { (exit 1); exit 1; }; } | |
35861 | fi;; | |
35862 | esac | |
35863 | done` || { (exit 1); exit 1; } | |
35864 | # Remove the trailing spaces. | |
35865 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
35866 | ||
35867 | _ACEOF | |
35868 | ||
35869 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
35870 | # `conftest.undefs', that substitutes the proper values into | |
35871 | # config.h.in to produce config.h. The first handles `#define' | |
35872 | # templates, and the second `#undef' templates. | |
35873 | # And first: Protect against being on the right side of a sed subst in | |
35874 | # config.status. Protect against being in an unquoted here document | |
35875 | # in config.status. | |
35876 | rm -f conftest.defines conftest.undefs | |
35877 | # Using a here document instead of a string reduces the quoting nightmare. | |
35878 | # Putting comments in sed scripts is not portable. | |
35879 | # | |
35880 | # `end' is used to avoid that the second main sed command (meant for | |
35881 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
35882 | # See the Autoconf documentation for `clear'. | |
35883 | cat >confdef2sed.sed <<\_ACEOF | |
35884 | s/[\\&,]/\\&/g | |
35885 | s,[\\$`],\\&,g | |
35886 | t clear | |
35887 | : clear | |
35888 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
35889 | t end | |
35890 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
35891 | : end | |
35892 | _ACEOF | |
35893 | # If some macros were called several times there might be several times | |
35894 | # the same #defines, which is useless. Nevertheless, we may not want to | |
35895 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
35896 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
35897 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
35898 | rm -f confdef2sed.sed | |
10f2d63a VZ |
35899 | |
35900 | # This sed command replaces #undef with comments. This is necessary, for | |
35901 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
35902 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
35903 | cat >>conftest.undefs <<\_ACEOF |
35904 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
35905 | _ACEOF | |
35906 | ||
35907 | # Break up conftest.defines because some shells have a limit on the size | |
35908 | # of here documents, and old seds have small limits too (100 cmds). | |
35909 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35910 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
35911 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
35912 | echo ' :' >>$CONFIG_STATUS | |
35913 | rm -f conftest.tail | |
35914 | while grep . conftest.defines >/dev/null | |
35915 | do | |
35916 | # Write a limited-size here document to $tmp/defines.sed. | |
35917 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
35918 | # Speed up: don't consider the non `#define' lines. | |
35919 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
35920 | # Work around the forget-to-reset-the-flag bug. | |
35921 | echo 't clr' >>$CONFIG_STATUS | |
35922 | echo ': clr' >>$CONFIG_STATUS | |
35923 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
35924 | echo 'CEOF | |
35925 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
35926 | rm -f $tmp/in | |
35927 | mv $tmp/out $tmp/in | |
35928 | ' >>$CONFIG_STATUS | |
35929 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
35930 | rm -f conftest.defines | |
35931 | mv conftest.tail conftest.defines | |
35932 | done | |
35933 | rm -f conftest.defines | |
35934 | echo ' fi # grep' >>$CONFIG_STATUS | |
35935 | echo >>$CONFIG_STATUS | |
10f2d63a | 35936 | |
e6cc62c6 VS |
35937 | # Break up conftest.undefs because some shells have a limit on the size |
35938 | # of here documents, and old seds have small limits too (100 cmds). | |
35939 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 35940 | rm -f conftest.tail |
e6cc62c6 | 35941 | while grep . conftest.undefs >/dev/null |
10f2d63a | 35942 | do |
e6cc62c6 VS |
35943 | # Write a limited-size here document to $tmp/undefs.sed. |
35944 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
35945 | # Speed up: don't consider the non `#undef' | |
35946 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
35947 | # Work around the forget-to-reset-the-flag bug. | |
35948 | echo 't clr' >>$CONFIG_STATUS | |
35949 | echo ': clr' >>$CONFIG_STATUS | |
35950 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 35951 | echo 'CEOF |
e6cc62c6 VS |
35952 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
35953 | rm -f $tmp/in | |
35954 | mv $tmp/out $tmp/in | |
35955 | ' >>$CONFIG_STATUS | |
35956 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
35957 | rm -f conftest.undefs | |
35958 | mv conftest.tail conftest.undefs | |
10f2d63a | 35959 | done |
e6cc62c6 VS |
35960 | rm -f conftest.undefs |
35961 | ||
35962 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35963 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35964 | # use $as_me), people would be surprised to read: | |
35965 | # /* config.h. Generated by config.status. */ | |
35966 | if test x"$ac_file" = x-; then | |
35967 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 35968 | else |
e6cc62c6 | 35969 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 35970 | fi |
e6cc62c6 VS |
35971 | cat $tmp/in >>$tmp/config.h |
35972 | rm -f $tmp/in | |
35973 | if test x"$ac_file" != x-; then | |
35974 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
35975 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
35976 | echo "$as_me: $ac_file is unchanged" >&6;} | |
35977 | else | |
35978 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35979 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35980 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35981 | X"$ac_file" : 'X\(//\)$' \| \ | |
35982 | X"$ac_file" : 'X\(/\)' \| \ | |
35983 | . : '\(.\)' 2>/dev/null || | |
35984 | echo X"$ac_file" | | |
35985 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35986 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35987 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35988 | /^X\(\/\).*/{ s//\1/; q; } | |
35989 | s/.*/./; q'` | |
35990 | { if $as_mkdir_p; then | |
35991 | mkdir -p "$ac_dir" | |
35992 | else | |
35993 | as_dir="$ac_dir" | |
35994 | as_dirs= | |
35995 | while test ! -d "$as_dir"; do | |
35996 | as_dirs="$as_dir $as_dirs" | |
35997 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35998 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35999 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36000 | X"$as_dir" : 'X\(//\)$' \| \ | |
36001 | X"$as_dir" : 'X\(/\)' \| \ | |
36002 | . : '\(.\)' 2>/dev/null || | |
36003 | echo X"$as_dir" | | |
36004 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36005 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36006 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36007 | /^X\(\/\).*/{ s//\1/; q; } | |
36008 | s/.*/./; q'` | |
36009 | done | |
36010 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36011 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36012 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36013 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36014 | |
e6cc62c6 VS |
36015 | rm -f $ac_file |
36016 | mv $tmp/config.h $ac_file | |
36017 | fi | |
36018 | else | |
36019 | cat $tmp/config.h | |
36020 | rm -f $tmp/config.h | |
36021 | fi | |
36022 | done | |
36023 | _ACEOF | |
36024 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36025 | |
e6cc62c6 VS |
36026 | # |
36027 | # CONFIG_COMMANDS section. | |
36028 | # | |
36029 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36030 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36031 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36032 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36033 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36034 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36035 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36036 | X"$ac_dest" : 'X\(/\)' \| \ | |
36037 | . : '\(.\)' 2>/dev/null || | |
36038 | echo X"$ac_dest" | | |
36039 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36040 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36041 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36042 | /^X\(\/\).*/{ s//\1/; q; } | |
36043 | s/.*/./; q'` | |
36044 | ac_builddir=. | |
36045 | ||
36046 | if test "$ac_dir" != .; then | |
36047 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36048 | # A "../" for each directory in $ac_dir_suffix. | |
36049 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36050 | else | |
36051 | ac_dir_suffix= ac_top_builddir= | |
36052 | fi | |
36053 | ||
36054 | case $srcdir in | |
36055 | .) # No --srcdir option. We are building in place. | |
36056 | ac_srcdir=. | |
36057 | if test -z "$ac_top_builddir"; then | |
36058 | ac_top_srcdir=. | |
36059 | else | |
36060 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36061 | fi ;; | |
36062 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36063 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36064 | ac_top_srcdir=$srcdir ;; | |
36065 | *) # Relative path. | |
36066 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36067 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36068 | esac | |
36069 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36070 | # absolute. | |
36071 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36072 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36073 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36074 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36075 | ||
36076 | ||
36077 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36078 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36079 | case $ac_dest in | |
36080 | default ) | |
652d930d | 36081 | if test ! -h wx-config; then |
991a5759 | 36082 | chmod +x wx-config |
3a922bb4 RL |
36083 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36084 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36085 | fi |
665bbe97 | 36086 | |
00cf1208 RR |
36087 | if test ! -d lib; then |
36088 | mkdir lib | |
36089 | fi | |
36090 | if test ! -d lib/wx; then | |
36091 | mkdir lib/wx | |
36092 | fi | |
36093 | if test ! -d lib/wx/include; then | |
36094 | mkdir lib/wx/include | |
36095 | fi | |
3a922bb4 RL |
36096 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36097 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36098 | fi |
3a922bb4 RL |
36099 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36100 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36101 | fi |
36102 | if test -f setup.h; then | |
3a922bb4 | 36103 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36104 | fi |
e6cc62c6 VS |
36105 | ;; |
36106 | esac | |
36107 | done | |
36108 | _ACEOF | |
2224580a | 36109 | |
e6cc62c6 | 36110 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36111 | |
e6cc62c6 VS |
36112 | { (exit 0); exit 0; } |
36113 | _ACEOF | |
36114 | chmod +x $CONFIG_STATUS | |
36115 | ac_clean_files=$ac_clean_files_save | |
36116 | ||
36117 | ||
36118 | # configure is writing to config.log, and then calls config.status. | |
36119 | # config.status does its own redirection, appending to config.log. | |
36120 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36121 | # by configure, so config.status won't be able to write to it; its | |
36122 | # output is simply discarded. So we exec the FD to /dev/null, | |
36123 | # effectively closing config.log, so it can be properly (re)opened and | |
36124 | # appended to by config.status. When coming back to configure, we | |
36125 | # need to make the FD available again. | |
36126 | if test "$no_create" != yes; then | |
36127 | ac_cs_success=: | |
36128 | ac_config_status_args= | |
36129 | test "$silent" = yes && | |
36130 | ac_config_status_args="$ac_config_status_args --quiet" | |
36131 | exec 5>/dev/null | |
36132 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36133 | exec 5>>config.log | |
36134 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36135 | # would make configure fail if this is the last instruction. | |
36136 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
36137 | fi |
36138 | ||
8284b0c5 | 36139 | |
2b5f62a0 VZ |
36140 | echo |
36141 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
36142 | echo "" | |
36143 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 36144 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
36145 | |
36146 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
36147 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
36148 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
36149 | ||
0c98a14e GD |
36150 | echo " What level of wxWindows compatibility should be enabled?" |
36151 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
36152 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
36153 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 36154 | |
2b5f62a0 VZ |
36155 | echo " Which libraries should wxWindows use?" |
36156 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
36157 | echo " png ${wxUSE_LIBPNG-none}" | |
36158 | echo " regex ${wxUSE_REGEX}" | |
36159 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
36160 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 36161 | echo " odbc ${wxUSE_ODBC}" |
2b5f62a0 VZ |
36162 | |
36163 | echo "" | |
36164 |