]>
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 | |
876 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin) | |
877 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
878 | --enable-debug_info create code with debugging information | |
879 | --enable-debug_gdb create code with extra GDB debugging information | |
880 | --enable-debug_cntxt use wxDebugContext | |
881 | --enable-mem_tracing create code with memory tracing | |
882 | --enable-profile create code with profiling information | |
883 | --enable-no_rtti create code without RTTI information | |
884 | --enable-no_exceptions create code without C++ exceptions handling | |
885 | --enable-permissive compile code disregarding strict ANSI | |
886 | --enable-no_deps create code without dependency information | |
887 | --enable-compat20 enable wxWindows 2.0 compatibility | |
888 | --enable-compat22 enable wxWindows 2.2 compatibility | |
889 | --disable-compat24 disable wxWindows 2.4 compatibility | |
890 | --enable-rpath=DIR output the rpath flag from wx-config | |
891 | --enable-intl use internationalization system | |
892 | --enable-config use wxConfig (and derived) classes | |
893 | --enable-protocols use wxProtocol and derived classes | |
894 | --enable-ftp use wxFTP (requires wxProtocol | |
895 | --enable-http use wxHTTP (requires wxProtocol | |
896 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
897 | --enable-sockets use socket/network classes | |
898 | --enable-ole use OLE classes | |
899 | --enable-dataobj use data object classes | |
900 | --enable-ipc use interprocess communication (wxSocket etc.) | |
901 | --enable-cmdline use wxCmdLineParser class | |
902 | --enable-datetime use wxDateTime class | |
903 | --enable-stopwatch use wxStopWatch class | |
904 | --enable-dialupman use dialup network classes | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-timer use wxTimer class | |
907 | --enable-wave use wxWave class | |
908 | --enable-fraction use wxFraction class | |
909 | --enable-dynlib use wxLibrary class for DLL loading | |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
911 | --enable-longlong use wxLongLong class | |
912 | --enable-geometry use geometry class | |
913 | --enable-log use logging system | |
914 | --enable-streams use wxStream etc classes | |
915 | --enable-file use wxFile classes | |
916 | --enable-ffile use wxFFile classes | |
917 | --enable-textbuf use wxTextBuffer class | |
918 | --enable-textfile use wxTextFile class | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-unicode compile wxString with Unicode support | |
921 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
922 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
923 | --enable-std_iostreams use standard C++ stream classes | |
924 | --enable-filesystem use virtual file systems classes | |
925 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
926 | --enable-fs_zip use virtual ZIP filesystems | |
927 | --enable-zipstream use wxZipInputStream | |
928 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
929 | --enable-snglinst use wxSingleInstanceChecker class | |
930 | --enable-mimetype use wxMimeTypesManager | |
931 | --enable-sysoptions use wxSystemOptions | |
932 | --enable-url use wxURL class | |
933 | --enable-protocol use wxProtocol class | |
934 | --enable-protocol-http HTTP support in wxProtocol | |
935 | --enable-protocol-ftp FTP support in wxProtocol | |
936 | --enable-protocol-file FILE support in wxProtocol | |
937 | --enable-threads use threads | |
938 | --enable-docview use document view architecture | |
939 | --enable-help use help subsystem | |
940 | --enable-mshtmlhelp use MS HTML Help (win32) | |
941 | --enable-html use wxHTML sub-library | |
942 | --enable-htmlhelp use wxHTML-based help | |
943 | --enable-constraints use layout-constraints system | |
944 | --enable-printarch use printing architecture | |
945 | --enable-mdi use multiple document interface architecture | |
946 | --enable-loggui use standard GUI logger | |
947 | --enable-logwin use wxLogWindow | |
948 | --enable-logdialog use wxLogDialog | |
949 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
950 | --enable-prologio not available; see contrib | |
951 | --enable-resources not available; see contrib | |
952 | --enable-clipboard use wxClipboard class | |
953 | --enable-dnd use Drag'n'Drop classes | |
954 | --enable-metafile use win32 metafiles | |
955 | --enable-controls use all usual controls | |
956 | --enable-accel use accelerators | |
957 | --enable-button use wxButton class | |
958 | --enable-bmpbutton use wxBitmapButton class | |
959 | --enable-calendar use wxCalendarCtrl class | |
960 | --enable-caret use wxCaret class | |
961 | --enable-checkbox use wxCheckBox class | |
962 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
963 | --enable-choice use wxChoice class | |
964 | --enable-combobox use wxComboBox class | |
965 | --enable-display use wxDisplay class | |
966 | --enable-gauge use wxGauge class | |
967 | --enable-grid use wxGrid class | |
968 | --enable-imaglist use wxImageList class | |
969 | --enable-listbox use wxListBox class | |
970 | --enable-listctrl use wxListCtrl class | |
971 | --enable-notebook use wxNotebook class | |
972 | --enable-radiobox use wxRadioBox class | |
973 | --enable-radiobtn use wxRadioButton class | |
974 | --enable-sash use wxSashWindow class | |
975 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
976 | --enable-slider use wxSlider class | |
977 | --enable-spinbtn use wxSpinButton class | |
978 | --enable-spinctrl use wxSpinCtrl class | |
979 | --enable-splitter use wxSplitterWindow class | |
980 | --enable-statbmp use wxStaticBitmap class | |
981 | --enable-statbox use wxStaticBox class | |
982 | --enable-statline use wxStaticLine class | |
983 | --enable-stattext use wxStaticText class | |
984 | --enable-statusbar use wxStatusBar class | |
985 | --enable-tabdialog use wxTabControl class | |
986 | --enable-textctrl use wxTextCtrl class | |
987 | --enable-togglebtn use wxToggleButton class | |
988 | --enable-toolbar use wxToolBar class | |
989 | --enable-tbarnative use native wxToolBar class | |
990 | --enable-tbarsmpl use wxToolBarSimple class | |
991 | --enable-treectrl use wxTreeCtrl class | |
992 | --enable-tipwindow use wxTipWindow class | |
993 | --enable-popupwin use wxPopUpWindow class | |
994 | --enable-commondlg use all common dialogs | |
995 | --enable-choicedlg use wxChoiceDialog | |
996 | --enable-coldlg use wxColourDialog | |
997 | --enable-filedlg use wxFileDialog | |
998 | --enable-finddlg use wxFindReplaceDialog | |
999 | --enable-fontdlg use wxFontDialog | |
1000 | --enable-dirdlg use wxDirDialog | |
1001 | --enable-msgdlg use wxMessageDialog | |
1002 | --enable-numberdlg use wxNumberEntryDialog | |
1003 | --enable-splash use wxSplashScreen | |
1004 | --enable-textdlg use wxTextDialog | |
1005 | --enable-tipdlg use startup tips | |
1006 | --enable-progressdlg use wxProgressDialog | |
1007 | --enable-wizarddlg use wxWizard | |
1008 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1009 | --enable-miniframe use wxMiniFrame class | |
1010 | --enable-tooltips use wxToolTip class | |
1011 | --enable-splines use spline drawing code | |
1012 | --enable-validators use wxValidator and derived classes | |
1013 | --enable-busyinfo use wxBusyInfo | |
1014 | --enable-joystick use wxJoystick (Linux only) | |
1015 | --enable-metafiles use wxMetaFile (Windows only) | |
1016 | --enable-dragimage use wxDragImage | |
1017 | --enable-accessibility enable accessibility support | |
1018 | --enable-palette use wxPalette class | |
1019 | --enable-image use wxImage class | |
1020 | --enable-gif use gif images (GIF file format) | |
1021 | --enable-pcx use pcx images (PCX file format) | |
1022 | --enable-iff use iff images (IFF file format) | |
1023 | --enable-pnm use pnm images (PNM file format) | |
1024 | --enable-xpm use xpm images (XPM file format) | |
1025 | --enable-icocur use Windows ICO and CUR formats | |
1026 | --disable-largefile omit support for large files | |
1027 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1028 | --disable-gtktest Do not try to compile and run a test GTK program | |
1029 | ||
1030 | Optional Packages: | |
1031 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1032 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1033 | --with-gtk use GTK+ | |
1034 | --with-motif use Motif/Lesstif | |
1035 | --with-mac use Mac OS X | |
1036 | --with-cocoa use Cocoa | |
1037 | --with-wine use Wine | |
1038 | --with-msw use MS-Windows | |
1039 | --with-pm use OS/2 Presentation Manager | |
1040 | --with-mgl use SciTech MGL | |
1041 | --with-microwin use MicroWindows | |
1042 | --with-x11 use X11 | |
1043 | --with-libpng use libpng (PNG image format) | |
1044 | --with-libjpeg use libjpeg (JPEG file format) | |
1045 | --with-libtiff use libtiff (TIFF file format) | |
1046 | --with-opengl use OpenGL (or Mesa) | |
1047 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1048 | --with-regex enable support for wxRegEx class | |
1049 | --with-zlib use zlib for LZW compression | |
1050 | --with-odbc use the IODBC and wxODBC classes | |
1051 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1052 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1053 | --with-x use the X Window System | |
1054 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1055 | ||
1056 | Some influential environment variables: | |
1057 | CC C compiler command | |
1058 | CFLAGS C compiler flags | |
1059 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1060 | nonstandard directory <lib dir> | |
1061 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1062 | headers in a nonstandard directory <include dir> | |
1063 | CPP C preprocessor | |
1064 | CXX C++ compiler command | |
1065 | CXXFLAGS C++ compiler flags | |
1066 | CXXCPP C++ preprocessor | |
1067 | ||
1068 | Use these variables to override the choices made by `configure' or to help | |
1069 | it to find libraries and programs with nonstandard names/locations. | |
1070 | ||
1071 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1072 | _ACEOF | |
1073 | fi | |
1074 | ||
1075 | if test "$ac_init_help" = "recursive"; then | |
1076 | # If there are subdirs, report their specific --help. | |
1077 | ac_popdir=`pwd` | |
1078 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1079 | test -d $ac_dir || continue | |
1080 | ac_builddir=. | |
1081 | ||
1082 | if test "$ac_dir" != .; then | |
1083 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1084 | # A "../" for each directory in $ac_dir_suffix. | |
1085 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1086 | else | |
1087 | ac_dir_suffix= ac_top_builddir= | |
1088 | fi | |
1089 | ||
1090 | case $srcdir in | |
1091 | .) # No --srcdir option. We are building in place. | |
1092 | ac_srcdir=. | |
1093 | if test -z "$ac_top_builddir"; then | |
1094 | ac_top_srcdir=. | |
1095 | else | |
1096 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1097 | fi ;; | |
1098 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1099 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1100 | ac_top_srcdir=$srcdir ;; | |
1101 | *) # Relative path. | |
1102 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1103 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1104 | esac | |
1105 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1106 | # absolute. | |
1107 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1108 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1109 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1110 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1111 | ||
1112 | cd $ac_dir | |
1113 | # Check for guested configure; otherwise get Cygnus style configure. | |
1114 | if test -f $ac_srcdir/configure.gnu; then | |
1115 | echo | |
1116 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1117 | elif test -f $ac_srcdir/configure; then | |
1118 | echo | |
1119 | $SHELL $ac_srcdir/configure --help=recursive | |
1120 | elif test -f $ac_srcdir/configure.ac || | |
1121 | test -f $ac_srcdir/configure.in; then | |
1122 | echo | |
1123 | $ac_configure --help | |
1124 | else | |
1125 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1126 | fi | |
1127 | cd $ac_popdir | |
1128 | done | |
1129 | fi | |
8284b0c5 | 1130 | |
e6cc62c6 VS |
1131 | test -n "$ac_init_help" && exit 0 |
1132 | if $ac_init_version; then | |
1133 | cat <<\_ACEOF | |
1134 | wxWindows configure 2.5.0 | |
1135 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1136 | |
e6cc62c6 VS |
1137 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1138 | Free Software Foundation, Inc. | |
1139 | This configure script is free software; the Free Software Foundation | |
1140 | gives unlimited permission to copy, distribute and modify it. | |
1141 | _ACEOF | |
1142 | exit 0 | |
7c66a493 | 1143 | fi |
e6cc62c6 VS |
1144 | exec 5>config.log |
1145 | cat >&5 <<_ACEOF | |
1146 | This file contains any messages produced by compilers while | |
1147 | running configure, to aid debugging if configure makes a mistake. | |
1148 | ||
1149 | It was created by wxWindows $as_me 2.5.0, which was | |
1150 | generated by GNU Autoconf 2.57. Invocation command line was | |
1151 | ||
1152 | $ $0 $@ | |
1153 | ||
1154 | _ACEOF | |
1155 | { | |
1156 | cat <<_ASUNAME | |
1157 | ## --------- ## | |
1158 | ## Platform. ## | |
1159 | ## --------- ## | |
1160 | ||
1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1166 | ||
1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1169 | ||
1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | _ASUNAME | |
1179 | ||
1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1181 | for as_dir in $PATH | |
1182 | do | |
1183 | IFS=$as_save_IFS | |
1184 | test -z "$as_dir" && as_dir=. | |
1185 | echo "PATH: $as_dir" | |
1186 | done | |
1187 | ||
1188 | } >&5 | |
1189 | ||
1190 | cat >&5 <<_ACEOF | |
1191 | ||
1192 | ||
1193 | ## ----------- ## | |
1194 | ## Core tests. ## | |
1195 | ## ----------- ## | |
1196 | ||
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | # Keep a trace of the command line. | |
1201 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1202 | # Strip out --silent because we don't want to record it for future runs. | |
1203 | # Also quote any args containing shell meta-characters. | |
1204 | # Make two passes to allow for proper duplicate-argument suppression. | |
1205 | ac_configure_args= | |
1206 | ac_configure_args0= | |
1207 | ac_configure_args1= | |
1208 | ac_sep= | |
1209 | ac_must_keep_next=false | |
1210 | for ac_pass in 1 2 | |
1211 | do | |
1212 | for ac_arg | |
1213 | do | |
1214 | case $ac_arg in | |
1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1217 | | -silent | --silent | --silen | --sile | --sil) | |
1218 | continue ;; | |
1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1221 | esac | |
1222 | case $ac_pass in | |
1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1224 | 2) | |
1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1226 | if test $ac_must_keep_next = true; then | |
1227 | ac_must_keep_next=false # Got value, back to normal. | |
1228 | else | |
1229 | case $ac_arg in | |
1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1233 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1234 | case "$ac_configure_args0 " in | |
1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1236 | esac | |
1237 | ;; | |
1238 | -* ) ac_must_keep_next=true ;; | |
1239 | esac | |
1240 | fi | |
1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1242 | # Get rid of the leading space. | |
1243 | ac_sep=" " | |
1244 | ;; | |
1245 | esac | |
1246 | done | |
1247 | done | |
1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1250 | ||
1251 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1252 | # config.log. We remove comments because anyway the quotes in there | |
1253 | # would cause problems or look ugly. | |
1254 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1255 | # such as our DU 5.0 friend, will then `close' the trap. | |
1256 | trap 'exit_status=$? | |
1257 | # Save into config.log some information that might help in debugging. | |
1258 | { | |
1259 | echo | |
1260 | ||
1261 | cat <<\_ASBOX | |
1262 | ## ---------------- ## | |
1263 | ## Cache variables. ## | |
1264 | ## ---------------- ## | |
1265 | _ASBOX | |
1266 | echo | |
1267 | # The following way of writing the cache mishandles newlines in values, | |
1268 | { | |
1269 | (set) 2>&1 | | |
1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1271 | *ac_space=\ *) | |
1272 | sed -n \ | |
1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1275 | ;; | |
1276 | *) | |
1277 | sed -n \ | |
1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1279 | ;; | |
1280 | esac; | |
1281 | } | |
1282 | echo | |
1283 | ||
1284 | cat <<\_ASBOX | |
1285 | ## ----------------- ## | |
1286 | ## Output variables. ## | |
1287 | ## ----------------- ## | |
1288 | _ASBOX | |
1289 | echo | |
1290 | for ac_var in $ac_subst_vars | |
1291 | do | |
1292 | eval ac_val=$`echo $ac_var` | |
1293 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1294 | done | sort | |
1295 | echo | |
1296 | ||
1297 | if test -n "$ac_subst_files"; then | |
1298 | cat <<\_ASBOX | |
1299 | ## ------------- ## | |
1300 | ## Output files. ## | |
1301 | ## ------------- ## | |
1302 | _ASBOX | |
1303 | echo | |
1304 | for ac_var in $ac_subst_files | |
1305 | do | |
1306 | eval ac_val=$`echo $ac_var` | |
1307 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1308 | done | sort | |
1309 | echo | |
1310 | fi | |
1311 | ||
1312 | if test -s confdefs.h; then | |
1313 | cat <<\_ASBOX | |
1314 | ## ----------- ## | |
1315 | ## confdefs.h. ## | |
1316 | ## ----------- ## | |
1317 | _ASBOX | |
1318 | echo | |
1319 | sed "/^$/d" confdefs.h | sort | |
1320 | echo | |
1321 | fi | |
1322 | test "$ac_signal" != 0 && | |
1323 | echo "$as_me: caught signal $ac_signal" | |
1324 | echo "$as_me: exit $exit_status" | |
1325 | } >&5 | |
1326 | rm -f core core.* *.core && | |
1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1328 | exit $exit_status | |
1329 | ' 0 | |
1330 | for ac_signal in 1 2 13 15; do | |
1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1332 | done | |
1333 | ac_signal=0 | |
1334 | ||
1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1336 | rm -rf conftest* confdefs.h | |
1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1338 | echo >confdefs.h | |
1339 | ||
1340 | # Predefined preprocessor variables. | |
1341 | ||
1342 | cat >>confdefs.h <<_ACEOF | |
1343 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1344 | _ACEOF | |
1345 | ||
1346 | ||
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | # Let the site file select an alternate cache file if it wants to. | |
1368 | # Prefer explicitly selected file to automatically selected ones. | |
1369 | if test -z "$CONFIG_SITE"; then | |
1370 | if test "x$prefix" != xNONE; then | |
1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1372 | else | |
1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1374 | fi | |
1375 | fi | |
1376 | for ac_site_file in $CONFIG_SITE; do | |
1377 | if test -r "$ac_site_file"; then | |
1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1379 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1380 | sed 's/^/| /' "$ac_site_file" >&5 | |
1381 | . "$ac_site_file" | |
1382 | fi | |
1383 | done | |
1384 | ||
1385 | if test -r "$cache_file"; then | |
1386 | # Some versions of bash will fail to source /dev/null (special | |
1387 | # files actually), so we avoid doing that. | |
1388 | if test -f "$cache_file"; then | |
1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1390 | echo "$as_me: loading cache $cache_file" >&6;} | |
1391 | case $cache_file in | |
1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1393 | *) . ./$cache_file;; | |
1394 | esac | |
1395 | fi | |
1396 | else | |
1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1398 | echo "$as_me: creating cache $cache_file" >&6;} | |
1399 | >$cache_file | |
1400 | fi | |
1401 | ||
1402 | # Check that the precious variables saved in the cache have kept the same | |
1403 | # value. | |
1404 | ac_cache_corrupted=false | |
1405 | for ac_var in `(set) 2>&1 | | |
1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1408 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1410 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1411 | case $ac_old_set,$ac_new_set in | |
1412 | set,) | |
1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1415 | ac_cache_corrupted=: ;; | |
1416 | ,set) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,);; | |
1421 | *) | |
1422 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1426 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1428 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1429 | ac_cache_corrupted=: | |
1430 | fi;; | |
1431 | esac | |
1432 | # Pass precious variables to config.status. | |
1433 | if test "$ac_new_set" = set; then | |
1434 | case $ac_new_val in | |
1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1437 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1438 | esac | |
1439 | case " $ac_configure_args " in | |
1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1442 | esac | |
1443 | fi | |
1444 | done | |
1445 | if $ac_cache_corrupted; then | |
1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1450 | { (exit 1); exit 1; }; } | |
1451 | fi | |
1452 | ||
1453 | ac_ext=c | |
1454 | ac_cpp='$CPP $CPPFLAGS' | |
1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
698dcdb6 | 1475 | |
8284b0c5 | 1476 | |
7c66a493 | 1477 | |
a0b9e27f MB |
1478 | |
1479 | ||
a0b9e27f | 1480 | |
a0b9e27f | 1481 | |
a0b9e27f | 1482 | |
a0b9e27f | 1483 | |
a0b9e27f | 1484 | |
a0b9e27f | 1485 | |
e6cc62c6 VS |
1486 | |
1487 | ||
1488 | ac_aux_dir= | |
1489 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1490 | if test -f $ac_dir/install-sh; then | |
1491 | ac_aux_dir=$ac_dir | |
1492 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1493 | break | |
1494 | elif test -f $ac_dir/install.sh; then | |
1495 | ac_aux_dir=$ac_dir | |
1496 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1497 | break | |
1498 | elif test -f $ac_dir/shtool; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1501 | break | |
1502 | fi | |
1503 | done | |
1504 | if test -z "$ac_aux_dir"; then | |
1505 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1506 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1507 | { (exit 1); exit 1; }; } | |
1508 | fi | |
1509 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1510 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1511 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1512 | ||
1513 | # Make sure we can run config.sub. | |
1514 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1515 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1516 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1517 | { (exit 1); exit 1; }; } | |
1518 | ||
1519 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1520 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_build+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 | else | |
1524 | ac_cv_build_alias=$build_alias | |
1525 | test -z "$ac_cv_build_alias" && | |
1526 | ac_cv_build_alias=`$ac_config_guess` | |
1527 | test -z "$ac_cv_build_alias" && | |
1528 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1529 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1532 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1533 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ||
1536 | fi | |
1537 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1538 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1539 | build=$ac_cv_build | |
1540 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1541 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1542 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1543 | ||
1544 | ||
1545 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1546 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1547 | if test "${ac_cv_host+set}" = set; then | |
1548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1549 | else | |
1550 | ac_cv_host_alias=$host_alias | |
1551 | test -z "$ac_cv_host_alias" && | |
1552 | ac_cv_host_alias=$ac_cv_build_alias | |
1553 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1554 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1555 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1556 | { (exit 1); exit 1; }; } | |
1557 | ||
1558 | fi | |
1559 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1560 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1561 | host=$ac_cv_host | |
1562 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1563 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1564 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1565 | ||
1566 | ||
1567 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1568 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1569 | if test "${ac_cv_target+set}" = set; then | |
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1571 | else | |
1572 | ac_cv_target_alias=$target_alias | |
1573 | test "x$ac_cv_target_alias" = "x" && | |
1574 | ac_cv_target_alias=$ac_cv_host_alias | |
1575 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1576 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1577 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | fi | |
1581 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1582 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1583 | target=$ac_cv_target | |
1584 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1585 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1586 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1587 | ||
1588 | ||
1589 | # The aliases save the names the user supplied, while $host etc. | |
1590 | # will get canonicalized. | |
1591 | test -n "$target_alias" && | |
7c66a493 VZ |
1592 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1593 | NONENONEs,x,x, && | |
1594 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1595 | |
1596 | ||
a0b9e27f | 1597 | |
10f2d63a | 1598 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1599 | WX_MINOR_VERSION_NUMBER=5 |
1600 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1601 | |
10f2d63a | 1602 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1603 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1604 | |
978f1259 RL |
1605 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1606 | ||
34bed6d9 | 1607 | WX_CURRENT=0 |
6426998c RL |
1608 | WX_REVISION=0 |
1609 | WX_AGE=0 | |
1610 | ||
8284b0c5 MB |
1611 | |
1612 | ||
10f2d63a VZ |
1613 | USE_UNIX=1 |
1614 | USE_WIN32=0 | |
f9bc1684 | 1615 | USE_DOS=0 |
b12915c1 | 1616 | USE_BEOS=0 |
1216f52d | 1617 | USE_MAC=0 |
b12915c1 | 1618 | |
10f2d63a | 1619 | USE_AIX= |
fe0895cf VS |
1620 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1621 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1622 | USE_LINUX= |
f6bcfd97 | 1623 | USE_NETBSD= |
89e3b3e4 | 1624 | USE_OPENBSD= |
fe0895cf VS |
1625 | USE_OSF= USE_SGI= |
1626 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1627 | USE_ULTRIX= |
89e3b3e4 VZ |
1628 | USE_UNIXWARE= |
1629 | ||
1630 | USE_ALPHA= | |
10f2d63a | 1631 | |
ab9b9eab VZ |
1632 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1633 | ||
ac0c4cc3 | 1634 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1635 | |
ac0c4cc3 | 1636 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1637 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1638 | DEFAULT_wxUSE_MAC=0 |
1639 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1640 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1641 | DEFAULT_wxUSE_MOTIF=0 |
1642 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1643 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1644 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1645 | |
ac0c4cc3 | 1646 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1647 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1648 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1649 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1650 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1651 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1652 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1653 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1654 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1655 | |
d6a55c4b | 1656 | PROGRAM_EXT= |
3a922bb4 | 1657 | SO_SUFFIX=so |
fe0895cf | 1658 | SAMPLES_RPATH_FLAG= |
d6a55c4b | 1659 | |
10f2d63a VZ |
1660 | case "${host}" in |
1661 | *-hp-hpux* ) | |
1662 | USE_HPUX=1 | |
1663 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1664 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1665 | SO_SUFFIX=sl |
e6cc62c6 | 1666 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1667 | #define __HPUX__ 1 |
e6cc62c6 | 1668 | _ACEOF |
10f2d63a VZ |
1669 | |
1670 | ;; | |
1671 | *-*-linux* ) | |
1672 | USE_LINUX=1 | |
e6cc62c6 | 1673 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1674 | #define __LINUX__ 1 |
e6cc62c6 | 1675 | _ACEOF |
10f2d63a VZ |
1676 | |
1677 | TMP=`uname -m` | |
1678 | if test "x$TMP" = "xalpha"; then | |
1679 | USE_ALPHA=1 | |
e6cc62c6 | 1680 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1681 | #define __ALPHA__ 1 |
e6cc62c6 | 1682 | _ACEOF |
fe0895cf VS |
1683 | |
1684 | fi | |
1685 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1686 | ;; | |
1687 | *-*-gnu* ) | |
1688 | USE_GNU=1 | |
e6cc62c6 | 1689 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1690 | #define __GNU__ 1 |
e6cc62c6 | 1691 | _ACEOF |
fe0895cf VS |
1692 | |
1693 | TMP=`uname -m` | |
1694 | if test "x$TMP" = "xalpha"; then | |
1695 | USE_ALPHA=1 | |
e6cc62c6 | 1696 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1697 | #define __ALPHA__ 1 |
e6cc62c6 | 1698 | _ACEOF |
10f2d63a VZ |
1699 | |
1700 | fi | |
1701 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1702 | ;; | |
1703 | *-*-irix5* | *-*-irix6* ) | |
1704 | USE_SGI=1 | |
1705 | USE_SVR4=1 | |
e6cc62c6 | 1706 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1707 | #define __SGI__ 1 |
e6cc62c6 | 1708 | _ACEOF |
10f2d63a | 1709 | |
e6cc62c6 | 1710 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1711 | #define __SVR4__ 1 |
e6cc62c6 | 1712 | _ACEOF |
10f2d63a VZ |
1713 | |
1714 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1715 | ;; | |
1716 | *-*-solaris2* ) | |
1717 | USE_SUN=1 | |
1718 | USE_SOLARIS=1 | |
1719 | USE_SVR4=1 | |
e6cc62c6 | 1720 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1721 | #define __SUN__ 1 |
e6cc62c6 | 1722 | _ACEOF |
10f2d63a | 1723 | |
e6cc62c6 | 1724 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1725 | #define __SOLARIS__ 1 |
e6cc62c6 | 1726 | _ACEOF |
10f2d63a | 1727 | |
e6cc62c6 | 1728 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1729 | #define __SVR4__ 1 |
e6cc62c6 | 1730 | _ACEOF |
10f2d63a VZ |
1731 | |
1732 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1733 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1734 | ;; |
1735 | *-*-sunos4* ) | |
1736 | USE_SUN=1 | |
1737 | USE_SUNOS=1 | |
1738 | USE_BSD=1 | |
e6cc62c6 | 1739 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1740 | #define __SUN__ 1 |
e6cc62c6 | 1741 | _ACEOF |
10f2d63a | 1742 | |
e6cc62c6 | 1743 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1744 | #define __SUNOS__ 1 |
e6cc62c6 | 1745 | _ACEOF |
10f2d63a | 1746 | |
e6cc62c6 | 1747 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1748 | #define __BSD__ 1 |
e6cc62c6 | 1749 | _ACEOF |
10f2d63a VZ |
1750 | |
1751 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1752 | ;; | |
f6bcfd97 | 1753 | *-*-freebsd*) |
10f2d63a VZ |
1754 | USE_BSD=1 |
1755 | USE_FREEBSD=1 | |
e6cc62c6 | 1756 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1757 | #define __FREEBSD__ 1 |
e6cc62c6 | 1758 | _ACEOF |
10f2d63a | 1759 | |
e6cc62c6 | 1760 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1761 | #define __BSD__ 1 |
e6cc62c6 | 1762 | _ACEOF |
95c8801c VS |
1763 | |
1764 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1765 | ;; | |
1766 | *-*-openbsd*) | |
1767 | USE_BSD=1 | |
1768 | USE_OPENBSD=1 | |
e6cc62c6 | 1769 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1770 | #define __OPENBSD__ 1 |
e6cc62c6 | 1771 | _ACEOF |
95c8801c | 1772 | |
e6cc62c6 | 1773 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1774 | #define __BSD__ 1 |
e6cc62c6 | 1775 | _ACEOF |
f6bcfd97 BP |
1776 | |
1777 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1778 | ;; | |
1779 | *-*-netbsd*) | |
1780 | USE_BSD=1 | |
1781 | USE_NETBSD=1 | |
e6cc62c6 | 1782 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1783 | #define __NETBSD__ 1 |
e6cc62c6 | 1784 | _ACEOF |
f6bcfd97 | 1785 | |
e6cc62c6 | 1786 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1787 | #define __BSD__ 1 |
e6cc62c6 | 1788 | _ACEOF |
10f2d63a VZ |
1789 | |
1790 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1791 | ;; | |
1792 | *-*-osf* ) | |
1793 | USE_ALPHA=1 | |
1794 | USE_OSF=1 | |
e6cc62c6 | 1795 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1796 | #define __ALPHA__ 1 |
e6cc62c6 | 1797 | _ACEOF |
10f2d63a | 1798 | |
e6cc62c6 | 1799 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1800 | #define __OSF__ 1 |
e6cc62c6 | 1801 | _ACEOF |
10f2d63a VZ |
1802 | |
1803 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1804 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1805 | ;; |
1806 | *-*-dgux5* ) | |
1807 | USE_ALPHA=1 | |
1808 | USE_SVR4=1 | |
e6cc62c6 | 1809 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1810 | #define __ALPHA__ 1 |
e6cc62c6 | 1811 | _ACEOF |
10f2d63a | 1812 | |
e6cc62c6 | 1813 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1814 | #define __SVR4__ 1 |
e6cc62c6 | 1815 | _ACEOF |
10f2d63a VZ |
1816 | |
1817 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1818 | ;; | |
1819 | *-*-sysv5* ) | |
1820 | USE_SYSV=1 | |
1821 | USE_SVR4=1 | |
e6cc62c6 | 1822 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1823 | #define __SYSV__ 1 |
e6cc62c6 | 1824 | _ACEOF |
10f2d63a | 1825 | |
e6cc62c6 | 1826 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1827 | #define __SVR4__ 1 |
e6cc62c6 | 1828 | _ACEOF |
10f2d63a VZ |
1829 | |
1830 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1831 | ;; | |
1832 | *-*-aix* ) | |
1833 | USE_AIX=1 | |
1834 | USE_SYSV=1 | |
1835 | USE_SVR4=1 | |
2b5f62a0 | 1836 | SO_SUFFIX=a |
e6cc62c6 | 1837 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1838 | #define __AIX__ 1 |
e6cc62c6 | 1839 | _ACEOF |
10f2d63a | 1840 | |
e6cc62c6 | 1841 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1842 | #define __SYSV__ 1 |
e6cc62c6 | 1843 | _ACEOF |
10f2d63a | 1844 | |
e6cc62c6 | 1845 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1846 | #define __SVR4__ 1 |
e6cc62c6 | 1847 | _ACEOF |
10f2d63a VZ |
1848 | |
1849 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1850 | ;; | |
1851 | ||
89e3b3e4 VZ |
1852 | *-*-*UnixWare*) |
1853 | USE_SYSV=1 | |
1854 | USE_SVR4=1 | |
1855 | USE_UNIXWARE=1 | |
e6cc62c6 | 1856 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1857 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1858 | _ACEOF |
89e3b3e4 VZ |
1859 | |
1860 | ;; | |
1861 | ||
1c8183e2 | 1862 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1863 | SO_SUFFIX=dll |
cf27ef00 | 1864 | PROGRAM_EXT=".exe" |
7b7a7637 | 1865 | RESCOMP=windres |
10f2d63a VZ |
1866 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1867 | ;; | |
1868 | ||
f9bc1684 VS |
1869 | *-pc-msdosdjgpp ) |
1870 | USE_UNIX=0 | |
1871 | USE_DOS=1 | |
e6cc62c6 | 1872 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1873 | #define __DOS__ 1 |
e6cc62c6 | 1874 | _ACEOF |
f9bc1684 VS |
1875 | |
1876 | PROGRAM_EXT=".exe" | |
1877 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1878 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1879 | ;; |
1880 | ||
6fa882bd | 1881 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1882 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1883 | #define __EMX__ 1 |
e6cc62c6 | 1884 | _ACEOF |
10f2d63a | 1885 | |
cf27ef00 | 1886 | PROGRAM_EXT=".exe" |
e07802fc | 1887 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1888 | ;; |
1889 | ||
d08b457b GD |
1890 | powerpc-*-darwin* ) |
1891 | USE_BSD=1 | |
f11bdd03 | 1892 | USE_DARWIN=1 |
3a922bb4 | 1893 | SO_SUFFIX=dylib |
e6cc62c6 | 1894 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1895 | #define __BSD__ 1 |
e6cc62c6 | 1896 | _ACEOF |
b4085ce6 | 1897 | |
e6cc62c6 | 1898 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1899 | #define __DARWIN__ 1 |
e6cc62c6 | 1900 | _ACEOF |
d08b457b | 1901 | |
e6cc62c6 | 1902 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1903 | #define __POWERPC__ 1 |
e6cc62c6 | 1904 | _ACEOF |
82d43113 | 1905 | |
e6cc62c6 | 1906 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1907 | #define TARGET_CARBON 1 |
e6cc62c6 | 1908 | _ACEOF |
b4085ce6 GD |
1909 | |
1910 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1911 | ;; | |
1912 | ||
b12915c1 VZ |
1913 | *-*-beos* ) |
1914 | USE_BEOS=1 | |
e6cc62c6 | 1915 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1916 | #define __BEOS__ 1 |
e6cc62c6 | 1917 | _ACEOF |
b12915c1 VZ |
1918 | |
1919 | ;; | |
1920 | ||
10f2d63a | 1921 | *) |
e6cc62c6 VS |
1922 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1923 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1924 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1925 | esac |
1926 | ||
8284b0c5 MB |
1927 | |
1928 | ||
1929 | ||
1930 | wx_arg_cache_file="configarg.cache" | |
1931 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1932 | rm -f ${wx_arg_cache_file}.tmp |
1933 | touch ${wx_arg_cache_file}.tmp | |
1934 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1935 | |
10f2d63a VZ |
1936 | |
1937 | DEBUG_CONFIGURE=0 | |
1938 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1939 | DEFAULT_wxUSE_UNIVERSAL=no |
1940 | ||
d8356fa3 VZ |
1941 | DEFAULT_wxUSE_NANOX=no |
1942 | ||
10f2d63a VZ |
1943 | DEFAULT_wxUSE_THREADS=yes |
1944 | ||
1945 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1946 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1947 | DEFAULT_wxUSE_PROFILE=no |
1948 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1949 | DEFAULT_wxUSE_NO_RTTI=no |
1950 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1951 | DEFAULT_wxUSE_PERMISSIVE=no |
1952 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1953 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1954 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1955 | DEFAULT_wxUSE_MEM_TRACING=no | |
1956 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1957 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1958 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1959 | DEFAULT_wxUSE_APPLE_IEEE=no |
1960 | ||
1961 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1962 | DEFAULT_wxUSE_LOGWINDOW=no |
1963 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1964 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1965 | |
1966 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1967 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1968 | |
3e44f09d | 1969 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1970 | DEFAULT_wxUSE_ZLIB=no |
1971 | DEFAULT_wxUSE_LIBPNG=no | |
1972 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1973 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1974 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1975 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1976 | |
eb4efbdc | 1977 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1978 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1979 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1980 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1981 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1982 | DEFAULT_wxUSE_TIMER=no |
1983 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1984 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1985 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1986 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1987 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1988 | DEFAULT_wxUSE_WAVE=no |
1989 | DEFAULT_wxUSE_INTL=no | |
1990 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1991 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1992 | DEFAULT_wxUSE_STREAMS=no |
1993 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1994 | DEFAULT_wxUSE_OLE=no |
1995 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1996 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1997 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1998 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1999 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2000 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2001 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2002 | |
2003 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2004 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2005 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2006 | ||
10f2d63a VZ |
2007 | DEFAULT_wxUSE_CLIPBOARD=no |
2008 | DEFAULT_wxUSE_TOOLTIPS=no | |
2009 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2010 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2011 | DEFAULT_wxUSE_SPLINES=no |
2012 | ||
2013 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2014 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2015 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2016 | ||
10f2d63a VZ |
2017 | DEFAULT_wxUSE_RESOURCES=no |
2018 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2019 | DEFAULT_wxUSE_IPC=no | |
2020 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2021 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2022 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2023 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2024 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2025 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2026 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2027 | DEFAULT_wxUSE_PROTOCOL=no | |
2028 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2029 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2030 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2031 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2032 | |
10f2d63a | 2033 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2034 | DEFAULT_wxUSE_CHOICEDLG=no |
2035 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2036 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2037 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2038 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2039 | DEFAULT_wxUSE_FONTDLG=no |
2040 | DEFAULT_wxUSE_MSGDLG=no | |
2041 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2042 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2043 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2044 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2045 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2046 | DEFAULT_wxUSE_WIZARDDLG=no |
2047 | ||
1e6feb95 | 2048 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2049 | DEFAULT_wxUSE_MINIFRAME=no |
2050 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2051 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2052 | DEFAULT_wxUSE_FS_INET=no |
2053 | DEFAULT_wxUSE_FS_ZIP=no | |
2054 | DEFAULT_wxUSE_BUSYINFO=no | |
2055 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2056 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2057 | |
2058 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2059 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2060 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2061 | DEFAULT_wxUSE_CALCTRL=no |
2062 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2063 | DEFAULT_wxUSE_CHECKBOX=no |
2064 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2065 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2066 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2067 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2068 | DEFAULT_wxUSE_GAUGE=no |
2069 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2070 | DEFAULT_wxUSE_IMAGLIST=no |
2071 | DEFAULT_wxUSE_LISTBOX=no | |
2072 | DEFAULT_wxUSE_LISTCTRL=no | |
2073 | DEFAULT_wxUSE_NOTEBOOK=no | |
2074 | DEFAULT_wxUSE_RADIOBOX=no | |
2075 | DEFAULT_wxUSE_RADIOBTN=no | |
2076 | DEFAULT_wxUSE_SASH=no | |
2077 | DEFAULT_wxUSE_SCROLLBAR=no | |
2078 | DEFAULT_wxUSE_SLIDER=no | |
2079 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2080 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2081 | DEFAULT_wxUSE_SPLITTER=no |
2082 | DEFAULT_wxUSE_STATBMP=no | |
2083 | DEFAULT_wxUSE_STATBOX=no | |
2084 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2085 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2086 | DEFAULT_wxUSE_STATUSBAR=yes |
2087 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2088 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2089 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2090 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2091 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2092 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2093 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2094 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2095 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2096 | |
2097 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2098 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2099 | DEFAULT_wxUSE_WCSRTOMBS=no |
2100 | ||
edae8572 | 2101 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2102 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2103 | DEFAULT_wxUSE_GIF=no |
2104 | DEFAULT_wxUSE_PCX=no | |
2105 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2106 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2107 | DEFAULT_wxUSE_XPM=no |
658974ae | 2108 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2109 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d VS |
2110 | |
2111 | DEFAULT_wxUSE_MONOLITHIC=yes | |
10f2d63a | 2112 | else |
1e6feb95 VZ |
2113 | DEFAULT_wxUSE_UNIVERSAL=no |
2114 | ||
d8356fa3 VZ |
2115 | DEFAULT_wxUSE_NANOX=no |
2116 | ||
10f2d63a VZ |
2117 | DEFAULT_wxUSE_THREADS=yes |
2118 | ||
2119 | DEFAULT_wxUSE_SHARED=yes | |
2120 | DEFAULT_wxUSE_OPTIMISE=yes | |
2121 | DEFAULT_wxUSE_PROFILE=no | |
2122 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2123 | DEFAULT_wxUSE_NO_RTTI=no |
2124 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2125 | DEFAULT_wxUSE_PERMISSIVE=no |
2126 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2127 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2128 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2129 | DEFAULT_wxUSE_MEM_TRACING=no | |
2130 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2131 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 2132 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
2133 | DEFAULT_wxUSE_APPLE_IEEE=yes |
2134 | ||
2135 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2136 | DEFAULT_wxUSE_LOGWINDOW=yes |
2137 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2138 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2139 | |
2140 | DEFAULT_wxUSE_GUI=yes | |
2141 | ||
831b3152 | 2142 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
2143 | DEFAULT_wxUSE_ZLIB=yes |
2144 | DEFAULT_wxUSE_LIBPNG=yes | |
2145 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2146 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2147 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2148 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2149 | |
eb4efbdc | 2150 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2151 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2152 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2153 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2154 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2155 | DEFAULT_wxUSE_TIMER=yes |
2156 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2157 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2158 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2159 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2160 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2161 | DEFAULT_wxUSE_WAVE=no |
2162 | DEFAULT_wxUSE_INTL=yes | |
2163 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2164 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2165 | DEFAULT_wxUSE_STREAMS=yes |
2166 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2167 | DEFAULT_wxUSE_OLE=yes |
2168 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2169 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2170 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2171 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2172 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2173 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2174 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2175 | |
2176 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2177 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2178 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2179 | ||
10f2d63a VZ |
2180 | DEFAULT_wxUSE_CLIPBOARD=yes |
2181 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2182 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2183 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2184 | DEFAULT_wxUSE_SPLINES=yes |
2185 | ||
2186 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2187 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2188 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2189 | ||
2b5f62a0 | 2190 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2191 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2192 | DEFAULT_wxUSE_IPC=yes | |
2193 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2194 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2195 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2196 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2197 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2198 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2199 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2200 | DEFAULT_wxUSE_PROTOCOL=yes |
2201 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2202 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2203 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2204 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2205 | |
2206 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2207 | DEFAULT_wxUSE_CHOICEDLG=yes |
2208 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2209 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2210 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2211 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2212 | DEFAULT_wxUSE_FONTDLG=yes |
2213 | DEFAULT_wxUSE_MSGDLG=yes | |
2214 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2215 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2216 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2217 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2218 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2219 | DEFAULT_wxUSE_WIZARDDLG=yes |
2220 | ||
1e6feb95 | 2221 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2222 | DEFAULT_wxUSE_MINIFRAME=yes |
2223 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2224 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2225 | DEFAULT_wxUSE_FS_INET=yes |
2226 | DEFAULT_wxUSE_FS_ZIP=yes | |
2227 | DEFAULT_wxUSE_BUSYINFO=yes | |
2228 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2229 | DEFAULT_wxUSE_VALIDATORS=yes | |
2230 | ||
2231 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2232 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2233 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2234 | DEFAULT_wxUSE_CALCTRL=yes |
2235 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2236 | DEFAULT_wxUSE_CHECKBOX=yes |
2237 | DEFAULT_wxUSE_CHECKLST=yes | |
2238 | DEFAULT_wxUSE_CHOICE=yes | |
2239 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2240 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2241 | DEFAULT_wxUSE_GAUGE=yes |
2242 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2243 | DEFAULT_wxUSE_IMAGLIST=yes |
2244 | DEFAULT_wxUSE_LISTBOX=yes | |
2245 | DEFAULT_wxUSE_LISTCTRL=yes | |
2246 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2247 | DEFAULT_wxUSE_RADIOBOX=yes | |
2248 | DEFAULT_wxUSE_RADIOBTN=yes | |
2249 | DEFAULT_wxUSE_SASH=yes | |
2250 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2251 | DEFAULT_wxUSE_SLIDER=yes | |
2252 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2253 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2254 | DEFAULT_wxUSE_SPLITTER=yes |
2255 | DEFAULT_wxUSE_STATBMP=yes | |
2256 | DEFAULT_wxUSE_STATBOX=yes | |
2257 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2258 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2259 | DEFAULT_wxUSE_STATUSBAR=yes |
2260 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2261 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2262 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2263 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2264 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2265 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2266 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2267 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2268 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2269 | |
2270 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2271 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2272 | DEFAULT_wxUSE_WCSRTOMBS=no |
2273 | ||
edae8572 | 2274 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2275 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2276 | DEFAULT_wxUSE_GIF=yes |
2277 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2278 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2279 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2280 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2281 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2282 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d VS |
2283 | |
2284 | DEFAULT_wxUSE_MONOLITHIC=yes | |
10f2d63a VZ |
2285 | fi |
2286 | ||
8284b0c5 MB |
2287 | |
2288 | ||
10f2d63a | 2289 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2290 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2291 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2292 | has_toolkit_in_cache=1 |
2293 | eval "DEFAULT_$LINE" | |
2294 | eval "CACHE_$toolkit=1" | |
2295 | fi | |
2296 | done | |
2297 | ||
8284b0c5 MB |
2298 | |
2299 | ||
5005acfe | 2300 | enablestring= |
e6cc62c6 VS |
2301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2302 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2303 | no_cache=0 |
2304 | # Check whether --enable-gui or --disable-gui was given. | |
2305 | if test "${enable_gui+set}" = set; then | |
2306 | enableval="$enable_gui" | |
e6cc62c6 | 2307 | |
10f2d63a VZ |
2308 | if test "$enableval" = yes; then |
2309 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2310 | else | |
2311 | ac_cv_use_gui='wxUSE_GUI=no' | |
2312 | fi | |
e6cc62c6 | 2313 | |
10f2d63a | 2314 | else |
e6cc62c6 | 2315 | |
10f2d63a VZ |
2316 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2317 | if test "x$LINE" != x ; then | |
2318 | eval "DEFAULT_$LINE" | |
2319 | else | |
2320 | no_cache=1 | |
2321 | fi | |
2322 | ||
2323 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2324 | |
e6cc62c6 | 2325 | fi; |
10f2d63a VZ |
2326 | |
2327 | eval "$ac_cv_use_gui" | |
2328 | if test "$no_cache" != 1; then | |
2329 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2330 | fi | |
2331 | ||
2332 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2333 | echo "$as_me:$LINENO: result: yes" >&5 |
2334 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2335 | else |
e6cc62c6 VS |
2336 | echo "$as_me:$LINENO: result: no" >&5 |
2337 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2338 | fi |
e6cc62c6 | 2339 | |
10f2d63a | 2340 | |
9747f85d VS |
2341 | enablestring= |
2342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2343 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2344 | no_cache=0 | |
2345 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2346 | if test "${enable_monolithic+set}" = set; then | |
2347 | enableval="$enable_monolithic" | |
2348 | ||
2349 | if test "$enableval" = yes; then | |
2350 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2351 | else | |
2352 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2353 | fi | |
2354 | ||
2355 | else | |
2356 | ||
2357 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2358 | if test "x$LINE" != x ; then | |
2359 | eval "DEFAULT_$LINE" | |
2360 | else | |
2361 | no_cache=1 | |
2362 | fi | |
2363 | ||
2364 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2365 | ||
2366 | fi; | |
2367 | ||
2368 | eval "$ac_cv_use_monolithic" | |
2369 | if test "$no_cache" != 1; then | |
2370 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2371 | fi | |
2372 | ||
2373 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2374 | echo "$as_me:$LINENO: result: yes" >&5 | |
2375 | echo "${ECHO_T}yes" >&6 | |
2376 | else | |
2377 | echo "$as_me:$LINENO: result: no" >&5 | |
2378 | echo "${ECHO_T}no" >&6 | |
2379 | fi | |
2380 | ||
2381 | ||
b12915c1 | 2382 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2383 | |
8284b0c5 | 2384 | |
5005acfe | 2385 | enablestring= |
e6cc62c6 VS |
2386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2387 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2388 | no_cache=0 |
2389 | # Check whether --enable-universal or --disable-universal was given. | |
2390 | if test "${enable_universal+set}" = set; then | |
2391 | enableval="$enable_universal" | |
e6cc62c6 | 2392 | |
1e6feb95 VZ |
2393 | if test "$enableval" = yes; then |
2394 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2395 | else | |
2396 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2397 | fi | |
e6cc62c6 | 2398 | |
1e6feb95 | 2399 | else |
e6cc62c6 | 2400 | |
1e6feb95 VZ |
2401 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2402 | if test "x$LINE" != x ; then | |
2403 | eval "DEFAULT_$LINE" | |
2404 | else | |
2405 | no_cache=1 | |
2406 | fi | |
2407 | ||
2408 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2409 | |
e6cc62c6 | 2410 | fi; |
1e6feb95 VZ |
2411 | |
2412 | eval "$ac_cv_use_universal" | |
2413 | if test "$no_cache" != 1; then | |
2414 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2415 | fi | |
2416 | ||
2417 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2418 | echo "$as_me:$LINENO: result: yes" >&5 |
2419 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2420 | else |
e6cc62c6 VS |
2421 | echo "$as_me:$LINENO: result: no" >&5 |
2422 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2423 | fi |
e6cc62c6 VS |
2424 | |
2425 | ||
10f2d63a VZ |
2426 | # Check whether --with-gtk or --without-gtk was given. |
2427 | if test "${with_gtk+set}" = set; then | |
2428 | withval="$with_gtk" | |
2429 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2430 | fi; |
10f2d63a VZ |
2431 | |
2432 | # Check whether --with-motif or --without-motif was given. | |
2433 | if test "${with_motif+set}" = set; then | |
2434 | withval="$with_motif" | |
2435 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2436 | fi; |
10f2d63a | 2437 | |
b4085ce6 GD |
2438 | # Check whether --with-mac or --without-mac was given. |
2439 | if test "${with_mac+set}" = set; then | |
2440 | withval="$with_mac" | |
2441 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2442 | fi; |
b4085ce6 | 2443 | |
ac0c4cc3 DE |
2444 | # Check whether --with-cocoa or --without-cocoa was given. |
2445 | if test "${with_cocoa+set}" = set; then | |
2446 | withval="$with_cocoa" | |
2447 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2448 | fi; |
ac0c4cc3 | 2449 | |
10f2d63a VZ |
2450 | # Check whether --with-wine or --without-wine was given. |
2451 | if test "${with_wine+set}" = set; then | |
2452 | withval="$with_wine" | |
89e6bf6d | 2453 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2454 | fi; |
10f2d63a | 2455 | |
77e13408 RL |
2456 | # Check whether --with-msw or --without-msw was given. |
2457 | if test "${with_msw+set}" = set; then | |
2458 | withval="$with_msw" | |
b4efce5e | 2459 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2460 | fi; |
10f2d63a | 2461 | |
e07802fc VZ |
2462 | # Check whether --with-pm or --without-pm was given. |
2463 | if test "${with_pm+set}" = set; then | |
2464 | withval="$with_pm" | |
2465 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2466 | fi; |
698dcdb6 | 2467 | |
1e6feb95 VZ |
2468 | # Check whether --with-mgl or --without-mgl was given. |
2469 | if test "${with_mgl+set}" = set; then | |
2470 | withval="$with_mgl" | |
6c657b52 | 2471 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2472 | fi; |
1e6feb95 | 2473 | |
1725144d RR |
2474 | # Check whether --with-microwin or --without-microwin was given. |
2475 | if test "${with_microwin+set}" = set; then | |
2476 | withval="$with_microwin" | |
2477 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2478 | fi; |
1725144d | 2479 | |
f79bd02d JS |
2480 | # Check whether --with-x11 or --without-x11 was given. |
2481 | if test "${with_x11+set}" = set; then | |
2482 | withval="$with_x11" | |
3c011993 | 2483 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2484 | fi; |
a0b9e27f | 2485 | |
5005acfe | 2486 | enablestring= |
e6cc62c6 VS |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2489 | no_cache=0 |
ba875e66 VZ |
2490 | # Check whether --enable-nanox or --disable-nanox was given. |
2491 | if test "${enable_nanox+set}" = set; then | |
2492 | enableval="$enable_nanox" | |
e6cc62c6 | 2493 | |
d8356fa3 | 2494 | if test "$enableval" = yes; then |
ba875e66 | 2495 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2496 | else |
ba875e66 | 2497 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2498 | fi |
e6cc62c6 | 2499 | |
d8356fa3 | 2500 | else |
e6cc62c6 | 2501 | |
d8356fa3 VZ |
2502 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
ba875e66 | 2509 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2510 | |
e6cc62c6 | 2511 | fi; |
d8356fa3 | 2512 | |
ba875e66 | 2513 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2514 | if test "$no_cache" != 1; then |
ba875e66 | 2515 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2516 | fi |
2517 | ||
2518 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2519 | echo "$as_me:$LINENO: result: yes" >&5 |
2520 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2521 | else |
e6cc62c6 VS |
2522 | echo "$as_me:$LINENO: result: no" >&5 |
2523 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2524 | fi |
e6cc62c6 | 2525 | |
8284b0c5 | 2526 | |
d74f4b5a | 2527 | |
5005acfe | 2528 | enablestring= |
e6cc62c6 VS |
2529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2530 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2531 | no_cache=0 |
2532 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2533 | if test "${enable_gtk2+set}" = set; then |
2534 | enableval="$enable_gtk2" | |
e6cc62c6 | 2535 | |
d74f4b5a VZ |
2536 | if test "$enableval" = yes; then |
2537 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2538 | else | |
2539 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2540 | fi | |
e6cc62c6 | 2541 | |
10f2d63a | 2542 | else |
e6cc62c6 | 2543 | |
d74f4b5a VZ |
2544 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2552 | |
e6cc62c6 | 2553 | fi; |
328a083c | 2554 | |
d74f4b5a VZ |
2555 | eval "$ac_cv_use_gtk2" |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2561 | echo "$as_me:$LINENO: result: yes" >&5 |
2562 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2563 | else |
e6cc62c6 VS |
2564 | echo "$as_me:$LINENO: result: no" >&5 |
2565 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2566 | fi |
d74f4b5a | 2567 | |
5c6fa7d2 | 2568 | |
e6cc62c6 VS |
2569 | |
2570 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2571 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2572 | no_cache=0 |
e6cc62c6 VS |
2573 | |
2574 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2575 | if test "${with_libpng+set}" = set; then |
2576 | withval="$with_libpng" | |
e6cc62c6 | 2577 | |
10f2d63a | 2578 | if test "$withval" = yes; then |
b12915c1 | 2579 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2580 | elif test "$withval" = no; then |
b12915c1 | 2581 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2582 | elif test "$withval" = sys; then |
2583 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2584 | elif test "$withval" = builtin; then |
2585 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2586 | else |
e6cc62c6 VS |
2587 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2588 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2589 | { (exit 1); exit 1; }; } | |
10f2d63a | 2590 | fi |
e6cc62c6 | 2591 | |
10f2d63a | 2592 | else |
e6cc62c6 | 2593 | |
b12915c1 | 2594 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2595 | if test "x$LINE" != x ; then |
2596 | eval "DEFAULT_$LINE" | |
2597 | else | |
2598 | no_cache=1 | |
2599 | fi | |
2600 | ||
b12915c1 | 2601 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2602 | |
e6cc62c6 | 2603 | fi; |
10f2d63a | 2604 | |
b12915c1 | 2605 | eval "$ac_cv_use_libpng" |
10f2d63a | 2606 | if test "$no_cache" != 1; then |
b12915c1 | 2607 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2608 | fi |
2609 | ||
b12915c1 | 2610 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2611 | echo "$as_me:$LINENO: result: yes" >&5 |
2612 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2613 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2614 | echo "$as_me:$LINENO: result: no" >&5 |
2615 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2616 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2617 | echo "$as_me:$LINENO: result: system version" >&5 |
2618 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2619 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2620 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2621 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2622 | else |
e6cc62c6 VS |
2623 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2624 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2625 | { (exit 1); exit 1; }; } | |
10f2d63a | 2626 | fi |
10f2d63a | 2627 | |
e6cc62c6 VS |
2628 | |
2629 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2630 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2631 | no_cache=0 |
e6cc62c6 VS |
2632 | |
2633 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2634 | if test "${with_libjpeg+set}" = set; then |
2635 | withval="$with_libjpeg" | |
e6cc62c6 | 2636 | |
10f2d63a | 2637 | if test "$withval" = yes; then |
b12915c1 | 2638 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2639 | elif test "$withval" = no; then |
b12915c1 | 2640 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2641 | elif test "$withval" = sys; then |
2642 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2643 | elif test "$withval" = builtin; then |
2644 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2645 | else |
e6cc62c6 VS |
2646 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2647 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2648 | { (exit 1); exit 1; }; } | |
10f2d63a | 2649 | fi |
e6cc62c6 | 2650 | |
10f2d63a | 2651 | else |
e6cc62c6 | 2652 | |
b12915c1 | 2653 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2654 | if test "x$LINE" != x ; then |
2655 | eval "DEFAULT_$LINE" | |
2656 | else | |
2657 | no_cache=1 | |
2658 | fi | |
2659 | ||
b12915c1 | 2660 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2661 | |
e6cc62c6 | 2662 | fi; |
10f2d63a | 2663 | |
b12915c1 | 2664 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2665 | if test "$no_cache" != 1; then |
b12915c1 | 2666 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2667 | fi |
2668 | ||
b12915c1 | 2669 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2670 | echo "$as_me:$LINENO: result: yes" >&5 |
2671 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2672 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2673 | echo "$as_me:$LINENO: result: no" >&5 |
2674 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2675 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2676 | echo "$as_me:$LINENO: result: system version" >&5 |
2677 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2678 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2679 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2680 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2681 | else |
e6cc62c6 VS |
2682 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2683 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2684 | { (exit 1); exit 1; }; } | |
10f2d63a | 2685 | fi |
10f2d63a | 2686 | |
e6cc62c6 VS |
2687 | |
2688 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2689 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2690 | no_cache=0 |
e6cc62c6 VS |
2691 | |
2692 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2693 | if test "${with_libtiff+set}" = set; then |
2694 | withval="$with_libtiff" | |
e6cc62c6 | 2695 | |
10f2d63a | 2696 | if test "$withval" = yes; then |
b12915c1 | 2697 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2698 | elif test "$withval" = no; then |
b12915c1 | 2699 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2700 | elif test "$withval" = sys; then |
2701 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2702 | elif test "$withval" = builtin; then |
2703 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2704 | else |
e6cc62c6 VS |
2705 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2706 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2707 | { (exit 1); exit 1; }; } | |
10f2d63a | 2708 | fi |
e6cc62c6 | 2709 | |
10f2d63a | 2710 | else |
e6cc62c6 | 2711 | |
b12915c1 | 2712 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2713 | if test "x$LINE" != x ; then |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
b12915c1 | 2719 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2720 | |
e6cc62c6 | 2721 | fi; |
10f2d63a | 2722 | |
b12915c1 | 2723 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2724 | if test "$no_cache" != 1; then |
b12915c1 | 2725 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2726 | fi |
2727 | ||
b12915c1 | 2728 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2729 | echo "$as_me:$LINENO: result: yes" >&5 |
2730 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2731 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2732 | echo "$as_me:$LINENO: result: no" >&5 |
2733 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2734 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2735 | echo "$as_me:$LINENO: result: system version" >&5 |
2736 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2737 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2738 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2739 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2740 | else |
e6cc62c6 VS |
2741 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2742 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2743 | { (exit 1); exit 1; }; } | |
10f2d63a | 2744 | fi |
10f2d63a | 2745 | |
e6cc62c6 VS |
2746 | |
2747 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2748 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2749 | no_cache=0 |
e6cc62c6 VS |
2750 | |
2751 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2752 | if test "${with_opengl+set}" = set; then |
2753 | withval="$with_opengl" | |
e6cc62c6 | 2754 | |
10f2d63a | 2755 | if test "$withval" = yes; then |
b12915c1 | 2756 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2757 | else |
b12915c1 | 2758 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2759 | fi |
e6cc62c6 | 2760 | |
10f2d63a | 2761 | else |
e6cc62c6 | 2762 | |
b12915c1 | 2763 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2764 | if test "x$LINE" != x ; then |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
b12915c1 | 2770 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2771 | |
e6cc62c6 | 2772 | fi; |
10f2d63a | 2773 | |
b12915c1 | 2774 | eval "$ac_cv_use_opengl" |
10f2d63a | 2775 | if test "$no_cache" != 1; then |
b12915c1 | 2776 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2777 | fi |
2778 | ||
b12915c1 | 2779 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2780 | echo "$as_me:$LINENO: result: yes" >&5 |
2781 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2782 | else |
e6cc62c6 VS |
2783 | echo "$as_me:$LINENO: result: no" >&5 |
2784 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2785 | fi |
e6cc62c6 | 2786 | |
10f2d63a | 2787 | |
b12915c1 VZ |
2788 | fi |
2789 | ||
5c6fa7d2 | 2790 | |
e6cc62c6 VS |
2791 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2792 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2793 | no_cache=0 |
e6cc62c6 VS |
2794 | |
2795 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2796 | if test "${with_dmalloc+set}" = set; then |
2797 | withval="$with_dmalloc" | |
e6cc62c6 | 2798 | |
c7a2bf27 | 2799 | if test "$withval" = yes; then |
b12915c1 | 2800 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2801 | else |
b12915c1 | 2802 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2803 | fi |
e6cc62c6 | 2804 | |
c7a2bf27 | 2805 | else |
e6cc62c6 | 2806 | |
b12915c1 | 2807 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2808 | if test "x$LINE" != x ; then |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
b12915c1 | 2814 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2815 | |
e6cc62c6 | 2816 | fi; |
c7a2bf27 | 2817 | |
b12915c1 | 2818 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2819 | if test "$no_cache" != 1; then |
b12915c1 | 2820 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2821 | fi |
2822 | ||
b12915c1 | 2823 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2824 | echo "$as_me:$LINENO: result: yes" >&5 |
2825 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2826 | else |
e6cc62c6 VS |
2827 | echo "$as_me:$LINENO: result: no" >&5 |
2828 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2829 | fi |
c7a2bf27 | 2830 | |
e6cc62c6 VS |
2831 | |
2832 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2833 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2834 | no_cache=0 |
e6cc62c6 VS |
2835 | |
2836 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2837 | if test "${with_regex+set}" = set; then |
2838 | withval="$with_regex" | |
e6cc62c6 | 2839 | |
3e44f09d VZ |
2840 | if test "$withval" = yes; then |
2841 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2842 | elif test "$withval" = no; then | |
2843 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2844 | elif test "$withval" = sys; then | |
2845 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2846 | elif test "$withval" = builtin; then |
2847 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2848 | else |
e6cc62c6 VS |
2849 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2850 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2851 | { (exit 1); exit 1; }; } | |
3e44f09d | 2852 | fi |
e6cc62c6 | 2853 | |
3e44f09d | 2854 | else |
e6cc62c6 | 2855 | |
3e44f09d VZ |
2856 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2864 | |
e6cc62c6 | 2865 | fi; |
3e44f09d VZ |
2866 | |
2867 | eval "$ac_cv_use_regex" | |
2868 | if test "$no_cache" != 1; then | |
2869 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2870 | fi | |
2871 | ||
2872 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2873 | echo "$as_me:$LINENO: result: yes" >&5 |
2874 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2875 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2876 | echo "$as_me:$LINENO: result: no" >&5 |
2877 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2878 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2879 | echo "$as_me:$LINENO: result: system version" >&5 |
2880 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2881 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2882 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2883 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2884 | else |
e6cc62c6 VS |
2885 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2886 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
3e44f09d | 2888 | fi |
3e44f09d | 2889 | |
e6cc62c6 VS |
2890 | |
2891 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2892 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2893 | no_cache=0 |
e6cc62c6 VS |
2894 | |
2895 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2896 | if test "${with_zlib+set}" = set; then |
2897 | withval="$with_zlib" | |
e6cc62c6 | 2898 | |
10f2d63a | 2899 | if test "$withval" = yes; then |
b12915c1 | 2900 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2901 | elif test "$withval" = no; then |
b12915c1 | 2902 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2903 | elif test "$withval" = sys; then |
2904 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2905 | elif test "$withval" = builtin; then |
2906 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2907 | else |
e6cc62c6 VS |
2908 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2909 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2910 | { (exit 1); exit 1; }; } | |
10f2d63a | 2911 | fi |
e6cc62c6 | 2912 | |
10f2d63a | 2913 | else |
e6cc62c6 | 2914 | |
b12915c1 | 2915 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2916 | if test "x$LINE" != x ; then |
2917 | eval "DEFAULT_$LINE" | |
2918 | else | |
2919 | no_cache=1 | |
2920 | fi | |
2921 | ||
b12915c1 | 2922 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2923 | |
e6cc62c6 | 2924 | fi; |
10f2d63a | 2925 | |
b12915c1 | 2926 | eval "$ac_cv_use_zlib" |
10f2d63a | 2927 | if test "$no_cache" != 1; then |
b12915c1 | 2928 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2929 | fi |
2930 | ||
b12915c1 | 2931 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2932 | echo "$as_me:$LINENO: result: yes" >&5 |
2933 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2934 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2935 | echo "$as_me:$LINENO: result: no" >&5 |
2936 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2937 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2938 | echo "$as_me:$LINENO: result: system version" >&5 |
2939 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2940 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2941 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2942 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2943 | else |
e6cc62c6 VS |
2944 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2945 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2946 | { (exit 1); exit 1; }; } | |
10f2d63a | 2947 | fi |
10f2d63a | 2948 | |
e6cc62c6 VS |
2949 | |
2950 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2951 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2952 | no_cache=0 |
e6cc62c6 VS |
2953 | |
2954 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2955 | if test "${with_odbc+set}" = set; then |
2956 | withval="$with_odbc" | |
e6cc62c6 | 2957 | |
10f2d63a VZ |
2958 | if test "$withval" = yes; then |
2959 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2960 | elif test "$withval" = no; then |
10f2d63a | 2961 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2962 | elif test "$withval" = sys; then |
2963 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2964 | elif test "$withval" = builtin; then | |
2965 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2966 | else | |
e6cc62c6 VS |
2967 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2968 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2969 | { (exit 1); exit 1; }; } | |
10f2d63a | 2970 | fi |
e6cc62c6 | 2971 | |
10f2d63a | 2972 | else |
e6cc62c6 | 2973 | |
10f2d63a VZ |
2974 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2975 | if test "x$LINE" != x ; then | |
2976 | eval "DEFAULT_$LINE" | |
2977 | else | |
2978 | no_cache=1 | |
2979 | fi | |
2980 | ||
2981 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2982 | |
e6cc62c6 | 2983 | fi; |
10f2d63a VZ |
2984 | |
2985 | eval "$ac_cv_use_odbc" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
2991 | echo "$as_me:$LINENO: result: yes" >&5 |
2992 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 2993 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
2994 | echo "$as_me:$LINENO: result: no" >&5 |
2995 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 2996 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
2997 | echo "$as_me:$LINENO: result: system version" >&5 |
2998 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 2999 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3000 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3001 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3002 | else |
e6cc62c6 VS |
3003 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3004 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3005 | { (exit 1); exit 1; }; } | |
10f2d63a | 3006 | fi |
e6cc62c6 | 3007 | |
52127426 | 3008 | |
8284b0c5 MB |
3009 | |
3010 | ||
5005acfe | 3011 | enablestring= |
e6cc62c6 VS |
3012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3013 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3014 | no_cache=0 |
3015 | # Check whether --enable-shared or --disable-shared was given. | |
3016 | if test "${enable_shared+set}" = set; then | |
3017 | enableval="$enable_shared" | |
e6cc62c6 | 3018 | |
10f2d63a VZ |
3019 | if test "$enableval" = yes; then |
3020 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3021 | else | |
3022 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3023 | fi | |
e6cc62c6 | 3024 | |
10f2d63a | 3025 | else |
e6cc62c6 | 3026 | |
10f2d63a VZ |
3027 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3035 | |
e6cc62c6 | 3036 | fi; |
10f2d63a VZ |
3037 | |
3038 | eval "$ac_cv_use_shared" | |
3039 | if test "$no_cache" != 1; then | |
3040 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3041 | fi | |
3042 | ||
3043 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3044 | echo "$as_me:$LINENO: result: yes" >&5 |
3045 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3046 | else |
e6cc62c6 VS |
3047 | echo "$as_me:$LINENO: result: no" >&5 |
3048 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3049 | fi |
e6cc62c6 | 3050 | |
10f2d63a | 3051 | |
5005acfe | 3052 | enablestring= |
e6cc62c6 VS |
3053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3054 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3055 | no_cache=0 |
3056 | # Check whether --enable-optimise or --disable-optimise was given. | |
3057 | if test "${enable_optimise+set}" = set; then | |
3058 | enableval="$enable_optimise" | |
e6cc62c6 | 3059 | |
10f2d63a VZ |
3060 | if test "$enableval" = yes; then |
3061 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3062 | else | |
3063 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3064 | fi | |
e6cc62c6 | 3065 | |
10f2d63a | 3066 | else |
e6cc62c6 | 3067 | |
10f2d63a VZ |
3068 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3069 | if test "x$LINE" != x ; then | |
3070 | eval "DEFAULT_$LINE" | |
3071 | else | |
3072 | no_cache=1 | |
3073 | fi | |
3074 | ||
3075 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3076 | |
e6cc62c6 | 3077 | fi; |
10f2d63a VZ |
3078 | |
3079 | eval "$ac_cv_use_optimise" | |
3080 | if test "$no_cache" != 1; then | |
3081 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3082 | fi | |
3083 | ||
3084 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3085 | echo "$as_me:$LINENO: result: yes" >&5 |
3086 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3087 | else |
e6cc62c6 VS |
3088 | echo "$as_me:$LINENO: result: no" >&5 |
3089 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3090 | fi |
e6cc62c6 | 3091 | |
10f2d63a | 3092 | |
5005acfe | 3093 | enablestring= |
e6cc62c6 VS |
3094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3095 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3096 | no_cache=0 |
3097 | # Check whether --enable-debug or --disable-debug was given. | |
3098 | if test "${enable_debug+set}" = set; then | |
3099 | enableval="$enable_debug" | |
e6cc62c6 | 3100 | |
10f2d63a VZ |
3101 | if test "$enableval" = yes; then |
3102 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3103 | else | |
3104 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3105 | fi | |
e6cc62c6 | 3106 | |
10f2d63a | 3107 | else |
e6cc62c6 | 3108 | |
10f2d63a VZ |
3109 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3110 | if test "x$LINE" != x ; then | |
3111 | eval "DEFAULT_$LINE" | |
3112 | else | |
3113 | no_cache=1 | |
3114 | fi | |
3115 | ||
3116 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3117 | |
e6cc62c6 | 3118 | fi; |
10f2d63a VZ |
3119 | |
3120 | eval "$ac_cv_use_debug" | |
3121 | if test "$no_cache" != 1; then | |
3122 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3123 | fi | |
3124 | ||
3125 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3126 | echo "$as_me:$LINENO: result: yes" >&5 |
3127 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3128 | else |
e6cc62c6 VS |
3129 | echo "$as_me:$LINENO: result: no" >&5 |
3130 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3131 | fi |
e6cc62c6 | 3132 | |
52127426 | 3133 | |
8284b0c5 | 3134 | |
5005acfe | 3135 | enablestring= |
e6cc62c6 VS |
3136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5 |
3137 | echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6 | |
683dccda GD |
3138 | no_cache=0 |
3139 | # Check whether --enable-precomp or --disable-precomp was given. | |
3140 | if test "${enable_precomp+set}" = set; then | |
3141 | enableval="$enable_precomp" | |
e6cc62c6 | 3142 | |
683dccda GD |
3143 | if test "$enableval" = yes; then |
3144 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
3145 | else | |
3146 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
3147 | fi | |
e6cc62c6 | 3148 | |
683dccda | 3149 | else |
e6cc62c6 | 3150 | |
683dccda GD |
3151 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
3152 | if test "x$LINE" != x ; then | |
3153 | eval "DEFAULT_$LINE" | |
3154 | else | |
3155 | no_cache=1 | |
3156 | fi | |
3157 | ||
3158 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
683dccda | 3159 | |
e6cc62c6 | 3160 | fi; |
683dccda GD |
3161 | |
3162 | eval "$ac_cv_use_precomp" | |
3163 | if test "$no_cache" != 1; then | |
3164 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
3165 | fi | |
3166 | ||
3167 | if test "$wxUSE_PRECOMP" = yes; then | |
e6cc62c6 VS |
3168 | echo "$as_me:$LINENO: result: yes" >&5 |
3169 | echo "${ECHO_T}yes" >&6 | |
683dccda | 3170 | else |
e6cc62c6 VS |
3171 | echo "$as_me:$LINENO: result: no" >&5 |
3172 | echo "${ECHO_T}no" >&6 | |
683dccda | 3173 | fi |
e6cc62c6 | 3174 | |
683dccda | 3175 | |
10f2d63a VZ |
3176 | if test "$wxUSE_DEBUG" = "yes"; then |
3177 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3178 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3179 | elif test "$wxUSE_DEBUG" = "no"; then | |
3180 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3181 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3182 | fi | |
3183 | ||
8284b0c5 | 3184 | |
5005acfe | 3185 | enablestring= |
e6cc62c6 VS |
3186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3187 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3190 | if test "${enable_debug_flag+set}" = set; then | |
3191 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3192 | |
10f2d63a VZ |
3193 | if test "$enableval" = yes; then |
3194 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3195 | else | |
3196 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3197 | fi | |
e6cc62c6 | 3198 | |
10f2d63a | 3199 | else |
e6cc62c6 | 3200 | |
10f2d63a VZ |
3201 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3209 | |
e6cc62c6 | 3210 | fi; |
10f2d63a VZ |
3211 | |
3212 | eval "$ac_cv_use_debug_flag" | |
3213 | if test "$no_cache" != 1; then | |
3214 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3215 | fi | |
3216 | ||
3217 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3218 | echo "$as_me:$LINENO: result: yes" >&5 |
3219 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3220 | else |
e6cc62c6 VS |
3221 | echo "$as_me:$LINENO: result: no" >&5 |
3222 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3223 | fi |
e6cc62c6 | 3224 | |
10f2d63a | 3225 | |
5005acfe | 3226 | enablestring= |
e6cc62c6 VS |
3227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3228 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3229 | no_cache=0 |
3230 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3231 | if test "${enable_debug_info+set}" = set; then | |
3232 | enableval="$enable_debug_info" | |
e6cc62c6 | 3233 | |
10f2d63a VZ |
3234 | if test "$enableval" = yes; then |
3235 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3236 | else | |
3237 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3238 | fi | |
e6cc62c6 | 3239 | |
10f2d63a | 3240 | else |
e6cc62c6 | 3241 | |
10f2d63a VZ |
3242 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3243 | if test "x$LINE" != x ; then | |
3244 | eval "DEFAULT_$LINE" | |
3245 | else | |
3246 | no_cache=1 | |
3247 | fi | |
3248 | ||
3249 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3250 | |
e6cc62c6 | 3251 | fi; |
10f2d63a VZ |
3252 | |
3253 | eval "$ac_cv_use_debug_info" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3259 | echo "$as_me:$LINENO: result: yes" >&5 |
3260 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3261 | else |
e6cc62c6 VS |
3262 | echo "$as_me:$LINENO: result: no" >&5 |
3263 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3264 | fi |
e6cc62c6 | 3265 | |
10f2d63a | 3266 | |
5005acfe | 3267 | enablestring= |
e6cc62c6 VS |
3268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3269 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3270 | no_cache=0 |
3271 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3272 | if test "${enable_debug_gdb+set}" = set; then | |
3273 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3274 | |
10f2d63a VZ |
3275 | if test "$enableval" = yes; then |
3276 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3277 | else | |
3278 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3279 | fi | |
e6cc62c6 | 3280 | |
10f2d63a | 3281 | else |
e6cc62c6 | 3282 | |
10f2d63a VZ |
3283 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3284 | if test "x$LINE" != x ; then | |
3285 | eval "DEFAULT_$LINE" | |
3286 | else | |
3287 | no_cache=1 | |
3288 | fi | |
3289 | ||
3290 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3291 | |
e6cc62c6 | 3292 | fi; |
10f2d63a VZ |
3293 | |
3294 | eval "$ac_cv_use_debug_gdb" | |
3295 | if test "$no_cache" != 1; then | |
3296 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3297 | fi | |
3298 | ||
3299 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3300 | echo "$as_me:$LINENO: result: yes" >&5 |
3301 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3302 | else |
e6cc62c6 VS |
3303 | echo "$as_me:$LINENO: result: no" >&5 |
3304 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3305 | fi |
e6cc62c6 | 3306 | |
10f2d63a | 3307 | |
5005acfe | 3308 | enablestring= |
e6cc62c6 VS |
3309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3310 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3311 | no_cache=0 |
3312 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3313 | if test "${enable_debug_cntxt+set}" = set; then | |
3314 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3315 | |
10f2d63a VZ |
3316 | if test "$enableval" = yes; then |
3317 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3318 | else | |
3319 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3320 | fi | |
e6cc62c6 | 3321 | |
10f2d63a | 3322 | else |
e6cc62c6 | 3323 | |
10f2d63a VZ |
3324 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3325 | if test "x$LINE" != x ; then | |
3326 | eval "DEFAULT_$LINE" | |
3327 | else | |
3328 | no_cache=1 | |
3329 | fi | |
3330 | ||
3331 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3332 | |
e6cc62c6 | 3333 | fi; |
10f2d63a VZ |
3334 | |
3335 | eval "$ac_cv_use_debug_cntxt" | |
3336 | if test "$no_cache" != 1; then | |
3337 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3338 | fi | |
3339 | ||
3340 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3341 | echo "$as_me:$LINENO: result: yes" >&5 |
3342 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3343 | else |
e6cc62c6 VS |
3344 | echo "$as_me:$LINENO: result: no" >&5 |
3345 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3346 | fi |
e6cc62c6 | 3347 | |
10f2d63a | 3348 | |
5005acfe | 3349 | enablestring= |
e6cc62c6 VS |
3350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3351 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3352 | no_cache=0 |
3353 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3354 | if test "${enable_mem_tracing+set}" = set; then | |
3355 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3356 | |
10f2d63a VZ |
3357 | if test "$enableval" = yes; then |
3358 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3359 | else | |
3360 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3361 | fi | |
e6cc62c6 | 3362 | |
10f2d63a | 3363 | else |
e6cc62c6 | 3364 | |
10f2d63a VZ |
3365 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3366 | if test "x$LINE" != x ; then | |
3367 | eval "DEFAULT_$LINE" | |
3368 | else | |
3369 | no_cache=1 | |
3370 | fi | |
3371 | ||
3372 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3373 | |
e6cc62c6 | 3374 | fi; |
10f2d63a VZ |
3375 | |
3376 | eval "$ac_cv_use_mem_tracing" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3382 | echo "$as_me:$LINENO: result: yes" >&5 |
3383 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3384 | else |
e6cc62c6 VS |
3385 | echo "$as_me:$LINENO: result: no" >&5 |
3386 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3387 | fi |
e6cc62c6 | 3388 | |
10f2d63a | 3389 | |
5005acfe | 3390 | enablestring= |
e6cc62c6 VS |
3391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3392 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3393 | no_cache=0 |
3394 | # Check whether --enable-profile or --disable-profile was given. | |
3395 | if test "${enable_profile+set}" = set; then | |
3396 | enableval="$enable_profile" | |
e6cc62c6 | 3397 | |
10f2d63a VZ |
3398 | if test "$enableval" = yes; then |
3399 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3400 | else | |
3401 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3402 | fi | |
e6cc62c6 | 3403 | |
10f2d63a | 3404 | else |
e6cc62c6 | 3405 | |
10f2d63a VZ |
3406 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3414 | |
e6cc62c6 | 3415 | fi; |
10f2d63a VZ |
3416 | |
3417 | eval "$ac_cv_use_profile" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3423 | echo "$as_me:$LINENO: result: yes" >&5 |
3424 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3425 | else |
e6cc62c6 VS |
3426 | echo "$as_me:$LINENO: result: no" >&5 |
3427 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3428 | fi |
e6cc62c6 | 3429 | |
10f2d63a | 3430 | |
5005acfe | 3431 | enablestring= |
e6cc62c6 VS |
3432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3433 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3434 | no_cache=0 |
3435 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3436 | if test "${enable_no_rtti+set}" = set; then | |
3437 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3438 | |
10f2d63a VZ |
3439 | if test "$enableval" = yes; then |
3440 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3441 | else | |
3442 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3443 | fi | |
e6cc62c6 | 3444 | |
10f2d63a | 3445 | else |
e6cc62c6 | 3446 | |
10f2d63a VZ |
3447 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3448 | if test "x$LINE" != x ; then | |
3449 | eval "DEFAULT_$LINE" | |
3450 | else | |
3451 | no_cache=1 | |
3452 | fi | |
3453 | ||
3454 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3455 | |
e6cc62c6 | 3456 | fi; |
10f2d63a VZ |
3457 | |
3458 | eval "$ac_cv_use_no_rtti" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3464 | echo "$as_me:$LINENO: result: yes" >&5 |
3465 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3466 | else |
e6cc62c6 VS |
3467 | echo "$as_me:$LINENO: result: no" >&5 |
3468 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3469 | fi |
e6cc62c6 | 3470 | |
10f2d63a | 3471 | |
5005acfe | 3472 | enablestring= |
e6cc62c6 VS |
3473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3474 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3475 | no_cache=0 |
3476 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3477 | if test "${enable_no_exceptions+set}" = set; then | |
3478 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3479 | |
10f2d63a VZ |
3480 | if test "$enableval" = yes; then |
3481 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3482 | else | |
3483 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3484 | fi | |
e6cc62c6 | 3485 | |
10f2d63a | 3486 | else |
e6cc62c6 | 3487 | |
10f2d63a VZ |
3488 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3489 | if test "x$LINE" != x ; then | |
3490 | eval "DEFAULT_$LINE" | |
3491 | else | |
3492 | no_cache=1 | |
3493 | fi | |
3494 | ||
3495 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3496 | |
e6cc62c6 | 3497 | fi; |
10f2d63a VZ |
3498 | |
3499 | eval "$ac_cv_use_no_exceptions" | |
3500 | if test "$no_cache" != 1; then | |
3501 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3502 | fi | |
3503 | ||
3504 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3505 | echo "$as_me:$LINENO: result: yes" >&5 |
3506 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3507 | else |
e6cc62c6 VS |
3508 | echo "$as_me:$LINENO: result: no" >&5 |
3509 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3510 | fi |
e6cc62c6 | 3511 | |
10f2d63a | 3512 | |
5005acfe | 3513 | enablestring= |
e6cc62c6 VS |
3514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3515 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3516 | no_cache=0 |
3517 | # Check whether --enable-permissive or --disable-permissive was given. | |
3518 | if test "${enable_permissive+set}" = set; then | |
3519 | enableval="$enable_permissive" | |
e6cc62c6 | 3520 | |
10f2d63a VZ |
3521 | if test "$enableval" = yes; then |
3522 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3523 | else | |
3524 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3525 | fi | |
e6cc62c6 | 3526 | |
10f2d63a | 3527 | else |
e6cc62c6 | 3528 | |
10f2d63a VZ |
3529 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3530 | if test "x$LINE" != x ; then | |
3531 | eval "DEFAULT_$LINE" | |
3532 | else | |
3533 | no_cache=1 | |
3534 | fi | |
3535 | ||
3536 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3537 | |
e6cc62c6 | 3538 | fi; |
10f2d63a VZ |
3539 | |
3540 | eval "$ac_cv_use_permissive" | |
3541 | if test "$no_cache" != 1; then | |
3542 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3543 | fi | |
3544 | ||
3545 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3546 | echo "$as_me:$LINENO: result: yes" >&5 |
3547 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3548 | else |
e6cc62c6 VS |
3549 | echo "$as_me:$LINENO: result: no" >&5 |
3550 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3551 | fi |
e6cc62c6 | 3552 | |
10f2d63a | 3553 | |
5005acfe | 3554 | enablestring= |
e6cc62c6 VS |
3555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3556 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3557 | no_cache=0 |
3558 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3559 | if test "${enable_no_deps+set}" = set; then | |
3560 | enableval="$enable_no_deps" | |
e6cc62c6 | 3561 | |
10f2d63a VZ |
3562 | if test "$enableval" = yes; then |
3563 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3564 | else | |
3565 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3566 | fi | |
e6cc62c6 | 3567 | |
10f2d63a | 3568 | else |
e6cc62c6 | 3569 | |
10f2d63a VZ |
3570 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3571 | if test "x$LINE" != x ; then | |
3572 | eval "DEFAULT_$LINE" | |
3573 | else | |
3574 | no_cache=1 | |
3575 | fi | |
3576 | ||
3577 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3578 | |
e6cc62c6 | 3579 | fi; |
10f2d63a VZ |
3580 | |
3581 | eval "$ac_cv_use_no_deps" | |
3582 | if test "$no_cache" != 1; then | |
3583 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3584 | fi | |
3585 | ||
3586 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3587 | echo "$as_me:$LINENO: result: yes" >&5 |
3588 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3589 | else |
e6cc62c6 VS |
3590 | echo "$as_me:$LINENO: result: no" >&5 |
3591 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3592 | fi |
e6cc62c6 | 3593 | |
52127426 | 3594 | |
8284b0c5 | 3595 | |
5005acfe | 3596 | enablestring= |
e6cc62c6 VS |
3597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5 |
3598 | echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6 | |
54276ccf VZ |
3599 | no_cache=0 |
3600 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3601 | if test "${enable_compat20+set}" = set; then | |
3602 | enableval="$enable_compat20" | |
e6cc62c6 | 3603 | |
54276ccf VZ |
3604 | if test "$enableval" = yes; then |
3605 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3606 | else | |
3607 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3608 | fi | |
e6cc62c6 | 3609 | |
54276ccf | 3610 | else |
e6cc62c6 | 3611 | |
54276ccf VZ |
3612 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3613 | if test "x$LINE" != x ; then | |
3614 | eval "DEFAULT_$LINE" | |
3615 | else | |
3616 | no_cache=1 | |
3617 | fi | |
3618 | ||
3619 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
54276ccf | 3620 | |
e6cc62c6 | 3621 | fi; |
54276ccf VZ |
3622 | |
3623 | eval "$ac_cv_use_compat20" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
e6cc62c6 VS |
3629 | echo "$as_me:$LINENO: result: yes" >&5 |
3630 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3631 | else |
e6cc62c6 VS |
3632 | echo "$as_me:$LINENO: result: no" >&5 |
3633 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3634 | fi |
e6cc62c6 | 3635 | |
54276ccf | 3636 | |
65d8ef1e | 3637 | enablestring= |
e6cc62c6 VS |
3638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3639 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3640 | no_cache=0 |
3641 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3642 | if test "${enable_compat22+set}" = set; then | |
3643 | enableval="$enable_compat22" | |
e6cc62c6 | 3644 | |
54276ccf VZ |
3645 | if test "$enableval" = yes; then |
3646 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3647 | else | |
3648 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3649 | fi | |
e6cc62c6 | 3650 | |
54276ccf | 3651 | else |
e6cc62c6 | 3652 | |
54276ccf VZ |
3653 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3654 | if test "x$LINE" != x ; then | |
3655 | eval "DEFAULT_$LINE" | |
3656 | else | |
3657 | no_cache=1 | |
3658 | fi | |
3659 | ||
3660 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3661 | |
e6cc62c6 | 3662 | fi; |
54276ccf VZ |
3663 | |
3664 | eval "$ac_cv_use_compat22" | |
3665 | if test "$no_cache" != 1; then | |
3666 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3667 | fi | |
3668 | ||
3669 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3670 | echo "$as_me:$LINENO: result: yes" >&5 |
3671 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3672 | else |
e6cc62c6 VS |
3673 | echo "$as_me:$LINENO: result: no" >&5 |
3674 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3675 | fi |
e6cc62c6 | 3676 | |
54276ccf | 3677 | |
65d8ef1e | 3678 | enablestring=disable |
e6cc62c6 VS |
3679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3680 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3681 | no_cache=0 |
3682 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3683 | if test "${enable_compat24+set}" = set; then | |
3684 | enableval="$enable_compat24" | |
e6cc62c6 | 3685 | |
65d8ef1e VS |
3686 | if test "$enableval" = yes; then |
3687 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3688 | else | |
3689 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3690 | fi | |
e6cc62c6 | 3691 | |
65d8ef1e | 3692 | else |
e6cc62c6 | 3693 | |
65d8ef1e VS |
3694 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3695 | if test "x$LINE" != x ; then | |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
3701 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3702 | |
e6cc62c6 | 3703 | fi; |
65d8ef1e VS |
3704 | |
3705 | eval "$ac_cv_use_compat24" | |
3706 | if test "$no_cache" != 1; then | |
3707 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3708 | fi | |
3709 | ||
3710 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3711 | echo "$as_me:$LINENO: result: yes" >&5 |
3712 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3713 | else |
e6cc62c6 VS |
3714 | echo "$as_me:$LINENO: result: no" >&5 |
3715 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3716 | fi |
e6cc62c6 | 3717 | |
65d8ef1e | 3718 | |
3bd8fb5f RD |
3719 | # Check whether --enable-rpath or --disable-rpath was given. |
3720 | if test "${enable_rpath+set}" = set; then | |
3721 | enableval="$enable_rpath" | |
3722 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3723 | fi; |
3bd8fb5f RD |
3724 | |
3725 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3726 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3727 | fi | |
3728 | ||
8284b0c5 MB |
3729 | |
3730 | ||
3731 | ||
5005acfe | 3732 | enablestring= |
e6cc62c6 VS |
3733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3734 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3735 | no_cache=0 |
3736 | # Check whether --enable-intl or --disable-intl was given. | |
3737 | if test "${enable_intl+set}" = set; then | |
3738 | enableval="$enable_intl" | |
e6cc62c6 | 3739 | |
10f2d63a VZ |
3740 | if test "$enableval" = yes; then |
3741 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3742 | else | |
3743 | ac_cv_use_intl='wxUSE_INTL=no' | |
3744 | fi | |
e6cc62c6 | 3745 | |
10f2d63a | 3746 | else |
e6cc62c6 | 3747 | |
10f2d63a VZ |
3748 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3749 | if test "x$LINE" != x ; then | |
3750 | eval "DEFAULT_$LINE" | |
3751 | else | |
3752 | no_cache=1 | |
3753 | fi | |
3754 | ||
3755 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3756 | |
e6cc62c6 | 3757 | fi; |
10f2d63a VZ |
3758 | |
3759 | eval "$ac_cv_use_intl" | |
3760 | if test "$no_cache" != 1; then | |
3761 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3762 | fi | |
3763 | ||
3764 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3765 | echo "$as_me:$LINENO: result: yes" >&5 |
3766 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3767 | else |
e6cc62c6 VS |
3768 | echo "$as_me:$LINENO: result: no" >&5 |
3769 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3770 | fi |
e6cc62c6 | 3771 | |
10f2d63a | 3772 | |
5005acfe | 3773 | enablestring= |
e6cc62c6 VS |
3774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3775 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3776 | no_cache=0 |
3777 | # Check whether --enable-config or --disable-config was given. | |
3778 | if test "${enable_config+set}" = set; then | |
3779 | enableval="$enable_config" | |
e6cc62c6 | 3780 | |
10f2d63a VZ |
3781 | if test "$enableval" = yes; then |
3782 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3783 | else | |
3784 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3785 | fi | |
e6cc62c6 | 3786 | |
10f2d63a | 3787 | else |
e6cc62c6 | 3788 | |
10f2d63a VZ |
3789 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3790 | if test "x$LINE" != x ; then | |
3791 | eval "DEFAULT_$LINE" | |
3792 | else | |
3793 | no_cache=1 | |
3794 | fi | |
3795 | ||
3796 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3797 | |
e6cc62c6 | 3798 | fi; |
10f2d63a VZ |
3799 | |
3800 | eval "$ac_cv_use_config" | |
3801 | if test "$no_cache" != 1; then | |
3802 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3803 | fi | |
3804 | ||
3805 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3806 | echo "$as_me:$LINENO: result: yes" >&5 |
3807 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3808 | else |
e6cc62c6 VS |
3809 | echo "$as_me:$LINENO: result: no" >&5 |
3810 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3811 | fi |
e6cc62c6 | 3812 | |
52127426 | 3813 | |
8284b0c5 | 3814 | |
5005acfe | 3815 | enablestring= |
e6cc62c6 VS |
3816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3817 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3818 | no_cache=0 |
3819 | # Check whether --enable-protocols or --disable-protocols was given. | |
3820 | if test "${enable_protocols+set}" = set; then | |
3821 | enableval="$enable_protocols" | |
e6cc62c6 | 3822 | |
a1622950 VZ |
3823 | if test "$enableval" = yes; then |
3824 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3825 | else | |
3826 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3827 | fi | |
e6cc62c6 | 3828 | |
a1622950 | 3829 | else |
e6cc62c6 | 3830 | |
a1622950 VZ |
3831 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3832 | if test "x$LINE" != x ; then | |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
3838 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3839 | |
e6cc62c6 | 3840 | fi; |
a1622950 VZ |
3841 | |
3842 | eval "$ac_cv_use_protocols" | |
3843 | if test "$no_cache" != 1; then | |
3844 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3845 | fi | |
3846 | ||
3847 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3848 | echo "$as_me:$LINENO: result: yes" >&5 |
3849 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3850 | else |
e6cc62c6 VS |
3851 | echo "$as_me:$LINENO: result: no" >&5 |
3852 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3853 | fi |
e6cc62c6 | 3854 | |
a1622950 | 3855 | |
5005acfe | 3856 | enablestring= |
e6cc62c6 VS |
3857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3858 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3859 | no_cache=0 |
3860 | # Check whether --enable-ftp or --disable-ftp was given. | |
3861 | if test "${enable_ftp+set}" = set; then | |
3862 | enableval="$enable_ftp" | |
e6cc62c6 | 3863 | |
a1622950 VZ |
3864 | if test "$enableval" = yes; then |
3865 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3866 | else | |
3867 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3868 | fi | |
e6cc62c6 | 3869 | |
a1622950 | 3870 | else |
e6cc62c6 | 3871 | |
a1622950 VZ |
3872 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3873 | if test "x$LINE" != x ; then | |
3874 | eval "DEFAULT_$LINE" | |
3875 | else | |
3876 | no_cache=1 | |
3877 | fi | |
3878 | ||
3879 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3880 | |
e6cc62c6 | 3881 | fi; |
a1622950 VZ |
3882 | |
3883 | eval "$ac_cv_use_ftp" | |
3884 | if test "$no_cache" != 1; then | |
3885 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3886 | fi | |
3887 | ||
3888 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3889 | echo "$as_me:$LINENO: result: yes" >&5 |
3890 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3891 | else |
e6cc62c6 VS |
3892 | echo "$as_me:$LINENO: result: no" >&5 |
3893 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3894 | fi |
e6cc62c6 | 3895 | |
a1622950 | 3896 | |
5005acfe | 3897 | enablestring= |
e6cc62c6 VS |
3898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3899 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3900 | no_cache=0 |
3901 | # Check whether --enable-http or --disable-http was given. | |
3902 | if test "${enable_http+set}" = set; then | |
3903 | enableval="$enable_http" | |
e6cc62c6 | 3904 | |
a1622950 VZ |
3905 | if test "$enableval" = yes; then |
3906 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3907 | else | |
3908 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3909 | fi | |
e6cc62c6 | 3910 | |
a1622950 | 3911 | else |
e6cc62c6 | 3912 | |
a1622950 VZ |
3913 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3914 | if test "x$LINE" != x ; then | |
3915 | eval "DEFAULT_$LINE" | |
3916 | else | |
3917 | no_cache=1 | |
3918 | fi | |
3919 | ||
3920 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3921 | |
e6cc62c6 | 3922 | fi; |
a1622950 VZ |
3923 | |
3924 | eval "$ac_cv_use_http" | |
3925 | if test "$no_cache" != 1; then | |
3926 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3927 | fi | |
3928 | ||
3929 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
3930 | echo "$as_me:$LINENO: result: yes" >&5 |
3931 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3932 | else |
e6cc62c6 VS |
3933 | echo "$as_me:$LINENO: result: no" >&5 |
3934 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3935 | fi |
e6cc62c6 | 3936 | |
a1622950 | 3937 | |
5005acfe | 3938 | enablestring= |
e6cc62c6 VS |
3939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
3940 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3941 | no_cache=0 |
3942 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3943 | if test "${enable_fileproto+set}" = set; then | |
3944 | enableval="$enable_fileproto" | |
e6cc62c6 | 3945 | |
a1622950 VZ |
3946 | if test "$enableval" = yes; then |
3947 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3948 | else | |
3949 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3950 | fi | |
e6cc62c6 | 3951 | |
a1622950 | 3952 | else |
e6cc62c6 | 3953 | |
a1622950 VZ |
3954 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3955 | if test "x$LINE" != x ; then | |
3956 | eval "DEFAULT_$LINE" | |
3957 | else | |
3958 | no_cache=1 | |
3959 | fi | |
3960 | ||
3961 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 3962 | |
e6cc62c6 | 3963 | fi; |
a1622950 VZ |
3964 | |
3965 | eval "$ac_cv_use_fileproto" | |
3966 | if test "$no_cache" != 1; then | |
3967 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3968 | fi | |
3969 | ||
3970 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
3971 | echo "$as_me:$LINENO: result: yes" >&5 |
3972 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3973 | else |
e6cc62c6 VS |
3974 | echo "$as_me:$LINENO: result: no" >&5 |
3975 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3976 | fi |
e6cc62c6 | 3977 | |
a1622950 | 3978 | |
5005acfe | 3979 | enablestring= |
e6cc62c6 VS |
3980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
3981 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
3982 | no_cache=0 |
3983 | # Check whether --enable-sockets or --disable-sockets was given. | |
3984 | if test "${enable_sockets+set}" = set; then | |
3985 | enableval="$enable_sockets" | |
e6cc62c6 | 3986 | |
10f2d63a VZ |
3987 | if test "$enableval" = yes; then |
3988 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3989 | else | |
3990 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3991 | fi | |
e6cc62c6 | 3992 | |
10f2d63a | 3993 | else |
e6cc62c6 | 3994 | |
10f2d63a VZ |
3995 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3996 | if test "x$LINE" != x ; then | |
3997 | eval "DEFAULT_$LINE" | |
3998 | else | |
3999 | no_cache=1 | |
4000 | fi | |
4001 | ||
4002 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4003 | |
e6cc62c6 | 4004 | fi; |
10f2d63a VZ |
4005 | |
4006 | eval "$ac_cv_use_sockets" | |
4007 | if test "$no_cache" != 1; then | |
4008 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4009 | fi | |
4010 | ||
4011 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4012 | echo "$as_me:$LINENO: result: yes" >&5 |
4013 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4014 | else |
e6cc62c6 VS |
4015 | echo "$as_me:$LINENO: result: no" >&5 |
4016 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4017 | fi |
e6cc62c6 | 4018 | |
8284b0c5 | 4019 | |
5005acfe | 4020 | enablestring= |
e6cc62c6 VS |
4021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4022 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4023 | no_cache=0 |
4024 | # Check whether --enable-ole or --disable-ole was given. | |
4025 | if test "${enable_ole+set}" = set; then | |
4026 | enableval="$enable_ole" | |
e6cc62c6 | 4027 | |
3bce6687 JS |
4028 | if test "$enableval" = yes; then |
4029 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4030 | else | |
4031 | ac_cv_use_ole='wxUSE_OLE=no' | |
4032 | fi | |
e6cc62c6 | 4033 | |
3bce6687 | 4034 | else |
e6cc62c6 | 4035 | |
3bce6687 JS |
4036 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4037 | if test "x$LINE" != x ; then | |
4038 | eval "DEFAULT_$LINE" | |
4039 | else | |
4040 | no_cache=1 | |
4041 | fi | |
4042 | ||
4043 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4044 | |
e6cc62c6 | 4045 | fi; |
3bce6687 JS |
4046 | |
4047 | eval "$ac_cv_use_ole" | |
4048 | if test "$no_cache" != 1; then | |
4049 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4050 | fi | |
4051 | ||
4052 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4053 | echo "$as_me:$LINENO: result: yes" >&5 |
4054 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4055 | else |
e6cc62c6 VS |
4056 | echo "$as_me:$LINENO: result: no" >&5 |
4057 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4058 | fi |
e6cc62c6 | 4059 | |
3bce6687 | 4060 | |
5005acfe | 4061 | enablestring= |
e6cc62c6 VS |
4062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4063 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4064 | no_cache=0 |
4065 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4066 | if test "${enable_dataobj+set}" = set; then | |
4067 | enableval="$enable_dataobj" | |
e6cc62c6 | 4068 | |
3bce6687 JS |
4069 | if test "$enableval" = yes; then |
4070 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4071 | else | |
4072 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4073 | fi | |
e6cc62c6 | 4074 | |
3bce6687 | 4075 | else |
e6cc62c6 | 4076 | |
3bce6687 JS |
4077 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4078 | if test "x$LINE" != x ; then | |
4079 | eval "DEFAULT_$LINE" | |
4080 | else | |
4081 | no_cache=1 | |
4082 | fi | |
4083 | ||
4084 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4085 | |
e6cc62c6 | 4086 | fi; |
3bce6687 JS |
4087 | |
4088 | eval "$ac_cv_use_dataobj" | |
4089 | if test "$no_cache" != 1; then | |
4090 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4091 | fi | |
4092 | ||
4093 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4094 | echo "$as_me:$LINENO: result: yes" >&5 |
4095 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4096 | else |
e6cc62c6 VS |
4097 | echo "$as_me:$LINENO: result: no" >&5 |
4098 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4099 | fi |
e6cc62c6 | 4100 | |
3bce6687 | 4101 | |
52127426 | 4102 | |
5005acfe | 4103 | enablestring= |
e6cc62c6 VS |
4104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4105 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4106 | no_cache=0 |
eb4efbdc VZ |
4107 | # Check whether --enable-ipc or --disable-ipc was given. |
4108 | if test "${enable_ipc+set}" = set; then | |
4109 | enableval="$enable_ipc" | |
e6cc62c6 | 4110 | |
10f2d63a | 4111 | if test "$enableval" = yes; then |
eb4efbdc | 4112 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4113 | else |
eb4efbdc | 4114 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4115 | fi |
e6cc62c6 | 4116 | |
10f2d63a | 4117 | else |
e6cc62c6 | 4118 | |
eb4efbdc | 4119 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4120 | if test "x$LINE" != x ; then |
4121 | eval "DEFAULT_$LINE" | |
4122 | else | |
4123 | no_cache=1 | |
4124 | fi | |
4125 | ||
eb4efbdc | 4126 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4127 | |
e6cc62c6 | 4128 | fi; |
10f2d63a | 4129 | |
eb4efbdc | 4130 | eval "$ac_cv_use_ipc" |
10f2d63a | 4131 | if test "$no_cache" != 1; then |
eb4efbdc | 4132 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4133 | fi |
4134 | ||
eb4efbdc | 4135 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4136 | echo "$as_me:$LINENO: result: yes" >&5 |
4137 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4138 | else |
e6cc62c6 VS |
4139 | echo "$as_me:$LINENO: result: no" >&5 |
4140 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4141 | fi |
e6cc62c6 | 4142 | |
52127426 | 4143 | |
8284b0c5 | 4144 | |
5005acfe | 4145 | enablestring= |
e6cc62c6 VS |
4146 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4147 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4148 | no_cache=0 |
4149 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4150 | if test "${enable_cmdline+set}" = set; then | |
4151 | enableval="$enable_cmdline" | |
e6cc62c6 | 4152 | |
1e6feb95 VZ |
4153 | if test "$enableval" = yes; then |
4154 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4155 | else | |
4156 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4157 | fi | |
e6cc62c6 | 4158 | |
1e6feb95 | 4159 | else |
e6cc62c6 | 4160 | |
1e6feb95 VZ |
4161 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4169 | |
e6cc62c6 | 4170 | fi; |
1e6feb95 VZ |
4171 | |
4172 | eval "$ac_cv_use_cmdline" | |
4173 | if test "$no_cache" != 1; then | |
4174 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4175 | fi | |
4176 | ||
4177 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4178 | echo "$as_me:$LINENO: result: yes" >&5 |
4179 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4180 | else |
e6cc62c6 VS |
4181 | echo "$as_me:$LINENO: result: no" >&5 |
4182 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4183 | fi |
e6cc62c6 | 4184 | |
1e6feb95 | 4185 | |
5005acfe | 4186 | enablestring= |
e6cc62c6 VS |
4187 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4188 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4189 | no_cache=0 |
4190 | # Check whether --enable-datetime or --disable-datetime was given. | |
4191 | if test "${enable_datetime+set}" = set; then | |
4192 | enableval="$enable_datetime" | |
e6cc62c6 | 4193 | |
1e6feb95 VZ |
4194 | if test "$enableval" = yes; then |
4195 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4196 | else | |
4197 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4198 | fi | |
e6cc62c6 | 4199 | |
1e6feb95 | 4200 | else |
e6cc62c6 | 4201 | |
1e6feb95 VZ |
4202 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4203 | if test "x$LINE" != x ; then | |
4204 | eval "DEFAULT_$LINE" | |
4205 | else | |
4206 | no_cache=1 | |
4207 | fi | |
4208 | ||
4209 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4210 | |
e6cc62c6 | 4211 | fi; |
1e6feb95 VZ |
4212 | |
4213 | eval "$ac_cv_use_datetime" | |
4214 | if test "$no_cache" != 1; then | |
4215 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4216 | fi | |
4217 | ||
4218 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4219 | echo "$as_me:$LINENO: result: yes" >&5 |
4220 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4221 | else |
e6cc62c6 VS |
4222 | echo "$as_me:$LINENO: result: no" >&5 |
4223 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4224 | fi |
e6cc62c6 | 4225 | |
1e6feb95 | 4226 | |
5005acfe | 4227 | enablestring= |
e6cc62c6 VS |
4228 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4229 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4230 | no_cache=0 |
4231 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4232 | if test "${enable_stopwatch+set}" = set; then | |
4233 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4234 | |
1e6feb95 VZ |
4235 | if test "$enableval" = yes; then |
4236 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4237 | else | |
4238 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4239 | fi | |
e6cc62c6 | 4240 | |
1e6feb95 | 4241 | else |
e6cc62c6 | 4242 | |
1e6feb95 VZ |
4243 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4244 | if test "x$LINE" != x ; then | |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
4250 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4251 | |
e6cc62c6 | 4252 | fi; |
1e6feb95 VZ |
4253 | |
4254 | eval "$ac_cv_use_stopwatch" | |
4255 | if test "$no_cache" != 1; then | |
4256 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4257 | fi | |
4258 | ||
4259 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4260 | echo "$as_me:$LINENO: result: yes" >&5 |
4261 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4262 | else |
e6cc62c6 VS |
4263 | echo "$as_me:$LINENO: result: no" >&5 |
4264 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4265 | fi |
e6cc62c6 | 4266 | |
1e6feb95 | 4267 | |
5005acfe | 4268 | enablestring= |
e6cc62c6 VS |
4269 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4270 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4271 | no_cache=0 |
eb4efbdc VZ |
4272 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4273 | if test "${enable_dialupman+set}" = set; then | |
4274 | enableval="$enable_dialupman" | |
e6cc62c6 | 4275 | |
10f2d63a | 4276 | if test "$enableval" = yes; then |
eb4efbdc | 4277 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4278 | else |
eb4efbdc | 4279 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4280 | fi |
e6cc62c6 | 4281 | |
10f2d63a | 4282 | else |
e6cc62c6 | 4283 | |
eb4efbdc | 4284 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4285 | if test "x$LINE" != x ; then |
4286 | eval "DEFAULT_$LINE" | |
4287 | else | |
4288 | no_cache=1 | |
4289 | fi | |
4290 | ||
eb4efbdc | 4291 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4292 | |
e6cc62c6 | 4293 | fi; |
10f2d63a | 4294 | |
eb4efbdc | 4295 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4296 | if test "$no_cache" != 1; then |
eb4efbdc | 4297 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4298 | fi |
4299 | ||
eb4efbdc | 4300 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4301 | echo "$as_me:$LINENO: result: yes" >&5 |
4302 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4303 | else |
e6cc62c6 VS |
4304 | echo "$as_me:$LINENO: result: no" >&5 |
4305 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4306 | fi |
e6cc62c6 | 4307 | |
10f2d63a | 4308 | |
5005acfe | 4309 | enablestring= |
e6cc62c6 VS |
4310 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4311 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4312 | no_cache=0 |
4313 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4314 | if test "${enable_apple_ieee+set}" = set; then | |
4315 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4316 | |
10f2d63a VZ |
4317 | if test "$enableval" = yes; then |
4318 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4319 | else | |
4320 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4321 | fi | |
e6cc62c6 | 4322 | |
10f2d63a | 4323 | else |
e6cc62c6 | 4324 | |
10f2d63a VZ |
4325 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4326 | if test "x$LINE" != x ; then | |
4327 | eval "DEFAULT_$LINE" | |
4328 | else | |
4329 | no_cache=1 | |
4330 | fi | |
4331 | ||
4332 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4333 | |
e6cc62c6 | 4334 | fi; |
10f2d63a VZ |
4335 | |
4336 | eval "$ac_cv_use_apple_ieee" | |
4337 | if test "$no_cache" != 1; then | |
4338 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4339 | fi | |
4340 | ||
4341 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4342 | echo "$as_me:$LINENO: result: yes" >&5 |
4343 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4344 | else |
e6cc62c6 VS |
4345 | echo "$as_me:$LINENO: result: no" >&5 |
4346 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4347 | fi |
e6cc62c6 | 4348 | |
10f2d63a | 4349 | |
5005acfe | 4350 | enablestring= |
e6cc62c6 VS |
4351 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4352 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4353 | no_cache=0 |
1e6feb95 VZ |
4354 | # Check whether --enable-timer or --disable-timer was given. |
4355 | if test "${enable_timer+set}" = set; then | |
4356 | enableval="$enable_timer" | |
e6cc62c6 | 4357 | |
10f2d63a | 4358 | if test "$enableval" = yes; then |
1e6feb95 | 4359 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4360 | else |
1e6feb95 | 4361 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4362 | fi |
e6cc62c6 | 4363 | |
10f2d63a | 4364 | else |
e6cc62c6 | 4365 | |
1e6feb95 | 4366 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4367 | if test "x$LINE" != x ; then |
4368 | eval "DEFAULT_$LINE" | |
4369 | else | |
4370 | no_cache=1 | |
4371 | fi | |
4372 | ||
1e6feb95 | 4373 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4374 | |
e6cc62c6 | 4375 | fi; |
10f2d63a | 4376 | |
1e6feb95 | 4377 | eval "$ac_cv_use_timer" |
10f2d63a | 4378 | if test "$no_cache" != 1; then |
1e6feb95 | 4379 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4380 | fi |
4381 | ||
1e6feb95 | 4382 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4383 | echo "$as_me:$LINENO: result: yes" >&5 |
4384 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4385 | else |
e6cc62c6 VS |
4386 | echo "$as_me:$LINENO: result: no" >&5 |
4387 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4388 | fi |
e6cc62c6 | 4389 | |
10f2d63a | 4390 | |
5005acfe | 4391 | enablestring= |
e6cc62c6 VS |
4392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4393 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4394 | no_cache=0 |
4395 | # Check whether --enable-wave or --disable-wave was given. | |
4396 | if test "${enable_wave+set}" = set; then | |
4397 | enableval="$enable_wave" | |
e6cc62c6 | 4398 | |
10f2d63a VZ |
4399 | if test "$enableval" = yes; then |
4400 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4401 | else | |
4402 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4403 | fi | |
e6cc62c6 | 4404 | |
10f2d63a | 4405 | else |
e6cc62c6 | 4406 | |
10f2d63a VZ |
4407 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4408 | if test "x$LINE" != x ; then | |
4409 | eval "DEFAULT_$LINE" | |
4410 | else | |
4411 | no_cache=1 | |
4412 | fi | |
4413 | ||
4414 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4415 | |
e6cc62c6 | 4416 | fi; |
10f2d63a VZ |
4417 | |
4418 | eval "$ac_cv_use_wave" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4424 | echo "$as_me:$LINENO: result: yes" >&5 |
4425 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4426 | else |
e6cc62c6 VS |
4427 | echo "$as_me:$LINENO: result: no" >&5 |
4428 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4429 | fi |
e6cc62c6 | 4430 | |
10f2d63a | 4431 | |
5005acfe | 4432 | enablestring= |
e6cc62c6 VS |
4433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4434 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4435 | no_cache=0 |
4436 | # Check whether --enable-fraction or --disable-fraction was given. | |
4437 | if test "${enable_fraction+set}" = set; then | |
4438 | enableval="$enable_fraction" | |
e6cc62c6 | 4439 | |
10f2d63a VZ |
4440 | if test "$enableval" = yes; then |
4441 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4442 | else | |
4443 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4444 | fi | |
e6cc62c6 | 4445 | |
10f2d63a | 4446 | else |
e6cc62c6 | 4447 | |
10f2d63a VZ |
4448 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4449 | if test "x$LINE" != x ; then | |
4450 | eval "DEFAULT_$LINE" | |
4451 | else | |
4452 | no_cache=1 | |
4453 | fi | |
4454 | ||
4455 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4456 | |
e6cc62c6 | 4457 | fi; |
10f2d63a VZ |
4458 | |
4459 | eval "$ac_cv_use_fraction" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4465 | echo "$as_me:$LINENO: result: yes" >&5 |
4466 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4467 | else |
e6cc62c6 VS |
4468 | echo "$as_me:$LINENO: result: no" >&5 |
4469 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4470 | fi |
e6cc62c6 | 4471 | |
10f2d63a | 4472 | |
5005acfe | 4473 | enablestring= |
e6cc62c6 VS |
4474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4475 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4476 | no_cache=0 |
4477 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4478 | if test "${enable_dynlib+set}" = set; then | |
4479 | enableval="$enable_dynlib" | |
e6cc62c6 | 4480 | |
10f2d63a VZ |
4481 | if test "$enableval" = yes; then |
4482 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4483 | else | |
4484 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4485 | fi | |
e6cc62c6 | 4486 | |
10f2d63a | 4487 | else |
e6cc62c6 | 4488 | |
10f2d63a VZ |
4489 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4490 | if test "x$LINE" != x ; then | |
4491 | eval "DEFAULT_$LINE" | |
4492 | else | |
4493 | no_cache=1 | |
4494 | fi | |
4495 | ||
4496 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4497 | |
e6cc62c6 | 4498 | fi; |
10f2d63a VZ |
4499 | |
4500 | eval "$ac_cv_use_dynlib" | |
4501 | if test "$no_cache" != 1; then | |
4502 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4503 | fi | |
4504 | ||
4505 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4506 | echo "$as_me:$LINENO: result: yes" >&5 |
4507 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4508 | else |
e6cc62c6 VS |
4509 | echo "$as_me:$LINENO: result: no" >&5 |
4510 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4511 | fi |
e6cc62c6 | 4512 | |
10f2d63a | 4513 | |
5005acfe | 4514 | enablestring= |
e6cc62c6 VS |
4515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4516 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4517 | no_cache=0 |
4518 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4519 | if test "${enable_dynamicloader+set}" = set; then | |
4520 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4521 | |
0b9ab0bd RL |
4522 | if test "$enableval" = yes; then |
4523 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4524 | else | |
4525 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4526 | fi | |
e6cc62c6 | 4527 | |
0b9ab0bd | 4528 | else |
e6cc62c6 | 4529 | |
0b9ab0bd RL |
4530 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4531 | if test "x$LINE" != x ; then | |
4532 | eval "DEFAULT_$LINE" | |
4533 | else | |
4534 | no_cache=1 | |
4535 | fi | |
4536 | ||
4537 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4538 | |
e6cc62c6 | 4539 | fi; |
0b9ab0bd RL |
4540 | |
4541 | eval "$ac_cv_use_dynamicloader" | |
4542 | if test "$no_cache" != 1; then | |
4543 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4544 | fi | |
4545 | ||
4546 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4547 | echo "$as_me:$LINENO: result: yes" >&5 |
4548 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4549 | else |
e6cc62c6 VS |
4550 | echo "$as_me:$LINENO: result: no" >&5 |
4551 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4552 | fi |
e6cc62c6 | 4553 | |
0b9ab0bd | 4554 | |
5005acfe | 4555 | enablestring= |
e6cc62c6 VS |
4556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4557 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4558 | no_cache=0 |
4559 | # Check whether --enable-longlong or --disable-longlong was given. | |
4560 | if test "${enable_longlong+set}" = set; then | |
4561 | enableval="$enable_longlong" | |
e6cc62c6 | 4562 | |
10f2d63a VZ |
4563 | if test "$enableval" = yes; then |
4564 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4565 | else | |
4566 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4567 | fi | |
e6cc62c6 | 4568 | |
10f2d63a | 4569 | else |
e6cc62c6 | 4570 | |
10f2d63a VZ |
4571 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4572 | if test "x$LINE" != x ; then | |
4573 | eval "DEFAULT_$LINE" | |
4574 | else | |
4575 | no_cache=1 | |
4576 | fi | |
4577 | ||
4578 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4579 | |
e6cc62c6 | 4580 | fi; |
10f2d63a VZ |
4581 | |
4582 | eval "$ac_cv_use_longlong" | |
4583 | if test "$no_cache" != 1; then | |
4584 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4585 | fi | |
4586 | ||
4587 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4588 | echo "$as_me:$LINENO: result: yes" >&5 |
4589 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4590 | else |
e6cc62c6 VS |
4591 | echo "$as_me:$LINENO: result: no" >&5 |
4592 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4593 | fi |
e6cc62c6 | 4594 | |
10f2d63a | 4595 | |
5005acfe | 4596 | enablestring= |
e6cc62c6 VS |
4597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4598 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4599 | no_cache=0 |
4600 | # Check whether --enable-geometry or --disable-geometry was given. | |
4601 | if test "${enable_geometry+set}" = set; then | |
4602 | enableval="$enable_geometry" | |
e6cc62c6 | 4603 | |
e8f65ba6 RR |
4604 | if test "$enableval" = yes; then |
4605 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4606 | else | |
4607 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4608 | fi | |
e6cc62c6 | 4609 | |
e8f65ba6 | 4610 | else |
e6cc62c6 | 4611 | |
e8f65ba6 RR |
4612 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4613 | if test "x$LINE" != x ; then | |
4614 | eval "DEFAULT_$LINE" | |
4615 | else | |
4616 | no_cache=1 | |
4617 | fi | |
4618 | ||
4619 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4620 | |
e6cc62c6 | 4621 | fi; |
e8f65ba6 RR |
4622 | |
4623 | eval "$ac_cv_use_geometry" | |
4624 | if test "$no_cache" != 1; then | |
4625 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4626 | fi | |
4627 | ||
4628 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4629 | echo "$as_me:$LINENO: result: yes" >&5 |
4630 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4631 | else |
e6cc62c6 VS |
4632 | echo "$as_me:$LINENO: result: no" >&5 |
4633 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4634 | fi |
e6cc62c6 | 4635 | |
e8f65ba6 | 4636 | |
5005acfe | 4637 | enablestring= |
e6cc62c6 VS |
4638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4639 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4640 | no_cache=0 |
4641 | # Check whether --enable-log or --disable-log was given. | |
4642 | if test "${enable_log+set}" = set; then | |
4643 | enableval="$enable_log" | |
e6cc62c6 | 4644 | |
10f2d63a VZ |
4645 | if test "$enableval" = yes; then |
4646 | ac_cv_use_log='wxUSE_LOG=yes' | |
4647 | else | |
4648 | ac_cv_use_log='wxUSE_LOG=no' | |
4649 | fi | |
e6cc62c6 | 4650 | |
10f2d63a | 4651 | else |
e6cc62c6 | 4652 | |
10f2d63a VZ |
4653 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4654 | if test "x$LINE" != x ; then | |
4655 | eval "DEFAULT_$LINE" | |
4656 | else | |
4657 | no_cache=1 | |
4658 | fi | |
4659 | ||
4660 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4661 | |
e6cc62c6 | 4662 | fi; |
10f2d63a VZ |
4663 | |
4664 | eval "$ac_cv_use_log" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4670 | echo "$as_me:$LINENO: result: yes" >&5 |
4671 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4672 | else |
e6cc62c6 VS |
4673 | echo "$as_me:$LINENO: result: no" >&5 |
4674 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4675 | fi |
e6cc62c6 | 4676 | |
10f2d63a | 4677 | |
5005acfe | 4678 | enablestring= |
e6cc62c6 VS |
4679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4680 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4681 | no_cache=0 |
4682 | # Check whether --enable-streams or --disable-streams was given. | |
4683 | if test "${enable_streams+set}" = set; then | |
4684 | enableval="$enable_streams" | |
e6cc62c6 | 4685 | |
10f2d63a VZ |
4686 | if test "$enableval" = yes; then |
4687 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4688 | else | |
4689 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4690 | fi | |
e6cc62c6 | 4691 | |
10f2d63a | 4692 | else |
e6cc62c6 | 4693 | |
10f2d63a VZ |
4694 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4695 | if test "x$LINE" != x ; then | |
4696 | eval "DEFAULT_$LINE" | |
4697 | else | |
4698 | no_cache=1 | |
4699 | fi | |
4700 | ||
4701 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4702 | |
e6cc62c6 | 4703 | fi; |
10f2d63a VZ |
4704 | |
4705 | eval "$ac_cv_use_streams" | |
4706 | if test "$no_cache" != 1; then | |
4707 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4708 | fi | |
4709 | ||
4710 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4711 | echo "$as_me:$LINENO: result: yes" >&5 |
4712 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4713 | else |
e6cc62c6 VS |
4714 | echo "$as_me:$LINENO: result: no" >&5 |
4715 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4716 | fi |
e6cc62c6 | 4717 | |
10f2d63a | 4718 | |
5005acfe | 4719 | enablestring= |
e6cc62c6 VS |
4720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4721 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4722 | no_cache=0 |
4723 | # Check whether --enable-file or --disable-file was given. | |
4724 | if test "${enable_file+set}" = set; then | |
4725 | enableval="$enable_file" | |
e6cc62c6 | 4726 | |
10f2d63a VZ |
4727 | if test "$enableval" = yes; then |
4728 | ac_cv_use_file='wxUSE_FILE=yes' | |
4729 | else | |
4730 | ac_cv_use_file='wxUSE_FILE=no' | |
4731 | fi | |
e6cc62c6 | 4732 | |
10f2d63a | 4733 | else |
e6cc62c6 | 4734 | |
10f2d63a VZ |
4735 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4736 | if test "x$LINE" != x ; then | |
4737 | eval "DEFAULT_$LINE" | |
4738 | else | |
4739 | no_cache=1 | |
4740 | fi | |
4741 | ||
4742 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4743 | |
e6cc62c6 | 4744 | fi; |
10f2d63a VZ |
4745 | |
4746 | eval "$ac_cv_use_file" | |
4747 | if test "$no_cache" != 1; then | |
4748 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4749 | fi | |
4750 | ||
4751 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4752 | echo "$as_me:$LINENO: result: yes" >&5 |
4753 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4754 | else |
e6cc62c6 VS |
4755 | echo "$as_me:$LINENO: result: no" >&5 |
4756 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4757 | fi |
e6cc62c6 | 4758 | |
10f2d63a | 4759 | |
5005acfe | 4760 | enablestring= |
e6cc62c6 VS |
4761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4762 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4763 | no_cache=0 |
1e6feb95 VZ |
4764 | # Check whether --enable-ffile or --disable-ffile was given. |
4765 | if test "${enable_ffile+set}" = set; then | |
4766 | enableval="$enable_ffile" | |
e6cc62c6 | 4767 | |
10f2d63a | 4768 | if test "$enableval" = yes; then |
1e6feb95 | 4769 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4770 | else |
1e6feb95 | 4771 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4772 | fi |
e6cc62c6 | 4773 | |
10f2d63a | 4774 | else |
e6cc62c6 | 4775 | |
1e6feb95 | 4776 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4777 | if test "x$LINE" != x ; then |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
1e6feb95 | 4783 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4784 | |
e6cc62c6 | 4785 | fi; |
10f2d63a | 4786 | |
1e6feb95 | 4787 | eval "$ac_cv_use_ffile" |
10f2d63a | 4788 | if test "$no_cache" != 1; then |
1e6feb95 | 4789 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4790 | fi |
4791 | ||
1e6feb95 | 4792 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4793 | echo "$as_me:$LINENO: result: yes" >&5 |
4794 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4795 | else |
e6cc62c6 VS |
4796 | echo "$as_me:$LINENO: result: no" >&5 |
4797 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4798 | fi |
e6cc62c6 | 4799 | |
10f2d63a | 4800 | |
5005acfe | 4801 | enablestring= |
e6cc62c6 VS |
4802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4803 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4804 | no_cache=0 |
4805 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4806 | if test "${enable_textbuf+set}" = set; then | |
4807 | enableval="$enable_textbuf" | |
e6cc62c6 | 4808 | |
a3a584a7 VZ |
4809 | if test "$enableval" = yes; then |
4810 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4811 | else | |
4812 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4813 | fi | |
e6cc62c6 | 4814 | |
a3a584a7 | 4815 | else |
e6cc62c6 | 4816 | |
a3a584a7 VZ |
4817 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4818 | if test "x$LINE" != x ; then | |
4819 | eval "DEFAULT_$LINE" | |
4820 | else | |
4821 | no_cache=1 | |
4822 | fi | |
4823 | ||
4824 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4825 | |
e6cc62c6 | 4826 | fi; |
a3a584a7 VZ |
4827 | |
4828 | eval "$ac_cv_use_textbuf" | |
4829 | if test "$no_cache" != 1; then | |
4830 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4831 | fi | |
4832 | ||
4833 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4834 | echo "$as_me:$LINENO: result: yes" >&5 |
4835 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4836 | else |
e6cc62c6 VS |
4837 | echo "$as_me:$LINENO: result: no" >&5 |
4838 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4839 | fi |
e6cc62c6 | 4840 | |
a3a584a7 | 4841 | |
5005acfe | 4842 | enablestring= |
e6cc62c6 VS |
4843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4844 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4845 | no_cache=0 |
1e6feb95 VZ |
4846 | # Check whether --enable-textfile or --disable-textfile was given. |
4847 | if test "${enable_textfile+set}" = set; then | |
4848 | enableval="$enable_textfile" | |
e6cc62c6 | 4849 | |
10f2d63a | 4850 | if test "$enableval" = yes; then |
1e6feb95 | 4851 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4852 | else |
1e6feb95 | 4853 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4854 | fi |
e6cc62c6 | 4855 | |
10f2d63a | 4856 | else |
e6cc62c6 | 4857 | |
1e6feb95 | 4858 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4859 | if test "x$LINE" != x ; then |
4860 | eval "DEFAULT_$LINE" | |
4861 | else | |
4862 | no_cache=1 | |
4863 | fi | |
4864 | ||
1e6feb95 | 4865 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4866 | |
e6cc62c6 | 4867 | fi; |
10f2d63a | 4868 | |
1e6feb95 | 4869 | eval "$ac_cv_use_textfile" |
10f2d63a | 4870 | if test "$no_cache" != 1; then |
1e6feb95 | 4871 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4872 | fi |
4873 | ||
1e6feb95 | 4874 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4875 | echo "$as_me:$LINENO: result: yes" >&5 |
4876 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4877 | else |
e6cc62c6 VS |
4878 | echo "$as_me:$LINENO: result: no" >&5 |
4879 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4880 | fi |
e6cc62c6 | 4881 | |
10f2d63a | 4882 | |
5005acfe | 4883 | enablestring= |
e6cc62c6 VS |
4884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4885 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4886 | no_cache=0 |
1e6feb95 VZ |
4887 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4888 | if test "${enable_fontmap+set}" = set; then | |
4889 | enableval="$enable_fontmap" | |
e6cc62c6 | 4890 | |
10f2d63a | 4891 | if test "$enableval" = yes; then |
1e6feb95 | 4892 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4893 | else |
1e6feb95 | 4894 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4895 | fi |
e6cc62c6 | 4896 | |
10f2d63a | 4897 | else |
e6cc62c6 | 4898 | |
1e6feb95 | 4899 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4900 | if test "x$LINE" != x ; then |
4901 | eval "DEFAULT_$LINE" | |
4902 | else | |
4903 | no_cache=1 | |
4904 | fi | |
4905 | ||
1e6feb95 | 4906 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4907 | |
e6cc62c6 | 4908 | fi; |
10f2d63a | 4909 | |
1e6feb95 | 4910 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4911 | if test "$no_cache" != 1; then |
1e6feb95 | 4912 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4913 | fi |
4914 | ||
1e6feb95 | 4915 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4916 | echo "$as_me:$LINENO: result: yes" >&5 |
4917 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4918 | else |
e6cc62c6 VS |
4919 | echo "$as_me:$LINENO: result: no" >&5 |
4920 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4921 | fi |
e6cc62c6 | 4922 | |
10f2d63a | 4923 | |
5005acfe | 4924 | enablestring= |
e6cc62c6 VS |
4925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4926 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4927 | no_cache=0 |
1e6feb95 VZ |
4928 | # Check whether --enable-unicode or --disable-unicode was given. |
4929 | if test "${enable_unicode+set}" = set; then | |
4930 | enableval="$enable_unicode" | |
e6cc62c6 | 4931 | |
1e6feb95 VZ |
4932 | if test "$enableval" = yes; then |
4933 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4934 | else | |
4935 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4936 | fi | |
e6cc62c6 | 4937 | |
1e6feb95 | 4938 | else |
e6cc62c6 | 4939 | |
1e6feb95 VZ |
4940 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4941 | if test "x$LINE" != x ; then | |
4942 | eval "DEFAULT_$LINE" | |
4943 | else | |
4944 | no_cache=1 | |
4945 | fi | |
4946 | ||
4947 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 4948 | |
e6cc62c6 | 4949 | fi; |
1e6feb95 VZ |
4950 | |
4951 | eval "$ac_cv_use_unicode" | |
4952 | if test "$no_cache" != 1; then | |
4953 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4954 | fi | |
4955 | ||
4956 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
4957 | echo "$as_me:$LINENO: result: yes" >&5 |
4958 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4959 | else |
e6cc62c6 VS |
4960 | echo "$as_me:$LINENO: result: no" >&5 |
4961 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4962 | fi |
e6cc62c6 | 4963 | |
1e6feb95 | 4964 | |
5005acfe | 4965 | enablestring= |
e6cc62c6 VS |
4966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
4967 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
4968 | no_cache=0 |
4969 | # Check whether --enable-mslu or --disable-mslu was given. | |
4970 | if test "${enable_mslu+set}" = set; then | |
4971 | enableval="$enable_mslu" | |
e6cc62c6 | 4972 | |
a72a4bfa VS |
4973 | if test "$enableval" = yes; then |
4974 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4975 | else | |
4976 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4977 | fi | |
e6cc62c6 | 4978 | |
a72a4bfa | 4979 | else |
e6cc62c6 | 4980 | |
a72a4bfa VS |
4981 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4982 | if test "x$LINE" != x ; then | |
4983 | eval "DEFAULT_$LINE" | |
4984 | else | |
4985 | no_cache=1 | |
4986 | fi | |
4987 | ||
4988 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 4989 | |
e6cc62c6 | 4990 | fi; |
a72a4bfa VS |
4991 | |
4992 | eval "$ac_cv_use_mslu" | |
4993 | if test "$no_cache" != 1; then | |
4994 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4995 | fi | |
4996 | ||
4997 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
4998 | echo "$as_me:$LINENO: result: yes" >&5 |
4999 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5000 | else |
e6cc62c6 VS |
5001 | echo "$as_me:$LINENO: result: no" >&5 |
5002 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5003 | fi |
e6cc62c6 | 5004 | |
a72a4bfa | 5005 | |
5005acfe | 5006 | enablestring= |
e6cc62c6 VS |
5007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5008 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5009 | no_cache=0 |
5010 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5011 | if test "${enable_wxprintfv+set}" = set; then | |
5012 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5013 | |
1e6feb95 | 5014 | if test "$enableval" = yes; then |
10f2d63a VZ |
5015 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5016 | else | |
5017 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5018 | fi | |
e6cc62c6 | 5019 | |
10f2d63a | 5020 | else |
e6cc62c6 | 5021 | |
10f2d63a VZ |
5022 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5023 | if test "x$LINE" != x ; then | |
5024 | eval "DEFAULT_$LINE" | |
5025 | else | |
5026 | no_cache=1 | |
5027 | fi | |
5028 | ||
5029 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5030 | |
e6cc62c6 | 5031 | fi; |
10f2d63a VZ |
5032 | |
5033 | eval "$ac_cv_use_wxprintfv" | |
5034 | if test "$no_cache" != 1; then | |
5035 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5036 | fi | |
5037 | ||
5038 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5039 | echo "$as_me:$LINENO: result: yes" >&5 |
5040 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5041 | else |
e6cc62c6 VS |
5042 | echo "$as_me:$LINENO: result: no" >&5 |
5043 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5044 | fi |
e6cc62c6 | 5045 | |
10f2d63a | 5046 | |
5005acfe | 5047 | enablestring= |
e6cc62c6 VS |
5048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5049 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5050 | no_cache=0 |
5051 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5052 | if test "${enable_std_iostreams+set}" = set; then | |
5053 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5054 | |
10f2d63a VZ |
5055 | if test "$enableval" = yes; then |
5056 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5057 | else | |
5058 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5059 | fi | |
e6cc62c6 | 5060 | |
10f2d63a | 5061 | else |
e6cc62c6 | 5062 | |
10f2d63a VZ |
5063 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5064 | if test "x$LINE" != x ; then | |
5065 | eval "DEFAULT_$LINE" | |
5066 | else | |
5067 | no_cache=1 | |
5068 | fi | |
5069 | ||
5070 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5071 | |
e6cc62c6 | 5072 | fi; |
10f2d63a VZ |
5073 | |
5074 | eval "$ac_cv_use_std_iostreams" | |
5075 | if test "$no_cache" != 1; then | |
5076 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5077 | fi | |
5078 | ||
5079 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5080 | echo "$as_me:$LINENO: result: yes" >&5 |
5081 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5082 | else |
e6cc62c6 VS |
5083 | echo "$as_me:$LINENO: result: no" >&5 |
5084 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5085 | fi |
e6cc62c6 | 5086 | |
10f2d63a | 5087 | |
5005acfe | 5088 | enablestring= |
e6cc62c6 VS |
5089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5090 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5091 | no_cache=0 |
5092 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5093 | if test "${enable_filesystem+set}" = set; then | |
5094 | enableval="$enable_filesystem" | |
e6cc62c6 | 5095 | |
24528b0c VS |
5096 | if test "$enableval" = yes; then |
5097 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5098 | else | |
5099 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5100 | fi | |
e6cc62c6 | 5101 | |
24528b0c | 5102 | else |
e6cc62c6 | 5103 | |
24528b0c VS |
5104 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5112 | |
e6cc62c6 | 5113 | fi; |
24528b0c VS |
5114 | |
5115 | eval "$ac_cv_use_filesystem" | |
5116 | if test "$no_cache" != 1; then | |
5117 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5118 | fi | |
5119 | ||
5120 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5121 | echo "$as_me:$LINENO: result: yes" >&5 |
5122 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5123 | else |
e6cc62c6 VS |
5124 | echo "$as_me:$LINENO: result: no" >&5 |
5125 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5126 | fi |
e6cc62c6 | 5127 | |
24528b0c | 5128 | |
5005acfe | 5129 | enablestring= |
e6cc62c6 VS |
5130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5131 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5132 | no_cache=0 |
5133 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5134 | if test "${enable_fs_inet+set}" = set; then | |
5135 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5136 | |
10f2d63a VZ |
5137 | if test "$enableval" = yes; then |
5138 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5139 | else | |
5140 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5141 | fi | |
e6cc62c6 | 5142 | |
10f2d63a | 5143 | else |
e6cc62c6 | 5144 | |
10f2d63a VZ |
5145 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5146 | if test "x$LINE" != x ; then | |
5147 | eval "DEFAULT_$LINE" | |
5148 | else | |
5149 | no_cache=1 | |
5150 | fi | |
5151 | ||
5152 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5153 | |
e6cc62c6 | 5154 | fi; |
10f2d63a VZ |
5155 | |
5156 | eval "$ac_cv_use_fs_inet" | |
5157 | if test "$no_cache" != 1; then | |
5158 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5159 | fi | |
5160 | ||
5161 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5162 | echo "$as_me:$LINENO: result: yes" >&5 |
5163 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5164 | else |
e6cc62c6 VS |
5165 | echo "$as_me:$LINENO: result: no" >&5 |
5166 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5167 | fi |
e6cc62c6 | 5168 | |
10f2d63a | 5169 | |
5005acfe | 5170 | enablestring= |
e6cc62c6 VS |
5171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5172 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5173 | no_cache=0 |
5174 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5175 | if test "${enable_fs_zip+set}" = set; then | |
5176 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5177 | |
10f2d63a VZ |
5178 | if test "$enableval" = yes; then |
5179 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5180 | else | |
5181 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5182 | fi | |
e6cc62c6 | 5183 | |
10f2d63a | 5184 | else |
e6cc62c6 | 5185 | |
10f2d63a VZ |
5186 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5187 | if test "x$LINE" != x ; then | |
5188 | eval "DEFAULT_$LINE" | |
5189 | else | |
5190 | no_cache=1 | |
5191 | fi | |
5192 | ||
5193 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5194 | |
e6cc62c6 | 5195 | fi; |
10f2d63a VZ |
5196 | |
5197 | eval "$ac_cv_use_fs_zip" | |
5198 | if test "$no_cache" != 1; then | |
5199 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5200 | fi | |
5201 | ||
5202 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5203 | echo "$as_me:$LINENO: result: yes" >&5 |
5204 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5205 | else |
e6cc62c6 VS |
5206 | echo "$as_me:$LINENO: result: no" >&5 |
5207 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5208 | fi |
e6cc62c6 | 5209 | |
10f2d63a | 5210 | |
5005acfe | 5211 | enablestring= |
e6cc62c6 VS |
5212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5213 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5214 | no_cache=0 |
5215 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5216 | if test "${enable_zipstream+set}" = set; then | |
5217 | enableval="$enable_zipstream" | |
e6cc62c6 | 5218 | |
10f2d63a VZ |
5219 | if test "$enableval" = yes; then |
5220 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5221 | else | |
5222 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5223 | fi | |
e6cc62c6 | 5224 | |
10f2d63a | 5225 | else |
e6cc62c6 | 5226 | |
10f2d63a VZ |
5227 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5235 | |
e6cc62c6 | 5236 | fi; |
10f2d63a VZ |
5237 | |
5238 | eval "$ac_cv_use_zipstream" | |
5239 | if test "$no_cache" != 1; then | |
5240 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5241 | fi | |
5242 | ||
5243 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5244 | echo "$as_me:$LINENO: result: yes" >&5 |
5245 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5246 | else |
e6cc62c6 VS |
5247 | echo "$as_me:$LINENO: result: no" >&5 |
5248 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5249 | fi |
e6cc62c6 | 5250 | |
8284b0c5 | 5251 | |
52127426 | 5252 | |
5005acfe | 5253 | enablestring= |
e6cc62c6 VS |
5254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5255 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5256 | no_cache=0 |
5257 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5258 | if test "${enable_catch_segvs+set}" = set; then | |
5259 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5260 | |
eb4efbdc VZ |
5261 | if test "$enableval" = yes; then |
5262 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5263 | else | |
5264 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5265 | fi | |
e6cc62c6 | 5266 | |
eb4efbdc | 5267 | else |
e6cc62c6 | 5268 | |
eb4efbdc VZ |
5269 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5270 | if test "x$LINE" != x ; then | |
5271 | eval "DEFAULT_$LINE" | |
5272 | else | |
5273 | no_cache=1 | |
5274 | fi | |
5275 | ||
5276 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5277 | |
e6cc62c6 | 5278 | fi; |
eb4efbdc VZ |
5279 | |
5280 | eval "$ac_cv_use_catch_segvs" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5286 | echo "$as_me:$LINENO: result: yes" >&5 |
5287 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5288 | else |
e6cc62c6 VS |
5289 | echo "$as_me:$LINENO: result: no" >&5 |
5290 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5291 | fi |
e6cc62c6 | 5292 | |
eb4efbdc | 5293 | |
5005acfe | 5294 | enablestring= |
e6cc62c6 VS |
5295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5296 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5299 | if test "${enable_snglinst+set}" = set; then | |
5300 | enableval="$enable_snglinst" | |
e6cc62c6 | 5301 | |
4f3c5f06 VZ |
5302 | if test "$enableval" = yes; then |
5303 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5304 | else | |
5305 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5306 | fi | |
e6cc62c6 | 5307 | |
4f3c5f06 | 5308 | else |
e6cc62c6 | 5309 | |
4f3c5f06 VZ |
5310 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5318 | |
e6cc62c6 | 5319 | fi; |
4f3c5f06 VZ |
5320 | |
5321 | eval "$ac_cv_use_snglinst" | |
5322 | if test "$no_cache" != 1; then | |
5323 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5324 | fi | |
5325 | ||
5326 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5327 | echo "$as_me:$LINENO: result: yes" >&5 |
5328 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5329 | else |
e6cc62c6 VS |
5330 | echo "$as_me:$LINENO: result: no" >&5 |
5331 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5332 | fi |
e6cc62c6 | 5333 | |
52127426 | 5334 | |
8284b0c5 | 5335 | |
5005acfe | 5336 | enablestring= |
e6cc62c6 VS |
5337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5338 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5339 | no_cache=0 |
5340 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5341 | if test "${enable_mimetype+set}" = set; then | |
5342 | enableval="$enable_mimetype" | |
e6cc62c6 | 5343 | |
1e6feb95 VZ |
5344 | if test "$enableval" = yes; then |
5345 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5346 | else | |
5347 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5348 | fi | |
e6cc62c6 | 5349 | |
1e6feb95 | 5350 | else |
e6cc62c6 | 5351 | |
1e6feb95 VZ |
5352 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5353 | if test "x$LINE" != x ; then | |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
5359 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5360 | |
e6cc62c6 | 5361 | fi; |
1e6feb95 VZ |
5362 | |
5363 | eval "$ac_cv_use_mimetype" | |
5364 | if test "$no_cache" != 1; then | |
5365 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5366 | fi | |
5367 | ||
5368 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5369 | echo "$as_me:$LINENO: result: yes" >&5 |
5370 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5371 | else |
e6cc62c6 VS |
5372 | echo "$as_me:$LINENO: result: no" >&5 |
5373 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5374 | fi |
e6cc62c6 | 5375 | |
1e6feb95 | 5376 | |
5005acfe | 5377 | enablestring= |
e6cc62c6 VS |
5378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5379 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5380 | no_cache=0 |
5381 | # Check whether --enable-system_options or --disable-system_options was given. | |
5382 | if test "${enable_system_options+set}" = set; then | |
5383 | enableval="$enable_system_options" | |
e6cc62c6 | 5384 | |
3e44f09d VZ |
5385 | if test "$enableval" = yes; then |
5386 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5387 | else | |
5388 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5389 | fi | |
e6cc62c6 | 5390 | |
3e44f09d | 5391 | else |
e6cc62c6 | 5392 | |
3e44f09d VZ |
5393 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5394 | if test "x$LINE" != x ; then | |
5395 | eval "DEFAULT_$LINE" | |
5396 | else | |
5397 | no_cache=1 | |
5398 | fi | |
5399 | ||
5400 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5401 | |
e6cc62c6 | 5402 | fi; |
3e44f09d VZ |
5403 | |
5404 | eval "$ac_cv_use_system_options" | |
5405 | if test "$no_cache" != 1; then | |
5406 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5407 | fi | |
5408 | ||
5409 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5410 | echo "$as_me:$LINENO: result: yes" >&5 |
5411 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5412 | else |
e6cc62c6 VS |
5413 | echo "$as_me:$LINENO: result: no" >&5 |
5414 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5415 | fi |
e6cc62c6 | 5416 | |
8284b0c5 | 5417 | |
52127426 | 5418 | |
5005acfe | 5419 | enablestring= |
e6cc62c6 VS |
5420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5421 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5422 | no_cache=0 |
5423 | # Check whether --enable-url or --disable-url was given. | |
5424 | if test "${enable_url+set}" = set; then | |
5425 | enableval="$enable_url" | |
e6cc62c6 | 5426 | |
4cdb0ab0 VS |
5427 | if test "$enableval" = yes; then |
5428 | ac_cv_use_url='wxUSE_URL=yes' | |
5429 | else | |
5430 | ac_cv_use_url='wxUSE_URL=no' | |
5431 | fi | |
e6cc62c6 | 5432 | |
4cdb0ab0 | 5433 | else |
e6cc62c6 | 5434 | |
4cdb0ab0 VS |
5435 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5436 | if test "x$LINE" != x ; then | |
5437 | eval "DEFAULT_$LINE" | |
5438 | else | |
5439 | no_cache=1 | |
5440 | fi | |
5441 | ||
5442 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5443 | |
e6cc62c6 | 5444 | fi; |
4cdb0ab0 VS |
5445 | |
5446 | eval "$ac_cv_use_url" | |
5447 | if test "$no_cache" != 1; then | |
5448 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5449 | fi | |
5450 | ||
5451 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5452 | echo "$as_me:$LINENO: result: yes" >&5 |
5453 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5454 | else |
e6cc62c6 VS |
5455 | echo "$as_me:$LINENO: result: no" >&5 |
5456 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5457 | fi |
e6cc62c6 | 5458 | |
4cdb0ab0 | 5459 | |
5005acfe | 5460 | enablestring= |
e6cc62c6 VS |
5461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5462 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5463 | no_cache=0 |
5464 | # Check whether --enable-protocol or --disable-protocol was given. | |
5465 | if test "${enable_protocol+set}" = set; then | |
5466 | enableval="$enable_protocol" | |
e6cc62c6 | 5467 | |
4cdb0ab0 VS |
5468 | if test "$enableval" = yes; then |
5469 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5470 | else | |
5471 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5472 | fi | |
e6cc62c6 | 5473 | |
4cdb0ab0 | 5474 | else |
e6cc62c6 | 5475 | |
4cdb0ab0 VS |
5476 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5477 | if test "x$LINE" != x ; then | |
5478 | eval "DEFAULT_$LINE" | |
5479 | else | |
5480 | no_cache=1 | |
5481 | fi | |
5482 | ||
5483 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5484 | |
e6cc62c6 | 5485 | fi; |
4cdb0ab0 VS |
5486 | |
5487 | eval "$ac_cv_use_protocol" | |
5488 | if test "$no_cache" != 1; then | |
5489 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5490 | fi | |
5491 | ||
5492 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5493 | echo "$as_me:$LINENO: result: yes" >&5 |
5494 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5495 | else |
e6cc62c6 VS |
5496 | echo "$as_me:$LINENO: result: no" >&5 |
5497 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5498 | fi |
e6cc62c6 | 5499 | |
4cdb0ab0 | 5500 | |
5005acfe | 5501 | enablestring= |
e6cc62c6 VS |
5502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5503 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5504 | no_cache=0 |
5505 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5506 | if test "${enable_protocol_http+set}" = set; then | |
5507 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5508 | |
4cdb0ab0 VS |
5509 | if test "$enableval" = yes; then |
5510 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5511 | else | |
5512 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5513 | fi | |
e6cc62c6 | 5514 | |
4cdb0ab0 | 5515 | else |
e6cc62c6 | 5516 | |
4cdb0ab0 VS |
5517 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5518 | if test "x$LINE" != x ; then | |
5519 | eval "DEFAULT_$LINE" | |
5520 | else | |
5521 | no_cache=1 | |
5522 | fi | |
5523 | ||
5524 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5525 | |
e6cc62c6 | 5526 | fi; |
4cdb0ab0 VS |
5527 | |
5528 | eval "$ac_cv_use_protocol_http" | |
5529 | if test "$no_cache" != 1; then | |
5530 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5531 | fi | |
5532 | ||
5533 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5534 | echo "$as_me:$LINENO: result: yes" >&5 |
5535 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5536 | else |
e6cc62c6 VS |
5537 | echo "$as_me:$LINENO: result: no" >&5 |
5538 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5539 | fi |
e6cc62c6 | 5540 | |
4cdb0ab0 | 5541 | |
5005acfe | 5542 | enablestring= |
e6cc62c6 VS |
5543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5544 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5545 | no_cache=0 |
5546 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5547 | if test "${enable_protocol_ftp+set}" = set; then | |
5548 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5549 | |
4cdb0ab0 VS |
5550 | if test "$enableval" = yes; then |
5551 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5552 | else | |
5553 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5554 | fi | |
e6cc62c6 | 5555 | |
4cdb0ab0 | 5556 | else |
e6cc62c6 | 5557 | |
4cdb0ab0 VS |
5558 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5559 | if test "x$LINE" != x ; then | |
5560 | eval "DEFAULT_$LINE" | |
5561 | else | |
5562 | no_cache=1 | |
5563 | fi | |
5564 | ||
5565 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5566 | |
e6cc62c6 | 5567 | fi; |
4cdb0ab0 VS |
5568 | |
5569 | eval "$ac_cv_use_protocol_ftp" | |
5570 | if test "$no_cache" != 1; then | |
5571 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5572 | fi | |
5573 | ||
5574 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5575 | echo "$as_me:$LINENO: result: yes" >&5 |
5576 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5577 | else |
e6cc62c6 VS |
5578 | echo "$as_me:$LINENO: result: no" >&5 |
5579 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5580 | fi |
e6cc62c6 | 5581 | |
4cdb0ab0 | 5582 | |
5005acfe | 5583 | enablestring= |
e6cc62c6 VS |
5584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5585 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5586 | no_cache=0 |
5587 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5588 | if test "${enable_protocol_file+set}" = set; then | |
5589 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5590 | |
4cdb0ab0 VS |
5591 | if test "$enableval" = yes; then |
5592 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5593 | else | |
5594 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5595 | fi | |
e6cc62c6 | 5596 | |
4cdb0ab0 | 5597 | else |
e6cc62c6 | 5598 | |
4cdb0ab0 VS |
5599 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5600 | if test "x$LINE" != x ; then | |
5601 | eval "DEFAULT_$LINE" | |
5602 | else | |
5603 | no_cache=1 | |
5604 | fi | |
5605 | ||
5606 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5607 | |
e6cc62c6 | 5608 | fi; |
4cdb0ab0 VS |
5609 | |
5610 | eval "$ac_cv_use_protocol_file" | |
5611 | if test "$no_cache" != 1; then | |
5612 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5613 | fi | |
5614 | ||
5615 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5616 | echo "$as_me:$LINENO: result: yes" >&5 |
5617 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5618 | else |
e6cc62c6 VS |
5619 | echo "$as_me:$LINENO: result: no" >&5 |
5620 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5621 | fi |
e6cc62c6 | 5622 | |
52127426 | 5623 | |
8284b0c5 MB |
5624 | |
5625 | ||
5626 | ||
5005acfe | 5627 | enablestring= |
e6cc62c6 VS |
5628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5629 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5630 | no_cache=0 |
5631 | # Check whether --enable-threads or --disable-threads was given. | |
5632 | if test "${enable_threads+set}" = set; then | |
5633 | enableval="$enable_threads" | |
e6cc62c6 | 5634 | |
10f2d63a VZ |
5635 | if test "$enableval" = yes; then |
5636 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5637 | else | |
5638 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5639 | fi | |
e6cc62c6 | 5640 | |
10f2d63a | 5641 | else |
e6cc62c6 | 5642 | |
10f2d63a VZ |
5643 | LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5651 | |
e6cc62c6 | 5652 | fi; |
10f2d63a VZ |
5653 | |
5654 | eval "$ac_cv_use_threads" | |
5655 | if test "$no_cache" != 1; then | |
5656 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5657 | fi | |
5658 | ||
5659 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5660 | echo "$as_me:$LINENO: result: yes" >&5 |
5661 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5662 | else |
e6cc62c6 VS |
5663 | echo "$as_me:$LINENO: result: no" >&5 |
5664 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5665 | fi |
e6cc62c6 | 5666 | |
10f2d63a | 5667 | |
b12915c1 VZ |
5668 | if test "$wxUSE_GUI" = "yes"; then |
5669 | ||
8284b0c5 MB |
5670 | |
5671 | ||
5005acfe | 5672 | enablestring= |
e6cc62c6 VS |
5673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5674 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5675 | no_cache=0 |
5676 | # Check whether --enable-docview or --disable-docview was given. | |
5677 | if test "${enable_docview+set}" = set; then | |
5678 | enableval="$enable_docview" | |
e6cc62c6 | 5679 | |
10f2d63a VZ |
5680 | if test "$enableval" = yes; then |
5681 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5682 | else | |
5683 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5684 | fi | |
e6cc62c6 | 5685 | |
10f2d63a | 5686 | else |
e6cc62c6 | 5687 | |
10f2d63a VZ |
5688 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5689 | if test "x$LINE" != x ; then | |
5690 | eval "DEFAULT_$LINE" | |
5691 | else | |
5692 | no_cache=1 | |
5693 | fi | |
5694 | ||
5695 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5696 | |
e6cc62c6 | 5697 | fi; |
10f2d63a VZ |
5698 | |
5699 | eval "$ac_cv_use_docview" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5705 | echo "$as_me:$LINENO: result: yes" >&5 |
5706 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5707 | else |
e6cc62c6 VS |
5708 | echo "$as_me:$LINENO: result: no" >&5 |
5709 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5710 | fi |
e6cc62c6 | 5711 | |
10f2d63a | 5712 | |
5005acfe | 5713 | enablestring= |
e6cc62c6 VS |
5714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5715 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5716 | no_cache=0 |
5717 | # Check whether --enable-help or --disable-help was given. | |
5718 | if test "${enable_help+set}" = set; then | |
5719 | enableval="$enable_help" | |
e6cc62c6 | 5720 | |
10f2d63a VZ |
5721 | if test "$enableval" = yes; then |
5722 | ac_cv_use_help='wxUSE_HELP=yes' | |
5723 | else | |
5724 | ac_cv_use_help='wxUSE_HELP=no' | |
5725 | fi | |
e6cc62c6 | 5726 | |
10f2d63a | 5727 | else |
e6cc62c6 | 5728 | |
10f2d63a VZ |
5729 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5730 | if test "x$LINE" != x ; then | |
5731 | eval "DEFAULT_$LINE" | |
5732 | else | |
5733 | no_cache=1 | |
5734 | fi | |
5735 | ||
5736 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5737 | |
e6cc62c6 | 5738 | fi; |
10f2d63a VZ |
5739 | |
5740 | eval "$ac_cv_use_help" | |
5741 | if test "$no_cache" != 1; then | |
5742 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5743 | fi | |
5744 | ||
5745 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5746 | echo "$as_me:$LINENO: result: yes" >&5 |
5747 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5748 | else |
e6cc62c6 VS |
5749 | echo "$as_me:$LINENO: result: no" >&5 |
5750 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5751 | fi |
e6cc62c6 | 5752 | |
10f2d63a | 5753 | |
5005acfe | 5754 | enablestring= |
e6cc62c6 VS |
5755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5756 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5757 | no_cache=0 |
5758 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5759 | if test "${enable_mshtmlhelp+set}" = set; then | |
5760 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5761 | |
29fd3c0c VS |
5762 | if test "$enableval" = yes; then |
5763 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5764 | else | |
5765 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5766 | fi | |
e6cc62c6 | 5767 | |
29fd3c0c | 5768 | else |
e6cc62c6 | 5769 | |
29fd3c0c VS |
5770 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5771 | if test "x$LINE" != x ; then | |
5772 | eval "DEFAULT_$LINE" | |
5773 | else | |
5774 | no_cache=1 | |
5775 | fi | |
5776 | ||
5777 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5778 | |
e6cc62c6 | 5779 | fi; |
29fd3c0c VS |
5780 | |
5781 | eval "$ac_cv_use_mshtmlhelp" | |
5782 | if test "$no_cache" != 1; then | |
5783 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5784 | fi | |
5785 | ||
5786 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5787 | echo "$as_me:$LINENO: result: yes" >&5 |
5788 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5789 | else |
e6cc62c6 VS |
5790 | echo "$as_me:$LINENO: result: no" >&5 |
5791 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5792 | fi |
e6cc62c6 | 5793 | |
29fd3c0c | 5794 | |
5005acfe | 5795 | enablestring= |
e6cc62c6 VS |
5796 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5797 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5798 | no_cache=0 |
5799 | # Check whether --enable-html or --disable-html was given. | |
5800 | if test "${enable_html+set}" = set; then | |
5801 | enableval="$enable_html" | |
e6cc62c6 | 5802 | |
3379ed37 VZ |
5803 | if test "$enableval" = yes; then |
5804 | ac_cv_use_html='wxUSE_HTML=yes' | |
5805 | else | |
5806 | ac_cv_use_html='wxUSE_HTML=no' | |
5807 | fi | |
e6cc62c6 | 5808 | |
3379ed37 | 5809 | else |
e6cc62c6 | 5810 | |
3379ed37 VZ |
5811 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5812 | if test "x$LINE" != x ; then | |
5813 | eval "DEFAULT_$LINE" | |
5814 | else | |
5815 | no_cache=1 | |
5816 | fi | |
5817 | ||
5818 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5819 | |
e6cc62c6 | 5820 | fi; |
3379ed37 VZ |
5821 | |
5822 | eval "$ac_cv_use_html" | |
5823 | if test "$no_cache" != 1; then | |
5824 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5825 | fi | |
5826 | ||
5827 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5828 | echo "$as_me:$LINENO: result: yes" >&5 |
5829 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5830 | else |
e6cc62c6 VS |
5831 | echo "$as_me:$LINENO: result: no" >&5 |
5832 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5833 | fi |
e6cc62c6 | 5834 | |
3379ed37 | 5835 | |
5005acfe | 5836 | enablestring= |
e6cc62c6 VS |
5837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5838 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5839 | no_cache=0 |
5840 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5841 | if test "${enable_htmlhelp+set}" = set; then | |
5842 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5843 | |
3379ed37 VZ |
5844 | if test "$enableval" = yes; then |
5845 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5846 | else | |
5847 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5848 | fi | |
e6cc62c6 | 5849 | |
3379ed37 | 5850 | else |
e6cc62c6 | 5851 | |
3379ed37 VZ |
5852 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5853 | if test "x$LINE" != x ; then | |
5854 | eval "DEFAULT_$LINE" | |
5855 | else | |
5856 | no_cache=1 | |
5857 | fi | |
5858 | ||
5859 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5860 | |
e6cc62c6 | 5861 | fi; |
3379ed37 VZ |
5862 | |
5863 | eval "$ac_cv_use_htmlhelp" | |
5864 | if test "$no_cache" != 1; then | |
5865 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5866 | fi | |
5867 | ||
5868 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5869 | echo "$as_me:$LINENO: result: yes" >&5 |
5870 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5871 | else |
e6cc62c6 VS |
5872 | echo "$as_me:$LINENO: result: no" >&5 |
5873 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5874 | fi |
e6cc62c6 | 5875 | |
3379ed37 | 5876 | |
5005acfe | 5877 | enablestring= |
e6cc62c6 VS |
5878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5879 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5880 | no_cache=0 |
5881 | # Check whether --enable-constraints or --disable-constraints was given. | |
5882 | if test "${enable_constraints+set}" = set; then | |
5883 | enableval="$enable_constraints" | |
e6cc62c6 | 5884 | |
10f2d63a VZ |
5885 | if test "$enableval" = yes; then |
5886 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5887 | else | |
5888 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5889 | fi | |
e6cc62c6 | 5890 | |
10f2d63a | 5891 | else |
e6cc62c6 | 5892 | |
10f2d63a VZ |
5893 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5894 | if test "x$LINE" != x ; then | |
5895 | eval "DEFAULT_$LINE" | |
5896 | else | |
5897 | no_cache=1 | |
5898 | fi | |
5899 | ||
5900 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5901 | |
e6cc62c6 | 5902 | fi; |
10f2d63a VZ |
5903 | |
5904 | eval "$ac_cv_use_constraints" | |
5905 | if test "$no_cache" != 1; then | |
5906 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5907 | fi | |
5908 | ||
5909 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5910 | echo "$as_me:$LINENO: result: yes" >&5 |
5911 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5912 | else |
e6cc62c6 VS |
5913 | echo "$as_me:$LINENO: result: no" >&5 |
5914 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5915 | fi |
e6cc62c6 | 5916 | |
10f2d63a | 5917 | |
5005acfe | 5918 | enablestring= |
e6cc62c6 VS |
5919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5920 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5921 | no_cache=0 |
5922 | # Check whether --enable-printarch or --disable-printarch was given. | |
5923 | if test "${enable_printarch+set}" = set; then | |
5924 | enableval="$enable_printarch" | |
e6cc62c6 | 5925 | |
10f2d63a VZ |
5926 | if test "$enableval" = yes; then |
5927 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5928 | else | |
5929 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5930 | fi | |
e6cc62c6 | 5931 | |
10f2d63a | 5932 | else |
e6cc62c6 | 5933 | |
10f2d63a VZ |
5934 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5935 | if test "x$LINE" != x ; then | |
5936 | eval "DEFAULT_$LINE" | |
5937 | else | |
5938 | no_cache=1 | |
5939 | fi | |
5940 | ||
5941 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5942 | |
e6cc62c6 | 5943 | fi; |
10f2d63a VZ |
5944 | |
5945 | eval "$ac_cv_use_printarch" | |
5946 | if test "$no_cache" != 1; then | |
5947 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5948 | fi | |
5949 | ||
5950 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5951 | echo "$as_me:$LINENO: result: yes" >&5 |
5952 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5953 | else |
e6cc62c6 VS |
5954 | echo "$as_me:$LINENO: result: no" >&5 |
5955 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5956 | fi |
e6cc62c6 | 5957 | |
10f2d63a | 5958 | |
5005acfe | 5959 | enablestring= |
e6cc62c6 VS |
5960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
5961 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
5962 | no_cache=0 |
5963 | # Check whether --enable-mdi or --disable-mdi was given. | |
5964 | if test "${enable_mdi+set}" = set; then | |
5965 | enableval="$enable_mdi" | |
e6cc62c6 | 5966 | |
10f2d63a VZ |
5967 | if test "$enableval" = yes; then |
5968 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5969 | else | |
5970 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5971 | fi | |
e6cc62c6 | 5972 | |
10f2d63a | 5973 | else |
e6cc62c6 | 5974 | |
10f2d63a VZ |
5975 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5976 | if test "x$LINE" != x ; then | |
5977 | eval "DEFAULT_$LINE" | |
5978 | else | |
5979 | no_cache=1 | |
5980 | fi | |
5981 | ||
5982 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 5983 | |
e6cc62c6 | 5984 | fi; |
10f2d63a VZ |
5985 | |
5986 | eval "$ac_cv_use_mdi" | |
5987 | if test "$no_cache" != 1; then | |
5988 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5989 | fi | |
5990 | ||
5991 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5992 | echo "$as_me:$LINENO: result: yes" >&5 |
5993 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5994 | else |
e6cc62c6 VS |
5995 | echo "$as_me:$LINENO: result: no" >&5 |
5996 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5997 | fi |
e6cc62c6 | 5998 | |
698dcdb6 | 5999 | |
5005acfe | 6000 | enablestring= |
e6cc62c6 VS |
6001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6002 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6003 | no_cache=0 |
6004 | # Check whether --enable-loggui or --disable-loggui was given. | |
6005 | if test "${enable_loggui+set}" = set; then | |
6006 | enableval="$enable_loggui" | |
e6cc62c6 | 6007 | |
1e6feb95 VZ |
6008 | if test "$enableval" = yes; then |
6009 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6010 | else | |
6011 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6012 | fi | |
e6cc62c6 | 6013 | |
1e6feb95 | 6014 | else |
e6cc62c6 | 6015 | |
1e6feb95 VZ |
6016 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6017 | if test "x$LINE" != x ; then | |
6018 | eval "DEFAULT_$LINE" | |
6019 | else | |
6020 | no_cache=1 | |
6021 | fi | |
6022 | ||
6023 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6024 | |
e6cc62c6 | 6025 | fi; |
1e6feb95 VZ |
6026 | |
6027 | eval "$ac_cv_use_loggui" | |
6028 | if test "$no_cache" != 1; then | |
6029 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6030 | fi | |
6031 | ||
6032 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6033 | echo "$as_me:$LINENO: result: yes" >&5 |
6034 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6035 | else |
e6cc62c6 VS |
6036 | echo "$as_me:$LINENO: result: no" >&5 |
6037 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6038 | fi |
e6cc62c6 | 6039 | |
1e6feb95 | 6040 | |
5005acfe | 6041 | enablestring= |
e6cc62c6 VS |
6042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6043 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6044 | no_cache=0 |
6045 | # Check whether --enable-logwin or --disable-logwin was given. | |
6046 | if test "${enable_logwin+set}" = set; then | |
6047 | enableval="$enable_logwin" | |
e6cc62c6 | 6048 | |
1e6feb95 VZ |
6049 | if test "$enableval" = yes; then |
6050 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6051 | else | |
6052 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6053 | fi | |
e6cc62c6 | 6054 | |
1e6feb95 | 6055 | else |
e6cc62c6 | 6056 | |
1e6feb95 VZ |
6057 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6058 | if test "x$LINE" != x ; then | |
6059 | eval "DEFAULT_$LINE" | |
6060 | else | |
6061 | no_cache=1 | |
6062 | fi | |
6063 | ||
6064 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6065 | |
e6cc62c6 | 6066 | fi; |
1e6feb95 VZ |
6067 | |
6068 | eval "$ac_cv_use_logwin" | |
6069 | if test "$no_cache" != 1; then | |
6070 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6071 | fi | |
6072 | ||
6073 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6074 | echo "$as_me:$LINENO: result: yes" >&5 |
6075 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6076 | else |
e6cc62c6 VS |
6077 | echo "$as_me:$LINENO: result: no" >&5 |
6078 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6079 | fi |
e6cc62c6 | 6080 | |
1e6feb95 | 6081 | |
5005acfe | 6082 | enablestring= |
e6cc62c6 VS |
6083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6084 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6085 | no_cache=0 |
6086 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6087 | if test "${enable_logdialog+set}" = set; then | |
6088 | enableval="$enable_logdialog" | |
e6cc62c6 | 6089 | |
69d27ff7 MB |
6090 | if test "$enableval" = yes; then |
6091 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6092 | else | |
6093 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6094 | fi | |
e6cc62c6 | 6095 | |
69d27ff7 | 6096 | else |
e6cc62c6 | 6097 | |
69d27ff7 MB |
6098 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6099 | if test "x$LINE" != x ; then | |
6100 | eval "DEFAULT_$LINE" | |
6101 | else | |
6102 | no_cache=1 | |
6103 | fi | |
6104 | ||
6105 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6106 | |
e6cc62c6 | 6107 | fi; |
69d27ff7 MB |
6108 | |
6109 | eval "$ac_cv_use_logdialog" | |
6110 | if test "$no_cache" != 1; then | |
6111 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6112 | fi | |
6113 | ||
6114 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6115 | echo "$as_me:$LINENO: result: yes" >&5 |
6116 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6117 | else |
e6cc62c6 VS |
6118 | echo "$as_me:$LINENO: result: no" >&5 |
6119 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6120 | fi |
e6cc62c6 | 6121 | |
8284b0c5 | 6122 | |
52127426 | 6123 | |
5005acfe | 6124 | enablestring= |
e6cc62c6 VS |
6125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6126 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6127 | no_cache=0 |
6128 | # Check whether --enable-postscript or --disable-postscript was given. | |
6129 | if test "${enable_postscript+set}" = set; then | |
6130 | enableval="$enable_postscript" | |
e6cc62c6 | 6131 | |
10f2d63a VZ |
6132 | if test "$enableval" = yes; then |
6133 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6134 | else | |
6135 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6136 | fi | |
e6cc62c6 | 6137 | |
10f2d63a | 6138 | else |
e6cc62c6 | 6139 | |
10f2d63a VZ |
6140 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6141 | if test "x$LINE" != x ; then | |
6142 | eval "DEFAULT_$LINE" | |
6143 | else | |
6144 | no_cache=1 | |
6145 | fi | |
6146 | ||
6147 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6148 | |
e6cc62c6 | 6149 | fi; |
10f2d63a VZ |
6150 | |
6151 | eval "$ac_cv_use_postscript" | |
6152 | if test "$no_cache" != 1; then | |
6153 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6154 | fi | |
6155 | ||
6156 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6157 | echo "$as_me:$LINENO: result: yes" >&5 |
6158 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6159 | else |
e6cc62c6 VS |
6160 | echo "$as_me:$LINENO: result: no" >&5 |
6161 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6162 | fi |
e6cc62c6 | 6163 | |
8284b0c5 MB |
6164 | |
6165 | ||
52127426 | 6166 | |
8284b0c5 | 6167 | |
5005acfe | 6168 | enablestring= |
e6cc62c6 VS |
6169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6170 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6171 | no_cache=0 |
3c907f20 VZ |
6172 | # Check whether --enable-prologio or --disable-prologio was given. |
6173 | if test "${enable_prologio+set}" = set; then | |
6174 | enableval="$enable_prologio" | |
e6cc62c6 | 6175 | |
10f2d63a | 6176 | if test "$enableval" = yes; then |
3c907f20 | 6177 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6178 | else |
3c907f20 | 6179 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6180 | fi |
e6cc62c6 | 6181 | |
10f2d63a | 6182 | else |
e6cc62c6 | 6183 | |
3c907f20 | 6184 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6185 | if test "x$LINE" != x ; then |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
3c907f20 | 6191 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6192 | |
e6cc62c6 | 6193 | fi; |
10f2d63a | 6194 | |
3c907f20 | 6195 | eval "$ac_cv_use_prologio" |
10f2d63a | 6196 | if test "$no_cache" != 1; then |
3c907f20 | 6197 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6198 | fi |
6199 | ||
3c907f20 | 6200 | if test "$wxUSE_PROLOGIO" = 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 | 6208 | |
5005acfe | 6209 | enablestring= |
e6cc62c6 VS |
6210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6211 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6212 | no_cache=0 |
3c907f20 VZ |
6213 | # Check whether --enable-resources or --disable-resources was given. |
6214 | if test "${enable_resources+set}" = set; then | |
6215 | enableval="$enable_resources" | |
e6cc62c6 | 6216 | |
10f2d63a | 6217 | if test "$enableval" = yes; then |
3c907f20 | 6218 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6219 | else |
3c907f20 | 6220 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6221 | fi |
e6cc62c6 | 6222 | |
10f2d63a | 6223 | else |
e6cc62c6 | 6224 | |
3c907f20 | 6225 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6226 | if test "x$LINE" != x ; then |
6227 | eval "DEFAULT_$LINE" | |
6228 | else | |
6229 | no_cache=1 | |
6230 | fi | |
6231 | ||
3c907f20 | 6232 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6233 | |
e6cc62c6 | 6234 | fi; |
10f2d63a | 6235 | |
3c907f20 | 6236 | eval "$ac_cv_use_resources" |
10f2d63a | 6237 | if test "$no_cache" != 1; then |
3c907f20 | 6238 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6239 | fi |
6240 | ||
3c907f20 | 6241 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6242 | echo "$as_me:$LINENO: result: yes" >&5 |
6243 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6244 | else |
e6cc62c6 VS |
6245 | echo "$as_me:$LINENO: result: no" >&5 |
6246 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6247 | fi |
e6cc62c6 | 6248 | |
8284b0c5 MB |
6249 | |
6250 | ||
52127426 | 6251 | |
5005acfe | 6252 | enablestring= |
e6cc62c6 VS |
6253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6254 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6255 | no_cache=0 |
6256 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6257 | if test "${enable_clipboard+set}" = set; then | |
6258 | enableval="$enable_clipboard" | |
e6cc62c6 | 6259 | |
10f2d63a VZ |
6260 | if test "$enableval" = yes; then |
6261 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6262 | else | |
6263 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6264 | fi | |
e6cc62c6 | 6265 | |
10f2d63a | 6266 | else |
e6cc62c6 | 6267 | |
10f2d63a VZ |
6268 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6269 | if test "x$LINE" != x ; then | |
6270 | eval "DEFAULT_$LINE" | |
6271 | else | |
6272 | no_cache=1 | |
6273 | fi | |
6274 | ||
6275 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6276 | |
e6cc62c6 | 6277 | fi; |
10f2d63a VZ |
6278 | |
6279 | eval "$ac_cv_use_clipboard" | |
6280 | if test "$no_cache" != 1; then | |
6281 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6282 | fi | |
6283 | ||
6284 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6285 | echo "$as_me:$LINENO: result: yes" >&5 |
6286 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6287 | else |
e6cc62c6 VS |
6288 | echo "$as_me:$LINENO: result: no" >&5 |
6289 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6290 | fi |
e6cc62c6 | 6291 | |
10f2d63a | 6292 | |
5005acfe | 6293 | enablestring= |
e6cc62c6 VS |
6294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6295 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6296 | no_cache=0 |
6297 | # Check whether --enable-dnd or --disable-dnd was given. | |
6298 | if test "${enable_dnd+set}" = set; then | |
6299 | enableval="$enable_dnd" | |
e6cc62c6 | 6300 | |
10f2d63a VZ |
6301 | if test "$enableval" = yes; then |
6302 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6303 | else | |
6304 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6305 | fi | |
e6cc62c6 | 6306 | |
10f2d63a | 6307 | else |
e6cc62c6 | 6308 | |
10f2d63a VZ |
6309 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6310 | if test "x$LINE" != x ; then | |
6311 | eval "DEFAULT_$LINE" | |
6312 | else | |
6313 | no_cache=1 | |
6314 | fi | |
6315 | ||
6316 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6317 | |
e6cc62c6 | 6318 | fi; |
10f2d63a VZ |
6319 | |
6320 | eval "$ac_cv_use_dnd" | |
6321 | if test "$no_cache" != 1; then | |
6322 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6323 | fi | |
6324 | ||
6325 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6326 | echo "$as_me:$LINENO: result: yes" >&5 |
6327 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6328 | else |
e6cc62c6 VS |
6329 | echo "$as_me:$LINENO: result: no" >&5 |
6330 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6331 | fi |
e6cc62c6 | 6332 | |
10f2d63a | 6333 | |
5005acfe | 6334 | enablestring= |
e6cc62c6 VS |
6335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6336 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6337 | no_cache=0 |
6338 | # Check whether --enable-metafile or --disable-metafile was given. | |
6339 | if test "${enable_metafile+set}" = set; then | |
6340 | enableval="$enable_metafile" | |
e6cc62c6 | 6341 | |
b64f0a5f RL |
6342 | if test "$enableval" = yes; then |
6343 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6344 | else | |
6345 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6346 | fi | |
e6cc62c6 | 6347 | |
b64f0a5f | 6348 | else |
e6cc62c6 | 6349 | |
b64f0a5f RL |
6350 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6351 | if test "x$LINE" != x ; then | |
6352 | eval "DEFAULT_$LINE" | |
6353 | else | |
6354 | no_cache=1 | |
6355 | fi | |
6356 | ||
6357 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6358 | |
e6cc62c6 | 6359 | fi; |
b64f0a5f RL |
6360 | |
6361 | eval "$ac_cv_use_metafile" | |
6362 | if test "$no_cache" != 1; then | |
6363 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6364 | fi | |
6365 | ||
6366 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6367 | echo "$as_me:$LINENO: result: yes" >&5 |
6368 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6369 | else |
e6cc62c6 VS |
6370 | echo "$as_me:$LINENO: result: no" >&5 |
6371 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6372 | fi |
e6cc62c6 | 6373 | |
52127426 | 6374 | |
8284b0c5 | 6375 | |
52127426 | 6376 | |
8284b0c5 | 6377 | |
5005acfe | 6378 | enablestring= |
e6cc62c6 VS |
6379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6380 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6381 | no_cache=0 |
6382 | # Check whether --enable-controls or --disable-controls was given. | |
6383 | if test "${enable_controls+set}" = set; then | |
6384 | enableval="$enable_controls" | |
e6cc62c6 | 6385 | |
10f2d63a VZ |
6386 | if test "$enableval" = yes; then |
6387 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6388 | else | |
6389 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6390 | fi | |
e6cc62c6 | 6391 | |
10f2d63a | 6392 | else |
e6cc62c6 | 6393 | |
10f2d63a VZ |
6394 | LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6402 | |
e6cc62c6 | 6403 | fi; |
10f2d63a VZ |
6404 | |
6405 | eval "$ac_cv_use_controls" | |
6406 | if test "$no_cache" != 1; then | |
6407 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6408 | fi | |
6409 | ||
6410 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6411 | echo "$as_me:$LINENO: result: yes" >&5 |
6412 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6413 | else |
e6cc62c6 VS |
6414 | echo "$as_me:$LINENO: result: no" >&5 |
6415 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6416 | fi |
e6cc62c6 | 6417 | |
10f2d63a VZ |
6418 | |
6419 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6420 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6421 | DEFAULT_wxUSE_BMPBUTTON=yes |
6422 | DEFAULT_wxUSE_BUTTON=yes | |
6423 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6424 | DEFAULT_wxUSE_CARET=yes |
6425 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6426 | DEFAULT_wxUSE_CHECKBOX=yes |
6427 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6428 | DEFAULT_wxUSE_CHOICE=yes | |
6429 | DEFAULT_wxUSE_GAUGE=yes | |
6430 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6431 | DEFAULT_wxUSE_IMAGLIST=yes |
6432 | DEFAULT_wxUSE_LISTBOX=yes | |
6433 | DEFAULT_wxUSE_LISTCTRL=yes | |
6434 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6435 | DEFAULT_wxUSE_RADIOBOX=yes | |
6436 | DEFAULT_wxUSE_RADIOBTN=yes | |
6437 | DEFAULT_wxUSE_SASH=yes | |
6438 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6439 | DEFAULT_wxUSE_SLIDER=yes | |
6440 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6441 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6442 | DEFAULT_wxUSE_SPLITTER=yes |
6443 | DEFAULT_wxUSE_STATBMP=yes | |
6444 | DEFAULT_wxUSE_STATBOX=yes | |
6445 | DEFAULT_wxUSE_STATLINE=yes | |
6446 | DEFAULT_wxUSE_STATUSBAR=yes | |
6447 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6448 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6449 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6450 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6451 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6452 | DEFAULT_wxUSE_TOOLTIPS=yes |
6453 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6454 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6455 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6456 | elif test "$wxUSE_CONTROLS" = "no"; then |
6457 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6458 | DEFAULT_wxUSE_BMPBUTTON=no |
6459 | DEFAULT_wxUSE_BUTTON=no | |
6460 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6461 | DEFAULT_wxUSE_CARET=no |
6462 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6463 | DEFAULT_wxUSE_CHECKBOX=no |
6464 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6465 | DEFAULT_wxUSE_CHOICE=no | |
6466 | DEFAULT_wxUSE_GAUGE=no | |
6467 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6468 | DEFAULT_wxUSE_IMAGLIST=no |
6469 | DEFAULT_wxUSE_LISTBOX=no | |
6470 | DEFAULT_wxUSE_LISTCTRL=no | |
6471 | DEFAULT_wxUSE_NOTEBOOK=no | |
6472 | DEFAULT_wxUSE_RADIOBOX=no | |
6473 | DEFAULT_wxUSE_RADIOBTN=no | |
6474 | DEFAULT_wxUSE_SASH=no | |
6475 | DEFAULT_wxUSE_SCROLLBAR=no | |
6476 | DEFAULT_wxUSE_SLIDER=no | |
6477 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6478 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6479 | DEFAULT_wxUSE_SPLITTER=no |
6480 | DEFAULT_wxUSE_STATBMP=no | |
6481 | DEFAULT_wxUSE_STATBOX=no | |
6482 | DEFAULT_wxUSE_STATLINE=no | |
6483 | DEFAULT_wxUSE_STATUSBAR=no | |
6484 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6485 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6486 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6487 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6488 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6489 | DEFAULT_wxUSE_TOOLTIPS=no |
6490 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6491 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6492 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6493 | fi |
6494 | ||
ac0c4cc3 DE |
6495 | ## FIXME: This is a blatant hack |
6496 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6497 | wxUSE_PRINTING_ARCHITECTURE=no | |
6498 | wxUSE_HELP=no | |
6499 | wxUSE_CLIPBOARD=no | |
6500 | wxUSE_DRAG_AND_DROP=no | |
6501 | wxUSE_DATAOBJ=no | |
8b389fab DE |
6502 | # Generic notebook requires tab dialog |
6503 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6504 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 DE |
6505 | DEFAULT_wxUSE_GAUGE=no |
6506 | DEFAULT_wxUSE_SCROLLBAR=no | |
ac0c4cc3 DE |
6507 | DEFAULT_wxUSE_COMBOBOX=no |
6508 | DEFAULT_wxUSE_CALCTRL=no | |
6509 | DEFAULT_wxUSE_SPINBTN=no | |
6510 | DEFAULT_wxUSE_SPINCTRL=no | |
6511 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 DE |
6512 | DEFAULT_wxUSE_DRAGIMAGE=no |
6513 | DEFAULT_wxUSE_FINDREPLDLG=no | |
6514 | DEFAULT_wxUSE_FONTDLG=no | |
6515 | DEFAULT_wxUSE_GRID=no | |
ac0c4cc3 DE |
6516 | DEFAULT_wxUSE_NUMBERDLG=no |
6517 | DEFAULT_wxUSE_PROGRESSDLG=no | |
ac0c4cc3 DE |
6518 | DEFAULT_wxUSE_SASH=no |
6519 | DEFAULT_wxUSE_SPLITTER=no | |
6520 | DEFAULT_wxUSE_WIZARDDLG=no | |
6521 | DEFAULT_wxUSE_SPLITTER=no | |
6522 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
ac0c4cc3 DE |
6523 | fi |
6524 | ||
8284b0c5 | 6525 | |
5005acfe | 6526 | enablestring= |
e6cc62c6 VS |
6527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6528 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6529 | no_cache=0 |
6530 | # Check whether --enable-accel or --disable-accel was given. | |
6531 | if test "${enable_accel+set}" = set; then | |
6532 | enableval="$enable_accel" | |
e6cc62c6 | 6533 | |
10f2d63a VZ |
6534 | if test "$enableval" = yes; then |
6535 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6536 | else | |
6537 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6538 | fi | |
e6cc62c6 | 6539 | |
10f2d63a | 6540 | else |
e6cc62c6 | 6541 | |
10f2d63a VZ |
6542 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6543 | if test "x$LINE" != x ; then | |
6544 | eval "DEFAULT_$LINE" | |
6545 | else | |
6546 | no_cache=1 | |
6547 | fi | |
6548 | ||
6549 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6550 | |
e6cc62c6 | 6551 | fi; |
10f2d63a VZ |
6552 | |
6553 | eval "$ac_cv_use_accel" | |
6554 | if test "$no_cache" != 1; then | |
6555 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6556 | fi | |
6557 | ||
6558 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6559 | echo "$as_me:$LINENO: result: yes" >&5 |
6560 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6561 | else |
e6cc62c6 VS |
6562 | echo "$as_me:$LINENO: result: no" >&5 |
6563 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6564 | fi |
e6cc62c6 | 6565 | |
10f2d63a | 6566 | |
5005acfe | 6567 | enablestring= |
e6cc62c6 VS |
6568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6569 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6570 | no_cache=0 |
1e6feb95 VZ |
6571 | # Check whether --enable-button or --disable-button was given. |
6572 | if test "${enable_button+set}" = set; then | |
6573 | enableval="$enable_button" | |
e6cc62c6 | 6574 | |
10f2d63a | 6575 | if test "$enableval" = yes; then |
1e6feb95 | 6576 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6577 | else |
1e6feb95 | 6578 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6579 | fi |
e6cc62c6 | 6580 | |
10f2d63a | 6581 | else |
e6cc62c6 | 6582 | |
1e6feb95 | 6583 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6584 | if test "x$LINE" != x ; then |
6585 | eval "DEFAULT_$LINE" | |
6586 | else | |
6587 | no_cache=1 | |
6588 | fi | |
6589 | ||
1e6feb95 | 6590 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6591 | |
e6cc62c6 | 6592 | fi; |
10f2d63a | 6593 | |
1e6feb95 | 6594 | eval "$ac_cv_use_button" |
10f2d63a | 6595 | if test "$no_cache" != 1; then |
1e6feb95 | 6596 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6597 | fi |
6598 | ||
1e6feb95 | 6599 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6600 | echo "$as_me:$LINENO: result: yes" >&5 |
6601 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6602 | else |
e6cc62c6 VS |
6603 | echo "$as_me:$LINENO: result: no" >&5 |
6604 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6605 | fi |
e6cc62c6 | 6606 | |
10f2d63a | 6607 | |
5005acfe | 6608 | enablestring= |
e6cc62c6 VS |
6609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6610 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6611 | no_cache=0 |
6612 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6613 | if test "${enable_bmpbutton+set}" = set; then | |
6614 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6615 | |
10f2d63a VZ |
6616 | if test "$enableval" = yes; then |
6617 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6618 | else | |
6619 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6620 | fi | |
e6cc62c6 | 6621 | |
10f2d63a | 6622 | else |
e6cc62c6 | 6623 | |
10f2d63a VZ |
6624 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6625 | if test "x$LINE" != x ; then | |
6626 | eval "DEFAULT_$LINE" | |
6627 | else | |
6628 | no_cache=1 | |
6629 | fi | |
6630 | ||
6631 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6632 | |
e6cc62c6 | 6633 | fi; |
10f2d63a VZ |
6634 | |
6635 | eval "$ac_cv_use_bmpbutton" | |
6636 | if test "$no_cache" != 1; then | |
6637 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6638 | fi | |
6639 | ||
6640 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6641 | echo "$as_me:$LINENO: result: yes" >&5 |
6642 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6643 | else |
e6cc62c6 VS |
6644 | echo "$as_me:$LINENO: result: no" >&5 |
6645 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6646 | fi |
e6cc62c6 | 6647 | |
10f2d63a | 6648 | |
5005acfe | 6649 | enablestring= |
e6cc62c6 VS |
6650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6651 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6652 | no_cache=0 |
6653 | # Check whether --enable-calendar or --disable-calendar was given. | |
6654 | if test "${enable_calendar+set}" = set; then | |
6655 | enableval="$enable_calendar" | |
e6cc62c6 | 6656 | |
1e6feb95 VZ |
6657 | if test "$enableval" = yes; then |
6658 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6659 | else | |
6660 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6661 | fi | |
e6cc62c6 | 6662 | |
1e6feb95 | 6663 | else |
e6cc62c6 | 6664 | |
1e6feb95 VZ |
6665 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6666 | if test "x$LINE" != x ; then | |
6667 | eval "DEFAULT_$LINE" | |
6668 | else | |
6669 | no_cache=1 | |
6670 | fi | |
6671 | ||
6672 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6673 | |
e6cc62c6 | 6674 | fi; |
1e6feb95 VZ |
6675 | |
6676 | eval "$ac_cv_use_calendar" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6682 | echo "$as_me:$LINENO: result: yes" >&5 |
6683 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6684 | else |
e6cc62c6 VS |
6685 | echo "$as_me:$LINENO: result: no" >&5 |
6686 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6687 | fi |
e6cc62c6 | 6688 | |
1e6feb95 | 6689 | |
5005acfe | 6690 | enablestring= |
e6cc62c6 VS |
6691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6692 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6693 | no_cache=0 |
6694 | # Check whether --enable-caret or --disable-caret was given. | |
6695 | if test "${enable_caret+set}" = set; then | |
6696 | enableval="$enable_caret" | |
e6cc62c6 | 6697 | |
1e6feb95 VZ |
6698 | if test "$enableval" = yes; then |
6699 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6700 | else | |
6701 | ac_cv_use_caret='wxUSE_CARET=no' | |
6702 | fi | |
e6cc62c6 | 6703 | |
1e6feb95 | 6704 | else |
e6cc62c6 | 6705 | |
1e6feb95 VZ |
6706 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6707 | if test "x$LINE" != x ; then | |
6708 | eval "DEFAULT_$LINE" | |
6709 | else | |
6710 | no_cache=1 | |
6711 | fi | |
6712 | ||
6713 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6714 | |
e6cc62c6 | 6715 | fi; |
1e6feb95 VZ |
6716 | |
6717 | eval "$ac_cv_use_caret" | |
6718 | if test "$no_cache" != 1; then | |
6719 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6720 | fi | |
6721 | ||
6722 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6723 | echo "$as_me:$LINENO: result: yes" >&5 |
6724 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6725 | else |
e6cc62c6 VS |
6726 | echo "$as_me:$LINENO: result: no" >&5 |
6727 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6728 | fi |
e6cc62c6 | 6729 | |
1e6feb95 | 6730 | |
5005acfe | 6731 | enablestring= |
e6cc62c6 VS |
6732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6733 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6734 | no_cache=0 |
6735 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6736 | if test "${enable_checkbox+set}" = set; then | |
6737 | enableval="$enable_checkbox" | |
e6cc62c6 | 6738 | |
10f2d63a VZ |
6739 | if test "$enableval" = yes; then |
6740 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6741 | else | |
6742 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6743 | fi | |
e6cc62c6 | 6744 | |
10f2d63a | 6745 | else |
e6cc62c6 | 6746 | |
10f2d63a VZ |
6747 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6748 | if test "x$LINE" != x ; then | |
6749 | eval "DEFAULT_$LINE" | |
6750 | else | |
6751 | no_cache=1 | |
6752 | fi | |
6753 | ||
6754 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6755 | |
e6cc62c6 | 6756 | fi; |
10f2d63a VZ |
6757 | |
6758 | eval "$ac_cv_use_checkbox" | |
6759 | if test "$no_cache" != 1; then | |
6760 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6761 | fi | |
6762 | ||
6763 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6764 | echo "$as_me:$LINENO: result: yes" >&5 |
6765 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6766 | else |
e6cc62c6 VS |
6767 | echo "$as_me:$LINENO: result: no" >&5 |
6768 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6769 | fi |
e6cc62c6 | 6770 | |
10f2d63a | 6771 | |
5005acfe | 6772 | enablestring= |
e6cc62c6 VS |
6773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6774 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6775 | no_cache=0 |
6776 | # Check whether --enable-checklst or --disable-checklst was given. | |
6777 | if test "${enable_checklst+set}" = set; then | |
6778 | enableval="$enable_checklst" | |
e6cc62c6 | 6779 | |
10f2d63a VZ |
6780 | if test "$enableval" = yes; then |
6781 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6782 | else | |
6783 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6784 | fi | |
e6cc62c6 | 6785 | |
10f2d63a | 6786 | else |
e6cc62c6 | 6787 | |
10f2d63a VZ |
6788 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6789 | if test "x$LINE" != x ; then | |
6790 | eval "DEFAULT_$LINE" | |
6791 | else | |
6792 | no_cache=1 | |
6793 | fi | |
6794 | ||
6795 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6796 | |
e6cc62c6 | 6797 | fi; |
10f2d63a VZ |
6798 | |
6799 | eval "$ac_cv_use_checklst" | |
6800 | if test "$no_cache" != 1; then | |
6801 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6802 | fi | |
6803 | ||
6804 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6805 | echo "$as_me:$LINENO: result: yes" >&5 |
6806 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6807 | else |
e6cc62c6 VS |
6808 | echo "$as_me:$LINENO: result: no" >&5 |
6809 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6810 | fi |
e6cc62c6 | 6811 | |
10f2d63a | 6812 | |
5005acfe | 6813 | enablestring= |
e6cc62c6 VS |
6814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6815 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6816 | no_cache=0 |
6817 | # Check whether --enable-choice or --disable-choice was given. | |
6818 | if test "${enable_choice+set}" = set; then | |
6819 | enableval="$enable_choice" | |
e6cc62c6 | 6820 | |
10f2d63a VZ |
6821 | if test "$enableval" = yes; then |
6822 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6823 | else | |
6824 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6825 | fi | |
e6cc62c6 | 6826 | |
10f2d63a | 6827 | else |
e6cc62c6 | 6828 | |
10f2d63a VZ |
6829 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6830 | if test "x$LINE" != x ; then | |
6831 | eval "DEFAULT_$LINE" | |
6832 | else | |
6833 | no_cache=1 | |
6834 | fi | |
6835 | ||
6836 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6837 | |
e6cc62c6 | 6838 | fi; |
10f2d63a VZ |
6839 | |
6840 | eval "$ac_cv_use_choice" | |
6841 | if test "$no_cache" != 1; then | |
6842 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6843 | fi | |
6844 | ||
6845 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6846 | echo "$as_me:$LINENO: result: yes" >&5 |
6847 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6848 | else |
e6cc62c6 VS |
6849 | echo "$as_me:$LINENO: result: no" >&5 |
6850 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6851 | fi |
e6cc62c6 | 6852 | |
10f2d63a | 6853 | |
5005acfe | 6854 | enablestring= |
e6cc62c6 VS |
6855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6856 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6857 | no_cache=0 |
6858 | # Check whether --enable-combobox or --disable-combobox was given. | |
6859 | if test "${enable_combobox+set}" = set; then | |
6860 | enableval="$enable_combobox" | |
e6cc62c6 | 6861 | |
10f2d63a VZ |
6862 | if test "$enableval" = yes; then |
6863 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6864 | else | |
6865 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6866 | fi | |
e6cc62c6 | 6867 | |
10f2d63a | 6868 | else |
e6cc62c6 | 6869 | |
10f2d63a VZ |
6870 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6871 | if test "x$LINE" != x ; then | |
6872 | eval "DEFAULT_$LINE" | |
6873 | else | |
6874 | no_cache=1 | |
6875 | fi | |
6876 | ||
6877 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6878 | |
e6cc62c6 | 6879 | fi; |
10f2d63a VZ |
6880 | |
6881 | eval "$ac_cv_use_combobox" | |
6882 | if test "$no_cache" != 1; then | |
6883 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6884 | fi | |
6885 | ||
6886 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6887 | echo "$as_me:$LINENO: result: yes" >&5 |
6888 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6889 | else |
e6cc62c6 VS |
6890 | echo "$as_me:$LINENO: result: no" >&5 |
6891 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6892 | fi |
e6cc62c6 | 6893 | |
10f2d63a | 6894 | |
da494b40 | 6895 | enablestring= |
e6cc62c6 VS |
6896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6897 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6898 | no_cache=0 |
6899 | # Check whether --enable-display or --disable-display was given. | |
6900 | if test "${enable_display+set}" = set; then | |
6901 | enableval="$enable_display" | |
e6cc62c6 | 6902 | |
da494b40 MB |
6903 | if test "$enableval" = yes; then |
6904 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6905 | else | |
6906 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6907 | fi | |
e6cc62c6 | 6908 | |
da494b40 | 6909 | else |
e6cc62c6 | 6910 | |
da494b40 MB |
6911 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6912 | if test "x$LINE" != x ; then | |
6913 | eval "DEFAULT_$LINE" | |
6914 | else | |
6915 | no_cache=1 | |
6916 | fi | |
6917 | ||
6918 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6919 | |
e6cc62c6 | 6920 | fi; |
da494b40 MB |
6921 | |
6922 | eval "$ac_cv_use_display" | |
6923 | if test "$no_cache" != 1; then | |
6924 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6925 | fi | |
6926 | ||
6927 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6928 | echo "$as_me:$LINENO: result: yes" >&5 |
6929 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6930 | else |
e6cc62c6 VS |
6931 | echo "$as_me:$LINENO: result: no" >&5 |
6932 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6933 | fi |
e6cc62c6 | 6934 | |
da494b40 | 6935 | |
5005acfe | 6936 | enablestring= |
e6cc62c6 VS |
6937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6938 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6939 | no_cache=0 |
6940 | # Check whether --enable-gauge or --disable-gauge was given. | |
6941 | if test "${enable_gauge+set}" = set; then | |
6942 | enableval="$enable_gauge" | |
e6cc62c6 | 6943 | |
10f2d63a VZ |
6944 | if test "$enableval" = yes; then |
6945 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6946 | else | |
6947 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6948 | fi | |
e6cc62c6 | 6949 | |
10f2d63a | 6950 | else |
e6cc62c6 | 6951 | |
10f2d63a VZ |
6952 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6953 | if test "x$LINE" != x ; then | |
6954 | eval "DEFAULT_$LINE" | |
6955 | else | |
6956 | no_cache=1 | |
6957 | fi | |
6958 | ||
6959 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 6960 | |
e6cc62c6 | 6961 | fi; |
10f2d63a VZ |
6962 | |
6963 | eval "$ac_cv_use_gauge" | |
6964 | if test "$no_cache" != 1; then | |
6965 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6966 | fi | |
6967 | ||
6968 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
6969 | echo "$as_me:$LINENO: result: yes" >&5 |
6970 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6971 | else |
e6cc62c6 VS |
6972 | echo "$as_me:$LINENO: result: no" >&5 |
6973 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6974 | fi |
e6cc62c6 | 6975 | |
10f2d63a | 6976 | |
5005acfe | 6977 | enablestring= |
e6cc62c6 VS |
6978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
6979 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
6980 | no_cache=0 |
6981 | # Check whether --enable-grid or --disable-grid was given. | |
6982 | if test "${enable_grid+set}" = set; then | |
6983 | enableval="$enable_grid" | |
e6cc62c6 | 6984 | |
10f2d63a VZ |
6985 | if test "$enableval" = yes; then |
6986 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6987 | else | |
6988 | ac_cv_use_grid='wxUSE_GRID=no' | |
6989 | fi | |
e6cc62c6 | 6990 | |
10f2d63a | 6991 | else |
e6cc62c6 | 6992 | |
10f2d63a VZ |
6993 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6994 | if test "x$LINE" != x ; then | |
6995 | eval "DEFAULT_$LINE" | |
6996 | else | |
6997 | no_cache=1 | |
6998 | fi | |
6999 | ||
7000 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7001 | |
e6cc62c6 | 7002 | fi; |
10f2d63a VZ |
7003 | |
7004 | eval "$ac_cv_use_grid" | |
7005 | if test "$no_cache" != 1; then | |
7006 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7007 | fi | |
7008 | ||
7009 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7010 | echo "$as_me:$LINENO: result: yes" >&5 |
7011 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7012 | else |
e6cc62c6 VS |
7013 | echo "$as_me:$LINENO: result: no" >&5 |
7014 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7015 | fi |
e6cc62c6 | 7016 | |
10f2d63a | 7017 | |
5005acfe | 7018 | enablestring= |
e6cc62c6 VS |
7019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7020 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7021 | no_cache=0 |
7022 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7023 | if test "${enable_imaglist+set}" = set; then | |
7024 | enableval="$enable_imaglist" | |
e6cc62c6 | 7025 | |
10f2d63a VZ |
7026 | if test "$enableval" = yes; then |
7027 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7028 | else | |
7029 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7030 | fi | |
e6cc62c6 | 7031 | |
10f2d63a | 7032 | else |
e6cc62c6 | 7033 | |
10f2d63a VZ |
7034 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7035 | if test "x$LINE" != x ; then | |
7036 | eval "DEFAULT_$LINE" | |
7037 | else | |
7038 | no_cache=1 | |
7039 | fi | |
7040 | ||
7041 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7042 | |
e6cc62c6 | 7043 | fi; |
10f2d63a VZ |
7044 | |
7045 | eval "$ac_cv_use_imaglist" | |
7046 | if test "$no_cache" != 1; then | |
7047 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7048 | fi | |
7049 | ||
7050 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7051 | echo "$as_me:$LINENO: result: yes" >&5 |
7052 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7053 | else |
e6cc62c6 VS |
7054 | echo "$as_me:$LINENO: result: no" >&5 |
7055 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7056 | fi |
e6cc62c6 | 7057 | |
10f2d63a | 7058 | |
5005acfe | 7059 | enablestring= |
e6cc62c6 VS |
7060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7061 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7062 | no_cache=0 |
7063 | # Check whether --enable-listbox or --disable-listbox was given. | |
7064 | if test "${enable_listbox+set}" = set; then | |
7065 | enableval="$enable_listbox" | |
e6cc62c6 | 7066 | |
10f2d63a VZ |
7067 | if test "$enableval" = yes; then |
7068 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7069 | else | |
7070 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7071 | fi | |
e6cc62c6 | 7072 | |
10f2d63a | 7073 | else |
e6cc62c6 | 7074 | |
10f2d63a VZ |
7075 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7076 | if test "x$LINE" != x ; then | |
7077 | eval "DEFAULT_$LINE" | |
7078 | else | |
7079 | no_cache=1 | |
7080 | fi | |
7081 | ||
7082 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7083 | |
e6cc62c6 | 7084 | fi; |
10f2d63a VZ |
7085 | |
7086 | eval "$ac_cv_use_listbox" | |
7087 | if test "$no_cache" != 1; then | |
7088 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7089 | fi | |
7090 | ||
7091 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7092 | echo "$as_me:$LINENO: result: yes" >&5 |
7093 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7094 | else |
e6cc62c6 VS |
7095 | echo "$as_me:$LINENO: result: no" >&5 |
7096 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7097 | fi |
e6cc62c6 | 7098 | |
10f2d63a | 7099 | |
5005acfe | 7100 | enablestring= |
e6cc62c6 VS |
7101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7102 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7103 | no_cache=0 |
7104 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7105 | if test "${enable_listctrl+set}" = set; then | |
7106 | enableval="$enable_listctrl" | |
e6cc62c6 | 7107 | |
10f2d63a VZ |
7108 | if test "$enableval" = yes; then |
7109 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7110 | else | |
7111 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7112 | fi | |
e6cc62c6 | 7113 | |
10f2d63a | 7114 | else |
e6cc62c6 | 7115 | |
10f2d63a VZ |
7116 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7117 | if test "x$LINE" != x ; then | |
7118 | eval "DEFAULT_$LINE" | |
7119 | else | |
7120 | no_cache=1 | |
7121 | fi | |
7122 | ||
7123 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7124 | |
e6cc62c6 | 7125 | fi; |
10f2d63a VZ |
7126 | |
7127 | eval "$ac_cv_use_listctrl" | |
7128 | if test "$no_cache" != 1; then | |
7129 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7130 | fi | |
7131 | ||
7132 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7133 | echo "$as_me:$LINENO: result: yes" >&5 |
7134 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7135 | else |
e6cc62c6 VS |
7136 | echo "$as_me:$LINENO: result: no" >&5 |
7137 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7138 | fi |
e6cc62c6 | 7139 | |
10f2d63a | 7140 | |
5005acfe | 7141 | enablestring= |
e6cc62c6 VS |
7142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7143 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7144 | no_cache=0 |
7145 | # Check whether --enable-notebook or --disable-notebook was given. | |
7146 | if test "${enable_notebook+set}" = set; then | |
7147 | enableval="$enable_notebook" | |
e6cc62c6 | 7148 | |
10f2d63a VZ |
7149 | if test "$enableval" = yes; then |
7150 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7151 | else | |
7152 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7153 | fi | |
e6cc62c6 | 7154 | |
10f2d63a | 7155 | else |
e6cc62c6 | 7156 | |
10f2d63a VZ |
7157 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7158 | if test "x$LINE" != x ; then | |
7159 | eval "DEFAULT_$LINE" | |
7160 | else | |
7161 | no_cache=1 | |
7162 | fi | |
7163 | ||
7164 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7165 | |
e6cc62c6 | 7166 | fi; |
10f2d63a VZ |
7167 | |
7168 | eval "$ac_cv_use_notebook" | |
7169 | if test "$no_cache" != 1; then | |
7170 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7171 | fi | |
7172 | ||
7173 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7174 | echo "$as_me:$LINENO: result: yes" >&5 |
7175 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7176 | else |
e6cc62c6 VS |
7177 | echo "$as_me:$LINENO: result: no" >&5 |
7178 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7179 | fi |
e6cc62c6 | 7180 | |
10f2d63a | 7181 | |
5005acfe | 7182 | enablestring= |
e6cc62c6 VS |
7183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7184 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7185 | no_cache=0 |
7186 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7187 | if test "${enable_radiobox+set}" = set; then | |
7188 | enableval="$enable_radiobox" | |
e6cc62c6 | 7189 | |
10f2d63a VZ |
7190 | if test "$enableval" = yes; then |
7191 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7192 | else | |
7193 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7194 | fi | |
e6cc62c6 | 7195 | |
10f2d63a | 7196 | else |
e6cc62c6 | 7197 | |
10f2d63a VZ |
7198 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7199 | if test "x$LINE" != x ; then | |
7200 | eval "DEFAULT_$LINE" | |
7201 | else | |
7202 | no_cache=1 | |
7203 | fi | |
7204 | ||
7205 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7206 | |
e6cc62c6 | 7207 | fi; |
10f2d63a VZ |
7208 | |
7209 | eval "$ac_cv_use_radiobox" | |
7210 | if test "$no_cache" != 1; then | |
7211 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7212 | fi | |
7213 | ||
7214 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7215 | echo "$as_me:$LINENO: result: yes" >&5 |
7216 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7217 | else |
e6cc62c6 VS |
7218 | echo "$as_me:$LINENO: result: no" >&5 |
7219 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7220 | fi |
e6cc62c6 | 7221 | |
10f2d63a | 7222 | |
5005acfe | 7223 | enablestring= |
e6cc62c6 VS |
7224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7225 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7226 | no_cache=0 |
7227 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7228 | if test "${enable_radiobtn+set}" = set; then | |
7229 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7230 | |
10f2d63a VZ |
7231 | if test "$enableval" = yes; then |
7232 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7233 | else | |
7234 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7235 | fi | |
e6cc62c6 | 7236 | |
10f2d63a | 7237 | else |
e6cc62c6 | 7238 | |
10f2d63a VZ |
7239 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7240 | if test "x$LINE" != x ; then | |
7241 | eval "DEFAULT_$LINE" | |
7242 | else | |
7243 | no_cache=1 | |
7244 | fi | |
7245 | ||
7246 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7247 | |
e6cc62c6 | 7248 | fi; |
10f2d63a VZ |
7249 | |
7250 | eval "$ac_cv_use_radiobtn" | |
7251 | if test "$no_cache" != 1; then | |
7252 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7253 | fi | |
7254 | ||
7255 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7256 | echo "$as_me:$LINENO: result: yes" >&5 |
7257 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7258 | else |
e6cc62c6 VS |
7259 | echo "$as_me:$LINENO: result: no" >&5 |
7260 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7261 | fi |
e6cc62c6 | 7262 | |
10f2d63a | 7263 | |
5005acfe | 7264 | enablestring= |
e6cc62c6 VS |
7265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7266 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7267 | no_cache=0 |
7268 | # Check whether --enable-sash or --disable-sash was given. | |
7269 | if test "${enable_sash+set}" = set; then | |
7270 | enableval="$enable_sash" | |
e6cc62c6 | 7271 | |
10f2d63a VZ |
7272 | if test "$enableval" = yes; then |
7273 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7274 | else | |
7275 | ac_cv_use_sash='wxUSE_SASH=no' | |
7276 | fi | |
e6cc62c6 | 7277 | |
10f2d63a | 7278 | else |
e6cc62c6 | 7279 | |
10f2d63a VZ |
7280 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7281 | if test "x$LINE" != x ; then | |
7282 | eval "DEFAULT_$LINE" | |
7283 | else | |
7284 | no_cache=1 | |
7285 | fi | |
7286 | ||
7287 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7288 | |
e6cc62c6 | 7289 | fi; |
10f2d63a VZ |
7290 | |
7291 | eval "$ac_cv_use_sash" | |
7292 | if test "$no_cache" != 1; then | |
7293 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7294 | fi | |
7295 | ||
7296 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7297 | echo "$as_me:$LINENO: result: yes" >&5 |
7298 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7299 | else |
e6cc62c6 VS |
7300 | echo "$as_me:$LINENO: result: no" >&5 |
7301 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7302 | fi |
e6cc62c6 | 7303 | |
10f2d63a | 7304 | |
5005acfe | 7305 | enablestring= |
e6cc62c6 VS |
7306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7307 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7308 | no_cache=0 |
7309 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7310 | if test "${enable_scrollbar+set}" = set; then | |
7311 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7312 | |
10f2d63a VZ |
7313 | if test "$enableval" = yes; then |
7314 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7315 | else | |
7316 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7317 | fi | |
e6cc62c6 | 7318 | |
10f2d63a | 7319 | else |
e6cc62c6 | 7320 | |
10f2d63a VZ |
7321 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7322 | if test "x$LINE" != x ; then | |
7323 | eval "DEFAULT_$LINE" | |
7324 | else | |
7325 | no_cache=1 | |
7326 | fi | |
7327 | ||
7328 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7329 | |
e6cc62c6 | 7330 | fi; |
10f2d63a VZ |
7331 | |
7332 | eval "$ac_cv_use_scrollbar" | |
7333 | if test "$no_cache" != 1; then | |
7334 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7335 | fi | |
7336 | ||
7337 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7338 | echo "$as_me:$LINENO: result: yes" >&5 |
7339 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7340 | else |
e6cc62c6 VS |
7341 | echo "$as_me:$LINENO: result: no" >&5 |
7342 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7343 | fi |
e6cc62c6 | 7344 | |
10f2d63a | 7345 | |
5005acfe | 7346 | enablestring= |
e6cc62c6 VS |
7347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7348 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7349 | no_cache=0 |
7350 | # Check whether --enable-slider or --disable-slider was given. | |
7351 | if test "${enable_slider+set}" = set; then | |
7352 | enableval="$enable_slider" | |
e6cc62c6 | 7353 | |
10f2d63a VZ |
7354 | if test "$enableval" = yes; then |
7355 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7356 | else | |
7357 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7358 | fi | |
e6cc62c6 | 7359 | |
10f2d63a | 7360 | else |
e6cc62c6 | 7361 | |
10f2d63a VZ |
7362 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7363 | if test "x$LINE" != x ; then | |
7364 | eval "DEFAULT_$LINE" | |
7365 | else | |
7366 | no_cache=1 | |
7367 | fi | |
7368 | ||
7369 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7370 | |
e6cc62c6 | 7371 | fi; |
10f2d63a VZ |
7372 | |
7373 | eval "$ac_cv_use_slider" | |
7374 | if test "$no_cache" != 1; then | |
7375 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7376 | fi | |
7377 | ||
7378 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7379 | echo "$as_me:$LINENO: result: yes" >&5 |
7380 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7381 | else |
e6cc62c6 VS |
7382 | echo "$as_me:$LINENO: result: no" >&5 |
7383 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7384 | fi |
e6cc62c6 | 7385 | |
10f2d63a | 7386 | |
5005acfe | 7387 | enablestring= |
e6cc62c6 VS |
7388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7389 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7390 | no_cache=0 |
7391 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7392 | if test "${enable_spinbtn+set}" = set; then | |
7393 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7394 | |
10f2d63a VZ |
7395 | if test "$enableval" = yes; then |
7396 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7397 | else | |
7398 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7399 | fi | |
e6cc62c6 | 7400 | |
10f2d63a | 7401 | else |
e6cc62c6 | 7402 | |
10f2d63a VZ |
7403 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7404 | if test "x$LINE" != x ; then | |
7405 | eval "DEFAULT_$LINE" | |
7406 | else | |
7407 | no_cache=1 | |
7408 | fi | |
7409 | ||
7410 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7411 | |
e6cc62c6 | 7412 | fi; |
10f2d63a VZ |
7413 | |
7414 | eval "$ac_cv_use_spinbtn" | |
7415 | if test "$no_cache" != 1; then | |
7416 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7417 | fi | |
7418 | ||
7419 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7420 | echo "$as_me:$LINENO: result: yes" >&5 |
7421 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7422 | else |
e6cc62c6 VS |
7423 | echo "$as_me:$LINENO: result: no" >&5 |
7424 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7425 | fi |
e6cc62c6 | 7426 | |
10f2d63a | 7427 | |
5005acfe | 7428 | enablestring= |
e6cc62c6 VS |
7429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7430 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7431 | no_cache=0 |
7432 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7433 | if test "${enable_spinctrl+set}" = set; then | |
7434 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7435 | |
56cfaa52 RR |
7436 | if test "$enableval" = yes; then |
7437 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7438 | else | |
7439 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7440 | fi | |
e6cc62c6 | 7441 | |
56cfaa52 | 7442 | else |
e6cc62c6 | 7443 | |
56cfaa52 RR |
7444 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7445 | if test "x$LINE" != x ; then | |
7446 | eval "DEFAULT_$LINE" | |
7447 | else | |
7448 | no_cache=1 | |
7449 | fi | |
7450 | ||
7451 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7452 | |
e6cc62c6 | 7453 | fi; |
56cfaa52 RR |
7454 | |
7455 | eval "$ac_cv_use_spinctrl" | |
7456 | if test "$no_cache" != 1; then | |
7457 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7458 | fi | |
7459 | ||
7460 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7461 | echo "$as_me:$LINENO: result: yes" >&5 |
7462 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7463 | else |
e6cc62c6 VS |
7464 | echo "$as_me:$LINENO: result: no" >&5 |
7465 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7466 | fi |
e6cc62c6 | 7467 | |
56cfaa52 | 7468 | |
5005acfe | 7469 | enablestring= |
e6cc62c6 VS |
7470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7471 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7472 | no_cache=0 |
7473 | # Check whether --enable-splitter or --disable-splitter was given. | |
7474 | if test "${enable_splitter+set}" = set; then | |
7475 | enableval="$enable_splitter" | |
e6cc62c6 | 7476 | |
10f2d63a VZ |
7477 | if test "$enableval" = yes; then |
7478 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7479 | else | |
7480 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7481 | fi | |
e6cc62c6 | 7482 | |
10f2d63a | 7483 | else |
e6cc62c6 | 7484 | |
10f2d63a VZ |
7485 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7486 | if test "x$LINE" != x ; then | |
7487 | eval "DEFAULT_$LINE" | |
7488 | else | |
7489 | no_cache=1 | |
7490 | fi | |
7491 | ||
7492 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7493 | |
e6cc62c6 | 7494 | fi; |
10f2d63a VZ |
7495 | |
7496 | eval "$ac_cv_use_splitter" | |
7497 | if test "$no_cache" != 1; then | |
7498 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7499 | fi | |
7500 | ||
7501 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7502 | echo "$as_me:$LINENO: result: yes" >&5 |
7503 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7504 | else |
e6cc62c6 VS |
7505 | echo "$as_me:$LINENO: result: no" >&5 |
7506 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7507 | fi |
e6cc62c6 | 7508 | |
10f2d63a | 7509 | |
5005acfe | 7510 | enablestring= |
e6cc62c6 VS |
7511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7512 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7513 | no_cache=0 |
7514 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7515 | if test "${enable_statbmp+set}" = set; then | |
7516 | enableval="$enable_statbmp" | |
e6cc62c6 | 7517 | |
10f2d63a VZ |
7518 | if test "$enableval" = yes; then |
7519 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7520 | else | |
7521 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7522 | fi | |
e6cc62c6 | 7523 | |
10f2d63a | 7524 | else |
e6cc62c6 | 7525 | |
10f2d63a VZ |
7526 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7527 | if test "x$LINE" != x ; then | |
7528 | eval "DEFAULT_$LINE" | |
7529 | else | |
7530 | no_cache=1 | |
7531 | fi | |
7532 | ||
7533 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7534 | |
e6cc62c6 | 7535 | fi; |
10f2d63a VZ |
7536 | |
7537 | eval "$ac_cv_use_statbmp" | |
7538 | if test "$no_cache" != 1; then | |
7539 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7540 | fi | |
7541 | ||
7542 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7543 | echo "$as_me:$LINENO: result: yes" >&5 |
7544 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7545 | else |
e6cc62c6 VS |
7546 | echo "$as_me:$LINENO: result: no" >&5 |
7547 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7548 | fi |
e6cc62c6 | 7549 | |
10f2d63a | 7550 | |
5005acfe | 7551 | enablestring= |
e6cc62c6 VS |
7552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7553 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7554 | no_cache=0 |
7555 | # Check whether --enable-statbox or --disable-statbox was given. | |
7556 | if test "${enable_statbox+set}" = set; then | |
7557 | enableval="$enable_statbox" | |
e6cc62c6 | 7558 | |
10f2d63a VZ |
7559 | if test "$enableval" = yes; then |
7560 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7561 | else | |
7562 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7563 | fi | |
e6cc62c6 | 7564 | |
10f2d63a | 7565 | else |
e6cc62c6 | 7566 | |
10f2d63a VZ |
7567 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7568 | if test "x$LINE" != x ; then | |
7569 | eval "DEFAULT_$LINE" | |
7570 | else | |
7571 | no_cache=1 | |
7572 | fi | |
7573 | ||
7574 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7575 | |
e6cc62c6 | 7576 | fi; |
10f2d63a VZ |
7577 | |
7578 | eval "$ac_cv_use_statbox" | |
7579 | if test "$no_cache" != 1; then | |
7580 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7581 | fi | |
7582 | ||
7583 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7584 | echo "$as_me:$LINENO: result: yes" >&5 |
7585 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7586 | else |
e6cc62c6 VS |
7587 | echo "$as_me:$LINENO: result: no" >&5 |
7588 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7589 | fi |
e6cc62c6 | 7590 | |
10f2d63a | 7591 | |
5005acfe | 7592 | enablestring= |
e6cc62c6 VS |
7593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7594 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7595 | no_cache=0 |
7596 | # Check whether --enable-statline or --disable-statline was given. | |
7597 | if test "${enable_statline+set}" = set; then | |
7598 | enableval="$enable_statline" | |
e6cc62c6 | 7599 | |
10f2d63a VZ |
7600 | if test "$enableval" = yes; then |
7601 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7602 | else | |
7603 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7604 | fi | |
e6cc62c6 | 7605 | |
10f2d63a | 7606 | else |
e6cc62c6 | 7607 | |
10f2d63a VZ |
7608 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7609 | if test "x$LINE" != x ; then | |
7610 | eval "DEFAULT_$LINE" | |
7611 | else | |
7612 | no_cache=1 | |
7613 | fi | |
7614 | ||
7615 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7616 | |
e6cc62c6 | 7617 | fi; |
10f2d63a VZ |
7618 | |
7619 | eval "$ac_cv_use_statline" | |
7620 | if test "$no_cache" != 1; then | |
7621 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7622 | fi | |
7623 | ||
7624 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7625 | echo "$as_me:$LINENO: result: yes" >&5 |
7626 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7627 | else |
e6cc62c6 VS |
7628 | echo "$as_me:$LINENO: result: no" >&5 |
7629 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7630 | fi |
e6cc62c6 | 7631 | |
10f2d63a | 7632 | |
5005acfe | 7633 | enablestring= |
e6cc62c6 VS |
7634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7635 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7636 | no_cache=0 |
7637 | # Check whether --enable-stattext or --disable-stattext was given. | |
7638 | if test "${enable_stattext+set}" = set; then | |
7639 | enableval="$enable_stattext" | |
e6cc62c6 | 7640 | |
1e6feb95 VZ |
7641 | if test "$enableval" = yes; then |
7642 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7643 | else | |
7644 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7645 | fi | |
e6cc62c6 | 7646 | |
1e6feb95 | 7647 | else |
e6cc62c6 | 7648 | |
1e6feb95 VZ |
7649 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7650 | if test "x$LINE" != x ; then | |
7651 | eval "DEFAULT_$LINE" | |
7652 | else | |
7653 | no_cache=1 | |
7654 | fi | |
7655 | ||
7656 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7657 | |
e6cc62c6 | 7658 | fi; |
1e6feb95 VZ |
7659 | |
7660 | eval "$ac_cv_use_stattext" | |
7661 | if test "$no_cache" != 1; then | |
7662 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7663 | fi | |
7664 | ||
7665 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7666 | echo "$as_me:$LINENO: result: yes" >&5 |
7667 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7668 | else |
e6cc62c6 VS |
7669 | echo "$as_me:$LINENO: result: no" >&5 |
7670 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7671 | fi |
e6cc62c6 | 7672 | |
1e6feb95 | 7673 | |
5005acfe | 7674 | enablestring= |
e6cc62c6 VS |
7675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7676 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7677 | no_cache=0 |
7678 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7679 | if test "${enable_statusbar+set}" = set; then | |
7680 | enableval="$enable_statusbar" | |
e6cc62c6 | 7681 | |
10f2d63a VZ |
7682 | if test "$enableval" = yes; then |
7683 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7684 | else | |
7685 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7686 | fi | |
e6cc62c6 | 7687 | |
10f2d63a | 7688 | else |
e6cc62c6 | 7689 | |
10f2d63a VZ |
7690 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7691 | if test "x$LINE" != x ; then | |
7692 | eval "DEFAULT_$LINE" | |
7693 | else | |
7694 | no_cache=1 | |
7695 | fi | |
7696 | ||
7697 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7698 | |
e6cc62c6 | 7699 | fi; |
10f2d63a VZ |
7700 | |
7701 | eval "$ac_cv_use_statusbar" | |
7702 | if test "$no_cache" != 1; then | |
7703 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7704 | fi | |
7705 | ||
7706 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7707 | echo "$as_me:$LINENO: result: yes" >&5 |
7708 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7709 | else |
e6cc62c6 VS |
7710 | echo "$as_me:$LINENO: result: no" >&5 |
7711 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7712 | fi |
e6cc62c6 | 7713 | |
10f2d63a | 7714 | |
5005acfe | 7715 | enablestring= |
e6cc62c6 VS |
7716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7717 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7718 | no_cache=0 |
7719 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7720 | if test "${enable_tabdialog+set}" = set; then | |
7721 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7722 | |
10f2d63a VZ |
7723 | if test "$enableval" = yes; then |
7724 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7725 | else | |
7726 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7727 | fi | |
e6cc62c6 | 7728 | |
10f2d63a | 7729 | else |
e6cc62c6 | 7730 | |
10f2d63a VZ |
7731 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7732 | if test "x$LINE" != x ; then | |
7733 | eval "DEFAULT_$LINE" | |
7734 | else | |
7735 | no_cache=1 | |
7736 | fi | |
7737 | ||
7738 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7739 | |
e6cc62c6 | 7740 | fi; |
10f2d63a VZ |
7741 | |
7742 | eval "$ac_cv_use_tabdialog" | |
7743 | if test "$no_cache" != 1; then | |
7744 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7745 | fi | |
7746 | ||
7747 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7748 | echo "$as_me:$LINENO: result: yes" >&5 |
7749 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7750 | else |
e6cc62c6 VS |
7751 | echo "$as_me:$LINENO: result: no" >&5 |
7752 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7753 | fi |
e6cc62c6 | 7754 | |
10f2d63a | 7755 | |
5005acfe | 7756 | enablestring= |
e6cc62c6 VS |
7757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7758 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7759 | no_cache=0 |
7760 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7761 | if test "${enable_textctrl+set}" = set; then | |
7762 | enableval="$enable_textctrl" | |
e6cc62c6 | 7763 | |
1e6feb95 VZ |
7764 | if test "$enableval" = yes; then |
7765 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7766 | else | |
7767 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7768 | fi | |
e6cc62c6 | 7769 | |
1e6feb95 | 7770 | else |
e6cc62c6 | 7771 | |
1e6feb95 VZ |
7772 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7773 | if test "x$LINE" != x ; then | |
7774 | eval "DEFAULT_$LINE" | |
7775 | else | |
7776 | no_cache=1 | |
7777 | fi | |
7778 | ||
7779 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7780 | |
e6cc62c6 | 7781 | fi; |
1e6feb95 VZ |
7782 | |
7783 | eval "$ac_cv_use_textctrl" | |
7784 | if test "$no_cache" != 1; then | |
7785 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7786 | fi | |
7787 | ||
7788 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7789 | echo "$as_me:$LINENO: result: yes" >&5 |
7790 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7791 | else |
e6cc62c6 VS |
7792 | echo "$as_me:$LINENO: result: no" >&5 |
7793 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7794 | fi |
e6cc62c6 | 7795 | |
1e6feb95 | 7796 | |
5005acfe | 7797 | enablestring= |
e6cc62c6 VS |
7798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7799 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7800 | no_cache=0 |
7801 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7802 | if test "${enable_togglebtn+set}" = set; then | |
7803 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7804 | |
1db8dc4a VZ |
7805 | if test "$enableval" = yes; then |
7806 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7807 | else | |
7808 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7809 | fi | |
e6cc62c6 | 7810 | |
1db8dc4a | 7811 | else |
e6cc62c6 | 7812 | |
1db8dc4a VZ |
7813 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7814 | if test "x$LINE" != x ; then | |
7815 | eval "DEFAULT_$LINE" | |
7816 | else | |
7817 | no_cache=1 | |
7818 | fi | |
7819 | ||
7820 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7821 | |
e6cc62c6 | 7822 | fi; |
1db8dc4a VZ |
7823 | |
7824 | eval "$ac_cv_use_togglebtn" | |
7825 | if test "$no_cache" != 1; then | |
7826 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7827 | fi | |
7828 | ||
7829 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7830 | echo "$as_me:$LINENO: result: yes" >&5 |
7831 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7832 | else |
e6cc62c6 VS |
7833 | echo "$as_me:$LINENO: result: no" >&5 |
7834 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7835 | fi |
e6cc62c6 | 7836 | |
1db8dc4a | 7837 | |
5005acfe | 7838 | enablestring= |
e6cc62c6 VS |
7839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7840 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7841 | no_cache=0 |
7842 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7843 | if test "${enable_toolbar+set}" = set; then | |
7844 | enableval="$enable_toolbar" | |
e6cc62c6 | 7845 | |
10f2d63a VZ |
7846 | if test "$enableval" = yes; then |
7847 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7848 | else | |
7849 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7850 | fi | |
e6cc62c6 | 7851 | |
10f2d63a | 7852 | else |
e6cc62c6 | 7853 | |
10f2d63a VZ |
7854 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7855 | if test "x$LINE" != x ; then | |
7856 | eval "DEFAULT_$LINE" | |
7857 | else | |
7858 | no_cache=1 | |
7859 | fi | |
7860 | ||
7861 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7862 | |
e6cc62c6 | 7863 | fi; |
10f2d63a VZ |
7864 | |
7865 | eval "$ac_cv_use_toolbar" | |
7866 | if test "$no_cache" != 1; then | |
7867 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7868 | fi | |
7869 | ||
7870 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7871 | echo "$as_me:$LINENO: result: yes" >&5 |
7872 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7873 | else |
e6cc62c6 VS |
7874 | echo "$as_me:$LINENO: result: no" >&5 |
7875 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7876 | fi |
e6cc62c6 | 7877 | |
10f2d63a | 7878 | |
5005acfe | 7879 | enablestring= |
e6cc62c6 VS |
7880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7881 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7882 | no_cache=0 |
7883 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7884 | if test "${enable_tbarnative+set}" = set; then | |
7885 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7886 | |
360d6699 VZ |
7887 | if test "$enableval" = yes; then |
7888 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7889 | else | |
7890 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7891 | fi | |
e6cc62c6 | 7892 | |
360d6699 | 7893 | else |
e6cc62c6 | 7894 | |
360d6699 VZ |
7895 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7896 | if test "x$LINE" != x ; then | |
7897 | eval "DEFAULT_$LINE" | |
7898 | else | |
7899 | no_cache=1 | |
7900 | fi | |
7901 | ||
7902 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7903 | |
e6cc62c6 | 7904 | fi; |
360d6699 VZ |
7905 | |
7906 | eval "$ac_cv_use_tbarnative" | |
7907 | if test "$no_cache" != 1; then | |
7908 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7909 | fi | |
7910 | ||
7911 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7912 | echo "$as_me:$LINENO: result: yes" >&5 |
7913 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7914 | else |
e6cc62c6 VS |
7915 | echo "$as_me:$LINENO: result: no" >&5 |
7916 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7917 | fi |
e6cc62c6 | 7918 | |
360d6699 | 7919 | |
5005acfe | 7920 | enablestring= |
e6cc62c6 VS |
7921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7922 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7923 | no_cache=0 |
7924 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7925 | if test "${enable_tbarsmpl+set}" = set; then | |
7926 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7927 | |
360d6699 VZ |
7928 | if test "$enableval" = yes; then |
7929 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7930 | else | |
7931 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7932 | fi | |
e6cc62c6 | 7933 | |
360d6699 | 7934 | else |
e6cc62c6 | 7935 | |
360d6699 VZ |
7936 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7937 | if test "x$LINE" != x ; then | |
7938 | eval "DEFAULT_$LINE" | |
7939 | else | |
7940 | no_cache=1 | |
7941 | fi | |
7942 | ||
7943 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7944 | |
e6cc62c6 | 7945 | fi; |
360d6699 VZ |
7946 | |
7947 | eval "$ac_cv_use_tbarsmpl" | |
7948 | if test "$no_cache" != 1; then | |
7949 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7950 | fi | |
7951 | ||
7952 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
7953 | echo "$as_me:$LINENO: result: yes" >&5 |
7954 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7955 | else |
e6cc62c6 VS |
7956 | echo "$as_me:$LINENO: result: no" >&5 |
7957 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7958 | fi |
e6cc62c6 | 7959 | |
360d6699 | 7960 | |
5005acfe | 7961 | enablestring= |
e6cc62c6 VS |
7962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
7963 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7964 | no_cache=0 |
7965 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7966 | if test "${enable_treectrl+set}" = set; then | |
7967 | enableval="$enable_treectrl" | |
e6cc62c6 | 7968 | |
10f2d63a VZ |
7969 | if test "$enableval" = yes; then |
7970 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7971 | else | |
7972 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7973 | fi | |
e6cc62c6 | 7974 | |
10f2d63a | 7975 | else |
e6cc62c6 | 7976 | |
10f2d63a VZ |
7977 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7978 | if test "x$LINE" != x ; then | |
7979 | eval "DEFAULT_$LINE" | |
7980 | else | |
7981 | no_cache=1 | |
7982 | fi | |
7983 | ||
7984 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 7985 | |
e6cc62c6 | 7986 | fi; |
10f2d63a | 7987 | |
1e6feb95 VZ |
7988 | eval "$ac_cv_use_treectrl" |
7989 | if test "$no_cache" != 1; then | |
7990 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7991 | fi | |
7992 | ||
7993 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
7994 | echo "$as_me:$LINENO: result: yes" >&5 |
7995 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7996 | else |
e6cc62c6 VS |
7997 | echo "$as_me:$LINENO: result: no" >&5 |
7998 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7999 | fi |
e6cc62c6 | 8000 | |
1e6feb95 | 8001 | |
5005acfe | 8002 | enablestring= |
e6cc62c6 VS |
8003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8004 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8005 | no_cache=0 |
8006 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8007 | if test "${enable_tipwindow+set}" = set; then | |
8008 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8009 | |
9926e4a4 VZ |
8010 | if test "$enableval" = yes; then |
8011 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8012 | else | |
8013 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8014 | fi | |
e6cc62c6 | 8015 | |
9926e4a4 | 8016 | else |
e6cc62c6 | 8017 | |
9926e4a4 VZ |
8018 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8019 | if test "x$LINE" != x ; then | |
8020 | eval "DEFAULT_$LINE" | |
8021 | else | |
8022 | no_cache=1 | |
8023 | fi | |
8024 | ||
8025 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8026 | |
e6cc62c6 | 8027 | fi; |
9926e4a4 VZ |
8028 | |
8029 | eval "$ac_cv_use_tipwindow" | |
8030 | if test "$no_cache" != 1; then | |
8031 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8032 | fi | |
8033 | ||
8034 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8035 | echo "$as_me:$LINENO: result: yes" >&5 |
8036 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8037 | else |
e6cc62c6 VS |
8038 | echo "$as_me:$LINENO: result: no" >&5 |
8039 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8040 | fi |
e6cc62c6 | 8041 | |
9926e4a4 | 8042 | |
5005acfe | 8043 | enablestring= |
e6cc62c6 VS |
8044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8045 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8046 | no_cache=0 |
8047 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8048 | if test "${enable_popupwin+set}" = set; then | |
8049 | enableval="$enable_popupwin" | |
e6cc62c6 | 8050 | |
9f41d601 RR |
8051 | if test "$enableval" = yes; then |
8052 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8053 | else | |
8054 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8055 | fi | |
e6cc62c6 | 8056 | |
9f41d601 | 8057 | else |
e6cc62c6 | 8058 | |
9f41d601 RR |
8059 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8060 | if test "x$LINE" != x ; then | |
8061 | eval "DEFAULT_$LINE" | |
8062 | else | |
8063 | no_cache=1 | |
8064 | fi | |
8065 | ||
8066 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8067 | |
e6cc62c6 | 8068 | fi; |
9f41d601 RR |
8069 | |
8070 | eval "$ac_cv_use_popupwin" | |
8071 | if test "$no_cache" != 1; then | |
8072 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8073 | fi | |
8074 | ||
8075 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8076 | echo "$as_me:$LINENO: result: yes" >&5 |
8077 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8078 | else |
e6cc62c6 VS |
8079 | echo "$as_me:$LINENO: result: no" >&5 |
8080 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8081 | fi |
e6cc62c6 | 8082 | |
52127426 | 8083 | |
8284b0c5 MB |
8084 | |
8085 | ||
5005acfe | 8086 | enablestring= |
e6cc62c6 VS |
8087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8088 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8089 | no_cache=0 |
8090 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8091 | if test "${enable_commondlg+set}" = set; then | |
8092 | enableval="$enable_commondlg" | |
e6cc62c6 | 8093 | |
1e6feb95 VZ |
8094 | if test "$enableval" = yes; then |
8095 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8096 | else | |
8097 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8098 | fi | |
e6cc62c6 | 8099 | |
1e6feb95 | 8100 | else |
e6cc62c6 | 8101 | |
1e6feb95 VZ |
8102 | LINE=`grep "wxUSE_COMMONDLGS" ${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_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8110 | |
e6cc62c6 | 8111 | fi; |
1e6feb95 VZ |
8112 | |
8113 | eval "$ac_cv_use_commondlg" | |
8114 | if test "$no_cache" != 1; then | |
8115 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8116 | fi | |
8117 | ||
8118 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8119 | echo "$as_me:$LINENO: result: yes" >&5 |
8120 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8121 | else |
e6cc62c6 VS |
8122 | echo "$as_me:$LINENO: result: no" >&5 |
8123 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8124 | fi |
e6cc62c6 | 8125 | |
1e6feb95 | 8126 | |
5005acfe | 8127 | enablestring= |
e6cc62c6 VS |
8128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8129 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8130 | no_cache=0 |
8131 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8132 | if test "${enable_choicedlg+set}" = set; then | |
8133 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8134 | |
1e6feb95 VZ |
8135 | if test "$enableval" = yes; then |
8136 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8137 | else | |
8138 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8139 | fi | |
e6cc62c6 | 8140 | |
1e6feb95 | 8141 | else |
e6cc62c6 | 8142 | |
1e6feb95 VZ |
8143 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8144 | if test "x$LINE" != x ; then | |
8145 | eval "DEFAULT_$LINE" | |
8146 | else | |
8147 | no_cache=1 | |
8148 | fi | |
8149 | ||
8150 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8151 | |
e6cc62c6 | 8152 | fi; |
1e6feb95 VZ |
8153 | |
8154 | eval "$ac_cv_use_choicedlg" | |
8155 | if test "$no_cache" != 1; then | |
8156 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8157 | fi | |
8158 | ||
8159 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8160 | echo "$as_me:$LINENO: result: yes" >&5 |
8161 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8162 | else |
e6cc62c6 VS |
8163 | echo "$as_me:$LINENO: result: no" >&5 |
8164 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8165 | fi |
e6cc62c6 | 8166 | |
1e6feb95 | 8167 | |
5005acfe | 8168 | enablestring= |
e6cc62c6 VS |
8169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8170 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8171 | no_cache=0 |
8172 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8173 | if test "${enable_coldlg+set}" = set; then | |
8174 | enableval="$enable_coldlg" | |
e6cc62c6 | 8175 | |
1e6feb95 VZ |
8176 | if test "$enableval" = yes; then |
8177 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8178 | else | |
8179 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8180 | fi | |
e6cc62c6 | 8181 | |
1e6feb95 | 8182 | else |
e6cc62c6 | 8183 | |
1e6feb95 VZ |
8184 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8185 | if test "x$LINE" != x ; then | |
8186 | eval "DEFAULT_$LINE" | |
8187 | else | |
8188 | no_cache=1 | |
8189 | fi | |
8190 | ||
8191 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8192 | |
e6cc62c6 | 8193 | fi; |
1e6feb95 VZ |
8194 | |
8195 | eval "$ac_cv_use_coldlg" | |
8196 | if test "$no_cache" != 1; then | |
8197 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8198 | fi | |
8199 | ||
8200 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8201 | echo "$as_me:$LINENO: result: yes" >&5 |
8202 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8203 | else |
e6cc62c6 VS |
8204 | echo "$as_me:$LINENO: result: no" >&5 |
8205 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8206 | fi |
e6cc62c6 | 8207 | |
1e6feb95 | 8208 | |
5005acfe | 8209 | enablestring= |
e6cc62c6 VS |
8210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8211 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8212 | no_cache=0 |
8213 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8214 | if test "${enable_filedlg+set}" = set; then | |
8215 | enableval="$enable_filedlg" | |
e6cc62c6 | 8216 | |
1e6feb95 VZ |
8217 | if test "$enableval" = yes; then |
8218 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8219 | else | |
8220 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8221 | fi | |
e6cc62c6 | 8222 | |
1e6feb95 | 8223 | else |
e6cc62c6 | 8224 | |
1e6feb95 VZ |
8225 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8226 | if test "x$LINE" != x ; then | |
8227 | eval "DEFAULT_$LINE" | |
8228 | else | |
8229 | no_cache=1 | |
8230 | fi | |
8231 | ||
8232 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8233 | |
e6cc62c6 | 8234 | fi; |
1e6feb95 VZ |
8235 | |
8236 | eval "$ac_cv_use_filedlg" | |
8237 | if test "$no_cache" != 1; then | |
8238 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8239 | fi | |
8240 | ||
8241 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8242 | echo "$as_me:$LINENO: result: yes" >&5 |
8243 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8244 | else |
e6cc62c6 VS |
8245 | echo "$as_me:$LINENO: result: no" >&5 |
8246 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8247 | fi |
e6cc62c6 | 8248 | |
1e6feb95 | 8249 | |
5005acfe | 8250 | enablestring= |
e6cc62c6 VS |
8251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8252 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8253 | no_cache=0 |
69d27ff7 MB |
8254 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8255 | if test "${enable_finddlg+set}" = set; then | |
8256 | enableval="$enable_finddlg" | |
e6cc62c6 | 8257 | |
8db37e06 | 8258 | if test "$enableval" = yes; then |
69d27ff7 | 8259 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8260 | else |
69d27ff7 | 8261 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8262 | fi |
e6cc62c6 | 8263 | |
8db37e06 | 8264 | else |
e6cc62c6 | 8265 | |
8db37e06 VZ |
8266 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8267 | if test "x$LINE" != x ; then | |
8268 | eval "DEFAULT_$LINE" | |
8269 | else | |
8270 | no_cache=1 | |
8271 | fi | |
8272 | ||
69d27ff7 | 8273 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8274 | |
e6cc62c6 | 8275 | fi; |
8db37e06 | 8276 | |
69d27ff7 | 8277 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8278 | if test "$no_cache" != 1; then |
69d27ff7 | 8279 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8280 | fi |
8281 | ||
8282 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8283 | echo "$as_me:$LINENO: result: yes" >&5 |
8284 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8285 | else |
e6cc62c6 VS |
8286 | echo "$as_me:$LINENO: result: no" >&5 |
8287 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8288 | fi |
e6cc62c6 | 8289 | |
8db37e06 | 8290 | |
5005acfe | 8291 | enablestring= |
e6cc62c6 VS |
8292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8293 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8294 | no_cache=0 |
8295 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8296 | if test "${enable_fontdlg+set}" = set; then | |
8297 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8298 | |
1e6feb95 VZ |
8299 | if test "$enableval" = yes; then |
8300 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8301 | else | |
8302 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8303 | fi | |
e6cc62c6 | 8304 | |
1e6feb95 | 8305 | else |
e6cc62c6 | 8306 | |
1e6feb95 VZ |
8307 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8308 | if test "x$LINE" != x ; then | |
8309 | eval "DEFAULT_$LINE" | |
8310 | else | |
8311 | no_cache=1 | |
8312 | fi | |
8313 | ||
8314 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8315 | |
e6cc62c6 | 8316 | fi; |
1e6feb95 VZ |
8317 | |
8318 | eval "$ac_cv_use_fontdlg" | |
8319 | if test "$no_cache" != 1; then | |
8320 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8321 | fi | |
8322 | ||
8323 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8324 | echo "$as_me:$LINENO: result: yes" >&5 |
8325 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8326 | else |
e6cc62c6 VS |
8327 | echo "$as_me:$LINENO: result: no" >&5 |
8328 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8329 | fi |
e6cc62c6 | 8330 | |
1e6feb95 | 8331 | |
5005acfe | 8332 | enablestring= |
e6cc62c6 VS |
8333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8334 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8335 | no_cache=0 |
8336 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8337 | if test "${enable_dirdlg+set}" = set; then | |
8338 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8339 | |
1e6feb95 VZ |
8340 | if test "$enableval" = yes; then |
8341 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8342 | else | |
8343 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8344 | fi | |
e6cc62c6 | 8345 | |
1e6feb95 | 8346 | else |
e6cc62c6 | 8347 | |
1e6feb95 VZ |
8348 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
8355 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8356 | |
e6cc62c6 | 8357 | fi; |
1e6feb95 VZ |
8358 | |
8359 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8360 | if test "$no_cache" != 1; then |
1e6feb95 | 8361 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8362 | fi |
8363 | ||
1e6feb95 | 8364 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8365 | echo "$as_me:$LINENO: result: yes" >&5 |
8366 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8367 | else |
e6cc62c6 VS |
8368 | echo "$as_me:$LINENO: result: no" >&5 |
8369 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8370 | fi |
e6cc62c6 | 8371 | |
698dcdb6 | 8372 | |
5005acfe | 8373 | enablestring= |
e6cc62c6 VS |
8374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8375 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8376 | no_cache=0 |
1e6feb95 VZ |
8377 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8378 | if test "${enable_msgdlg+set}" = set; then | |
8379 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8380 | |
10f2d63a | 8381 | if test "$enableval" = yes; then |
1e6feb95 | 8382 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8383 | else |
1e6feb95 | 8384 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8385 | fi |
e6cc62c6 | 8386 | |
10f2d63a | 8387 | else |
e6cc62c6 | 8388 | |
1e6feb95 | 8389 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8390 | if test "x$LINE" != x ; then |
8391 | eval "DEFAULT_$LINE" | |
8392 | else | |
8393 | no_cache=1 | |
8394 | fi | |
8395 | ||
1e6feb95 | 8396 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8397 | |
e6cc62c6 | 8398 | fi; |
10f2d63a | 8399 | |
1e6feb95 | 8400 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8401 | if test "$no_cache" != 1; then |
1e6feb95 | 8402 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8403 | fi |
8404 | ||
1e6feb95 | 8405 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8406 | echo "$as_me:$LINENO: result: yes" >&5 |
8407 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8408 | else |
e6cc62c6 VS |
8409 | echo "$as_me:$LINENO: result: no" >&5 |
8410 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8411 | fi |
e6cc62c6 | 8412 | |
10f2d63a | 8413 | |
5005acfe | 8414 | enablestring= |
e6cc62c6 VS |
8415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8416 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8417 | no_cache=0 |
1e6feb95 VZ |
8418 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8419 | if test "${enable_numberdlg+set}" = set; then | |
8420 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8421 | |
10f2d63a | 8422 | if test "$enableval" = yes; then |
1e6feb95 | 8423 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8424 | else |
1e6feb95 | 8425 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8426 | fi |
e6cc62c6 | 8427 | |
10f2d63a | 8428 | else |
e6cc62c6 | 8429 | |
1e6feb95 | 8430 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8431 | if test "x$LINE" != x ; then |
8432 | eval "DEFAULT_$LINE" | |
8433 | else | |
8434 | no_cache=1 | |
8435 | fi | |
8436 | ||
1e6feb95 | 8437 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8438 | |
e6cc62c6 | 8439 | fi; |
10f2d63a | 8440 | |
1e6feb95 | 8441 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8442 | if test "$no_cache" != 1; then |
1e6feb95 | 8443 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8444 | fi |
8445 | ||
1e6feb95 | 8446 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8447 | echo "$as_me:$LINENO: result: yes" >&5 |
8448 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8449 | else |
e6cc62c6 VS |
8450 | echo "$as_me:$LINENO: result: no" >&5 |
8451 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8452 | fi |
e6cc62c6 | 8453 | |
10f2d63a | 8454 | |
5005acfe | 8455 | enablestring= |
e6cc62c6 VS |
8456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8457 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8458 | no_cache=0 |
8459 | # Check whether --enable-splash or --disable-splash was given. | |
8460 | if test "${enable_splash+set}" = set; then | |
8461 | enableval="$enable_splash" | |
e6cc62c6 | 8462 | |
cbca9943 VZ |
8463 | if test "$enableval" = yes; then |
8464 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8465 | else | |
8466 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8467 | fi | |
e6cc62c6 | 8468 | |
cbca9943 | 8469 | else |
e6cc62c6 | 8470 | |
cbca9943 VZ |
8471 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8472 | if test "x$LINE" != x ; then | |
8473 | eval "DEFAULT_$LINE" | |
8474 | else | |
8475 | no_cache=1 | |
8476 | fi | |
8477 | ||
8478 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8479 | |
e6cc62c6 | 8480 | fi; |
cbca9943 VZ |
8481 | |
8482 | eval "$ac_cv_use_splash" | |
8483 | if test "$no_cache" != 1; then | |
8484 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8485 | fi | |
8486 | ||
8487 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8488 | echo "$as_me:$LINENO: result: yes" >&5 |
8489 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8490 | else |
e6cc62c6 VS |
8491 | echo "$as_me:$LINENO: result: no" >&5 |
8492 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8493 | fi |
e6cc62c6 | 8494 | |
cbca9943 | 8495 | |
5005acfe | 8496 | enablestring= |
e6cc62c6 VS |
8497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8498 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8499 | no_cache=0 |
8500 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8501 | if test "${enable_textdlg+set}" = set; then | |
8502 | enableval="$enable_textdlg" | |
e6cc62c6 | 8503 | |
10f2d63a VZ |
8504 | if test "$enableval" = yes; then |
8505 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8506 | else | |
8507 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8508 | fi | |
e6cc62c6 | 8509 | |
10f2d63a | 8510 | else |
e6cc62c6 | 8511 | |
10f2d63a VZ |
8512 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8513 | if test "x$LINE" != x ; then | |
8514 | eval "DEFAULT_$LINE" | |
8515 | else | |
8516 | no_cache=1 | |
8517 | fi | |
8518 | ||
8519 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8520 | |
e6cc62c6 | 8521 | fi; |
10f2d63a VZ |
8522 | |
8523 | eval "$ac_cv_use_textdlg" | |
8524 | if test "$no_cache" != 1; then | |
8525 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8526 | fi | |
8527 | ||
8528 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8529 | echo "$as_me:$LINENO: result: yes" >&5 |
8530 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8531 | else |
e6cc62c6 VS |
8532 | echo "$as_me:$LINENO: result: no" >&5 |
8533 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8534 | fi |
e6cc62c6 | 8535 | |
10f2d63a | 8536 | |
5005acfe | 8537 | enablestring= |
e6cc62c6 VS |
8538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8539 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8540 | no_cache=0 |
8541 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8542 | if test "${enable_tipdlg+set}" = set; then | |
8543 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8544 | |
10f2d63a VZ |
8545 | if test "$enableval" = yes; then |
8546 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8547 | else | |
8548 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8549 | fi | |
e6cc62c6 | 8550 | |
10f2d63a | 8551 | else |
e6cc62c6 | 8552 | |
10f2d63a VZ |
8553 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8554 | if test "x$LINE" != x ; then | |
8555 | eval "DEFAULT_$LINE" | |
8556 | else | |
8557 | no_cache=1 | |
8558 | fi | |
8559 | ||
8560 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8561 | |
e6cc62c6 | 8562 | fi; |
10f2d63a VZ |
8563 | |
8564 | eval "$ac_cv_use_tipdlg" | |
8565 | if test "$no_cache" != 1; then | |
8566 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8567 | fi | |
8568 | ||
8569 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8570 | echo "$as_me:$LINENO: result: yes" >&5 |
8571 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8572 | else |
e6cc62c6 VS |
8573 | echo "$as_me:$LINENO: result: no" >&5 |
8574 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8575 | fi |
e6cc62c6 | 8576 | |
10f2d63a | 8577 | |
5005acfe | 8578 | enablestring= |
e6cc62c6 VS |
8579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8580 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8581 | no_cache=0 |
8582 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8583 | if test "${enable_progressdlg+set}" = set; then | |
8584 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8585 | |
10f2d63a VZ |
8586 | if test "$enableval" = yes; then |
8587 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8588 | else | |
8589 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8590 | fi | |
e6cc62c6 | 8591 | |
10f2d63a | 8592 | else |
e6cc62c6 | 8593 | |
10f2d63a VZ |
8594 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8595 | if test "x$LINE" != x ; then | |
8596 | eval "DEFAULT_$LINE" | |
8597 | else | |
8598 | no_cache=1 | |
8599 | fi | |
8600 | ||
8601 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8602 | |
e6cc62c6 | 8603 | fi; |
10f2d63a VZ |
8604 | |
8605 | eval "$ac_cv_use_progressdlg" | |
8606 | if test "$no_cache" != 1; then | |
8607 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8608 | fi | |
8609 | ||
8610 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8611 | echo "$as_me:$LINENO: result: yes" >&5 |
8612 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8613 | else |
e6cc62c6 VS |
8614 | echo "$as_me:$LINENO: result: no" >&5 |
8615 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8616 | fi |
e6cc62c6 | 8617 | |
10f2d63a | 8618 | |
5005acfe | 8619 | enablestring= |
e6cc62c6 VS |
8620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8621 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8622 | no_cache=0 |
8623 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8624 | if test "${enable_wizarddlg+set}" = set; then | |
8625 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8626 | |
b1f5d087 VZ |
8627 | if test "$enableval" = yes; then |
8628 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8629 | else | |
8630 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8631 | fi | |
e6cc62c6 | 8632 | |
b1f5d087 | 8633 | else |
e6cc62c6 | 8634 | |
b1f5d087 VZ |
8635 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8636 | if test "x$LINE" != x ; then | |
8637 | eval "DEFAULT_$LINE" | |
8638 | else | |
8639 | no_cache=1 | |
8640 | fi | |
8641 | ||
8642 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8643 | |
e6cc62c6 | 8644 | fi; |
b1f5d087 VZ |
8645 | |
8646 | eval "$ac_cv_use_wizarddlg" | |
8647 | if test "$no_cache" != 1; then | |
8648 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8649 | fi | |
8650 | ||
8651 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8652 | echo "$as_me:$LINENO: result: yes" >&5 |
8653 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8654 | else |
e6cc62c6 VS |
8655 | echo "$as_me:$LINENO: result: no" >&5 |
8656 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8657 | fi |
e6cc62c6 | 8658 | |
8284b0c5 MB |
8659 | |
8660 | ||
52127426 | 8661 | |
5005acfe | 8662 | enablestring= |
e6cc62c6 VS |
8663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8664 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8665 | no_cache=0 |
8666 | # Check whether --enable-menus or --disable-menus was given. | |
8667 | if test "${enable_menus+set}" = set; then | |
8668 | enableval="$enable_menus" | |
e6cc62c6 | 8669 | |
1e6feb95 VZ |
8670 | if test "$enableval" = yes; then |
8671 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8672 | else | |
8673 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8674 | fi | |
e6cc62c6 | 8675 | |
1e6feb95 | 8676 | else |
e6cc62c6 | 8677 | |
1e6feb95 VZ |
8678 | LINE=`grep "wxUSE_MENUS" ${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_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8686 | |
e6cc62c6 | 8687 | fi; |
1e6feb95 VZ |
8688 | |
8689 | eval "$ac_cv_use_menus" | |
8690 | if test "$no_cache" != 1; then | |
8691 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8692 | fi | |
8693 | ||
8694 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8695 | echo "$as_me:$LINENO: result: yes" >&5 |
8696 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8697 | else |
e6cc62c6 VS |
8698 | echo "$as_me:$LINENO: result: no" >&5 |
8699 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8700 | fi |
e6cc62c6 | 8701 | |
1e6feb95 | 8702 | |
5005acfe | 8703 | enablestring= |
e6cc62c6 VS |
8704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8705 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8706 | no_cache=0 |
8707 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8708 | if test "${enable_miniframe+set}" = set; then | |
8709 | enableval="$enable_miniframe" | |
e6cc62c6 | 8710 | |
10f2d63a VZ |
8711 | if test "$enableval" = yes; then |
8712 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8713 | else | |
8714 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8715 | fi | |
e6cc62c6 | 8716 | |
10f2d63a | 8717 | else |
e6cc62c6 | 8718 | |
10f2d63a VZ |
8719 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8720 | if test "x$LINE" != x ; then | |
8721 | eval "DEFAULT_$LINE" | |
8722 | else | |
8723 | no_cache=1 | |
8724 | fi | |
8725 | ||
8726 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8727 | |
e6cc62c6 | 8728 | fi; |
10f2d63a VZ |
8729 | |
8730 | eval "$ac_cv_use_miniframe" | |
8731 | if test "$no_cache" != 1; then | |
8732 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8733 | fi | |
8734 | ||
8735 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8736 | echo "$as_me:$LINENO: result: yes" >&5 |
8737 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8738 | else |
e6cc62c6 VS |
8739 | echo "$as_me:$LINENO: result: no" >&5 |
8740 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8741 | fi |
e6cc62c6 | 8742 | |
10f2d63a | 8743 | |
5005acfe | 8744 | enablestring= |
e6cc62c6 VS |
8745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8746 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8747 | no_cache=0 |
8748 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8749 | if test "${enable_tooltips+set}" = set; then | |
8750 | enableval="$enable_tooltips" | |
e6cc62c6 | 8751 | |
10f2d63a VZ |
8752 | if test "$enableval" = yes; then |
8753 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8754 | else | |
8755 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8756 | fi | |
e6cc62c6 | 8757 | |
10f2d63a | 8758 | else |
e6cc62c6 | 8759 | |
10f2d63a VZ |
8760 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8761 | if test "x$LINE" != x ; then | |
8762 | eval "DEFAULT_$LINE" | |
8763 | else | |
8764 | no_cache=1 | |
8765 | fi | |
8766 | ||
8767 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8768 | |
e6cc62c6 | 8769 | fi; |
10f2d63a VZ |
8770 | |
8771 | eval "$ac_cv_use_tooltips" | |
8772 | if test "$no_cache" != 1; then | |
8773 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8774 | fi | |
8775 | ||
8776 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8777 | echo "$as_me:$LINENO: result: yes" >&5 |
8778 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8779 | else |
e6cc62c6 VS |
8780 | echo "$as_me:$LINENO: result: no" >&5 |
8781 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8782 | fi |
e6cc62c6 | 8783 | |
10f2d63a | 8784 | |
5005acfe | 8785 | enablestring= |
e6cc62c6 VS |
8786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8787 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8788 | no_cache=0 |
8789 | # Check whether --enable-splines or --disable-splines was given. | |
8790 | if test "${enable_splines+set}" = set; then | |
8791 | enableval="$enable_splines" | |
e6cc62c6 | 8792 | |
10f2d63a VZ |
8793 | if test "$enableval" = yes; then |
8794 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8795 | else | |
8796 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8797 | fi | |
e6cc62c6 | 8798 | |
10f2d63a | 8799 | else |
e6cc62c6 | 8800 | |
10f2d63a VZ |
8801 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8802 | if test "x$LINE" != x ; then | |
8803 | eval "DEFAULT_$LINE" | |
8804 | else | |
8805 | no_cache=1 | |
8806 | fi | |
8807 | ||
8808 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8809 | |
e6cc62c6 | 8810 | fi; |
10f2d63a VZ |
8811 | |
8812 | eval "$ac_cv_use_splines" | |
8813 | if test "$no_cache" != 1; then | |
8814 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8815 | fi | |
8816 | ||
8817 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8818 | echo "$as_me:$LINENO: result: yes" >&5 |
8819 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8820 | else |
e6cc62c6 VS |
8821 | echo "$as_me:$LINENO: result: no" >&5 |
8822 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8823 | fi |
e6cc62c6 | 8824 | |
10f2d63a | 8825 | |
5005acfe | 8826 | enablestring= |
e6cc62c6 VS |
8827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8828 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8829 | no_cache=0 |
8830 | # Check whether --enable-validators or --disable-validators was given. | |
8831 | if test "${enable_validators+set}" = set; then | |
8832 | enableval="$enable_validators" | |
e6cc62c6 | 8833 | |
10f2d63a VZ |
8834 | if test "$enableval" = yes; then |
8835 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8836 | else | |
8837 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8838 | fi | |
e6cc62c6 | 8839 | |
10f2d63a | 8840 | else |
e6cc62c6 | 8841 | |
10f2d63a VZ |
8842 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8843 | if test "x$LINE" != x ; then | |
8844 | eval "DEFAULT_$LINE" | |
8845 | else | |
8846 | no_cache=1 | |
8847 | fi | |
8848 | ||
8849 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8850 | |
e6cc62c6 | 8851 | fi; |
10f2d63a VZ |
8852 | |
8853 | eval "$ac_cv_use_validators" | |
8854 | if test "$no_cache" != 1; then | |
8855 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8856 | fi | |
8857 | ||
8858 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8859 | echo "$as_me:$LINENO: result: yes" >&5 |
8860 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8861 | else |
e6cc62c6 VS |
8862 | echo "$as_me:$LINENO: result: no" >&5 |
8863 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8864 | fi |
e6cc62c6 | 8865 | |
10f2d63a | 8866 | |
5005acfe | 8867 | enablestring= |
e6cc62c6 VS |
8868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8869 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8870 | no_cache=0 |
8871 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8872 | if test "${enable_busyinfo+set}" = set; then | |
8873 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8874 | |
10f2d63a VZ |
8875 | if test "$enableval" = yes; then |
8876 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8877 | else | |
8878 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8879 | fi | |
e6cc62c6 | 8880 | |
10f2d63a | 8881 | else |
e6cc62c6 | 8882 | |
10f2d63a VZ |
8883 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8884 | if test "x$LINE" != x ; then | |
8885 | eval "DEFAULT_$LINE" | |
8886 | else | |
8887 | no_cache=1 | |
8888 | fi | |
8889 | ||
8890 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8891 | |
e6cc62c6 | 8892 | fi; |
10f2d63a VZ |
8893 | |
8894 | eval "$ac_cv_use_busyinfo" | |
8895 | if test "$no_cache" != 1; then | |
8896 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8897 | fi | |
8898 | ||
8899 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8900 | echo "$as_me:$LINENO: result: yes" >&5 |
8901 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8902 | else |
e6cc62c6 VS |
8903 | echo "$as_me:$LINENO: result: no" >&5 |
8904 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8905 | fi |
e6cc62c6 | 8906 | |
10f2d63a | 8907 | |
5005acfe | 8908 | enablestring= |
e6cc62c6 VS |
8909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8910 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8911 | no_cache=0 |
8912 | # Check whether --enable-joystick or --disable-joystick was given. | |
8913 | if test "${enable_joystick+set}" = set; then | |
8914 | enableval="$enable_joystick" | |
e6cc62c6 | 8915 | |
f6bcfd97 BP |
8916 | if test "$enableval" = yes; then |
8917 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8918 | else | |
8919 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8920 | fi | |
e6cc62c6 | 8921 | |
f6bcfd97 | 8922 | else |
e6cc62c6 | 8923 | |
f6bcfd97 BP |
8924 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8925 | if test "x$LINE" != x ; then | |
8926 | eval "DEFAULT_$LINE" | |
8927 | else | |
8928 | no_cache=1 | |
8929 | fi | |
8930 | ||
8931 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8932 | |
e6cc62c6 | 8933 | fi; |
f6bcfd97 BP |
8934 | |
8935 | eval "$ac_cv_use_joystick" | |
8936 | if test "$no_cache" != 1; then | |
8937 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8938 | fi | |
8939 | ||
8940 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8941 | echo "$as_me:$LINENO: result: yes" >&5 |
8942 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8943 | else |
e6cc62c6 VS |
8944 | echo "$as_me:$LINENO: result: no" >&5 |
8945 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8946 | fi |
e6cc62c6 | 8947 | |
698dcdb6 | 8948 | |
5005acfe | 8949 | enablestring= |
e6cc62c6 VS |
8950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
8951 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
8952 | no_cache=0 |
8953 | # Check whether --enable-metafile or --disable-metafile was given. | |
8954 | if test "${enable_metafile+set}" = set; then | |
8955 | enableval="$enable_metafile" | |
e6cc62c6 | 8956 | |
1e6feb95 VZ |
8957 | if test "$enableval" = yes; then |
8958 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8959 | else | |
8960 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8961 | fi | |
e6cc62c6 | 8962 | |
1e6feb95 | 8963 | else |
e6cc62c6 | 8964 | |
1e6feb95 VZ |
8965 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8966 | if test "x$LINE" != x ; then | |
8967 | eval "DEFAULT_$LINE" | |
8968 | else | |
8969 | no_cache=1 | |
8970 | fi | |
8971 | ||
8972 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 8973 | |
e6cc62c6 | 8974 | fi; |
1e6feb95 VZ |
8975 | |
8976 | eval "$ac_cv_use_metafile" | |
8977 | if test "$no_cache" != 1; then | |
8978 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8979 | fi | |
8980 | ||
8981 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
8982 | echo "$as_me:$LINENO: result: yes" >&5 |
8983 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8984 | else |
e6cc62c6 VS |
8985 | echo "$as_me:$LINENO: result: no" >&5 |
8986 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8987 | fi |
e6cc62c6 | 8988 | |
1e6feb95 | 8989 | |
5005acfe | 8990 | enablestring= |
e6cc62c6 VS |
8991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
8992 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
8993 | no_cache=0 |
8994 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8995 | if test "${enable_dragimage+set}" = set; then | |
8996 | enableval="$enable_dragimage" | |
e6cc62c6 | 8997 | |
24fd6d87 VZ |
8998 | if test "$enableval" = yes; then |
8999 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9000 | else | |
9001 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9002 | fi | |
e6cc62c6 | 9003 | |
24fd6d87 | 9004 | else |
e6cc62c6 | 9005 | |
24fd6d87 VZ |
9006 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9007 | if test "x$LINE" != x ; then | |
9008 | eval "DEFAULT_$LINE" | |
9009 | else | |
9010 | no_cache=1 | |
9011 | fi | |
9012 | ||
9013 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9014 | |
e6cc62c6 | 9015 | fi; |
24fd6d87 VZ |
9016 | |
9017 | eval "$ac_cv_use_dragimage" | |
9018 | if test "$no_cache" != 1; then | |
9019 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9020 | fi | |
9021 | ||
9022 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9023 | echo "$as_me:$LINENO: result: yes" >&5 |
9024 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9025 | else |
e6cc62c6 VS |
9026 | echo "$as_me:$LINENO: result: no" >&5 |
9027 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9028 | fi |
e6cc62c6 | 9029 | |
52127426 | 9030 | |
7bb2947d | 9031 | enablestring= |
e6cc62c6 VS |
9032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9033 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9034 | no_cache=0 |
9035 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9036 | if test "${enable_accessibility+set}" = set; then | |
9037 | enableval="$enable_accessibility" | |
e6cc62c6 | 9038 | |
7bb2947d MB |
9039 | if test "$enableval" = yes; then |
9040 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9041 | else | |
9042 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9043 | fi | |
e6cc62c6 | 9044 | |
7bb2947d | 9045 | else |
e6cc62c6 | 9046 | |
7bb2947d MB |
9047 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9048 | if test "x$LINE" != x ; then | |
9049 | eval "DEFAULT_$LINE" | |
9050 | else | |
9051 | no_cache=1 | |
9052 | fi | |
9053 | ||
9054 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9055 | |
e6cc62c6 | 9056 | fi; |
7bb2947d MB |
9057 | |
9058 | eval "$ac_cv_use_accessibility" | |
9059 | if test "$no_cache" != 1; then | |
9060 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9061 | fi | |
9062 | ||
9063 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9064 | echo "$as_me:$LINENO: result: yes" >&5 |
9065 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9066 | else |
e6cc62c6 VS |
9067 | echo "$as_me:$LINENO: result: no" >&5 |
9068 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9069 | fi |
e6cc62c6 | 9070 | |
7bb2947d | 9071 | |
8284b0c5 MB |
9072 | |
9073 | ||
5005acfe | 9074 | enablestring= |
e6cc62c6 VS |
9075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9076 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9077 | no_cache=0 |
9078 | # Check whether --enable-palette or --disable-palette was given. | |
9079 | if test "${enable_palette+set}" = set; then | |
9080 | enableval="$enable_palette" | |
e6cc62c6 | 9081 | |
edae8572 VZ |
9082 | if test "$enableval" = yes; then |
9083 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9084 | else | |
9085 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9086 | fi | |
e6cc62c6 | 9087 | |
edae8572 | 9088 | else |
e6cc62c6 | 9089 | |
edae8572 VZ |
9090 | LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9098 | |
e6cc62c6 | 9099 | fi; |
edae8572 VZ |
9100 | |
9101 | eval "$ac_cv_use_palette" | |
9102 | if test "$no_cache" != 1; then | |
9103 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9104 | fi | |
9105 | ||
9106 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9107 | echo "$as_me:$LINENO: result: yes" >&5 |
9108 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9109 | else |
e6cc62c6 VS |
9110 | echo "$as_me:$LINENO: result: no" >&5 |
9111 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9112 | fi |
e6cc62c6 | 9113 | |
edae8572 | 9114 | |
5005acfe | 9115 | enablestring= |
e6cc62c6 VS |
9116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9117 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9118 | no_cache=0 |
9119 | # Check whether --enable-image or --disable-image was given. | |
9120 | if test "${enable_image+set}" = set; then | |
9121 | enableval="$enable_image" | |
e6cc62c6 | 9122 | |
0046ff7c VS |
9123 | if test "$enableval" = yes; then |
9124 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9125 | else | |
9126 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9127 | fi | |
e6cc62c6 | 9128 | |
0046ff7c | 9129 | else |
e6cc62c6 | 9130 | |
0046ff7c VS |
9131 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9132 | if test "x$LINE" != x ; then | |
9133 | eval "DEFAULT_$LINE" | |
9134 | else | |
9135 | no_cache=1 | |
9136 | fi | |
9137 | ||
9138 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9139 | |
e6cc62c6 | 9140 | fi; |
0046ff7c VS |
9141 | |
9142 | eval "$ac_cv_use_image" | |
9143 | if test "$no_cache" != 1; then | |
9144 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9145 | fi | |
9146 | ||
9147 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9148 | echo "$as_me:$LINENO: result: yes" >&5 |
9149 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9150 | else |
e6cc62c6 VS |
9151 | echo "$as_me:$LINENO: result: no" >&5 |
9152 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9153 | fi |
e6cc62c6 | 9154 | |
0046ff7c | 9155 | |
5005acfe | 9156 | enablestring= |
e6cc62c6 VS |
9157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9158 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9159 | no_cache=0 |
9160 | # Check whether --enable-gif or --disable-gif was given. | |
9161 | if test "${enable_gif+set}" = set; then | |
9162 | enableval="$enable_gif" | |
e6cc62c6 | 9163 | |
10f2d63a VZ |
9164 | if test "$enableval" = yes; then |
9165 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9166 | else | |
9167 | ac_cv_use_gif='wxUSE_GIF=no' | |
9168 | fi | |
e6cc62c6 | 9169 | |
10f2d63a | 9170 | else |
e6cc62c6 | 9171 | |
10f2d63a VZ |
9172 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9173 | if test "x$LINE" != x ; then | |
9174 | eval "DEFAULT_$LINE" | |
9175 | else | |
9176 | no_cache=1 | |
9177 | fi | |
9178 | ||
9179 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9180 | |
e6cc62c6 | 9181 | fi; |
10f2d63a VZ |
9182 | |
9183 | eval "$ac_cv_use_gif" | |
9184 | if test "$no_cache" != 1; then | |
9185 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9186 | fi | |
9187 | ||
9188 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9189 | echo "$as_me:$LINENO: result: yes" >&5 |
9190 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9191 | else |
e6cc62c6 VS |
9192 | echo "$as_me:$LINENO: result: no" >&5 |
9193 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9194 | fi |
e6cc62c6 | 9195 | |
10f2d63a | 9196 | |
5005acfe | 9197 | enablestring= |
e6cc62c6 VS |
9198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9199 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9200 | no_cache=0 |
9201 | # Check whether --enable-pcx or --disable-pcx was given. | |
9202 | if test "${enable_pcx+set}" = set; then | |
9203 | enableval="$enable_pcx" | |
e6cc62c6 | 9204 | |
10f2d63a VZ |
9205 | if test "$enableval" = yes; then |
9206 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9207 | else | |
9208 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9209 | fi | |
e6cc62c6 | 9210 | |
10f2d63a | 9211 | else |
e6cc62c6 | 9212 | |
10f2d63a VZ |
9213 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9214 | if test "x$LINE" != x ; then | |
9215 | eval "DEFAULT_$LINE" | |
9216 | else | |
9217 | no_cache=1 | |
9218 | fi | |
9219 | ||
9220 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9221 | |
e6cc62c6 | 9222 | fi; |
10f2d63a VZ |
9223 | |
9224 | eval "$ac_cv_use_pcx" | |
9225 | if test "$no_cache" != 1; then | |
9226 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9227 | fi | |
9228 | ||
9229 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9230 | echo "$as_me:$LINENO: result: yes" >&5 |
9231 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9232 | else |
e6cc62c6 VS |
9233 | echo "$as_me:$LINENO: result: no" >&5 |
9234 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9235 | fi |
e6cc62c6 | 9236 | |
10f2d63a | 9237 | |
5005acfe | 9238 | enablestring= |
e6cc62c6 VS |
9239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9240 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9241 | no_cache=0 |
9242 | # Check whether --enable-iff or --disable-iff was given. | |
9243 | if test "${enable_iff+set}" = set; then | |
9244 | enableval="$enable_iff" | |
e6cc62c6 | 9245 | |
4b6b4dfc RR |
9246 | if test "$enableval" = yes; then |
9247 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9248 | else | |
9249 | ac_cv_use_iff='wxUSE_IFF=no' | |
9250 | fi | |
e6cc62c6 | 9251 | |
4b6b4dfc | 9252 | else |
e6cc62c6 | 9253 | |
4b6b4dfc RR |
9254 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9255 | if test "x$LINE" != x ; then | |
9256 | eval "DEFAULT_$LINE" | |
9257 | else | |
9258 | no_cache=1 | |
9259 | fi | |
9260 | ||
9261 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9262 | |
e6cc62c6 | 9263 | fi; |
4b6b4dfc RR |
9264 | |
9265 | eval "$ac_cv_use_iff" | |
9266 | if test "$no_cache" != 1; then | |
9267 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9268 | fi | |
9269 | ||
9270 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9271 | echo "$as_me:$LINENO: result: yes" >&5 |
9272 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9273 | else |
e6cc62c6 VS |
9274 | echo "$as_me:$LINENO: result: no" >&5 |
9275 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9276 | fi |
e6cc62c6 | 9277 | |
4b6b4dfc | 9278 | |
5005acfe | 9279 | enablestring= |
e6cc62c6 VS |
9280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9281 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9282 | no_cache=0 |
9283 | # Check whether --enable-pnm or --disable-pnm was given. | |
9284 | if test "${enable_pnm+set}" = set; then | |
9285 | enableval="$enable_pnm" | |
e6cc62c6 | 9286 | |
10f2d63a VZ |
9287 | if test "$enableval" = yes; then |
9288 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9289 | else | |
9290 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9291 | fi | |
e6cc62c6 | 9292 | |
10f2d63a | 9293 | else |
e6cc62c6 | 9294 | |
10f2d63a VZ |
9295 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9296 | if test "x$LINE" != x ; then | |
9297 | eval "DEFAULT_$LINE" | |
9298 | else | |
9299 | no_cache=1 | |
9300 | fi | |
9301 | ||
9302 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9303 | |
e6cc62c6 | 9304 | fi; |
10f2d63a VZ |
9305 | |
9306 | eval "$ac_cv_use_pnm" | |
9307 | if test "$no_cache" != 1; then | |
9308 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9309 | fi | |
9310 | ||
9311 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9312 | echo "$as_me:$LINENO: result: yes" >&5 |
9313 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9314 | else |
e6cc62c6 VS |
9315 | echo "$as_me:$LINENO: result: no" >&5 |
9316 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9317 | fi |
e6cc62c6 | 9318 | |
10f2d63a | 9319 | |
5005acfe | 9320 | enablestring= |
e6cc62c6 VS |
9321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9322 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9323 | no_cache=0 |
69d27ff7 MB |
9324 | # Check whether --enable-xpm or --disable-xpm was given. |
9325 | if test "${enable_xpm+set}" = set; then | |
9326 | enableval="$enable_xpm" | |
e6cc62c6 | 9327 | |
0046ff7c | 9328 | if test "$enableval" = yes; then |
69d27ff7 | 9329 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9330 | else |
69d27ff7 | 9331 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9332 | fi |
e6cc62c6 | 9333 | |
0046ff7c | 9334 | else |
e6cc62c6 | 9335 | |
0046ff7c VS |
9336 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9337 | if test "x$LINE" != x ; then | |
9338 | eval "DEFAULT_$LINE" | |
9339 | else | |
9340 | no_cache=1 | |
9341 | fi | |
9342 | ||
69d27ff7 | 9343 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9344 | |
e6cc62c6 | 9345 | fi; |
0046ff7c | 9346 | |
69d27ff7 | 9347 | eval "$ac_cv_use_xpm" |
0046ff7c | 9348 | if test "$no_cache" != 1; then |
69d27ff7 | 9349 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9350 | fi |
9351 | ||
9352 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9353 | echo "$as_me:$LINENO: result: yes" >&5 |
9354 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9355 | else |
e6cc62c6 VS |
9356 | echo "$as_me:$LINENO: result: no" >&5 |
9357 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9358 | fi |
e6cc62c6 | 9359 | |
0046ff7c | 9360 | |
5005acfe | 9361 | enablestring= |
e6cc62c6 VS |
9362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9363 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9364 | no_cache=0 |
c7206e64 VS |
9365 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9366 | if test "${enable_ico_cur+set}" = set; then | |
9367 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9368 | |
658974ae | 9369 | if test "$enableval" = yes; then |
c7206e64 | 9370 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9371 | else |
c7206e64 | 9372 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9373 | fi |
e6cc62c6 | 9374 | |
658974ae | 9375 | else |
e6cc62c6 | 9376 | |
658974ae VS |
9377 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9378 | if test "x$LINE" != x ; then | |
9379 | eval "DEFAULT_$LINE" | |
9380 | else | |
9381 | no_cache=1 | |
9382 | fi | |
9383 | ||
c7206e64 | 9384 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9385 | |
e6cc62c6 | 9386 | fi; |
658974ae | 9387 | |
c7206e64 | 9388 | eval "$ac_cv_use_ico_cur" |
658974ae | 9389 | if test "$no_cache" != 1; then |
c7206e64 | 9390 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9391 | fi |
9392 | ||
9393 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9394 | echo "$as_me:$LINENO: result: yes" >&5 |
9395 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9396 | else |
e6cc62c6 VS |
9397 | echo "$as_me:$LINENO: result: no" >&5 |
9398 | echo "${ECHO_T}no" >&6 | |
658974ae | 9399 | fi |
e6cc62c6 | 9400 | |
658974ae | 9401 | |
b12915c1 VZ |
9402 | fi |
9403 | ||
d558c907 VS |
9404 | case "${host}" in |
9405 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
9406 | PATH_IFS=';' |
9407 | LEX_STEM="lexyy" | |
d558c907 VS |
9408 | ;; |
9409 | *) | |
9410 | PATH_IFS=':' | |
9411 | LEX_STEM="lex.yy" | |
9412 | ;; | |
9413 | esac | |
9414 | ||
8284b0c5 MB |
9415 | |
9416 | ||
10f2d63a VZ |
9417 | echo "saving argument cache $wx_arg_cache_file" |
9418 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9419 | |
8284b0c5 | 9420 | |
e6cc62c6 VS |
9421 | |
9422 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9423 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9424 | |
9425 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9426 | if test "$wxUSE_WINE" = "yes"; then | |
9427 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9428 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9429 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9430 | fi | |
10f2d63a VZ |
9431 | |
9432 | if test "$wxUSE_GUI" = "yes"; then | |
9433 | ||
3a922bb4 | 9434 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9435 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9436 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9437 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9438 | fi |
b12915c1 | 9439 | |
3a922bb4 RL |
9440 | if test "$TOOLKIT_GIVEN" = 1; then |
9441 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9442 | var=wxUSE_$toolkit | |
9443 | eval "value=\$${var}" | |
9444 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9445 | done | |
10f2d63a | 9446 | else |
3a922bb4 RL |
9447 | for toolkit in `echo $ALL_TOOLKITS`; do |
9448 | if test "$has_toolkit_in_cache" != 1; then | |
9449 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9450 | else | |
9451 | var=DEFAULT_wxUSE_$toolkit | |
9452 | fi | |
9453 | eval "wxUSE_$toolkit=\$${var}" | |
9454 | done | |
10f2d63a | 9455 | fi |
10f2d63a | 9456 | |
ac0c4cc3 DE |
9457 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9458 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9459 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9460 | |
d558c907 | 9461 | case "${host}" in |
6fa882bd | 9462 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9463 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9464 | esac |
10f2d63a | 9465 | |
3a922bb4 RL |
9466 | case "$NUM_TOOLKITS" in |
9467 | 1) | |
9468 | ;; | |
9469 | 0) | |
e6cc62c6 VS |
9470 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9471 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9472 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9473 | ;; |
9474 | *) | |
e6cc62c6 VS |
9475 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9476 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9477 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9478 | esac |
10f2d63a | 9479 | |
3a922bb4 RL |
9480 | for toolkit in `echo $ALL_TOOLKITS`; do |
9481 | var=wxUSE_$toolkit | |
9482 | eval "value=\$${var}" | |
9483 | if test "x$value" != x; then | |
9484 | cache_var=CACHE_$toolkit | |
9485 | eval "cache=\$${cache_var}" | |
9486 | if test "$cache" = 1; then | |
9487 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9488 | fi | |
9489 | if test "$value" = 1; then | |
9490 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9491 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9492 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9493 | fi |
9494 | fi | |
9495 | done | |
10f2d63a | 9496 | else |
9de9b8f0 VZ |
9497 | if test "x$host_alias" != "x"; then |
9498 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9499 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9500 | else |
9501 | echo "$as_me:$LINENO: result: base only" >&5 | |
9502 | echo "${ECHO_T}base only" >&6 | |
9503 | fi | |
10f2d63a VZ |
9504 | fi |
9505 | ||
43d99b6d VS |
9506 | wants_win32=0 |
9507 | doesnt_want_win32=0 | |
17234b26 MB |
9508 | case "${host}" in |
9509 | *-*-cygwin*) | |
9510 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9511 | wants_win32=1 |
9512 | else | |
9513 | doesnt_want_win32=1 | |
17234b26 MB |
9514 | fi |
9515 | ;; | |
9516 | *-*-mingw*) | |
43d99b6d | 9517 | wants_win32=1 |
17234b26 MB |
9518 | ;; |
9519 | esac | |
9520 | ||
89e6bf6d VZ |
9521 | if test "$wxUSE_WINE" = "yes"; then |
9522 | wants_win32=1 | |
9523 | CC=winegcc | |
9524 | CXX=wineg++ | |
9525 | RESCOMP=wrc | |
9526 | fi | |
9527 | ||
43d99b6d | 9528 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9529 | USE_UNIX=0 |
9530 | USE_WIN32=1 | |
e6cc62c6 | 9531 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9532 | #define __WIN32__ 1 |
e6cc62c6 | 9533 | _ACEOF |
17234b26 | 9534 | |
e6cc62c6 | 9535 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9536 | #define __WIN95__ 1 |
e6cc62c6 | 9537 | _ACEOF |
17234b26 | 9538 | |
e6cc62c6 | 9539 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9540 | #define __WINDOWS__ 1 |
e6cc62c6 | 9541 | _ACEOF |
17234b26 | 9542 | |
e6cc62c6 | 9543 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9544 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9545 | _ACEOF |
17234b26 | 9546 | |
e6cc62c6 | 9547 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9548 | #define STRICT 1 |
e6cc62c6 | 9549 | _ACEOF |
17234b26 | 9550 | |
e6cc62c6 | 9551 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9552 | #define WINVER 0x0400 |
e6cc62c6 | 9553 | _ACEOF |
17234b26 | 9554 | |
43d99b6d VS |
9555 | fi |
9556 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9557 | USE_UNIX=1 |
9558 | USE_WIN32=0 | |
9559 | fi | |
9560 | ||
9561 | if test "$USE_UNIX" = 1 ; then | |
9562 | wxUSE_UNIX=yes | |
e6cc62c6 | 9563 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9564 | #define __UNIX__ 1 |
e6cc62c6 | 9565 | _ACEOF |
17234b26 MB |
9566 | |
9567 | fi | |
9568 | ||
8284b0c5 | 9569 | |
e6cc62c6 | 9570 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9571 | # This file is a shell script that caches the results of configure |
9572 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9573 | # scripts and configure runs, see configure's option --config-cache. |
9574 | # It is not useful on other systems. If it contains results you don't | |
9575 | # want to keep, you may remove or edit it. | |
10f2d63a | 9576 | # |
e6cc62c6 VS |
9577 | # config.status only pays attention to the cache file if you give it |
9578 | # the --recheck option to rerun configure. | |
10f2d63a | 9579 | # |
e6cc62c6 VS |
9580 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9581 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9582 | # following values. | |
9583 | ||
9584 | _ACEOF | |
9585 | ||
10f2d63a VZ |
9586 | # The following way of writing the cache mishandles newlines in values, |
9587 | # but we know of no workaround that is simple, portable, and efficient. | |
9588 | # So, don't put newlines in cache variables' values. | |
9589 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9590 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9591 | { |
9592 | (set) 2>&1 | | |
9593 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9594 | *ac_space=\ *) | |
9595 | # `set' does not quote correctly, so add quotes (double-quote | |
9596 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9597 | sed -n \ | |
9598 | "s/'/'\\\\''/g; | |
9599 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9600 | ;; | |
9601 | *) | |
9602 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9603 | sed -n \ | |
9604 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9605 | ;; | |
9606 | esac; | |
9607 | } | | |
9608 | sed ' | |
9609 | t clear | |
9610 | : clear | |
9611 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9612 | t end | |
9613 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9614 | : end' >>confcache | |
9615 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9616 | if test -w $cache_file; then |
e6cc62c6 VS |
9617 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9618 | cat confcache >$cache_file | |
10f2d63a VZ |
9619 | else |
9620 | echo "not updating unwritable cache $cache_file" | |
9621 | fi | |
9622 | fi | |
9623 | rm -f confcache | |
9624 | ||
e59890c3 | 9625 | if test "$build" != "$host" ; then |
9d353d4a | 9626 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9627 | CC=$host_alias-gcc |
9628 | CXX=$host_alias-c++ | |
9629 | AR=$host_alias-ar | |
9630 | RANLIB=$host_alias-ranlib | |
9631 | DLLTOOL=$host_alias-dlltool | |
9632 | RESCOMP=$host_alias-windres | |
9633 | LD=$host_alias-ld | |
9634 | NM=$host_alias-nm | |
9635 | STRIP=$host_alias-strip | |
9636 | else | |
e6cc62c6 VS |
9637 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9638 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9639 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9640 | fi |
10f2d63a VZ |
9641 | fi |
9642 | ||
ec603395 | 9643 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9644 | ac_ext=c |
9645 | ac_cpp='$CPP $CPPFLAGS' | |
9646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9649 | if test -n "$ac_tool_prefix"; then | |
9650 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9651 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9654 | if test "${ac_cv_prog_CC+set}" = set; then | |
9655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9656 | else | |
9657 | if test -n "$CC"; then | |
9658 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9659 | else | |
9660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9661 | for as_dir in $PATH | |
9662 | do | |
9663 | IFS=$as_save_IFS | |
9664 | test -z "$as_dir" && as_dir=. | |
9665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9667 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9669 | break 2 | |
9670 | fi | |
9671 | done | |
9672 | done | |
9673 | ||
9674 | fi | |
9675 | fi | |
9676 | CC=$ac_cv_prog_CC | |
9677 | if test -n "$CC"; then | |
9678 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9679 | echo "${ECHO_T}$CC" >&6 | |
9680 | else | |
9681 | echo "$as_me:$LINENO: result: no" >&5 | |
9682 | echo "${ECHO_T}no" >&6 | |
9683 | fi | |
9684 | ||
9685 | fi | |
9686 | if test -z "$ac_cv_prog_CC"; then | |
9687 | ac_ct_CC=$CC | |
9688 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9689 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9692 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9694 | else | |
9695 | if test -n "$ac_ct_CC"; then | |
9696 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9697 | else | |
9698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9699 | for as_dir in $PATH | |
9700 | do | |
9701 | IFS=$as_save_IFS | |
9702 | test -z "$as_dir" && as_dir=. | |
9703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9705 | ac_cv_prog_ac_ct_CC="gcc" | |
9706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9707 | break 2 | |
9708 | fi | |
9709 | done | |
9710 | done | |
9711 | ||
9712 | fi | |
9713 | fi | |
9714 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9715 | if test -n "$ac_ct_CC"; then | |
9716 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9717 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9718 | else | |
9719 | echo "$as_me:$LINENO: result: no" >&5 | |
9720 | echo "${ECHO_T}no" >&6 | |
9721 | fi | |
9722 | ||
9723 | CC=$ac_ct_CC | |
9724 | else | |
9725 | CC="$ac_cv_prog_CC" | |
9726 | fi | |
9727 | ||
9728 | if test -z "$CC"; then | |
9729 | if test -n "$ac_tool_prefix"; then | |
9730 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9731 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9734 | if test "${ac_cv_prog_CC+set}" = set; then | |
9735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9736 | else |
9737 | if test -n "$CC"; then | |
9738 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9739 | else |
e6cc62c6 VS |
9740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9741 | for as_dir in $PATH | |
9742 | do | |
9743 | IFS=$as_save_IFS | |
9744 | test -z "$as_dir" && as_dir=. | |
9745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9747 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9749 | break 2 | |
9750 | fi | |
9751 | done | |
9752 | done | |
9753 | ||
10f2d63a | 9754 | fi |
6232543b | 9755 | fi |
e6cc62c6 | 9756 | CC=$ac_cv_prog_CC |
6232543b | 9757 | if test -n "$CC"; then |
e6cc62c6 VS |
9758 | echo "$as_me:$LINENO: result: $CC" >&5 |
9759 | echo "${ECHO_T}$CC" >&6 | |
9760 | else | |
9761 | echo "$as_me:$LINENO: result: no" >&5 | |
9762 | echo "${ECHO_T}no" >&6 | |
9763 | fi | |
9764 | ||
9765 | fi | |
9766 | if test -z "$ac_cv_prog_CC"; then | |
9767 | ac_ct_CC=$CC | |
9768 | # Extract the first word of "cc", so it can be a program name with args. | |
9769 | set dummy cc; ac_word=$2 | |
9770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9772 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9774 | else | |
9775 | if test -n "$ac_ct_CC"; then | |
9776 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9777 | else | |
9778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9779 | for as_dir in $PATH | |
9780 | do | |
9781 | IFS=$as_save_IFS | |
9782 | test -z "$as_dir" && as_dir=. | |
9783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9785 | ac_cv_prog_ac_ct_CC="cc" | |
9786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9787 | break 2 | |
9788 | fi | |
9789 | done | |
9790 | done | |
9791 | ||
9792 | fi | |
9793 | fi | |
9794 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9795 | if test -n "$ac_ct_CC"; then | |
9796 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9797 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9798 | else | |
9799 | echo "$as_me:$LINENO: result: no" >&5 | |
9800 | echo "${ECHO_T}no" >&6 | |
9801 | fi | |
9802 | ||
9803 | CC=$ac_ct_CC | |
247f5006 | 9804 | else |
e6cc62c6 | 9805 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9806 | fi |
9807 | ||
e6cc62c6 | 9808 | fi |
5c6fa7d2 RR |
9809 | if test -z "$CC"; then |
9810 | # Extract the first word of "cc", so it can be a program name with args. | |
9811 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9814 | if test "${ac_cv_prog_CC+set}" = set; then | |
9815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9816 | else |
9817 | if test -n "$CC"; then | |
9818 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9819 | else | |
9820 | ac_prog_rejected=no | |
e6cc62c6 VS |
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 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9829 | ac_prog_rejected=yes | |
9830 | continue | |
9831 | fi | |
9832 | ac_cv_prog_CC="cc" | |
9833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9834 | break 2 | |
9835 | fi | |
9836 | done | |
9837 | done | |
9838 | ||
328a083c RR |
9839 | if test $ac_prog_rejected = yes; then |
9840 | # We found a bogon in the path, so make sure we never use it. | |
9841 | set dummy $ac_cv_prog_CC | |
9842 | shift | |
e6cc62c6 | 9843 | if test $# != 0; then |
328a083c | 9844 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9845 | # However, it has the same basename, so the bogon will be chosen |
9846 | # first if we set CC to just the basename; use the full file name. | |
9847 | shift | |
e6cc62c6 | 9848 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9849 | fi |
1e487827 VS |
9850 | fi |
9851 | fi | |
9852 | fi | |
e6cc62c6 | 9853 | CC=$ac_cv_prog_CC |
1e487827 | 9854 | if test -n "$CC"; then |
e6cc62c6 VS |
9855 | echo "$as_me:$LINENO: result: $CC" >&5 |
9856 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9857 | else |
e6cc62c6 VS |
9858 | echo "$as_me:$LINENO: result: no" >&5 |
9859 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9860 | fi |
1e487827 | 9861 | |
e6cc62c6 VS |
9862 | fi |
9863 | if test -z "$CC"; then | |
9864 | if test -n "$ac_tool_prefix"; then | |
9865 | for ac_prog in cl | |
9866 | do | |
9867 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9868 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9871 | if test "${ac_cv_prog_CC+set}" = set; then | |
9872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9873 | else |
9874 | if test -n "$CC"; then | |
9875 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9876 | else | |
e6cc62c6 VS |
9877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9878 | for as_dir in $PATH | |
9879 | do | |
9880 | IFS=$as_save_IFS | |
9881 | test -z "$as_dir" && as_dir=. | |
9882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9884 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9886 | break 2 | |
9887 | fi | |
9888 | done | |
9889 | done | |
9890 | ||
f09359cf VS |
9891 | fi |
9892 | fi | |
e6cc62c6 | 9893 | CC=$ac_cv_prog_CC |
f09359cf | 9894 | if test -n "$CC"; then |
e6cc62c6 VS |
9895 | echo "$as_me:$LINENO: result: $CC" >&5 |
9896 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 9897 | else |
e6cc62c6 VS |
9898 | echo "$as_me:$LINENO: result: no" >&5 |
9899 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 9900 | fi |
1e487827 | 9901 | |
e6cc62c6 VS |
9902 | test -n "$CC" && break |
9903 | done | |
9904 | fi | |
9905 | if test -z "$CC"; then | |
9906 | ac_ct_CC=$CC | |
9907 | for ac_prog in cl | |
9908 | do | |
9909 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9910 | set dummy $ac_prog; ac_word=$2 | |
9911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9913 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9915 | else | |
9916 | if test -n "$ac_ct_CC"; then | |
9917 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9918 | else | |
9919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9920 | for as_dir in $PATH | |
9921 | do | |
9922 | IFS=$as_save_IFS | |
9923 | test -z "$as_dir" && as_dir=. | |
9924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9926 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
9927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9928 | break 2 | |
9929 | fi | |
9930 | done | |
9931 | done | |
f09359cf | 9932 | |
e6cc62c6 VS |
9933 | fi |
9934 | fi | |
9935 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9936 | if test -n "$ac_ct_CC"; then | |
9937 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9938 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9939 | else | |
9940 | echo "$as_me:$LINENO: result: no" >&5 | |
9941 | echo "${ECHO_T}no" >&6 | |
9942 | fi | |
f09359cf | 9943 | |
e6cc62c6 VS |
9944 | test -n "$ac_ct_CC" && break |
9945 | done | |
247f5006 | 9946 | |
e6cc62c6 VS |
9947 | CC=$ac_ct_CC |
9948 | fi | |
9949 | ||
9950 | fi | |
9951 | ||
9952 | ||
9953 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
9954 | See \`config.log' for more details." >&5 | |
9955 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
9956 | See \`config.log' for more details." >&2;} | |
9957 | { (exit 1); exit 1; }; } | |
9958 | ||
9959 | # Provide some information about the compiler. | |
9960 | echo "$as_me:$LINENO:" \ | |
9961 | "checking for C compiler version" >&5 | |
9962 | ac_compiler=`set X $ac_compile; echo $2` | |
9963 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
9964 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
9965 | ac_status=$? | |
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9967 | (exit $ac_status); } | |
9968 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
9969 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
9970 | ac_status=$? | |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9972 | (exit $ac_status); } | |
9973 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
9974 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
9975 | ac_status=$? | |
9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9977 | (exit $ac_status); } | |
9978 | ||
9979 | cat >conftest.$ac_ext <<_ACEOF | |
9980 | #line $LINENO "configure" | |
9981 | /* confdefs.h. */ | |
9982 | _ACEOF | |
9983 | cat confdefs.h >>conftest.$ac_ext | |
9984 | cat >>conftest.$ac_ext <<_ACEOF | |
9985 | /* end confdefs.h. */ | |
9986 | ||
9987 | int | |
9988 | main () | |
9989 | { | |
247f5006 | 9990 | |
e6cc62c6 VS |
9991 | ; |
9992 | return 0; | |
9993 | } | |
9994 | _ACEOF | |
9995 | ac_clean_files_save=$ac_clean_files | |
9996 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
9997 | # Try to create an executable without -o first, disregard a.out. | |
9998 | # It will help us diagnose broken compilers, and finding out an intuition | |
9999 | # of exeext. | |
10000 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10001 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10002 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10003 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10004 | (eval $ac_link_default) 2>&5 | |
10005 | ac_status=$? | |
10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10007 | (exit $ac_status); }; then | |
10008 | # Find the output, starting from the most likely. This scheme is | |
10009 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10010 | # resort. | |
10011 | ||
10012 | # Be careful to initialize this variable, since it used to be cached. | |
10013 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10014 | ac_cv_exeext= | |
10015 | # b.out is created by i960 compilers. | |
10016 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10017 | do | |
10018 | test -f "$ac_file" || continue | |
10019 | case $ac_file in | |
10020 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10021 | ;; | |
10022 | conftest.$ac_ext ) | |
10023 | # This is the source file. | |
10024 | ;; | |
10025 | [ab].out ) | |
10026 | # We found the default executable, but exeext='' is most | |
10027 | # certainly right. | |
10028 | break;; | |
10029 | *.* ) | |
10030 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10031 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10032 | # but it would be cool to find out if it's true. Does anybody | |
10033 | # maintain Libtool? --akim. | |
10034 | export ac_cv_exeext | |
10035 | break;; | |
10036 | * ) | |
10037 | break;; | |
10038 | esac | |
10039 | done | |
10040 | else | |
10041 | echo "$as_me: failed program was:" >&5 | |
10042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10043 | ||
10044 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10045 | See \`config.log' for more details." >&5 | |
10046 | echo "$as_me: error: C compiler cannot create executables | |
10047 | See \`config.log' for more details." >&2;} | |
10048 | { (exit 77); exit 77; }; } | |
10049 | fi | |
10050 | ||
10051 | ac_exeext=$ac_cv_exeext | |
10052 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10053 | echo "${ECHO_T}$ac_file" >&6 | |
10054 | ||
10055 | # Check the compiler produces executables we can run. If not, either | |
10056 | # the compiler is broken, or we cross compile. | |
10057 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10058 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10059 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10060 | # If not cross compiling, check that we can run a simple program. | |
10061 | if test "$cross_compiling" != yes; then | |
10062 | if { ac_try='./$ac_file' | |
10063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10064 | (eval $ac_try) 2>&5 | |
10065 | ac_status=$? | |
10066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10067 | (exit $ac_status); }; }; then | |
10068 | cross_compiling=no | |
698dcdb6 | 10069 | else |
e6cc62c6 VS |
10070 | if test "$cross_compiling" = maybe; then |
10071 | cross_compiling=yes | |
10072 | else | |
10073 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10074 | If you meant to cross compile, use \`--host'. | |
10075 | See \`config.log' for more details." >&5 | |
10076 | echo "$as_me: error: cannot run C compiled programs. | |
10077 | If you meant to cross compile, use \`--host'. | |
10078 | See \`config.log' for more details." >&2;} | |
10079 | { (exit 1); exit 1; }; } | |
10080 | fi | |
698dcdb6 | 10081 | fi |
52127426 | 10082 | fi |
e6cc62c6 VS |
10083 | echo "$as_me:$LINENO: result: yes" >&5 |
10084 | echo "${ECHO_T}yes" >&6 | |
10085 | ||
10086 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10087 | ac_clean_files=$ac_clean_files_save | |
10088 | # Check the compiler produces executables we can run. If not, either | |
10089 | # the compiler is broken, or we cross compile. | |
10090 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10091 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10092 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10093 | echo "${ECHO_T}$cross_compiling" >&6 | |
10094 | ||
10095 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10096 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10098 | (eval $ac_link) 2>&5 | |
10099 | ac_status=$? | |
10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10101 | (exit $ac_status); }; then | |
10102 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10103 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10104 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10105 | # `rm'. | |
10106 | for ac_file in conftest.exe conftest conftest.*; do | |
10107 | test -f "$ac_file" || continue | |
10108 | case $ac_file in | |
10109 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10110 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10111 | export ac_cv_exeext | |
10112 | break;; | |
10113 | * ) break;; | |
10114 | esac | |
10115 | done | |
5c6fa7d2 | 10116 | else |
e6cc62c6 VS |
10117 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10118 | See \`config.log' for more details." >&5 | |
10119 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10120 | See \`config.log' for more details." >&2;} | |
10121 | { (exit 1); exit 1; }; } | |
10122 | fi | |
10123 | ||
10124 | rm -f conftest$ac_cv_exeext | |
10125 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10126 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10127 | ||
10128 | rm -f conftest.$ac_ext | |
10129 | EXEEXT=$ac_cv_exeext | |
10130 | ac_exeext=$EXEEXT | |
10131 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10132 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10133 | if test "${ac_cv_objext+set}" = set; then | |
10134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10135 | else | |
10136 | cat >conftest.$ac_ext <<_ACEOF | |
10137 | #line $LINENO "configure" | |
10138 | /* confdefs.h. */ | |
10139 | _ACEOF | |
10140 | cat confdefs.h >>conftest.$ac_ext | |
10141 | cat >>conftest.$ac_ext <<_ACEOF | |
10142 | /* end confdefs.h. */ | |
10143 | ||
10144 | int | |
10145 | main () | |
10146 | { | |
f09359cf | 10147 | |
e6cc62c6 VS |
10148 | ; |
10149 | return 0; | |
10150 | } | |
10151 | _ACEOF | |
10152 | rm -f conftest.o conftest.obj | |
10153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10154 | (eval $ac_compile) 2>&5 | |
10155 | ac_status=$? | |
10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10157 | (exit $ac_status); }; then | |
10158 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10159 | case $ac_file in | |
10160 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10161 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10162 | break;; | |
10163 | esac | |
10164 | done | |
a0b9e27f | 10165 | else |
e6cc62c6 VS |
10166 | echo "$as_me: failed program was:" >&5 |
10167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10168 | ||
10169 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10170 | See \`config.log' for more details." >&5 | |
10171 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10172 | See \`config.log' for more details." >&2;} | |
10173 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10174 | fi |
247f5006 | 10175 | |
e6cc62c6 VS |
10176 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10177 | fi | |
10178 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10179 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10180 | OBJEXT=$ac_cv_objext | |
10181 | ac_objext=$OBJEXT | |
10182 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10183 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10184 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10186 | else |
e6cc62c6 VS |
10187 | cat >conftest.$ac_ext <<_ACEOF |
10188 | #line $LINENO "configure" | |
10189 | /* confdefs.h. */ | |
10190 | _ACEOF | |
10191 | cat confdefs.h >>conftest.$ac_ext | |
10192 | cat >>conftest.$ac_ext <<_ACEOF | |
10193 | /* end confdefs.h. */ | |
10194 | ||
10195 | int | |
10196 | main () | |
10197 | { | |
10198 | #ifndef __GNUC__ | |
10199 | choke me | |
10200 | #endif | |
10201 | ||
10202 | ; | |
10203 | return 0; | |
10204 | } | |
10205 | _ACEOF | |
10206 | rm -f conftest.$ac_objext | |
10207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10208 | (eval $ac_compile) 2>&5 | |
10209 | ac_status=$? | |
10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10211 | (exit $ac_status); } && | |
10212 | { ac_try='test -s conftest.$ac_objext' | |
10213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10214 | (eval $ac_try) 2>&5 | |
10215 | ac_status=$? | |
10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10217 | (exit $ac_status); }; }; then | |
10218 | ac_compiler_gnu=yes | |
10219 | else | |
10220 | echo "$as_me: failed program was:" >&5 | |
10221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10222 | ||
10223 | ac_compiler_gnu=no | |
10224 | fi | |
10225 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10226 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10227 | ||
10228 | fi | |
10229 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10230 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10231 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10232 | ac_test_CFLAGS=${CFLAGS+set} | |
10233 | ac_save_CFLAGS=$CFLAGS | |
10234 | CFLAGS="-g" | |
10235 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10236 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10237 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10239 | else | |
10240 | cat >conftest.$ac_ext <<_ACEOF | |
10241 | #line $LINENO "configure" | |
10242 | /* confdefs.h. */ | |
10243 | _ACEOF | |
10244 | cat confdefs.h >>conftest.$ac_ext | |
10245 | cat >>conftest.$ac_ext <<_ACEOF | |
10246 | /* end confdefs.h. */ | |
10247 | ||
10248 | int | |
10249 | main () | |
10250 | { | |
10251 | ||
10252 | ; | |
10253 | return 0; | |
10254 | } | |
10255 | _ACEOF | |
10256 | rm -f conftest.$ac_objext | |
10257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10258 | (eval $ac_compile) 2>&5 | |
10259 | ac_status=$? | |
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10261 | (exit $ac_status); } && | |
10262 | { ac_try='test -s conftest.$ac_objext' | |
10263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10264 | (eval $ac_try) 2>&5 | |
10265 | ac_status=$? | |
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10267 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10268 | ac_cv_prog_cc_g=yes |
10269 | else | |
e6cc62c6 VS |
10270 | echo "$as_me: failed program was:" >&5 |
10271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10272 | |
e6cc62c6 | 10273 | ac_cv_prog_cc_g=no |
10f2d63a | 10274 | fi |
e6cc62c6 VS |
10275 | rm -f conftest.$ac_objext conftest.$ac_ext |
10276 | fi | |
10277 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10278 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10279 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10280 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10281 | elif test $ac_cv_prog_cc_g = yes; then |
10282 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10283 | CFLAGS="-g -O2" |
10284 | else | |
f09359cf | 10285 | CFLAGS="-g" |
10f2d63a | 10286 | fi |
5c0a20c3 | 10287 | else |
f09359cf VS |
10288 | if test "$GCC" = yes; then |
10289 | CFLAGS="-O2" | |
10290 | else | |
10291 | CFLAGS= | |
10292 | fi | |
10f2d63a | 10293 | fi |
e6cc62c6 VS |
10294 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10295 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10296 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10298 | else | |
10299 | ac_cv_prog_cc_stdc=no | |
10300 | ac_save_CC=$CC | |
10301 | cat >conftest.$ac_ext <<_ACEOF | |
10302 | #line $LINENO "configure" | |
10303 | /* confdefs.h. */ | |
10304 | _ACEOF | |
10305 | cat confdefs.h >>conftest.$ac_ext | |
10306 | cat >>conftest.$ac_ext <<_ACEOF | |
10307 | /* end confdefs.h. */ | |
10308 | #include <stdarg.h> | |
10309 | #include <stdio.h> | |
10310 | #include <sys/types.h> | |
10311 | #include <sys/stat.h> | |
10312 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10313 | struct buf { int x; }; | |
10314 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10315 | static char *e (p, i) | |
10316 | char **p; | |
10317 | int i; | |
10318 | { | |
10319 | return p[i]; | |
10320 | } | |
10321 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10322 | { | |
10323 | char *s; | |
10324 | va_list v; | |
10325 | va_start (v,p); | |
10326 | s = g (p, va_arg (v,int)); | |
10327 | va_end (v); | |
10328 | return s; | |
10329 | } | |
10330 | int test (int i, double x); | |
10331 | struct s1 {int (*f) (int a);}; | |
10332 | struct s2 {int (*f) (double a);}; | |
10333 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10334 | int argc; | |
10335 | char **argv; | |
10336 | int | |
10337 | main () | |
10338 | { | |
10339 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10340 | ; | |
10341 | return 0; | |
10342 | } | |
10343 | _ACEOF | |
10344 | # Don't try gcc -ansi; that turns off useful extensions and | |
10345 | # breaks some systems' header files. | |
10346 | # AIX -qlanglvl=ansi | |
10347 | # Ultrix and OSF/1 -std1 | |
10348 | # HP-UX 10.20 and later -Ae | |
10349 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10350 | # SVR4 -Xc -D__EXTENSIONS__ | |
10351 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10352 | do | |
10353 | CC="$ac_save_CC $ac_arg" | |
10354 | rm -f conftest.$ac_objext | |
10355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10356 | (eval $ac_compile) 2>&5 | |
10357 | ac_status=$? | |
10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10359 | (exit $ac_status); } && | |
10360 | { ac_try='test -s conftest.$ac_objext' | |
10361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10362 | (eval $ac_try) 2>&5 | |
10363 | ac_status=$? | |
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10365 | (exit $ac_status); }; }; then | |
10366 | ac_cv_prog_cc_stdc=$ac_arg | |
10367 | break | |
10368 | else | |
10369 | echo "$as_me: failed program was:" >&5 | |
10370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10371 | ||
10372 | fi | |
10373 | rm -f conftest.$ac_objext | |
10374 | done | |
10375 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10376 | CC=$ac_save_CC | |
10377 | ||
10378 | fi | |
10379 | ||
10380 | case "x$ac_cv_prog_cc_stdc" in | |
10381 | x|xno) | |
10382 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10383 | echo "${ECHO_T}none needed" >&6 ;; | |
10384 | *) | |
10385 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10386 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10387 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10388 | esac | |
10389 | ||
10390 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10391 | # in C++ we need to declare it. In case someone uses the same compiler | |
10392 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10393 | # the declaration of exit, since it's the most demanding environment. | |
10394 | cat >conftest.$ac_ext <<_ACEOF | |
10395 | #ifndef __cplusplus | |
10396 | choke me | |
10397 | #endif | |
10398 | _ACEOF | |
10399 | rm -f conftest.$ac_objext | |
10400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10401 | (eval $ac_compile) 2>&5 | |
10402 | ac_status=$? | |
10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10404 | (exit $ac_status); } && | |
10405 | { ac_try='test -s conftest.$ac_objext' | |
10406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10407 | (eval $ac_try) 2>&5 | |
10408 | ac_status=$? | |
10409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10410 | (exit $ac_status); }; }; then | |
10411 | for ac_declaration in \ | |
6f628073 VS |
10412 | ''\ |
10413 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10414 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10415 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10416 | 'extern "C" void exit (int) throw ();' \ | |
10417 | 'extern "C" void exit (int);' \ | |
10418 | 'void exit (int);' | |
10419 | do | |
10420 | cat >conftest.$ac_ext <<_ACEOF | |
10421 | #line $LINENO "configure" | |
10422 | /* confdefs.h. */ | |
10423 | _ACEOF | |
10424 | cat confdefs.h >>conftest.$ac_ext | |
10425 | cat >>conftest.$ac_ext <<_ACEOF | |
10426 | /* end confdefs.h. */ | |
71e83a03 | 10427 | #include <stdlib.h> |
6f628073 | 10428 | $ac_declaration |
e6cc62c6 VS |
10429 | int |
10430 | main () | |
10431 | { | |
10432 | exit (42); | |
10433 | ; | |
10434 | return 0; | |
10435 | } | |
10436 | _ACEOF | |
10437 | rm -f conftest.$ac_objext | |
10438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10439 | (eval $ac_compile) 2>&5 | |
10440 | ac_status=$? | |
10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10442 | (exit $ac_status); } && | |
10443 | { ac_try='test -s conftest.$ac_objext' | |
10444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10445 | (eval $ac_try) 2>&5 | |
10446 | ac_status=$? | |
10447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10448 | (exit $ac_status); }; }; then | |
10449 | : | |
10450 | else | |
10451 | echo "$as_me: failed program was:" >&5 | |
10452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10453 | ||
10454 | continue | |
10455 | fi | |
10456 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10457 | cat >conftest.$ac_ext <<_ACEOF | |
10458 | #line $LINENO "configure" | |
10459 | /* confdefs.h. */ | |
10460 | _ACEOF | |
10461 | cat confdefs.h >>conftest.$ac_ext | |
10462 | cat >>conftest.$ac_ext <<_ACEOF | |
10463 | /* end confdefs.h. */ | |
10464 | $ac_declaration | |
10465 | int | |
10466 | main () | |
10467 | { | |
10468 | exit (42); | |
10469 | ; | |
10470 | return 0; | |
10471 | } | |
10472 | _ACEOF | |
10473 | rm -f conftest.$ac_objext | |
10474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10475 | (eval $ac_compile) 2>&5 | |
10476 | ac_status=$? | |
10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10478 | (exit $ac_status); } && | |
10479 | { ac_try='test -s conftest.$ac_objext' | |
10480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10481 | (eval $ac_try) 2>&5 | |
10482 | ac_status=$? | |
10483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10484 | (exit $ac_status); }; }; then | |
10485 | break | |
10486 | else | |
10487 | echo "$as_me: failed program was:" >&5 | |
10488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10489 | ||
10490 | fi | |
10491 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10492 | done | |
10493 | rm -f conftest* | |
10494 | if test -n "$ac_declaration"; then | |
10495 | echo '#ifdef __cplusplus' >>confdefs.h | |
10496 | echo $ac_declaration >>confdefs.h | |
10497 | echo '#endif' >>confdefs.h | |
10498 | fi | |
10499 | ||
10500 | else | |
10501 | echo "$as_me: failed program was:" >&5 | |
10502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10503 | ||
10504 | fi | |
10505 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10506 | ac_ext=c | |
10507 | ac_cpp='$CPP $CPPFLAGS' | |
10508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10511 | |
10512 | ||
e6cc62c6 VS |
10513 | |
10514 | ac_ext=c | |
10515 | ac_cpp='$CPP $CPPFLAGS' | |
10516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10519 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10520 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10521 | # On Suns, sometimes $CPP names a directory. |
10522 | if test -n "$CPP" && test -d "$CPP"; then | |
10523 | CPP= | |
10524 | fi | |
10525 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10526 | if test "${ac_cv_prog_CPP+set}" = set; then |
10527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10528 | else | |
10529 | # Double quotes because CPP needs to be expanded | |
10530 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10531 | do | |
10532 | ac_preproc_ok=false | |
10533 | for ac_c_preproc_warn_flag in '' yes | |
10534 | do | |
10535 | # Use a header file that comes with gcc, so configuring glibc | |
10536 | # with a fresh cross-compiler works. | |
10537 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10538 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10539 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10540 | # not just through cpp. "Syntax error" is here to catch this case. |
10541 | cat >conftest.$ac_ext <<_ACEOF | |
10542 | #line $LINENO "configure" | |
10543 | /* confdefs.h. */ | |
10544 | _ACEOF | |
10545 | cat confdefs.h >>conftest.$ac_ext | |
10546 | cat >>conftest.$ac_ext <<_ACEOF | |
10547 | /* end confdefs.h. */ | |
10548 | #ifdef __STDC__ | |
10549 | # include <limits.h> | |
10550 | #else | |
10551 | # include <assert.h> | |
10552 | #endif | |
10553 | Syntax error | |
10554 | _ACEOF | |
10555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10557 | ac_status=$? | |
10558 | grep -v '^ *+' conftest.er1 >conftest.err | |
10559 | rm -f conftest.er1 | |
10560 | cat conftest.err >&5 | |
10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10562 | (exit $ac_status); } >/dev/null; then | |
10563 | if test -s conftest.err; then | |
10564 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10565 | else | |
10566 | ac_cpp_err= | |
10567 | fi | |
10f2d63a | 10568 | else |
e6cc62c6 VS |
10569 | ac_cpp_err=yes |
10570 | fi | |
10571 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10572 | : |
247f5006 | 10573 | else |
e6cc62c6 VS |
10574 | echo "$as_me: failed program was:" >&5 |
10575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10576 | ||
10577 | # Broken: fails on valid input. | |
10578 | continue | |
10579 | fi | |
10580 | rm -f conftest.err conftest.$ac_ext | |
10581 | ||
10582 | # OK, works on sane cases. Now check whether non-existent headers | |
10583 | # can be detected and how. | |
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 | #include <ac_nonexistent.h> | |
10592 | _ACEOF | |
10593 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10594 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10595 | ac_status=$? | |
10596 | grep -v '^ *+' conftest.er1 >conftest.err | |
10597 | rm -f conftest.er1 | |
10598 | cat conftest.err >&5 | |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); } >/dev/null; then | |
10601 | if test -s conftest.err; then | |
10602 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10603 | else | |
10604 | ac_cpp_err= | |
10605 | fi | |
10f2d63a | 10606 | else |
e6cc62c6 | 10607 | ac_cpp_err=yes |
579d8138 | 10608 | fi |
e6cc62c6 VS |
10609 | if test -z "$ac_cpp_err"; then |
10610 | # Broken: success on invalid input. | |
10611 | continue | |
10612 | else | |
10613 | echo "$as_me: failed program was:" >&5 | |
10614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10615 | ||
10616 | # Passes both tests. | |
10617 | ac_preproc_ok=: | |
10618 | break | |
52127426 | 10619 | fi |
e6cc62c6 VS |
10620 | rm -f conftest.err conftest.$ac_ext |
10621 | ||
10622 | done | |
10623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10624 | rm -f conftest.err conftest.$ac_ext | |
10625 | if $ac_preproc_ok; then | |
10626 | break | |
8284b0c5 | 10627 | fi |
e6cc62c6 VS |
10628 | |
10629 | done | |
10630 | ac_cv_prog_CPP=$CPP | |
10631 | ||
10632 | fi | |
10633 | CPP=$ac_cv_prog_CPP | |
10634 | else | |
10635 | ac_cv_prog_CPP=$CPP | |
10636 | fi | |
10637 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10638 | echo "${ECHO_T}$CPP" >&6 | |
10639 | ac_preproc_ok=false | |
10640 | for ac_c_preproc_warn_flag in '' yes | |
10641 | do | |
10642 | # Use a header file that comes with gcc, so configuring glibc | |
10643 | # with a fresh cross-compiler works. | |
10644 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10645 | # <limits.h> exists even on freestanding compilers. | |
10646 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10647 | # not just through cpp. "Syntax error" is here to catch this case. | |
10648 | cat >conftest.$ac_ext <<_ACEOF | |
10649 | #line $LINENO "configure" | |
10650 | /* confdefs.h. */ | |
10651 | _ACEOF | |
10652 | cat confdefs.h >>conftest.$ac_ext | |
10653 | cat >>conftest.$ac_ext <<_ACEOF | |
10654 | /* end confdefs.h. */ | |
10655 | #ifdef __STDC__ | |
10656 | # include <limits.h> | |
10657 | #else | |
10658 | # include <assert.h> | |
10659 | #endif | |
10660 | Syntax error | |
10661 | _ACEOF | |
10662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10664 | ac_status=$? | |
10665 | grep -v '^ *+' conftest.er1 >conftest.err | |
10666 | rm -f conftest.er1 | |
10667 | cat conftest.err >&5 | |
10668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10669 | (exit $ac_status); } >/dev/null; then | |
10670 | if test -s conftest.err; then | |
10671 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10672 | else | |
10673 | ac_cpp_err= | |
10674 | fi | |
10675 | else | |
10676 | ac_cpp_err=yes | |
10677 | fi | |
10678 | if test -z "$ac_cpp_err"; then | |
10679 | : | |
10680 | else | |
10681 | echo "$as_me: failed program was:" >&5 | |
10682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10683 | ||
10684 | # Broken: fails on valid input. | |
10685 | continue | |
10686 | fi | |
10687 | rm -f conftest.err conftest.$ac_ext | |
10688 | ||
10689 | # OK, works on sane cases. Now check whether non-existent headers | |
10690 | # can be detected and how. | |
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 | #include <ac_nonexistent.h> | |
10699 | _ACEOF | |
10700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10702 | ac_status=$? | |
10703 | grep -v '^ *+' conftest.er1 >conftest.err | |
10704 | rm -f conftest.er1 | |
10705 | cat conftest.err >&5 | |
10706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10707 | (exit $ac_status); } >/dev/null; then | |
10708 | if test -s conftest.err; then | |
10709 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10710 | else | |
10711 | ac_cpp_err= | |
10712 | fi | |
10713 | else | |
10714 | ac_cpp_err=yes | |
10715 | fi | |
10716 | if test -z "$ac_cpp_err"; then | |
10717 | # Broken: success on invalid input. | |
10718 | continue | |
10719 | else | |
10720 | echo "$as_me: failed program was:" >&5 | |
10721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10722 | ||
10723 | # Passes both tests. | |
10724 | ac_preproc_ok=: | |
10725 | break | |
a0b9e27f | 10726 | fi |
e6cc62c6 VS |
10727 | rm -f conftest.err conftest.$ac_ext |
10728 | ||
10729 | done | |
10730 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10731 | rm -f conftest.err conftest.$ac_ext | |
10732 | if $ac_preproc_ok; then | |
10733 | : | |
10734 | else | |
10735 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10736 | See \`config.log' for more details." >&5 | |
10737 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10738 | See \`config.log' for more details." >&2;} | |
10739 | { (exit 1); exit 1; }; } | |
10740 | fi | |
10741 | ||
10742 | ac_ext=c | |
10743 | ac_cpp='$CPP $CPPFLAGS' | |
10744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10747 | ||
10748 | ||
10749 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10750 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10751 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10753 | else |
e6cc62c6 VS |
10754 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10755 | then ac_cv_prog_egrep='grep -E' | |
10756 | else ac_cv_prog_egrep='egrep' | |
10757 | fi | |
10f2d63a | 10758 | fi |
e6cc62c6 VS |
10759 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10760 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10761 | EGREP=$ac_cv_prog_egrep | |
10762 | ||
10f2d63a | 10763 | |
e6cc62c6 VS |
10764 | if test $ac_cv_c_compiler_gnu = yes; then |
10765 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10766 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10767 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10769 | else |
10770 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10771 | cat >conftest.$ac_ext <<_ACEOF |
10772 | #line $LINENO "configure" | |
10773 | /* confdefs.h. */ | |
10774 | _ACEOF | |
10775 | cat confdefs.h >>conftest.$ac_ext | |
10776 | cat >>conftest.$ac_ext <<_ACEOF | |
10777 | /* end confdefs.h. */ | |
10f2d63a VZ |
10778 | #include <sgtty.h> |
10779 | Autoconf TIOCGETP | |
e6cc62c6 | 10780 | _ACEOF |
10f2d63a | 10781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10782 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10783 | ac_cv_prog_gcc_traditional=yes |
10784 | else | |
10f2d63a VZ |
10785 | ac_cv_prog_gcc_traditional=no |
10786 | fi | |
10787 | rm -f conftest* | |
10788 | ||
8284b0c5 | 10789 | |
10f2d63a | 10790 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10791 | cat >conftest.$ac_ext <<_ACEOF |
10792 | #line $LINENO "configure" | |
10793 | /* confdefs.h. */ | |
10794 | _ACEOF | |
10795 | cat confdefs.h >>conftest.$ac_ext | |
10796 | cat >>conftest.$ac_ext <<_ACEOF | |
10797 | /* end confdefs.h. */ | |
10f2d63a VZ |
10798 | #include <termio.h> |
10799 | Autoconf TCGETA | |
e6cc62c6 | 10800 | _ACEOF |
10f2d63a | 10801 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10802 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10803 | ac_cv_prog_gcc_traditional=yes |
10804 | fi | |
10805 | rm -f conftest* | |
10806 | ||
10807 | fi | |
10808 | fi | |
e6cc62c6 VS |
10809 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10810 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10811 | if test $ac_cv_prog_gcc_traditional = yes; then |
10812 | CC="$CC -traditional" | |
10813 | fi | |
10814 | fi | |
10815 | ||
8284b0c5 MB |
10816 | |
10817 | ||
e6cc62c6 VS |
10818 | |
10819 | ac_ext=cc | |
1e487827 | 10820 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10821 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10822 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10823 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10824 | |
698dcdb6 | 10825 | |
ec603395 | 10826 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10827 | ac_ext=cc |
10828 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10832 | if test -n "$ac_tool_prefix"; then | |
10833 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10834 | do | |
10835 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10836 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10839 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10841 | else |
10842 | if test -n "$CXX"; then | |
10843 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10844 | else | |
e6cc62c6 VS |
10845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10846 | for as_dir in $PATH | |
10847 | do | |
10848 | IFS=$as_save_IFS | |
10849 | test -z "$as_dir" && as_dir=. | |
10850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10852 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10854 | break 2 | |
10855 | fi | |
10856 | done | |
10857 | done | |
10858 | ||
10f2d63a VZ |
10859 | fi |
10860 | fi | |
e6cc62c6 | 10861 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10862 | if test -n "$CXX"; then |
e6cc62c6 VS |
10863 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10864 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10865 | else |
e6cc62c6 VS |
10866 | echo "$as_me:$LINENO: result: no" >&5 |
10867 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10868 | fi |
10869 | ||
e6cc62c6 VS |
10870 | test -n "$CXX" && break |
10871 | done | |
10872 | fi | |
10873 | if test -z "$CXX"; then | |
10874 | ac_ct_CXX=$CXX | |
10875 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10876 | do | |
10877 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10878 | set dummy $ac_prog; ac_word=$2 | |
10879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10881 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10883 | else | |
10884 | if test -n "$ac_ct_CXX"; then | |
10885 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10886 | else | |
10887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10888 | for as_dir in $PATH | |
10889 | do | |
10890 | IFS=$as_save_IFS | |
10891 | test -z "$as_dir" && as_dir=. | |
10892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10894 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10896 | break 2 | |
10897 | fi | |
10898 | done | |
10f2d63a | 10899 | done |
a0b9e27f | 10900 | |
8284b0c5 | 10901 | fi |
a0b9e27f | 10902 | fi |
e6cc62c6 VS |
10903 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10904 | if test -n "$ac_ct_CXX"; then | |
10905 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10906 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
10907 | else | |
10908 | echo "$as_me:$LINENO: result: no" >&5 | |
10909 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 10910 | fi |
10f2d63a | 10911 | |
e6cc62c6 VS |
10912 | test -n "$ac_ct_CXX" && break |
10913 | done | |
10914 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10915 | ||
10916 | CXX=$ac_ct_CXX | |
10917 | fi | |
10918 | ||
10919 | ||
10920 | # Provide some information about the compiler. | |
10921 | echo "$as_me:$LINENO:" \ | |
10922 | "checking for C++ compiler version" >&5 | |
10923 | ac_compiler=`set X $ac_compile; echo $2` | |
10924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10925 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10926 | ac_status=$? | |
10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); } | |
10929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10930 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10931 | ac_status=$? | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); } | |
10934 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10935 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10936 | ac_status=$? | |
10937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10938 | (exit $ac_status); } | |
10939 | ||
10940 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
10941 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
10942 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
10943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10944 | else | |
10945 | cat >conftest.$ac_ext <<_ACEOF | |
10946 | #line $LINENO "configure" | |
10947 | /* confdefs.h. */ | |
10948 | _ACEOF | |
10949 | cat confdefs.h >>conftest.$ac_ext | |
10950 | cat >>conftest.$ac_ext <<_ACEOF | |
10951 | /* end confdefs.h. */ | |
10952 | ||
10953 | int | |
10954 | main () | |
10955 | { | |
10956 | #ifndef __GNUC__ | |
10957 | choke me | |
10958 | #endif | |
10f2d63a | 10959 | |
e6cc62c6 VS |
10960 | ; |
10961 | return 0; | |
10962 | } | |
10963 | _ACEOF | |
10964 | rm -f conftest.$ac_objext | |
10965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10966 | (eval $ac_compile) 2>&5 | |
10967 | ac_status=$? | |
10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10969 | (exit $ac_status); } && | |
10970 | { ac_try='test -s conftest.$ac_objext' | |
10971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10972 | (eval $ac_try) 2>&5 | |
10973 | ac_status=$? | |
10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10975 | (exit $ac_status); }; }; then | |
10976 | ac_compiler_gnu=yes | |
10977 | else | |
10978 | echo "$as_me: failed program was:" >&5 | |
10979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10980 | ||
10981 | ac_compiler_gnu=no | |
10982 | fi | |
10983 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10984 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10985 | ||
10986 | fi | |
10987 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10988 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
10989 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
10990 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10991 | ac_save_CXXFLAGS=$CXXFLAGS | |
10992 | CXXFLAGS="-g" | |
10993 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
10994 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
10995 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
10996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10997 | else | |
10998 | cat >conftest.$ac_ext <<_ACEOF | |
10999 | #line $LINENO "configure" | |
11000 | /* confdefs.h. */ | |
11001 | _ACEOF | |
11002 | cat confdefs.h >>conftest.$ac_ext | |
11003 | cat >>conftest.$ac_ext <<_ACEOF | |
11004 | /* end confdefs.h. */ | |
11005 | ||
11006 | int | |
11007 | main () | |
11008 | { | |
f09359cf | 11009 | |
e6cc62c6 VS |
11010 | ; |
11011 | return 0; | |
11012 | } | |
11013 | _ACEOF | |
11014 | rm -f conftest.$ac_objext | |
11015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11016 | (eval $ac_compile) 2>&5 | |
11017 | ac_status=$? | |
11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11019 | (exit $ac_status); } && | |
11020 | { ac_try='test -s conftest.$ac_objext' | |
11021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11022 | (eval $ac_try) 2>&5 | |
11023 | ac_status=$? | |
11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11025 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11026 | ac_cv_prog_cxx_g=yes |
11027 | else | |
e6cc62c6 VS |
11028 | echo "$as_me: failed program was:" >&5 |
11029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11030 | |
e6cc62c6 | 11031 | ac_cv_prog_cxx_g=no |
10f2d63a | 11032 | fi |
e6cc62c6 VS |
11033 | rm -f conftest.$ac_objext conftest.$ac_ext |
11034 | fi | |
11035 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11036 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11037 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11038 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11039 | elif test $ac_cv_prog_cxx_g = yes; then |
11040 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11041 | CXXFLAGS="-g -O2" |
11042 | else | |
f09359cf | 11043 | CXXFLAGS="-g" |
10f2d63a | 11044 | fi |
5c0a20c3 | 11045 | else |
f09359cf VS |
11046 | if test "$GXX" = yes; then |
11047 | CXXFLAGS="-O2" | |
11048 | else | |
11049 | CXXFLAGS= | |
11050 | fi | |
10f2d63a | 11051 | fi |
e6cc62c6 | 11052 | for ac_declaration in \ |
6f628073 VS |
11053 | ''\ |
11054 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11055 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11056 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11057 | 'extern "C" void exit (int) throw ();' \ | |
11058 | 'extern "C" void exit (int);' \ | |
11059 | 'void exit (int);' | |
11060 | do | |
11061 | cat >conftest.$ac_ext <<_ACEOF | |
11062 | #line $LINENO "configure" | |
11063 | /* confdefs.h. */ | |
11064 | _ACEOF | |
11065 | cat confdefs.h >>conftest.$ac_ext | |
11066 | cat >>conftest.$ac_ext <<_ACEOF | |
11067 | /* end confdefs.h. */ | |
71e83a03 | 11068 | #include <stdlib.h> |
6f628073 | 11069 | $ac_declaration |
e6cc62c6 VS |
11070 | int |
11071 | main () | |
11072 | { | |
11073 | exit (42); | |
11074 | ; | |
11075 | return 0; | |
11076 | } | |
11077 | _ACEOF | |
11078 | rm -f conftest.$ac_objext | |
11079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11080 | (eval $ac_compile) 2>&5 | |
11081 | ac_status=$? | |
11082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11083 | (exit $ac_status); } && | |
11084 | { ac_try='test -s conftest.$ac_objext' | |
11085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11086 | (eval $ac_try) 2>&5 | |
11087 | ac_status=$? | |
11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11089 | (exit $ac_status); }; }; then | |
11090 | : | |
11091 | else | |
11092 | echo "$as_me: failed program was:" >&5 | |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11094 | ||
11095 | continue | |
11096 | fi | |
11097 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11098 | cat >conftest.$ac_ext <<_ACEOF | |
11099 | #line $LINENO "configure" | |
11100 | /* confdefs.h. */ | |
11101 | _ACEOF | |
11102 | cat confdefs.h >>conftest.$ac_ext | |
11103 | cat >>conftest.$ac_ext <<_ACEOF | |
11104 | /* end confdefs.h. */ | |
11105 | $ac_declaration | |
11106 | int | |
11107 | main () | |
11108 | { | |
11109 | exit (42); | |
11110 | ; | |
11111 | return 0; | |
11112 | } | |
11113 | _ACEOF | |
11114 | rm -f conftest.$ac_objext | |
11115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11116 | (eval $ac_compile) 2>&5 | |
11117 | ac_status=$? | |
11118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11119 | (exit $ac_status); } && | |
11120 | { ac_try='test -s conftest.$ac_objext' | |
11121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11122 | (eval $ac_try) 2>&5 | |
11123 | ac_status=$? | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11125 | (exit $ac_status); }; }; then | |
11126 | break | |
11127 | else | |
11128 | echo "$as_me: failed program was:" >&5 | |
11129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11130 | ||
11131 | fi | |
11132 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11133 | done | |
11134 | rm -f conftest* | |
11135 | if test -n "$ac_declaration"; then | |
11136 | echo '#ifdef __cplusplus' >>confdefs.h | |
11137 | echo $ac_declaration >>confdefs.h | |
11138 | echo '#endif' >>confdefs.h | |
11139 | fi | |
11140 | ||
11141 | ac_ext=cc | |
11142 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11143 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11144 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11145 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11146 | |
11147 | ||
10f2d63a | 11148 | ac_ext=c |
10f2d63a | 11149 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11153 | |
11154 | ||
e6cc62c6 VS |
11155 | if test -n "$ac_tool_prefix"; then |
11156 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11157 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11160 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11162 | else |
11163 | if test -n "$RANLIB"; then | |
11164 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11165 | else | |
e6cc62c6 VS |
11166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11167 | for as_dir in $PATH | |
11168 | do | |
11169 | IFS=$as_save_IFS | |
11170 | test -z "$as_dir" && as_dir=. | |
11171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11173 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11175 | break 2 | |
11176 | fi | |
11177 | done | |
11178 | done | |
11179 | ||
10f2d63a VZ |
11180 | fi |
11181 | fi | |
e6cc62c6 | 11182 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11183 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11184 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11185 | echo "${ECHO_T}$RANLIB" >&6 | |
11186 | else | |
11187 | echo "$as_me:$LINENO: result: no" >&5 | |
11188 | echo "${ECHO_T}no" >&6 | |
11189 | fi | |
11190 | ||
11191 | fi | |
11192 | if test -z "$ac_cv_prog_RANLIB"; then | |
11193 | ac_ct_RANLIB=$RANLIB | |
11194 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11195 | set dummy ranlib; ac_word=$2 | |
11196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11198 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11200 | else |
e6cc62c6 VS |
11201 | if test -n "$ac_ct_RANLIB"; then |
11202 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11203 | else | |
11204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11205 | for as_dir in $PATH | |
11206 | do | |
11207 | IFS=$as_save_IFS | |
11208 | test -z "$as_dir" && as_dir=. | |
11209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11211 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11213 | break 2 | |
11214 | fi | |
11215 | done | |
11216 | done | |
11217 | ||
11218 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11219 | fi | |
11220 | fi | |
11221 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11222 | if test -n "$ac_ct_RANLIB"; then | |
11223 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11224 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11225 | else | |
11226 | echo "$as_me:$LINENO: result: no" >&5 | |
11227 | echo "${ECHO_T}no" >&6 | |
11228 | fi | |
11229 | ||
11230 | RANLIB=$ac_ct_RANLIB | |
11231 | else | |
11232 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11233 | fi |
11234 | ||
10f2d63a VZ |
11235 | |
11236 | # Extract the first word of "ar", so it can be a program name with args. | |
11237 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11240 | if test "${ac_cv_prog_AR+set}" = set; then | |
11241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11242 | else |
11243 | if test -n "$AR"; then | |
11244 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11245 | else | |
e6cc62c6 VS |
11246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11247 | for as_dir in $PATH | |
11248 | do | |
11249 | IFS=$as_save_IFS | |
11250 | test -z "$as_dir" && as_dir=. | |
11251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11253 | ac_cv_prog_AR="ar" | |
11254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11255 | break 2 | |
11256 | fi | |
11257 | done | |
11258 | done | |
11259 | ||
10f2d63a VZ |
11260 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
11261 | fi | |
11262 | fi | |
e6cc62c6 | 11263 | AR=$ac_cv_prog_AR |
10f2d63a | 11264 | if test -n "$AR"; then |
e6cc62c6 VS |
11265 | echo "$as_me:$LINENO: result: $AR" >&5 |
11266 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11267 | else |
e6cc62c6 VS |
11268 | echo "$as_me:$LINENO: result: no" >&5 |
11269 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11270 | fi |
11271 | ||
8284b0c5 | 11272 | |
6054113a | 11273 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11274 | # so one script is as good as another. But avoid the broken or |
11275 | # incompatible versions: | |
11276 | # SysV /etc/install, /usr/sbin/install | |
11277 | # SunOS /usr/etc/install | |
11278 | # IRIX /sbin/install | |
11279 | # AIX /bin/install | |
e6cc62c6 | 11280 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11281 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11282 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11283 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11284 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11285 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11286 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11287 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11288 | if test "${ac_cv_path_install+set}" = set; then |
11289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11290 | else | |
11291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11292 | for as_dir in $PATH | |
11293 | do | |
11294 | IFS=$as_save_IFS | |
11295 | test -z "$as_dir" && as_dir=. | |
11296 | # Account for people who put trailing slashes in PATH elements. | |
11297 | case $as_dir/ in | |
11298 | ./ | .// | /cC/* | \ | |
11299 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11300 | /usr/ucb/* ) ;; | |
11301 | *) | |
11302 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11303 | # Don't use installbsd from OSF since it installs stuff as root | |
11304 | # by default. | |
11305 | for ac_prog in ginstall scoinst install; do | |
11306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11307 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11308 | if test $ac_prog = install && | |
11309 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11310 | # AIX install. It has an incompatible calling convention. | |
11311 | : | |
11312 | elif test $ac_prog = install && | |
11313 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11314 | # program-specific install script used by HP pwplus--don't use. | |
11315 | : | |
11316 | else | |
11317 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11318 | break 3 | |
11319 | fi | |
11320 | fi | |
10f2d63a | 11321 | done |
e6cc62c6 VS |
11322 | done |
11323 | ;; | |
11324 | esac | |
11325 | done | |
11326 | ||
10f2d63a VZ |
11327 | |
11328 | fi | |
11329 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11330 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11331 | else |
11332 | # As a last resort, use the slow shell script. We don't cache a | |
11333 | # path for INSTALL within a source directory, because that will | |
11334 | # break other packages using the cache if that directory is | |
11335 | # removed, or if the path is relative. | |
e6cc62c6 | 11336 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11337 | fi |
11338 | fi | |
e6cc62c6 VS |
11339 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11340 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11341 | |
11342 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11343 | # It thinks the first close brace ends the variable substitution. | |
11344 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11345 | ||
e6cc62c6 | 11346 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11347 | |
10f2d63a VZ |
11348 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11349 | ||
8284b0c5 | 11350 | |
1d1b75ac VZ |
11351 | case ${INSTALL} in |
11352 | /* ) # Absolute | |
11353 | ;; | |
4f5a7f74 VZ |
11354 | ?:* ) # Drive letter, considered as absolute. |
11355 | ;; | |
3bd8fb5f | 11356 | *) |
1d1b75ac VZ |
11357 | INSTALL=`pwd`/${INSTALL} ;; |
11358 | esac | |
11359 | ||
4f5a7f74 VZ |
11360 | case ${host} in |
11361 | *-hp-hpux* ) | |
11362 | INSTALL_DIR="mkdir" | |
11363 | ;; | |
11364 | ||
11365 | *) INSTALL_DIR="$INSTALL -d" | |
11366 | ;; | |
11367 | esac | |
11368 | ||
8284b0c5 | 11369 | |
6054113a GD |
11370 | case "${host}" in |
11371 | ||
b5853384 | 11372 | powerpc-*-darwin* ) |
eb99ae0b GD |
11373 | INSTALL_PROGRAM="cp -fp" |
11374 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11375 | ;; |
11376 | *) | |
11377 | ;; | |
d6853540 | 11378 | esac |
698dcdb6 | 11379 | |
10f2d63a VZ |
11380 | # Extract the first word of "strip", so it can be a program name with args. |
11381 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11384 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11386 | else |
11387 | if test -n "$STRIP"; then | |
11388 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11389 | else | |
e6cc62c6 VS |
11390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11391 | for as_dir in $PATH | |
11392 | do | |
11393 | IFS=$as_save_IFS | |
11394 | test -z "$as_dir" && as_dir=. | |
11395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11397 | ac_cv_prog_STRIP="strip" | |
11398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11399 | break 2 | |
11400 | fi | |
11401 | done | |
11402 | done | |
11403 | ||
10f2d63a VZ |
11404 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11405 | fi | |
11406 | fi | |
e6cc62c6 | 11407 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11408 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11409 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11410 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11411 | else |
e6cc62c6 VS |
11412 | echo "$as_me:$LINENO: result: no" >&5 |
11413 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11414 | fi |
11415 | ||
5c6fa7d2 | 11416 | |
e6cc62c6 VS |
11417 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11418 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11419 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11421 | else |
e6cc62c6 | 11422 | |
414eab6d | 11423 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11424 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11425 | wx_cv_prog_makeisgnu="yes" |
11426 | else | |
11427 | wx_cv_prog_makeisgnu="no" | |
11428 | fi | |
11429 | ||
11430 | fi | |
e6cc62c6 VS |
11431 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11432 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11433 | |
11434 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11435 | IF_GNU_MAKE="" | |
11436 | else | |
11437 | IF_GNU_MAKE="#" | |
11438 | fi | |
11439 | ||
8284b0c5 MB |
11440 | |
11441 | ||
414eab6d | 11442 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11443 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11444 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11445 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11447 | else |
e6cc62c6 | 11448 | |
10f2d63a VZ |
11449 | cat - << EOF > confMake |
11450 | check : file | |
11451 | cp \$? \$@ | |
11452 | cp \$? final_file | |
11453 | EOF | |
11454 | ||
11455 | if test ! -d sub ; then | |
11456 | mkdir sub | |
11457 | fi | |
11458 | echo dummy > sub/file | |
f6bcfd97 | 11459 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11460 | RESULT=$? |
11461 | rm -f sub/file check final_file confMake | |
11462 | rmdir sub | |
11463 | if test "$RESULT" = 0; then | |
04e7a216 | 11464 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11465 | else |
04e7a216 VZ |
11466 | wx_cv_prog_makevpath="no" |
11467 | fi | |
11468 | ||
11469 | fi | |
e6cc62c6 VS |
11470 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11471 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11472 | |
11473 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11474 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11475 | You need a make-utility that is able to use the variable |
11476 | VPATH correctly. | |
11477 | If your version of make does not support VPATH correctly, | |
11478 | please install GNU-make (possibly as gmake), and start | |
11479 | configure with the following command: | |
11480 | export MAKE=gmake; ./configure for sh-type shells | |
11481 | setenv MAKE gmake; ./configure for csh-type shells | |
11482 | Also please do remember to use gmake in this case every time | |
11483 | you are trying to compile. | |
e6cc62c6 VS |
11484 | " >&5 |
11485 | echo "$as_me: error: | |
11486 | You need a make-utility that is able to use the variable | |
11487 | VPATH correctly. | |
11488 | If your version of make does not support VPATH correctly, | |
11489 | please install GNU-make (possibly as gmake), and start | |
11490 | configure with the following command: | |
11491 | export MAKE=gmake; ./configure for sh-type shells | |
11492 | setenv MAKE gmake; ./configure for csh-type shells | |
11493 | Also please do remember to use gmake in this case every time | |
11494 | you are trying to compile. | |
11495 | " >&2;} | |
11496 | { (exit 1); exit 1; }; } | |
11497 | fi fi | |
10f2d63a VZ |
11498 | for ac_prog in 'bison -y' byacc |
11499 | do | |
e6cc62c6 | 11500 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 11501 | set dummy $ac_prog; ac_word=$2 |
e6cc62c6 VS |
11502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11504 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11506 | else |
11507 | if test -n "$YACC"; then | |
11508 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11509 | else | |
e6cc62c6 VS |
11510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11511 | for as_dir in $PATH | |
11512 | do | |
11513 | IFS=$as_save_IFS | |
11514 | test -z "$as_dir" && as_dir=. | |
11515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11517 | ac_cv_prog_YACC="$ac_prog" | |
11518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11519 | break 2 | |
11520 | fi | |
11521 | done | |
11522 | done | |
11523 | ||
10f2d63a VZ |
11524 | fi |
11525 | fi | |
e6cc62c6 | 11526 | YACC=$ac_cv_prog_YACC |
10f2d63a | 11527 | if test -n "$YACC"; then |
e6cc62c6 VS |
11528 | echo "$as_me:$LINENO: result: $YACC" >&5 |
11529 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 11530 | else |
e6cc62c6 VS |
11531 | echo "$as_me:$LINENO: result: no" >&5 |
11532 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11533 | fi |
11534 | ||
e6cc62c6 | 11535 | test -n "$YACC" && break |
10f2d63a VZ |
11536 | done |
11537 | test -n "$YACC" || YACC="yacc" | |
11538 | ||
8284b0c5 | 11539 | |
e6cc62c6 VS |
11540 | for ac_prog in flex lex |
11541 | do | |
11542 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11543 | set dummy $ac_prog; ac_word=$2 | |
11544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11546 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11548 | else |
11549 | if test -n "$LEX"; then | |
11550 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11551 | else | |
e6cc62c6 VS |
11552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11553 | for as_dir in $PATH | |
11554 | do | |
11555 | IFS=$as_save_IFS | |
11556 | test -z "$as_dir" && as_dir=. | |
11557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11559 | ac_cv_prog_LEX="$ac_prog" | |
11560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11561 | break 2 | |
11562 | fi | |
11563 | done | |
11564 | done | |
11565 | ||
10f2d63a VZ |
11566 | fi |
11567 | fi | |
e6cc62c6 | 11568 | LEX=$ac_cv_prog_LEX |
10f2d63a | 11569 | if test -n "$LEX"; then |
e6cc62c6 VS |
11570 | echo "$as_me:$LINENO: result: $LEX" >&5 |
11571 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 11572 | else |
e6cc62c6 VS |
11573 | echo "$as_me:$LINENO: result: no" >&5 |
11574 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11575 | fi |
11576 | ||
e6cc62c6 VS |
11577 | test -n "$LEX" && break |
11578 | done | |
11579 | test -n "$LEX" || LEX=":" | |
11580 | ||
10f2d63a VZ |
11581 | if test -z "$LEXLIB" |
11582 | then | |
e6cc62c6 VS |
11583 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
11584 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11585 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11587 | else | |
11588 | ac_check_lib_save_LIBS=$LIBS | |
11589 | LIBS="-lfl $LIBS" | |
11590 | cat >conftest.$ac_ext <<_ACEOF | |
11591 | #line $LINENO "configure" | |
11592 | /* confdefs.h. */ | |
11593 | _ACEOF | |
11594 | cat confdefs.h >>conftest.$ac_ext | |
11595 | cat >>conftest.$ac_ext <<_ACEOF | |
11596 | /* end confdefs.h. */ | |
11597 | ||
11598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11599 | #ifdef __cplusplus | |
11600 | extern "C" | |
11601 | #endif | |
11602 | /* We use char because int might match the return type of a gcc2 | |
11603 | builtin and then its argument prototype would still apply. */ | |
11604 | char yywrap (); | |
11605 | int | |
11606 | main () | |
11607 | { | |
11608 | yywrap (); | |
11609 | ; | |
11610 | return 0; | |
11611 | } | |
11612 | _ACEOF | |
11613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11615 | (eval $ac_link) 2>&5 | |
11616 | ac_status=$? | |
11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11618 | (exit $ac_status); } && | |
11619 | { ac_try='test -s conftest$ac_exeext' | |
11620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11621 | (eval $ac_try) 2>&5 | |
11622 | ac_status=$? | |
11623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11624 | (exit $ac_status); }; }; then | |
11625 | ac_cv_lib_fl_yywrap=yes | |
11626 | else | |
11627 | echo "$as_me: failed program was:" >&5 | |
11628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11629 | ||
11630 | ac_cv_lib_fl_yywrap=no | |
11631 | fi | |
11632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11633 | LIBS=$ac_check_lib_save_LIBS | |
11634 | fi | |
11635 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11636 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11637 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11638 | LEXLIB="-lfl" | |
11639 | else | |
11640 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11641 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11642 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11644 | else | |
11645 | ac_check_lib_save_LIBS=$LIBS | |
11646 | LIBS="-ll $LIBS" | |
11647 | cat >conftest.$ac_ext <<_ACEOF | |
11648 | #line $LINENO "configure" | |
11649 | /* confdefs.h. */ | |
11650 | _ACEOF | |
11651 | cat confdefs.h >>conftest.$ac_ext | |
11652 | cat >>conftest.$ac_ext <<_ACEOF | |
11653 | /* end confdefs.h. */ | |
11654 | ||
247f5006 | 11655 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11656 | #ifdef __cplusplus |
11657 | extern "C" | |
11658 | #endif | |
247f5006 | 11659 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11660 | builtin and then its argument prototype would still apply. */ |
11661 | char yywrap (); | |
11662 | int | |
11663 | main () | |
11664 | { | |
11665 | yywrap (); | |
11666 | ; | |
11667 | return 0; | |
11668 | } | |
11669 | _ACEOF | |
11670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11672 | (eval $ac_link) 2>&5 | |
11673 | ac_status=$? | |
11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11675 | (exit $ac_status); } && | |
11676 | { ac_try='test -s conftest$ac_exeext' | |
11677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11678 | (eval $ac_try) 2>&5 | |
11679 | ac_status=$? | |
11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11681 | (exit $ac_status); }; }; then | |
11682 | ac_cv_lib_l_yywrap=yes | |
11683 | else | |
11684 | echo "$as_me: failed program was:" >&5 | |
11685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11686 | ||
11687 | ac_cv_lib_l_yywrap=no | |
11688 | fi | |
11689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11690 | LIBS=$ac_check_lib_save_LIBS | |
11691 | fi | |
11692 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11693 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11694 | if test $ac_cv_lib_l_yywrap = yes; then | |
11695 | LEXLIB="-ll" | |
11696 | fi | |
10f2d63a | 11697 | |
10f2d63a | 11698 | fi |
8284b0c5 | 11699 | |
10f2d63a | 11700 | fi |
e6cc62c6 VS |
11701 | |
11702 | if test "x$LEX" != "x:"; then | |
11703 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11704 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11705 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11707 | else | |
11708 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11709 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11710 | cat >conftest.l <<_ACEOF | |
11711 | %% | |
11712 | %% | |
11713 | _ACEOF | |
11714 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11715 | (eval $LEX conftest.l) 2>&5 | |
11716 | ac_status=$? | |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); } | |
11719 | if test -f lex.yy.c; then | |
11720 | ac_cv_prog_lex_root=lex.yy | |
11721 | elif test -f lexyy.c; then | |
11722 | ac_cv_prog_lex_root=lexyy | |
8284b0c5 | 11723 | else |
e6cc62c6 VS |
11724 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
11725 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11726 | { (exit 1); exit 1; }; } | |
10f2d63a | 11727 | fi |
a0b9e27f | 11728 | fi |
e6cc62c6 VS |
11729 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
11730 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11731 | rm -f conftest.l | |
11732 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
10f2d63a | 11733 | |
e6cc62c6 VS |
11734 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
11735 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11736 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11738 | else |
e6cc62c6 VS |
11739 | # POSIX says lex can declare yytext either as a pointer or an array; the |
11740 | # default is implementation-dependent. Figure out which it is, since | |
11741 | # not all implementations provide the %pointer and %array declarations. | |
11742 | ac_cv_prog_lex_yytext_pointer=no | |
11743 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11744 | ac_save_LIBS=$LIBS | |
11745 | LIBS="$LIBS $LEXLIB" | |
11746 | cat >conftest.$ac_ext <<_ACEOF | |
11747 | `cat $LEX_OUTPUT_ROOT.c` | |
11748 | _ACEOF | |
11749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11751 | (eval $ac_link) 2>&5 | |
11752 | ac_status=$? | |
11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11754 | (exit $ac_status); } && | |
11755 | { ac_try='test -s conftest$ac_exeext' | |
11756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11757 | (eval $ac_try) 2>&5 | |
11758 | ac_status=$? | |
11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11760 | (exit $ac_status); }; }; then | |
11761 | ac_cv_prog_lex_yytext_pointer=yes | |
10f2d63a | 11762 | else |
e6cc62c6 VS |
11763 | echo "$as_me: failed program was:" >&5 |
11764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11765 | ||
10f2d63a | 11766 | fi |
e6cc62c6 VS |
11767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
11768 | LIBS=$ac_save_LIBS | |
11769 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11770 | ||
11771 | fi | |
11772 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11773 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11774 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11775 | ||
11776 | cat >>confdefs.h <<\_ACEOF | |
11777 | #define YYTEXT_POINTER 1 | |
11778 | _ACEOF | |
11779 | ||
a0b9e27f | 11780 | fi |
e6cc62c6 VS |
11781 | |
11782 | fi | |
11783 | ||
11784 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11785 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11786 | LN_S=$as_ln_s | |
11787 | if test "$LN_S" = "ln -s"; then | |
11788 | echo "$as_me:$LINENO: result: yes" >&5 | |
11789 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11790 | else |
e6cc62c6 VS |
11791 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11792 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11793 | fi |
5c6fa7d2 | 11794 | |
247f5006 | 11795 | |
2b5f62a0 VZ |
11796 | case "${host}" in |
11797 | *-pc-os2_emx | *-pc-os2-emx ) | |
11798 | LIBS="$LIBS -lstdcpp" | |
11799 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
e6cc62c6 VS |
11800 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11801 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11802 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11804 | else |
e6cc62c6 | 11805 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11806 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11807 | cat >conftest.$ac_ext <<_ACEOF |
11808 | #line $LINENO "configure" | |
11809 | /* confdefs.h. */ | |
11810 | _ACEOF | |
11811 | cat confdefs.h >>conftest.$ac_ext | |
11812 | cat >>conftest.$ac_ext <<_ACEOF | |
11813 | /* end confdefs.h. */ | |
11814 | ||
2b5f62a0 | 11815 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11816 | #ifdef __cplusplus |
11817 | extern "C" | |
11818 | #endif | |
2b5f62a0 | 11819 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11820 | builtin and then its argument prototype would still apply. */ |
11821 | char drand48 (); | |
11822 | int | |
11823 | main () | |
11824 | { | |
11825 | drand48 (); | |
11826 | ; | |
11827 | return 0; | |
11828 | } | |
11829 | _ACEOF | |
11830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11832 | (eval $ac_link) 2>&5 | |
11833 | ac_status=$? | |
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11835 | (exit $ac_status); } && | |
11836 | { ac_try='test -s conftest$ac_exeext' | |
11837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11838 | (eval $ac_try) 2>&5 | |
11839 | ac_status=$? | |
11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11841 | (exit $ac_status); }; }; then | |
11842 | ac_cv_lib_cExt_drand48=yes | |
11843 | else | |
11844 | echo "$as_me: failed program was:" >&5 | |
11845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11846 | ||
11847 | ac_cv_lib_cExt_drand48=no | |
11848 | fi | |
11849 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11850 | LIBS=$ac_check_lib_save_LIBS | |
11851 | fi | |
11852 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11853 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11854 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11855 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11856 | fi |
11857 | ||
11858 | else | |
11859 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11860 | fi | |
11861 | ;; | |
11862 | esac | |
11863 | ||
a0b9e27f | 11864 | |
01aa5863 VS |
11865 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11866 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11867 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11868 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11870 | else | |
11871 | ac_cv_header_strings_h=no | |
11872 | fi | |
11873 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11874 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11875 | if test "$ac_cv_header_strings_h" = "no"; then | |
11876 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11877 | echo "${ECHO_T}forced no into cache" >&6 | |
11878 | else | |
11879 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11880 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11881 | fi | |
11882 | fi | |
11883 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11884 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11885 | if test "${ac_cv_header_stdc+set}" = set; then | |
11886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11887 | else | |
11888 | cat >conftest.$ac_ext <<_ACEOF | |
11889 | #line $LINENO "configure" | |
11890 | /* confdefs.h. */ | |
11891 | _ACEOF | |
11892 | cat confdefs.h >>conftest.$ac_ext | |
11893 | cat >>conftest.$ac_ext <<_ACEOF | |
11894 | /* end confdefs.h. */ | |
11895 | #include <stdlib.h> | |
11896 | #include <stdarg.h> | |
11897 | #include <string.h> | |
11898 | #include <float.h> | |
247f5006 | 11899 | |
e6cc62c6 VS |
11900 | int |
11901 | main () | |
11902 | { | |
90dd450c | 11903 | |
e6cc62c6 VS |
11904 | ; |
11905 | return 0; | |
11906 | } | |
11907 | _ACEOF | |
11908 | rm -f conftest.$ac_objext | |
11909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11910 | (eval $ac_compile) 2>&5 | |
11911 | ac_status=$? | |
11912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11913 | (exit $ac_status); } && | |
11914 | { ac_try='test -s conftest.$ac_objext' | |
11915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11916 | (eval $ac_try) 2>&5 | |
11917 | ac_status=$? | |
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11919 | (exit $ac_status); }; }; then | |
11920 | ac_cv_header_stdc=yes | |
8284b0c5 | 11921 | else |
e6cc62c6 VS |
11922 | echo "$as_me: failed program was:" >&5 |
11923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11924 | ||
11925 | ac_cv_header_stdc=no | |
21d1c967 | 11926 | fi |
e6cc62c6 | 11927 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11928 | |
e6cc62c6 VS |
11929 | if test $ac_cv_header_stdc = yes; then |
11930 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
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 <string.h> | |
11939 | ||
11940 | _ACEOF | |
11941 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11942 | $EGREP "memchr" >/dev/null 2>&1; then | |
11943 | : | |
11944 | else | |
11945 | ac_cv_header_stdc=no | |
3a922bb4 | 11946 | fi |
a0b9e27f | 11947 | rm -f conftest* |
e6cc62c6 | 11948 | |
90dd450c | 11949 | fi |
e6cc62c6 VS |
11950 | |
11951 | if test $ac_cv_header_stdc = yes; then | |
11952 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11953 | cat >conftest.$ac_ext <<_ACEOF | |
11954 | #line $LINENO "configure" | |
11955 | /* confdefs.h. */ | |
11956 | _ACEOF | |
11957 | cat confdefs.h >>conftest.$ac_ext | |
11958 | cat >>conftest.$ac_ext <<_ACEOF | |
11959 | /* end confdefs.h. */ | |
11960 | #include <stdlib.h> | |
11961 | ||
11962 | _ACEOF | |
11963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11964 | $EGREP "free" >/dev/null 2>&1; then | |
11965 | : | |
a0b9e27f | 11966 | else |
e6cc62c6 | 11967 | ac_cv_header_stdc=no |
21d1c967 | 11968 | fi |
e6cc62c6 | 11969 | rm -f conftest* |
247f5006 VZ |
11970 | |
11971 | fi | |
e6cc62c6 VS |
11972 | |
11973 | if test $ac_cv_header_stdc = yes; then | |
11974 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11975 | if test "$cross_compiling" = yes; then | |
11976 | : | |
11977 | else | |
11978 | cat >conftest.$ac_ext <<_ACEOF | |
11979 | #line $LINENO "configure" | |
11980 | /* confdefs.h. */ | |
11981 | _ACEOF | |
11982 | cat confdefs.h >>conftest.$ac_ext | |
11983 | cat >>conftest.$ac_ext <<_ACEOF | |
11984 | /* end confdefs.h. */ | |
11985 | #include <ctype.h> | |
11986 | #if ((' ' & 0x0FF) == 0x020) | |
11987 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11988 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11989 | #else | |
11990 | # define ISLOWER(c) \ | |
11991 | (('a' <= (c) && (c) <= 'i') \ | |
11992 | || ('j' <= (c) && (c) <= 'r') \ | |
11993 | || ('s' <= (c) && (c) <= 'z')) | |
11994 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11995 | #endif | |
11996 | ||
11997 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11998 | int | |
11999 | main () | |
12000 | { | |
12001 | int i; | |
12002 | for (i = 0; i < 256; i++) | |
12003 | if (XOR (islower (i), ISLOWER (i)) | |
12004 | || toupper (i) != TOUPPER (i)) | |
12005 | exit(2); | |
12006 | exit (0); | |
12007 | } | |
12008 | _ACEOF | |
12009 | rm -f conftest$ac_exeext | |
12010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12011 | (eval $ac_link) 2>&5 | |
12012 | ac_status=$? | |
12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12016 | (eval $ac_try) 2>&5 | |
12017 | ac_status=$? | |
12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12019 | (exit $ac_status); }; }; then | |
12020 | : | |
a0b9e27f | 12021 | else |
e6cc62c6 VS |
12022 | echo "$as_me: program exited with status $ac_status" >&5 |
12023 | echo "$as_me: failed program was:" >&5 | |
12024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12025 | ||
12026 | ( exit $ac_status ) | |
12027 | ac_cv_header_stdc=no | |
12028 | fi | |
12029 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12030 | fi | |
12031 | fi | |
12032 | fi | |
12033 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12034 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12035 | if test $ac_cv_header_stdc = yes; then | |
12036 | ||
12037 | cat >>confdefs.h <<\_ACEOF | |
12038 | #define STDC_HEADERS 1 | |
12039 | _ACEOF | |
12040 | ||
a0b9e27f | 12041 | fi |
e6cc62c6 VS |
12042 | |
12043 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12044 | ||
12045 | ||
12046 | ||
12047 | ||
12048 | ||
12049 | ||
12050 | ||
12051 | ||
12052 | ||
12053 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12054 | inttypes.h stdint.h unistd.h | |
12055 | do | |
12056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12057 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12061 | else | |
12062 | cat >conftest.$ac_ext <<_ACEOF | |
12063 | #line $LINENO "configure" | |
12064 | /* confdefs.h. */ | |
12065 | _ACEOF | |
12066 | cat confdefs.h >>conftest.$ac_ext | |
12067 | cat >>conftest.$ac_ext <<_ACEOF | |
12068 | /* end confdefs.h. */ | |
12069 | $ac_includes_default | |
12070 | ||
12071 | #include <$ac_header> | |
12072 | _ACEOF | |
12073 | rm -f conftest.$ac_objext | |
12074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12075 | (eval $ac_compile) 2>&5 | |
12076 | ac_status=$? | |
12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12078 | (exit $ac_status); } && | |
12079 | { ac_try='test -s conftest.$ac_objext' | |
12080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12081 | (eval $ac_try) 2>&5 | |
12082 | ac_status=$? | |
12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12084 | (exit $ac_status); }; }; then | |
12085 | eval "$as_ac_Header=yes" | |
12086 | else | |
12087 | echo "$as_me: failed program was:" >&5 | |
12088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12089 | ||
12090 | eval "$as_ac_Header=no" | |
12091 | fi | |
12092 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12093 | fi | |
12094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12097 | cat >>confdefs.h <<_ACEOF | |
12098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12099 | _ACEOF | |
12100 | ||
12101 | fi | |
12102 | ||
a0b9e27f | 12103 | done |
90dd450c | 12104 | |
e6cc62c6 VS |
12105 | |
12106 | ||
12107 | for ac_header in strings.h | |
21d1c967 | 12108 | do |
e6cc62c6 VS |
12109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12115 | fi | |
12116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12117 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12118 | else | |
12119 | # Is the header compilable? | |
12120 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12121 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12122 | cat >conftest.$ac_ext <<_ACEOF | |
12123 | #line $LINENO "configure" | |
12124 | /* confdefs.h. */ | |
12125 | _ACEOF | |
12126 | cat confdefs.h >>conftest.$ac_ext | |
12127 | cat >>conftest.$ac_ext <<_ACEOF | |
12128 | /* end confdefs.h. */ | |
12129 | $ac_includes_default | |
12130 | #include <$ac_header> | |
12131 | _ACEOF | |
12132 | rm -f conftest.$ac_objext | |
12133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12134 | (eval $ac_compile) 2>&5 | |
12135 | ac_status=$? | |
12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12137 | (exit $ac_status); } && | |
12138 | { ac_try='test -s conftest.$ac_objext' | |
12139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12140 | (eval $ac_try) 2>&5 | |
12141 | ac_status=$? | |
12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12143 | (exit $ac_status); }; }; then | |
12144 | ac_header_compiler=yes | |
12145 | else | |
12146 | echo "$as_me: failed program was:" >&5 | |
12147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12148 | ||
12149 | ac_header_compiler=no | |
12150 | fi | |
12151 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12152 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12153 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12154 | ||
12155 | # Is the header present? | |
12156 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12157 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12158 | cat >conftest.$ac_ext <<_ACEOF | |
12159 | #line $LINENO "configure" | |
12160 | /* confdefs.h. */ | |
12161 | _ACEOF | |
12162 | cat confdefs.h >>conftest.$ac_ext | |
12163 | cat >>conftest.$ac_ext <<_ACEOF | |
12164 | /* end confdefs.h. */ | |
12165 | #include <$ac_header> | |
12166 | _ACEOF | |
12167 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12168 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12169 | ac_status=$? | |
12170 | grep -v '^ *+' conftest.er1 >conftest.err | |
12171 | rm -f conftest.er1 | |
12172 | cat conftest.err >&5 | |
12173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12174 | (exit $ac_status); } >/dev/null; then | |
12175 | if test -s conftest.err; then | |
12176 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12177 | else | |
12178 | ac_cpp_err= | |
12179 | fi | |
12180 | else | |
12181 | ac_cpp_err=yes | |
12182 | fi | |
12183 | if test -z "$ac_cpp_err"; then | |
12184 | ac_header_preproc=yes | |
12185 | else | |
12186 | echo "$as_me: failed program was:" >&5 | |
12187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12188 | ||
12189 | ac_header_preproc=no | |
12190 | fi | |
12191 | rm -f conftest.err conftest.$ac_ext | |
12192 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12193 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12194 | ||
12195 | # So? What about this header? | |
12196 | case $ac_header_compiler:$ac_header_preproc in | |
12197 | yes:no ) | |
12198 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12199 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12201 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12202 | ( | |
12203 | cat <<\_ASBOX | |
12204 | ## ------------------------------------ ## | |
12205 | ## Report this to bug-autoconf@gnu.org. ## | |
12206 | ## ------------------------------------ ## | |
12207 | _ASBOX | |
12208 | ) | | |
12209 | sed "s/^/$as_me: WARNING: /" >&2 | |
12210 | ;; | |
12211 | no:yes ) | |
12212 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12213 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12214 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12215 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12217 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12218 | ( | |
12219 | cat <<\_ASBOX | |
12220 | ## ------------------------------------ ## | |
12221 | ## Report this to bug-autoconf@gnu.org. ## | |
12222 | ## ------------------------------------ ## | |
12223 | _ASBOX | |
12224 | ) | | |
12225 | sed "s/^/$as_me: WARNING: /" >&2 | |
12226 | ;; | |
12227 | esac | |
12228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12232 | else | |
12233 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12234 | fi |
e6cc62c6 VS |
12235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12236 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12237 | ||
a0b9e27f | 12238 | fi |
e6cc62c6 VS |
12239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12240 | cat >>confdefs.h <<_ACEOF | |
12241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12242 | _ACEOF | |
12243 | ||
12244 | fi | |
12245 | ||
12246 | done | |
12247 | ||
e6cc62c6 VS |
12248 | |
12249 | ||
12250 | for ac_header in stdlib.h | |
12251 | do | |
12252 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12254 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12258 | fi | |
12259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12260 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12261 | else | |
12262 | # Is the header compilable? | |
12263 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12264 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12265 | cat >conftest.$ac_ext <<_ACEOF | |
12266 | #line $LINENO "configure" | |
12267 | /* confdefs.h. */ | |
12268 | _ACEOF | |
12269 | cat confdefs.h >>conftest.$ac_ext | |
12270 | cat >>conftest.$ac_ext <<_ACEOF | |
12271 | /* end confdefs.h. */ | |
12272 | $ac_includes_default | |
12273 | #include <$ac_header> | |
12274 | _ACEOF | |
12275 | rm -f conftest.$ac_objext | |
12276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12277 | (eval $ac_compile) 2>&5 | |
12278 | ac_status=$? | |
12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12280 | (exit $ac_status); } && | |
12281 | { ac_try='test -s conftest.$ac_objext' | |
12282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12283 | (eval $ac_try) 2>&5 | |
12284 | ac_status=$? | |
12285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12286 | (exit $ac_status); }; }; then | |
12287 | ac_header_compiler=yes | |
12288 | else | |
12289 | echo "$as_me: failed program was:" >&5 | |
12290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12291 | ||
12292 | ac_header_compiler=no | |
12293 | fi | |
12294 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12297 | ||
12298 | # Is the header present? | |
12299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12301 | cat >conftest.$ac_ext <<_ACEOF | |
12302 | #line $LINENO "configure" | |
12303 | /* confdefs.h. */ | |
12304 | _ACEOF | |
12305 | cat confdefs.h >>conftest.$ac_ext | |
12306 | cat >>conftest.$ac_ext <<_ACEOF | |
12307 | /* end confdefs.h. */ | |
12308 | #include <$ac_header> | |
12309 | _ACEOF | |
12310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12312 | ac_status=$? | |
12313 | grep -v '^ *+' conftest.er1 >conftest.err | |
12314 | rm -f conftest.er1 | |
12315 | cat conftest.err >&5 | |
12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12317 | (exit $ac_status); } >/dev/null; then | |
12318 | if test -s conftest.err; then | |
12319 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12320 | else | |
12321 | ac_cpp_err= | |
12322 | fi | |
12323 | else | |
12324 | ac_cpp_err=yes | |
12325 | fi | |
12326 | if test -z "$ac_cpp_err"; then | |
12327 | ac_header_preproc=yes | |
12328 | else | |
12329 | echo "$as_me: failed program was:" >&5 | |
12330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12331 | ||
12332 | ac_header_preproc=no | |
12333 | fi | |
12334 | rm -f conftest.err conftest.$ac_ext | |
12335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12337 | ||
12338 | # So? What about this header? | |
12339 | case $ac_header_compiler:$ac_header_preproc in | |
12340 | yes:no ) | |
12341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12344 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12345 | ( | |
12346 | cat <<\_ASBOX | |
12347 | ## ------------------------------------ ## | |
12348 | ## Report this to bug-autoconf@gnu.org. ## | |
12349 | ## ------------------------------------ ## | |
12350 | _ASBOX | |
12351 | ) | | |
12352 | sed "s/^/$as_me: WARNING: /" >&2 | |
12353 | ;; | |
12354 | no:yes ) | |
12355 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12356 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12357 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12358 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12359 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12360 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12361 | ( | |
12362 | cat <<\_ASBOX | |
12363 | ## ------------------------------------ ## | |
12364 | ## Report this to bug-autoconf@gnu.org. ## | |
12365 | ## ------------------------------------ ## | |
12366 | _ASBOX | |
12367 | ) | | |
12368 | sed "s/^/$as_me: WARNING: /" >&2 | |
12369 | ;; | |
12370 | esac | |
12371 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12372 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12375 | else |
e6cc62c6 VS |
12376 | eval "$as_ac_Header=$ac_header_preproc" |
12377 | fi | |
12378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12380 | ||
21d1c967 | 12381 | fi |
e6cc62c6 VS |
12382 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12383 | cat >>confdefs.h <<_ACEOF | |
12384 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12385 | _ACEOF | |
12386 | ||
12387 | fi | |
12388 | ||
21d1c967 | 12389 | done |
4f14bcd8 | 12390 | |
5c6fa7d2 | 12391 | |
e6cc62c6 | 12392 | for ac_header in malloc.h |
21d1c967 | 12393 | do |
e6cc62c6 VS |
12394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12400 | fi | |
12401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12403 | else | |
12404 | # Is the header compilable? | |
12405 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12406 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12407 | cat >conftest.$ac_ext <<_ACEOF | |
12408 | #line $LINENO "configure" | |
12409 | /* confdefs.h. */ | |
12410 | _ACEOF | |
12411 | cat confdefs.h >>conftest.$ac_ext | |
12412 | cat >>conftest.$ac_ext <<_ACEOF | |
12413 | /* end confdefs.h. */ | |
12414 | $ac_includes_default | |
12415 | #include <$ac_header> | |
12416 | _ACEOF | |
12417 | rm -f conftest.$ac_objext | |
12418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12419 | (eval $ac_compile) 2>&5 | |
12420 | ac_status=$? | |
12421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12422 | (exit $ac_status); } && | |
12423 | { ac_try='test -s conftest.$ac_objext' | |
12424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12425 | (eval $ac_try) 2>&5 | |
12426 | ac_status=$? | |
12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12428 | (exit $ac_status); }; }; then | |
12429 | ac_header_compiler=yes | |
12430 | else | |
12431 | echo "$as_me: failed program was:" >&5 | |
12432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12433 | ||
12434 | ac_header_compiler=no | |
12435 | fi | |
12436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12437 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12438 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12439 | ||
12440 | # Is the header present? | |
12441 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12442 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12443 | cat >conftest.$ac_ext <<_ACEOF | |
12444 | #line $LINENO "configure" | |
12445 | /* confdefs.h. */ | |
12446 | _ACEOF | |
12447 | cat confdefs.h >>conftest.$ac_ext | |
12448 | cat >>conftest.$ac_ext <<_ACEOF | |
12449 | /* end confdefs.h. */ | |
12450 | #include <$ac_header> | |
12451 | _ACEOF | |
12452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12454 | ac_status=$? | |
12455 | grep -v '^ *+' conftest.er1 >conftest.err | |
12456 | rm -f conftest.er1 | |
12457 | cat conftest.err >&5 | |
12458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12459 | (exit $ac_status); } >/dev/null; then | |
12460 | if test -s conftest.err; then | |
12461 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12462 | else | |
12463 | ac_cpp_err= | |
12464 | fi | |
12465 | else | |
12466 | ac_cpp_err=yes | |
12467 | fi | |
12468 | if test -z "$ac_cpp_err"; then | |
12469 | ac_header_preproc=yes | |
12470 | else | |
12471 | echo "$as_me: failed program was:" >&5 | |
12472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12473 | ||
12474 | ac_header_preproc=no | |
12475 | fi | |
12476 | rm -f conftest.err conftest.$ac_ext | |
12477 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12478 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12479 | ||
12480 | # So? What about this header? | |
12481 | case $ac_header_compiler:$ac_header_preproc in | |
12482 | yes:no ) | |
12483 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12484 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12486 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12487 | ( | |
12488 | cat <<\_ASBOX | |
12489 | ## ------------------------------------ ## | |
12490 | ## Report this to bug-autoconf@gnu.org. ## | |
12491 | ## ------------------------------------ ## | |
12492 | _ASBOX | |
12493 | ) | | |
12494 | sed "s/^/$as_me: WARNING: /" >&2 | |
12495 | ;; | |
12496 | no:yes ) | |
12497 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12498 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12499 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12500 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12502 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12503 | ( | |
12504 | cat <<\_ASBOX | |
12505 | ## ------------------------------------ ## | |
12506 | ## Report this to bug-autoconf@gnu.org. ## | |
12507 | ## ------------------------------------ ## | |
12508 | _ASBOX | |
12509 | ) | | |
12510 | sed "s/^/$as_me: WARNING: /" >&2 | |
12511 | ;; | |
12512 | esac | |
12513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12517 | else | |
12518 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12519 | fi |
e6cc62c6 VS |
12520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12521 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12522 | ||
21d1c967 | 12523 | fi |
e6cc62c6 VS |
12524 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12525 | cat >>confdefs.h <<_ACEOF | |
12526 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12527 | _ACEOF | |
12528 | ||
12529 | fi | |
12530 | ||
12531 | done | |
12532 | ||
12533 | ||
12534 | for ac_header in unistd.h | |
12535 | do | |
12536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12542 | fi | |
12543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12544 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12545 | else | |
12546 | # Is the header compilable? | |
12547 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12549 | cat >conftest.$ac_ext <<_ACEOF | |
12550 | #line $LINENO "configure" | |
12551 | /* confdefs.h. */ | |
12552 | _ACEOF | |
12553 | cat confdefs.h >>conftest.$ac_ext | |
12554 | cat >>conftest.$ac_ext <<_ACEOF | |
12555 | /* end confdefs.h. */ | |
12556 | $ac_includes_default | |
12557 | #include <$ac_header> | |
12558 | _ACEOF | |
12559 | rm -f conftest.$ac_objext | |
12560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12561 | (eval $ac_compile) 2>&5 | |
12562 | ac_status=$? | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); } && | |
12565 | { ac_try='test -s conftest.$ac_objext' | |
12566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12567 | (eval $ac_try) 2>&5 | |
12568 | ac_status=$? | |
12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12570 | (exit $ac_status); }; }; then | |
12571 | ac_header_compiler=yes | |
12572 | else | |
12573 | echo "$as_me: failed program was:" >&5 | |
12574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12575 | ||
12576 | ac_header_compiler=no | |
12577 | fi | |
12578 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12579 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12580 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12581 | ||
12582 | # Is the header present? | |
12583 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12584 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12585 | cat >conftest.$ac_ext <<_ACEOF | |
12586 | #line $LINENO "configure" | |
12587 | /* confdefs.h. */ | |
12588 | _ACEOF | |
12589 | cat confdefs.h >>conftest.$ac_ext | |
12590 | cat >>conftest.$ac_ext <<_ACEOF | |
12591 | /* end confdefs.h. */ | |
12592 | #include <$ac_header> | |
12593 | _ACEOF | |
12594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12595 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12596 | ac_status=$? | |
12597 | grep -v '^ *+' conftest.er1 >conftest.err | |
12598 | rm -f conftest.er1 | |
12599 | cat conftest.err >&5 | |
12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12601 | (exit $ac_status); } >/dev/null; then | |
12602 | if test -s conftest.err; then | |
12603 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12604 | else | |
12605 | ac_cpp_err= | |
12606 | fi | |
a0b9e27f | 12607 | else |
e6cc62c6 VS |
12608 | ac_cpp_err=yes |
12609 | fi | |
12610 | if test -z "$ac_cpp_err"; then | |
12611 | ac_header_preproc=yes | |
12612 | else | |
12613 | echo "$as_me: failed program was:" >&5 | |
12614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12615 | ||
12616 | ac_header_preproc=no | |
12617 | fi | |
12618 | rm -f conftest.err conftest.$ac_ext | |
12619 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12620 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12621 | ||
12622 | # So? What about this header? | |
12623 | case $ac_header_compiler:$ac_header_preproc in | |
12624 | yes:no ) | |
12625 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12626 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12629 | ( | |
12630 | cat <<\_ASBOX | |
12631 | ## ------------------------------------ ## | |
12632 | ## Report this to bug-autoconf@gnu.org. ## | |
12633 | ## ------------------------------------ ## | |
12634 | _ASBOX | |
12635 | ) | | |
12636 | sed "s/^/$as_me: WARNING: /" >&2 | |
12637 | ;; | |
12638 | no:yes ) | |
12639 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12640 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12641 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12642 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12644 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12645 | ( | |
12646 | cat <<\_ASBOX | |
12647 | ## ------------------------------------ ## | |
12648 | ## Report this to bug-autoconf@gnu.org. ## | |
12649 | ## ------------------------------------ ## | |
12650 | _ASBOX | |
12651 | ) | | |
12652 | sed "s/^/$as_me: WARNING: /" >&2 | |
12653 | ;; | |
12654 | esac | |
12655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12659 | else | |
12660 | eval "$as_ac_Header=$ac_header_preproc" | |
12661 | fi | |
12662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12664 | ||
12665 | fi | |
12666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12667 | cat >>confdefs.h <<_ACEOF | |
12668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12669 | _ACEOF | |
12670 | ||
d4158b5d | 12671 | fi |
e6cc62c6 | 12672 | |
21d1c967 | 12673 | done |
f6bcfd97 | 12674 | |
e6cc62c6 VS |
12675 | |
12676 | for ac_header in wchar.h | |
12677 | do | |
12678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12680 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12684 | fi | |
12685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12687 | else | |
12688 | # Is the header compilable? | |
12689 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12690 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12691 | cat >conftest.$ac_ext <<_ACEOF | |
12692 | #line $LINENO "configure" | |
12693 | /* confdefs.h. */ | |
12694 | _ACEOF | |
12695 | cat confdefs.h >>conftest.$ac_ext | |
12696 | cat >>conftest.$ac_ext <<_ACEOF | |
12697 | /* end confdefs.h. */ | |
12698 | $ac_includes_default | |
12699 | #include <$ac_header> | |
12700 | _ACEOF | |
12701 | rm -f conftest.$ac_objext | |
12702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12703 | (eval $ac_compile) 2>&5 | |
12704 | ac_status=$? | |
12705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12706 | (exit $ac_status); } && | |
12707 | { ac_try='test -s conftest.$ac_objext' | |
12708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12709 | (eval $ac_try) 2>&5 | |
12710 | ac_status=$? | |
12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12712 | (exit $ac_status); }; }; then | |
12713 | ac_header_compiler=yes | |
12714 | else | |
12715 | echo "$as_me: failed program was:" >&5 | |
12716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12717 | ||
12718 | ac_header_compiler=no | |
12719 | fi | |
12720 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12723 | ||
12724 | # Is the header present? | |
12725 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12726 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12727 | cat >conftest.$ac_ext <<_ACEOF | |
12728 | #line $LINENO "configure" | |
12729 | /* confdefs.h. */ | |
12730 | _ACEOF | |
12731 | cat confdefs.h >>conftest.$ac_ext | |
12732 | cat >>conftest.$ac_ext <<_ACEOF | |
12733 | /* end confdefs.h. */ | |
12734 | #include <$ac_header> | |
12735 | _ACEOF | |
12736 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12737 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12738 | ac_status=$? | |
12739 | grep -v '^ *+' conftest.er1 >conftest.err | |
12740 | rm -f conftest.er1 | |
12741 | cat conftest.err >&5 | |
12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12743 | (exit $ac_status); } >/dev/null; then | |
12744 | if test -s conftest.err; then | |
12745 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12746 | else | |
12747 | ac_cpp_err= | |
12748 | fi | |
12749 | else | |
12750 | ac_cpp_err=yes | |
12751 | fi | |
12752 | if test -z "$ac_cpp_err"; then | |
12753 | ac_header_preproc=yes | |
12754 | else | |
12755 | echo "$as_me: failed program was:" >&5 | |
12756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12757 | ||
12758 | ac_header_preproc=no | |
12759 | fi | |
12760 | rm -f conftest.err conftest.$ac_ext | |
12761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12763 | ||
12764 | # So? What about this header? | |
12765 | case $ac_header_compiler:$ac_header_preproc in | |
12766 | yes:no ) | |
12767 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12768 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12771 | ( | |
12772 | cat <<\_ASBOX | |
12773 | ## ------------------------------------ ## | |
12774 | ## Report this to bug-autoconf@gnu.org. ## | |
12775 | ## ------------------------------------ ## | |
12776 | _ASBOX | |
12777 | ) | | |
12778 | sed "s/^/$as_me: WARNING: /" >&2 | |
12779 | ;; | |
12780 | no:yes ) | |
12781 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12782 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12783 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12784 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12785 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12786 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12787 | ( | |
12788 | cat <<\_ASBOX | |
12789 | ## ------------------------------------ ## | |
12790 | ## Report this to bug-autoconf@gnu.org. ## | |
12791 | ## ------------------------------------ ## | |
12792 | _ASBOX | |
12793 | ) | | |
12794 | sed "s/^/$as_me: WARNING: /" >&2 | |
12795 | ;; | |
12796 | esac | |
12797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12801 | else | |
12802 | eval "$as_ac_Header=$ac_header_preproc" | |
12803 | fi | |
12804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12806 | ||
90dd450c | 12807 | fi |
e6cc62c6 VS |
12808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12809 | cat >>confdefs.h <<_ACEOF | |
12810 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12811 | _ACEOF | |
12812 | ||
12813 | fi | |
12814 | ||
12815 | done | |
90dd450c | 12816 | |
e6cc62c6 VS |
12817 | |
12818 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12819 | ||
12820 | for ac_header in wcstr.h | |
21d1c967 | 12821 | do |
e6cc62c6 VS |
12822 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12828 | fi | |
12829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12831 | else | |
12832 | # Is the header compilable? | |
12833 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12834 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12835 | cat >conftest.$ac_ext <<_ACEOF | |
12836 | #line $LINENO "configure" | |
12837 | /* confdefs.h. */ | |
12838 | _ACEOF | |
12839 | cat confdefs.h >>conftest.$ac_ext | |
12840 | cat >>conftest.$ac_ext <<_ACEOF | |
12841 | /* end confdefs.h. */ | |
12842 | $ac_includes_default | |
12843 | #include <$ac_header> | |
12844 | _ACEOF | |
12845 | rm -f conftest.$ac_objext | |
12846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12847 | (eval $ac_compile) 2>&5 | |
12848 | ac_status=$? | |
12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12850 | (exit $ac_status); } && | |
12851 | { ac_try='test -s conftest.$ac_objext' | |
12852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12853 | (eval $ac_try) 2>&5 | |
12854 | ac_status=$? | |
12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12856 | (exit $ac_status); }; }; then | |
12857 | ac_header_compiler=yes | |
12858 | else | |
12859 | echo "$as_me: failed program was:" >&5 | |
12860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12861 | ||
12862 | ac_header_compiler=no | |
12863 | fi | |
12864 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12866 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12867 | ||
12868 | # Is the header present? | |
12869 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12870 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12871 | cat >conftest.$ac_ext <<_ACEOF | |
12872 | #line $LINENO "configure" | |
12873 | /* confdefs.h. */ | |
12874 | _ACEOF | |
12875 | cat confdefs.h >>conftest.$ac_ext | |
12876 | cat >>conftest.$ac_ext <<_ACEOF | |
12877 | /* end confdefs.h. */ | |
12878 | #include <$ac_header> | |
12879 | _ACEOF | |
12880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12882 | ac_status=$? | |
12883 | grep -v '^ *+' conftest.er1 >conftest.err | |
12884 | rm -f conftest.er1 | |
12885 | cat conftest.err >&5 | |
12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12887 | (exit $ac_status); } >/dev/null; then | |
12888 | if test -s conftest.err; then | |
12889 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12890 | else | |
12891 | ac_cpp_err= | |
12892 | fi | |
12893 | else | |
12894 | ac_cpp_err=yes | |
12895 | fi | |
12896 | if test -z "$ac_cpp_err"; then | |
12897 | ac_header_preproc=yes | |
12898 | else | |
12899 | echo "$as_me: failed program was:" >&5 | |
12900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12901 | ||
12902 | ac_header_preproc=no | |
12903 | fi | |
12904 | rm -f conftest.err conftest.$ac_ext | |
12905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12906 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12907 | ||
12908 | # So? What about this header? | |
12909 | case $ac_header_compiler:$ac_header_preproc in | |
12910 | yes:no ) | |
12911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12915 | ( | |
12916 | cat <<\_ASBOX | |
12917 | ## ------------------------------------ ## | |
12918 | ## Report this to bug-autoconf@gnu.org. ## | |
12919 | ## ------------------------------------ ## | |
12920 | _ASBOX | |
12921 | ) | | |
12922 | sed "s/^/$as_me: WARNING: /" >&2 | |
12923 | ;; | |
12924 | no:yes ) | |
12925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12930 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12931 | ( | |
12932 | cat <<\_ASBOX | |
12933 | ## ------------------------------------ ## | |
12934 | ## Report this to bug-autoconf@gnu.org. ## | |
12935 | ## ------------------------------------ ## | |
12936 | _ASBOX | |
12937 | ) | | |
12938 | sed "s/^/$as_me: WARNING: /" >&2 | |
12939 | ;; | |
12940 | esac | |
12941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12945 | else | |
12946 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12947 | fi |
e6cc62c6 VS |
12948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12950 | ||
4f14bcd8 | 12951 | fi |
e6cc62c6 VS |
12952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12953 | cat >>confdefs.h <<_ACEOF | |
12954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12955 | _ACEOF | |
12956 | ||
12957 | fi | |
12958 | ||
12959 | done | |
12960 | ||
12961 | fi | |
12962 | ||
12963 | ||
12964 | for ac_header in fnmatch.h | |
12965 | do | |
12966 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12967 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12968 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12972 | fi | |
12973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12975 | else | |
12976 | # Is the header compilable? | |
12977 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12978 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12979 | cat >conftest.$ac_ext <<_ACEOF | |
12980 | #line $LINENO "configure" | |
12981 | /* confdefs.h. */ | |
12982 | _ACEOF | |
12983 | cat confdefs.h >>conftest.$ac_ext | |
12984 | cat >>conftest.$ac_ext <<_ACEOF | |
12985 | /* end confdefs.h. */ | |
12986 | $ac_includes_default | |
12987 | #include <$ac_header> | |
12988 | _ACEOF | |
12989 | rm -f conftest.$ac_objext | |
12990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12991 | (eval $ac_compile) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); } && | |
12995 | { ac_try='test -s conftest.$ac_objext' | |
12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12997 | (eval $ac_try) 2>&5 | |
12998 | ac_status=$? | |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13000 | (exit $ac_status); }; }; then | |
13001 | ac_header_compiler=yes | |
13002 | else | |
13003 | echo "$as_me: failed program was:" >&5 | |
13004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13005 | ||
13006 | ac_header_compiler=no | |
13007 | fi | |
13008 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13009 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13010 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13011 | ||
13012 | # Is the header present? | |
13013 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13014 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13015 | cat >conftest.$ac_ext <<_ACEOF | |
13016 | #line $LINENO "configure" | |
13017 | /* confdefs.h. */ | |
13018 | _ACEOF | |
13019 | cat confdefs.h >>conftest.$ac_ext | |
13020 | cat >>conftest.$ac_ext <<_ACEOF | |
13021 | /* end confdefs.h. */ | |
13022 | #include <$ac_header> | |
13023 | _ACEOF | |
13024 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13025 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13026 | ac_status=$? | |
13027 | grep -v '^ *+' conftest.er1 >conftest.err | |
13028 | rm -f conftest.er1 | |
13029 | cat conftest.err >&5 | |
13030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13031 | (exit $ac_status); } >/dev/null; then | |
13032 | if test -s conftest.err; then | |
13033 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13034 | else | |
13035 | ac_cpp_err= | |
13036 | fi | |
13037 | else | |
13038 | ac_cpp_err=yes | |
13039 | fi | |
13040 | if test -z "$ac_cpp_err"; then | |
13041 | ac_header_preproc=yes | |
13042 | else | |
13043 | echo "$as_me: failed program was:" >&5 | |
13044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13045 | ||
13046 | ac_header_preproc=no | |
13047 | fi | |
13048 | rm -f conftest.err conftest.$ac_ext | |
13049 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13050 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13051 | ||
13052 | # So? What about this header? | |
13053 | case $ac_header_compiler:$ac_header_preproc in | |
13054 | yes:no ) | |
13055 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13056 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13057 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13058 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13059 | ( | |
13060 | cat <<\_ASBOX | |
13061 | ## ------------------------------------ ## | |
13062 | ## Report this to bug-autoconf@gnu.org. ## | |
13063 | ## ------------------------------------ ## | |
13064 | _ASBOX | |
13065 | ) | | |
13066 | sed "s/^/$as_me: WARNING: /" >&2 | |
13067 | ;; | |
13068 | no:yes ) | |
13069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13074 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13075 | ( | |
13076 | cat <<\_ASBOX | |
13077 | ## ------------------------------------ ## | |
13078 | ## Report this to bug-autoconf@gnu.org. ## | |
13079 | ## ------------------------------------ ## | |
13080 | _ASBOX | |
13081 | ) | | |
13082 | sed "s/^/$as_me: WARNING: /" >&2 | |
13083 | ;; | |
13084 | esac | |
13085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13089 | else |
e6cc62c6 VS |
13090 | eval "$as_ac_Header=$ac_header_preproc" |
13091 | fi | |
13092 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13093 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13094 | ||
21d1c967 | 13095 | fi |
e6cc62c6 VS |
13096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13097 | cat >>confdefs.h <<_ACEOF | |
13098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13099 | _ACEOF | |
13100 | ||
13101 | fi | |
13102 | ||
21d1c967 | 13103 | done |
90dd450c | 13104 | |
5c6fa7d2 | 13105 | |
a0b9e27f | 13106 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13107 | |
13108 | for ac_func in fnmatch | |
21d1c967 | 13109 | do |
e6cc62c6 VS |
13110 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13111 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13112 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13113 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13115 | else | |
13116 | cat >conftest.$ac_ext <<_ACEOF | |
13117 | #line $LINENO "configure" | |
13118 | /* confdefs.h. */ | |
13119 | _ACEOF | |
13120 | cat confdefs.h >>conftest.$ac_ext | |
13121 | cat >>conftest.$ac_ext <<_ACEOF | |
13122 | /* end confdefs.h. */ | |
a0b9e27f | 13123 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13124 | which can conflict with char $ac_func (); below. |
13125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13126 | <limits.h> exists even on freestanding compilers. */ | |
13127 | #ifdef __STDC__ | |
13128 | # include <limits.h> | |
13129 | #else | |
13130 | # include <assert.h> | |
13131 | #endif | |
a0b9e27f | 13132 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13133 | #ifdef __cplusplus |
13134 | extern "C" | |
13135 | { | |
13136 | #endif | |
a0b9e27f | 13137 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13138 | builtin and then its argument prototype would still apply. */ |
13139 | char $ac_func (); | |
a0b9e27f MB |
13140 | /* The GNU C library defines this for functions which it implements |
13141 | to always fail with ENOSYS. Some functions are actually named | |
13142 | something starting with __ and the normal name is an alias. */ | |
13143 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13144 | choke me | |
13145 | #else | |
e6cc62c6 VS |
13146 | char (*f) () = $ac_func; |
13147 | #endif | |
13148 | #ifdef __cplusplus | |
13149 | } | |
a0b9e27f MB |
13150 | #endif |
13151 | ||
e6cc62c6 VS |
13152 | int |
13153 | main () | |
13154 | { | |
13155 | return f != $ac_func; | |
13156 | ; | |
13157 | return 0; | |
13158 | } | |
13159 | _ACEOF | |
13160 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13162 | (eval $ac_link) 2>&5 | |
13163 | ac_status=$? | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13165 | (exit $ac_status); } && | |
13166 | { ac_try='test -s conftest$ac_exeext' | |
13167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13168 | (eval $ac_try) 2>&5 | |
13169 | ac_status=$? | |
13170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13171 | (exit $ac_status); }; }; then | |
13172 | eval "$as_ac_var=yes" | |
13173 | else | |
13174 | echo "$as_me: failed program was:" >&5 | |
13175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13176 | ||
13177 | eval "$as_ac_var=no" | |
13178 | fi | |
13179 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13180 | fi | |
13181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13184 | cat >>confdefs.h <<_ACEOF | |
13185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13186 | _ACEOF | |
32832908 | 13187 | |
21d1c967 GD |
13188 | fi |
13189 | done | |
90dd450c | 13190 | |
a0b9e27f | 13191 | fi |
90dd450c | 13192 | |
e6cc62c6 VS |
13193 | |
13194 | for ac_header in langinfo.h | |
21d1c967 | 13195 | do |
e6cc62c6 VS |
13196 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13198 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13202 | fi | |
13203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13204 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13205 | else | |
13206 | # Is the header compilable? | |
13207 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13208 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13209 | cat >conftest.$ac_ext <<_ACEOF | |
13210 | #line $LINENO "configure" | |
13211 | /* confdefs.h. */ | |
13212 | _ACEOF | |
13213 | cat confdefs.h >>conftest.$ac_ext | |
13214 | cat >>conftest.$ac_ext <<_ACEOF | |
13215 | /* end confdefs.h. */ | |
13216 | $ac_includes_default | |
13217 | #include <$ac_header> | |
13218 | _ACEOF | |
13219 | rm -f conftest.$ac_objext | |
13220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13221 | (eval $ac_compile) 2>&5 | |
13222 | ac_status=$? | |
13223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13224 | (exit $ac_status); } && | |
13225 | { ac_try='test -s conftest.$ac_objext' | |
13226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13227 | (eval $ac_try) 2>&5 | |
13228 | ac_status=$? | |
13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13230 | (exit $ac_status); }; }; then | |
13231 | ac_header_compiler=yes | |
13232 | else | |
13233 | echo "$as_me: failed program was:" >&5 | |
13234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13235 | ||
13236 | ac_header_compiler=no | |
13237 | fi | |
13238 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13239 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13240 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13241 | ||
13242 | # Is the header present? | |
13243 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13244 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13245 | cat >conftest.$ac_ext <<_ACEOF | |
13246 | #line $LINENO "configure" | |
13247 | /* confdefs.h. */ | |
13248 | _ACEOF | |
13249 | cat confdefs.h >>conftest.$ac_ext | |
13250 | cat >>conftest.$ac_ext <<_ACEOF | |
13251 | /* end confdefs.h. */ | |
13252 | #include <$ac_header> | |
13253 | _ACEOF | |
13254 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13255 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13256 | ac_status=$? | |
13257 | grep -v '^ *+' conftest.er1 >conftest.err | |
13258 | rm -f conftest.er1 | |
13259 | cat conftest.err >&5 | |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13261 | (exit $ac_status); } >/dev/null; then | |
13262 | if test -s conftest.err; then | |
13263 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13264 | else | |
13265 | ac_cpp_err= | |
13266 | fi | |
13267 | else | |
13268 | ac_cpp_err=yes | |
13269 | fi | |
13270 | if test -z "$ac_cpp_err"; then | |
13271 | ac_header_preproc=yes | |
13272 | else | |
13273 | echo "$as_me: failed program was:" >&5 | |
13274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13275 | ||
13276 | ac_header_preproc=no | |
13277 | fi | |
13278 | rm -f conftest.err conftest.$ac_ext | |
13279 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13280 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13281 | ||
13282 | # So? What about this header? | |
13283 | case $ac_header_compiler:$ac_header_preproc in | |
13284 | yes:no ) | |
13285 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13286 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13287 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13288 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13289 | ( | |
13290 | cat <<\_ASBOX | |
13291 | ## ------------------------------------ ## | |
13292 | ## Report this to bug-autoconf@gnu.org. ## | |
13293 | ## ------------------------------------ ## | |
13294 | _ASBOX | |
13295 | ) | | |
13296 | sed "s/^/$as_me: WARNING: /" >&2 | |
13297 | ;; | |
13298 | no:yes ) | |
13299 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13300 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13301 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13302 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13305 | ( | |
13306 | cat <<\_ASBOX | |
13307 | ## ------------------------------------ ## | |
13308 | ## Report this to bug-autoconf@gnu.org. ## | |
13309 | ## ------------------------------------ ## | |
13310 | _ASBOX | |
13311 | ) | | |
13312 | sed "s/^/$as_me: WARNING: /" >&2 | |
13313 | ;; | |
13314 | esac | |
13315 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13319 | else | |
13320 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13321 | fi |
e6cc62c6 VS |
13322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13323 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13324 | ||
4f14bcd8 | 13325 | fi |
e6cc62c6 VS |
13326 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13327 | cat >>confdefs.h <<_ACEOF | |
13328 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13329 | _ACEOF | |
13330 | ||
21d1c967 | 13331 | fi |
e6cc62c6 | 13332 | |
21d1c967 | 13333 | done |
3a922bb4 | 13334 | |
8284b0c5 | 13335 | |
4f5a7f74 VZ |
13336 | case "${host}" in |
13337 | *-pc-os2_emx | *-pc-os2-emx ) | |
13338 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13339 | LIBS="$LIBS -lintl" | |
13340 | fi | |
13341 | ;; | |
13342 | esac | |
1542ea39 | 13343 | |
a0b9e27f MB |
13344 | if test "$wxUSE_GUI" = "yes"; then |
13345 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 VS |
13346 | |
13347 | for ac_header in X11/XKBlib.h | |
21d1c967 | 13348 | do |
e6cc62c6 VS |
13349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13351 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13355 | fi | |
13356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13357 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13358 | else | |
13359 | # Is the header compilable? | |
13360 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13362 | cat >conftest.$ac_ext <<_ACEOF | |
13363 | #line $LINENO "configure" | |
13364 | /* confdefs.h. */ | |
13365 | _ACEOF | |
13366 | cat confdefs.h >>conftest.$ac_ext | |
13367 | cat >>conftest.$ac_ext <<_ACEOF | |
13368 | /* end confdefs.h. */ | |
13369 | $ac_includes_default | |
13370 | #include <$ac_header> | |
13371 | _ACEOF | |
13372 | rm -f conftest.$ac_objext | |
13373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13374 | (eval $ac_compile) 2>&5 | |
13375 | ac_status=$? | |
13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13377 | (exit $ac_status); } && | |
13378 | { ac_try='test -s conftest.$ac_objext' | |
13379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13380 | (eval $ac_try) 2>&5 | |
13381 | ac_status=$? | |
13382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13383 | (exit $ac_status); }; }; then | |
13384 | ac_header_compiler=yes | |
13385 | else | |
13386 | echo "$as_me: failed program was:" >&5 | |
13387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13388 | ||
13389 | ac_header_compiler=no | |
13390 | fi | |
13391 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13392 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13393 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13394 | ||
13395 | # Is the header present? | |
13396 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13397 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13398 | cat >conftest.$ac_ext <<_ACEOF | |
13399 | #line $LINENO "configure" | |
13400 | /* confdefs.h. */ | |
13401 | _ACEOF | |
13402 | cat confdefs.h >>conftest.$ac_ext | |
13403 | cat >>conftest.$ac_ext <<_ACEOF | |
13404 | /* end confdefs.h. */ | |
13405 | #include <$ac_header> | |
13406 | _ACEOF | |
13407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13409 | ac_status=$? | |
13410 | grep -v '^ *+' conftest.er1 >conftest.err | |
13411 | rm -f conftest.er1 | |
13412 | cat conftest.err >&5 | |
13413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13414 | (exit $ac_status); } >/dev/null; then | |
13415 | if test -s conftest.err; then | |
13416 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13417 | else | |
13418 | ac_cpp_err= | |
13419 | fi | |
13420 | else | |
13421 | ac_cpp_err=yes | |
13422 | fi | |
13423 | if test -z "$ac_cpp_err"; then | |
13424 | ac_header_preproc=yes | |
13425 | else | |
13426 | echo "$as_me: failed program was:" >&5 | |
13427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13428 | ||
13429 | ac_header_preproc=no | |
13430 | fi | |
13431 | rm -f conftest.err conftest.$ac_ext | |
13432 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13433 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13434 | ||
13435 | # So? What about this header? | |
13436 | case $ac_header_compiler:$ac_header_preproc in | |
13437 | yes:no ) | |
13438 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13439 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13441 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13442 | ( | |
13443 | cat <<\_ASBOX | |
13444 | ## ------------------------------------ ## | |
13445 | ## Report this to bug-autoconf@gnu.org. ## | |
13446 | ## ------------------------------------ ## | |
13447 | _ASBOX | |
13448 | ) | | |
13449 | sed "s/^/$as_me: WARNING: /" >&2 | |
13450 | ;; | |
13451 | no:yes ) | |
13452 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13453 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13454 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13455 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13457 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13458 | ( | |
13459 | cat <<\_ASBOX | |
13460 | ## ------------------------------------ ## | |
13461 | ## Report this to bug-autoconf@gnu.org. ## | |
13462 | ## ------------------------------------ ## | |
13463 | _ASBOX | |
13464 | ) | | |
13465 | sed "s/^/$as_me: WARNING: /" >&2 | |
13466 | ;; | |
13467 | esac | |
13468 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13472 | else | |
13473 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13474 | fi |
e6cc62c6 VS |
13475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13477 | ||
90dd450c | 13478 | fi |
e6cc62c6 VS |
13479 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13480 | cat >>confdefs.h <<_ACEOF | |
13481 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13482 | _ACEOF | |
13483 | ||
247f5006 | 13484 | fi |
e6cc62c6 | 13485 | |
247f5006 VZ |
13486 | done |
13487 | ||
a0b9e27f MB |
13488 | fi |
13489 | fi | |
247f5006 | 13490 | |
247f5006 | 13491 | |
e6cc62c6 VS |
13492 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13493 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13494 | if test "${ac_cv_c_const+set}" = set; then | |
13495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13496 | else | |
13497 | cat >conftest.$ac_ext <<_ACEOF | |
13498 | #line $LINENO "configure" | |
13499 | /* confdefs.h. */ | |
13500 | _ACEOF | |
13501 | cat confdefs.h >>conftest.$ac_ext | |
13502 | cat >>conftest.$ac_ext <<_ACEOF | |
13503 | /* end confdefs.h. */ | |
13504 | ||
13505 | int | |
13506 | main () | |
13507 | { | |
13508 | /* FIXME: Include the comments suggested by Paul. */ | |
13509 | #ifndef __cplusplus | |
13510 | /* Ultrix mips cc rejects this. */ | |
13511 | typedef int charset[2]; | |
13512 | const charset x; | |
13513 | /* SunOS 4.1.1 cc rejects this. */ | |
13514 | char const *const *ccp; | |
13515 | char **p; | |
13516 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13517 | struct point {int x, y;}; | |
13518 | static struct point const zero = {0,0}; | |
13519 | /* AIX XL C 1.02.0.0 rejects this. | |
13520 | It does not let you subtract one const X* pointer from another in | |
13521 | an arm of an if-expression whose if-part is not a constant | |
13522 | expression */ | |
13523 | const char *g = "string"; | |
13524 | ccp = &g + (g ? g-g : 0); | |
13525 | /* HPUX 7.0 cc rejects these. */ | |
13526 | ++ccp; | |
13527 | p = (char**) ccp; | |
13528 | ccp = (char const *const *) p; | |
13529 | { /* SCO 3.2v4 cc rejects this. */ | |
13530 | char *t; | |
13531 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13532 | ||
13533 | *t++ = 0; | |
13534 | } | |
13535 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13536 | int x[] = {25, 17}; | |
13537 | const int *foo = &x[0]; | |
13538 | ++foo; | |
13539 | } | |
13540 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13541 | typedef const int *iptr; | |
13542 | iptr p = 0; | |
13543 | ++p; | |
13544 | } | |
13545 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13546 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13547 | struct s { int j; const int *ap[3]; }; | |
13548 | struct s *b; b->j = 5; | |
13549 | } | |
13550 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13551 | const int foo = 10; | |
13552 | } | |
13553 | #endif | |
13554 | ||
13555 | ; | |
13556 | return 0; | |
13557 | } | |
13558 | _ACEOF | |
13559 | rm -f conftest.$ac_objext | |
13560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13561 | (eval $ac_compile) 2>&5 | |
13562 | ac_status=$? | |
13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13564 | (exit $ac_status); } && | |
13565 | { ac_try='test -s conftest.$ac_objext' | |
13566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13567 | (eval $ac_try) 2>&5 | |
13568 | ac_status=$? | |
13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13570 | (exit $ac_status); }; }; then | |
a0b9e27f | 13571 | ac_cv_c_const=yes |
247f5006 | 13572 | else |
e6cc62c6 VS |
13573 | echo "$as_me: failed program was:" >&5 |
13574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13575 | ||
13576 | ac_cv_c_const=no | |
247f5006 | 13577 | fi |
e6cc62c6 | 13578 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13579 | fi |
e6cc62c6 VS |
13580 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13581 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13582 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13583 | |
13584 | cat >>confdefs.h <<\_ACEOF | |
13585 | #define const | |
13586 | _ACEOF | |
10f2d63a | 13587 | |
90dd450c | 13588 | fi |
81809c07 | 13589 | |
e6cc62c6 VS |
13590 | echo "$as_me:$LINENO: checking for inline" >&5 |
13591 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13592 | if test "${ac_cv_c_inline+set}" = set; then | |
13593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13594 | else |
a0b9e27f MB |
13595 | ac_cv_c_inline=no |
13596 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13597 | cat >conftest.$ac_ext <<_ACEOF |
13598 | #line $LINENO "configure" | |
13599 | /* confdefs.h. */ | |
13600 | _ACEOF | |
13601 | cat confdefs.h >>conftest.$ac_ext | |
13602 | cat >>conftest.$ac_ext <<_ACEOF | |
13603 | /* end confdefs.h. */ | |
13604 | #ifndef __cplusplus | |
13605 | typedef int foo_t; | |
13606 | static $ac_kw foo_t static_foo () {return 0; } | |
13607 | $ac_kw foo_t foo () {return 0; } | |
13608 | #endif | |
a0b9e27f | 13609 | |
e6cc62c6 VS |
13610 | _ACEOF |
13611 | rm -f conftest.$ac_objext | |
13612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13613 | (eval $ac_compile) 2>&5 | |
13614 | ac_status=$? | |
13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13616 | (exit $ac_status); } && | |
13617 | { ac_try='test -s conftest.$ac_objext' | |
13618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13619 | (eval $ac_try) 2>&5 | |
13620 | ac_status=$? | |
13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13622 | (exit $ac_status); }; }; then | |
a0b9e27f | 13623 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13624 | else |
e6cc62c6 VS |
13625 | echo "$as_me: failed program was:" >&5 |
13626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13627 | ||
247f5006 | 13628 | fi |
e6cc62c6 | 13629 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13630 | done |
247f5006 VZ |
13631 | |
13632 | fi | |
e6cc62c6 VS |
13633 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13634 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13635 | case $ac_cv_c_inline in | |
a0b9e27f | 13636 | inline | yes) ;; |
e6cc62c6 VS |
13637 | no) |
13638 | cat >>confdefs.h <<\_ACEOF | |
13639 | #define inline | |
13640 | _ACEOF | |
a0b9e27f | 13641 | ;; |
e6cc62c6 | 13642 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13643 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13644 | _ACEOF |
a0b9e27f MB |
13645 | ;; |
13646 | esac | |
247f5006 | 13647 | |
247f5006 | 13648 | |
e6cc62c6 VS |
13649 | echo "$as_me:$LINENO: checking for char" >&5 |
13650 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13651 | if test "${ac_cv_type_char+set}" = set; then | |
13652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13653 | else | |
13654 | cat >conftest.$ac_ext <<_ACEOF | |
13655 | #line $LINENO "configure" | |
13656 | /* confdefs.h. */ | |
13657 | _ACEOF | |
13658 | cat confdefs.h >>conftest.$ac_ext | |
13659 | cat >>conftest.$ac_ext <<_ACEOF | |
13660 | /* end confdefs.h. */ | |
13661 | $ac_includes_default | |
13662 | int | |
13663 | main () | |
13664 | { | |
13665 | if ((char *) 0) | |
13666 | return 0; | |
13667 | if (sizeof (char)) | |
13668 | return 0; | |
13669 | ; | |
13670 | return 0; | |
13671 | } | |
13672 | _ACEOF | |
13673 | rm -f conftest.$ac_objext | |
13674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13675 | (eval $ac_compile) 2>&5 | |
13676 | ac_status=$? | |
13677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13678 | (exit $ac_status); } && | |
13679 | { ac_try='test -s conftest.$ac_objext' | |
13680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13681 | (eval $ac_try) 2>&5 | |
13682 | ac_status=$? | |
13683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13684 | (exit $ac_status); }; }; then | |
13685 | ac_cv_type_char=yes | |
13686 | else | |
13687 | echo "$as_me: failed program was:" >&5 | |
13688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13689 | ||
13690 | ac_cv_type_char=no | |
13691 | fi | |
13692 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13693 | fi | |
13694 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13695 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13696 | ||
13697 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13698 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13699 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13701 | else | |
13702 | if test "$ac_cv_type_char" = yes; then | |
13703 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13704 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13705 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13706 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13707 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13708 | # Depending upon the size, compute the lo and hi bounds. |
13709 | cat >conftest.$ac_ext <<_ACEOF | |
13710 | #line $LINENO "configure" | |
13711 | /* confdefs.h. */ | |
13712 | _ACEOF | |
13713 | cat confdefs.h >>conftest.$ac_ext | |
13714 | cat >>conftest.$ac_ext <<_ACEOF | |
13715 | /* end confdefs.h. */ | |
13716 | $ac_includes_default | |
13717 | int | |
13718 | main () | |
13719 | { | |
13720 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13721 | test_array [0] = 0 | |
13722 | ||
13723 | ; | |
13724 | return 0; | |
13725 | } | |
13726 | _ACEOF | |
13727 | rm -f conftest.$ac_objext | |
13728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13729 | (eval $ac_compile) 2>&5 | |
13730 | ac_status=$? | |
13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 | (exit $ac_status); } && | |
13733 | { ac_try='test -s conftest.$ac_objext' | |
13734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13735 | (eval $ac_try) 2>&5 | |
13736 | ac_status=$? | |
13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13738 | (exit $ac_status); }; }; then | |
13739 | ac_lo=0 ac_mid=0 | |
13740 | while :; do | |
13741 | cat >conftest.$ac_ext <<_ACEOF | |
13742 | #line $LINENO "configure" | |
13743 | /* confdefs.h. */ | |
13744 | _ACEOF | |
13745 | cat confdefs.h >>conftest.$ac_ext | |
13746 | cat >>conftest.$ac_ext <<_ACEOF | |
13747 | /* end confdefs.h. */ | |
13748 | $ac_includes_default | |
13749 | int | |
13750 | main () | |
13751 | { | |
13752 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13753 | test_array [0] = 0 | |
13754 | ||
13755 | ; | |
13756 | return 0; | |
13757 | } | |
13758 | _ACEOF | |
13759 | rm -f conftest.$ac_objext | |
13760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13761 | (eval $ac_compile) 2>&5 | |
13762 | ac_status=$? | |
13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13764 | (exit $ac_status); } && | |
13765 | { ac_try='test -s conftest.$ac_objext' | |
13766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13767 | (eval $ac_try) 2>&5 | |
13768 | ac_status=$? | |
13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13770 | (exit $ac_status); }; }; then | |
13771 | ac_hi=$ac_mid; break | |
13772 | else | |
13773 | echo "$as_me: failed program was:" >&5 | |
13774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13775 | ||
13776 | ac_lo=`expr $ac_mid + 1` | |
13777 | if test $ac_lo -le $ac_mid; then | |
13778 | ac_lo= ac_hi= | |
13779 | break | |
13780 | fi | |
13781 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13782 | fi | |
13783 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13784 | done | |
a0b9e27f | 13785 | else |
e6cc62c6 VS |
13786 | echo "$as_me: failed program was:" >&5 |
13787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13788 | ||
13789 | cat >conftest.$ac_ext <<_ACEOF | |
13790 | #line $LINENO "configure" | |
13791 | /* confdefs.h. */ | |
13792 | _ACEOF | |
13793 | cat confdefs.h >>conftest.$ac_ext | |
13794 | cat >>conftest.$ac_ext <<_ACEOF | |
13795 | /* end confdefs.h. */ | |
13796 | $ac_includes_default | |
13797 | int | |
13798 | main () | |
13799 | { | |
13800 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13801 | test_array [0] = 0 | |
13802 | ||
13803 | ; | |
13804 | return 0; | |
13805 | } | |
13806 | _ACEOF | |
13807 | rm -f conftest.$ac_objext | |
13808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13809 | (eval $ac_compile) 2>&5 | |
13810 | ac_status=$? | |
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13812 | (exit $ac_status); } && | |
13813 | { ac_try='test -s conftest.$ac_objext' | |
13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13815 | (eval $ac_try) 2>&5 | |
13816 | ac_status=$? | |
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13818 | (exit $ac_status); }; }; then | |
13819 | ac_hi=-1 ac_mid=-1 | |
13820 | while :; do | |
13821 | cat >conftest.$ac_ext <<_ACEOF | |
13822 | #line $LINENO "configure" | |
13823 | /* confdefs.h. */ | |
13824 | _ACEOF | |
13825 | cat confdefs.h >>conftest.$ac_ext | |
13826 | cat >>conftest.$ac_ext <<_ACEOF | |
13827 | /* end confdefs.h. */ | |
13828 | $ac_includes_default | |
13829 | int | |
13830 | main () | |
13831 | { | |
13832 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13833 | test_array [0] = 0 | |
13834 | ||
13835 | ; | |
13836 | return 0; | |
13837 | } | |
13838 | _ACEOF | |
13839 | rm -f conftest.$ac_objext | |
13840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13841 | (eval $ac_compile) 2>&5 | |
13842 | ac_status=$? | |
13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13844 | (exit $ac_status); } && | |
13845 | { ac_try='test -s conftest.$ac_objext' | |
13846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13847 | (eval $ac_try) 2>&5 | |
13848 | ac_status=$? | |
13849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13850 | (exit $ac_status); }; }; then | |
13851 | ac_lo=$ac_mid; break | |
13852 | else | |
13853 | echo "$as_me: failed program was:" >&5 | |
13854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13855 | ||
13856 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13857 | if test $ac_mid -le $ac_hi; then | |
13858 | ac_lo= ac_hi= | |
13859 | break | |
13860 | fi | |
13861 | ac_mid=`expr 2 '*' $ac_mid` | |
13862 | fi | |
13863 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13864 | done | |
13865 | else | |
13866 | echo "$as_me: failed program was:" >&5 | |
13867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13868 | ||
13869 | ac_lo= ac_hi= | |
13870 | fi | |
13871 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13872 | fi | |
13873 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13874 | # Binary search between lo and hi bounds. | |
13875 | while test "x$ac_lo" != "x$ac_hi"; do | |
13876 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13877 | cat >conftest.$ac_ext <<_ACEOF | |
13878 | #line $LINENO "configure" | |
13879 | /* confdefs.h. */ | |
13880 | _ACEOF | |
13881 | cat confdefs.h >>conftest.$ac_ext | |
13882 | cat >>conftest.$ac_ext <<_ACEOF | |
13883 | /* end confdefs.h. */ | |
13884 | $ac_includes_default | |
13885 | int | |
13886 | main () | |
13887 | { | |
13888 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13889 | test_array [0] = 0 | |
13890 | ||
13891 | ; | |
13892 | return 0; | |
13893 | } | |
13894 | _ACEOF | |
13895 | rm -f conftest.$ac_objext | |
13896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13897 | (eval $ac_compile) 2>&5 | |
13898 | ac_status=$? | |
13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13900 | (exit $ac_status); } && | |
13901 | { ac_try='test -s conftest.$ac_objext' | |
13902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13903 | (eval $ac_try) 2>&5 | |
13904 | ac_status=$? | |
13905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13906 | (exit $ac_status); }; }; then | |
13907 | ac_hi=$ac_mid | |
13908 | else | |
13909 | echo "$as_me: failed program was:" >&5 | |
13910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13911 | ||
13912 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13913 | fi | |
13914 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13915 | done | |
13916 | case $ac_lo in | |
13917 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13918 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13919 | See \`config.log' for more details." >&5 | |
13920 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13921 | See \`config.log' for more details." >&2;} | |
13922 | { (exit 1); exit 1; }; } ;; | |
13923 | esac | |
13924 | else | |
13925 | if test "$cross_compiling" = yes; then | |
13926 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13927 | See \`config.log' for more details." >&5 | |
13928 | echo "$as_me: error: cannot run test program while cross compiling | |
13929 | See \`config.log' for more details." >&2;} | |
13930 | { (exit 1); exit 1; }; } | |
13931 | else | |
13932 | cat >conftest.$ac_ext <<_ACEOF | |
13933 | #line $LINENO "configure" | |
13934 | /* confdefs.h. */ | |
13935 | _ACEOF | |
13936 | cat confdefs.h >>conftest.$ac_ext | |
13937 | cat >>conftest.$ac_ext <<_ACEOF | |
13938 | /* end confdefs.h. */ | |
13939 | $ac_includes_default | |
13940 | long longval () { return (long) (sizeof (char)); } | |
13941 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 13942 | #include <stdio.h> |
e6cc62c6 VS |
13943 | #include <stdlib.h> |
13944 | int | |
13945 | main () | |
247f5006 | 13946 | { |
e6cc62c6 VS |
13947 | |
13948 | FILE *f = fopen ("conftest.val", "w"); | |
13949 | if (! f) | |
13950 | exit (1); | |
13951 | if (((long) (sizeof (char))) < 0) | |
13952 | { | |
13953 | long i = longval (); | |
13954 | if (i != ((long) (sizeof (char)))) | |
13955 | exit (1); | |
13956 | fprintf (f, "%ld\n", i); | |
13957 | } | |
13958 | else | |
13959 | { | |
13960 | unsigned long i = ulongval (); | |
13961 | if (i != ((long) (sizeof (char)))) | |
13962 | exit (1); | |
13963 | fprintf (f, "%lu\n", i); | |
13964 | } | |
13965 | exit (ferror (f) || fclose (f) != 0); | |
13966 | ||
13967 | ; | |
13968 | return 0; | |
52127426 | 13969 | } |
e6cc62c6 VS |
13970 | _ACEOF |
13971 | rm -f conftest$ac_exeext | |
13972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13973 | (eval $ac_link) 2>&5 | |
13974 | ac_status=$? | |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13978 | (eval $ac_try) 2>&5 | |
13979 | ac_status=$? | |
13980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13981 | (exit $ac_status); }; }; then | |
13982 | ac_cv_sizeof_char=`cat conftest.val` | |
13983 | else | |
13984 | echo "$as_me: program exited with status $ac_status" >&5 | |
13985 | echo "$as_me: failed program was:" >&5 | |
13986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13987 | ||
13988 | ( exit $ac_status ) | |
13989 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13990 | See \`config.log' for more details." >&5 | |
13991 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13992 | See \`config.log' for more details." >&2;} | |
13993 | { (exit 1); exit 1; }; } | |
13994 | fi | |
13995 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13996 | fi | |
13997 | fi | |
13998 | rm -f conftest.val | |
247f5006 | 13999 | else |
a0b9e27f | 14000 | ac_cv_sizeof_char=0 |
247f5006 | 14001 | fi |
247f5006 | 14002 | fi |
e6cc62c6 VS |
14003 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14004 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14005 | cat >>confdefs.h <<_ACEOF | |
14006 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14007 | _ACEOF | |
14008 | ||
14009 | ||
14010 | echo "$as_me:$LINENO: checking for short" >&5 | |
14011 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14012 | if test "${ac_cv_type_short+set}" = set; then | |
14013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14014 | else | |
14015 | cat >conftest.$ac_ext <<_ACEOF | |
14016 | #line $LINENO "configure" | |
14017 | /* confdefs.h. */ | |
14018 | _ACEOF | |
14019 | cat confdefs.h >>conftest.$ac_ext | |
14020 | cat >>conftest.$ac_ext <<_ACEOF | |
14021 | /* end confdefs.h. */ | |
14022 | $ac_includes_default | |
14023 | int | |
14024 | main () | |
14025 | { | |
14026 | if ((short *) 0) | |
14027 | return 0; | |
14028 | if (sizeof (short)) | |
14029 | return 0; | |
14030 | ; | |
14031 | return 0; | |
14032 | } | |
14033 | _ACEOF | |
14034 | rm -f conftest.$ac_objext | |
14035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14036 | (eval $ac_compile) 2>&5 | |
14037 | ac_status=$? | |
14038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14039 | (exit $ac_status); } && | |
14040 | { ac_try='test -s conftest.$ac_objext' | |
14041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14042 | (eval $ac_try) 2>&5 | |
14043 | ac_status=$? | |
14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14045 | (exit $ac_status); }; }; then | |
14046 | ac_cv_type_short=yes | |
14047 | else | |
14048 | echo "$as_me: failed program was:" >&5 | |
14049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14050 | ||
14051 | ac_cv_type_short=no | |
14052 | fi | |
14053 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14054 | fi | |
14055 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14056 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14057 | ||
14058 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14059 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14060 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14062 | else | |
14063 | if test "$ac_cv_type_short" = yes; then | |
14064 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14065 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14066 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14067 | # This bug is HP SR number 8606223364. | |
14068 | if test "$cross_compiling" = yes; then | |
14069 | # Depending upon the size, compute the lo and hi bounds. | |
14070 | cat >conftest.$ac_ext <<_ACEOF | |
14071 | #line $LINENO "configure" | |
14072 | /* confdefs.h. */ | |
14073 | _ACEOF | |
14074 | cat confdefs.h >>conftest.$ac_ext | |
14075 | cat >>conftest.$ac_ext <<_ACEOF | |
14076 | /* end confdefs.h. */ | |
14077 | $ac_includes_default | |
14078 | int | |
14079 | main () | |
14080 | { | |
14081 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14082 | test_array [0] = 0 | |
247f5006 | 14083 | |
e6cc62c6 VS |
14084 | ; |
14085 | return 0; | |
14086 | } | |
14087 | _ACEOF | |
14088 | rm -f conftest.$ac_objext | |
14089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14090 | (eval $ac_compile) 2>&5 | |
14091 | ac_status=$? | |
14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14093 | (exit $ac_status); } && | |
14094 | { ac_try='test -s conftest.$ac_objext' | |
14095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14096 | (eval $ac_try) 2>&5 | |
14097 | ac_status=$? | |
14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14099 | (exit $ac_status); }; }; then | |
14100 | ac_lo=0 ac_mid=0 | |
14101 | while :; do | |
14102 | cat >conftest.$ac_ext <<_ACEOF | |
14103 | #line $LINENO "configure" | |
14104 | /* confdefs.h. */ | |
14105 | _ACEOF | |
14106 | cat confdefs.h >>conftest.$ac_ext | |
14107 | cat >>conftest.$ac_ext <<_ACEOF | |
14108 | /* end confdefs.h. */ | |
14109 | $ac_includes_default | |
14110 | int | |
14111 | main () | |
14112 | { | |
14113 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14114 | test_array [0] = 0 | |
14115 | ||
14116 | ; | |
14117 | return 0; | |
14118 | } | |
14119 | _ACEOF | |
14120 | rm -f conftest.$ac_objext | |
14121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14122 | (eval $ac_compile) 2>&5 | |
14123 | ac_status=$? | |
14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14125 | (exit $ac_status); } && | |
14126 | { ac_try='test -s conftest.$ac_objext' | |
14127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14128 | (eval $ac_try) 2>&5 | |
14129 | ac_status=$? | |
14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14131 | (exit $ac_status); }; }; then | |
14132 | ac_hi=$ac_mid; break | |
14133 | else | |
14134 | echo "$as_me: failed program was:" >&5 | |
14135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14136 | ||
14137 | ac_lo=`expr $ac_mid + 1` | |
14138 | if test $ac_lo -le $ac_mid; then | |
14139 | ac_lo= ac_hi= | |
14140 | break | |
14141 | fi | |
14142 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14143 | fi |
e6cc62c6 VS |
14144 | rm -f conftest.$ac_objext conftest.$ac_ext |
14145 | done | |
14146 | else | |
14147 | echo "$as_me: failed program was:" >&5 | |
14148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14149 | ||
14150 | cat >conftest.$ac_ext <<_ACEOF | |
14151 | #line $LINENO "configure" | |
14152 | /* confdefs.h. */ | |
14153 | _ACEOF | |
14154 | cat confdefs.h >>conftest.$ac_ext | |
14155 | cat >>conftest.$ac_ext <<_ACEOF | |
14156 | /* end confdefs.h. */ | |
14157 | $ac_includes_default | |
14158 | int | |
14159 | main () | |
14160 | { | |
14161 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14162 | test_array [0] = 0 | |
247f5006 | 14163 | |
e6cc62c6 VS |
14164 | ; |
14165 | return 0; | |
14166 | } | |
14167 | _ACEOF | |
14168 | rm -f conftest.$ac_objext | |
14169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14170 | (eval $ac_compile) 2>&5 | |
14171 | ac_status=$? | |
14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); } && | |
14174 | { ac_try='test -s conftest.$ac_objext' | |
14175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14176 | (eval $ac_try) 2>&5 | |
14177 | ac_status=$? | |
14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14179 | (exit $ac_status); }; }; then | |
14180 | ac_hi=-1 ac_mid=-1 | |
14181 | while :; do | |
14182 | cat >conftest.$ac_ext <<_ACEOF | |
14183 | #line $LINENO "configure" | |
14184 | /* confdefs.h. */ | |
14185 | _ACEOF | |
14186 | cat confdefs.h >>conftest.$ac_ext | |
14187 | cat >>conftest.$ac_ext <<_ACEOF | |
14188 | /* end confdefs.h. */ | |
14189 | $ac_includes_default | |
14190 | int | |
14191 | main () | |
14192 | { | |
14193 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14194 | test_array [0] = 0 | |
247f5006 | 14195 | |
e6cc62c6 VS |
14196 | ; |
14197 | return 0; | |
14198 | } | |
14199 | _ACEOF | |
14200 | rm -f conftest.$ac_objext | |
14201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14202 | (eval $ac_compile) 2>&5 | |
14203 | ac_status=$? | |
14204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14205 | (exit $ac_status); } && | |
14206 | { ac_try='test -s conftest.$ac_objext' | |
14207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14208 | (eval $ac_try) 2>&5 | |
14209 | ac_status=$? | |
14210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14211 | (exit $ac_status); }; }; then | |
14212 | ac_lo=$ac_mid; break | |
14213 | else | |
14214 | echo "$as_me: failed program was:" >&5 | |
14215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14216 | ||
14217 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14218 | if test $ac_mid -le $ac_hi; then | |
14219 | ac_lo= ac_hi= | |
14220 | break | |
14221 | fi | |
14222 | ac_mid=`expr 2 '*' $ac_mid` | |
14223 | fi | |
14224 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14225 | done | |
247f5006 | 14226 | else |
e6cc62c6 VS |
14227 | echo "$as_me: failed program was:" >&5 |
14228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14229 | ||
14230 | ac_lo= ac_hi= | |
14231 | fi | |
14232 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14233 | fi | |
14234 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14235 | # Binary search between lo and hi bounds. | |
14236 | while test "x$ac_lo" != "x$ac_hi"; do | |
14237 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14238 | cat >conftest.$ac_ext <<_ACEOF | |
14239 | #line $LINENO "configure" | |
14240 | /* confdefs.h. */ | |
14241 | _ACEOF | |
14242 | cat confdefs.h >>conftest.$ac_ext | |
14243 | cat >>conftest.$ac_ext <<_ACEOF | |
14244 | /* end confdefs.h. */ | |
14245 | $ac_includes_default | |
14246 | int | |
14247 | main () | |
14248 | { | |
14249 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14250 | test_array [0] = 0 | |
14251 | ||
14252 | ; | |
14253 | return 0; | |
14254 | } | |
14255 | _ACEOF | |
14256 | rm -f conftest.$ac_objext | |
14257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14258 | (eval $ac_compile) 2>&5 | |
14259 | ac_status=$? | |
14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14261 | (exit $ac_status); } && | |
14262 | { ac_try='test -s conftest.$ac_objext' | |
14263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14264 | (eval $ac_try) 2>&5 | |
14265 | ac_status=$? | |
14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14267 | (exit $ac_status); }; }; then | |
14268 | ac_hi=$ac_mid | |
14269 | else | |
14270 | echo "$as_me: failed program was:" >&5 | |
14271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14272 | ||
14273 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14274 | fi | |
14275 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14276 | done | |
14277 | case $ac_lo in | |
14278 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14279 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14280 | See \`config.log' for more details." >&5 | |
14281 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14282 | See \`config.log' for more details." >&2;} | |
14283 | { (exit 1); exit 1; }; } ;; | |
14284 | esac | |
247f5006 | 14285 | else |
e6cc62c6 VS |
14286 | if test "$cross_compiling" = yes; then |
14287 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14288 | See \`config.log' for more details." >&5 | |
14289 | echo "$as_me: error: cannot run test program while cross compiling | |
14290 | See \`config.log' for more details." >&2;} | |
14291 | { (exit 1); exit 1; }; } | |
14292 | else | |
14293 | cat >conftest.$ac_ext <<_ACEOF | |
14294 | #line $LINENO "configure" | |
14295 | /* confdefs.h. */ | |
14296 | _ACEOF | |
14297 | cat confdefs.h >>conftest.$ac_ext | |
14298 | cat >>conftest.$ac_ext <<_ACEOF | |
14299 | /* end confdefs.h. */ | |
14300 | $ac_includes_default | |
14301 | long longval () { return (long) (sizeof (short)); } | |
14302 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14303 | #include <stdio.h> |
e6cc62c6 VS |
14304 | #include <stdlib.h> |
14305 | int | |
14306 | main () | |
a0b9e27f | 14307 | { |
e6cc62c6 VS |
14308 | |
14309 | FILE *f = fopen ("conftest.val", "w"); | |
14310 | if (! f) | |
14311 | exit (1); | |
14312 | if (((long) (sizeof (short))) < 0) | |
14313 | { | |
14314 | long i = longval (); | |
14315 | if (i != ((long) (sizeof (short)))) | |
14316 | exit (1); | |
14317 | fprintf (f, "%ld\n", i); | |
14318 | } | |
14319 | else | |
14320 | { | |
14321 | unsigned long i = ulongval (); | |
14322 | if (i != ((long) (sizeof (short)))) | |
14323 | exit (1); | |
14324 | fprintf (f, "%lu\n", i); | |
14325 | } | |
14326 | exit (ferror (f) || fclose (f) != 0); | |
14327 | ||
14328 | ; | |
14329 | return 0; | |
a0b9e27f | 14330 | } |
e6cc62c6 VS |
14331 | _ACEOF |
14332 | rm -f conftest$ac_exeext | |
14333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14334 | (eval $ac_link) 2>&5 | |
14335 | ac_status=$? | |
14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14339 | (eval $ac_try) 2>&5 | |
14340 | ac_status=$? | |
14341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14342 | (exit $ac_status); }; }; then | |
14343 | ac_cv_sizeof_short=`cat conftest.val` | |
14344 | else | |
14345 | echo "$as_me: program exited with status $ac_status" >&5 | |
14346 | echo "$as_me: failed program was:" >&5 | |
14347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14348 | ||
14349 | ( exit $ac_status ) | |
14350 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14351 | See \`config.log' for more details." >&5 | |
14352 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14353 | See \`config.log' for more details." >&2;} | |
14354 | { (exit 1); exit 1; }; } | |
14355 | fi | |
14356 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14357 | fi | |
14358 | fi | |
14359 | rm -f conftest.val | |
247f5006 | 14360 | else |
a0b9e27f | 14361 | ac_cv_sizeof_short=0 |
247f5006 | 14362 | fi |
247f5006 | 14363 | fi |
e6cc62c6 VS |
14364 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14365 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14366 | cat >>confdefs.h <<_ACEOF | |
14367 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14368 | _ACEOF | |
14369 | ||
14370 | ||
14371 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14372 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14373 | if test "${ac_cv_type_void_p+set}" = set; then | |
14374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14375 | else | |
14376 | cat >conftest.$ac_ext <<_ACEOF | |
14377 | #line $LINENO "configure" | |
14378 | /* confdefs.h. */ | |
14379 | _ACEOF | |
14380 | cat confdefs.h >>conftest.$ac_ext | |
14381 | cat >>conftest.$ac_ext <<_ACEOF | |
14382 | /* end confdefs.h. */ | |
14383 | $ac_includes_default | |
14384 | int | |
14385 | main () | |
14386 | { | |
14387 | if ((void * *) 0) | |
14388 | return 0; | |
14389 | if (sizeof (void *)) | |
14390 | return 0; | |
14391 | ; | |
14392 | return 0; | |
14393 | } | |
14394 | _ACEOF | |
14395 | rm -f conftest.$ac_objext | |
14396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14397 | (eval $ac_compile) 2>&5 | |
14398 | ac_status=$? | |
14399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14400 | (exit $ac_status); } && | |
14401 | { ac_try='test -s conftest.$ac_objext' | |
14402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14403 | (eval $ac_try) 2>&5 | |
14404 | ac_status=$? | |
14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14406 | (exit $ac_status); }; }; then | |
14407 | ac_cv_type_void_p=yes | |
14408 | else | |
14409 | echo "$as_me: failed program was:" >&5 | |
14410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14411 | ||
14412 | ac_cv_type_void_p=no | |
14413 | fi | |
14414 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14415 | fi | |
14416 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14417 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14418 | ||
14419 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14420 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14421 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14423 | else | |
14424 | if test "$ac_cv_type_void_p" = yes; then | |
14425 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14426 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14427 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14428 | # This bug is HP SR number 8606223364. | |
14429 | if test "$cross_compiling" = yes; then | |
14430 | # Depending upon the size, compute the lo and hi bounds. | |
14431 | cat >conftest.$ac_ext <<_ACEOF | |
14432 | #line $LINENO "configure" | |
14433 | /* confdefs.h. */ | |
14434 | _ACEOF | |
14435 | cat confdefs.h >>conftest.$ac_ext | |
14436 | cat >>conftest.$ac_ext <<_ACEOF | |
14437 | /* end confdefs.h. */ | |
14438 | $ac_includes_default | |
14439 | int | |
14440 | main () | |
14441 | { | |
14442 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14443 | test_array [0] = 0 | |
14444 | ||
14445 | ; | |
14446 | return 0; | |
14447 | } | |
14448 | _ACEOF | |
14449 | rm -f conftest.$ac_objext | |
14450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14451 | (eval $ac_compile) 2>&5 | |
14452 | ac_status=$? | |
14453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14454 | (exit $ac_status); } && | |
14455 | { ac_try='test -s conftest.$ac_objext' | |
14456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14457 | (eval $ac_try) 2>&5 | |
14458 | ac_status=$? | |
14459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14460 | (exit $ac_status); }; }; then | |
14461 | ac_lo=0 ac_mid=0 | |
14462 | while :; do | |
14463 | cat >conftest.$ac_ext <<_ACEOF | |
14464 | #line $LINENO "configure" | |
14465 | /* confdefs.h. */ | |
14466 | _ACEOF | |
14467 | cat confdefs.h >>conftest.$ac_ext | |
14468 | cat >>conftest.$ac_ext <<_ACEOF | |
14469 | /* end confdefs.h. */ | |
14470 | $ac_includes_default | |
14471 | int | |
14472 | main () | |
14473 | { | |
14474 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14475 | test_array [0] = 0 | |
247f5006 | 14476 | |
e6cc62c6 VS |
14477 | ; |
14478 | return 0; | |
14479 | } | |
14480 | _ACEOF | |
14481 | rm -f conftest.$ac_objext | |
14482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14483 | (eval $ac_compile) 2>&5 | |
14484 | ac_status=$? | |
14485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14486 | (exit $ac_status); } && | |
14487 | { ac_try='test -s conftest.$ac_objext' | |
14488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14489 | (eval $ac_try) 2>&5 | |
14490 | ac_status=$? | |
14491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14492 | (exit $ac_status); }; }; then | |
14493 | ac_hi=$ac_mid; break | |
14494 | else | |
14495 | echo "$as_me: failed program was:" >&5 | |
14496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14497 | ||
14498 | ac_lo=`expr $ac_mid + 1` | |
14499 | if test $ac_lo -le $ac_mid; then | |
14500 | ac_lo= ac_hi= | |
14501 | break | |
14502 | fi | |
14503 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14504 | fi |
e6cc62c6 VS |
14505 | rm -f conftest.$ac_objext conftest.$ac_ext |
14506 | done | |
14507 | else | |
14508 | echo "$as_me: failed program was:" >&5 | |
14509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14510 | ||
14511 | cat >conftest.$ac_ext <<_ACEOF | |
14512 | #line $LINENO "configure" | |
14513 | /* confdefs.h. */ | |
14514 | _ACEOF | |
14515 | cat confdefs.h >>conftest.$ac_ext | |
14516 | cat >>conftest.$ac_ext <<_ACEOF | |
14517 | /* end confdefs.h. */ | |
14518 | $ac_includes_default | |
14519 | int | |
14520 | main () | |
14521 | { | |
14522 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14523 | test_array [0] = 0 | |
247f5006 | 14524 | |
e6cc62c6 VS |
14525 | ; |
14526 | return 0; | |
14527 | } | |
14528 | _ACEOF | |
14529 | rm -f conftest.$ac_objext | |
14530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14531 | (eval $ac_compile) 2>&5 | |
14532 | ac_status=$? | |
14533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14534 | (exit $ac_status); } && | |
14535 | { ac_try='test -s conftest.$ac_objext' | |
14536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14537 | (eval $ac_try) 2>&5 | |
14538 | ac_status=$? | |
14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14540 | (exit $ac_status); }; }; then | |
14541 | ac_hi=-1 ac_mid=-1 | |
14542 | while :; do | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
14544 | #line $LINENO "configure" | |
14545 | /* confdefs.h. */ | |
14546 | _ACEOF | |
14547 | cat confdefs.h >>conftest.$ac_ext | |
14548 | cat >>conftest.$ac_ext <<_ACEOF | |
14549 | /* end confdefs.h. */ | |
14550 | $ac_includes_default | |
14551 | int | |
14552 | main () | |
14553 | { | |
14554 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14555 | test_array [0] = 0 | |
247f5006 | 14556 | |
e6cc62c6 VS |
14557 | ; |
14558 | return 0; | |
14559 | } | |
14560 | _ACEOF | |
14561 | rm -f conftest.$ac_objext | |
14562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14563 | (eval $ac_compile) 2>&5 | |
14564 | ac_status=$? | |
14565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14566 | (exit $ac_status); } && | |
14567 | { ac_try='test -s conftest.$ac_objext' | |
14568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14569 | (eval $ac_try) 2>&5 | |
14570 | ac_status=$? | |
14571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14572 | (exit $ac_status); }; }; then | |
14573 | ac_lo=$ac_mid; break | |
14574 | else | |
14575 | echo "$as_me: failed program was:" >&5 | |
14576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14577 | ||
14578 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14579 | if test $ac_mid -le $ac_hi; then | |
14580 | ac_lo= ac_hi= | |
14581 | break | |
14582 | fi | |
14583 | ac_mid=`expr 2 '*' $ac_mid` | |
14584 | fi | |
14585 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14586 | done | |
a0b9e27f | 14587 | else |
e6cc62c6 VS |
14588 | echo "$as_me: failed program was:" >&5 |
14589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14590 | ||
14591 | ac_lo= ac_hi= | |
14592 | fi | |
14593 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14594 | fi | |
14595 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14596 | # Binary search between lo and hi bounds. | |
14597 | while test "x$ac_lo" != "x$ac_hi"; do | |
14598 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14599 | cat >conftest.$ac_ext <<_ACEOF | |
14600 | #line $LINENO "configure" | |
14601 | /* confdefs.h. */ | |
14602 | _ACEOF | |
14603 | cat confdefs.h >>conftest.$ac_ext | |
14604 | cat >>conftest.$ac_ext <<_ACEOF | |
14605 | /* end confdefs.h. */ | |
14606 | $ac_includes_default | |
14607 | int | |
14608 | main () | |
14609 | { | |
14610 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14611 | test_array [0] = 0 | |
14612 | ||
14613 | ; | |
14614 | return 0; | |
14615 | } | |
14616 | _ACEOF | |
14617 | rm -f conftest.$ac_objext | |
14618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14619 | (eval $ac_compile) 2>&5 | |
14620 | ac_status=$? | |
14621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14622 | (exit $ac_status); } && | |
14623 | { ac_try='test -s conftest.$ac_objext' | |
14624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14625 | (eval $ac_try) 2>&5 | |
14626 | ac_status=$? | |
14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14628 | (exit $ac_status); }; }; then | |
14629 | ac_hi=$ac_mid | |
14630 | else | |
14631 | echo "$as_me: failed program was:" >&5 | |
14632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14633 | ||
14634 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14635 | fi | |
14636 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14637 | done | |
14638 | case $ac_lo in | |
14639 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14640 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14641 | See \`config.log' for more details." >&5 | |
14642 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14643 | See \`config.log' for more details." >&2;} | |
14644 | { (exit 1); exit 1; }; } ;; | |
14645 | esac | |
247f5006 | 14646 | else |
e6cc62c6 VS |
14647 | if test "$cross_compiling" = yes; then |
14648 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14649 | See \`config.log' for more details." >&5 | |
14650 | echo "$as_me: error: cannot run test program while cross compiling | |
14651 | See \`config.log' for more details." >&2;} | |
14652 | { (exit 1); exit 1; }; } | |
14653 | else | |
14654 | cat >conftest.$ac_ext <<_ACEOF | |
14655 | #line $LINENO "configure" | |
14656 | /* confdefs.h. */ | |
14657 | _ACEOF | |
14658 | cat confdefs.h >>conftest.$ac_ext | |
14659 | cat >>conftest.$ac_ext <<_ACEOF | |
14660 | /* end confdefs.h. */ | |
14661 | $ac_includes_default | |
14662 | long longval () { return (long) (sizeof (void *)); } | |
14663 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14664 | #include <stdio.h> |
e6cc62c6 VS |
14665 | #include <stdlib.h> |
14666 | int | |
14667 | main () | |
247f5006 | 14668 | { |
e6cc62c6 VS |
14669 | |
14670 | FILE *f = fopen ("conftest.val", "w"); | |
14671 | if (! f) | |
14672 | exit (1); | |
14673 | if (((long) (sizeof (void *))) < 0) | |
14674 | { | |
14675 | long i = longval (); | |
14676 | if (i != ((long) (sizeof (void *)))) | |
14677 | exit (1); | |
14678 | fprintf (f, "%ld\n", i); | |
14679 | } | |
14680 | else | |
14681 | { | |
14682 | unsigned long i = ulongval (); | |
14683 | if (i != ((long) (sizeof (void *)))) | |
14684 | exit (1); | |
14685 | fprintf (f, "%lu\n", i); | |
14686 | } | |
14687 | exit (ferror (f) || fclose (f) != 0); | |
14688 | ||
14689 | ; | |
14690 | return 0; | |
5c6fa7d2 | 14691 | } |
e6cc62c6 VS |
14692 | _ACEOF |
14693 | rm -f conftest$ac_exeext | |
14694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14695 | (eval $ac_link) 2>&5 | |
14696 | ac_status=$? | |
14697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14698 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14700 | (eval $ac_try) 2>&5 | |
14701 | ac_status=$? | |
14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14703 | (exit $ac_status); }; }; then | |
14704 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14705 | else | |
14706 | echo "$as_me: program exited with status $ac_status" >&5 | |
14707 | echo "$as_me: failed program was:" >&5 | |
14708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14709 | ||
14710 | ( exit $ac_status ) | |
14711 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14712 | See \`config.log' for more details." >&5 | |
14713 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14714 | See \`config.log' for more details." >&2;} | |
14715 | { (exit 1); exit 1; }; } | |
14716 | fi | |
14717 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14718 | fi | |
14719 | fi | |
14720 | rm -f conftest.val | |
a0b9e27f | 14721 | else |
a0b9e27f MB |
14722 | ac_cv_sizeof_void_p=0 |
14723 | fi | |
a0b9e27f | 14724 | fi |
e6cc62c6 VS |
14725 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14726 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14727 | cat >>confdefs.h <<_ACEOF | |
14728 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14729 | _ACEOF | |
14730 | ||
14731 | ||
14732 | echo "$as_me:$LINENO: checking for int" >&5 | |
14733 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14734 | if test "${ac_cv_type_int+set}" = set; then | |
14735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14736 | else | |
14737 | cat >conftest.$ac_ext <<_ACEOF | |
14738 | #line $LINENO "configure" | |
14739 | /* confdefs.h. */ | |
14740 | _ACEOF | |
14741 | cat confdefs.h >>conftest.$ac_ext | |
14742 | cat >>conftest.$ac_ext <<_ACEOF | |
14743 | /* end confdefs.h. */ | |
14744 | $ac_includes_default | |
14745 | int | |
14746 | main () | |
14747 | { | |
14748 | if ((int *) 0) | |
14749 | return 0; | |
14750 | if (sizeof (int)) | |
14751 | return 0; | |
14752 | ; | |
14753 | return 0; | |
14754 | } | |
14755 | _ACEOF | |
14756 | rm -f conftest.$ac_objext | |
14757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14758 | (eval $ac_compile) 2>&5 | |
14759 | ac_status=$? | |
14760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14761 | (exit $ac_status); } && | |
14762 | { ac_try='test -s conftest.$ac_objext' | |
14763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14764 | (eval $ac_try) 2>&5 | |
14765 | ac_status=$? | |
14766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14767 | (exit $ac_status); }; }; then | |
14768 | ac_cv_type_int=yes | |
14769 | else | |
14770 | echo "$as_me: failed program was:" >&5 | |
14771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14772 | ||
14773 | ac_cv_type_int=no | |
14774 | fi | |
14775 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14776 | fi | |
14777 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14778 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14779 | ||
14780 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14781 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14782 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14784 | else | |
14785 | if test "$ac_cv_type_int" = yes; then | |
14786 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14787 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14788 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14789 | # This bug is HP SR number 8606223364. | |
14790 | if test "$cross_compiling" = yes; then | |
14791 | # Depending upon the size, compute the lo and hi bounds. | |
14792 | cat >conftest.$ac_ext <<_ACEOF | |
14793 | #line $LINENO "configure" | |
14794 | /* confdefs.h. */ | |
14795 | _ACEOF | |
14796 | cat confdefs.h >>conftest.$ac_ext | |
14797 | cat >>conftest.$ac_ext <<_ACEOF | |
14798 | /* end confdefs.h. */ | |
14799 | $ac_includes_default | |
14800 | int | |
14801 | main () | |
14802 | { | |
14803 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14804 | test_array [0] = 0 | |
8284b0c5 | 14805 | |
e6cc62c6 VS |
14806 | ; |
14807 | return 0; | |
14808 | } | |
14809 | _ACEOF | |
14810 | rm -f conftest.$ac_objext | |
14811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14812 | (eval $ac_compile) 2>&5 | |
14813 | ac_status=$? | |
14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14815 | (exit $ac_status); } && | |
14816 | { ac_try='test -s conftest.$ac_objext' | |
14817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14818 | (eval $ac_try) 2>&5 | |
14819 | ac_status=$? | |
14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14821 | (exit $ac_status); }; }; then | |
14822 | ac_lo=0 ac_mid=0 | |
14823 | while :; do | |
14824 | cat >conftest.$ac_ext <<_ACEOF | |
14825 | #line $LINENO "configure" | |
14826 | /* confdefs.h. */ | |
14827 | _ACEOF | |
14828 | cat confdefs.h >>conftest.$ac_ext | |
14829 | cat >>conftest.$ac_ext <<_ACEOF | |
14830 | /* end confdefs.h. */ | |
14831 | $ac_includes_default | |
14832 | int | |
14833 | main () | |
14834 | { | |
14835 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14836 | test_array [0] = 0 | |
14837 | ||
14838 | ; | |
14839 | return 0; | |
14840 | } | |
14841 | _ACEOF | |
14842 | rm -f conftest.$ac_objext | |
14843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14844 | (eval $ac_compile) 2>&5 | |
14845 | ac_status=$? | |
14846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14847 | (exit $ac_status); } && | |
14848 | { ac_try='test -s conftest.$ac_objext' | |
14849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14850 | (eval $ac_try) 2>&5 | |
14851 | ac_status=$? | |
14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14853 | (exit $ac_status); }; }; then | |
14854 | ac_hi=$ac_mid; break | |
14855 | else | |
14856 | echo "$as_me: failed program was:" >&5 | |
14857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14858 | ||
14859 | ac_lo=`expr $ac_mid + 1` | |
14860 | if test $ac_lo -le $ac_mid; then | |
14861 | ac_lo= ac_hi= | |
14862 | break | |
14863 | fi | |
14864 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14865 | fi |
e6cc62c6 VS |
14866 | rm -f conftest.$ac_objext conftest.$ac_ext |
14867 | done | |
14868 | else | |
14869 | echo "$as_me: failed program was:" >&5 | |
14870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14871 | ||
14872 | cat >conftest.$ac_ext <<_ACEOF | |
14873 | #line $LINENO "configure" | |
14874 | /* confdefs.h. */ | |
14875 | _ACEOF | |
14876 | cat confdefs.h >>conftest.$ac_ext | |
14877 | cat >>conftest.$ac_ext <<_ACEOF | |
14878 | /* end confdefs.h. */ | |
14879 | $ac_includes_default | |
14880 | int | |
14881 | main () | |
14882 | { | |
14883 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14884 | test_array [0] = 0 | |
247f5006 | 14885 | |
e6cc62c6 VS |
14886 | ; |
14887 | return 0; | |
14888 | } | |
14889 | _ACEOF | |
14890 | rm -f conftest.$ac_objext | |
14891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14892 | (eval $ac_compile) 2>&5 | |
14893 | ac_status=$? | |
14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14895 | (exit $ac_status); } && | |
14896 | { ac_try='test -s conftest.$ac_objext' | |
14897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14898 | (eval $ac_try) 2>&5 | |
14899 | ac_status=$? | |
14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14901 | (exit $ac_status); }; }; then | |
14902 | ac_hi=-1 ac_mid=-1 | |
14903 | while :; do | |
14904 | cat >conftest.$ac_ext <<_ACEOF | |
14905 | #line $LINENO "configure" | |
14906 | /* confdefs.h. */ | |
14907 | _ACEOF | |
14908 | cat confdefs.h >>conftest.$ac_ext | |
14909 | cat >>conftest.$ac_ext <<_ACEOF | |
14910 | /* end confdefs.h. */ | |
14911 | $ac_includes_default | |
14912 | int | |
14913 | main () | |
14914 | { | |
14915 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14916 | test_array [0] = 0 | |
247f5006 | 14917 | |
e6cc62c6 VS |
14918 | ; |
14919 | return 0; | |
14920 | } | |
14921 | _ACEOF | |
14922 | rm -f conftest.$ac_objext | |
14923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14924 | (eval $ac_compile) 2>&5 | |
14925 | ac_status=$? | |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14927 | (exit $ac_status); } && | |
14928 | { ac_try='test -s conftest.$ac_objext' | |
14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14930 | (eval $ac_try) 2>&5 | |
14931 | ac_status=$? | |
14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14933 | (exit $ac_status); }; }; then | |
14934 | ac_lo=$ac_mid; break | |
14935 | else | |
14936 | echo "$as_me: failed program was:" >&5 | |
14937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14938 | ||
14939 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14940 | if test $ac_mid -le $ac_hi; then | |
14941 | ac_lo= ac_hi= | |
14942 | break | |
14943 | fi | |
14944 | ac_mid=`expr 2 '*' $ac_mid` | |
14945 | fi | |
14946 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14947 | done | |
247f5006 | 14948 | else |
e6cc62c6 VS |
14949 | echo "$as_me: failed program was:" >&5 |
14950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14951 | ||
14952 | ac_lo= ac_hi= | |
14953 | fi | |
14954 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14955 | fi | |
14956 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14957 | # Binary search between lo and hi bounds. | |
14958 | while test "x$ac_lo" != "x$ac_hi"; do | |
14959 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14960 | cat >conftest.$ac_ext <<_ACEOF | |
14961 | #line $LINENO "configure" | |
14962 | /* confdefs.h. */ | |
14963 | _ACEOF | |
14964 | cat confdefs.h >>conftest.$ac_ext | |
14965 | cat >>conftest.$ac_ext <<_ACEOF | |
14966 | /* end confdefs.h. */ | |
14967 | $ac_includes_default | |
14968 | int | |
14969 | main () | |
14970 | { | |
14971 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14972 | test_array [0] = 0 | |
14973 | ||
14974 | ; | |
14975 | return 0; | |
14976 | } | |
14977 | _ACEOF | |
14978 | rm -f conftest.$ac_objext | |
14979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14980 | (eval $ac_compile) 2>&5 | |
14981 | ac_status=$? | |
14982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14983 | (exit $ac_status); } && | |
14984 | { ac_try='test -s conftest.$ac_objext' | |
14985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14986 | (eval $ac_try) 2>&5 | |
14987 | ac_status=$? | |
14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14989 | (exit $ac_status); }; }; then | |
14990 | ac_hi=$ac_mid | |
14991 | else | |
14992 | echo "$as_me: failed program was:" >&5 | |
14993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14994 | ||
14995 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14996 | fi | |
14997 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14998 | done | |
14999 | case $ac_lo in | |
15000 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15001 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15002 | See \`config.log' for more details." >&5 | |
15003 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15004 | See \`config.log' for more details." >&2;} | |
15005 | { (exit 1); exit 1; }; } ;; | |
15006 | esac | |
a0b9e27f | 15007 | else |
e6cc62c6 VS |
15008 | if test "$cross_compiling" = yes; then |
15009 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15010 | See \`config.log' for more details." >&5 | |
15011 | echo "$as_me: error: cannot run test program while cross compiling | |
15012 | See \`config.log' for more details." >&2;} | |
15013 | { (exit 1); exit 1; }; } | |
15014 | else | |
15015 | cat >conftest.$ac_ext <<_ACEOF | |
15016 | #line $LINENO "configure" | |
15017 | /* confdefs.h. */ | |
15018 | _ACEOF | |
15019 | cat confdefs.h >>conftest.$ac_ext | |
15020 | cat >>conftest.$ac_ext <<_ACEOF | |
15021 | /* end confdefs.h. */ | |
15022 | $ac_includes_default | |
15023 | long longval () { return (long) (sizeof (int)); } | |
15024 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15025 | #include <stdio.h> |
e6cc62c6 VS |
15026 | #include <stdlib.h> |
15027 | int | |
15028 | main () | |
247f5006 | 15029 | { |
e6cc62c6 VS |
15030 | |
15031 | FILE *f = fopen ("conftest.val", "w"); | |
15032 | if (! f) | |
15033 | exit (1); | |
15034 | if (((long) (sizeof (int))) < 0) | |
15035 | { | |
15036 | long i = longval (); | |
15037 | if (i != ((long) (sizeof (int)))) | |
15038 | exit (1); | |
15039 | fprintf (f, "%ld\n", i); | |
15040 | } | |
15041 | else | |
15042 | { | |
15043 | unsigned long i = ulongval (); | |
15044 | if (i != ((long) (sizeof (int)))) | |
15045 | exit (1); | |
15046 | fprintf (f, "%lu\n", i); | |
15047 | } | |
15048 | exit (ferror (f) || fclose (f) != 0); | |
15049 | ||
15050 | ; | |
15051 | return 0; | |
247f5006 | 15052 | } |
e6cc62c6 VS |
15053 | _ACEOF |
15054 | rm -f conftest$ac_exeext | |
15055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15056 | (eval $ac_link) 2>&5 | |
15057 | ac_status=$? | |
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15061 | (eval $ac_try) 2>&5 | |
15062 | ac_status=$? | |
15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15064 | (exit $ac_status); }; }; then | |
15065 | ac_cv_sizeof_int=`cat conftest.val` | |
15066 | else | |
15067 | echo "$as_me: program exited with status $ac_status" >&5 | |
15068 | echo "$as_me: failed program was:" >&5 | |
15069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15070 | ||
15071 | ( exit $ac_status ) | |
15072 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15073 | See \`config.log' for more details." >&5 | |
15074 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15075 | See \`config.log' for more details." >&2;} | |
15076 | { (exit 1); exit 1; }; } | |
15077 | fi | |
15078 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15079 | fi | |
15080 | fi | |
15081 | rm -f conftest.val | |
6f72b082 | 15082 | else |
a0b9e27f | 15083 | ac_cv_sizeof_int=0 |
21d1c967 | 15084 | fi |
698dcdb6 | 15085 | fi |
e6cc62c6 VS |
15086 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15087 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15088 | cat >>confdefs.h <<_ACEOF | |
15089 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15090 | _ACEOF | |
15091 | ||
15092 | ||
15093 | echo "$as_me:$LINENO: checking for long" >&5 | |
15094 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15095 | if test "${ac_cv_type_long+set}" = set; then | |
15096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15097 | else | |
15098 | cat >conftest.$ac_ext <<_ACEOF | |
15099 | #line $LINENO "configure" | |
15100 | /* confdefs.h. */ | |
15101 | _ACEOF | |
15102 | cat confdefs.h >>conftest.$ac_ext | |
15103 | cat >>conftest.$ac_ext <<_ACEOF | |
15104 | /* end confdefs.h. */ | |
15105 | $ac_includes_default | |
15106 | int | |
15107 | main () | |
15108 | { | |
15109 | if ((long *) 0) | |
15110 | return 0; | |
15111 | if (sizeof (long)) | |
15112 | return 0; | |
15113 | ; | |
15114 | return 0; | |
15115 | } | |
15116 | _ACEOF | |
15117 | rm -f conftest.$ac_objext | |
15118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15119 | (eval $ac_compile) 2>&5 | |
15120 | ac_status=$? | |
15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15122 | (exit $ac_status); } && | |
15123 | { ac_try='test -s conftest.$ac_objext' | |
15124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15125 | (eval $ac_try) 2>&5 | |
15126 | ac_status=$? | |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15128 | (exit $ac_status); }; }; then | |
15129 | ac_cv_type_long=yes | |
15130 | else | |
15131 | echo "$as_me: failed program was:" >&5 | |
15132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15133 | ||
15134 | ac_cv_type_long=no | |
15135 | fi | |
15136 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15137 | fi | |
15138 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15139 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15140 | ||
15141 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15142 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15143 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15145 | else | |
15146 | if test "$ac_cv_type_long" = yes; then | |
15147 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15148 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15149 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15150 | # This bug is HP SR number 8606223364. | |
15151 | if test "$cross_compiling" = yes; then | |
15152 | # Depending upon the size, compute the lo and hi bounds. | |
15153 | cat >conftest.$ac_ext <<_ACEOF | |
15154 | #line $LINENO "configure" | |
15155 | /* confdefs.h. */ | |
15156 | _ACEOF | |
15157 | cat confdefs.h >>conftest.$ac_ext | |
15158 | cat >>conftest.$ac_ext <<_ACEOF | |
15159 | /* end confdefs.h. */ | |
15160 | $ac_includes_default | |
15161 | int | |
15162 | main () | |
15163 | { | |
15164 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15165 | test_array [0] = 0 | |
15166 | ||
15167 | ; | |
15168 | return 0; | |
15169 | } | |
15170 | _ACEOF | |
15171 | rm -f conftest.$ac_objext | |
15172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15173 | (eval $ac_compile) 2>&5 | |
15174 | ac_status=$? | |
15175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15176 | (exit $ac_status); } && | |
15177 | { ac_try='test -s conftest.$ac_objext' | |
15178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15179 | (eval $ac_try) 2>&5 | |
15180 | ac_status=$? | |
15181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15182 | (exit $ac_status); }; }; then | |
15183 | ac_lo=0 ac_mid=0 | |
15184 | while :; do | |
15185 | cat >conftest.$ac_ext <<_ACEOF | |
15186 | #line $LINENO "configure" | |
15187 | /* confdefs.h. */ | |
15188 | _ACEOF | |
15189 | cat confdefs.h >>conftest.$ac_ext | |
15190 | cat >>conftest.$ac_ext <<_ACEOF | |
15191 | /* end confdefs.h. */ | |
15192 | $ac_includes_default | |
15193 | int | |
15194 | main () | |
15195 | { | |
15196 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15197 | test_array [0] = 0 | |
4f14bcd8 | 15198 | |
e6cc62c6 VS |
15199 | ; |
15200 | return 0; | |
15201 | } | |
15202 | _ACEOF | |
15203 | rm -f conftest.$ac_objext | |
15204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15205 | (eval $ac_compile) 2>&5 | |
15206 | ac_status=$? | |
15207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15208 | (exit $ac_status); } && | |
15209 | { ac_try='test -s conftest.$ac_objext' | |
15210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15211 | (eval $ac_try) 2>&5 | |
15212 | ac_status=$? | |
15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15214 | (exit $ac_status); }; }; then | |
15215 | ac_hi=$ac_mid; break | |
15216 | else | |
15217 | echo "$as_me: failed program was:" >&5 | |
15218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15219 | ||
15220 | ac_lo=`expr $ac_mid + 1` | |
15221 | if test $ac_lo -le $ac_mid; then | |
15222 | ac_lo= ac_hi= | |
15223 | break | |
15224 | fi | |
15225 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15226 | fi |
e6cc62c6 VS |
15227 | rm -f conftest.$ac_objext conftest.$ac_ext |
15228 | done | |
15229 | else | |
15230 | echo "$as_me: failed program was:" >&5 | |
15231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15232 | ||
15233 | cat >conftest.$ac_ext <<_ACEOF | |
15234 | #line $LINENO "configure" | |
15235 | /* confdefs.h. */ | |
15236 | _ACEOF | |
15237 | cat confdefs.h >>conftest.$ac_ext | |
15238 | cat >>conftest.$ac_ext <<_ACEOF | |
15239 | /* end confdefs.h. */ | |
15240 | $ac_includes_default | |
15241 | int | |
15242 | main () | |
15243 | { | |
15244 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15245 | test_array [0] = 0 | |
4f14bcd8 | 15246 | |
e6cc62c6 VS |
15247 | ; |
15248 | return 0; | |
15249 | } | |
15250 | _ACEOF | |
15251 | rm -f conftest.$ac_objext | |
15252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15253 | (eval $ac_compile) 2>&5 | |
15254 | ac_status=$? | |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15256 | (exit $ac_status); } && | |
15257 | { ac_try='test -s conftest.$ac_objext' | |
15258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15259 | (eval $ac_try) 2>&5 | |
15260 | ac_status=$? | |
15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15262 | (exit $ac_status); }; }; then | |
15263 | ac_hi=-1 ac_mid=-1 | |
15264 | while :; do | |
15265 | cat >conftest.$ac_ext <<_ACEOF | |
15266 | #line $LINENO "configure" | |
15267 | /* confdefs.h. */ | |
15268 | _ACEOF | |
15269 | cat confdefs.h >>conftest.$ac_ext | |
15270 | cat >>conftest.$ac_ext <<_ACEOF | |
15271 | /* end confdefs.h. */ | |
15272 | $ac_includes_default | |
15273 | int | |
15274 | main () | |
15275 | { | |
15276 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15277 | test_array [0] = 0 | |
5c6fa7d2 | 15278 | |
e6cc62c6 VS |
15279 | ; |
15280 | return 0; | |
15281 | } | |
15282 | _ACEOF | |
15283 | rm -f conftest.$ac_objext | |
15284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15285 | (eval $ac_compile) 2>&5 | |
15286 | ac_status=$? | |
15287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15288 | (exit $ac_status); } && | |
15289 | { ac_try='test -s conftest.$ac_objext' | |
15290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15291 | (eval $ac_try) 2>&5 | |
15292 | ac_status=$? | |
15293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15294 | (exit $ac_status); }; }; then | |
15295 | ac_lo=$ac_mid; break | |
15296 | else | |
15297 | echo "$as_me: failed program was:" >&5 | |
15298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15299 | ||
15300 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15301 | if test $ac_mid -le $ac_hi; then | |
15302 | ac_lo= ac_hi= | |
15303 | break | |
15304 | fi | |
15305 | ac_mid=`expr 2 '*' $ac_mid` | |
15306 | fi | |
15307 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15308 | done | |
247f5006 | 15309 | else |
e6cc62c6 VS |
15310 | echo "$as_me: failed program was:" >&5 |
15311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15312 | ||
15313 | ac_lo= ac_hi= | |
15314 | fi | |
15315 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15316 | fi | |
15317 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15318 | # Binary search between lo and hi bounds. | |
15319 | while test "x$ac_lo" != "x$ac_hi"; do | |
15320 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15321 | cat >conftest.$ac_ext <<_ACEOF | |
15322 | #line $LINENO "configure" | |
15323 | /* confdefs.h. */ | |
15324 | _ACEOF | |
15325 | cat confdefs.h >>conftest.$ac_ext | |
15326 | cat >>conftest.$ac_ext <<_ACEOF | |
15327 | /* end confdefs.h. */ | |
15328 | $ac_includes_default | |
15329 | int | |
15330 | main () | |
15331 | { | |
15332 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15333 | test_array [0] = 0 | |
15334 | ||
15335 | ; | |
15336 | return 0; | |
15337 | } | |
15338 | _ACEOF | |
15339 | rm -f conftest.$ac_objext | |
15340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15341 | (eval $ac_compile) 2>&5 | |
15342 | ac_status=$? | |
15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15344 | (exit $ac_status); } && | |
15345 | { ac_try='test -s conftest.$ac_objext' | |
15346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15347 | (eval $ac_try) 2>&5 | |
15348 | ac_status=$? | |
15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15350 | (exit $ac_status); }; }; then | |
15351 | ac_hi=$ac_mid | |
15352 | else | |
15353 | echo "$as_me: failed program was:" >&5 | |
15354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15355 | ||
15356 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15357 | fi | |
15358 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15359 | done | |
15360 | case $ac_lo in | |
15361 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15362 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15363 | See \`config.log' for more details." >&5 | |
15364 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15365 | See \`config.log' for more details." >&2;} | |
15366 | { (exit 1); exit 1; }; } ;; | |
15367 | esac | |
247f5006 | 15368 | else |
e6cc62c6 VS |
15369 | if test "$cross_compiling" = yes; then |
15370 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15371 | See \`config.log' for more details." >&5 | |
15372 | echo "$as_me: error: cannot run test program while cross compiling | |
15373 | See \`config.log' for more details." >&2;} | |
15374 | { (exit 1); exit 1; }; } | |
15375 | else | |
15376 | cat >conftest.$ac_ext <<_ACEOF | |
15377 | #line $LINENO "configure" | |
15378 | /* confdefs.h. */ | |
15379 | _ACEOF | |
15380 | cat confdefs.h >>conftest.$ac_ext | |
15381 | cat >>conftest.$ac_ext <<_ACEOF | |
15382 | /* end confdefs.h. */ | |
15383 | $ac_includes_default | |
15384 | long longval () { return (long) (sizeof (long)); } | |
15385 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15386 | #include <stdio.h> |
e6cc62c6 VS |
15387 | #include <stdlib.h> |
15388 | int | |
15389 | main () | |
247f5006 | 15390 | { |
e6cc62c6 VS |
15391 | |
15392 | FILE *f = fopen ("conftest.val", "w"); | |
15393 | if (! f) | |
15394 | exit (1); | |
15395 | if (((long) (sizeof (long))) < 0) | |
15396 | { | |
15397 | long i = longval (); | |
15398 | if (i != ((long) (sizeof (long)))) | |
15399 | exit (1); | |
15400 | fprintf (f, "%ld\n", i); | |
15401 | } | |
15402 | else | |
15403 | { | |
15404 | unsigned long i = ulongval (); | |
15405 | if (i != ((long) (sizeof (long)))) | |
15406 | exit (1); | |
15407 | fprintf (f, "%lu\n", i); | |
15408 | } | |
15409 | exit (ferror (f) || fclose (f) != 0); | |
15410 | ||
15411 | ; | |
15412 | return 0; | |
247f5006 | 15413 | } |
e6cc62c6 VS |
15414 | _ACEOF |
15415 | rm -f conftest$ac_exeext | |
15416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15417 | (eval $ac_link) 2>&5 | |
15418 | ac_status=$? | |
15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15422 | (eval $ac_try) 2>&5 | |
15423 | ac_status=$? | |
15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15425 | (exit $ac_status); }; }; then | |
15426 | ac_cv_sizeof_long=`cat conftest.val` | |
15427 | else | |
15428 | echo "$as_me: program exited with status $ac_status" >&5 | |
15429 | echo "$as_me: failed program was:" >&5 | |
15430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15431 | ||
15432 | ( exit $ac_status ) | |
15433 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15434 | See \`config.log' for more details." >&5 | |
15435 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15436 | See \`config.log' for more details." >&2;} | |
15437 | { (exit 1); exit 1; }; } | |
15438 | fi | |
15439 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15440 | fi | |
15441 | fi | |
15442 | rm -f conftest.val | |
247f5006 | 15443 | else |
a0b9e27f | 15444 | ac_cv_sizeof_long=0 |
247f5006 | 15445 | fi |
247f5006 | 15446 | fi |
e6cc62c6 VS |
15447 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15448 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15449 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15450 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15451 | _ACEOF |
247f5006 | 15452 | |
a0b9e27f MB |
15453 | |
15454 | ||
15455 | case "${host}" in | |
15456 | arm-*-linux* ) | |
e6cc62c6 VS |
15457 | echo "$as_me:$LINENO: checking for long long" >&5 |
15458 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15459 | if test "${ac_cv_type_long_long+set}" = set; then | |
15460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15461 | else | |
15462 | cat >conftest.$ac_ext <<_ACEOF | |
15463 | #line $LINENO "configure" | |
15464 | /* confdefs.h. */ | |
15465 | _ACEOF | |
15466 | cat confdefs.h >>conftest.$ac_ext | |
15467 | cat >>conftest.$ac_ext <<_ACEOF | |
15468 | /* end confdefs.h. */ | |
15469 | $ac_includes_default | |
15470 | int | |
15471 | main () | |
15472 | { | |
15473 | if ((long long *) 0) | |
15474 | return 0; | |
15475 | if (sizeof (long long)) | |
15476 | return 0; | |
15477 | ; | |
15478 | return 0; | |
15479 | } | |
15480 | _ACEOF | |
15481 | rm -f conftest.$ac_objext | |
15482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15483 | (eval $ac_compile) 2>&5 | |
15484 | ac_status=$? | |
15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15486 | (exit $ac_status); } && | |
15487 | { ac_try='test -s conftest.$ac_objext' | |
15488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15489 | (eval $ac_try) 2>&5 | |
15490 | ac_status=$? | |
15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15492 | (exit $ac_status); }; }; then | |
15493 | ac_cv_type_long_long=yes | |
15494 | else | |
15495 | echo "$as_me: failed program was:" >&5 | |
15496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15497 | ||
15498 | ac_cv_type_long_long=no | |
15499 | fi | |
15500 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15501 | fi | |
15502 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15503 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15504 | ||
15505 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15506 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15507 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15509 | else | |
15510 | if test "$ac_cv_type_long_long" = yes; then | |
15511 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15512 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15513 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15514 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15515 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15516 | # Depending upon the size, compute the lo and hi bounds. |
15517 | cat >conftest.$ac_ext <<_ACEOF | |
15518 | #line $LINENO "configure" | |
15519 | /* confdefs.h. */ | |
15520 | _ACEOF | |
15521 | cat confdefs.h >>conftest.$ac_ext | |
15522 | cat >>conftest.$ac_ext <<_ACEOF | |
15523 | /* end confdefs.h. */ | |
15524 | $ac_includes_default | |
15525 | int | |
15526 | main () | |
15527 | { | |
15528 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15529 | test_array [0] = 0 | |
15530 | ||
15531 | ; | |
15532 | return 0; | |
15533 | } | |
15534 | _ACEOF | |
15535 | rm -f conftest.$ac_objext | |
15536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15537 | (eval $ac_compile) 2>&5 | |
15538 | ac_status=$? | |
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15540 | (exit $ac_status); } && | |
15541 | { ac_try='test -s conftest.$ac_objext' | |
15542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15543 | (eval $ac_try) 2>&5 | |
15544 | ac_status=$? | |
15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15546 | (exit $ac_status); }; }; then | |
15547 | ac_lo=0 ac_mid=0 | |
15548 | while :; do | |
15549 | cat >conftest.$ac_ext <<_ACEOF | |
15550 | #line $LINENO "configure" | |
15551 | /* confdefs.h. */ | |
15552 | _ACEOF | |
15553 | cat confdefs.h >>conftest.$ac_ext | |
15554 | cat >>conftest.$ac_ext <<_ACEOF | |
15555 | /* end confdefs.h. */ | |
15556 | $ac_includes_default | |
15557 | int | |
15558 | main () | |
15559 | { | |
15560 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15561 | test_array [0] = 0 | |
15562 | ||
15563 | ; | |
15564 | return 0; | |
15565 | } | |
15566 | _ACEOF | |
15567 | rm -f conftest.$ac_objext | |
15568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15569 | (eval $ac_compile) 2>&5 | |
15570 | ac_status=$? | |
15571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15572 | (exit $ac_status); } && | |
15573 | { ac_try='test -s conftest.$ac_objext' | |
15574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15575 | (eval $ac_try) 2>&5 | |
15576 | ac_status=$? | |
15577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15578 | (exit $ac_status); }; }; then | |
15579 | ac_hi=$ac_mid; break | |
15580 | else | |
15581 | echo "$as_me: failed program was:" >&5 | |
15582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15583 | ||
15584 | ac_lo=`expr $ac_mid + 1` | |
15585 | if test $ac_lo -le $ac_mid; then | |
15586 | ac_lo= ac_hi= | |
15587 | break | |
15588 | fi | |
15589 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15590 | fi | |
15591 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15592 | done | |
15593 | else | |
15594 | echo "$as_me: failed program was:" >&5 | |
15595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15596 | ||
15597 | cat >conftest.$ac_ext <<_ACEOF | |
15598 | #line $LINENO "configure" | |
15599 | /* confdefs.h. */ | |
15600 | _ACEOF | |
15601 | cat confdefs.h >>conftest.$ac_ext | |
15602 | cat >>conftest.$ac_ext <<_ACEOF | |
15603 | /* end confdefs.h. */ | |
15604 | $ac_includes_default | |
15605 | int | |
15606 | main () | |
15607 | { | |
15608 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15609 | test_array [0] = 0 | |
15610 | ||
15611 | ; | |
15612 | return 0; | |
15613 | } | |
15614 | _ACEOF | |
15615 | rm -f conftest.$ac_objext | |
15616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15617 | (eval $ac_compile) 2>&5 | |
15618 | ac_status=$? | |
15619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15620 | (exit $ac_status); } && | |
15621 | { ac_try='test -s conftest.$ac_objext' | |
15622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15623 | (eval $ac_try) 2>&5 | |
15624 | ac_status=$? | |
15625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15626 | (exit $ac_status); }; }; then | |
15627 | ac_hi=-1 ac_mid=-1 | |
15628 | while :; do | |
15629 | cat >conftest.$ac_ext <<_ACEOF | |
15630 | #line $LINENO "configure" | |
15631 | /* confdefs.h. */ | |
15632 | _ACEOF | |
15633 | cat confdefs.h >>conftest.$ac_ext | |
15634 | cat >>conftest.$ac_ext <<_ACEOF | |
15635 | /* end confdefs.h. */ | |
15636 | $ac_includes_default | |
15637 | int | |
15638 | main () | |
15639 | { | |
15640 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15641 | test_array [0] = 0 | |
15642 | ||
15643 | ; | |
15644 | return 0; | |
15645 | } | |
15646 | _ACEOF | |
15647 | rm -f conftest.$ac_objext | |
15648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15649 | (eval $ac_compile) 2>&5 | |
15650 | ac_status=$? | |
15651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15652 | (exit $ac_status); } && | |
15653 | { ac_try='test -s conftest.$ac_objext' | |
15654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15655 | (eval $ac_try) 2>&5 | |
15656 | ac_status=$? | |
15657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15658 | (exit $ac_status); }; }; then | |
15659 | ac_lo=$ac_mid; break | |
15660 | else | |
15661 | echo "$as_me: failed program was:" >&5 | |
15662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15663 | ||
15664 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15665 | if test $ac_mid -le $ac_hi; then | |
15666 | ac_lo= ac_hi= | |
15667 | break | |
15668 | fi | |
15669 | ac_mid=`expr 2 '*' $ac_mid` | |
15670 | fi | |
15671 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15672 | done | |
15673 | else | |
15674 | echo "$as_me: failed program was:" >&5 | |
15675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15676 | ||
15677 | ac_lo= ac_hi= | |
15678 | fi | |
15679 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15680 | fi | |
15681 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15682 | # Binary search between lo and hi bounds. | |
15683 | while test "x$ac_lo" != "x$ac_hi"; do | |
15684 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15685 | cat >conftest.$ac_ext <<_ACEOF | |
15686 | #line $LINENO "configure" | |
15687 | /* confdefs.h. */ | |
15688 | _ACEOF | |
15689 | cat confdefs.h >>conftest.$ac_ext | |
15690 | cat >>conftest.$ac_ext <<_ACEOF | |
15691 | /* end confdefs.h. */ | |
15692 | $ac_includes_default | |
15693 | int | |
15694 | main () | |
15695 | { | |
15696 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15697 | test_array [0] = 0 | |
15698 | ||
15699 | ; | |
15700 | return 0; | |
15701 | } | |
15702 | _ACEOF | |
15703 | rm -f conftest.$ac_objext | |
15704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15705 | (eval $ac_compile) 2>&5 | |
15706 | ac_status=$? | |
15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15708 | (exit $ac_status); } && | |
15709 | { ac_try='test -s conftest.$ac_objext' | |
15710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15711 | (eval $ac_try) 2>&5 | |
15712 | ac_status=$? | |
15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15714 | (exit $ac_status); }; }; then | |
15715 | ac_hi=$ac_mid | |
15716 | else | |
15717 | echo "$as_me: failed program was:" >&5 | |
15718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15719 | ||
15720 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15721 | fi | |
15722 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15723 | done | |
15724 | case $ac_lo in | |
15725 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15726 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15727 | See \`config.log' for more details." >&5 | |
15728 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15729 | See \`config.log' for more details." >&2;} | |
15730 | { (exit 1); exit 1; }; } ;; | |
15731 | esac | |
a0b9e27f | 15732 | else |
e6cc62c6 VS |
15733 | if test "$cross_compiling" = yes; then |
15734 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15735 | See \`config.log' for more details." >&5 | |
15736 | echo "$as_me: error: cannot run test program while cross compiling | |
15737 | See \`config.log' for more details." >&2;} | |
15738 | { (exit 1); exit 1; }; } | |
15739 | else | |
15740 | cat >conftest.$ac_ext <<_ACEOF | |
15741 | #line $LINENO "configure" | |
15742 | /* confdefs.h. */ | |
15743 | _ACEOF | |
15744 | cat confdefs.h >>conftest.$ac_ext | |
15745 | cat >>conftest.$ac_ext <<_ACEOF | |
15746 | /* end confdefs.h. */ | |
15747 | $ac_includes_default | |
15748 | long longval () { return (long) (sizeof (long long)); } | |
15749 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15750 | #include <stdio.h> |
e6cc62c6 VS |
15751 | #include <stdlib.h> |
15752 | int | |
15753 | main () | |
247f5006 | 15754 | { |
e6cc62c6 VS |
15755 | |
15756 | FILE *f = fopen ("conftest.val", "w"); | |
15757 | if (! f) | |
15758 | exit (1); | |
15759 | if (((long) (sizeof (long long))) < 0) | |
15760 | { | |
15761 | long i = longval (); | |
15762 | if (i != ((long) (sizeof (long long)))) | |
15763 | exit (1); | |
15764 | fprintf (f, "%ld\n", i); | |
15765 | } | |
15766 | else | |
15767 | { | |
15768 | unsigned long i = ulongval (); | |
15769 | if (i != ((long) (sizeof (long long)))) | |
15770 | exit (1); | |
15771 | fprintf (f, "%lu\n", i); | |
15772 | } | |
15773 | exit (ferror (f) || fclose (f) != 0); | |
15774 | ||
15775 | ; | |
15776 | return 0; | |
247f5006 | 15777 | } |
e6cc62c6 VS |
15778 | _ACEOF |
15779 | rm -f conftest$ac_exeext | |
15780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15781 | (eval $ac_link) 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15786 | (eval $ac_try) 2>&5 | |
15787 | ac_status=$? | |
15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15789 | (exit $ac_status); }; }; then | |
15790 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15791 | else | |
15792 | echo "$as_me: program exited with status $ac_status" >&5 | |
15793 | echo "$as_me: failed program was:" >&5 | |
15794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15795 | ||
15796 | ( exit $ac_status ) | |
15797 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15798 | See \`config.log' for more details." >&5 | |
15799 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15800 | See \`config.log' for more details." >&2;} | |
15801 | { (exit 1); exit 1; }; } | |
15802 | fi | |
15803 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15804 | fi | |
15805 | fi | |
15806 | rm -f conftest.val | |
7b4a847f | 15807 | else |
a0b9e27f | 15808 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15809 | fi |
15810 | fi | |
e6cc62c6 VS |
15811 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15812 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15813 | cat >>confdefs.h <<_ACEOF | |
15814 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15815 | _ACEOF | |
15816 | ||
15817 | ||
15818 | ;; | |
15819 | *-hp-hpux* ) | |
15820 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15821 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15822 | if test "${ac_cv_type_long_long+set}" = set; then | |
15823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15824 | else | |
15825 | cat >conftest.$ac_ext <<_ACEOF | |
15826 | #line $LINENO "configure" | |
15827 | /* confdefs.h. */ | |
15828 | _ACEOF | |
15829 | cat confdefs.h >>conftest.$ac_ext | |
15830 | cat >>conftest.$ac_ext <<_ACEOF | |
15831 | /* end confdefs.h. */ | |
15832 | $ac_includes_default | |
15833 | int | |
15834 | main () | |
15835 | { | |
15836 | if ((long long *) 0) | |
15837 | return 0; | |
15838 | if (sizeof (long long)) | |
15839 | return 0; | |
15840 | ; | |
15841 | return 0; | |
15842 | } | |
15843 | _ACEOF | |
15844 | rm -f conftest.$ac_objext | |
15845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15846 | (eval $ac_compile) 2>&5 | |
15847 | ac_status=$? | |
15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15849 | (exit $ac_status); } && | |
15850 | { ac_try='test -s conftest.$ac_objext' | |
15851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15852 | (eval $ac_try) 2>&5 | |
15853 | ac_status=$? | |
15854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15855 | (exit $ac_status); }; }; then | |
15856 | ac_cv_type_long_long=yes | |
15857 | else | |
15858 | echo "$as_me: failed program was:" >&5 | |
15859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15860 | ||
15861 | ac_cv_type_long_long=no | |
15862 | fi | |
15863 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15864 | fi | |
15865 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15866 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15867 | ||
15868 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15869 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15870 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15872 | else | |
15873 | if test "$ac_cv_type_long_long" = yes; then | |
15874 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15875 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15876 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15877 | # This bug is HP SR number 8606223364. | |
15878 | if test "$cross_compiling" = yes; then | |
15879 | # Depending upon the size, compute the lo and hi bounds. | |
15880 | cat >conftest.$ac_ext <<_ACEOF | |
15881 | #line $LINENO "configure" | |
15882 | /* confdefs.h. */ | |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
15887 | $ac_includes_default | |
15888 | int | |
15889 | main () | |
15890 | { | |
15891 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15892 | test_array [0] = 0 | |
15893 | ||
15894 | ; | |
15895 | return 0; | |
15896 | } | |
15897 | _ACEOF | |
15898 | rm -f conftest.$ac_objext | |
15899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15900 | (eval $ac_compile) 2>&5 | |
15901 | ac_status=$? | |
15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15903 | (exit $ac_status); } && | |
15904 | { ac_try='test -s conftest.$ac_objext' | |
15905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15906 | (eval $ac_try) 2>&5 | |
15907 | ac_status=$? | |
15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15909 | (exit $ac_status); }; }; then | |
15910 | ac_lo=0 ac_mid=0 | |
15911 | while :; do | |
15912 | cat >conftest.$ac_ext <<_ACEOF | |
15913 | #line $LINENO "configure" | |
15914 | /* confdefs.h. */ | |
15915 | _ACEOF | |
15916 | cat confdefs.h >>conftest.$ac_ext | |
15917 | cat >>conftest.$ac_ext <<_ACEOF | |
15918 | /* end confdefs.h. */ | |
15919 | $ac_includes_default | |
15920 | int | |
15921 | main () | |
15922 | { | |
15923 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15924 | test_array [0] = 0 | |
8284b0c5 | 15925 | |
e6cc62c6 VS |
15926 | ; |
15927 | return 0; | |
15928 | } | |
15929 | _ACEOF | |
15930 | rm -f conftest.$ac_objext | |
15931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15932 | (eval $ac_compile) 2>&5 | |
15933 | ac_status=$? | |
15934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15935 | (exit $ac_status); } && | |
15936 | { ac_try='test -s conftest.$ac_objext' | |
15937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15938 | (eval $ac_try) 2>&5 | |
15939 | ac_status=$? | |
15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15941 | (exit $ac_status); }; }; then | |
15942 | ac_hi=$ac_mid; break | |
15943 | else | |
15944 | echo "$as_me: failed program was:" >&5 | |
15945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15946 | ||
15947 | ac_lo=`expr $ac_mid + 1` | |
15948 | if test $ac_lo -le $ac_mid; then | |
15949 | ac_lo= ac_hi= | |
15950 | break | |
15951 | fi | |
15952 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 15953 | fi |
e6cc62c6 VS |
15954 | rm -f conftest.$ac_objext conftest.$ac_ext |
15955 | done | |
15956 | else | |
15957 | echo "$as_me: failed program was:" >&5 | |
15958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15959 | ||
15960 | cat >conftest.$ac_ext <<_ACEOF | |
15961 | #line $LINENO "configure" | |
15962 | /* confdefs.h. */ | |
15963 | _ACEOF | |
15964 | cat confdefs.h >>conftest.$ac_ext | |
15965 | cat >>conftest.$ac_ext <<_ACEOF | |
15966 | /* end confdefs.h. */ | |
15967 | $ac_includes_default | |
15968 | int | |
15969 | main () | |
15970 | { | |
15971 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15972 | test_array [0] = 0 | |
a0b9e27f | 15973 | |
e6cc62c6 VS |
15974 | ; |
15975 | return 0; | |
15976 | } | |
15977 | _ACEOF | |
15978 | rm -f conftest.$ac_objext | |
15979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15980 | (eval $ac_compile) 2>&5 | |
15981 | ac_status=$? | |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15983 | (exit $ac_status); } && | |
15984 | { ac_try='test -s conftest.$ac_objext' | |
15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15986 | (eval $ac_try) 2>&5 | |
15987 | ac_status=$? | |
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15989 | (exit $ac_status); }; }; then | |
15990 | ac_hi=-1 ac_mid=-1 | |
15991 | while :; do | |
15992 | cat >conftest.$ac_ext <<_ACEOF | |
15993 | #line $LINENO "configure" | |
15994 | /* confdefs.h. */ | |
15995 | _ACEOF | |
15996 | cat confdefs.h >>conftest.$ac_ext | |
15997 | cat >>conftest.$ac_ext <<_ACEOF | |
15998 | /* end confdefs.h. */ | |
15999 | $ac_includes_default | |
16000 | int | |
16001 | main () | |
16002 | { | |
16003 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16004 | test_array [0] = 0 | |
a0b9e27f | 16005 | |
e6cc62c6 VS |
16006 | ; |
16007 | return 0; | |
16008 | } | |
16009 | _ACEOF | |
16010 | rm -f conftest.$ac_objext | |
16011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16012 | (eval $ac_compile) 2>&5 | |
16013 | ac_status=$? | |
16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16015 | (exit $ac_status); } && | |
16016 | { ac_try='test -s conftest.$ac_objext' | |
16017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16018 | (eval $ac_try) 2>&5 | |
16019 | ac_status=$? | |
16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16021 | (exit $ac_status); }; }; then | |
16022 | ac_lo=$ac_mid; break | |
16023 | else | |
16024 | echo "$as_me: failed program was:" >&5 | |
16025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16026 | ||
16027 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16028 | if test $ac_mid -le $ac_hi; then | |
16029 | ac_lo= ac_hi= | |
16030 | break | |
16031 | fi | |
16032 | ac_mid=`expr 2 '*' $ac_mid` | |
16033 | fi | |
16034 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16035 | done | |
8284b0c5 | 16036 | else |
e6cc62c6 VS |
16037 | echo "$as_me: failed program was:" >&5 |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16039 | ||
16040 | ac_lo= ac_hi= | |
16041 | fi | |
16042 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16043 | fi | |
16044 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16045 | # Binary search between lo and hi bounds. | |
16046 | while test "x$ac_lo" != "x$ac_hi"; do | |
16047 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16048 | cat >conftest.$ac_ext <<_ACEOF | |
16049 | #line $LINENO "configure" | |
16050 | /* confdefs.h. */ | |
16051 | _ACEOF | |
16052 | cat confdefs.h >>conftest.$ac_ext | |
16053 | cat >>conftest.$ac_ext <<_ACEOF | |
16054 | /* end confdefs.h. */ | |
16055 | $ac_includes_default | |
16056 | int | |
16057 | main () | |
16058 | { | |
16059 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16060 | test_array [0] = 0 | |
16061 | ||
16062 | ; | |
16063 | return 0; | |
16064 | } | |
16065 | _ACEOF | |
16066 | rm -f conftest.$ac_objext | |
16067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16068 | (eval $ac_compile) 2>&5 | |
16069 | ac_status=$? | |
16070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16071 | (exit $ac_status); } && | |
16072 | { ac_try='test -s conftest.$ac_objext' | |
16073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16074 | (eval $ac_try) 2>&5 | |
16075 | ac_status=$? | |
16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16077 | (exit $ac_status); }; }; then | |
16078 | ac_hi=$ac_mid | |
16079 | else | |
16080 | echo "$as_me: failed program was:" >&5 | |
16081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16082 | ||
16083 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16084 | fi | |
16085 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16086 | done | |
16087 | case $ac_lo in | |
16088 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16089 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16090 | See \`config.log' for more details." >&5 | |
16091 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16092 | See \`config.log' for more details." >&2;} | |
16093 | { (exit 1); exit 1; }; } ;; | |
16094 | esac | |
8284b0c5 | 16095 | else |
e6cc62c6 VS |
16096 | if test "$cross_compiling" = yes; then |
16097 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16098 | See \`config.log' for more details." >&5 | |
16099 | echo "$as_me: error: cannot run test program while cross compiling | |
16100 | See \`config.log' for more details." >&2;} | |
16101 | { (exit 1); exit 1; }; } | |
16102 | else | |
16103 | cat >conftest.$ac_ext <<_ACEOF | |
16104 | #line $LINENO "configure" | |
16105 | /* confdefs.h. */ | |
16106 | _ACEOF | |
16107 | cat confdefs.h >>conftest.$ac_ext | |
16108 | cat >>conftest.$ac_ext <<_ACEOF | |
16109 | /* end confdefs.h. */ | |
16110 | $ac_includes_default | |
16111 | long longval () { return (long) (sizeof (long long)); } | |
16112 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16113 | #include <stdio.h> |
e6cc62c6 VS |
16114 | #include <stdlib.h> |
16115 | int | |
16116 | main () | |
8284b0c5 | 16117 | { |
e6cc62c6 VS |
16118 | |
16119 | FILE *f = fopen ("conftest.val", "w"); | |
16120 | if (! f) | |
16121 | exit (1); | |
16122 | if (((long) (sizeof (long long))) < 0) | |
16123 | { | |
16124 | long i = longval (); | |
16125 | if (i != ((long) (sizeof (long long)))) | |
16126 | exit (1); | |
16127 | fprintf (f, "%ld\n", i); | |
16128 | } | |
16129 | else | |
16130 | { | |
16131 | unsigned long i = ulongval (); | |
16132 | if (i != ((long) (sizeof (long long)))) | |
16133 | exit (1); | |
16134 | fprintf (f, "%lu\n", i); | |
16135 | } | |
16136 | exit (ferror (f) || fclose (f) != 0); | |
16137 | ||
16138 | ; | |
16139 | return 0; | |
8284b0c5 | 16140 | } |
e6cc62c6 VS |
16141 | _ACEOF |
16142 | rm -f conftest$ac_exeext | |
16143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16144 | (eval $ac_link) 2>&5 | |
16145 | ac_status=$? | |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16149 | (eval $ac_try) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); }; }; then | |
16153 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16154 | else | |
16155 | echo "$as_me: program exited with status $ac_status" >&5 | |
16156 | echo "$as_me: failed program was:" >&5 | |
16157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16158 | ||
16159 | ( exit $ac_status ) | |
16160 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16161 | See \`config.log' for more details." >&5 | |
16162 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16163 | See \`config.log' for more details." >&2;} | |
16164 | { (exit 1); exit 1; }; } | |
16165 | fi | |
16166 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16167 | fi | |
16168 | fi | |
16169 | rm -f conftest.val | |
5c6fa7d2 RR |
16170 | else |
16171 | ac_cv_sizeof_long_long=0 | |
52127426 | 16172 | fi |
4f57cf11 | 16173 | fi |
e6cc62c6 VS |
16174 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16175 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16176 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16177 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16178 | _ACEOF |
4f57cf11 GD |
16179 | |
16180 | ||
16181 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16182 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16183 | fi | |
16184 | ;; | |
16185 | * ) | |
e6cc62c6 VS |
16186 | echo "$as_me:$LINENO: checking for long long" >&5 |
16187 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16188 | if test "${ac_cv_type_long_long+set}" = set; then | |
16189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16190 | else | |
16191 | cat >conftest.$ac_ext <<_ACEOF | |
16192 | #line $LINENO "configure" | |
16193 | /* confdefs.h. */ | |
16194 | _ACEOF | |
16195 | cat confdefs.h >>conftest.$ac_ext | |
16196 | cat >>conftest.$ac_ext <<_ACEOF | |
16197 | /* end confdefs.h. */ | |
16198 | $ac_includes_default | |
16199 | int | |
16200 | main () | |
16201 | { | |
16202 | if ((long long *) 0) | |
16203 | return 0; | |
16204 | if (sizeof (long long)) | |
16205 | return 0; | |
16206 | ; | |
16207 | return 0; | |
16208 | } | |
16209 | _ACEOF | |
16210 | rm -f conftest.$ac_objext | |
16211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16212 | (eval $ac_compile) 2>&5 | |
16213 | ac_status=$? | |
16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16215 | (exit $ac_status); } && | |
16216 | { ac_try='test -s conftest.$ac_objext' | |
16217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16218 | (eval $ac_try) 2>&5 | |
16219 | ac_status=$? | |
16220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16221 | (exit $ac_status); }; }; then | |
16222 | ac_cv_type_long_long=yes | |
16223 | else | |
16224 | echo "$as_me: failed program was:" >&5 | |
16225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16226 | ||
16227 | ac_cv_type_long_long=no | |
16228 | fi | |
16229 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16230 | fi | |
16231 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16232 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16233 | ||
16234 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16235 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16236 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16238 | else | |
16239 | if test "$ac_cv_type_long_long" = yes; then | |
16240 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16241 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16242 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16243 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16244 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16245 | # Depending upon the size, compute the lo and hi bounds. |
16246 | cat >conftest.$ac_ext <<_ACEOF | |
16247 | #line $LINENO "configure" | |
16248 | /* confdefs.h. */ | |
16249 | _ACEOF | |
16250 | cat confdefs.h >>conftest.$ac_ext | |
16251 | cat >>conftest.$ac_ext <<_ACEOF | |
16252 | /* end confdefs.h. */ | |
16253 | $ac_includes_default | |
16254 | int | |
16255 | main () | |
16256 | { | |
16257 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16258 | test_array [0] = 0 | |
16259 | ||
16260 | ; | |
16261 | return 0; | |
16262 | } | |
16263 | _ACEOF | |
16264 | rm -f conftest.$ac_objext | |
16265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16266 | (eval $ac_compile) 2>&5 | |
16267 | ac_status=$? | |
16268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16269 | (exit $ac_status); } && | |
16270 | { ac_try='test -s conftest.$ac_objext' | |
16271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16272 | (eval $ac_try) 2>&5 | |
16273 | ac_status=$? | |
16274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16275 | (exit $ac_status); }; }; then | |
16276 | ac_lo=0 ac_mid=0 | |
16277 | while :; do | |
16278 | cat >conftest.$ac_ext <<_ACEOF | |
16279 | #line $LINENO "configure" | |
16280 | /* confdefs.h. */ | |
16281 | _ACEOF | |
16282 | cat confdefs.h >>conftest.$ac_ext | |
16283 | cat >>conftest.$ac_ext <<_ACEOF | |
16284 | /* end confdefs.h. */ | |
16285 | $ac_includes_default | |
16286 | int | |
16287 | main () | |
16288 | { | |
16289 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16290 | test_array [0] = 0 | |
16291 | ||
16292 | ; | |
16293 | return 0; | |
16294 | } | |
16295 | _ACEOF | |
16296 | rm -f conftest.$ac_objext | |
16297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16298 | (eval $ac_compile) 2>&5 | |
16299 | ac_status=$? | |
16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16301 | (exit $ac_status); } && | |
16302 | { ac_try='test -s conftest.$ac_objext' | |
16303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16304 | (eval $ac_try) 2>&5 | |
16305 | ac_status=$? | |
16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16307 | (exit $ac_status); }; }; then | |
16308 | ac_hi=$ac_mid; break | |
16309 | else | |
16310 | echo "$as_me: failed program was:" >&5 | |
16311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16312 | ||
16313 | ac_lo=`expr $ac_mid + 1` | |
16314 | if test $ac_lo -le $ac_mid; then | |
16315 | ac_lo= ac_hi= | |
16316 | break | |
16317 | fi | |
16318 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16319 | fi | |
16320 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16321 | done | |
16322 | else | |
16323 | echo "$as_me: failed program was:" >&5 | |
16324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16325 | ||
16326 | cat >conftest.$ac_ext <<_ACEOF | |
16327 | #line $LINENO "configure" | |
16328 | /* confdefs.h. */ | |
16329 | _ACEOF | |
16330 | cat confdefs.h >>conftest.$ac_ext | |
16331 | cat >>conftest.$ac_ext <<_ACEOF | |
16332 | /* end confdefs.h. */ | |
16333 | $ac_includes_default | |
16334 | int | |
16335 | main () | |
16336 | { | |
16337 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16338 | test_array [0] = 0 | |
16339 | ||
16340 | ; | |
16341 | return 0; | |
16342 | } | |
16343 | _ACEOF | |
16344 | rm -f conftest.$ac_objext | |
16345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16346 | (eval $ac_compile) 2>&5 | |
16347 | ac_status=$? | |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16349 | (exit $ac_status); } && | |
16350 | { ac_try='test -s conftest.$ac_objext' | |
16351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16352 | (eval $ac_try) 2>&5 | |
16353 | ac_status=$? | |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16355 | (exit $ac_status); }; }; then | |
16356 | ac_hi=-1 ac_mid=-1 | |
16357 | while :; do | |
16358 | cat >conftest.$ac_ext <<_ACEOF | |
16359 | #line $LINENO "configure" | |
16360 | /* confdefs.h. */ | |
16361 | _ACEOF | |
16362 | cat confdefs.h >>conftest.$ac_ext | |
16363 | cat >>conftest.$ac_ext <<_ACEOF | |
16364 | /* end confdefs.h. */ | |
16365 | $ac_includes_default | |
16366 | int | |
16367 | main () | |
16368 | { | |
16369 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16370 | test_array [0] = 0 | |
16371 | ||
16372 | ; | |
16373 | return 0; | |
16374 | } | |
16375 | _ACEOF | |
16376 | rm -f conftest.$ac_objext | |
16377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16378 | (eval $ac_compile) 2>&5 | |
16379 | ac_status=$? | |
16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16381 | (exit $ac_status); } && | |
16382 | { ac_try='test -s conftest.$ac_objext' | |
16383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16384 | (eval $ac_try) 2>&5 | |
16385 | ac_status=$? | |
16386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16387 | (exit $ac_status); }; }; then | |
16388 | ac_lo=$ac_mid; break | |
16389 | else | |
16390 | echo "$as_me: failed program was:" >&5 | |
16391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16392 | ||
16393 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16394 | if test $ac_mid -le $ac_hi; then | |
16395 | ac_lo= ac_hi= | |
16396 | break | |
16397 | fi | |
16398 | ac_mid=`expr 2 '*' $ac_mid` | |
16399 | fi | |
16400 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16401 | done | |
4f57cf11 | 16402 | else |
e6cc62c6 VS |
16403 | echo "$as_me: failed program was:" >&5 |
16404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16405 | ||
16406 | ac_lo= ac_hi= | |
16407 | fi | |
16408 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16409 | fi | |
16410 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16411 | # Binary search between lo and hi bounds. | |
16412 | while test "x$ac_lo" != "x$ac_hi"; do | |
16413 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16414 | cat >conftest.$ac_ext <<_ACEOF | |
16415 | #line $LINENO "configure" | |
16416 | /* confdefs.h. */ | |
16417 | _ACEOF | |
16418 | cat confdefs.h >>conftest.$ac_ext | |
16419 | cat >>conftest.$ac_ext <<_ACEOF | |
16420 | /* end confdefs.h. */ | |
16421 | $ac_includes_default | |
16422 | int | |
16423 | main () | |
16424 | { | |
16425 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16426 | test_array [0] = 0 | |
16427 | ||
16428 | ; | |
16429 | return 0; | |
16430 | } | |
16431 | _ACEOF | |
16432 | rm -f conftest.$ac_objext | |
16433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16434 | (eval $ac_compile) 2>&5 | |
16435 | ac_status=$? | |
16436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16437 | (exit $ac_status); } && | |
16438 | { ac_try='test -s conftest.$ac_objext' | |
16439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16440 | (eval $ac_try) 2>&5 | |
16441 | ac_status=$? | |
16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16443 | (exit $ac_status); }; }; then | |
16444 | ac_hi=$ac_mid | |
16445 | else | |
16446 | echo "$as_me: failed program was:" >&5 | |
16447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16448 | ||
16449 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16450 | fi | |
16451 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16452 | done | |
16453 | case $ac_lo in | |
16454 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16455 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16456 | See \`config.log' for more details." >&5 | |
16457 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16458 | See \`config.log' for more details." >&2;} | |
16459 | { (exit 1); exit 1; }; } ;; | |
16460 | esac | |
16461 | else | |
16462 | if test "$cross_compiling" = yes; then | |
16463 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16464 | See \`config.log' for more details." >&5 | |
16465 | echo "$as_me: error: cannot run test program while cross compiling | |
16466 | See \`config.log' for more details." >&2;} | |
16467 | { (exit 1); exit 1; }; } | |
16468 | else | |
16469 | cat >conftest.$ac_ext <<_ACEOF | |
16470 | #line $LINENO "configure" | |
16471 | /* confdefs.h. */ | |
16472 | _ACEOF | |
16473 | cat confdefs.h >>conftest.$ac_ext | |
16474 | cat >>conftest.$ac_ext <<_ACEOF | |
16475 | /* end confdefs.h. */ | |
16476 | $ac_includes_default | |
16477 | long longval () { return (long) (sizeof (long long)); } | |
16478 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16479 | #include <stdio.h> |
e6cc62c6 VS |
16480 | #include <stdlib.h> |
16481 | int | |
16482 | main () | |
4f57cf11 | 16483 | { |
e6cc62c6 VS |
16484 | |
16485 | FILE *f = fopen ("conftest.val", "w"); | |
16486 | if (! f) | |
16487 | exit (1); | |
16488 | if (((long) (sizeof (long long))) < 0) | |
16489 | { | |
16490 | long i = longval (); | |
16491 | if (i != ((long) (sizeof (long long)))) | |
16492 | exit (1); | |
16493 | fprintf (f, "%ld\n", i); | |
16494 | } | |
16495 | else | |
16496 | { | |
16497 | unsigned long i = ulongval (); | |
16498 | if (i != ((long) (sizeof (long long)))) | |
16499 | exit (1); | |
16500 | fprintf (f, "%lu\n", i); | |
16501 | } | |
16502 | exit (ferror (f) || fclose (f) != 0); | |
16503 | ||
16504 | ; | |
16505 | return 0; | |
4f57cf11 | 16506 | } |
e6cc62c6 VS |
16507 | _ACEOF |
16508 | rm -f conftest$ac_exeext | |
16509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16510 | (eval $ac_link) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16515 | (eval $ac_try) 2>&5 | |
16516 | ac_status=$? | |
16517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16518 | (exit $ac_status); }; }; then | |
16519 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16520 | else | |
16521 | echo "$as_me: program exited with status $ac_status" >&5 | |
16522 | echo "$as_me: failed program was:" >&5 | |
16523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16524 | ||
16525 | ( exit $ac_status ) | |
16526 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16527 | See \`config.log' for more details." >&5 | |
16528 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16529 | See \`config.log' for more details." >&2;} | |
16530 | { (exit 1); exit 1; }; } | |
16531 | fi | |
16532 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16533 | fi | |
16534 | fi | |
16535 | rm -f conftest.val | |
4f57cf11 | 16536 | else |
4f57cf11 GD |
16537 | ac_cv_sizeof_long_long=0 |
16538 | fi | |
7b4a847f | 16539 | fi |
e6cc62c6 VS |
16540 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16541 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16542 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16543 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16544 | _ACEOF |
9e691f46 | 16545 | |
8284b0c5 | 16546 | |
21d1c967 GD |
16547 | esac |
16548 | ||
e6cc62c6 VS |
16549 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16550 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16551 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16553 | else |
e6cc62c6 | 16554 | |
21d1c967 | 16555 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16556 | |
2b5f62a0 VZ |
16557 | case "${host}" in |
16558 | *-pc-msdosdjgpp ) | |
16559 | wx_cv_sizeof_wchar_t=0 | |
16560 | ;; | |
16561 | * ) | |
16562 | wx_cv_sizeof_wchar_t=4 | |
16563 | ;; | |
16564 | esac | |
e6cc62c6 VS |
16565 | |
16566 | ||
6f72b082 | 16567 | else |
e6cc62c6 VS |
16568 | cat >conftest.$ac_ext <<_ACEOF |
16569 | #line $LINENO "configure" | |
16570 | /* confdefs.h. */ | |
16571 | _ACEOF | |
16572 | cat confdefs.h >>conftest.$ac_ext | |
16573 | cat >>conftest.$ac_ext <<_ACEOF | |
16574 | /* end confdefs.h. */ | |
21d1c967 | 16575 | |
2b5f62a0 VZ |
16576 | /* DJGPP only has fake wchar_t: */ |
16577 | #ifdef __DJGPP__ | |
16578 | # error "fake wchar_t" | |
16579 | #endif | |
21d1c967 GD |
16580 | #ifdef HAVE_WCHAR_H |
16581 | # ifdef __CYGWIN__ | |
16582 | # include <stddef.h> | |
16583 | # endif | |
16584 | # include <wchar.h> | |
16585 | #endif | |
16586 | #ifdef HAVE_STDLIB_H | |
16587 | # include <stdlib.h> | |
16588 | #endif | |
16589 | #include <stdio.h> | |
16590 | int main() | |
16591 | { | |
16592 | FILE *f=fopen("conftestval", "w"); | |
16593 | if (!f) exit(1); | |
16594 | fprintf(f, "%i", sizeof(wchar_t)); | |
16595 | exit(0); | |
16596 | } | |
e6cc62c6 VS |
16597 | |
16598 | _ACEOF | |
16599 | rm -f conftest$ac_exeext | |
16600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16601 | (eval $ac_link) 2>&5 | |
16602 | ac_status=$? | |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; }; then | |
21d1c967 | 16610 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16611 | else |
e6cc62c6 VS |
16612 | echo "$as_me: program exited with status $ac_status" >&5 |
16613 | echo "$as_me: failed program was:" >&5 | |
16614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16615 | ||
16616 | ( exit $ac_status ) | |
16617 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16618 | fi |
e6cc62c6 | 16619 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16620 | fi |
6f72b082 | 16621 | |
3f345b47 | 16622 | fi |
e6cc62c6 VS |
16623 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16624 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16625 | |
e6cc62c6 | 16626 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16627 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16628 | _ACEOF |
90dd450c | 16629 | |
8284b0c5 | 16630 | |
21d1c967 GD |
16631 | # Check whether --enable-largefile or --disable-largefile was given. |
16632 | if test "${enable_largefile+set}" = set; then | |
16633 | enableval="$enable_largefile" | |
3f345b47 | 16634 | |
e6cc62c6 | 16635 | fi; |
21d1c967 GD |
16636 | if test "$enable_largefile" != no; then |
16637 | wx_largefile=no | |
e6cc62c6 VS |
16638 | |
16639 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16640 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16641 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16643 | else | |
16644 | ||
16645 | cat >conftest.$ac_ext <<_ACEOF | |
16646 | #line $LINENO "configure" | |
16647 | /* confdefs.h. */ | |
16648 | _ACEOF | |
16649 | cat confdefs.h >>conftest.$ac_ext | |
16650 | cat >>conftest.$ac_ext <<_ACEOF | |
16651 | /* end confdefs.h. */ | |
21d1c967 GD |
16652 | #define _FILE_OFFSET_BITS 64 |
16653 | #include <sys/types.h> | |
e6cc62c6 VS |
16654 | int |
16655 | main () | |
16656 | { | |
21d1c967 GD |
16657 | typedef struct { |
16658 | unsigned int field: sizeof(off_t) == 8; | |
16659 | } wxlf; | |
16660 | ||
e6cc62c6 VS |
16661 | ; |
16662 | return 0; | |
16663 | } | |
16664 | _ACEOF | |
16665 | rm -f conftest.$ac_objext | |
16666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16667 | (eval $ac_compile) 2>&5 | |
16668 | ac_status=$? | |
16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16670 | (exit $ac_status); } && | |
16671 | { ac_try='test -s conftest.$ac_objext' | |
16672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16673 | (eval $ac_try) 2>&5 | |
16674 | ac_status=$? | |
16675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16676 | (exit $ac_status); }; }; then | |
21d1c967 | 16677 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16678 | else |
e6cc62c6 VS |
16679 | echo "$as_me: failed program was:" >&5 |
16680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16681 | ||
16682 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16683 | fi |
e6cc62c6 VS |
16684 | rm -f conftest.$ac_objext conftest.$ac_ext |
16685 | ||
a0b9e27f | 16686 | |
e6cc62c6 VS |
16687 | fi |
16688 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16689 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16690 | |
16691 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16692 | wx_largefile=yes | |
e6cc62c6 | 16693 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16694 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16695 | _ACEOF |
21d1c967 GD |
16696 | |
16697 | fi | |
16698 | ||
16699 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16700 | |
16701 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16702 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16703 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16705 | else | |
16706 | ||
16707 | cat >conftest.$ac_ext <<_ACEOF | |
16708 | #line $LINENO "configure" | |
16709 | /* confdefs.h. */ | |
16710 | _ACEOF | |
16711 | cat confdefs.h >>conftest.$ac_ext | |
16712 | cat >>conftest.$ac_ext <<_ACEOF | |
16713 | /* end confdefs.h. */ | |
21d1c967 GD |
16714 | #define _LARGE_FILES 1 |
16715 | #include <sys/types.h> | |
e6cc62c6 VS |
16716 | int |
16717 | main () | |
16718 | { | |
21d1c967 GD |
16719 | typedef struct { |
16720 | unsigned int field: sizeof(off_t) == 8; | |
16721 | } wxlf; | |
16722 | ||
e6cc62c6 VS |
16723 | ; |
16724 | return 0; | |
16725 | } | |
16726 | _ACEOF | |
16727 | rm -f conftest.$ac_objext | |
16728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16729 | (eval $ac_compile) 2>&5 | |
16730 | ac_status=$? | |
16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16732 | (exit $ac_status); } && | |
16733 | { ac_try='test -s conftest.$ac_objext' | |
16734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16735 | (eval $ac_try) 2>&5 | |
16736 | ac_status=$? | |
16737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16738 | (exit $ac_status); }; }; then | |
21d1c967 | 16739 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16740 | else |
e6cc62c6 VS |
16741 | echo "$as_me: failed program was:" >&5 |
16742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16743 | ||
16744 | ac_cv_sys_large_files=no | |
247f5006 | 16745 | fi |
e6cc62c6 | 16746 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16747 | |
e6cc62c6 VS |
16748 | |
16749 | fi | |
16750 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16751 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16752 | |
21d1c967 GD |
16753 | if test "$ac_cv_sys_large_files" != no; then |
16754 | wx_largefile=yes | |
e6cc62c6 | 16755 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16756 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16757 | _ACEOF |
90dd450c | 16758 | |
90dd450c VZ |
16759 | fi |
16760 | ||
90dd450c | 16761 | fi |
90dd450c | 16762 | |
e6cc62c6 VS |
16763 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16764 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16765 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16766 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16767 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16768 | _ACEOF |
90dd450c | 16769 | |
90dd450c | 16770 | fi |
e6cc62c6 VS |
16771 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16772 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16773 | fi |
90dd450c | 16774 | |
8284b0c5 | 16775 | |
f02444d0 | 16776 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16777 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16778 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16779 | else |
e26c13cf | 16780 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16781 | fi |
e26c13cf | 16782 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16783 | fi |
16784 | ||
e6cc62c6 VS |
16785 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16786 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16787 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16789 | else |
21d1c967 GD |
16790 | ac_cv_c_bigendian=unknown |
16791 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16792 | cat >conftest.$ac_ext <<_ACEOF |
16793 | #line $LINENO "configure" | |
16794 | /* confdefs.h. */ | |
16795 | _ACEOF | |
16796 | cat confdefs.h >>conftest.$ac_ext | |
16797 | cat >>conftest.$ac_ext <<_ACEOF | |
16798 | /* end confdefs.h. */ | |
21d1c967 GD |
16799 | #include <sys/types.h> |
16800 | #include <sys/param.h> | |
e6cc62c6 VS |
16801 | int |
16802 | main () | |
16803 | { | |
21d1c967 GD |
16804 | |
16805 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16806 | bogus endian macros | |
16807 | #endif | |
e6cc62c6 VS |
16808 | ; |
16809 | return 0; | |
16810 | } | |
16811 | _ACEOF | |
16812 | rm -f conftest.$ac_objext | |
16813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16814 | (eval $ac_compile) 2>&5 | |
16815 | ac_status=$? | |
16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16817 | (exit $ac_status); } && | |
16818 | { ac_try='test -s conftest.$ac_objext' | |
16819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16820 | (eval $ac_try) 2>&5 | |
16821 | ac_status=$? | |
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16823 | (exit $ac_status); }; }; then | |
21d1c967 | 16824 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16825 | cat >conftest.$ac_ext <<_ACEOF |
16826 | #line $LINENO "configure" | |
16827 | /* confdefs.h. */ | |
16828 | _ACEOF | |
16829 | cat confdefs.h >>conftest.$ac_ext | |
16830 | cat >>conftest.$ac_ext <<_ACEOF | |
16831 | /* end confdefs.h. */ | |
21d1c967 GD |
16832 | #include <sys/types.h> |
16833 | #include <sys/param.h> | |
e6cc62c6 VS |
16834 | int |
16835 | main () | |
16836 | { | |
21d1c967 GD |
16837 | |
16838 | #if BYTE_ORDER != BIG_ENDIAN | |
16839 | not big endian | |
16840 | #endif | |
e6cc62c6 VS |
16841 | ; |
16842 | return 0; | |
16843 | } | |
16844 | _ACEOF | |
16845 | rm -f conftest.$ac_objext | |
16846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16847 | (eval $ac_compile) 2>&5 | |
16848 | ac_status=$? | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); } && | |
16851 | { ac_try='test -s conftest.$ac_objext' | |
16852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16853 | (eval $ac_try) 2>&5 | |
16854 | ac_status=$? | |
16855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16856 | (exit $ac_status); }; }; then | |
21d1c967 | 16857 | ac_cv_c_bigendian=yes |
3f345b47 | 16858 | else |
e6cc62c6 VS |
16859 | echo "$as_me: failed program was:" >&5 |
16860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16861 | ||
16862 | ac_cv_c_bigendian=no | |
3f345b47 | 16863 | fi |
e6cc62c6 | 16864 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16865 | else |
e6cc62c6 VS |
16866 | echo "$as_me: failed program was:" >&5 |
16867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16868 | ||
3f345b47 | 16869 | fi |
e6cc62c6 | 16870 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16871 | if test $ac_cv_c_bigendian = unknown; then |
16872 | if test "$cross_compiling" = yes; then | |
16873 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16874 | else |
e6cc62c6 VS |
16875 | cat >conftest.$ac_ext <<_ACEOF |
16876 | #line $LINENO "configure" | |
16877 | /* confdefs.h. */ | |
16878 | _ACEOF | |
16879 | cat confdefs.h >>conftest.$ac_ext | |
16880 | cat >>conftest.$ac_ext <<_ACEOF | |
16881 | /* end confdefs.h. */ | |
21d1c967 GD |
16882 | main () { |
16883 | /* Are we little or big endian? From Harbison&Steele. */ | |
16884 | union | |
16885 | { | |
16886 | long l; | |
16887 | char c[sizeof (long)]; | |
16888 | } u; | |
16889 | u.l = 1; | |
16890 | exit (u.c[sizeof (long) - 1] == 1); | |
16891 | } | |
e6cc62c6 VS |
16892 | _ACEOF |
16893 | rm -f conftest$ac_exeext | |
16894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16895 | (eval $ac_link) 2>&5 | |
16896 | ac_status=$? | |
16897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16898 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16900 | (eval $ac_try) 2>&5 | |
16901 | ac_status=$? | |
16902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16903 | (exit $ac_status); }; }; then | |
21d1c967 | 16904 | ac_cv_c_bigendian=no |
3f345b47 | 16905 | else |
e6cc62c6 VS |
16906 | echo "$as_me: program exited with status $ac_status" >&5 |
16907 | echo "$as_me: failed program was:" >&5 | |
16908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16909 | ||
16910 | ( exit $ac_status ) | |
16911 | ac_cv_c_bigendian=yes | |
247f5006 | 16912 | fi |
e6cc62c6 | 16913 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 16914 | fi |
3f345b47 | 16915 | fi |
8168de4c | 16916 | fi |
e6cc62c6 VS |
16917 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
16918 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 16919 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
16920 | { 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 |
16921 | 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 |
16922 | fi |
16923 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 16924 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 16925 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 16926 | _ACEOF |
247f5006 VZ |
16927 | |
16928 | fi | |
16929 | ||
16930 | ||
e6cc62c6 VS |
16931 | |
16932 | ac_ext=cc | |
16933 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16937 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16938 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 16939 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
16940 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
16941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16942 | else | |
16943 | # Double quotes because CXXCPP needs to be expanded | |
16944 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16945 | do | |
16946 | ac_preproc_ok=false | |
16947 | for ac_cxx_preproc_warn_flag in '' yes | |
16948 | do | |
16949 | # Use a header file that comes with gcc, so configuring glibc | |
16950 | # with a fresh cross-compiler works. | |
16951 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16952 | # <limits.h> exists even on freestanding compilers. | |
16953 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16954 | # not just through cpp. "Syntax error" is here to catch this case. | |
16955 | cat >conftest.$ac_ext <<_ACEOF | |
16956 | #line $LINENO "configure" | |
16957 | /* confdefs.h. */ | |
16958 | _ACEOF | |
16959 | cat confdefs.h >>conftest.$ac_ext | |
16960 | cat >>conftest.$ac_ext <<_ACEOF | |
16961 | /* end confdefs.h. */ | |
16962 | #ifdef __STDC__ | |
16963 | # include <limits.h> | |
16964 | #else | |
16965 | # include <assert.h> | |
16966 | #endif | |
16967 | Syntax error | |
16968 | _ACEOF | |
16969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16971 | ac_status=$? | |
16972 | grep -v '^ *+' conftest.er1 >conftest.err | |
16973 | rm -f conftest.er1 | |
16974 | cat conftest.err >&5 | |
16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16976 | (exit $ac_status); } >/dev/null; then | |
16977 | if test -s conftest.err; then | |
16978 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16979 | else | |
16980 | ac_cpp_err= | |
16981 | fi | |
247f5006 | 16982 | else |
e6cc62c6 VS |
16983 | ac_cpp_err=yes |
16984 | fi | |
16985 | if test -z "$ac_cpp_err"; then | |
16986 | : | |
16987 | else | |
16988 | echo "$as_me: failed program was:" >&5 | |
16989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16990 | ||
16991 | # Broken: fails on valid input. | |
16992 | continue | |
16993 | fi | |
16994 | rm -f conftest.err conftest.$ac_ext | |
16995 | ||
16996 | # OK, works on sane cases. Now check whether non-existent headers | |
16997 | # can be detected and how. | |
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 | #include <ac_nonexistent.h> | |
17006 | _ACEOF | |
17007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17009 | ac_status=$? | |
17010 | grep -v '^ *+' conftest.er1 >conftest.err | |
17011 | rm -f conftest.er1 | |
17012 | cat conftest.err >&5 | |
17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17014 | (exit $ac_status); } >/dev/null; then | |
17015 | if test -s conftest.err; then | |
17016 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17017 | else | |
17018 | ac_cpp_err= | |
17019 | fi | |
17020 | else | |
17021 | ac_cpp_err=yes | |
17022 | fi | |
17023 | if test -z "$ac_cpp_err"; then | |
17024 | # Broken: success on invalid input. | |
17025 | continue | |
17026 | else | |
17027 | echo "$as_me: failed program was:" >&5 | |
17028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17029 | ||
17030 | # Passes both tests. | |
17031 | ac_preproc_ok=: | |
17032 | break | |
17033 | fi | |
17034 | rm -f conftest.err conftest.$ac_ext | |
17035 | ||
17036 | done | |
17037 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17038 | rm -f conftest.err conftest.$ac_ext | |
17039 | if $ac_preproc_ok; then | |
17040 | break | |
17041 | fi | |
17042 | ||
17043 | done | |
17044 | ac_cv_prog_CXXCPP=$CXXCPP | |
17045 | ||
17046 | fi | |
17047 | CXXCPP=$ac_cv_prog_CXXCPP | |
17048 | else | |
17049 | ac_cv_prog_CXXCPP=$CXXCPP | |
17050 | fi | |
17051 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17052 | echo "${ECHO_T}$CXXCPP" >&6 | |
17053 | ac_preproc_ok=false | |
17054 | for ac_cxx_preproc_warn_flag in '' yes | |
17055 | do | |
17056 | # Use a header file that comes with gcc, so configuring glibc | |
17057 | # with a fresh cross-compiler works. | |
17058 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17059 | # <limits.h> exists even on freestanding compilers. | |
17060 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17061 | # not just through cpp. "Syntax error" is here to catch this case. | |
17062 | cat >conftest.$ac_ext <<_ACEOF | |
17063 | #line $LINENO "configure" | |
17064 | /* confdefs.h. */ | |
17065 | _ACEOF | |
17066 | cat confdefs.h >>conftest.$ac_ext | |
17067 | cat >>conftest.$ac_ext <<_ACEOF | |
17068 | /* end confdefs.h. */ | |
17069 | #ifdef __STDC__ | |
17070 | # include <limits.h> | |
17071 | #else | |
17072 | # include <assert.h> | |
17073 | #endif | |
17074 | Syntax error | |
17075 | _ACEOF | |
17076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17078 | ac_status=$? | |
17079 | grep -v '^ *+' conftest.er1 >conftest.err | |
17080 | rm -f conftest.er1 | |
17081 | cat conftest.err >&5 | |
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17083 | (exit $ac_status); } >/dev/null; then | |
17084 | if test -s conftest.err; then | |
17085 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17086 | else | |
17087 | ac_cpp_err= | |
17088 | fi | |
17089 | else | |
17090 | ac_cpp_err=yes | |
17091 | fi | |
17092 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17093 | : |
698dcdb6 | 17094 | else |
e6cc62c6 VS |
17095 | echo "$as_me: failed program was:" >&5 |
17096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17097 | ||
17098 | # Broken: fails on valid input. | |
17099 | continue | |
17100 | fi | |
17101 | rm -f conftest.err conftest.$ac_ext | |
17102 | ||
17103 | # OK, works on sane cases. Now check whether non-existent headers | |
17104 | # can be detected and how. | |
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 | #include <ac_nonexistent.h> | |
17113 | _ACEOF | |
17114 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17116 | ac_status=$? | |
17117 | grep -v '^ *+' conftest.er1 >conftest.err | |
17118 | rm -f conftest.er1 | |
17119 | cat conftest.err >&5 | |
17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17121 | (exit $ac_status); } >/dev/null; then | |
17122 | if test -s conftest.err; then | |
17123 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17124 | else | |
17125 | ac_cpp_err= | |
17126 | fi | |
17127 | else | |
17128 | ac_cpp_err=yes | |
247f5006 | 17129 | fi |
e6cc62c6 VS |
17130 | if test -z "$ac_cpp_err"; then |
17131 | # Broken: success on invalid input. | |
17132 | continue | |
17133 | else | |
17134 | echo "$as_me: failed program was:" >&5 | |
17135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17136 | ||
17137 | # Passes both tests. | |
17138 | ac_preproc_ok=: | |
17139 | break | |
328a083c | 17140 | fi |
e6cc62c6 VS |
17141 | rm -f conftest.err conftest.$ac_ext |
17142 | ||
17143 | done | |
17144 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17145 | rm -f conftest.err conftest.$ac_ext | |
17146 | if $ac_preproc_ok; then | |
17147 | : | |
17148 | else | |
17149 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17150 | See \`config.log' for more details." >&5 | |
17151 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17152 | See \`config.log' for more details." >&2;} | |
17153 | { (exit 1); exit 1; }; } | |
90dd450c | 17154 | fi |
e6cc62c6 VS |
17155 | |
17156 | ac_ext=cc | |
17157 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17158 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17159 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17160 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17161 | ||
1e6feb95 | 17162 | |
1725144d | 17163 | |
21d1c967 | 17164 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17165 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17166 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17167 | _ACEOF |
ab9b9eab | 17168 | |
21d1c967 | 17169 | else |
e6cc62c6 VS |
17170 | |
17171 | ||
17172 | ac_ext=cc | |
5c6fa7d2 | 17173 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17177 | ||
52127426 | 17178 | |
247f5006 | 17179 | |
e6cc62c6 | 17180 | for ac_header in iostream |
21d1c967 | 17181 | do |
e6cc62c6 VS |
17182 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17184 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17188 | fi | |
17189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17191 | else | |
17192 | # Is the header compilable? | |
17193 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17194 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17195 | cat >conftest.$ac_ext <<_ACEOF | |
17196 | #line $LINENO "configure" | |
17197 | /* confdefs.h. */ | |
17198 | _ACEOF | |
17199 | cat confdefs.h >>conftest.$ac_ext | |
17200 | cat >>conftest.$ac_ext <<_ACEOF | |
17201 | /* end confdefs.h. */ | |
17202 | $ac_includes_default | |
17203 | #include <$ac_header> | |
17204 | _ACEOF | |
17205 | rm -f conftest.$ac_objext | |
17206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17207 | (eval $ac_compile) 2>&5 | |
17208 | ac_status=$? | |
17209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17210 | (exit $ac_status); } && | |
17211 | { ac_try='test -s conftest.$ac_objext' | |
17212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17213 | (eval $ac_try) 2>&5 | |
17214 | ac_status=$? | |
17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17216 | (exit $ac_status); }; }; then | |
17217 | ac_header_compiler=yes | |
17218 | else | |
17219 | echo "$as_me: failed program was:" >&5 | |
17220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17221 | ||
17222 | ac_header_compiler=no | |
17223 | fi | |
17224 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17225 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17226 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17227 | ||
17228 | # Is the header present? | |
17229 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17231 | cat >conftest.$ac_ext <<_ACEOF | |
17232 | #line $LINENO "configure" | |
17233 | /* confdefs.h. */ | |
17234 | _ACEOF | |
17235 | cat confdefs.h >>conftest.$ac_ext | |
17236 | cat >>conftest.$ac_ext <<_ACEOF | |
17237 | /* end confdefs.h. */ | |
17238 | #include <$ac_header> | |
17239 | _ACEOF | |
17240 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17242 | ac_status=$? | |
17243 | grep -v '^ *+' conftest.er1 >conftest.err | |
17244 | rm -f conftest.er1 | |
17245 | cat conftest.err >&5 | |
17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17247 | (exit $ac_status); } >/dev/null; then | |
17248 | if test -s conftest.err; then | |
17249 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17250 | else | |
17251 | ac_cpp_err= | |
17252 | fi | |
17253 | else | |
17254 | ac_cpp_err=yes | |
17255 | fi | |
17256 | if test -z "$ac_cpp_err"; then | |
17257 | ac_header_preproc=yes | |
17258 | else | |
17259 | echo "$as_me: failed program was:" >&5 | |
17260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17261 | ||
17262 | ac_header_preproc=no | |
17263 | fi | |
17264 | rm -f conftest.err conftest.$ac_ext | |
17265 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17266 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17267 | ||
17268 | # So? What about this header? | |
17269 | case $ac_header_compiler:$ac_header_preproc in | |
17270 | yes:no ) | |
17271 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17272 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17274 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17275 | ( | |
17276 | cat <<\_ASBOX | |
17277 | ## ------------------------------------ ## | |
17278 | ## Report this to bug-autoconf@gnu.org. ## | |
17279 | ## ------------------------------------ ## | |
17280 | _ASBOX | |
17281 | ) | | |
17282 | sed "s/^/$as_me: WARNING: /" >&2 | |
17283 | ;; | |
17284 | no:yes ) | |
17285 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17286 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17287 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17288 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17290 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17291 | ( | |
17292 | cat <<\_ASBOX | |
17293 | ## ------------------------------------ ## | |
17294 | ## Report this to bug-autoconf@gnu.org. ## | |
17295 | ## ------------------------------------ ## | |
17296 | _ASBOX | |
17297 | ) | | |
17298 | sed "s/^/$as_me: WARNING: /" >&2 | |
17299 | ;; | |
17300 | esac | |
17301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17305 | else | |
17306 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17307 | fi |
e6cc62c6 VS |
17308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17310 | ||
90dd450c | 17311 | fi |
e6cc62c6 VS |
17312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17313 | cat >>confdefs.h <<_ACEOF | |
17314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17315 | _ACEOF | |
17316 | ||
90dd450c | 17317 | fi |
e6cc62c6 | 17318 | |
21d1c967 | 17319 | done |
10f2d63a | 17320 | |
8284b0c5 | 17321 | |
21d1c967 GD |
17322 | if test "$ac_cv_header_iostream" = "yes" ; then |
17323 | : | |
17324 | else | |
e6cc62c6 | 17325 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17326 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17327 | _ACEOF |
788deba1 | 17328 | |
90dd450c | 17329 | fi |
ab9b9eab | 17330 | |
21d1c967 | 17331 | ac_ext=c |
21d1c967 | 17332 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17336 | |
21d1c967 | 17337 | fi |
ab9b9eab | 17338 | |
52127426 | 17339 | |
8284b0c5 | 17340 | |
e6cc62c6 VS |
17341 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17342 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17343 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17345 | else |
e6cc62c6 VS |
17346 | |
17347 | ||
17348 | ||
17349 | ac_ext=cc | |
5c6fa7d2 | 17350 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17351 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17352 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17353 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17354 | |
8284b0c5 | 17355 | |
e6cc62c6 VS |
17356 | cat >conftest.$ac_ext <<_ACEOF |
17357 | #line $LINENO "configure" | |
17358 | /* confdefs.h. */ | |
17359 | _ACEOF | |
17360 | cat confdefs.h >>conftest.$ac_ext | |
17361 | cat >>conftest.$ac_ext <<_ACEOF | |
17362 | /* end confdefs.h. */ | |
21d1c967 | 17363 | |
e6cc62c6 VS |
17364 | |
17365 | int | |
17366 | main () | |
17367 | { | |
21d1c967 GD |
17368 | |
17369 | bool b = true; | |
17370 | ||
17371 | return 0; | |
e6cc62c6 VS |
17372 | |
17373 | ; | |
17374 | return 0; | |
17375 | } | |
17376 | _ACEOF | |
17377 | rm -f conftest.$ac_objext | |
17378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17379 | (eval $ac_compile) 2>&5 | |
17380 | ac_status=$? | |
17381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17382 | (exit $ac_status); } && | |
17383 | { ac_try='test -s conftest.$ac_objext' | |
17384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17385 | (eval $ac_try) 2>&5 | |
17386 | ac_status=$? | |
17387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17388 | (exit $ac_status); }; }; then | |
17389 | ||
21d1c967 | 17390 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17391 | |
698dcdb6 | 17392 | else |
e6cc62c6 VS |
17393 | echo "$as_me: failed program was:" >&5 |
17394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17395 | ||
17396 | ||
21d1c967 | 17397 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17398 | |
17399 | ||
698dcdb6 | 17400 | fi |
e6cc62c6 | 17401 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17402 | |
17403 | ac_ext=c | |
21d1c967 | 17404 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17408 | |
a0b9e27f | 17409 | |
e6cc62c6 VS |
17410 | fi |
17411 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17412 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17413 | |
17414 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17415 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17416 | #define HAVE_BOOL 1 |
e6cc62c6 | 17417 | _ACEOF |
ab9b9eab | 17418 | |
21d1c967 GD |
17419 | fi |
17420 | ||
52127426 | 17421 | |
8284b0c5 | 17422 | |
e6cc62c6 VS |
17423 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17424 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17425 | if test "${wx_cv_explicit+set}" = set; then | |
17426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17427 | else |
e6cc62c6 VS |
17428 | |
17429 | ||
17430 | ||
17431 | ac_ext=cc | |
5c6fa7d2 | 17432 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17436 | |
8284b0c5 | 17437 | |
e6cc62c6 VS |
17438 | cat >conftest.$ac_ext <<_ACEOF |
17439 | #line $LINENO "configure" | |
17440 | /* confdefs.h. */ | |
17441 | _ACEOF | |
17442 | cat confdefs.h >>conftest.$ac_ext | |
17443 | cat >>conftest.$ac_ext <<_ACEOF | |
17444 | /* end confdefs.h. */ | |
986ecc86 VZ |
17445 | |
17446 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17447 | |
17448 | int | |
17449 | main () | |
17450 | { | |
986ecc86 VZ |
17451 | |
17452 | return 0; | |
e6cc62c6 VS |
17453 | |
17454 | ; | |
17455 | return 0; | |
17456 | } | |
17457 | _ACEOF | |
17458 | rm -f conftest.$ac_objext | |
17459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17460 | (eval $ac_compile) 2>&5 | |
17461 | ac_status=$? | |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17463 | (exit $ac_status); } && | |
17464 | { ac_try='test -s conftest.$ac_objext' | |
17465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17466 | (eval $ac_try) 2>&5 | |
17467 | ac_status=$? | |
17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17469 | (exit $ac_status); }; }; then | |
17470 | ||
17471 | cat >conftest.$ac_ext <<_ACEOF | |
17472 | #line $LINENO "configure" | |
17473 | /* confdefs.h. */ | |
17474 | _ACEOF | |
17475 | cat confdefs.h >>conftest.$ac_ext | |
17476 | cat >>conftest.$ac_ext <<_ACEOF | |
17477 | /* end confdefs.h. */ | |
986ecc86 VZ |
17478 | |
17479 | class Foo { public: explicit Foo(int) {} }; | |
17480 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17481 | |
17482 | int | |
17483 | main () | |
17484 | { | |
986ecc86 VZ |
17485 | |
17486 | TakeFoo(17); | |
17487 | return 0; | |
e6cc62c6 VS |
17488 | |
17489 | ; | |
17490 | return 0; | |
17491 | } | |
17492 | _ACEOF | |
17493 | rm -f conftest.$ac_objext | |
17494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17495 | (eval $ac_compile) 2>&5 | |
17496 | ac_status=$? | |
17497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17498 | (exit $ac_status); } && | |
17499 | { ac_try='test -s conftest.$ac_objext' | |
17500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17501 | (eval $ac_try) 2>&5 | |
17502 | ac_status=$? | |
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17504 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17505 | wx_cv_explicit=no |
17506 | else | |
e6cc62c6 VS |
17507 | echo "$as_me: failed program was:" >&5 |
17508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17509 | ||
17510 | wx_cv_explicit=yes | |
17511 | ||
986ecc86 | 17512 | fi |
e6cc62c6 VS |
17513 | rm -f conftest.$ac_objext conftest.$ac_ext |
17514 | ||
986ecc86 | 17515 | else |
e6cc62c6 VS |
17516 | echo "$as_me: failed program was:" >&5 |
17517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17518 | ||
17519 | wx_cv_explicit=no | |
17520 | ||
986ecc86 | 17521 | fi |
e6cc62c6 | 17522 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17523 | |
17524 | ac_ext=c | |
986ecc86 | 17525 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17529 | |
a0b9e27f | 17530 | |
e6cc62c6 VS |
17531 | fi |
17532 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17533 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17534 | |
17535 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17536 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17537 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17538 | _ACEOF |
986ecc86 VZ |
17539 | |
17540 | fi | |
17541 | ||
8284b0c5 | 17542 | |
e6cc62c6 VS |
17543 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17544 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17545 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17547 | else |
521196a2 | 17548 | |
521196a2 | 17549 | |
e6cc62c6 VS |
17550 | ac_ext=cc |
17551 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17552 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17553 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17554 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17555 | ||
17556 | cat >conftest.$ac_ext <<_ACEOF | |
17557 | #line $LINENO "configure" | |
17558 | /* confdefs.h. */ | |
17559 | _ACEOF | |
17560 | cat confdefs.h >>conftest.$ac_ext | |
17561 | cat >>conftest.$ac_ext <<_ACEOF | |
17562 | /* end confdefs.h. */ | |
17563 | ||
17564 | int | |
17565 | main () | |
17566 | { | |
521196a2 | 17567 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17568 | ; |
17569 | return 0; | |
17570 | } | |
17571 | _ACEOF | |
17572 | rm -f conftest.$ac_objext | |
17573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17574 | (eval $ac_compile) 2>&5 | |
17575 | ac_status=$? | |
17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17577 | (exit $ac_status); } && | |
17578 | { ac_try='test -s conftest.$ac_objext' | |
17579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17580 | (eval $ac_try) 2>&5 | |
17581 | ac_status=$? | |
17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17583 | (exit $ac_status); }; }; then | |
521196a2 MB |
17584 | ac_cv_cxx_const_cast=yes |
17585 | else | |
e6cc62c6 VS |
17586 | echo "$as_me: failed program was:" >&5 |
17587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17588 | ||
17589 | ac_cv_cxx_const_cast=no | |
521196a2 | 17590 | fi |
e6cc62c6 | 17591 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17592 | ac_ext=c |
521196a2 | 17593 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17597 | |
17598 | ||
17599 | fi | |
e6cc62c6 VS |
17600 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17601 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17602 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17603 | |
17604 | cat >>confdefs.h <<\_ACEOF | |
17605 | #define HAVE_CONST_CAST | |
17606 | _ACEOF | |
521196a2 MB |
17607 | |
17608 | fi | |
17609 | ||
17610 | ||
8284b0c5 | 17611 | |
21d1c967 GD |
17612 | SEARCH_INCLUDE="\ |
17613 | /usr/local/include \ | |
17614 | \ | |
17615 | /usr/Motif-1.2/include \ | |
17616 | /usr/Motif-2.1/include \ | |
17617 | \ | |
17618 | /usr/include/Motif1.2 \ | |
17619 | /opt/xpm/include/X11 \ | |
17620 | /opt/GBxpm/include/ \ | |
17621 | /opt/GBxpm/X11/include/ \ | |
17622 | \ | |
17623 | /usr/Motif1.2/include \ | |
17624 | /usr/dt/include \ | |
17625 | /usr/openwin/include \ | |
17626 | \ | |
17627 | /usr/include/Xm \ | |
17628 | \ | |
17629 | /usr/X11R6/include \ | |
17630 | /usr/X11R6.4/include \ | |
17631 | /usr/X11R5/include \ | |
17632 | /usr/X11R4/include \ | |
17633 | \ | |
17634 | /usr/include/X11R6 \ | |
17635 | /usr/include/X11R5 \ | |
17636 | /usr/include/X11R4 \ | |
17637 | \ | |
17638 | /usr/local/X11R6/include \ | |
17639 | /usr/local/X11R5/include \ | |
17640 | /usr/local/X11R4/include \ | |
17641 | \ | |
17642 | /usr/local/include/X11R6 \ | |
17643 | /usr/local/include/X11R5 \ | |
17644 | /usr/local/include/X11R4 \ | |
17645 | \ | |
17646 | /usr/X11/include \ | |
17647 | /usr/include/X11 \ | |
17648 | /usr/local/X11/include \ | |
17649 | /usr/local/include/X11 \ | |
17650 | \ | |
17651 | /usr/X386/include \ | |
17652 | /usr/x386/include \ | |
17653 | /usr/XFree86/include/X11 \ | |
17654 | \ | |
17655 | X:/XFree86/include \ | |
17656 | X:/XFree86/include/X11 \ | |
17657 | \ | |
17658 | /usr/include/gtk \ | |
17659 | /usr/local/include/gtk \ | |
17660 | /usr/include/glib \ | |
17661 | /usr/local/include/glib \ | |
17662 | \ | |
17663 | /usr/include/qt \ | |
17664 | /usr/local/include/qt \ | |
17665 | \ | |
17666 | /usr/include/windows \ | |
17667 | /usr/include/wine \ | |
17668 | /usr/local/include/wine \ | |
17669 | \ | |
17670 | /usr/unsupported/include \ | |
17671 | /usr/athena/include \ | |
17672 | /usr/local/x11r5/include \ | |
17673 | /usr/lpp/Xamples/include \ | |
17674 | \ | |
2b5f62a0 | 17675 | /usr/openwin/share/include" |
21d1c967 GD |
17676 | |
17677 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17678 | ||
8284b0c5 | 17679 | |
e6cc62c6 | 17680 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17681 | # This file is a shell script that caches the results of configure |
17682 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17683 | # scripts and configure runs, see configure's option --config-cache. |
17684 | # It is not useful on other systems. If it contains results you don't | |
17685 | # want to keep, you may remove or edit it. | |
21d1c967 | 17686 | # |
e6cc62c6 VS |
17687 | # config.status only pays attention to the cache file if you give it |
17688 | # the --recheck option to rerun configure. | |
21d1c967 | 17689 | # |
e6cc62c6 VS |
17690 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17691 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17692 | # following values. | |
17693 | ||
17694 | _ACEOF | |
17695 | ||
21d1c967 GD |
17696 | # The following way of writing the cache mishandles newlines in values, |
17697 | # but we know of no workaround that is simple, portable, and efficient. | |
17698 | # So, don't put newlines in cache variables' values. | |
17699 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17700 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17701 | { |
17702 | (set) 2>&1 | | |
17703 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17704 | *ac_space=\ *) | |
17705 | # `set' does not quote correctly, so add quotes (double-quote | |
17706 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17707 | sed -n \ | |
17708 | "s/'/'\\\\''/g; | |
17709 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17710 | ;; | |
17711 | *) | |
17712 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17713 | sed -n \ | |
17714 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17715 | ;; | |
17716 | esac; | |
17717 | } | | |
17718 | sed ' | |
17719 | t clear | |
17720 | : clear | |
17721 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17722 | t end | |
17723 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17724 | : end' >>confcache | |
17725 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17726 | if test -w $cache_file; then |
e6cc62c6 VS |
17727 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17728 | cat confcache >$cache_file | |
21d1c967 GD |
17729 | else |
17730 | echo "not updating unwritable cache $cache_file" | |
17731 | fi | |
ab9b9eab | 17732 | fi |
21d1c967 | 17733 | rm -f confcache |
ab9b9eab | 17734 | |
fe0895cf | 17735 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
17736 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
17737 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17738 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17740 | else | |
17741 | ||
17742 | cat >conftest.$ac_ext <<_ACEOF | |
17743 | #line $LINENO "configure" | |
17744 | /* confdefs.h. */ | |
17745 | _ACEOF | |
17746 | cat confdefs.h >>conftest.$ac_ext | |
17747 | cat >>conftest.$ac_ext <<_ACEOF | |
17748 | /* end confdefs.h. */ | |
21d1c967 | 17749 | #include <features.h> |
e6cc62c6 VS |
17750 | int |
17751 | main () | |
17752 | { | |
ab9b9eab | 17753 | |
21d1c967 GD |
17754 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
17755 | #error not glibc2.1 | |
17756 | #endif | |
e6cc62c6 VS |
17757 | |
17758 | ; | |
17759 | return 0; | |
17760 | } | |
17761 | _ACEOF | |
17762 | rm -f conftest.$ac_objext | |
17763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17764 | (eval $ac_compile) 2>&5 | |
17765 | ac_status=$? | |
17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17767 | (exit $ac_status); } && | |
17768 | { ac_try='test -s conftest.$ac_objext' | |
17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17770 | (eval $ac_try) 2>&5 | |
17771 | ac_status=$? | |
17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17773 | (exit $ac_status); }; }; then | |
17774 | ||
21d1c967 | 17775 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 17776 | |
698dcdb6 | 17777 | else |
e6cc62c6 VS |
17778 | echo "$as_me: failed program was:" >&5 |
17779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17780 | ||
17781 | ||
21d1c967 | 17782 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
17783 | |
17784 | ||
247f5006 | 17785 | fi |
e6cc62c6 | 17786 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17787 | |
e6cc62c6 VS |
17788 | fi |
17789 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17790 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 17791 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 17792 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17793 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 17794 | _ACEOF |
1e487827 | 17795 | |
90dd450c | 17796 | fi |
ab9b9eab VZ |
17797 | fi |
17798 | ||
5c0a20c3 VZ |
17799 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
17800 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 17801 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 17802 | #define _GNU_SOURCE 1 |
e6cc62c6 | 17803 | _ACEOF |
5c0a20c3 VZ |
17804 | |
17805 | fi | |
17806 | fi | |
17807 | ||
8284b0c5 MB |
17808 | |
17809 | ||
21d1c967 GD |
17810 | REGEX_INCLUDE= |
17811 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 17812 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17813 | #define wxUSE_REGEX 1 |
e6cc62c6 | 17814 | _ACEOF |
698dcdb6 | 17815 | |
8284b0c5 | 17816 | |
21d1c967 | 17817 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
17818 | if test "${ac_cv_header_regex_h+set}" = set; then |
17819 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17820 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17821 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17823 | fi | |
17824 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17825 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17826 | else | |
17827 | # Is the header compilable? | |
17828 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17829 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17830 | cat >conftest.$ac_ext <<_ACEOF | |
17831 | #line $LINENO "configure" | |
17832 | /* confdefs.h. */ | |
17833 | _ACEOF | |
17834 | cat confdefs.h >>conftest.$ac_ext | |
17835 | cat >>conftest.$ac_ext <<_ACEOF | |
17836 | /* end confdefs.h. */ | |
17837 | $ac_includes_default | |
247f5006 | 17838 | #include <regex.h> |
e6cc62c6 VS |
17839 | _ACEOF |
17840 | rm -f conftest.$ac_objext | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17842 | (eval $ac_compile) 2>&5 | |
17843 | ac_status=$? | |
17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17845 | (exit $ac_status); } && | |
17846 | { ac_try='test -s conftest.$ac_objext' | |
17847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17848 | (eval $ac_try) 2>&5 | |
17849 | ac_status=$? | |
17850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17851 | (exit $ac_status); }; }; then | |
17852 | ac_header_compiler=yes | |
17853 | else | |
17854 | echo "$as_me: failed program was:" >&5 | |
17855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17856 | ||
17857 | ac_header_compiler=no | |
17858 | fi | |
17859 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17862 | ||
17863 | # Is the header present? | |
17864 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17865 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17866 | cat >conftest.$ac_ext <<_ACEOF | |
17867 | #line $LINENO "configure" | |
17868 | /* confdefs.h. */ | |
17869 | _ACEOF | |
17870 | cat confdefs.h >>conftest.$ac_ext | |
17871 | cat >>conftest.$ac_ext <<_ACEOF | |
17872 | /* end confdefs.h. */ | |
17873 | #include <regex.h> | |
17874 | _ACEOF | |
17875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17877 | ac_status=$? | |
17878 | grep -v '^ *+' conftest.er1 >conftest.err | |
17879 | rm -f conftest.er1 | |
17880 | cat conftest.err >&5 | |
17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17882 | (exit $ac_status); } >/dev/null; then | |
17883 | if test -s conftest.err; then | |
17884 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17885 | else | |
17886 | ac_cpp_err= | |
17887 | fi | |
17888 | else | |
17889 | ac_cpp_err=yes | |
17890 | fi | |
17891 | if test -z "$ac_cpp_err"; then | |
17892 | ac_header_preproc=yes | |
17893 | else | |
17894 | echo "$as_me: failed program was:" >&5 | |
17895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17896 | ||
17897 | ac_header_preproc=no | |
17898 | fi | |
17899 | rm -f conftest.err conftest.$ac_ext | |
17900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17902 | ||
17903 | # So? What about this header? | |
17904 | case $ac_header_compiler:$ac_header_preproc in | |
17905 | yes:no ) | |
17906 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17907 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17908 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17909 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17910 | ( | |
17911 | cat <<\_ASBOX | |
17912 | ## ------------------------------------ ## | |
17913 | ## Report this to bug-autoconf@gnu.org. ## | |
17914 | ## ------------------------------------ ## | |
17915 | _ASBOX | |
17916 | ) | | |
17917 | sed "s/^/$as_me: WARNING: /" >&2 | |
17918 | ;; | |
17919 | no:yes ) | |
17920 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
17921 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
17922 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
17923 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
17924 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17925 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17926 | ( | |
17927 | cat <<\_ASBOX | |
17928 | ## ------------------------------------ ## | |
17929 | ## Report this to bug-autoconf@gnu.org. ## | |
17930 | ## ------------------------------------ ## | |
17931 | _ASBOX | |
17932 | ) | | |
17933 | sed "s/^/$as_me: WARNING: /" >&2 | |
17934 | ;; | |
17935 | esac | |
17936 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17937 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17938 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17940 | else | |
17941 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 17942 | fi |
e6cc62c6 VS |
17943 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
17944 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17945 | ||
698dcdb6 | 17946 | fi |
e6cc62c6 VS |
17947 | if test $ac_cv_header_regex_h = yes; then |
17948 | ||
17949 | for ac_func in regcomp | |
21d1c967 | 17950 | do |
e6cc62c6 VS |
17951 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17952 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17953 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17954 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17956 | else | |
17957 | cat >conftest.$ac_ext <<_ACEOF | |
17958 | #line $LINENO "configure" | |
17959 | /* confdefs.h. */ | |
17960 | _ACEOF | |
17961 | cat confdefs.h >>conftest.$ac_ext | |
17962 | cat >>conftest.$ac_ext <<_ACEOF | |
17963 | /* end confdefs.h. */ | |
a0b9e27f | 17964 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
17965 | which can conflict with char $ac_func (); below. |
17966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17967 | <limits.h> exists even on freestanding compilers. */ | |
17968 | #ifdef __STDC__ | |
17969 | # include <limits.h> | |
17970 | #else | |
17971 | # include <assert.h> | |
17972 | #endif | |
21d1c967 | 17973 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
17974 | #ifdef __cplusplus |
17975 | extern "C" | |
17976 | { | |
17977 | #endif | |
21d1c967 | 17978 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
17979 | builtin and then its argument prototype would still apply. */ |
17980 | char $ac_func (); | |
21d1c967 GD |
17981 | /* The GNU C library defines this for functions which it implements |
17982 | to always fail with ENOSYS. Some functions are actually named | |
17983 | something starting with __ and the normal name is an alias. */ | |
17984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17985 | choke me | |
17986 | #else | |
e6cc62c6 VS |
17987 | char (*f) () = $ac_func; |
17988 | #endif | |
17989 | #ifdef __cplusplus | |
17990 | } | |
21d1c967 | 17991 | #endif |
90dd450c | 17992 | |
e6cc62c6 VS |
17993 | int |
17994 | main () | |
17995 | { | |
17996 | return f != $ac_func; | |
17997 | ; | |
17998 | return 0; | |
17999 | } | |
18000 | _ACEOF | |
18001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18003 | (eval $ac_link) 2>&5 | |
18004 | ac_status=$? | |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18006 | (exit $ac_status); } && | |
18007 | { ac_try='test -s conftest$ac_exeext' | |
18008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18009 | (eval $ac_try) 2>&5 | |
18010 | ac_status=$? | |
18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18012 | (exit $ac_status); }; }; then | |
18013 | eval "$as_ac_var=yes" | |
18014 | else | |
18015 | echo "$as_me: failed program was:" >&5 | |
18016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18017 | ||
18018 | eval "$as_ac_var=no" | |
18019 | fi | |
18020 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18021 | fi | |
18022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18025 | cat >>confdefs.h <<_ACEOF | |
18026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18027 | _ACEOF | |
5c6fa7d2 | 18028 | |
698dcdb6 | 18029 | fi |
21d1c967 GD |
18030 | done |
18031 | ||
ab9b9eab VZ |
18032 | fi |
18033 | ||
8284b0c5 | 18034 | |
e6cc62c6 | 18035 | |
21d1c967 GD |
18036 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18037 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18038 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18039 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18040 | { (exit 1); exit 1; }; } | |
21d1c967 | 18041 | else |
e6cc62c6 VS |
18042 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18043 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18044 | wxUSE_REGEX=builtin |
18045 | fi | |
18046 | else | |
18047 | wxUSE_REGEX=sys | |
18048 | fi | |
ab9b9eab | 18049 | fi |
90dd450c | 18050 | |
21d1c967 GD |
18051 | if test "$wxUSE_REGEX" = "builtin" ; then |
18052 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18053 | fi |
21d1c967 | 18054 | fi |
90dd450c | 18055 | |
8284b0c5 | 18056 | |
21d1c967 GD |
18057 | ZLIB_INCLUDE= |
18058 | ZLIB_LINK= | |
18059 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18060 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18061 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18062 | _ACEOF |
21d1c967 | 18063 | |
8284b0c5 | 18064 | |
21d1c967 | 18065 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18066 | if test "$USE_DARWIN" = 1; then |
18067 | system_zlib_h_ok="yes" | |
18068 | else | |
e6cc62c6 VS |
18069 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18070 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18071 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18073 | else |
18074 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18075 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18076 | |
d643b80e | 18077 | else |
e6cc62c6 VS |
18078 | cat >conftest.$ac_ext <<_ACEOF |
18079 | #line $LINENO "configure" | |
18080 | /* confdefs.h. */ | |
18081 | _ACEOF | |
18082 | cat confdefs.h >>conftest.$ac_ext | |
18083 | cat >>conftest.$ac_ext <<_ACEOF | |
18084 | /* end confdefs.h. */ | |
18085 | ||
ef33c576 | 18086 | #include <zlib.h> |
d775acfa | 18087 | #include <stdio.h> |
d643b80e | 18088 | |
d775acfa VZ |
18089 | int main() |
18090 | { | |
18091 | FILE *f=fopen("conftestval", "w"); | |
18092 | if (!f) exit(1); | |
18093 | fprintf(f, "%s", | |
18094 | ZLIB_VERSION[0] == '1' && | |
18095 | (ZLIB_VERSION[2] > '1' || | |
18096 | (ZLIB_VERSION[2] == '1' && | |
18097 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18098 | exit(0); | |
18099 | } | |
e6cc62c6 VS |
18100 | |
18101 | _ACEOF | |
18102 | rm -f conftest$ac_exeext | |
18103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18104 | (eval $ac_link) 2>&5 | |
18105 | ac_status=$? | |
18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18109 | (eval $ac_try) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18113 | ac_cv_header_zlib_h=`cat conftestval` |
18114 | else | |
e6cc62c6 VS |
18115 | echo "$as_me: program exited with status $ac_status" >&5 |
18116 | echo "$as_me: failed program was:" >&5 | |
18117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18118 | ||
18119 | ( exit $ac_status ) | |
18120 | ac_cv_header_zlib_h=no | |
d643b80e | 18121 | fi |
e6cc62c6 | 18122 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18123 | fi |
18124 | ||
d643b80e | 18125 | fi |
e6cc62c6 VS |
18126 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18127 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18128 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18129 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18130 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18131 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18133 | fi | |
18134 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18135 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18136 | else |
e6cc62c6 VS |
18137 | # Is the header compilable? |
18138 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18139 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18140 | cat >conftest.$ac_ext <<_ACEOF | |
18141 | #line $LINENO "configure" | |
18142 | /* confdefs.h. */ | |
18143 | _ACEOF | |
18144 | cat confdefs.h >>conftest.$ac_ext | |
18145 | cat >>conftest.$ac_ext <<_ACEOF | |
18146 | /* end confdefs.h. */ | |
18147 | $ac_includes_default | |
89e6bf6d | 18148 | #include <zlib.h> |
e6cc62c6 VS |
18149 | _ACEOF |
18150 | rm -f conftest.$ac_objext | |
18151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18152 | (eval $ac_compile) 2>&5 | |
18153 | ac_status=$? | |
18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18155 | (exit $ac_status); } && | |
18156 | { ac_try='test -s conftest.$ac_objext' | |
18157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18158 | (eval $ac_try) 2>&5 | |
18159 | ac_status=$? | |
18160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18161 | (exit $ac_status); }; }; then | |
18162 | ac_header_compiler=yes | |
18163 | else | |
18164 | echo "$as_me: failed program was:" >&5 | |
18165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18166 | ||
18167 | ac_header_compiler=no | |
18168 | fi | |
18169 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18170 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18171 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18172 | ||
18173 | # Is the header present? | |
18174 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18175 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18176 | cat >conftest.$ac_ext <<_ACEOF | |
18177 | #line $LINENO "configure" | |
18178 | /* confdefs.h. */ | |
18179 | _ACEOF | |
18180 | cat confdefs.h >>conftest.$ac_ext | |
18181 | cat >>conftest.$ac_ext <<_ACEOF | |
18182 | /* end confdefs.h. */ | |
18183 | #include <zlib.h> | |
18184 | _ACEOF | |
18185 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18186 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18187 | ac_status=$? | |
18188 | grep -v '^ *+' conftest.er1 >conftest.err | |
18189 | rm -f conftest.er1 | |
18190 | cat conftest.err >&5 | |
18191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18192 | (exit $ac_status); } >/dev/null; then | |
18193 | if test -s conftest.err; then | |
18194 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18195 | else | |
18196 | ac_cpp_err= | |
18197 | fi | |
18198 | else | |
18199 | ac_cpp_err=yes | |
18200 | fi | |
18201 | if test -z "$ac_cpp_err"; then | |
18202 | ac_header_preproc=yes | |
18203 | else | |
18204 | echo "$as_me: failed program was:" >&5 | |
18205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18206 | ||
18207 | ac_header_preproc=no | |
18208 | fi | |
18209 | rm -f conftest.err conftest.$ac_ext | |
18210 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18211 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18212 | ||
18213 | # So? What about this header? | |
18214 | case $ac_header_compiler:$ac_header_preproc in | |
18215 | yes:no ) | |
18216 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18217 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18218 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18219 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18220 | ( | |
18221 | cat <<\_ASBOX | |
18222 | ## ------------------------------------ ## | |
18223 | ## Report this to bug-autoconf@gnu.org. ## | |
18224 | ## ------------------------------------ ## | |
18225 | _ASBOX | |
18226 | ) | | |
18227 | sed "s/^/$as_me: WARNING: /" >&2 | |
18228 | ;; | |
18229 | no:yes ) | |
18230 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18231 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18232 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18233 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18234 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18235 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18236 | ( | |
18237 | cat <<\_ASBOX | |
18238 | ## ------------------------------------ ## | |
18239 | ## Report this to bug-autoconf@gnu.org. ## | |
18240 | ## ------------------------------------ ## | |
18241 | _ASBOX | |
18242 | ) | | |
18243 | sed "s/^/$as_me: WARNING: /" >&2 | |
18244 | ;; | |
18245 | esac | |
18246 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18247 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18248 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18250 | else |
e6cc62c6 VS |
18251 | ac_cv_header_zlib_h=$ac_header_preproc |
18252 | fi | |
18253 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18254 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18255 | ||
89e6bf6d VZ |
18256 | fi |
18257 | ||
d643b80e | 18258 | |
e6cc62c6 | 18259 | |
d775acfa VZ |
18260 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18261 | fi | |
18262 | ||
18263 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18264 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18265 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18266 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18268 | else |
e6cc62c6 | 18269 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18270 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18271 | cat >conftest.$ac_ext <<_ACEOF |
18272 | #line $LINENO "configure" | |
18273 | /* confdefs.h. */ | |
18274 | _ACEOF | |
18275 | cat confdefs.h >>conftest.$ac_ext | |
18276 | cat >>conftest.$ac_ext <<_ACEOF | |
18277 | /* end confdefs.h. */ | |
18278 | ||
21d1c967 | 18279 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18280 | #ifdef __cplusplus |
18281 | extern "C" | |
18282 | #endif | |
21d1c967 | 18283 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18284 | builtin and then its argument prototype would still apply. */ |
18285 | char deflate (); | |
18286 | int | |
18287 | main () | |
18288 | { | |
18289 | deflate (); | |
18290 | ; | |
18291 | return 0; | |
18292 | } | |
18293 | _ACEOF | |
18294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18296 | (eval $ac_link) 2>&5 | |
18297 | ac_status=$? | |
18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18299 | (exit $ac_status); } && | |
18300 | { ac_try='test -s conftest$ac_exeext' | |
18301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18302 | (eval $ac_try) 2>&5 | |
18303 | ac_status=$? | |
18304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18305 | (exit $ac_status); }; }; then | |
18306 | ac_cv_lib_z_deflate=yes | |
18307 | else | |
18308 | echo "$as_me: failed program was:" >&5 | |
18309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18310 | ||
18311 | ac_cv_lib_z_deflate=no | |
18312 | fi | |
18313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18314 | LIBS=$ac_check_lib_save_LIBS | |
18315 | fi | |
18316 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18317 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18318 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18319 | ZLIB_LINK=" -lz" |
a0b9e27f | 18320 | fi |
698dcdb6 | 18321 | |
d643b80e | 18322 | fi |
247f5006 | 18323 | |
21d1c967 GD |
18324 | if test "x$ZLIB_LINK" = "x" ; then |
18325 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18326 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18327 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18328 | { (exit 1); exit 1; }; } | |
21d1c967 | 18329 | else |
e6cc62c6 VS |
18330 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18331 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18332 | wxUSE_ZLIB=builtin |
18333 | fi | |
18334 | else | |
18335 | wxUSE_ZLIB=sys | |
18336 | fi | |
18337 | fi | |
18338 | ||
18339 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18340 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18341 | fi | |
ab9b9eab VZ |
18342 | fi |
18343 | ||
8284b0c5 | 18344 | |
21d1c967 GD |
18345 | PNG_INCLUDE= |
18346 | PNG_LINK= | |
18347 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18348 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18349 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18350 | _ACEOF |
90dd450c | 18351 | |
8284b0c5 | 18352 | |
21d1c967 | 18353 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18354 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18355 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18356 | wxUSE_LIBPNG=sys |
18357 | fi | |
90dd450c | 18358 | |
21d1c967 | 18359 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18360 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18361 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18362 | wxUSE_LIBPNG=builtin |
18363 | fi | |
18364 | ||
18365 | if test "$wxUSE_MGL" != 1 ; then | |
18366 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18367 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18368 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18369 | if test "${ac_cv_header_png_h+set}" = set; then | |
18370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18371 | else |
18372 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18373 | unset ac_cv_header_png_h |
e6cc62c6 | 18374 | |
5d3f766d | 18375 | else |
e6cc62c6 VS |
18376 | cat >conftest.$ac_ext <<_ACEOF |
18377 | #line $LINENO "configure" | |
18378 | /* confdefs.h. */ | |
18379 | _ACEOF | |
18380 | cat confdefs.h >>conftest.$ac_ext | |
18381 | cat >>conftest.$ac_ext <<_ACEOF | |
18382 | /* end confdefs.h. */ | |
18383 | ||
ef33c576 | 18384 | #include <png.h> |
5d3f766d VZ |
18385 | #include <stdio.h> |
18386 | ||
18387 | int main() | |
18388 | { | |
18389 | FILE *f=fopen("conftestval", "w"); | |
18390 | if (!f) exit(1); | |
18391 | fprintf(f, "%s", | |
18392 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18393 | exit(0); | |
18394 | } | |
e6cc62c6 VS |
18395 | |
18396 | _ACEOF | |
18397 | rm -f conftest$ac_exeext | |
18398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18399 | (eval $ac_link) 2>&5 | |
18400 | ac_status=$? | |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18404 | (eval $ac_try) 2>&5 | |
18405 | ac_status=$? | |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18407 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18408 | ac_cv_header_png_h=`cat conftestval` |
18409 | else | |
e6cc62c6 VS |
18410 | echo "$as_me: program exited with status $ac_status" >&5 |
18411 | echo "$as_me: failed program was:" >&5 | |
18412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18413 | ||
18414 | ( exit $ac_status ) | |
18415 | ac_cv_header_png_h=no | |
5d3f766d | 18416 | fi |
e6cc62c6 | 18417 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18418 | fi |
18419 | ||
5d3f766d | 18420 | fi |
e6cc62c6 VS |
18421 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18422 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18423 | if test "${ac_cv_header_png_h+set}" = set; then | |
18424 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18425 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18426 | if test "${ac_cv_header_png_h+set}" = set; then | |
18427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18428 | fi | |
18429 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18430 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18431 | else |
e6cc62c6 VS |
18432 | # Is the header compilable? |
18433 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18434 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18435 | cat >conftest.$ac_ext <<_ACEOF | |
18436 | #line $LINENO "configure" | |
18437 | /* confdefs.h. */ | |
18438 | _ACEOF | |
18439 | cat confdefs.h >>conftest.$ac_ext | |
18440 | cat >>conftest.$ac_ext <<_ACEOF | |
18441 | /* end confdefs.h. */ | |
18442 | $ac_includes_default | |
89e6bf6d | 18443 | #include <png.h> |
e6cc62c6 VS |
18444 | _ACEOF |
18445 | rm -f conftest.$ac_objext | |
18446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18447 | (eval $ac_compile) 2>&5 | |
18448 | ac_status=$? | |
18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18450 | (exit $ac_status); } && | |
18451 | { ac_try='test -s conftest.$ac_objext' | |
18452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18453 | (eval $ac_try) 2>&5 | |
18454 | ac_status=$? | |
18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); }; }; then | |
18457 | ac_header_compiler=yes | |
18458 | else | |
18459 | echo "$as_me: failed program was:" >&5 | |
18460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18461 | ||
18462 | ac_header_compiler=no | |
18463 | fi | |
18464 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18466 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18467 | ||
18468 | # Is the header present? | |
18469 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18470 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18471 | cat >conftest.$ac_ext <<_ACEOF | |
18472 | #line $LINENO "configure" | |
18473 | /* confdefs.h. */ | |
18474 | _ACEOF | |
18475 | cat confdefs.h >>conftest.$ac_ext | |
18476 | cat >>conftest.$ac_ext <<_ACEOF | |
18477 | /* end confdefs.h. */ | |
18478 | #include <png.h> | |
18479 | _ACEOF | |
18480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18482 | ac_status=$? | |
18483 | grep -v '^ *+' conftest.er1 >conftest.err | |
18484 | rm -f conftest.er1 | |
18485 | cat conftest.err >&5 | |
18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18487 | (exit $ac_status); } >/dev/null; then | |
18488 | if test -s conftest.err; then | |
18489 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18490 | else | |
18491 | ac_cpp_err= | |
18492 | fi | |
18493 | else | |
18494 | ac_cpp_err=yes | |
18495 | fi | |
18496 | if test -z "$ac_cpp_err"; then | |
18497 | ac_header_preproc=yes | |
18498 | else | |
18499 | echo "$as_me: failed program was:" >&5 | |
18500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18501 | ||
18502 | ac_header_preproc=no | |
18503 | fi | |
18504 | rm -f conftest.err conftest.$ac_ext | |
18505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18506 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18507 | ||
18508 | # So? What about this header? | |
18509 | case $ac_header_compiler:$ac_header_preproc in | |
18510 | yes:no ) | |
18511 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18512 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18513 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18514 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18515 | ( | |
18516 | cat <<\_ASBOX | |
18517 | ## ------------------------------------ ## | |
18518 | ## Report this to bug-autoconf@gnu.org. ## | |
18519 | ## ------------------------------------ ## | |
18520 | _ASBOX | |
18521 | ) | | |
18522 | sed "s/^/$as_me: WARNING: /" >&2 | |
18523 | ;; | |
18524 | no:yes ) | |
18525 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18526 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18527 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18528 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18529 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18530 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18531 | ( | |
18532 | cat <<\_ASBOX | |
18533 | ## ------------------------------------ ## | |
18534 | ## Report this to bug-autoconf@gnu.org. ## | |
18535 | ## ------------------------------------ ## | |
18536 | _ASBOX | |
18537 | ) | | |
18538 | sed "s/^/$as_me: WARNING: /" >&2 | |
18539 | ;; | |
18540 | esac | |
18541 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18542 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18543 | if test "${ac_cv_header_png_h+set}" = set; then | |
18544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18545 | else |
e6cc62c6 VS |
18546 | ac_cv_header_png_h=$ac_header_preproc |
18547 | fi | |
18548 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18549 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18550 | ||
89e6bf6d VZ |
18551 | fi |
18552 | ||
5d3f766d | 18553 | |
e6cc62c6 | 18554 | |
5d3f766d | 18555 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18556 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18557 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18558 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18560 | else |
e6cc62c6 | 18561 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18562 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18563 | cat >conftest.$ac_ext <<_ACEOF |
18564 | #line $LINENO "configure" | |
18565 | /* confdefs.h. */ | |
18566 | _ACEOF | |
18567 | cat confdefs.h >>conftest.$ac_ext | |
18568 | cat >>conftest.$ac_ext <<_ACEOF | |
18569 | /* end confdefs.h. */ | |
18570 | ||
21d1c967 | 18571 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18572 | #ifdef __cplusplus |
18573 | extern "C" | |
18574 | #endif | |
21d1c967 | 18575 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18576 | builtin and then its argument prototype would still apply. */ |
18577 | char png_check_sig (); | |
18578 | int | |
18579 | main () | |
18580 | { | |
18581 | png_check_sig (); | |
18582 | ; | |
18583 | return 0; | |
18584 | } | |
18585 | _ACEOF | |
18586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18588 | (eval $ac_link) 2>&5 | |
18589 | ac_status=$? | |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18591 | (exit $ac_status); } && | |
18592 | { ac_try='test -s conftest$ac_exeext' | |
18593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18594 | (eval $ac_try) 2>&5 | |
18595 | ac_status=$? | |
18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18597 | (exit $ac_status); }; }; then | |
18598 | ac_cv_lib_png_png_check_sig=yes | |
18599 | else | |
18600 | echo "$as_me: failed program was:" >&5 | |
18601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18602 | ||
18603 | ac_cv_lib_png_png_check_sig=no | |
18604 | fi | |
18605 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18606 | LIBS=$ac_check_lib_save_LIBS | |
18607 | fi | |
18608 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18609 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18610 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18611 | PNG_LINK=" -lpng" |
a0b9e27f | 18612 | fi |
90dd450c | 18613 | |
5d3f766d | 18614 | fi |
247f5006 | 18615 | |
21d1c967 GD |
18616 | if test "x$PNG_LINK" = "x" ; then |
18617 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18618 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18619 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18620 | { (exit 1); exit 1; }; } | |
21d1c967 | 18621 | else |
e6cc62c6 VS |
18622 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18623 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18624 | wxUSE_LIBPNG=builtin |
18625 | fi | |
18626 | else | |
2b5f62a0 | 18627 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18628 | fi |
18629 | fi | |
18630 | fi | |
90dd450c | 18631 | |
21d1c967 GD |
18632 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18633 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18634 | fi | |
90dd450c | 18635 | |
21d1c967 | 18636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18637 | fi |
18638 | ||
8284b0c5 | 18639 | |
21d1c967 GD |
18640 | JPEG_INCLUDE= |
18641 | JPEG_LINK= | |
18642 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18643 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18644 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18645 | _ACEOF |
90dd450c | 18646 | |
8284b0c5 | 18647 | |
21d1c967 | 18648 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18649 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18650 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18651 | wxUSE_LIBJPEG=sys |
18652 | fi | |
90dd450c | 18653 | |
21d1c967 GD |
18654 | if test "$wxUSE_MGL" != 1 ; then |
18655 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18656 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18657 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18658 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18660 | else | |
18661 | cat >conftest.$ac_ext <<_ACEOF | |
18662 | #line $LINENO "configure" | |
18663 | /* confdefs.h. */ | |
18664 | _ACEOF | |
18665 | cat confdefs.h >>conftest.$ac_ext | |
18666 | cat >>conftest.$ac_ext <<_ACEOF | |
18667 | /* end confdefs.h. */ | |
90dd450c | 18668 | |
21d1c967 GD |
18669 | #undef HAVE_STDLIB_H |
18670 | #include <stdio.h> | |
18671 | #include <jpeglib.h> | |
90dd450c | 18672 | |
e6cc62c6 VS |
18673 | int |
18674 | main () | |
18675 | { | |
18676 | ||
18677 | ||
18678 | ; | |
18679 | return 0; | |
18680 | } | |
18681 | _ACEOF | |
18682 | rm -f conftest.$ac_objext | |
18683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18684 | (eval $ac_compile) 2>&5 | |
18685 | ac_status=$? | |
18686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18687 | (exit $ac_status); } && | |
18688 | { ac_try='test -s conftest.$ac_objext' | |
18689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18690 | (eval $ac_try) 2>&5 | |
18691 | ac_status=$? | |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18693 | (exit $ac_status); }; }; then | |
21d1c967 | 18694 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18695 | else |
e6cc62c6 VS |
18696 | echo "$as_me: failed program was:" >&5 |
18697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18698 | ||
18699 | ac_cv_header_jpeglib_h=no | |
18700 | ||
90dd450c | 18701 | fi |
e6cc62c6 VS |
18702 | rm -f conftest.$ac_objext conftest.$ac_ext |
18703 | ||
90dd450c VZ |
18704 | fi |
18705 | ||
e6cc62c6 VS |
18706 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18707 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18708 | |
21d1c967 | 18709 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18710 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18711 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18712 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18714 | else |
e6cc62c6 | 18715 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18716 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18717 | cat >conftest.$ac_ext <<_ACEOF |
18718 | #line $LINENO "configure" | |
18719 | /* confdefs.h. */ | |
18720 | _ACEOF | |
18721 | cat confdefs.h >>conftest.$ac_ext | |
18722 | cat >>conftest.$ac_ext <<_ACEOF | |
18723 | /* end confdefs.h. */ | |
18724 | ||
21d1c967 | 18725 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18726 | #ifdef __cplusplus |
18727 | extern "C" | |
18728 | #endif | |
21d1c967 | 18729 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18730 | builtin and then its argument prototype would still apply. */ |
18731 | char jpeg_read_header (); | |
18732 | int | |
18733 | main () | |
18734 | { | |
18735 | jpeg_read_header (); | |
18736 | ; | |
18737 | return 0; | |
18738 | } | |
18739 | _ACEOF | |
18740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18742 | (eval $ac_link) 2>&5 | |
18743 | ac_status=$? | |
18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18745 | (exit $ac_status); } && | |
18746 | { ac_try='test -s conftest$ac_exeext' | |
18747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18748 | (eval $ac_try) 2>&5 | |
18749 | ac_status=$? | |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18751 | (exit $ac_status); }; }; then | |
18752 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18753 | else | |
18754 | echo "$as_me: failed program was:" >&5 | |
18755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18756 | ||
18757 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18758 | fi | |
18759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18760 | LIBS=$ac_check_lib_save_LIBS | |
18761 | fi | |
18762 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18763 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18764 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 18765 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
18766 | fi |
18767 | ||
21d1c967 | 18768 | fi |
90dd450c | 18769 | |
21d1c967 GD |
18770 | if test "x$JPEG_LINK" = "x" ; then |
18771 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
18772 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
18773 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18774 | { (exit 1); exit 1; }; } | |
21d1c967 | 18775 | else |
e6cc62c6 VS |
18776 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
18777 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18778 | wxUSE_LIBJPEG=builtin |
18779 | fi | |
18780 | else | |
18781 | wxUSE_LIBJPEG=sys | |
18782 | fi | |
18783 | fi | |
18784 | fi | |
90dd450c | 18785 | |
21d1c967 GD |
18786 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
18787 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18788 | fi | |
18789 | fi | |
90dd450c | 18790 | |
8284b0c5 | 18791 | |
21d1c967 GD |
18792 | TIFF_INCLUDE= |
18793 | TIFF_LINK= | |
2b5f62a0 | 18794 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 18795 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 18796 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18797 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 18798 | _ACEOF |
21d1c967 | 18799 | |
8284b0c5 | 18800 | |
21d1c967 | 18801 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
18802 | if test "$wxUSE_LIBJPEG" = "sys"; then |
18803 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18804 | fi | |
18805 | if test "$wxUSE_ZLIB" = "sys"; then | |
18806 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18807 | fi | |
e6cc62c6 VS |
18808 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
18809 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18810 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18811 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18813 | fi | |
18814 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18815 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18816 | else | |
18817 | # Is the header compilable? | |
18818 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18819 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18820 | cat >conftest.$ac_ext <<_ACEOF | |
18821 | #line $LINENO "configure" | |
18822 | /* confdefs.h. */ | |
18823 | _ACEOF | |
18824 | cat confdefs.h >>conftest.$ac_ext | |
18825 | cat >>conftest.$ac_ext <<_ACEOF | |
18826 | /* end confdefs.h. */ | |
18827 | $ac_includes_default | |
247f5006 | 18828 | #include <tiffio.h> |
e6cc62c6 VS |
18829 | _ACEOF |
18830 | rm -f conftest.$ac_objext | |
18831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18832 | (eval $ac_compile) 2>&5 | |
18833 | ac_status=$? | |
18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18835 | (exit $ac_status); } && | |
18836 | { ac_try='test -s conftest.$ac_objext' | |
18837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18838 | (eval $ac_try) 2>&5 | |
18839 | ac_status=$? | |
18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18841 | (exit $ac_status); }; }; then | |
18842 | ac_header_compiler=yes | |
18843 | else | |
18844 | echo "$as_me: failed program was:" >&5 | |
18845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18846 | ||
18847 | ac_header_compiler=no | |
18848 | fi | |
18849 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18850 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18851 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18852 | ||
18853 | # Is the header present? | |
18854 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18855 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18856 | cat >conftest.$ac_ext <<_ACEOF | |
18857 | #line $LINENO "configure" | |
18858 | /* confdefs.h. */ | |
18859 | _ACEOF | |
18860 | cat confdefs.h >>conftest.$ac_ext | |
18861 | cat >>conftest.$ac_ext <<_ACEOF | |
18862 | /* end confdefs.h. */ | |
18863 | #include <tiffio.h> | |
18864 | _ACEOF | |
18865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18867 | ac_status=$? | |
18868 | grep -v '^ *+' conftest.er1 >conftest.err | |
18869 | rm -f conftest.er1 | |
18870 | cat conftest.err >&5 | |
18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18872 | (exit $ac_status); } >/dev/null; then | |
18873 | if test -s conftest.err; then | |
18874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18875 | else | |
18876 | ac_cpp_err= | |
18877 | fi | |
18878 | else | |
18879 | ac_cpp_err=yes | |
18880 | fi | |
18881 | if test -z "$ac_cpp_err"; then | |
18882 | ac_header_preproc=yes | |
18883 | else | |
18884 | echo "$as_me: failed program was:" >&5 | |
18885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18886 | ||
18887 | ac_header_preproc=no | |
18888 | fi | |
18889 | rm -f conftest.err conftest.$ac_ext | |
18890 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18891 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18892 | ||
18893 | # So? What about this header? | |
18894 | case $ac_header_compiler:$ac_header_preproc in | |
18895 | yes:no ) | |
18896 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18897 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18898 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18899 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18900 | ( | |
18901 | cat <<\_ASBOX | |
18902 | ## ------------------------------------ ## | |
18903 | ## Report this to bug-autoconf@gnu.org. ## | |
18904 | ## ------------------------------------ ## | |
18905 | _ASBOX | |
18906 | ) | | |
18907 | sed "s/^/$as_me: WARNING: /" >&2 | |
18908 | ;; | |
18909 | no:yes ) | |
18910 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
18911 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
18912 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
18913 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
18914 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18915 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18916 | ( | |
18917 | cat <<\_ASBOX | |
18918 | ## ------------------------------------ ## | |
18919 | ## Report this to bug-autoconf@gnu.org. ## | |
18920 | ## ------------------------------------ ## | |
18921 | _ASBOX | |
18922 | ) | | |
18923 | sed "s/^/$as_me: WARNING: /" >&2 | |
18924 | ;; | |
18925 | esac | |
18926 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18927 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18928 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18930 | else | |
18931 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 18932 | fi |
e6cc62c6 VS |
18933 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
18934 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18935 | ||
21d1c967 | 18936 | fi |
e6cc62c6 VS |
18937 | if test $ac_cv_header_tiffio_h = yes; then |
18938 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
18939 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
18940 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
18941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 18942 | else |
e6cc62c6 | 18943 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 18944 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
18945 | cat >conftest.$ac_ext <<_ACEOF |
18946 | #line $LINENO "configure" | |
18947 | /* confdefs.h. */ | |
18948 | _ACEOF | |
18949 | cat confdefs.h >>conftest.$ac_ext | |
18950 | cat >>conftest.$ac_ext <<_ACEOF | |
18951 | /* end confdefs.h. */ | |
18952 | ||
ab9b9eab | 18953 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18954 | #ifdef __cplusplus |
18955 | extern "C" | |
18956 | #endif | |
ab9b9eab | 18957 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18958 | builtin and then its argument prototype would still apply. */ |
18959 | char TIFFError (); | |
18960 | int | |
18961 | main () | |
18962 | { | |
18963 | TIFFError (); | |
18964 | ; | |
18965 | return 0; | |
18966 | } | |
18967 | _ACEOF | |
18968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18970 | (eval $ac_link) 2>&5 | |
18971 | ac_status=$? | |
18972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18973 | (exit $ac_status); } && | |
18974 | { ac_try='test -s conftest$ac_exeext' | |
18975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18976 | (eval $ac_try) 2>&5 | |
18977 | ac_status=$? | |
18978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18979 | (exit $ac_status); }; }; then | |
18980 | ac_cv_lib_tiff_TIFFError=yes | |
18981 | else | |
18982 | echo "$as_me: failed program was:" >&5 | |
18983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18984 | ||
18985 | ac_cv_lib_tiff_TIFFError=no | |
18986 | fi | |
18987 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18988 | LIBS=$ac_check_lib_save_LIBS | |
18989 | fi | |
18990 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
18991 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
18992 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 18993 | TIFF_LINK=" -ltiff" |
a0b9e27f | 18994 | fi |
cd6d6d5b | 18995 | |
e6cc62c6 | 18996 | |
a0b9e27f | 18997 | fi |
8284b0c5 | 18998 | |
247f5006 | 18999 | |
e6cc62c6 | 19000 | |
21d1c967 GD |
19001 | if test "x$TIFF_LINK" = "x" ; then |
19002 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19003 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19004 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19005 | { (exit 1); exit 1; }; } | |
90dd450c | 19006 | else |
e6cc62c6 VS |
19007 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19008 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19009 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19010 | fi |
d8356fa3 | 19011 | else |
21d1c967 | 19012 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19013 | fi |
21d1c967 | 19014 | fi |
d8356fa3 | 19015 | |
21d1c967 GD |
19016 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19017 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19018 | fi |
21d1c967 | 19019 | fi |
10f2d63a | 19020 | |
8284b0c5 | 19021 | |
21d1c967 | 19022 | AFMINSTALL= |
2b5f62a0 | 19023 | WIN32INSTALL= |
90dd450c | 19024 | |
21d1c967 GD |
19025 | TOOLKIT= |
19026 | TOOLKIT_INCLUDE= | |
19027 | WIDGET_SET= | |
19028 | ||
19029 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19030 | |
19031 | for ac_header in w32api.h | |
21d1c967 | 19032 | do |
e6cc62c6 VS |
19033 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19035 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19036 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19039 | fi | |
19040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19041 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19042 | else | |
19043 | # Is the header compilable? | |
19044 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19045 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19046 | cat >conftest.$ac_ext <<_ACEOF | |
19047 | #line $LINENO "configure" | |
19048 | /* confdefs.h. */ | |
19049 | _ACEOF | |
19050 | cat confdefs.h >>conftest.$ac_ext | |
19051 | cat >>conftest.$ac_ext <<_ACEOF | |
19052 | /* end confdefs.h. */ | |
19053 | $ac_includes_default | |
19054 | #include <$ac_header> | |
19055 | _ACEOF | |
19056 | rm -f conftest.$ac_objext | |
19057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19058 | (eval $ac_compile) 2>&5 | |
19059 | ac_status=$? | |
19060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19061 | (exit $ac_status); } && | |
19062 | { ac_try='test -s conftest.$ac_objext' | |
19063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19064 | (eval $ac_try) 2>&5 | |
19065 | ac_status=$? | |
19066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19067 | (exit $ac_status); }; }; then | |
19068 | ac_header_compiler=yes | |
19069 | else | |
19070 | echo "$as_me: failed program was:" >&5 | |
19071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19072 | ||
19073 | ac_header_compiler=no | |
19074 | fi | |
19075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19076 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19077 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19078 | ||
19079 | # Is the header present? | |
19080 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19082 | cat >conftest.$ac_ext <<_ACEOF | |
19083 | #line $LINENO "configure" | |
19084 | /* confdefs.h. */ | |
19085 | _ACEOF | |
19086 | cat confdefs.h >>conftest.$ac_ext | |
19087 | cat >>conftest.$ac_ext <<_ACEOF | |
19088 | /* end confdefs.h. */ | |
19089 | #include <$ac_header> | |
19090 | _ACEOF | |
19091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19093 | ac_status=$? | |
19094 | grep -v '^ *+' conftest.er1 >conftest.err | |
19095 | rm -f conftest.er1 | |
19096 | cat conftest.err >&5 | |
19097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19098 | (exit $ac_status); } >/dev/null; then | |
19099 | if test -s conftest.err; then | |
19100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19101 | else | |
19102 | ac_cpp_err= | |
19103 | fi | |
19104 | else | |
19105 | ac_cpp_err=yes | |
19106 | fi | |
19107 | if test -z "$ac_cpp_err"; then | |
19108 | ac_header_preproc=yes | |
19109 | else | |
19110 | echo "$as_me: failed program was:" >&5 | |
19111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19112 | ||
19113 | ac_header_preproc=no | |
19114 | fi | |
19115 | rm -f conftest.err conftest.$ac_ext | |
19116 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19117 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19118 | ||
19119 | # So? What about this header? | |
19120 | case $ac_header_compiler:$ac_header_preproc in | |
19121 | yes:no ) | |
19122 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19123 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19124 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19125 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19126 | ( | |
19127 | cat <<\_ASBOX | |
19128 | ## ------------------------------------ ## | |
19129 | ## Report this to bug-autoconf@gnu.org. ## | |
19130 | ## ------------------------------------ ## | |
19131 | _ASBOX | |
19132 | ) | | |
19133 | sed "s/^/$as_me: WARNING: /" >&2 | |
19134 | ;; | |
19135 | no:yes ) | |
19136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19141 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19142 | ( | |
19143 | cat <<\_ASBOX | |
19144 | ## ------------------------------------ ## | |
19145 | ## Report this to bug-autoconf@gnu.org. ## | |
19146 | ## ------------------------------------ ## | |
19147 | _ASBOX | |
19148 | ) | | |
19149 | sed "s/^/$as_me: WARNING: /" >&2 | |
19150 | ;; | |
19151 | esac | |
19152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19156 | else | |
19157 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19158 | fi |
e6cc62c6 VS |
19159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19161 | ||
21d1c967 | 19162 | fi |
e6cc62c6 VS |
19163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19164 | cat >>confdefs.h <<_ACEOF | |
19165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19166 | _ACEOF | |
19167 | ||
21d1c967 | 19168 | fi |
e6cc62c6 | 19169 | |
21d1c967 | 19170 | done |
f79bd02d | 19171 | |
e6cc62c6 VS |
19172 | if test "${ac_cv_header_windows_h+set}" = set; then |
19173 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19174 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19175 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19177 | fi | |
19178 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19179 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19180 | else | |
19181 | # Is the header compilable? | |
19182 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19183 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19184 | cat >conftest.$ac_ext <<_ACEOF | |
19185 | #line $LINENO "configure" | |
19186 | /* confdefs.h. */ | |
19187 | _ACEOF | |
19188 | cat confdefs.h >>conftest.$ac_ext | |
19189 | cat >>conftest.$ac_ext <<_ACEOF | |
19190 | /* end confdefs.h. */ | |
19191 | $ac_includes_default | |
247f5006 | 19192 | #include <windows.h> |
e6cc62c6 VS |
19193 | _ACEOF |
19194 | rm -f conftest.$ac_objext | |
19195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19196 | (eval $ac_compile) 2>&5 | |
19197 | ac_status=$? | |
19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19199 | (exit $ac_status); } && | |
19200 | { ac_try='test -s conftest.$ac_objext' | |
19201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19202 | (eval $ac_try) 2>&5 | |
19203 | ac_status=$? | |
19204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19205 | (exit $ac_status); }; }; then | |
19206 | ac_header_compiler=yes | |
19207 | else | |
19208 | echo "$as_me: failed program was:" >&5 | |
19209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19210 | ||
19211 | ac_header_compiler=no | |
19212 | fi | |
19213 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19214 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19215 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19216 | ||
19217 | # Is the header present? | |
19218 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19219 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19220 | cat >conftest.$ac_ext <<_ACEOF | |
19221 | #line $LINENO "configure" | |
19222 | /* confdefs.h. */ | |
19223 | _ACEOF | |
19224 | cat confdefs.h >>conftest.$ac_ext | |
19225 | cat >>conftest.$ac_ext <<_ACEOF | |
19226 | /* end confdefs.h. */ | |
19227 | #include <windows.h> | |
19228 | _ACEOF | |
19229 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19230 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19231 | ac_status=$? | |
19232 | grep -v '^ *+' conftest.er1 >conftest.err | |
19233 | rm -f conftest.er1 | |
19234 | cat conftest.err >&5 | |
19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19236 | (exit $ac_status); } >/dev/null; then | |
19237 | if test -s conftest.err; then | |
19238 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19239 | else | |
19240 | ac_cpp_err= | |
19241 | fi | |
19242 | else | |
19243 | ac_cpp_err=yes | |
19244 | fi | |
19245 | if test -z "$ac_cpp_err"; then | |
19246 | ac_header_preproc=yes | |
19247 | else | |
19248 | echo "$as_me: failed program was:" >&5 | |
19249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19250 | ||
19251 | ac_header_preproc=no | |
19252 | fi | |
19253 | rm -f conftest.err conftest.$ac_ext | |
19254 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19255 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19256 | ||
19257 | # So? What about this header? | |
19258 | case $ac_header_compiler:$ac_header_preproc in | |
19259 | yes:no ) | |
19260 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19261 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19262 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19263 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19264 | ( | |
19265 | cat <<\_ASBOX | |
19266 | ## ------------------------------------ ## | |
19267 | ## Report this to bug-autoconf@gnu.org. ## | |
19268 | ## ------------------------------------ ## | |
19269 | _ASBOX | |
19270 | ) | | |
19271 | sed "s/^/$as_me: WARNING: /" >&2 | |
19272 | ;; | |
19273 | no:yes ) | |
19274 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19275 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19276 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19277 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19278 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19279 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19280 | ( | |
19281 | cat <<\_ASBOX | |
19282 | ## ------------------------------------ ## | |
19283 | ## Report this to bug-autoconf@gnu.org. ## | |
19284 | ## ------------------------------------ ## | |
19285 | _ASBOX | |
19286 | ) | | |
19287 | sed "s/^/$as_me: WARNING: /" >&2 | |
19288 | ;; | |
19289 | esac | |
19290 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19291 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19292 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19294 | else | |
19295 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19296 | fi |
e6cc62c6 VS |
19297 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19298 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19299 | ||
90dd450c | 19300 | fi |
e6cc62c6 | 19301 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19302 | : |
90dd450c | 19303 | else |
21d1c967 | 19304 | |
e6cc62c6 VS |
19305 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19306 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19307 | { (exit 1); exit 1; }; } | |
19308 | ||
5c6fa7d2 | 19309 | fi |
7b4a847f | 19310 | |
5c6fa7d2 | 19311 | |
e6cc62c6 VS |
19312 | |
19313 | echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5 | |
19314 | echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6 | |
19315 | if test "${wx_cv_w32api_win32_ie+set}" = set; then | |
19316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 19317 | else |
e6cc62c6 VS |
19318 | |
19319 | cat >conftest.$ac_ext <<_ACEOF | |
19320 | #line $LINENO "configure" | |
19321 | /* confdefs.h. */ | |
19322 | _ACEOF | |
19323 | cat confdefs.h >>conftest.$ac_ext | |
19324 | cat >>conftest.$ac_ext <<_ACEOF | |
19325 | /* end confdefs.h. */ | |
21d1c967 | 19326 | #include <w32api.h> |
e6cc62c6 VS |
19327 | int |
19328 | main () | |
19329 | { | |
f79bd02d | 19330 | |
21d1c967 GD |
19331 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
19332 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
19333 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
19334 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
19335 | ||
19336 | #if !wxCHECK_W32API_VERSION(1,1) | |
19337 | #error You need w32api 1.1 or newer | |
19338 | #endif | |
e6cc62c6 VS |
19339 | |
19340 | ; | |
19341 | return 0; | |
19342 | } | |
19343 | _ACEOF | |
19344 | rm -f conftest.$ac_objext | |
19345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19346 | (eval $ac_compile) 2>&5 | |
19347 | ac_status=$? | |
19348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19349 | (exit $ac_status); } && | |
19350 | { ac_try='test -s conftest.$ac_objext' | |
19351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19352 | (eval $ac_try) 2>&5 | |
19353 | ac_status=$? | |
19354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19355 | (exit $ac_status); }; }; then | |
19356 | ||
21d1c967 | 19357 | wx_cv_w32api_win32_ie=yes |
e6cc62c6 | 19358 | |
f79bd02d | 19359 | else |
e6cc62c6 VS |
19360 | echo "$as_me: failed program was:" >&5 |
19361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19362 | ||
19363 | ||
21d1c967 | 19364 | wx_cv_w32api_win32_ie=no |
e6cc62c6 | 19365 | |
247f5006 | 19366 | fi |
e6cc62c6 | 19367 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 19368 | |
e6cc62c6 VS |
19369 | fi |
19370 | echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5 | |
19371 | echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 | |
21d1c967 GD |
19372 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
19373 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
19374 | fi | |
f79bd02d | 19375 | |
b3dfbbc9 | 19376 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19377 | |
7bb2947d MB |
19378 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19379 | LIBS="$LIBS -loleacc" | |
19380 | fi | |
19381 | ||
21d1c967 GD |
19382 | case "${host}" in |
19383 | *-*-cygwin* ) | |
b3dfbbc9 | 19384 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19385 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19386 | esac |
f79bd02d | 19387 | |
8647bec6 RG |
19388 | if test "$wxUSE_ODBC" = "sys" ; then |
19389 | wxUSE_ODBC = "yes" | |
21d1c967 | 19390 | fi |
8647bec6 RG |
19391 | if test "$wxUSE_ODBC" = "yes" ; then |
19392 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19393 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19394 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19395 | _ACEOF |
f79bd02d | 19396 | |
8647bec6 | 19397 | fi |
e6cc62c6 | 19398 | |
21d1c967 GD |
19399 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19400 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19401 | |
19402 | WIN32INSTALL=win32install | |
f79bd02d | 19403 | fi |
f79bd02d | 19404 | |
b2fee376 | 19405 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 19406 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
19407 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
19408 | else | |
19409 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
19410 | fi | |
19411 | fi | |
19412 | ||
21d1c967 GD |
19413 | if test "$wxUSE_GUI" = "yes"; then |
19414 | USE_GUI=1 | |
f79bd02d | 19415 | |
21d1c967 | 19416 | GUI_TK_LIBRARY= |
f79bd02d | 19417 | |
21d1c967 GD |
19418 | WXGTK12= |
19419 | WXGTK127= | |
19420 | WXGTK20= | |
f79bd02d | 19421 | |
21d1c967 GD |
19422 | if test "$wxUSE_MSW" = 1 ; then |
19423 | TOOLKIT=MSW | |
19424 | GUIDIST=MSW_DIST | |
f79bd02d JS |
19425 | fi |
19426 | ||
21d1c967 | 19427 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19428 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19429 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19430 | |
19431 | gtk_version_cached=1 | |
e6cc62c6 VS |
19432 | if test "${wx_cv_lib_gtk+set}" = set; then |
19433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19434 | else |
e6cc62c6 | 19435 | |
21d1c967 | 19436 | gtk_version_cached=0 |
e6cc62c6 VS |
19437 | echo "$as_me:$LINENO: result: " >&5 |
19438 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19439 | |
21d1c967 GD |
19440 | GTK_MODULES= |
19441 | if test "$wxUSE_THREADS" = "yes"; then | |
19442 | GTK_MODULES=gthread | |
19443 | fi | |
f79bd02d | 19444 | |
2b5f62a0 | 19445 | wx_cv_lib_gtk= |
21d1c967 GD |
19446 | if test "x$wxUSE_GTK2" = "xyes"; then |
19447 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19448 | if test "${enable_gtktest+set}" = set; then | |
19449 | enableval="$enable_gtktest" | |
e6cc62c6 | 19450 | |
f79bd02d | 19451 | else |
21d1c967 | 19452 | enable_gtktest=yes |
e6cc62c6 | 19453 | fi; |
f79bd02d | 19454 | |
21d1c967 GD |
19455 | pkg_config_args=gtk+-2.0 |
19456 | for module in . $GTK_MODULES | |
19457 | do | |
19458 | case "$module" in | |
e6cc62c6 | 19459 | gthread) |
21d1c967 GD |
19460 | pkg_config_args="$pkg_config_args gthread-2.0" |
19461 | ;; | |
19462 | esac | |
19463 | done | |
19464 | ||
19465 | no_gtk="" | |
f79bd02d | 19466 | |
21d1c967 GD |
19467 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19468 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19469 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19471 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19473 | else |
e6cc62c6 VS |
19474 | case $PKG_CONFIG in |
19475 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19476 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19477 | ;; | |
21d1c967 | 19478 | *) |
e6cc62c6 VS |
19479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19480 | for as_dir in $PATH | |
19481 | do | |
19482 | IFS=$as_save_IFS | |
19483 | test -z "$as_dir" && as_dir=. | |
19484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19486 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19488 | break 2 | |
19489 | fi | |
19490 | done | |
19491 | done | |
19492 | ||
21d1c967 GD |
19493 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19494 | ;; | |
19495 | esac | |
f79bd02d | 19496 | fi |
e6cc62c6 VS |
19497 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19498 | ||
21d1c967 | 19499 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19500 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19501 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19502 | else |
e6cc62c6 VS |
19503 | echo "$as_me:$LINENO: result: no" >&5 |
19504 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19505 | fi |
19506 | ||
8284b0c5 | 19507 | |
21d1c967 GD |
19508 | if test x$PKG_CONFIG != xno ; then |
19509 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19510 | : | |
19511 | else | |
19512 | echo *** pkg-config too old; version 0.7 or better required. | |
19513 | no_gtk=yes | |
19514 | PKG_CONFIG=no | |
19515 | fi | |
19516 | else | |
19517 | no_gtk=yes | |
19518 | fi | |
f79bd02d | 19519 | |
21d1c967 | 19520 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
19521 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
19522 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 19523 | |
21d1c967 GD |
19524 | if test x$PKG_CONFIG != xno ; then |
19525 | ## don't try to run the test against uninstalled libtool libs | |
19526 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19527 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19528 | enable_gtktest=no | |
19529 | fi | |
f79bd02d | 19530 | |
21d1c967 GD |
19531 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
19532 | : | |
19533 | else | |
19534 | no_gtk=yes | |
19535 | fi | |
19536 | fi | |
f79bd02d | 19537 | |
21d1c967 GD |
19538 | if test x"$no_gtk" = x ; then |
19539 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19540 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19541 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19542 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19543 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19544 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19545 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19546 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19547 | if test "x$enable_gtktest" = "xyes" ; then | |
19548 | ac_save_CFLAGS="$CFLAGS" | |
19549 | ac_save_LIBS="$LIBS" | |
19550 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19551 | LIBS="$GTK_LIBS $LIBS" | |
19552 | rm -f conf.gtktest | |
19553 | if test "$cross_compiling" = yes; then | |
19554 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19555 | else |
e6cc62c6 VS |
19556 | cat >conftest.$ac_ext <<_ACEOF |
19557 | #line $LINENO "configure" | |
19558 | /* confdefs.h. */ | |
19559 | _ACEOF | |
19560 | cat confdefs.h >>conftest.$ac_ext | |
19561 | cat >>conftest.$ac_ext <<_ACEOF | |
19562 | /* end confdefs.h. */ | |
f79bd02d | 19563 | |
21d1c967 GD |
19564 | #include <gtk/gtk.h> |
19565 | #include <stdio.h> | |
19566 | #include <stdlib.h> | |
f79bd02d | 19567 | |
e6cc62c6 | 19568 | int |
21d1c967 GD |
19569 | main () |
19570 | { | |
19571 | int major, minor, micro; | |
19572 | char *tmp_version; | |
f79bd02d | 19573 | |
21d1c967 | 19574 | system ("touch conf.gtktest"); |
f79bd02d | 19575 | |
21d1c967 GD |
19576 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19577 | tmp_version = g_strdup("$min_gtk_version"); | |
19578 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19579 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19580 | exit(1); | |
19581 | } | |
f79bd02d | 19582 | |
21d1c967 GD |
19583 | if ((gtk_major_version != $gtk_config_major_version) || |
19584 | (gtk_minor_version != $gtk_config_minor_version) || | |
19585 | (gtk_micro_version != $gtk_config_micro_version)) | |
19586 | { | |
e6cc62c6 | 19587 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19588 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19589 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19590 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19591 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19592 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19593 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19594 | printf("*** required on your system.\n"); | |
19595 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19596 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 19597 | } |
21d1c967 GD |
19598 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
19599 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19600 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19601 | { | |
19602 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19603 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19604 | printf("*** library (version %d.%d.%d)\n", | |
19605 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19606 | } | |
19607 | else | |
19608 | { | |
19609 | if ((gtk_major_version > major) || | |
19610 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19611 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19612 | { | |
19613 | return 0; | |
19614 | } | |
19615 | else | |
19616 | { | |
19617 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19618 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19619 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19620 | major, minor, micro); | |
19621 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19622 | printf("***\n"); | |
19623 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19624 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19625 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19626 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19627 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19628 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19629 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19630 | } | |
19631 | } | |
19632 | return 1; | |
19633 | } | |
f79bd02d | 19634 | |
e6cc62c6 VS |
19635 | _ACEOF |
19636 | rm -f conftest$ac_exeext | |
19637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19638 | (eval $ac_link) 2>&5 | |
19639 | ac_status=$? | |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19643 | (eval $ac_try) 2>&5 | |
19644 | ac_status=$? | |
19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19646 | (exit $ac_status); }; }; then | |
21d1c967 | 19647 | : |
f79bd02d | 19648 | else |
e6cc62c6 VS |
19649 | echo "$as_me: program exited with status $ac_status" >&5 |
19650 | echo "$as_me: failed program was:" >&5 | |
19651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19652 | ||
19653 | ( exit $ac_status ) | |
19654 | no_gtk=yes | |
f79bd02d | 19655 | fi |
e6cc62c6 | 19656 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 19657 | fi |
21d1c967 GD |
19658 | CFLAGS="$ac_save_CFLAGS" |
19659 | LIBS="$ac_save_LIBS" | |
19660 | fi | |
19661 | fi | |
19662 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19663 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
19664 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
19665 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 19666 | else |
e6cc62c6 VS |
19667 | echo "$as_me:$LINENO: result: no" >&5 |
19668 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19669 | if test "$PKG_CONFIG" = "no" ; then |
19670 | echo "*** A new enough version of pkg-config was not found." | |
19671 | echo "*** See http://pkgconfig.sourceforge.net" | |
19672 | else | |
19673 | if test -f conf.gtktest ; then | |
19674 | : | |
19675 | else | |
19676 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
19677 | ac_save_CFLAGS="$CFLAGS" |
19678 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
19679 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
19680 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19681 | cat >conftest.$ac_ext <<_ACEOF |
19682 | #line $LINENO "configure" | |
19683 | /* confdefs.h. */ | |
19684 | _ACEOF | |
19685 | cat confdefs.h >>conftest.$ac_ext | |
19686 | cat >>conftest.$ac_ext <<_ACEOF | |
19687 | /* end confdefs.h. */ | |
21d1c967 GD |
19688 | |
19689 | #include <gtk/gtk.h> | |
19690 | #include <stdio.h> | |
f79bd02d | 19691 | |
e6cc62c6 VS |
19692 | int |
19693 | main () | |
19694 | { | |
19695 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19696 | ; | |
19697 | return 0; | |
19698 | } | |
19699 | _ACEOF | |
19700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19702 | (eval $ac_link) 2>&5 | |
19703 | ac_status=$? | |
19704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19705 | (exit $ac_status); } && | |
19706 | { ac_try='test -s conftest$ac_exeext' | |
19707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19708 | (eval $ac_try) 2>&5 | |
19709 | ac_status=$? | |
19710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19711 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19712 | echo "*** The test program compiled, but did not run. This usually means" |
19713 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
19714 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
19715 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19716 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19717 | echo "*** is required on your system" | |
19718 | echo "***" | |
19719 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 19720 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 19721 | else |
e6cc62c6 VS |
19722 | echo "$as_me: failed program was:" >&5 |
19723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19724 | ||
19725 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 19726 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 19727 | fi |
e6cc62c6 | 19728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
19729 | CFLAGS="$ac_save_CFLAGS" |
19730 | LIBS="$ac_save_LIBS" | |
19731 | fi | |
19732 | fi | |
19733 | GTK_CFLAGS="" | |
19734 | GTK_LIBS="" | |
19735 | : | |
19736 | fi | |
e6cc62c6 VS |
19737 | |
19738 | ||
21d1c967 | 19739 | rm -f conf.gtktest |
f79bd02d | 19740 | |
2b5f62a0 | 19741 | else |
e6cc62c6 VS |
19742 | |
19743 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
19744 | if test "${with_gtk_prefix+set}" = set; then |
19745 | withval="$with_gtk_prefix" | |
19746 | gtk_config_prefix="$withval" | |
19747 | else | |
19748 | gtk_config_prefix="" | |
e6cc62c6 | 19749 | fi; |
f79bd02d | 19750 | |
21d1c967 GD |
19751 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
19752 | if test "${with_gtk_exec_prefix+set}" = set; then | |
19753 | withval="$with_gtk_exec_prefix" | |
19754 | gtk_config_exec_prefix="$withval" | |
19755 | else | |
19756 | gtk_config_exec_prefix="" | |
e6cc62c6 | 19757 | fi; |
21d1c967 GD |
19758 | # Check whether --enable-gtktest or --disable-gtktest was given. |
19759 | if test "${enable_gtktest+set}" = set; then | |
19760 | enableval="$enable_gtktest" | |
e6cc62c6 | 19761 | |
21d1c967 GD |
19762 | else |
19763 | enable_gtktest=yes | |
e6cc62c6 | 19764 | fi; |
21d1c967 GD |
19765 | |
19766 | for module in . $GTK_MODULES | |
19767 | do | |
19768 | case "$module" in | |
e6cc62c6 | 19769 | gthread) |
21d1c967 GD |
19770 | gtk_config_args="$gtk_config_args gthread" |
19771 | ;; | |
19772 | esac | |
19773 | done | |
19774 | ||
19775 | if test x$gtk_config_exec_prefix != x ; then | |
19776 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
19777 | if test x${GTK_CONFIG+set} != xset ; then | |
19778 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
19779 | fi | |
19780 | fi | |
19781 | if test x$gtk_config_prefix != x ; then | |
19782 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
19783 | if test x${GTK_CONFIG+set} != xset ; then | |
19784 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
19785 | fi | |
19786 | fi | |
19787 | ||
19788 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
19789 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
19790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19792 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
19793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19794 | else |
e6cc62c6 VS |
19795 | case $GTK_CONFIG in |
19796 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19797 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
19798 | ;; | |
21d1c967 | 19799 | *) |
e6cc62c6 VS |
19800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19801 | for as_dir in $PATH | |
19802 | do | |
19803 | IFS=$as_save_IFS | |
19804 | test -z "$as_dir" && as_dir=. | |
19805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19807 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19809 | break 2 | |
19810 | fi | |
19811 | done | |
19812 | done | |
19813 | ||
21d1c967 GD |
19814 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
19815 | ;; | |
19816 | esac | |
19817 | fi | |
e6cc62c6 VS |
19818 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
19819 | ||
21d1c967 | 19820 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
19821 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
19822 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 19823 | else |
e6cc62c6 VS |
19824 | echo "$as_me:$LINENO: result: no" >&5 |
19825 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19826 | fi |
19827 | ||
19828 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
19829 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
19830 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
19831 | no_gtk="" |
19832 | if test "$GTK_CONFIG" = "no" ; then | |
19833 | no_gtk=yes | |
19834 | else | |
19835 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
19836 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
19837 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19838 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19839 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19840 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19841 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19842 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19843 | if test "x$enable_gtktest" = "xyes" ; then | |
19844 | ac_save_CFLAGS="$CFLAGS" | |
19845 | ac_save_LIBS="$LIBS" | |
19846 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19847 | LIBS="$GTK_LIBS $LIBS" | |
19848 | rm -f conf.gtktest | |
19849 | if test "$cross_compiling" = yes; then | |
19850 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19851 | else |
e6cc62c6 VS |
19852 | cat >conftest.$ac_ext <<_ACEOF |
19853 | #line $LINENO "configure" | |
19854 | /* confdefs.h. */ | |
19855 | _ACEOF | |
19856 | cat confdefs.h >>conftest.$ac_ext | |
19857 | cat >>conftest.$ac_ext <<_ACEOF | |
19858 | /* end confdefs.h. */ | |
f79bd02d | 19859 | |
21d1c967 GD |
19860 | #include <gtk/gtk.h> |
19861 | #include <stdio.h> | |
19862 | #include <stdlib.h> | |
f79bd02d | 19863 | |
e6cc62c6 | 19864 | int |
21d1c967 GD |
19865 | main () |
19866 | { | |
19867 | int major, minor, micro; | |
19868 | char *tmp_version; | |
19869 | ||
19870 | system ("touch conf.gtktest"); | |
19871 | ||
19872 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
19873 | tmp_version = g_strdup("$min_gtk_version"); | |
19874 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19875 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19876 | exit(1); | |
19877 | } | |
90dd450c | 19878 | |
21d1c967 GD |
19879 | if ((gtk_major_version != $gtk_config_major_version) || |
19880 | (gtk_minor_version != $gtk_config_minor_version) || | |
19881 | (gtk_micro_version != $gtk_config_micro_version)) | |
19882 | { | |
e6cc62c6 | 19883 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19884 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19885 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19886 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
19887 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19888 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19889 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19890 | printf("*** required on your system.\n"); | |
19891 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
19892 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
19893 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 19894 | } |
21d1c967 GD |
19895 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
19896 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
19897 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19898 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19899 | { | |
19900 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19901 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19902 | printf("*** library (version %d.%d.%d)\n", | |
19903 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19904 | } | |
19905 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
19906 | else | |
19907 | { | |
19908 | if ((gtk_major_version > major) || | |
19909 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19910 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19911 | { | |
19912 | return 0; | |
19913 | } | |
19914 | else | |
19915 | { | |
19916 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19917 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19918 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19919 | major, minor, micro); | |
19920 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19921 | printf("***\n"); | |
19922 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19923 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
19924 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19925 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
19926 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
19927 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19928 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19929 | } | |
19930 | } | |
19931 | return 1; | |
19932 | } | |
19933 | ||
e6cc62c6 VS |
19934 | _ACEOF |
19935 | rm -f conftest$ac_exeext | |
19936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19937 | (eval $ac_link) 2>&5 | |
19938 | ac_status=$? | |
19939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19942 | (eval $ac_try) 2>&5 | |
19943 | ac_status=$? | |
19944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19945 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19946 | : |
19947 | else | |
e6cc62c6 VS |
19948 | echo "$as_me: program exited with status $ac_status" >&5 |
19949 | echo "$as_me: failed program was:" >&5 | |
19950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19951 | ||
19952 | ( exit $ac_status ) | |
19953 | no_gtk=yes | |
21d1c967 | 19954 | fi |
e6cc62c6 | 19955 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 19956 | fi |
21d1c967 GD |
19957 | CFLAGS="$ac_save_CFLAGS" |
19958 | LIBS="$ac_save_LIBS" | |
19959 | fi | |
19960 | fi | |
19961 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19962 | echo "$as_me:$LINENO: result: yes" >&5 |
19963 | echo "${ECHO_T}yes" >&6 | |
19964 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 19965 | else |
e6cc62c6 VS |
19966 | echo "$as_me:$LINENO: result: no" >&5 |
19967 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19968 | if test "$GTK_CONFIG" = "no" ; then |
19969 | echo "*** The gtk-config script installed by GTK could not be found" | |
19970 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
19971 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
19972 | echo "*** full path to gtk-config." | |
19973 | else | |
19974 | if test -f conf.gtktest ; then | |
19975 | : | |
19976 | else | |
19977 | echo "*** Could not run GTK test program, checking why..." | |
19978 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19979 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19980 | cat >conftest.$ac_ext <<_ACEOF |
19981 | #line $LINENO "configure" | |
19982 | /* confdefs.h. */ | |
19983 | _ACEOF | |
19984 | cat confdefs.h >>conftest.$ac_ext | |
19985 | cat >>conftest.$ac_ext <<_ACEOF | |
19986 | /* end confdefs.h. */ | |
21d1c967 GD |
19987 | |
19988 | #include <gtk/gtk.h> | |
19989 | #include <stdio.h> | |
19990 | ||
e6cc62c6 VS |
19991 | int |
19992 | main () | |
19993 | { | |
19994 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19995 | ; | |
19996 | return 0; | |
19997 | } | |
19998 | _ACEOF | |
19999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20001 | (eval $ac_link) 2>&5 | |
20002 | ac_status=$? | |
20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20004 | (exit $ac_status); } && | |
20005 | { ac_try='test -s conftest$ac_exeext' | |
20006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20007 | (eval $ac_try) 2>&5 | |
20008 | ac_status=$? | |
20009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20010 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20011 | echo "*** The test program compiled, but did not run. This usually means" |
20012 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20013 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20014 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20015 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20016 | echo "*** is required on your system" | |
20017 | echo "***" | |
20018 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20019 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20020 | echo "***" | |
20021 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20022 | echo "*** came with the system with the command" | |
20023 | echo "***" | |
e6cc62c6 | 20024 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20025 | else |
e6cc62c6 VS |
20026 | echo "$as_me: failed program was:" >&5 |
20027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20028 | ||
20029 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20030 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20031 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20032 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20033 | fi |
e6cc62c6 | 20034 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20035 | CFLAGS="$ac_save_CFLAGS" |
20036 | LIBS="$ac_save_LIBS" | |
20037 | fi | |
20038 | fi | |
20039 | GTK_CFLAGS="" | |
20040 | GTK_LIBS="" | |
20041 | : | |
20042 | fi | |
e6cc62c6 VS |
20043 | |
20044 | ||
21d1c967 GD |
20045 | rm -f conf.gtktest |
20046 | ||
21d1c967 | 20047 | |
2b5f62a0 | 20048 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20049 | |
20050 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20051 | if test "${with_gtk_prefix+set}" = set; then |
20052 | withval="$with_gtk_prefix" | |
20053 | gtk_config_prefix="$withval" | |
20054 | else | |
20055 | gtk_config_prefix="" | |
e6cc62c6 | 20056 | fi; |
f79bd02d | 20057 | |
21d1c967 GD |
20058 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20059 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20060 | withval="$with_gtk_exec_prefix" | |
20061 | gtk_config_exec_prefix="$withval" | |
20062 | else | |
20063 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20064 | fi; |
21d1c967 GD |
20065 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20066 | if test "${enable_gtktest+set}" = set; then | |
20067 | enableval="$enable_gtktest" | |
e6cc62c6 | 20068 | |
90dd450c | 20069 | else |
21d1c967 | 20070 | enable_gtktest=yes |
e6cc62c6 | 20071 | fi; |
21d1c967 GD |
20072 | |
20073 | for module in . $GTK_MODULES | |
20074 | do | |
20075 | case "$module" in | |
e6cc62c6 | 20076 | gthread) |
21d1c967 GD |
20077 | gtk_config_args="$gtk_config_args gthread" |
20078 | ;; | |
20079 | esac | |
20080 | done | |
20081 | ||
20082 | if test x$gtk_config_exec_prefix != x ; then | |
20083 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20084 | if test x${GTK_CONFIG+set} != xset ; then | |
20085 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20086 | fi | |
20087 | fi | |
20088 | if test x$gtk_config_prefix != x ; then | |
20089 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20090 | if test x${GTK_CONFIG+set} != xset ; then | |
20091 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20092 | fi | |
20093 | fi | |
20094 | ||
20095 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20096 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20099 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20101 | else |
e6cc62c6 VS |
20102 | case $GTK_CONFIG in |
20103 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20104 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20105 | ;; | |
21d1c967 | 20106 | *) |
e6cc62c6 VS |
20107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20108 | for as_dir in $PATH | |
20109 | do | |
20110 | IFS=$as_save_IFS | |
20111 | test -z "$as_dir" && as_dir=. | |
20112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20114 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20116 | break 2 | |
20117 | fi | |
20118 | done | |
20119 | done | |
20120 | ||
21d1c967 GD |
20121 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20122 | ;; | |
20123 | esac | |
20124 | fi | |
e6cc62c6 VS |
20125 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20126 | ||
21d1c967 | 20127 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20128 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20129 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20130 | else |
e6cc62c6 VS |
20131 | echo "$as_me:$LINENO: result: no" >&5 |
20132 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20133 | fi |
20134 | ||
20135 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20136 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20137 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20138 | no_gtk="" |
20139 | if test "$GTK_CONFIG" = "no" ; then | |
20140 | no_gtk=yes | |
20141 | else | |
20142 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20143 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20144 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20145 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20146 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20147 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20148 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20149 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20150 | if test "x$enable_gtktest" = "xyes" ; then | |
20151 | ac_save_CFLAGS="$CFLAGS" | |
20152 | ac_save_LIBS="$LIBS" | |
20153 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20154 | LIBS="$GTK_LIBS $LIBS" | |
20155 | rm -f conf.gtktest | |
20156 | if test "$cross_compiling" = yes; then | |
20157 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20158 | else | |
e6cc62c6 VS |
20159 | cat >conftest.$ac_ext <<_ACEOF |
20160 | #line $LINENO "configure" | |
20161 | /* confdefs.h. */ | |
20162 | _ACEOF | |
20163 | cat confdefs.h >>conftest.$ac_ext | |
20164 | cat >>conftest.$ac_ext <<_ACEOF | |
20165 | /* end confdefs.h. */ | |
21d1c967 GD |
20166 | |
20167 | #include <gtk/gtk.h> | |
20168 | #include <stdio.h> | |
20169 | #include <stdlib.h> | |
20170 | ||
e6cc62c6 | 20171 | int |
21d1c967 GD |
20172 | main () |
20173 | { | |
20174 | int major, minor, micro; | |
20175 | char *tmp_version; | |
20176 | ||
20177 | system ("touch conf.gtktest"); | |
20178 | ||
20179 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20180 | tmp_version = g_strdup("$min_gtk_version"); | |
20181 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20182 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20183 | exit(1); | |
20184 | } | |
20185 | ||
20186 | if ((gtk_major_version != $gtk_config_major_version) || | |
20187 | (gtk_minor_version != $gtk_config_minor_version) || | |
20188 | (gtk_micro_version != $gtk_config_micro_version)) | |
20189 | { | |
e6cc62c6 | 20190 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20191 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20192 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20193 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20194 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20195 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20196 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20197 | printf("*** required on your system.\n"); | |
20198 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20199 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20200 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20201 | } |
21d1c967 GD |
20202 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20203 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20204 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20205 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20206 | { | |
20207 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20208 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20209 | printf("*** library (version %d.%d.%d)\n", | |
20210 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20211 | } | |
20212 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20213 | else | |
20214 | { | |
20215 | if ((gtk_major_version > major) || | |
20216 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20217 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20218 | { | |
20219 | return 0; | |
20220 | } | |
20221 | else | |
20222 | { | |
20223 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20224 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20225 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20226 | major, minor, micro); | |
20227 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20228 | printf("***\n"); | |
20229 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20230 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20231 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20232 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20233 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20234 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20235 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20236 | } | |
20237 | } | |
20238 | return 1; | |
20239 | } | |
20240 | ||
e6cc62c6 VS |
20241 | _ACEOF |
20242 | rm -f conftest$ac_exeext | |
20243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20244 | (eval $ac_link) 2>&5 | |
20245 | ac_status=$? | |
20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20249 | (eval $ac_try) 2>&5 | |
20250 | ac_status=$? | |
20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20252 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20253 | : |
20254 | else | |
e6cc62c6 VS |
20255 | echo "$as_me: program exited with status $ac_status" >&5 |
20256 | echo "$as_me: failed program was:" >&5 | |
20257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20258 | ||
20259 | ( exit $ac_status ) | |
20260 | no_gtk=yes | |
21d1c967 | 20261 | fi |
e6cc62c6 | 20262 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20263 | fi |
21d1c967 GD |
20264 | CFLAGS="$ac_save_CFLAGS" |
20265 | LIBS="$ac_save_LIBS" | |
20266 | fi | |
20267 | fi | |
20268 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20269 | echo "$as_me:$LINENO: result: yes" >&5 |
20270 | echo "${ECHO_T}yes" >&6 | |
20271 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20272 | else |
e6cc62c6 VS |
20273 | echo "$as_me:$LINENO: result: no" >&5 |
20274 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20275 | if test "$GTK_CONFIG" = "no" ; then |
20276 | echo "*** The gtk-config script installed by GTK could not be found" | |
20277 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20278 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20279 | echo "*** full path to gtk-config." | |
20280 | else | |
20281 | if test -f conf.gtktest ; then | |
20282 | : | |
20283 | else | |
20284 | echo "*** Could not run GTK test program, checking why..." | |
20285 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20286 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20287 | cat >conftest.$ac_ext <<_ACEOF |
20288 | #line $LINENO "configure" | |
20289 | /* confdefs.h. */ | |
20290 | _ACEOF | |
20291 | cat confdefs.h >>conftest.$ac_ext | |
20292 | cat >>conftest.$ac_ext <<_ACEOF | |
20293 | /* end confdefs.h. */ | |
21d1c967 GD |
20294 | |
20295 | #include <gtk/gtk.h> | |
20296 | #include <stdio.h> | |
f79bd02d | 20297 | |
e6cc62c6 VS |
20298 | int |
20299 | main () | |
20300 | { | |
20301 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20302 | ; | |
20303 | return 0; | |
20304 | } | |
20305 | _ACEOF | |
20306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20308 | (eval $ac_link) 2>&5 | |
20309 | ac_status=$? | |
20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20311 | (exit $ac_status); } && | |
20312 | { ac_try='test -s conftest$ac_exeext' | |
20313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20314 | (eval $ac_try) 2>&5 | |
20315 | ac_status=$? | |
20316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20317 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20318 | echo "*** The test program compiled, but did not run. This usually means" |
20319 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20320 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20321 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20322 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20323 | echo "*** is required on your system" | |
20324 | echo "***" | |
20325 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20326 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20327 | echo "***" | |
20328 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20329 | echo "*** came with the system with the command" | |
20330 | echo "***" | |
e6cc62c6 | 20331 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20332 | else |
e6cc62c6 VS |
20333 | echo "$as_me: failed program was:" >&5 |
20334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20335 | ||
20336 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20337 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20338 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20339 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20340 | fi |
e6cc62c6 | 20341 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20342 | CFLAGS="$ac_save_CFLAGS" |
20343 | LIBS="$ac_save_LIBS" | |
20344 | fi | |
20345 | fi | |
20346 | GTK_CFLAGS="" | |
20347 | GTK_LIBS="" | |
20348 | : | |
20349 | fi | |
e6cc62c6 VS |
20350 | |
20351 | ||
21d1c967 | 20352 | rm -f conf.gtktest |
f79bd02d | 20353 | |
2b5f62a0 | 20354 | fi |
21d1c967 GD |
20355 | fi |
20356 | ||
20357 | if test -z "$wx_cv_lib_gtk"; then | |
20358 | wx_cv_lib_gtk=none | |
20359 | else | |
20360 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20361 | wx_cv_libs_gtk=$GTK_LIBS | |
20362 | fi | |
e6cc62c6 VS |
20363 | |
20364 | ||
5c6fa7d2 | 20365 | fi |
52127426 | 20366 | |
8284b0c5 | 20367 | |
21d1c967 | 20368 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20369 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20370 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20371 | fi |
20372 | ||
20373 | case "$wx_cv_lib_gtk" in | |
20374 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20375 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20376 | ;; |
20377 | 1.2.7) WXGTK127=1 | |
20378 | WXGTK12=1 | |
20379 | ;; | |
20380 | 1.2.3) WXGTK12=1 | |
20381 | ;; | |
e6cc62c6 VS |
20382 | *) { { echo "$as_me:$LINENO: error: |
20383 | Please check that gtk-config is in path, the directory | |
20384 | where GTK+ libraries are installed (returned by | |
20385 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20386 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20387 | " >&5 | |
20388 | echo "$as_me: error: | |
247f5006 VZ |
20389 | Please check that gtk-config is in path, the directory |
20390 | where GTK+ libraries are installed (returned by | |
20391 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20392 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20393 | " >&2;} |
20394 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20395 | ;; |
20396 | esac | |
20397 | ||
b13cd66e VZ |
20398 | if test "$WXGTK20" = 1; then |
20399 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20400 | |
f09359cf VS |
20401 | succeeded=no |
20402 | ||
20403 | if test -z "$PKG_CONFIG"; then | |
20404 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20405 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20408 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20410 | else |
e6cc62c6 VS |
20411 | case $PKG_CONFIG in |
20412 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20413 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20414 | ;; | |
f09359cf | 20415 | *) |
e6cc62c6 VS |
20416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20417 | for as_dir in $PATH | |
20418 | do | |
20419 | IFS=$as_save_IFS | |
20420 | test -z "$as_dir" && as_dir=. | |
20421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20423 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20425 | break 2 | |
20426 | fi | |
20427 | done | |
20428 | done | |
20429 | ||
f09359cf VS |
20430 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20431 | ;; | |
20432 | esac | |
20433 | fi | |
e6cc62c6 VS |
20434 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20435 | ||
f09359cf | 20436 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20437 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20438 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20439 | else |
e6cc62c6 VS |
20440 | echo "$as_me:$LINENO: result: no" >&5 |
20441 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20442 | fi |
20443 | ||
20444 | fi | |
20445 | ||
20446 | if test "$PKG_CONFIG" = "no" ; then | |
20447 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20448 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20449 | echo "*** to the full path to pkg-config." | |
20450 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20451 | else | |
20452 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20453 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20454 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20455 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20456 | |
20457 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20458 | echo "$as_me:$LINENO: result: yes" >&5 |
20459 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20460 | succeeded=yes |
20461 | ||
e6cc62c6 VS |
20462 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20463 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20464 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20465 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20466 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20467 | |
e6cc62c6 VS |
20468 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20469 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20470 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20471 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20472 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20473 | else |
20474 | PANGOFT2_CFLAGS="" | |
20475 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20476 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20477 | ## do set a variable so people can do so. |
20478 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20479 | |
f09359cf VS |
20480 | fi |
20481 | ||
e6cc62c6 VS |
20482 | |
20483 | ||
f09359cf VS |
20484 | else |
20485 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20486 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20487 | fi | |
20488 | fi | |
20489 | ||
20490 | if test $succeeded = yes; then | |
e6cc62c6 | 20491 | |
b13cd66e | 20492 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20493 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20494 | |
f09359cf | 20495 | else |
e6cc62c6 VS |
20496 | |
20497 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20498 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20499 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20500 | |
20501 | ||
f09359cf VS |
20502 | fi |
20503 | ||
b13cd66e | 20504 | fi |
2b5f62a0 VZ |
20505 | else |
20506 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20507 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20508 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20509 | wxUSE_UNICODE=no |
20510 | fi | |
20511 | fi | |
20512 | ||
20513 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
20514 | |
20515 | for ac_func in poll | |
2b5f62a0 | 20516 | do |
e6cc62c6 VS |
20517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20518 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20520 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20522 | else | |
20523 | cat >conftest.$ac_ext <<_ACEOF | |
20524 | #line $LINENO "configure" | |
20525 | /* confdefs.h. */ | |
20526 | _ACEOF | |
20527 | cat confdefs.h >>conftest.$ac_ext | |
20528 | cat >>conftest.$ac_ext <<_ACEOF | |
20529 | /* end confdefs.h. */ | |
2b5f62a0 | 20530 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
20531 | which can conflict with char $ac_func (); below. |
20532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20533 | <limits.h> exists even on freestanding compilers. */ | |
20534 | #ifdef __STDC__ | |
20535 | # include <limits.h> | |
20536 | #else | |
20537 | # include <assert.h> | |
20538 | #endif | |
2b5f62a0 | 20539 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20540 | #ifdef __cplusplus |
20541 | extern "C" | |
20542 | { | |
20543 | #endif | |
2b5f62a0 | 20544 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20545 | builtin and then its argument prototype would still apply. */ |
20546 | char $ac_func (); | |
2b5f62a0 VZ |
20547 | /* The GNU C library defines this for functions which it implements |
20548 | to always fail with ENOSYS. Some functions are actually named | |
20549 | something starting with __ and the normal name is an alias. */ | |
20550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20551 | choke me | |
20552 | #else | |
e6cc62c6 VS |
20553 | char (*f) () = $ac_func; |
20554 | #endif | |
20555 | #ifdef __cplusplus | |
20556 | } | |
2b5f62a0 VZ |
20557 | #endif |
20558 | ||
e6cc62c6 VS |
20559 | int |
20560 | main () | |
20561 | { | |
20562 | return f != $ac_func; | |
20563 | ; | |
20564 | return 0; | |
20565 | } | |
20566 | _ACEOF | |
20567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20569 | (eval $ac_link) 2>&5 | |
20570 | ac_status=$? | |
20571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20572 | (exit $ac_status); } && | |
20573 | { ac_try='test -s conftest$ac_exeext' | |
20574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20575 | (eval $ac_try) 2>&5 | |
20576 | ac_status=$? | |
20577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20578 | (exit $ac_status); }; }; then | |
20579 | eval "$as_ac_var=yes" | |
20580 | else | |
20581 | echo "$as_me: failed program was:" >&5 | |
20582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20583 | ||
20584 | eval "$as_ac_var=no" | |
20585 | fi | |
20586 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20587 | fi | |
20588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20589 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20590 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20591 | cat >>confdefs.h <<_ACEOF | |
20592 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20593 | _ACEOF | |
2b5f62a0 | 20594 | |
2b5f62a0 VZ |
20595 | fi |
20596 | done | |
20597 | ||
f09359cf VS |
20598 | fi |
20599 | ||
21d1c967 | 20600 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 20601 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
20602 | |
20603 | AFMINSTALL=afminstall | |
20604 | TOOLKIT=GTK | |
20605 | GUIDIST=GTK_DIST | |
20606 | ||
e6cc62c6 VS |
20607 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
20608 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20609 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20611 | else |
e6cc62c6 | 20612 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20613 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
20614 | cat >conftest.$ac_ext <<_ACEOF |
20615 | #line $LINENO "configure" | |
20616 | /* confdefs.h. */ | |
20617 | _ACEOF | |
20618 | cat confdefs.h >>conftest.$ac_ext | |
20619 | cat >>conftest.$ac_ext <<_ACEOF | |
20620 | /* end confdefs.h. */ | |
20621 | ||
5c6fa7d2 | 20622 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20623 | #ifdef __cplusplus |
20624 | extern "C" | |
20625 | #endif | |
5c6fa7d2 | 20626 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20627 | builtin and then its argument prototype would still apply. */ |
20628 | char gdk_im_open (); | |
20629 | int | |
20630 | main () | |
20631 | { | |
20632 | gdk_im_open (); | |
20633 | ; | |
20634 | return 0; | |
20635 | } | |
20636 | _ACEOF | |
20637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20639 | (eval $ac_link) 2>&5 | |
20640 | ac_status=$? | |
20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20642 | (exit $ac_status); } && | |
20643 | { ac_try='test -s conftest$ac_exeext' | |
20644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20645 | (eval $ac_try) 2>&5 | |
20646 | ac_status=$? | |
20647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20648 | (exit $ac_status); }; }; then | |
20649 | ac_cv_lib_gdk_gdk_im_open=yes | |
20650 | else | |
20651 | echo "$as_me: failed program was:" >&5 | |
20652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20653 | ||
20654 | ac_cv_lib_gdk_gdk_im_open=no | |
20655 | fi | |
20656 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20657 | LIBS=$ac_check_lib_save_LIBS | |
20658 | fi | |
20659 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
20660 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
20661 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
20662 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20663 | #define HAVE_XIM 1 |
e6cc62c6 | 20664 | _ACEOF |
21d1c967 | 20665 | |
90dd450c | 20666 | fi |
1e6feb95 | 20667 | |
21d1c967 | 20668 | fi |
1e6feb95 | 20669 | |
21d1c967 | 20670 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
20671 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
20672 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 20673 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
20674 | echo "$as_me:$LINENO: result: not found" >&5 |
20675 | echo "${ECHO_T}not found" >&6 | |
20676 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
20677 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
20678 | { (exit 1); exit 1; }; } | |
21d1c967 | 20679 | else |
e6cc62c6 VS |
20680 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
20681 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
20682 | fi |
20683 | ||
e6cc62c6 VS |
20684 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
20685 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
20686 | case "${host}" in |
20687 | *-*-linux* ) | |
63a76696 VS |
20688 | if test "x$wxUSE_SHARED" = xyes ; then |
20689 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
20690 | else | |
20691 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
20692 | fi | |
21d1c967 GD |
20693 | ;; |
20694 | *-pc-msdosdjgpp ) | |
63a76696 | 20695 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
20696 | ;; |
20697 | *) | |
e6cc62c6 VS |
20698 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
20699 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
20700 | { (exit 1); exit 1; }; } | |
21d1c967 | 20701 | esac |
1e6feb95 | 20702 | |
21d1c967 | 20703 | mgl_lib_type="" |
63a76696 VS |
20704 | mgl_os="" |
20705 | ||
20706 | for mgl_os_i in $mgl_os_candidates ; do | |
20707 | if test "x$mgl_os" = x ; then | |
20708 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
20709 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
20710 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
20711 | mgl_lib_type=debug | |
20712 | mgl_os=$mgl_os_i | |
20713 | fi | |
20714 | fi | |
20715 | if test "x$mgl_lib_type" = x ; then | |
20716 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
20717 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
20718 | mgl_lib_type=release | |
20719 | mgl_os=$mgl_os_i | |
20720 | fi | |
20721 | fi | |
21d1c967 | 20722 | fi |
63a76696 | 20723 | done |
2224580a | 20724 | |
63a76696 | 20725 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
20726 | echo "$as_me:$LINENO: result: not found" >&5 |
20727 | echo "${ECHO_T}not found" >&6 | |
20728 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
20729 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
20730 | { (exit 1); exit 1; }; } | |
63a76696 | 20731 | fi |
e6cc62c6 VS |
20732 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
20733 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 20734 | |
1d1b75ac VZ |
20735 | wxUSE_UNIVERSAL="yes" |
20736 | ||
21d1c967 GD |
20737 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
20738 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
20739 | ||
90dd450c | 20740 | AFMINSTALL=afminstall |
21d1c967 GD |
20741 | TOOLKIT=MGL |
20742 | GUIDIST=MGL_DIST | |
20743 | fi | |
dad6c0ea | 20744 | |
21d1c967 | 20745 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
20746 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
20747 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 20748 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
20749 | echo "$as_me:$LINENO: result: not found" >&5 |
20750 | echo "${ECHO_T}not found" >&6 | |
20751 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
20752 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
20753 | { (exit 1); exit 1; }; } | |
21d1c967 | 20754 | else |
e6cc62c6 VS |
20755 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
20756 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 20757 | fi |
f6bcfd97 | 20758 | |
21d1c967 | 20759 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
20760 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
20761 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 20762 | else |
e6cc62c6 VS |
20763 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
20764 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
20765 | { (exit 1); exit 1; }; } | |
90dd450c | 20766 | fi |
0b2effe9 | 20767 | |
21d1c967 GD |
20768 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
20769 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
20770 | ||
1d1b75ac VZ |
20771 | wxUSE_UNIVERSAL="yes" |
20772 | ||
21d1c967 GD |
20773 | AFMINSTALL=afminstall |
20774 | TOOLKIT=MICROWIN | |
20775 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
20776 | |
20777 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 20778 | fi |
f6bcfd97 | 20779 | |
21d1c967 | 20780 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
20781 | echo "$as_me:$LINENO: checking for X" >&5 |
20782 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
20783 | ||
d8356fa3 | 20784 | |
21d1c967 GD |
20785 | # Check whether --with-x or --without-x was given. |
20786 | if test "${with_x+set}" = set; then | |
20787 | withval="$with_x" | |
2224580a | 20788 | |
e6cc62c6 | 20789 | fi; |
21d1c967 GD |
20790 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
20791 | if test "x$with_x" = xno; then | |
20792 | # The user explicitly disabled X. | |
20793 | have_x=disabled | |
20794 | else | |
20795 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
20796 | # Both variables are already set. | |
20797 | have_x=yes | |
20798 | else | |
e6cc62c6 VS |
20799 | if test "${ac_cv_have_x+set}" = set; then |
20800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
20801 | else |
20802 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
20803 | ac_x_includes=no ac_x_libraries=no |
20804 | rm -fr conftest.dir | |
20805 | if mkdir conftest.dir; then | |
20806 | cd conftest.dir | |
21d1c967 | 20807 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 20808 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
20809 | acfindx: |
20810 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 20811 | _ACEOF |
21d1c967 GD |
20812 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
20813 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20814 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
20815 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
20816 | for ac_extension in a so sl; do | |
20817 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 20818 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
20819 | ac_im_usrlibdir=$ac_im_libdir; break |
20820 | fi | |
20821 | done | |
20822 | # Screen out bogus values from the imake configuration. They are | |
20823 | # bogus both because they are the default anyway, and because | |
20824 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 20825 | case $ac_im_incroot in |
21d1c967 | 20826 | /usr/include) ;; |
e6cc62c6 | 20827 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 20828 | esac |
e6cc62c6 | 20829 | case $ac_im_usrlibdir in |
21d1c967 | 20830 | /usr/lib | /lib) ;; |
e6cc62c6 | 20831 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
20832 | esac |
20833 | fi | |
20834 | cd .. | |
e6cc62c6 | 20835 | rm -fr conftest.dir |
21d1c967 | 20836 | fi |
10f2d63a | 20837 | |
e6cc62c6 VS |
20838 | # Standard set of common directories for X headers. |
20839 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
20840 | ac_x_header_dirs=' | |
20841 | /usr/X11/include | |
20842 | /usr/X11R6/include | |
20843 | /usr/X11R5/include | |
20844 | /usr/X11R4/include | |
20845 | ||
20846 | /usr/include/X11 | |
20847 | /usr/include/X11R6 | |
20848 | /usr/include/X11R5 | |
20849 | /usr/include/X11R4 | |
20850 | ||
20851 | /usr/local/X11/include | |
20852 | /usr/local/X11R6/include | |
20853 | /usr/local/X11R5/include | |
20854 | /usr/local/X11R4/include | |
20855 | ||
20856 | /usr/local/include/X11 | |
20857 | /usr/local/include/X11R6 | |
20858 | /usr/local/include/X11R5 | |
20859 | /usr/local/include/X11R4 | |
20860 | ||
20861 | /usr/X386/include | |
20862 | /usr/x386/include | |
20863 | /usr/XFree86/include/X11 | |
20864 | ||
20865 | /usr/include | |
20866 | /usr/local/include | |
20867 | /usr/unsupported/include | |
20868 | /usr/athena/include | |
20869 | /usr/local/x11r5/include | |
20870 | /usr/lpp/Xamples/include | |
20871 | ||
20872 | /usr/openwin/include | |
20873 | /usr/openwin/share/include' | |
20874 | ||
20875 | if test "$ac_x_includes" = no; then | |
20876 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 20877 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
20878 | cat >conftest.$ac_ext <<_ACEOF |
20879 | #line $LINENO "configure" | |
20880 | /* confdefs.h. */ | |
20881 | _ACEOF | |
20882 | cat confdefs.h >>conftest.$ac_ext | |
20883 | cat >>conftest.$ac_ext <<_ACEOF | |
20884 | /* end confdefs.h. */ | |
20885 | #include <X11/Intrinsic.h> | |
20886 | _ACEOF | |
20887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20889 | ac_status=$? | |
20890 | grep -v '^ *+' conftest.er1 >conftest.err | |
20891 | rm -f conftest.er1 | |
20892 | cat conftest.err >&5 | |
20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20894 | (exit $ac_status); } >/dev/null; then | |
20895 | if test -s conftest.err; then | |
20896 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20897 | else | |
20898 | ac_cpp_err= | |
20899 | fi | |
20900 | else | |
20901 | ac_cpp_err=yes | |
20902 | fi | |
20903 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
20904 | # We can compile using X headers with no special include directory. |
20905 | ac_x_includes= | |
90dd450c | 20906 | else |
e6cc62c6 VS |
20907 | echo "$as_me: failed program was:" >&5 |
20908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20909 | ||
20910 | for ac_dir in $ac_x_header_dirs; do | |
20911 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
20912 | ac_x_includes=$ac_dir | |
20913 | break | |
20914 | fi | |
20915 | done | |
3a922bb4 | 20916 | fi |
e6cc62c6 VS |
20917 | rm -f conftest.err conftest.$ac_ext |
20918 | fi # $ac_x_includes = no | |
10f2d63a | 20919 | |
e6cc62c6 | 20920 | if test "$ac_x_libraries" = no; then |
21d1c967 | 20921 | # Check for the libraries. |
21d1c967 GD |
20922 | # See if we find them without any special options. |
20923 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
20924 | ac_save_LIBS=$LIBS |
20925 | LIBS="-lXt $LIBS" | |
20926 | cat >conftest.$ac_ext <<_ACEOF | |
20927 | #line $LINENO "configure" | |
20928 | /* confdefs.h. */ | |
20929 | _ACEOF | |
20930 | cat confdefs.h >>conftest.$ac_ext | |
20931 | cat >>conftest.$ac_ext <<_ACEOF | |
20932 | /* end confdefs.h. */ | |
20933 | #include <X11/Intrinsic.h> | |
20934 | int | |
20935 | main () | |
20936 | { | |
20937 | XtMalloc (0) | |
20938 | ; | |
20939 | return 0; | |
20940 | } | |
20941 | _ACEOF | |
20942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20944 | (eval $ac_link) 2>&5 | |
20945 | ac_status=$? | |
20946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20947 | (exit $ac_status); } && | |
20948 | { ac_try='test -s conftest$ac_exeext' | |
20949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20950 | (eval $ac_try) 2>&5 | |
20951 | ac_status=$? | |
20952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20953 | (exit $ac_status); }; }; then | |
20954 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
20955 | # We can link X programs with no special library path. |
20956 | ac_x_libraries= | |
3a922bb4 | 20957 | else |
e6cc62c6 VS |
20958 | echo "$as_me: failed program was:" >&5 |
20959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20960 | ||
20961 | LIBS=$ac_save_LIBS | |
20962 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 20963 | do |
e6cc62c6 | 20964 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 20965 | for ac_extension in a so sl; do |
e6cc62c6 | 20966 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
20967 | ac_x_libraries=$ac_dir |
20968 | break 2 | |
20969 | fi | |
20970 | done | |
20971 | done | |
3a922bb4 | 20972 | fi |
e6cc62c6 VS |
20973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
20974 | fi # $ac_x_libraries = no | |
90dd450c | 20975 | |
e6cc62c6 | 20976 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
20977 | # Didn't find X anywhere. Cache the known absence of X. |
20978 | ac_cv_have_x="have_x=no" | |
20979 | else | |
20980 | # Record where we found X for the cache. | |
20981 | ac_cv_have_x="have_x=yes \ | |
20982 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 20983 | fi |
21d1c967 | 20984 | fi |
e6cc62c6 | 20985 | |
21d1c967 GD |
20986 | fi |
20987 | eval "$ac_cv_have_x" | |
20988 | fi # $with_x != no | |
90dd450c | 20989 | |
21d1c967 | 20990 | if test "$have_x" != yes; then |
e6cc62c6 VS |
20991 | echo "$as_me:$LINENO: result: $have_x" >&5 |
20992 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
20993 | no_x=yes |
20994 | else | |
20995 | # If each of the values was on the command line, it overrides each guess. | |
20996 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
20997 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
20998 | # Update the cache value to reflect the command line values. | |
20999 | ac_cv_have_x="have_x=yes \ | |
21000 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21001 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21002 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21003 | fi |
90dd450c | 21004 | |
21d1c967 | 21005 | if test "$no_x" = yes; then |
90dd450c | 21006 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21007 | |
21008 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21009 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21010 | _ACEOF |
90dd450c VZ |
21011 | |
21012 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21013 | else | |
21014 | if test -n "$x_includes"; then | |
21015 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21016 | fi |
3a922bb4 | 21017 | |
90dd450c VZ |
21018 | # It would also be nice to do this for all -L options, not just this one. |
21019 | if test -n "$x_libraries"; then | |
21020 | X_LIBS="$X_LIBS -L$x_libraries" | |
21021 | # For Solaris; some versions of Sun CC require a space after -R and | |
21022 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21023 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21024 | "SunOS 5"*) |
e6cc62c6 VS |
21025 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21026 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21027 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21028 | cat >conftest.$ac_ext <<_ACEOF | |
21029 | #line $LINENO "configure" | |
21030 | /* confdefs.h. */ | |
21031 | _ACEOF | |
21032 | cat confdefs.h >>conftest.$ac_ext | |
21033 | cat >>conftest.$ac_ext <<_ACEOF | |
21034 | /* end confdefs.h. */ | |
21035 | ||
21036 | int | |
21037 | main () | |
21038 | { | |
90dd450c | 21039 | |
e6cc62c6 VS |
21040 | ; |
21041 | return 0; | |
21042 | } | |
21043 | _ACEOF | |
21044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21046 | (eval $ac_link) 2>&5 | |
21047 | ac_status=$? | |
21048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21049 | (exit $ac_status); } && | |
21050 | { ac_try='test -s conftest$ac_exeext' | |
21051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21052 | (eval $ac_try) 2>&5 | |
21053 | ac_status=$? | |
21054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21055 | (exit $ac_status); }; }; then | |
90dd450c | 21056 | ac_R_nospace=yes |
3a922bb4 | 21057 | else |
e6cc62c6 VS |
21058 | echo "$as_me: failed program was:" >&5 |
21059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21060 | ||
21061 | ac_R_nospace=no | |
3a922bb4 | 21062 | fi |
e6cc62c6 | 21063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21064 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21065 | echo "$as_me:$LINENO: result: no" >&5 |
21066 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21067 | X_LIBS="$X_LIBS -R$x_libraries" |
21068 | else | |
21069 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21070 | cat >conftest.$ac_ext <<_ACEOF |
21071 | #line $LINENO "configure" | |
21072 | /* confdefs.h. */ | |
21073 | _ACEOF | |
21074 | cat confdefs.h >>conftest.$ac_ext | |
21075 | cat >>conftest.$ac_ext <<_ACEOF | |
21076 | /* end confdefs.h. */ | |
21077 | ||
21078 | int | |
21079 | main () | |
21080 | { | |
6f754473 | 21081 | |
e6cc62c6 VS |
21082 | ; |
21083 | return 0; | |
21084 | } | |
21085 | _ACEOF | |
21086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21088 | (eval $ac_link) 2>&5 | |
21089 | ac_status=$? | |
21090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21091 | (exit $ac_status); } && | |
21092 | { ac_try='test -s conftest$ac_exeext' | |
21093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21094 | (eval $ac_try) 2>&5 | |
21095 | ac_status=$? | |
21096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21097 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21098 | ac_R_space=yes |
21099 | else | |
e6cc62c6 VS |
21100 | echo "$as_me: failed program was:" >&5 |
21101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21102 | ||
21103 | ac_R_space=no | |
90dd450c | 21104 | fi |
e6cc62c6 | 21105 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21106 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21107 | echo "$as_me:$LINENO: result: yes" >&5 |
21108 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21109 | X_LIBS="$X_LIBS -R $x_libraries" |
21110 | else | |
e6cc62c6 VS |
21111 | echo "$as_me:$LINENO: result: neither works" >&5 |
21112 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21113 | fi |
21114 | fi | |
e6cc62c6 | 21115 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21116 | esac |
21117 | fi | |
21118 | ||
21119 | # Check for system-dependent libraries X programs must link with. | |
21120 | # Do this before checking for the system-independent R6 libraries | |
21121 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21122 | |
90dd450c VZ |
21123 | if test "$ISC" = yes; then |
21124 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21125 | else | |
e6cc62c6 VS |
21126 | # Martyn Johnson says this is needed for Ultrix, if the X |
21127 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21128 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21129 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21130 | cat >conftest.$ac_ext <<_ACEOF | |
21131 | #line $LINENO "configure" | |
21132 | /* confdefs.h. */ | |
21133 | _ACEOF | |
21134 | cat confdefs.h >>conftest.$ac_ext | |
21135 | cat >>conftest.$ac_ext <<_ACEOF | |
21136 | /* end confdefs.h. */ | |
21137 | ||
247f5006 | 21138 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21139 | #ifdef __cplusplus |
21140 | extern "C" | |
21141 | #endif | |
247f5006 | 21142 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21143 | builtin and then its argument prototype would still apply. */ |
21144 | char XOpenDisplay (); | |
21145 | int | |
21146 | main () | |
21147 | { | |
21148 | XOpenDisplay (); | |
21149 | ; | |
21150 | return 0; | |
21151 | } | |
21152 | _ACEOF | |
21153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21155 | (eval $ac_link) 2>&5 | |
21156 | ac_status=$? | |
21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21158 | (exit $ac_status); } && | |
21159 | { ac_try='test -s conftest$ac_exeext' | |
21160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21161 | (eval $ac_try) 2>&5 | |
21162 | ac_status=$? | |
21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21164 | (exit $ac_status); }; }; then | |
21165 | : | |
21166 | else | |
21167 | echo "$as_me: failed program was:" >&5 | |
21168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21169 | |
e6cc62c6 VS |
21170 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21171 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21172 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21174 | else |
e6cc62c6 VS |
21175 | ac_check_lib_save_LIBS=$LIBS |
21176 | LIBS="-ldnet $LIBS" | |
21177 | cat >conftest.$ac_ext <<_ACEOF | |
21178 | #line $LINENO "configure" | |
21179 | /* confdefs.h. */ | |
21180 | _ACEOF | |
21181 | cat confdefs.h >>conftest.$ac_ext | |
21182 | cat >>conftest.$ac_ext <<_ACEOF | |
21183 | /* end confdefs.h. */ | |
a0b9e27f | 21184 | |
e6cc62c6 VS |
21185 | /* Override any gcc2 internal prototype to avoid an error. */ |
21186 | #ifdef __cplusplus | |
21187 | extern "C" | |
21188 | #endif | |
21189 | /* We use char because int might match the return type of a gcc2 | |
21190 | builtin and then its argument prototype would still apply. */ | |
21191 | char dnet_ntoa (); | |
21192 | int | |
21193 | main () | |
21194 | { | |
21195 | dnet_ntoa (); | |
21196 | ; | |
21197 | return 0; | |
21198 | } | |
21199 | _ACEOF | |
21200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21202 | (eval $ac_link) 2>&5 | |
21203 | ac_status=$? | |
21204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21205 | (exit $ac_status); } && | |
21206 | { ac_try='test -s conftest$ac_exeext' | |
21207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21208 | (eval $ac_try) 2>&5 | |
21209 | ac_status=$? | |
21210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21211 | (exit $ac_status); }; }; then | |
21212 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21213 | else | |
21214 | echo "$as_me: failed program was:" >&5 | |
21215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21216 | ||
21217 | ac_cv_lib_dnet_dnet_ntoa=no | |
21218 | fi | |
21219 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21220 | LIBS=$ac_check_lib_save_LIBS | |
21221 | fi | |
21222 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21223 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21224 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21225 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21226 | fi |
21227 | ||
90dd450c | 21228 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21229 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21230 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21231 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21233 | else |
e6cc62c6 | 21234 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21235 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21236 | cat >conftest.$ac_ext <<_ACEOF |
21237 | #line $LINENO "configure" | |
21238 | /* confdefs.h. */ | |
21239 | _ACEOF | |
21240 | cat confdefs.h >>conftest.$ac_ext | |
21241 | cat >>conftest.$ac_ext <<_ACEOF | |
21242 | /* end confdefs.h. */ | |
21243 | ||
90dd450c | 21244 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21245 | #ifdef __cplusplus |
21246 | extern "C" | |
21247 | #endif | |
90dd450c | 21248 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21249 | builtin and then its argument prototype would still apply. */ |
21250 | char dnet_ntoa (); | |
21251 | int | |
21252 | main () | |
21253 | { | |
21254 | dnet_ntoa (); | |
21255 | ; | |
21256 | return 0; | |
21257 | } | |
21258 | _ACEOF | |
21259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21261 | (eval $ac_link) 2>&5 | |
21262 | ac_status=$? | |
21263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21264 | (exit $ac_status); } && | |
21265 | { ac_try='test -s conftest$ac_exeext' | |
21266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21267 | (eval $ac_try) 2>&5 | |
21268 | ac_status=$? | |
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21270 | (exit $ac_status); }; }; then | |
21271 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21272 | else | |
21273 | echo "$as_me: failed program was:" >&5 | |
21274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21275 | ||
21276 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21277 | fi | |
21278 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21279 | LIBS=$ac_check_lib_save_LIBS | |
21280 | fi | |
21281 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21282 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21283 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21284 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21285 | fi |
21286 | ||
90dd450c | 21287 | fi |
e6cc62c6 VS |
21288 | fi |
21289 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21290 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21291 | |
90dd450c VZ |
21292 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21293 | # to get the SysV transport functions. | |
e6cc62c6 | 21294 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21295 | # needs -lnsl. |
21296 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21297 | # on Irix 5.2, according to T.E. Dickey. |
21298 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21299 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21300 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21301 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21302 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21304 | else | |
21305 | cat >conftest.$ac_ext <<_ACEOF | |
21306 | #line $LINENO "configure" | |
21307 | /* confdefs.h. */ | |
21308 | _ACEOF | |
21309 | cat confdefs.h >>conftest.$ac_ext | |
21310 | cat >>conftest.$ac_ext <<_ACEOF | |
21311 | /* end confdefs.h. */ | |
90dd450c | 21312 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21313 | which can conflict with char gethostbyname (); below. |
21314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21315 | <limits.h> exists even on freestanding compilers. */ | |
21316 | #ifdef __STDC__ | |
21317 | # include <limits.h> | |
21318 | #else | |
21319 | # include <assert.h> | |
21320 | #endif | |
90dd450c | 21321 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21322 | #ifdef __cplusplus |
21323 | extern "C" | |
21324 | { | |
21325 | #endif | |
90dd450c | 21326 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21327 | builtin and then its argument prototype would still apply. */ |
21328 | char gethostbyname (); | |
90dd450c VZ |
21329 | /* The GNU C library defines this for functions which it implements |
21330 | to always fail with ENOSYS. Some functions are actually named | |
21331 | something starting with __ and the normal name is an alias. */ | |
21332 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21333 | choke me | |
21334 | #else | |
e6cc62c6 VS |
21335 | char (*f) () = gethostbyname; |
21336 | #endif | |
21337 | #ifdef __cplusplus | |
21338 | } | |
90dd450c | 21339 | #endif |
978f1259 | 21340 | |
e6cc62c6 VS |
21341 | int |
21342 | main () | |
21343 | { | |
21344 | return f != gethostbyname; | |
21345 | ; | |
21346 | return 0; | |
21347 | } | |
21348 | _ACEOF | |
21349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21351 | (eval $ac_link) 2>&5 | |
21352 | ac_status=$? | |
21353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21354 | (exit $ac_status); } && | |
21355 | { ac_try='test -s conftest$ac_exeext' | |
21356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21357 | (eval $ac_try) 2>&5 | |
21358 | ac_status=$? | |
21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21360 | (exit $ac_status); }; }; then | |
21361 | ac_cv_func_gethostbyname=yes | |
21362 | else | |
21363 | echo "$as_me: failed program was:" >&5 | |
21364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21365 | ||
21366 | ac_cv_func_gethostbyname=no | |
21367 | fi | |
21368 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21369 | fi | |
21370 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21371 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21372 | |
90dd450c | 21373 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21374 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21375 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21376 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21378 | else |
e6cc62c6 | 21379 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21380 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21381 | cat >conftest.$ac_ext <<_ACEOF |
21382 | #line $LINENO "configure" | |
21383 | /* confdefs.h. */ | |
21384 | _ACEOF | |
21385 | cat confdefs.h >>conftest.$ac_ext | |
21386 | cat >>conftest.$ac_ext <<_ACEOF | |
21387 | /* end confdefs.h. */ | |
21388 | ||
90dd450c | 21389 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21390 | #ifdef __cplusplus |
21391 | extern "C" | |
21392 | #endif | |
90dd450c | 21393 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21394 | builtin and then its argument prototype would still apply. */ |
21395 | char gethostbyname (); | |
21396 | int | |
21397 | main () | |
21398 | { | |
21399 | gethostbyname (); | |
21400 | ; | |
21401 | return 0; | |
21402 | } | |
21403 | _ACEOF | |
21404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21406 | (eval $ac_link) 2>&5 | |
21407 | ac_status=$? | |
21408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21409 | (exit $ac_status); } && | |
21410 | { ac_try='test -s conftest$ac_exeext' | |
21411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21412 | (eval $ac_try) 2>&5 | |
21413 | ac_status=$? | |
21414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21415 | (exit $ac_status); }; }; then | |
21416 | ac_cv_lib_nsl_gethostbyname=yes | |
21417 | else | |
21418 | echo "$as_me: failed program was:" >&5 | |
21419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21420 | ||
21421 | ac_cv_lib_nsl_gethostbyname=no | |
21422 | fi | |
21423 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21424 | LIBS=$ac_check_lib_save_LIBS | |
21425 | fi | |
21426 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21427 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21428 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21429 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21430 | fi |
247f5006 | 21431 | |
e6cc62c6 VS |
21432 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21433 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21434 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21435 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21437 | else |
e6cc62c6 VS |
21438 | ac_check_lib_save_LIBS=$LIBS |
21439 | LIBS="-lbsd $LIBS" | |
21440 | cat >conftest.$ac_ext <<_ACEOF | |
21441 | #line $LINENO "configure" | |
21442 | /* confdefs.h. */ | |
21443 | _ACEOF | |
21444 | cat confdefs.h >>conftest.$ac_ext | |
21445 | cat >>conftest.$ac_ext <<_ACEOF | |
21446 | /* end confdefs.h. */ | |
21447 | ||
21448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21449 | #ifdef __cplusplus | |
21450 | extern "C" | |
21451 | #endif | |
21452 | /* We use char because int might match the return type of a gcc2 | |
21453 | builtin and then its argument prototype would still apply. */ | |
21454 | char gethostbyname (); | |
21455 | int | |
21456 | main () | |
21457 | { | |
21458 | gethostbyname (); | |
21459 | ; | |
21460 | return 0; | |
21461 | } | |
21462 | _ACEOF | |
21463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21465 | (eval $ac_link) 2>&5 | |
21466 | ac_status=$? | |
21467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21468 | (exit $ac_status); } && | |
21469 | { ac_try='test -s conftest$ac_exeext' | |
21470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21471 | (eval $ac_try) 2>&5 | |
21472 | ac_status=$? | |
21473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21474 | (exit $ac_status); }; }; then | |
21475 | ac_cv_lib_bsd_gethostbyname=yes | |
21476 | else | |
21477 | echo "$as_me: failed program was:" >&5 | |
21478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21479 | ||
21480 | ac_cv_lib_bsd_gethostbyname=no | |
21481 | fi | |
21482 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21483 | LIBS=$ac_check_lib_save_LIBS | |
21484 | fi | |
21485 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21486 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21487 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21488 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21489 | fi |
b12915c1 | 21490 | |
e6cc62c6 | 21491 | fi |
90dd450c VZ |
21492 | fi |
21493 | ||
21494 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21495 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21496 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21497 | # on later versions), says Simon Leinen: it contains gethostby* |
21498 | # variants that don't use the name server (or something). -lsocket | |
21499 | # must be given before -lnsl if both are needed. We assume that | |
21500 | # if connect needs -lnsl, so does gethostbyname. | |
21501 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21502 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21503 | if test "${ac_cv_func_connect+set}" = set; then | |
21504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21505 | else | |
21506 | cat >conftest.$ac_ext <<_ACEOF | |
21507 | #line $LINENO "configure" | |
21508 | /* confdefs.h. */ | |
21509 | _ACEOF | |
21510 | cat confdefs.h >>conftest.$ac_ext | |
21511 | cat >>conftest.$ac_ext <<_ACEOF | |
21512 | /* end confdefs.h. */ | |
90dd450c | 21513 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21514 | which can conflict with char connect (); below. |
21515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21516 | <limits.h> exists even on freestanding compilers. */ | |
21517 | #ifdef __STDC__ | |
21518 | # include <limits.h> | |
21519 | #else | |
21520 | # include <assert.h> | |
21521 | #endif | |
90dd450c | 21522 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21523 | #ifdef __cplusplus |
21524 | extern "C" | |
21525 | { | |
21526 | #endif | |
90dd450c | 21527 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21528 | builtin and then its argument prototype would still apply. */ |
21529 | char connect (); | |
90dd450c VZ |
21530 | /* The GNU C library defines this for functions which it implements |
21531 | to always fail with ENOSYS. Some functions are actually named | |
21532 | something starting with __ and the normal name is an alias. */ | |
21533 | #if defined (__stub_connect) || defined (__stub___connect) | |
21534 | choke me | |
21535 | #else | |
e6cc62c6 VS |
21536 | char (*f) () = connect; |
21537 | #endif | |
21538 | #ifdef __cplusplus | |
21539 | } | |
90dd450c VZ |
21540 | #endif |
21541 | ||
e6cc62c6 VS |
21542 | int |
21543 | main () | |
21544 | { | |
21545 | return f != connect; | |
21546 | ; | |
21547 | return 0; | |
21548 | } | |
21549 | _ACEOF | |
21550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21552 | (eval $ac_link) 2>&5 | |
21553 | ac_status=$? | |
21554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21555 | (exit $ac_status); } && | |
21556 | { ac_try='test -s conftest$ac_exeext' | |
21557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21558 | (eval $ac_try) 2>&5 | |
21559 | ac_status=$? | |
21560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21561 | (exit $ac_status); }; }; then | |
21562 | ac_cv_func_connect=yes | |
21563 | else | |
21564 | echo "$as_me: failed program was:" >&5 | |
21565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21566 | ||
21567 | ac_cv_func_connect=no | |
21568 | fi | |
21569 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21570 | fi | |
21571 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21572 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 21573 | |
90dd450c | 21574 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
21575 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21576 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21577 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21579 | else |
e6cc62c6 | 21580 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21581 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21582 | cat >conftest.$ac_ext <<_ACEOF |
21583 | #line $LINENO "configure" | |
21584 | /* confdefs.h. */ | |
21585 | _ACEOF | |
21586 | cat confdefs.h >>conftest.$ac_ext | |
21587 | cat >>conftest.$ac_ext <<_ACEOF | |
21588 | /* end confdefs.h. */ | |
21589 | ||
90dd450c | 21590 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21591 | #ifdef __cplusplus |
21592 | extern "C" | |
21593 | #endif | |
90dd450c | 21594 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21595 | builtin and then its argument prototype would still apply. */ |
21596 | char connect (); | |
21597 | int | |
21598 | main () | |
21599 | { | |
21600 | connect (); | |
21601 | ; | |
21602 | return 0; | |
21603 | } | |
21604 | _ACEOF | |
21605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21607 | (eval $ac_link) 2>&5 | |
21608 | ac_status=$? | |
21609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21610 | (exit $ac_status); } && | |
21611 | { ac_try='test -s conftest$ac_exeext' | |
21612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21613 | (eval $ac_try) 2>&5 | |
21614 | ac_status=$? | |
21615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21616 | (exit $ac_status); }; }; then | |
21617 | ac_cv_lib_socket_connect=yes | |
21618 | else | |
21619 | echo "$as_me: failed program was:" >&5 | |
21620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21621 | ||
21622 | ac_cv_lib_socket_connect=no | |
21623 | fi | |
21624 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21625 | LIBS=$ac_check_lib_save_LIBS | |
21626 | fi | |
21627 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21628 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21629 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 21630 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 21631 | fi |
77e13408 | 21632 | |
90dd450c | 21633 | fi |
25d0687a | 21634 | |
e6cc62c6 VS |
21635 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21636 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21637 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21638 | if test "${ac_cv_func_remove+set}" = set; then | |
21639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21640 | else | |
21641 | cat >conftest.$ac_ext <<_ACEOF | |
21642 | #line $LINENO "configure" | |
21643 | /* confdefs.h. */ | |
21644 | _ACEOF | |
21645 | cat confdefs.h >>conftest.$ac_ext | |
21646 | cat >>conftest.$ac_ext <<_ACEOF | |
21647 | /* end confdefs.h. */ | |
90dd450c | 21648 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21649 | which can conflict with char remove (); below. |
21650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21651 | <limits.h> exists even on freestanding compilers. */ | |
21652 | #ifdef __STDC__ | |
21653 | # include <limits.h> | |
21654 | #else | |
21655 | # include <assert.h> | |
21656 | #endif | |
90dd450c | 21657 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21658 | #ifdef __cplusplus |
21659 | extern "C" | |
21660 | { | |
21661 | #endif | |
90dd450c | 21662 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21663 | builtin and then its argument prototype would still apply. */ |
21664 | char remove (); | |
90dd450c VZ |
21665 | /* The GNU C library defines this for functions which it implements |
21666 | to always fail with ENOSYS. Some functions are actually named | |
21667 | something starting with __ and the normal name is an alias. */ | |
21668 | #if defined (__stub_remove) || defined (__stub___remove) | |
21669 | choke me | |
21670 | #else | |
e6cc62c6 VS |
21671 | char (*f) () = remove; |
21672 | #endif | |
21673 | #ifdef __cplusplus | |
21674 | } | |
90dd450c | 21675 | #endif |
55e80573 | 21676 | |
e6cc62c6 VS |
21677 | int |
21678 | main () | |
21679 | { | |
21680 | return f != remove; | |
21681 | ; | |
21682 | return 0; | |
21683 | } | |
21684 | _ACEOF | |
21685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21687 | (eval $ac_link) 2>&5 | |
21688 | ac_status=$? | |
21689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21690 | (exit $ac_status); } && | |
21691 | { ac_try='test -s conftest$ac_exeext' | |
21692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21693 | (eval $ac_try) 2>&5 | |
21694 | ac_status=$? | |
21695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21696 | (exit $ac_status); }; }; then | |
21697 | ac_cv_func_remove=yes | |
21698 | else | |
21699 | echo "$as_me: failed program was:" >&5 | |
21700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21701 | ||
21702 | ac_cv_func_remove=no | |
21703 | fi | |
21704 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21705 | fi | |
21706 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21707 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 21708 | |
90dd450c | 21709 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
21710 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
21711 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21712 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21714 | else |
e6cc62c6 | 21715 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21716 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
21717 | cat >conftest.$ac_ext <<_ACEOF |
21718 | #line $LINENO "configure" | |
21719 | /* confdefs.h. */ | |
21720 | _ACEOF | |
21721 | cat confdefs.h >>conftest.$ac_ext | |
21722 | cat >>conftest.$ac_ext <<_ACEOF | |
21723 | /* end confdefs.h. */ | |
21724 | ||
90dd450c | 21725 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21726 | #ifdef __cplusplus |
21727 | extern "C" | |
21728 | #endif | |
90dd450c | 21729 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21730 | builtin and then its argument prototype would still apply. */ |
21731 | char remove (); | |
21732 | int | |
21733 | main () | |
21734 | { | |
21735 | remove (); | |
21736 | ; | |
21737 | return 0; | |
21738 | } | |
21739 | _ACEOF | |
21740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21742 | (eval $ac_link) 2>&5 | |
21743 | ac_status=$? | |
21744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21745 | (exit $ac_status); } && | |
21746 | { ac_try='test -s conftest$ac_exeext' | |
21747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21748 | (eval $ac_try) 2>&5 | |
21749 | ac_status=$? | |
21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21751 | (exit $ac_status); }; }; then | |
21752 | ac_cv_lib_posix_remove=yes | |
21753 | else | |
21754 | echo "$as_me: failed program was:" >&5 | |
21755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21756 | ||
21757 | ac_cv_lib_posix_remove=no | |
21758 | fi | |
21759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21760 | LIBS=$ac_check_lib_save_LIBS | |
21761 | fi | |
21762 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
21763 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
21764 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 21765 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 21766 | fi |
f6bcfd97 | 21767 | |
6fa882bd RR |
21768 | fi |
21769 | ||
90dd450c | 21770 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
21771 | echo "$as_me:$LINENO: checking for shmat" >&5 |
21772 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
21773 | if test "${ac_cv_func_shmat+set}" = set; then | |
21774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21775 | else | |
21776 | cat >conftest.$ac_ext <<_ACEOF | |
21777 | #line $LINENO "configure" | |
21778 | /* confdefs.h. */ | |
21779 | _ACEOF | |
21780 | cat confdefs.h >>conftest.$ac_ext | |
21781 | cat >>conftest.$ac_ext <<_ACEOF | |
21782 | /* end confdefs.h. */ | |
90dd450c | 21783 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21784 | which can conflict with char shmat (); below. |
21785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21786 | <limits.h> exists even on freestanding compilers. */ | |
21787 | #ifdef __STDC__ | |
21788 | # include <limits.h> | |
21789 | #else | |
21790 | # include <assert.h> | |
21791 | #endif | |
90dd450c | 21792 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21793 | #ifdef __cplusplus |
21794 | extern "C" | |
21795 | { | |
21796 | #endif | |
90dd450c | 21797 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21798 | builtin and then its argument prototype would still apply. */ |
21799 | char shmat (); | |
90dd450c VZ |
21800 | /* The GNU C library defines this for functions which it implements |
21801 | to always fail with ENOSYS. Some functions are actually named | |
21802 | something starting with __ and the normal name is an alias. */ | |
21803 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
21804 | choke me | |
21805 | #else | |
e6cc62c6 VS |
21806 | char (*f) () = shmat; |
21807 | #endif | |
21808 | #ifdef __cplusplus | |
21809 | } | |
90dd450c | 21810 | #endif |
10f2d63a | 21811 | |
e6cc62c6 VS |
21812 | int |
21813 | main () | |
21814 | { | |
21815 | return f != shmat; | |
21816 | ; | |
21817 | return 0; | |
21818 | } | |
21819 | _ACEOF | |
21820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21822 | (eval $ac_link) 2>&5 | |
21823 | ac_status=$? | |
21824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21825 | (exit $ac_status); } && | |
21826 | { ac_try='test -s conftest$ac_exeext' | |
21827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21828 | (eval $ac_try) 2>&5 | |
21829 | ac_status=$? | |
21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21831 | (exit $ac_status); }; }; then | |
21832 | ac_cv_func_shmat=yes | |
21833 | else | |
21834 | echo "$as_me: failed program was:" >&5 | |
21835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21836 | ||
21837 | ac_cv_func_shmat=no | |
21838 | fi | |
21839 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21840 | fi | |
21841 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
21842 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 21843 | |
90dd450c | 21844 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
21845 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
21846 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
21847 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
21848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 21849 | else |
e6cc62c6 | 21850 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21851 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
21852 | cat >conftest.$ac_ext <<_ACEOF |
21853 | #line $LINENO "configure" | |
21854 | /* confdefs.h. */ | |
21855 | _ACEOF | |
21856 | cat confdefs.h >>conftest.$ac_ext | |
21857 | cat >>conftest.$ac_ext <<_ACEOF | |
21858 | /* end confdefs.h. */ | |
21859 | ||
8284b0c5 | 21860 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21861 | #ifdef __cplusplus |
21862 | extern "C" | |
21863 | #endif | |
90dd450c | 21864 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21865 | builtin and then its argument prototype would still apply. */ |
21866 | char shmat (); | |
21867 | int | |
21868 | main () | |
21869 | { | |
21870 | shmat (); | |
21871 | ; | |
21872 | return 0; | |
21873 | } | |
21874 | _ACEOF | |
21875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21877 | (eval $ac_link) 2>&5 | |
21878 | ac_status=$? | |
21879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21880 | (exit $ac_status); } && | |
21881 | { ac_try='test -s conftest$ac_exeext' | |
21882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21883 | (eval $ac_try) 2>&5 | |
21884 | ac_status=$? | |
21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21886 | (exit $ac_status); }; }; then | |
21887 | ac_cv_lib_ipc_shmat=yes | |
21888 | else | |
21889 | echo "$as_me: failed program was:" >&5 | |
21890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21891 | ||
21892 | ac_cv_lib_ipc_shmat=no | |
21893 | fi | |
21894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21895 | LIBS=$ac_check_lib_save_LIBS | |
21896 | fi | |
21897 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
21898 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
21899 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 21900 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
21901 | fi |
21902 | ||
d558c907 | 21903 | fi |
90dd450c | 21904 | fi |
3a922bb4 | 21905 | |
90dd450c | 21906 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 21907 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
21908 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
21909 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
21910 | # check for ICE first), but we must link in the order -lSM -lICE or | |
21911 | # we get undefined symbols. So assume we have SM if we have ICE. | |
21912 | # These have to be linked with before -lX11, unlike the other | |
21913 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
21914 | # John Interrante, Karl Berry |
21915 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
21916 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
21917 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
21918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21919 | else | |
21920 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 21921 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21922 | cat >conftest.$ac_ext <<_ACEOF |
21923 | #line $LINENO "configure" | |
21924 | /* confdefs.h. */ | |
21925 | _ACEOF | |
21926 | cat confdefs.h >>conftest.$ac_ext | |
21927 | cat >>conftest.$ac_ext <<_ACEOF | |
21928 | /* end confdefs.h. */ | |
21929 | ||
90dd450c | 21930 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21931 | #ifdef __cplusplus |
21932 | extern "C" | |
21933 | #endif | |
90dd450c | 21934 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21935 | builtin and then its argument prototype would still apply. */ |
21936 | char IceConnectionNumber (); | |
21937 | int | |
21938 | main () | |
21939 | { | |
21940 | IceConnectionNumber (); | |
21941 | ; | |
21942 | return 0; | |
21943 | } | |
21944 | _ACEOF | |
21945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21947 | (eval $ac_link) 2>&5 | |
21948 | ac_status=$? | |
21949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21950 | (exit $ac_status); } && | |
21951 | { ac_try='test -s conftest$ac_exeext' | |
21952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21953 | (eval $ac_try) 2>&5 | |
21954 | ac_status=$? | |
21955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21956 | (exit $ac_status); }; }; then | |
21957 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
21958 | else | |
21959 | echo "$as_me: failed program was:" >&5 | |
21960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21961 | ||
21962 | ac_cv_lib_ICE_IceConnectionNumber=no | |
21963 | fi | |
21964 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21965 | LIBS=$ac_check_lib_save_LIBS | |
21966 | fi | |
21967 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
21968 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
21969 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 21970 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 21971 | fi |
10f2d63a | 21972 | |
e6cc62c6 | 21973 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
21974 | |
21975 | fi | |
21976 | ||
8284b0c5 | 21977 | |
90dd450c | 21978 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
21979 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
21980 | echo "$as_me: error: X11 not found" >&2;} | |
21981 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
21982 | fi |
21983 | ||
21984 | GUI_TK_LIBRARY="$X_LIBS" | |
21985 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
21986 | AFMINSTALL=afminstall | |
21987 | COMPILED_X_PROGRAM=0 | |
21988 | ||
21d1c967 | 21989 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
21990 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
21991 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 21992 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
21993 | echo "$as_me:$LINENO: result: not found" >&5 |
21994 | echo "${ECHO_T}not found" >&6 | |
21995 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
21996 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
21997 | { (exit 1); exit 1; }; } | |
90dd450c | 21998 | else |
e6cc62c6 VS |
21999 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22000 | echo "${ECHO_T}$MICROWIN" >&6 | |
22001 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22002 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22003 | _ACEOF |
21d1c967 | 22004 | |
90dd450c VZ |
22005 | fi |
22006 | fi | |
22007 | ||
22008 | xpm_link= | |
e6cc62c6 VS |
22009 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22010 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22011 | ||
90dd450c | 22012 | ac_find_libraries= |
2b5f62a0 | 22013 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22014 | do |
22015 | for ac_extension in a so sl dylib; do | |
22016 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22017 | ac_find_libraries=$ac_dir | |
22018 | break 2 | |
22019 | fi | |
22020 | done | |
22021 | done | |
22022 | ||
22023 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22024 | |
90dd450c VZ |
22025 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22026 | result=$? | |
22027 | if test $result = 0; then | |
22028 | ac_path_to_link="" | |
22029 | else | |
22030 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22031 | fi |
90dd450c | 22032 | |
21d1c967 GD |
22033 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22034 | xpm_link=" -lXpm" | |
e6cc62c6 | 22035 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22036 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22037 | _ACEOF |
90dd450c | 22038 | |
e6cc62c6 VS |
22039 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22040 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22041 | else |
e6cc62c6 VS |
22042 | cat >conftest.$ac_ext <<_ACEOF |
22043 | #line $LINENO "configure" | |
22044 | /* confdefs.h. */ | |
22045 | _ACEOF | |
22046 | cat confdefs.h >>conftest.$ac_ext | |
22047 | cat >>conftest.$ac_ext <<_ACEOF | |
22048 | /* end confdefs.h. */ | |
90dd450c | 22049 | |
21d1c967 | 22050 | #include <X11/xpm.h> |
e6cc62c6 VS |
22051 | |
22052 | int | |
22053 | main () | |
22054 | { | |
6f72b082 | 22055 | |
21d1c967 GD |
22056 | int version; |
22057 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22058 | |
22059 | ; | |
22060 | return 0; | |
22061 | } | |
22062 | _ACEOF | |
22063 | rm -f conftest.$ac_objext | |
22064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22065 | (eval $ac_compile) 2>&5 | |
22066 | ac_status=$? | |
22067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22068 | (exit $ac_status); } && | |
22069 | { ac_try='test -s conftest.$ac_objext' | |
22070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22071 | (eval $ac_try) 2>&5 | |
22072 | ac_status=$? | |
22073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22074 | (exit $ac_status); }; }; then | |
22075 | ||
21d1c967 | 22076 | xpm_link=" -lXpm" |
e6cc62c6 | 22077 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22078 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22079 | _ACEOF |
90dd450c | 22080 | |
e6cc62c6 VS |
22081 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22082 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22083 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22084 | |
21d1c967 | 22085 | else |
e6cc62c6 VS |
22086 | echo "$as_me: failed program was:" >&5 |
22087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22088 | ||
22089 | ||
22090 | echo "$as_me:$LINENO: result: no" >&5 | |
22091 | echo "${ECHO_T}no" >&6 | |
22092 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22093 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22094 | ||
22095 | ||
6f72b082 | 22096 | fi |
e6cc62c6 | 22097 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22098 | fi |
90dd450c | 22099 | |
e6cc62c6 VS |
22100 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22101 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22102 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22104 | else |
e6cc62c6 | 22105 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22106 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22107 | cat >conftest.$ac_ext <<_ACEOF |
22108 | #line $LINENO "configure" | |
22109 | /* confdefs.h. */ | |
22110 | _ACEOF | |
22111 | cat confdefs.h >>conftest.$ac_ext | |
22112 | cat >>conftest.$ac_ext <<_ACEOF | |
22113 | /* end confdefs.h. */ | |
22114 | ||
f7f78039 | 22115 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22116 | #ifdef __cplusplus |
22117 | extern "C" | |
22118 | #endif | |
f7f78039 | 22119 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22120 | builtin and then its argument prototype would still apply. */ |
22121 | char XShapeQueryExtension (); | |
22122 | int | |
22123 | main () | |
22124 | { | |
22125 | XShapeQueryExtension (); | |
22126 | ; | |
22127 | return 0; | |
22128 | } | |
22129 | _ACEOF | |
22130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22132 | (eval $ac_link) 2>&5 | |
22133 | ac_status=$? | |
22134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22135 | (exit $ac_status); } && | |
22136 | { ac_try='test -s conftest$ac_exeext' | |
22137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22138 | (eval $ac_try) 2>&5 | |
22139 | ac_status=$? | |
22140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22141 | (exit $ac_status); }; }; then | |
22142 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22143 | else | |
22144 | echo "$as_me: failed program was:" >&5 | |
22145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22146 | ||
22147 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22148 | fi | |
22149 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22150 | LIBS=$ac_check_lib_save_LIBS | |
22151 | fi | |
22152 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22153 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22154 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22155 | |
f7f78039 MB |
22156 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22157 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22158 | |
f7f78039 MB |
22159 | fi |
22160 | ||
22161 | ||
2b5f62a0 | 22162 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22163 | |
2b5f62a0 | 22164 | succeeded=no |
90dd450c | 22165 | |
2b5f62a0 VZ |
22166 | if test -z "$PKG_CONFIG"; then |
22167 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22168 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22171 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22173 | else |
e6cc62c6 VS |
22174 | case $PKG_CONFIG in |
22175 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22176 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22177 | ;; | |
2b5f62a0 | 22178 | *) |
e6cc62c6 VS |
22179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22180 | for as_dir in $PATH | |
22181 | do | |
22182 | IFS=$as_save_IFS | |
22183 | test -z "$as_dir" && as_dir=. | |
22184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22186 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22188 | break 2 | |
22189 | fi | |
22190 | done | |
22191 | done | |
22192 | ||
2b5f62a0 VZ |
22193 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22194 | ;; | |
22195 | esac | |
22196 | fi | |
e6cc62c6 VS |
22197 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22198 | ||
2b5f62a0 | 22199 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22200 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22201 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22202 | else |
e6cc62c6 VS |
22203 | echo "$as_me:$LINENO: result: no" >&5 |
22204 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22205 | fi |
22206 | ||
22207 | fi | |
22208 | ||
22209 | if test "$PKG_CONFIG" = "no" ; then | |
22210 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22211 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22212 | echo "*** to the full path to pkg-config." | |
22213 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22214 | else | |
22215 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22216 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22217 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22218 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22219 | |
22220 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22221 | echo "$as_me:$LINENO: result: yes" >&5 |
22222 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22223 | succeeded=yes |
22224 | ||
e6cc62c6 VS |
22225 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22226 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22227 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22228 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22229 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22230 | |
e6cc62c6 VS |
22231 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22232 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22233 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22234 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22235 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22236 | else |
22237 | PANGOX_CFLAGS="" | |
22238 | PANGOX_LIBS="" | |
e6cc62c6 | 22239 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22240 | ## do set a variable so people can do so. |
22241 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22242 | |
2b5f62a0 VZ |
22243 | fi |
22244 | ||
e6cc62c6 VS |
22245 | |
22246 | ||
2b5f62a0 VZ |
22247 | else |
22248 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22249 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22250 | fi | |
22251 | fi | |
22252 | ||
22253 | if test $succeeded = yes; then | |
e6cc62c6 | 22254 | |
2b5f62a0 | 22255 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22256 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22257 | |
2b5f62a0 | 22258 | else |
e6cc62c6 VS |
22259 | |
22260 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22261 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22262 | { (exit 1); exit 1; }; } | |
22263 | ||
22264 | ||
2b5f62a0 VZ |
22265 | fi |
22266 | ||
e6cc62c6 | 22267 | |
2b5f62a0 VZ |
22268 | succeeded=no |
22269 | ||
22270 | if test -z "$PKG_CONFIG"; then | |
22271 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22272 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22273 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22275 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22277 | else |
e6cc62c6 VS |
22278 | case $PKG_CONFIG in |
22279 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22280 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22281 | ;; | |
2b5f62a0 | 22282 | *) |
e6cc62c6 VS |
22283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22284 | for as_dir in $PATH | |
22285 | do | |
22286 | IFS=$as_save_IFS | |
22287 | test -z "$as_dir" && as_dir=. | |
22288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22290 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22292 | break 2 | |
22293 | fi | |
22294 | done | |
22295 | done | |
22296 | ||
2b5f62a0 VZ |
22297 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22298 | ;; | |
22299 | esac | |
22300 | fi | |
e6cc62c6 VS |
22301 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22302 | ||
2b5f62a0 | 22303 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22304 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22305 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22306 | else |
e6cc62c6 VS |
22307 | echo "$as_me:$LINENO: result: no" >&5 |
22308 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22309 | fi |
22310 | ||
22311 | fi | |
22312 | ||
22313 | if test "$PKG_CONFIG" = "no" ; then | |
22314 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22315 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22316 | echo "*** to the full path to pkg-config." | |
22317 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22318 | else | |
22319 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22320 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22321 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22322 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22323 | |
22324 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22325 | echo "$as_me:$LINENO: result: yes" >&5 |
22326 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22327 | succeeded=yes |
22328 | ||
e6cc62c6 VS |
22329 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22330 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22331 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22332 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22333 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22334 | |
e6cc62c6 VS |
22335 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22336 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22337 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22338 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22339 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22340 | else |
22341 | PANGOFT2_CFLAGS="" | |
22342 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22343 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22344 | ## do set a variable so people can do so. |
22345 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22346 | |
2b5f62a0 VZ |
22347 | fi |
22348 | ||
e6cc62c6 VS |
22349 | |
22350 | ||
2b5f62a0 VZ |
22351 | else |
22352 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22353 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22354 | fi | |
22355 | fi | |
22356 | ||
22357 | if test $succeeded = yes; then | |
e6cc62c6 | 22358 | |
2b5f62a0 | 22359 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22360 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22361 | |
2b5f62a0 | 22362 | else |
e6cc62c6 VS |
22363 | |
22364 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22365 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22366 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22367 | |
22368 | ||
2b5f62a0 VZ |
22369 | fi |
22370 | ||
e6cc62c6 | 22371 | |
2b5f62a0 VZ |
22372 | succeeded=no |
22373 | ||
22374 | if test -z "$PKG_CONFIG"; then | |
22375 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22376 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22377 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22379 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22381 | else |
e6cc62c6 VS |
22382 | case $PKG_CONFIG in |
22383 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22384 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22385 | ;; | |
2b5f62a0 | 22386 | *) |
e6cc62c6 VS |
22387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22388 | for as_dir in $PATH | |
22389 | do | |
22390 | IFS=$as_save_IFS | |
22391 | test -z "$as_dir" && as_dir=. | |
22392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22393 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22394 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22396 | break 2 | |
22397 | fi | |
22398 | done | |
22399 | done | |
22400 | ||
2b5f62a0 VZ |
22401 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22402 | ;; | |
22403 | esac | |
22404 | fi | |
e6cc62c6 VS |
22405 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22406 | ||
2b5f62a0 | 22407 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22408 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22409 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22410 | else |
e6cc62c6 VS |
22411 | echo "$as_me:$LINENO: result: no" >&5 |
22412 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22413 | fi |
22414 | ||
22415 | fi | |
22416 | ||
22417 | if test "$PKG_CONFIG" = "no" ; then | |
22418 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22419 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22420 | echo "*** to the full path to pkg-config." | |
22421 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22422 | else | |
22423 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22424 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22425 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22426 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22427 | |
22428 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22429 | echo "$as_me:$LINENO: result: yes" >&5 |
22430 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22431 | succeeded=yes |
22432 | ||
e6cc62c6 VS |
22433 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22434 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22435 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22436 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22437 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22438 | |
e6cc62c6 VS |
22439 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22440 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22441 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22442 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22443 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22444 | else |
22445 | PANGOXFT_CFLAGS="" | |
22446 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22447 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22448 | ## do set a variable so people can do so. |
22449 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22450 | |
2b5f62a0 VZ |
22451 | fi |
22452 | ||
e6cc62c6 VS |
22453 | |
22454 | ||
2b5f62a0 VZ |
22455 | else |
22456 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22457 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22458 | fi | |
22459 | fi | |
22460 | ||
22461 | if test $succeeded = yes; then | |
e6cc62c6 | 22462 | |
2b5f62a0 | 22463 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22464 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22465 | |
2b5f62a0 | 22466 | else |
e6cc62c6 VS |
22467 | |
22468 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22469 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22470 | ||
22471 | ||
2b5f62a0 VZ |
22472 | fi |
22473 | ||
22474 | fi | |
22475 | ||
22476 | wxUSE_UNIVERSAL="yes" | |
22477 | ||
22478 | if test "$wxUSE_NANOX" = "yes"; then | |
22479 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22480 | 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 |
22481 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22482 | else | |
22483 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22484 | fi | |
22485 | ||
22486 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22487 | TOOLKIT=X11 | |
22488 | GUIDIST=X11_DIST | |
22489 | fi | |
22490 | ||
21d1c967 GD |
22491 | if test "$wxUSE_MOTIF" = 1; then |
22492 | if test "$no_x" = yes; then | |
22493 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22494 | |
22495 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22496 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22497 | _ACEOF |
21d1c967 GD |
22498 | |
22499 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22500 | else | |
22501 | if test -n "$x_includes"; then | |
22502 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22503 | fi |
22504 | ||
21d1c967 GD |
22505 | # It would also be nice to do this for all -L options, not just this one. |
22506 | if test -n "$x_libraries"; then | |
22507 | X_LIBS="$X_LIBS -L$x_libraries" | |
22508 | # For Solaris; some versions of Sun CC require a space after -R and | |
22509 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22510 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 22511 | "SunOS 5"*) |
e6cc62c6 VS |
22512 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22513 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22514 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22515 | cat >conftest.$ac_ext <<_ACEOF | |
22516 | #line $LINENO "configure" | |
22517 | /* confdefs.h. */ | |
22518 | _ACEOF | |
22519 | cat confdefs.h >>conftest.$ac_ext | |
22520 | cat >>conftest.$ac_ext <<_ACEOF | |
22521 | /* end confdefs.h. */ | |
22522 | ||
22523 | int | |
22524 | main () | |
22525 | { | |
21d1c967 | 22526 | |
e6cc62c6 VS |
22527 | ; |
22528 | return 0; | |
22529 | } | |
22530 | _ACEOF | |
22531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22533 | (eval $ac_link) 2>&5 | |
22534 | ac_status=$? | |
22535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22536 | (exit $ac_status); } && | |
22537 | { ac_try='test -s conftest$ac_exeext' | |
22538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22539 | (eval $ac_try) 2>&5 | |
22540 | ac_status=$? | |
22541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22542 | (exit $ac_status); }; }; then | |
21d1c967 | 22543 | ac_R_nospace=yes |
698dcdb6 | 22544 | else |
e6cc62c6 VS |
22545 | echo "$as_me: failed program was:" >&5 |
22546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22547 | ||
22548 | ac_R_nospace=no | |
10f2d63a | 22549 | fi |
e6cc62c6 | 22550 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22551 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22552 | echo "$as_me:$LINENO: result: no" >&5 |
22553 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22554 | X_LIBS="$X_LIBS -R$x_libraries" |
22555 | else | |
22556 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
22557 | cat >conftest.$ac_ext <<_ACEOF |
22558 | #line $LINENO "configure" | |
22559 | /* confdefs.h. */ | |
22560 | _ACEOF | |
22561 | cat confdefs.h >>conftest.$ac_ext | |
22562 | cat >>conftest.$ac_ext <<_ACEOF | |
22563 | /* end confdefs.h. */ | |
22564 | ||
22565 | int | |
22566 | main () | |
22567 | { | |
f0c87536 | 22568 | |
e6cc62c6 VS |
22569 | ; |
22570 | return 0; | |
22571 | } | |
22572 | _ACEOF | |
22573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22575 | (eval $ac_link) 2>&5 | |
22576 | ac_status=$? | |
22577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22578 | (exit $ac_status); } && | |
22579 | { ac_try='test -s conftest$ac_exeext' | |
22580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22581 | (eval $ac_try) 2>&5 | |
22582 | ac_status=$? | |
22583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22584 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22585 | ac_R_space=yes |
22586 | else | |
e6cc62c6 VS |
22587 | echo "$as_me: failed program was:" >&5 |
22588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22589 | ||
22590 | ac_R_space=no | |
21d1c967 | 22591 | fi |
e6cc62c6 | 22592 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22593 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22594 | echo "$as_me:$LINENO: result: yes" >&5 |
22595 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
22596 | X_LIBS="$X_LIBS -R $x_libraries" |
22597 | else | |
e6cc62c6 VS |
22598 | echo "$as_me:$LINENO: result: neither works" >&5 |
22599 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
22600 | fi |
22601 | fi | |
e6cc62c6 | 22602 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
22603 | esac |
22604 | fi | |
90dd450c | 22605 | |
21d1c967 GD |
22606 | # Check for system-dependent libraries X programs must link with. |
22607 | # Do this before checking for the system-independent R6 libraries | |
22608 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22609 | ||
22610 | if test "$ISC" = yes; then | |
22611 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22612 | else | |
e6cc62c6 VS |
22613 | # Martyn Johnson says this is needed for Ultrix, if the X |
22614 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 22615 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22616 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22617 | cat >conftest.$ac_ext <<_ACEOF | |
22618 | #line $LINENO "configure" | |
22619 | /* confdefs.h. */ | |
22620 | _ACEOF | |
22621 | cat confdefs.h >>conftest.$ac_ext | |
22622 | cat >>conftest.$ac_ext <<_ACEOF | |
22623 | /* end confdefs.h. */ | |
22624 | ||
247f5006 | 22625 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22626 | #ifdef __cplusplus |
22627 | extern "C" | |
22628 | #endif | |
247f5006 | 22629 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22630 | builtin and then its argument prototype would still apply. */ |
22631 | char XOpenDisplay (); | |
22632 | int | |
22633 | main () | |
22634 | { | |
22635 | XOpenDisplay (); | |
22636 | ; | |
22637 | return 0; | |
22638 | } | |
22639 | _ACEOF | |
22640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22642 | (eval $ac_link) 2>&5 | |
22643 | ac_status=$? | |
22644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22645 | (exit $ac_status); } && | |
22646 | { ac_try='test -s conftest$ac_exeext' | |
22647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22648 | (eval $ac_try) 2>&5 | |
22649 | ac_status=$? | |
22650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22651 | (exit $ac_status); }; }; then | |
22652 | : | |
22653 | else | |
22654 | echo "$as_me: failed program was:" >&5 | |
22655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22656 | |
e6cc62c6 VS |
22657 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22658 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22659 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22661 | else |
e6cc62c6 VS |
22662 | ac_check_lib_save_LIBS=$LIBS |
22663 | LIBS="-ldnet $LIBS" | |
22664 | cat >conftest.$ac_ext <<_ACEOF | |
22665 | #line $LINENO "configure" | |
22666 | /* confdefs.h. */ | |
22667 | _ACEOF | |
22668 | cat confdefs.h >>conftest.$ac_ext | |
22669 | cat >>conftest.$ac_ext <<_ACEOF | |
22670 | /* end confdefs.h. */ | |
a0b9e27f | 22671 | |
e6cc62c6 VS |
22672 | /* Override any gcc2 internal prototype to avoid an error. */ |
22673 | #ifdef __cplusplus | |
22674 | extern "C" | |
22675 | #endif | |
22676 | /* We use char because int might match the return type of a gcc2 | |
22677 | builtin and then its argument prototype would still apply. */ | |
22678 | char dnet_ntoa (); | |
22679 | int | |
22680 | main () | |
22681 | { | |
22682 | dnet_ntoa (); | |
22683 | ; | |
22684 | return 0; | |
22685 | } | |
22686 | _ACEOF | |
22687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22689 | (eval $ac_link) 2>&5 | |
22690 | ac_status=$? | |
22691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22692 | (exit $ac_status); } && | |
22693 | { ac_try='test -s conftest$ac_exeext' | |
22694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22695 | (eval $ac_try) 2>&5 | |
22696 | ac_status=$? | |
22697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22698 | (exit $ac_status); }; }; then | |
22699 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22700 | else | |
22701 | echo "$as_me: failed program was:" >&5 | |
22702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22703 | ||
22704 | ac_cv_lib_dnet_dnet_ntoa=no | |
22705 | fi | |
22706 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22707 | LIBS=$ac_check_lib_save_LIBS | |
22708 | fi | |
22709 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22710 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22711 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 22712 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 22713 | fi |
0fb0dd83 | 22714 | |
21d1c967 | 22715 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
22716 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22717 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22718 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22720 | else |
e6cc62c6 | 22721 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22722 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
22723 | cat >conftest.$ac_ext <<_ACEOF |
22724 | #line $LINENO "configure" | |
22725 | /* confdefs.h. */ | |
22726 | _ACEOF | |
22727 | cat confdefs.h >>conftest.$ac_ext | |
22728 | cat >>conftest.$ac_ext <<_ACEOF | |
22729 | /* end confdefs.h. */ | |
22730 | ||
21d1c967 | 22731 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22732 | #ifdef __cplusplus |
22733 | extern "C" | |
22734 | #endif | |
21d1c967 | 22735 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22736 | builtin and then its argument prototype would still apply. */ |
22737 | char dnet_ntoa (); | |
22738 | int | |
22739 | main () | |
22740 | { | |
22741 | dnet_ntoa (); | |
22742 | ; | |
22743 | return 0; | |
22744 | } | |
22745 | _ACEOF | |
22746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22748 | (eval $ac_link) 2>&5 | |
22749 | ac_status=$? | |
22750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22751 | (exit $ac_status); } && | |
22752 | { ac_try='test -s conftest$ac_exeext' | |
22753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22754 | (eval $ac_try) 2>&5 | |
22755 | ac_status=$? | |
22756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22757 | (exit $ac_status); }; }; then | |
22758 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22759 | else | |
22760 | echo "$as_me: failed program was:" >&5 | |
22761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22762 | ||
22763 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22764 | fi | |
22765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22766 | LIBS=$ac_check_lib_save_LIBS | |
22767 | fi | |
22768 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22769 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22770 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 22771 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
22772 | fi |
22773 | ||
21d1c967 | 22774 | fi |
e6cc62c6 VS |
22775 | fi |
22776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22777 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 22778 | |
21d1c967 GD |
22779 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
22780 | # to get the SysV transport functions. | |
e6cc62c6 | 22781 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
22782 | # needs -lnsl. |
22783 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
22784 | # on Irix 5.2, according to T.E. Dickey. |
22785 | # The functions gethostbyname, getservbyname, and inet_addr are | |
22786 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
22787 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
22788 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
22789 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
22790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22791 | else | |
22792 | cat >conftest.$ac_ext <<_ACEOF | |
22793 | #line $LINENO "configure" | |
22794 | /* confdefs.h. */ | |
22795 | _ACEOF | |
22796 | cat confdefs.h >>conftest.$ac_ext | |
22797 | cat >>conftest.$ac_ext <<_ACEOF | |
22798 | /* end confdefs.h. */ | |
21d1c967 | 22799 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22800 | which can conflict with char gethostbyname (); below. |
22801 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22802 | <limits.h> exists even on freestanding compilers. */ | |
22803 | #ifdef __STDC__ | |
22804 | # include <limits.h> | |
22805 | #else | |
22806 | # include <assert.h> | |
22807 | #endif | |
21d1c967 | 22808 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22809 | #ifdef __cplusplus |
22810 | extern "C" | |
22811 | { | |
22812 | #endif | |
21d1c967 | 22813 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22814 | builtin and then its argument prototype would still apply. */ |
22815 | char gethostbyname (); | |
21d1c967 GD |
22816 | /* The GNU C library defines this for functions which it implements |
22817 | to always fail with ENOSYS. Some functions are actually named | |
22818 | something starting with __ and the normal name is an alias. */ | |
22819 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22820 | choke me | |
22821 | #else | |
e6cc62c6 VS |
22822 | char (*f) () = gethostbyname; |
22823 | #endif | |
22824 | #ifdef __cplusplus | |
22825 | } | |
21d1c967 | 22826 | #endif |
90dd450c | 22827 | |
e6cc62c6 VS |
22828 | int |
22829 | main () | |
22830 | { | |
22831 | return f != gethostbyname; | |
22832 | ; | |
22833 | return 0; | |
22834 | } | |
22835 | _ACEOF | |
22836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22838 | (eval $ac_link) 2>&5 | |
22839 | ac_status=$? | |
22840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22841 | (exit $ac_status); } && | |
22842 | { ac_try='test -s conftest$ac_exeext' | |
22843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22844 | (eval $ac_try) 2>&5 | |
22845 | ac_status=$? | |
22846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22847 | (exit $ac_status); }; }; then | |
22848 | ac_cv_func_gethostbyname=yes | |
22849 | else | |
22850 | echo "$as_me: failed program was:" >&5 | |
22851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22852 | ||
22853 | ac_cv_func_gethostbyname=no | |
22854 | fi | |
22855 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22856 | fi | |
22857 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22858 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 22859 | |
21d1c967 | 22860 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
22861 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
22862 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22863 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22865 | else |
e6cc62c6 | 22866 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22867 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
22868 | cat >conftest.$ac_ext <<_ACEOF |
22869 | #line $LINENO "configure" | |
22870 | /* confdefs.h. */ | |
22871 | _ACEOF | |
22872 | cat confdefs.h >>conftest.$ac_ext | |
22873 | cat >>conftest.$ac_ext <<_ACEOF | |
22874 | /* end confdefs.h. */ | |
22875 | ||
21d1c967 | 22876 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22877 | #ifdef __cplusplus |
22878 | extern "C" | |
22879 | #endif | |
21d1c967 | 22880 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22881 | builtin and then its argument prototype would still apply. */ |
22882 | char gethostbyname (); | |
22883 | int | |
22884 | main () | |
22885 | { | |
22886 | gethostbyname (); | |
22887 | ; | |
22888 | return 0; | |
22889 | } | |
22890 | _ACEOF | |
22891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22893 | (eval $ac_link) 2>&5 | |
22894 | ac_status=$? | |
22895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22896 | (exit $ac_status); } && | |
22897 | { ac_try='test -s conftest$ac_exeext' | |
22898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22899 | (eval $ac_try) 2>&5 | |
22900 | ac_status=$? | |
22901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22902 | (exit $ac_status); }; }; then | |
22903 | ac_cv_lib_nsl_gethostbyname=yes | |
22904 | else | |
22905 | echo "$as_me: failed program was:" >&5 | |
22906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22907 | ||
22908 | ac_cv_lib_nsl_gethostbyname=no | |
22909 | fi | |
22910 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22911 | LIBS=$ac_check_lib_save_LIBS | |
22912 | fi | |
22913 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22914 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22915 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22916 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 22917 | fi |
247f5006 | 22918 | |
e6cc62c6 VS |
22919 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
22920 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
22921 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
22922 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22924 | else |
e6cc62c6 VS |
22925 | ac_check_lib_save_LIBS=$LIBS |
22926 | LIBS="-lbsd $LIBS" | |
22927 | cat >conftest.$ac_ext <<_ACEOF | |
22928 | #line $LINENO "configure" | |
22929 | /* confdefs.h. */ | |
22930 | _ACEOF | |
22931 | cat confdefs.h >>conftest.$ac_ext | |
22932 | cat >>conftest.$ac_ext <<_ACEOF | |
22933 | /* end confdefs.h. */ | |
22934 | ||
22935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22936 | #ifdef __cplusplus | |
22937 | extern "C" | |
22938 | #endif | |
22939 | /* We use char because int might match the return type of a gcc2 | |
22940 | builtin and then its argument prototype would still apply. */ | |
22941 | char gethostbyname (); | |
22942 | int | |
22943 | main () | |
22944 | { | |
22945 | gethostbyname (); | |
22946 | ; | |
22947 | return 0; | |
22948 | } | |
22949 | _ACEOF | |
22950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22952 | (eval $ac_link) 2>&5 | |
22953 | ac_status=$? | |
22954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22955 | (exit $ac_status); } && | |
22956 | { ac_try='test -s conftest$ac_exeext' | |
22957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22958 | (eval $ac_try) 2>&5 | |
22959 | ac_status=$? | |
22960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22961 | (exit $ac_status); }; }; then | |
22962 | ac_cv_lib_bsd_gethostbyname=yes | |
22963 | else | |
22964 | echo "$as_me: failed program was:" >&5 | |
22965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22966 | ||
22967 | ac_cv_lib_bsd_gethostbyname=no | |
22968 | fi | |
22969 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22970 | LIBS=$ac_check_lib_save_LIBS | |
22971 | fi | |
22972 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
22973 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
22974 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
22975 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 22976 | fi |
90dd450c | 22977 | |
e6cc62c6 | 22978 | fi |
90dd450c VZ |
22979 | fi |
22980 | ||
21d1c967 GD |
22981 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
22982 | # socket/setsockopt and other routines are undefined under SCO ODT | |
22983 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
22984 | # on later versions), says Simon Leinen: it contains gethostby* |
22985 | # variants that don't use the name server (or something). -lsocket | |
22986 | # must be given before -lnsl if both are needed. We assume that | |
22987 | # if connect needs -lnsl, so does gethostbyname. | |
22988 | echo "$as_me:$LINENO: checking for connect" >&5 | |
22989 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
22990 | if test "${ac_cv_func_connect+set}" = set; then | |
22991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22992 | else | |
22993 | cat >conftest.$ac_ext <<_ACEOF | |
22994 | #line $LINENO "configure" | |
22995 | /* confdefs.h. */ | |
22996 | _ACEOF | |
22997 | cat confdefs.h >>conftest.$ac_ext | |
22998 | cat >>conftest.$ac_ext <<_ACEOF | |
22999 | /* end confdefs.h. */ | |
21d1c967 | 23000 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23001 | which can conflict with char connect (); below. |
23002 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23003 | <limits.h> exists even on freestanding compilers. */ | |
23004 | #ifdef __STDC__ | |
23005 | # include <limits.h> | |
23006 | #else | |
23007 | # include <assert.h> | |
23008 | #endif | |
21d1c967 | 23009 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23010 | #ifdef __cplusplus |
23011 | extern "C" | |
23012 | { | |
23013 | #endif | |
21d1c967 | 23014 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23015 | builtin and then its argument prototype would still apply. */ |
23016 | char connect (); | |
21d1c967 GD |
23017 | /* The GNU C library defines this for functions which it implements |
23018 | to always fail with ENOSYS. Some functions are actually named | |
23019 | something starting with __ and the normal name is an alias. */ | |
23020 | #if defined (__stub_connect) || defined (__stub___connect) | |
23021 | choke me | |
23022 | #else | |
e6cc62c6 VS |
23023 | char (*f) () = connect; |
23024 | #endif | |
23025 | #ifdef __cplusplus | |
23026 | } | |
21d1c967 | 23027 | #endif |
90dd450c | 23028 | |
e6cc62c6 VS |
23029 | int |
23030 | main () | |
23031 | { | |
23032 | return f != connect; | |
23033 | ; | |
23034 | return 0; | |
23035 | } | |
23036 | _ACEOF | |
23037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23039 | (eval $ac_link) 2>&5 | |
23040 | ac_status=$? | |
23041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23042 | (exit $ac_status); } && | |
23043 | { ac_try='test -s conftest$ac_exeext' | |
23044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23045 | (eval $ac_try) 2>&5 | |
23046 | ac_status=$? | |
23047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23048 | (exit $ac_status); }; }; then | |
23049 | ac_cv_func_connect=yes | |
23050 | else | |
23051 | echo "$as_me: failed program was:" >&5 | |
23052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23053 | ||
23054 | ac_cv_func_connect=no | |
23055 | fi | |
23056 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23057 | fi | |
23058 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23059 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23060 | |
21d1c967 | 23061 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23062 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23063 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23064 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23066 | else |
e6cc62c6 | 23067 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23068 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23069 | cat >conftest.$ac_ext <<_ACEOF |
23070 | #line $LINENO "configure" | |
23071 | /* confdefs.h. */ | |
23072 | _ACEOF | |
23073 | cat confdefs.h >>conftest.$ac_ext | |
23074 | cat >>conftest.$ac_ext <<_ACEOF | |
23075 | /* end confdefs.h. */ | |
23076 | ||
21d1c967 | 23077 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23078 | #ifdef __cplusplus |
23079 | extern "C" | |
23080 | #endif | |
21d1c967 | 23081 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23082 | builtin and then its argument prototype would still apply. */ |
23083 | char connect (); | |
23084 | int | |
23085 | main () | |
23086 | { | |
23087 | connect (); | |
23088 | ; | |
23089 | return 0; | |
23090 | } | |
23091 | _ACEOF | |
23092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23094 | (eval $ac_link) 2>&5 | |
23095 | ac_status=$? | |
23096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23097 | (exit $ac_status); } && | |
23098 | { ac_try='test -s conftest$ac_exeext' | |
23099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23100 | (eval $ac_try) 2>&5 | |
23101 | ac_status=$? | |
23102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23103 | (exit $ac_status); }; }; then | |
23104 | ac_cv_lib_socket_connect=yes | |
23105 | else | |
23106 | echo "$as_me: failed program was:" >&5 | |
23107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23108 | ||
23109 | ac_cv_lib_socket_connect=no | |
23110 | fi | |
23111 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23112 | LIBS=$ac_check_lib_save_LIBS | |
23113 | fi | |
23114 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23115 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23116 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23117 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23118 | fi |
90dd450c | 23119 | |
21d1c967 | 23120 | fi |
90dd450c | 23121 | |
e6cc62c6 VS |
23122 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23123 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23124 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23125 | if test "${ac_cv_func_remove+set}" = set; then | |
23126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23127 | else | |
23128 | cat >conftest.$ac_ext <<_ACEOF | |
23129 | #line $LINENO "configure" | |
23130 | /* confdefs.h. */ | |
23131 | _ACEOF | |
23132 | cat confdefs.h >>conftest.$ac_ext | |
23133 | cat >>conftest.$ac_ext <<_ACEOF | |
23134 | /* end confdefs.h. */ | |
21d1c967 | 23135 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23136 | which can conflict with char remove (); below. |
23137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23138 | <limits.h> exists even on freestanding compilers. */ | |
23139 | #ifdef __STDC__ | |
23140 | # include <limits.h> | |
23141 | #else | |
23142 | # include <assert.h> | |
23143 | #endif | |
21d1c967 | 23144 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23145 | #ifdef __cplusplus |
23146 | extern "C" | |
23147 | { | |
23148 | #endif | |
21d1c967 | 23149 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23150 | builtin and then its argument prototype would still apply. */ |
23151 | char remove (); | |
21d1c967 GD |
23152 | /* The GNU C library defines this for functions which it implements |
23153 | to always fail with ENOSYS. Some functions are actually named | |
23154 | something starting with __ and the normal name is an alias. */ | |
23155 | #if defined (__stub_remove) || defined (__stub___remove) | |
23156 | choke me | |
23157 | #else | |
e6cc62c6 VS |
23158 | char (*f) () = remove; |
23159 | #endif | |
23160 | #ifdef __cplusplus | |
23161 | } | |
21d1c967 | 23162 | #endif |
90dd450c | 23163 | |
e6cc62c6 VS |
23164 | int |
23165 | main () | |
23166 | { | |
23167 | return f != remove; | |
23168 | ; | |
23169 | return 0; | |
23170 | } | |
23171 | _ACEOF | |
23172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23174 | (eval $ac_link) 2>&5 | |
23175 | ac_status=$? | |
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23177 | (exit $ac_status); } && | |
23178 | { ac_try='test -s conftest$ac_exeext' | |
23179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23180 | (eval $ac_try) 2>&5 | |
23181 | ac_status=$? | |
23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23183 | (exit $ac_status); }; }; then | |
23184 | ac_cv_func_remove=yes | |
23185 | else | |
23186 | echo "$as_me: failed program was:" >&5 | |
23187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23188 | ||
23189 | ac_cv_func_remove=no | |
23190 | fi | |
23191 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23192 | fi | |
23193 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23194 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23195 | |
21d1c967 | 23196 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23197 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23198 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23199 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23201 | else |
e6cc62c6 | 23202 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23203 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23204 | cat >conftest.$ac_ext <<_ACEOF |
23205 | #line $LINENO "configure" | |
23206 | /* confdefs.h. */ | |
23207 | _ACEOF | |
23208 | cat confdefs.h >>conftest.$ac_ext | |
23209 | cat >>conftest.$ac_ext <<_ACEOF | |
23210 | /* end confdefs.h. */ | |
23211 | ||
21d1c967 | 23212 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23213 | #ifdef __cplusplus |
23214 | extern "C" | |
23215 | #endif | |
21d1c967 | 23216 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23217 | builtin and then its argument prototype would still apply. */ |
23218 | char remove (); | |
23219 | int | |
23220 | main () | |
23221 | { | |
23222 | remove (); | |
23223 | ; | |
23224 | return 0; | |
23225 | } | |
23226 | _ACEOF | |
23227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23229 | (eval $ac_link) 2>&5 | |
23230 | ac_status=$? | |
23231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23232 | (exit $ac_status); } && | |
23233 | { ac_try='test -s conftest$ac_exeext' | |
23234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23235 | (eval $ac_try) 2>&5 | |
23236 | ac_status=$? | |
23237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23238 | (exit $ac_status); }; }; then | |
23239 | ac_cv_lib_posix_remove=yes | |
23240 | else | |
23241 | echo "$as_me: failed program was:" >&5 | |
23242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23243 | ||
23244 | ac_cv_lib_posix_remove=no | |
23245 | fi | |
23246 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23247 | LIBS=$ac_check_lib_save_LIBS | |
23248 | fi | |
23249 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23250 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23251 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23252 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23253 | fi |
19bc6aad | 23254 | |
90dd450c | 23255 | fi |
19bc6aad | 23256 | |
21d1c967 | 23257 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23258 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23259 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23260 | if test "${ac_cv_func_shmat+set}" = set; then | |
23261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23262 | else | |
23263 | cat >conftest.$ac_ext <<_ACEOF | |
23264 | #line $LINENO "configure" | |
23265 | /* confdefs.h. */ | |
23266 | _ACEOF | |
23267 | cat confdefs.h >>conftest.$ac_ext | |
23268 | cat >>conftest.$ac_ext <<_ACEOF | |
23269 | /* end confdefs.h. */ | |
21d1c967 | 23270 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23271 | which can conflict with char shmat (); below. |
23272 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23273 | <limits.h> exists even on freestanding compilers. */ | |
23274 | #ifdef __STDC__ | |
23275 | # include <limits.h> | |
23276 | #else | |
23277 | # include <assert.h> | |
23278 | #endif | |
21d1c967 | 23279 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23280 | #ifdef __cplusplus |
23281 | extern "C" | |
23282 | { | |
23283 | #endif | |
21d1c967 | 23284 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23285 | builtin and then its argument prototype would still apply. */ |
23286 | char shmat (); | |
21d1c967 GD |
23287 | /* The GNU C library defines this for functions which it implements |
23288 | to always fail with ENOSYS. Some functions are actually named | |
23289 | something starting with __ and the normal name is an alias. */ | |
23290 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23291 | choke me | |
23292 | #else | |
e6cc62c6 VS |
23293 | char (*f) () = shmat; |
23294 | #endif | |
23295 | #ifdef __cplusplus | |
23296 | } | |
21d1c967 | 23297 | #endif |
90dd450c | 23298 | |
e6cc62c6 VS |
23299 | int |
23300 | main () | |
23301 | { | |
23302 | return f != shmat; | |
23303 | ; | |
23304 | return 0; | |
23305 | } | |
23306 | _ACEOF | |
23307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23309 | (eval $ac_link) 2>&5 | |
23310 | ac_status=$? | |
23311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23312 | (exit $ac_status); } && | |
23313 | { ac_try='test -s conftest$ac_exeext' | |
23314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23315 | (eval $ac_try) 2>&5 | |
23316 | ac_status=$? | |
23317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23318 | (exit $ac_status); }; }; then | |
23319 | ac_cv_func_shmat=yes | |
23320 | else | |
23321 | echo "$as_me: failed program was:" >&5 | |
23322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23323 | ||
23324 | ac_cv_func_shmat=no | |
23325 | fi | |
23326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23327 | fi | |
23328 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23329 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23330 | |
21d1c967 | 23331 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23332 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23333 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23334 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23336 | else |
e6cc62c6 | 23337 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23338 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23339 | cat >conftest.$ac_ext <<_ACEOF |
23340 | #line $LINENO "configure" | |
23341 | /* confdefs.h. */ | |
23342 | _ACEOF | |
23343 | cat confdefs.h >>conftest.$ac_ext | |
23344 | cat >>conftest.$ac_ext <<_ACEOF | |
23345 | /* end confdefs.h. */ | |
23346 | ||
5c6fa7d2 | 23347 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23348 | #ifdef __cplusplus |
23349 | extern "C" | |
23350 | #endif | |
5c6fa7d2 | 23351 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23352 | builtin and then its argument prototype would still apply. */ |
23353 | char shmat (); | |
23354 | int | |
23355 | main () | |
23356 | { | |
23357 | shmat (); | |
23358 | ; | |
23359 | return 0; | |
23360 | } | |
23361 | _ACEOF | |
23362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23364 | (eval $ac_link) 2>&5 | |
23365 | ac_status=$? | |
23366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23367 | (exit $ac_status); } && | |
23368 | { ac_try='test -s conftest$ac_exeext' | |
23369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23370 | (eval $ac_try) 2>&5 | |
23371 | ac_status=$? | |
23372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23373 | (exit $ac_status); }; }; then | |
23374 | ac_cv_lib_ipc_shmat=yes | |
23375 | else | |
23376 | echo "$as_me: failed program was:" >&5 | |
23377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23378 | ||
23379 | ac_cv_lib_ipc_shmat=no | |
23380 | fi | |
23381 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23382 | LIBS=$ac_check_lib_save_LIBS | |
23383 | fi | |
23384 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23385 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23386 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23387 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23388 | fi |
90dd450c | 23389 | |
90dd450c | 23390 | fi |
21d1c967 | 23391 | fi |
10f2d63a | 23392 | |
21d1c967 | 23393 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23394 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23395 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23396 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23397 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23398 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23399 | # These have to be linked with before -lX11, unlike the other | |
23400 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23401 | # John Interrante, Karl Berry |
23402 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23403 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23404 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23406 | else | |
23407 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23408 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23409 | cat >conftest.$ac_ext <<_ACEOF |
23410 | #line $LINENO "configure" | |
23411 | /* confdefs.h. */ | |
23412 | _ACEOF | |
23413 | cat confdefs.h >>conftest.$ac_ext | |
23414 | cat >>conftest.$ac_ext <<_ACEOF | |
23415 | /* end confdefs.h. */ | |
23416 | ||
21d1c967 | 23417 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23418 | #ifdef __cplusplus |
23419 | extern "C" | |
23420 | #endif | |
21d1c967 | 23421 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23422 | builtin and then its argument prototype would still apply. */ |
23423 | char IceConnectionNumber (); | |
23424 | int | |
23425 | main () | |
23426 | { | |
23427 | IceConnectionNumber (); | |
23428 | ; | |
23429 | return 0; | |
23430 | } | |
23431 | _ACEOF | |
23432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23434 | (eval $ac_link) 2>&5 | |
23435 | ac_status=$? | |
23436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23437 | (exit $ac_status); } && | |
23438 | { ac_try='test -s conftest$ac_exeext' | |
23439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23440 | (eval $ac_try) 2>&5 | |
23441 | ac_status=$? | |
23442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23443 | (exit $ac_status); }; }; then | |
23444 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23445 | else | |
23446 | echo "$as_me: failed program was:" >&5 | |
23447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23448 | ||
23449 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23450 | fi | |
23451 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23452 | LIBS=$ac_check_lib_save_LIBS | |
23453 | fi | |
23454 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23455 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23456 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23457 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23458 | fi |
21d1c967 | 23459 | |
e6cc62c6 | 23460 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23461 | |
10f2d63a VZ |
23462 | fi |
23463 | ||
8284b0c5 | 23464 | |
21d1c967 | 23465 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23466 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23467 | echo "$as_me: error: X11 not found" >&2;} | |
23468 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23469 | fi |
23470 | ||
2b5f62a0 VZ |
23471 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23472 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23473 | AFMINSTALL=afminstall |
23474 | COMPILED_X_PROGRAM=0 | |
23475 | ||
e6cc62c6 VS |
23476 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23477 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23478 | ||
21d1c967 | 23479 | ac_find_includes= |
2b5f62a0 | 23480 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23481 | do |
23482 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23483 | ac_find_includes=$ac_dir | |
23484 | break | |
23485 | fi | |
23486 | done | |
23487 | ||
23488 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23489 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23490 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23491 | ||
2b5f62a0 | 23492 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23493 | ac_path_to_include="" |
23494 | else | |
2b5f62a0 VZ |
23495 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23496 | result=$? | |
23497 | if test $result = 0; then | |
23498 | ac_path_to_include="" | |
23499 | else | |
23500 | ac_path_to_include=" -I$ac_find_includes" | |
23501 | fi | |
dd0e4a90 VZ |
23502 | fi |
23503 | ||
23504 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23505 | else |
e6cc62c6 VS |
23506 | cat >conftest.$ac_ext <<_ACEOF |
23507 | #line $LINENO "configure" | |
23508 | /* confdefs.h. */ | |
23509 | _ACEOF | |
23510 | cat confdefs.h >>conftest.$ac_ext | |
23511 | cat >>conftest.$ac_ext <<_ACEOF | |
23512 | /* end confdefs.h. */ | |
21d1c967 GD |
23513 | |
23514 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23515 | |
23516 | int | |
23517 | main () | |
23518 | { | |
21d1c967 GD |
23519 | |
23520 | int version; | |
23521 | version = xmUseVersion; | |
e6cc62c6 VS |
23522 | |
23523 | ; | |
23524 | return 0; | |
23525 | } | |
23526 | _ACEOF | |
23527 | rm -f conftest.$ac_objext | |
23528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23529 | (eval $ac_compile) 2>&5 | |
23530 | ac_status=$? | |
23531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23532 | (exit $ac_status); } && | |
23533 | { ac_try='test -s conftest.$ac_objext' | |
23534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23535 | (eval $ac_try) 2>&5 | |
23536 | ac_status=$? | |
23537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23538 | (exit $ac_status); }; }; then | |
23539 | ||
23540 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23541 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23542 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23543 | |
10f2d63a | 23544 | else |
e6cc62c6 VS |
23545 | echo "$as_me: failed program was:" >&5 |
23546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23547 | ||
23548 | ||
23549 | echo "$as_me:$LINENO: result: no" >&5 | |
23550 | echo "${ECHO_T}no" >&6 | |
23551 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23552 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23553 | { (exit 1); exit 1; }; } | |
23554 | ||
23555 | ||
10f2d63a | 23556 | fi |
e6cc62c6 | 23557 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 23558 | fi |
10f2d63a | 23559 | |
21d1c967 | 23560 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
23561 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
23562 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23563 | ||
21d1c967 | 23564 | ac_find_libraries= |
2b5f62a0 | 23565 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23566 | do |
23567 | for ac_extension in a so sl dylib; do | |
23568 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23569 | ac_find_libraries=$ac_dir | |
23570 | break 2 | |
23571 | fi | |
23572 | done | |
23573 | done | |
23574 | ||
23575 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
23576 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23577 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23578 | ||
21d1c967 | 23579 | |
21d1c967 GD |
23580 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23581 | result=$? | |
23582 | if test $result = 0; then | |
23583 | ac_path_to_link="" | |
23584 | else | |
23585 | ac_path_to_link=" -L$ac_find_libraries" | |
23586 | fi | |
23587 | ||
21d1c967 | 23588 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 23589 | else |
dd0e4a90 VZ |
23590 | save_CFLAGS=$CFLAGS |
23591 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23592 | ||
e6cc62c6 VS |
23593 | cat >conftest.$ac_ext <<_ACEOF |
23594 | #line $LINENO "configure" | |
23595 | /* confdefs.h. */ | |
23596 | _ACEOF | |
23597 | cat confdefs.h >>conftest.$ac_ext | |
23598 | cat >>conftest.$ac_ext <<_ACEOF | |
23599 | /* end confdefs.h. */ | |
21d1c967 GD |
23600 | |
23601 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23602 | |
23603 | int | |
23604 | main () | |
23605 | { | |
21d1c967 GD |
23606 | |
23607 | int version; | |
23608 | version = xmUseVersion; | |
e6cc62c6 VS |
23609 | |
23610 | ; | |
23611 | return 0; | |
23612 | } | |
23613 | _ACEOF | |
23614 | rm -f conftest.$ac_objext | |
23615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23616 | (eval $ac_compile) 2>&5 | |
23617 | ac_status=$? | |
23618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23619 | (exit $ac_status); } && | |
23620 | { ac_try='test -s conftest.$ac_objext' | |
23621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23622 | (eval $ac_try) 2>&5 | |
23623 | ac_status=$? | |
23624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23625 | (exit $ac_status); }; }; then | |
23626 | ||
23627 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23628 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23629 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23630 | |
d836ee96 | 23631 | else |
e6cc62c6 VS |
23632 | echo "$as_me: failed program was:" >&5 |
23633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23634 | ||
23635 | ||
23636 | echo "$as_me:$LINENO: result: no" >&5 | |
23637 | echo "${ECHO_T}no" >&6 | |
23638 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23639 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23640 | { (exit 1); exit 1; }; } | |
23641 | ||
23642 | ||
d836ee96 | 23643 | fi |
e6cc62c6 | 23644 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23645 | |
23646 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23647 | fi |
23648 | fi | |
23649 | ||
23650 | xpm_link= | |
e6cc62c6 VS |
23651 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
23652 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
23653 | ||
21d1c967 | 23654 | ac_find_libraries= |
2b5f62a0 | 23655 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23656 | do |
23657 | for ac_extension in a so sl dylib; do | |
23658 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
23659 | ac_find_libraries=$ac_dir | |
23660 | break 2 | |
23661 | fi | |
23662 | done | |
23663 | done | |
23664 | ||
23665 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 23666 | |
21d1c967 GD |
23667 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23668 | result=$? | |
23669 | if test $result = 0; then | |
23670 | ac_path_to_link="" | |
23671 | else | |
23672 | ac_path_to_link=" -L$ac_find_libraries" | |
23673 | fi | |
23674 | ||
23675 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 23676 | |
21d1c967 | 23677 | xpm_link=" -lXpm" |
e6cc62c6 | 23678 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23679 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23680 | _ACEOF |
90dd450c | 23681 | |
e6cc62c6 VS |
23682 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23683 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 23684 | else |
dd0e4a90 VZ |
23685 | save_CFLAGS=$CFLAGS |
23686 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23687 | ||
e6cc62c6 VS |
23688 | cat >conftest.$ac_ext <<_ACEOF |
23689 | #line $LINENO "configure" | |
23690 | /* confdefs.h. */ | |
23691 | _ACEOF | |
23692 | cat confdefs.h >>conftest.$ac_ext | |
23693 | cat >>conftest.$ac_ext <<_ACEOF | |
23694 | /* end confdefs.h. */ | |
21d1c967 GD |
23695 | |
23696 | #include <X11/xpm.h> | |
e6cc62c6 VS |
23697 | |
23698 | int | |
23699 | main () | |
23700 | { | |
21d1c967 GD |
23701 | |
23702 | int version; | |
23703 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
23704 | |
23705 | ; | |
23706 | return 0; | |
23707 | } | |
23708 | _ACEOF | |
23709 | rm -f conftest.$ac_objext | |
23710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23711 | (eval $ac_compile) 2>&5 | |
23712 | ac_status=$? | |
23713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23714 | (exit $ac_status); } && | |
23715 | { ac_try='test -s conftest.$ac_objext' | |
23716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23717 | (eval $ac_try) 2>&5 | |
23718 | ac_status=$? | |
23719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23720 | (exit $ac_status); }; }; then | |
23721 | ||
21d1c967 | 23722 | xpm_link=" -lXpm" |
e6cc62c6 | 23723 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23724 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23725 | _ACEOF |
21d1c967 | 23726 | |
e6cc62c6 VS |
23727 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
23728 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23729 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 23730 | |
d836ee96 | 23731 | else |
e6cc62c6 VS |
23732 | echo "$as_me: failed program was:" >&5 |
23733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23734 | ||
23735 | ||
23736 | echo "$as_me:$LINENO: result: no" >&5 | |
23737 | echo "${ECHO_T}no" >&6 | |
23738 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
23739 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
23740 | ||
23741 | ||
d836ee96 | 23742 | fi |
e6cc62c6 | 23743 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23744 | |
23745 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23746 | fi |
23747 | ||
e6cc62c6 VS |
23748 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
23749 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
23750 | libp_link="" |
23751 | libsm_ice_link="" | |
23752 | libs_found=0 | |
23753 | for libp in "" " -lXp"; do | |
23754 | if test "$libs_found" = "0"; then | |
23755 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 23756 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
23757 | save_LIBS="$LIBS" |
23758 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
23759 | save_CFLAGS=$CFLAGS |
23760 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23761 | ||
e6cc62c6 VS |
23762 | cat >conftest.$ac_ext <<_ACEOF |
23763 | #line $LINENO "configure" | |
23764 | /* confdefs.h. */ | |
23765 | _ACEOF | |
23766 | cat confdefs.h >>conftest.$ac_ext | |
23767 | cat >>conftest.$ac_ext <<_ACEOF | |
23768 | /* end confdefs.h. */ | |
17234b26 | 23769 | |
6a30f1c8 MB |
23770 | #include <Xm/Xm.h> |
23771 | #include <Xm/List.h> | |
e6cc62c6 VS |
23772 | |
23773 | int | |
23774 | main () | |
23775 | { | |
6a30f1c8 MB |
23776 | |
23777 | XmString string = NULL; | |
23778 | Widget w = NULL; | |
23779 | int position = 0; | |
23780 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
23781 | |
23782 | ; | |
23783 | return 0; | |
23784 | } | |
23785 | _ACEOF | |
23786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23788 | (eval $ac_link) 2>&5 | |
23789 | ac_status=$? | |
23790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23791 | (exit $ac_status); } && | |
23792 | { ac_try='test -s conftest$ac_exeext' | |
23793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23794 | (eval $ac_try) 2>&5 | |
23795 | ac_status=$? | |
23796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23797 | (exit $ac_status); }; }; then | |
23798 | ||
6a30f1c8 MB |
23799 | libp_link="$libp" |
23800 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
23801 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
23802 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 23803 | libs_found=1 |
e6cc62c6 | 23804 | |
6a30f1c8 | 23805 | else |
e6cc62c6 VS |
23806 | echo "$as_me: failed program was:" >&5 |
23807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23808 | ||
23809 | ||
23810 | ||
6a30f1c8 | 23811 | fi |
e6cc62c6 | 23812 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 23813 | |
6a30f1c8 | 23814 | LIBS="$save_LIBS" |
dd0e4a90 | 23815 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
23816 | fi |
23817 | done | |
23818 | fi | |
23819 | done | |
23820 | ||
23821 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
23822 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
23823 | echo "${ECHO_T}can't find the right libraries" >&6 | |
23824 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
23825 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
23826 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
23827 | fi |
23828 | ||
da494b40 MB |
23829 | save_CFLAGS=$CFLAGS |
23830 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
23831 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
23832 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
23833 | cat >conftest.$ac_ext <<_ACEOF | |
23834 | #line $LINENO "configure" | |
23835 | /* confdefs.h. */ | |
23836 | _ACEOF | |
23837 | cat confdefs.h >>conftest.$ac_ext | |
23838 | cat >>conftest.$ac_ext <<_ACEOF | |
23839 | /* end confdefs.h. */ | |
da494b40 MB |
23840 | |
23841 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23842 | |
23843 | int | |
23844 | main () | |
23845 | { | |
da494b40 MB |
23846 | |
23847 | #if XmVersion < 2000 | |
23848 | #error "Not Motif 2" | |
23849 | #endif | |
e6cc62c6 VS |
23850 | |
23851 | ; | |
23852 | return 0; | |
23853 | } | |
23854 | _ACEOF | |
23855 | rm -f conftest.$ac_objext | |
23856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23857 | (eval $ac_compile) 2>&5 | |
23858 | ac_status=$? | |
23859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23860 | (exit $ac_status); } && | |
23861 | { ac_try='test -s conftest.$ac_objext' | |
23862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23863 | (eval $ac_try) 2>&5 | |
23864 | ac_status=$? | |
23865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23866 | (exit $ac_status); }; }; then | |
23867 | ||
23868 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 23869 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
23870 | _ACEOF |
23871 | ||
23872 | echo "$as_me:$LINENO: result: found" >&5 | |
23873 | echo "${ECHO_T}found" >&6 | |
da494b40 | 23874 | |
da494b40 | 23875 | else |
e6cc62c6 VS |
23876 | echo "$as_me: failed program was:" >&5 |
23877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23878 | ||
23879 | ||
23880 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 23881 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
23882 | _ACEOF |
23883 | ||
23884 | echo "$as_me:$LINENO: result: not found" >&5 | |
23885 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 23886 | |
da494b40 | 23887 | fi |
e6cc62c6 | 23888 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
23889 | CFLAGS=$save_CFLAGS |
23890 | ||
6a30f1c8 | 23891 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 23892 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
23893 | TOOLKIT=MOTIF |
23894 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
23895 | wxHAVE_XEXT_LIB=1 |
23896 | fi | |
23897 | ||
23898 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
23899 | test "$wxHAVE_XEXT_LIB" = 1; then | |
23900 | save_CFLAGS="$CFLAGS" | |
23901 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23902 | ||
e6cc62c6 VS |
23903 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
23904 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
23905 | cat >conftest.$ac_ext <<_ACEOF | |
23906 | #line $LINENO "configure" | |
23907 | /* confdefs.h. */ | |
23908 | _ACEOF | |
23909 | cat confdefs.h >>conftest.$ac_ext | |
23910 | cat >>conftest.$ac_ext <<_ACEOF | |
23911 | /* end confdefs.h. */ | |
23912 | ||
23913 | #include <X11/Xlib.h> | |
f7f78039 | 23914 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
23915 | |
23916 | int | |
23917 | main () | |
23918 | { | |
f7f78039 MB |
23919 | |
23920 | int dummy1, dummy2; | |
23921 | XShapeQueryExtension((Display*)NULL, | |
23922 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
23923 | |
23924 | ; | |
23925 | return 0; | |
23926 | } | |
23927 | _ACEOF | |
23928 | rm -f conftest.$ac_objext | |
23929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23930 | (eval $ac_compile) 2>&5 | |
23931 | ac_status=$? | |
23932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23933 | (exit $ac_status); } && | |
23934 | { ac_try='test -s conftest.$ac_objext' | |
23935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23936 | (eval $ac_try) 2>&5 | |
23937 | ac_status=$? | |
23938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23939 | (exit $ac_status); }; }; then | |
23940 | ||
23941 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 23942 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
23943 | _ACEOF |
23944 | ||
23945 | echo "$as_me:$LINENO: result: found" >&5 | |
23946 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 23947 | |
f7f78039 | 23948 | else |
e6cc62c6 VS |
23949 | echo "$as_me: failed program was:" >&5 |
23950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23951 | ||
23952 | ||
23953 | echo "$as_me:$LINENO: result: not found" >&5 | |
23954 | echo "${ECHO_T}not found" >&6 | |
23955 | ||
f7f78039 | 23956 | fi |
e6cc62c6 | 23957 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 23958 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
23959 | fi |
23960 | ||
23961 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 23962 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 23963 | |
0c98a14e | 23964 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
23965 | TOOLKIT=MAC |
23966 | GUIDIST=MACX_DIST | |
23967 | fi | |
23968 | ||
ac0c4cc3 DE |
23969 | if test "$wxUSE_COCOA" = 1; then |
23970 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
23971 | TOOLKIT=COCOA | |
23972 | GUIDIST=COCOA_DIST | |
23973 | fi | |
23974 | ||
21d1c967 GD |
23975 | if test "$wxUSE_PM" = 1; then |
23976 | TOOLKIT=PM | |
23977 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
23978 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
23979 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 23980 | wxUSE_THREADS="no" |
21d1c967 GD |
23981 | fi |
23982 | ||
23983 | if test "$TOOLKIT" = "PM" ; then | |
23984 | TOOLKIT_DIR="os2" | |
23985 | else | |
23986 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
23987 | fi | |
23988 | ||
23989 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
23990 | ||
23991 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
23992 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
23993 | ||
23994 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
23995 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
23996 | ||
23997 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
23998 | if test "$wxUSE_X11" = 1; then | |
23999 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24000 | else | |
24001 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24002 | fi | |
24003 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24004 | WIDGET_SET=univ | |
24005 | else | |
24006 | ALL_OBJECTS="\$(GUIOBJS)" | |
24007 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24008 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24009 | fi | |
24010 | ||
24011 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24012 | ||
24013 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24014 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24015 | fi | |
24016 | ||
24017 | if test "$wxUSE_HTML" = "yes"; then | |
24018 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24019 | fi | |
24020 | ||
24021 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24022 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24023 | fi | |
24024 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24025 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24026 | fi | |
24027 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24028 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24029 | fi | |
24030 | ||
24031 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24032 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24033 | else |
21d1c967 GD |
24034 | USE_GUI=0 |
24035 | ||
24036 | TOOLKIT_DIR="base" | |
24037 | ||
24038 | if test "$USE_WIN32" = 1 ; then | |
24039 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24040 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24041 | ||
24042 | TOOLKIT="MSW" | |
24043 | else | |
24044 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24045 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24046 | fi | |
24047 | ||
24048 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24049 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24050 | ||
24051 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24052 | ||
24053 | GUIDIST="BASE_DIST" | |
24054 | DISTDIR="wxBase" | |
d836ee96 VZ |
24055 | fi |
24056 | ||
8284b0c5 | 24057 | |
8647bec6 RG |
24058 | |
24059 | ||
24060 | IODBC_C_SRC="" | |
24061 | ||
24062 | ||
24063 | if test "$TOOLKIT" != "MSW" ; then | |
24064 | ||
24065 | if test "$wxUSE_ODBC" != "no" ; then | |
e6cc62c6 | 24066 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 24067 | #define wxUSE_ODBC 1 |
e6cc62c6 | 24068 | _ACEOF |
8647bec6 RG |
24069 | |
24070 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
e6cc62c6 | 24071 | |
8647bec6 RG |
24072 | WXODBCFLAG="-D_IODBC_" |
24073 | ||
24074 | ||
24075 | if test "$wxUSE_ODBC" = "sys" ; then | |
e6cc62c6 VS |
24076 | |
24077 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24078 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24079 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24080 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24082 | fi | |
24083 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24084 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24085 | else | |
24086 | # Is the header compilable? | |
24087 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24088 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24089 | cat >conftest.$ac_ext <<_ACEOF | |
24090 | #line $LINENO "configure" | |
24091 | /* confdefs.h. */ | |
24092 | _ACEOF | |
24093 | cat confdefs.h >>conftest.$ac_ext | |
24094 | cat >>conftest.$ac_ext <<_ACEOF | |
24095 | /* end confdefs.h. */ | |
24096 | $ac_includes_default | |
8647bec6 | 24097 | #include <sql.h> |
e6cc62c6 VS |
24098 | _ACEOF |
24099 | rm -f conftest.$ac_objext | |
24100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24101 | (eval $ac_compile) 2>&5 | |
24102 | ac_status=$? | |
24103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24104 | (exit $ac_status); } && | |
24105 | { ac_try='test -s conftest.$ac_objext' | |
24106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24107 | (eval $ac_try) 2>&5 | |
24108 | ac_status=$? | |
24109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24110 | (exit $ac_status); }; }; then | |
24111 | ac_header_compiler=yes | |
24112 | else | |
24113 | echo "$as_me: failed program was:" >&5 | |
24114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24115 | ||
24116 | ac_header_compiler=no | |
24117 | fi | |
24118 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24120 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24121 | ||
24122 | # Is the header present? | |
24123 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24124 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24125 | cat >conftest.$ac_ext <<_ACEOF | |
24126 | #line $LINENO "configure" | |
24127 | /* confdefs.h. */ | |
24128 | _ACEOF | |
24129 | cat confdefs.h >>conftest.$ac_ext | |
24130 | cat >>conftest.$ac_ext <<_ACEOF | |
24131 | /* end confdefs.h. */ | |
24132 | #include <sql.h> | |
24133 | _ACEOF | |
24134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24136 | ac_status=$? | |
24137 | grep -v '^ *+' conftest.er1 >conftest.err | |
24138 | rm -f conftest.er1 | |
24139 | cat conftest.err >&5 | |
24140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24141 | (exit $ac_status); } >/dev/null; then | |
24142 | if test -s conftest.err; then | |
24143 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24144 | else | |
24145 | ac_cpp_err= | |
24146 | fi | |
24147 | else | |
24148 | ac_cpp_err=yes | |
24149 | fi | |
24150 | if test -z "$ac_cpp_err"; then | |
24151 | ac_header_preproc=yes | |
24152 | else | |
24153 | echo "$as_me: failed program was:" >&5 | |
24154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24155 | ||
24156 | ac_header_preproc=no | |
24157 | fi | |
24158 | rm -f conftest.err conftest.$ac_ext | |
24159 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24160 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24161 | ||
24162 | # So? What about this header? | |
24163 | case $ac_header_compiler:$ac_header_preproc in | |
24164 | yes:no ) | |
24165 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24166 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24167 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24168 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24169 | ( | |
24170 | cat <<\_ASBOX | |
24171 | ## ------------------------------------ ## | |
24172 | ## Report this to bug-autoconf@gnu.org. ## | |
24173 | ## ------------------------------------ ## | |
24174 | _ASBOX | |
24175 | ) | | |
24176 | sed "s/^/$as_me: WARNING: /" >&2 | |
24177 | ;; | |
24178 | no:yes ) | |
24179 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24180 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24181 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24182 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24183 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24184 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24185 | ( | |
24186 | cat <<\_ASBOX | |
24187 | ## ------------------------------------ ## | |
24188 | ## Report this to bug-autoconf@gnu.org. ## | |
24189 | ## ------------------------------------ ## | |
24190 | _ASBOX | |
24191 | ) | | |
24192 | sed "s/^/$as_me: WARNING: /" >&2 | |
24193 | ;; | |
24194 | esac | |
24195 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24196 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24197 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24199 | else |
e6cc62c6 VS |
24200 | ac_cv_header_sql_h=$ac_header_preproc |
24201 | fi | |
24202 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24203 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24204 | ||
8647bec6 RG |
24205 | fi |
24206 | ||
e6cc62c6 VS |
24207 | |
24208 | echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5 | |
24209 | echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6 | |
24210 | if test "${ac_cv_search_SQLAllocEnv+set}" = set; then | |
24211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24212 | else |
e6cc62c6 VS |
24213 | ac_func_search_save_LIBS=$LIBS |
24214 | ac_cv_search_SQLAllocEnv=no | |
24215 | cat >conftest.$ac_ext <<_ACEOF | |
24216 | #line $LINENO "configure" | |
24217 | /* confdefs.h. */ | |
24218 | _ACEOF | |
24219 | cat confdefs.h >>conftest.$ac_ext | |
24220 | cat >>conftest.$ac_ext <<_ACEOF | |
24221 | /* end confdefs.h. */ | |
24222 | ||
8647bec6 | 24223 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24224 | #ifdef __cplusplus |
24225 | extern "C" | |
24226 | #endif | |
8647bec6 | 24227 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24228 | builtin and then its argument prototype would still apply. */ |
24229 | char SQLAllocEnv (); | |
24230 | int | |
24231 | main () | |
24232 | { | |
24233 | SQLAllocEnv (); | |
24234 | ; | |
24235 | return 0; | |
24236 | } | |
24237 | _ACEOF | |
24238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24240 | (eval $ac_link) 2>&5 | |
24241 | ac_status=$? | |
24242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24243 | (exit $ac_status); } && | |
24244 | { ac_try='test -s conftest$ac_exeext' | |
24245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24246 | (eval $ac_try) 2>&5 | |
24247 | ac_status=$? | |
24248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24249 | (exit $ac_status); }; }; then | |
8647bec6 RG |
24250 | ac_cv_search_SQLAllocEnv="none required" |
24251 | else | |
e6cc62c6 VS |
24252 | echo "$as_me: failed program was:" >&5 |
24253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24254 | ||
8647bec6 | 24255 | fi |
e6cc62c6 VS |
24256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24257 | if test "$ac_cv_search_SQLAllocEnv" = no; then | |
24258 | for ac_lib in iodbc unixodbc odbc ; do | |
24259 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
24260 | cat >conftest.$ac_ext <<_ACEOF | |
24261 | #line $LINENO "configure" | |
24262 | /* confdefs.h. */ | |
24263 | _ACEOF | |
24264 | cat confdefs.h >>conftest.$ac_ext | |
24265 | cat >>conftest.$ac_ext <<_ACEOF | |
24266 | /* end confdefs.h. */ | |
24267 | ||
8647bec6 | 24268 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24269 | #ifdef __cplusplus |
24270 | extern "C" | |
24271 | #endif | |
8647bec6 | 24272 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24273 | builtin and then its argument prototype would still apply. */ |
24274 | char SQLAllocEnv (); | |
24275 | int | |
24276 | main () | |
24277 | { | |
24278 | SQLAllocEnv (); | |
24279 | ; | |
24280 | return 0; | |
24281 | } | |
24282 | _ACEOF | |
24283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24285 | (eval $ac_link) 2>&5 | |
24286 | ac_status=$? | |
24287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24288 | (exit $ac_status); } && | |
24289 | { ac_try='test -s conftest$ac_exeext' | |
24290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24291 | (eval $ac_try) 2>&5 | |
24292 | ac_status=$? | |
24293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24294 | (exit $ac_status); }; }; then | |
24295 | ac_cv_search_SQLAllocEnv="-l$ac_lib" | |
8647bec6 RG |
24296 | break |
24297 | else | |
e6cc62c6 VS |
24298 | echo "$as_me: failed program was:" >&5 |
24299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24300 | ||
8647bec6 | 24301 | fi |
e6cc62c6 VS |
24302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24303 | done | |
8647bec6 | 24304 | fi |
e6cc62c6 VS |
24305 | LIBS=$ac_func_search_save_LIBS |
24306 | fi | |
24307 | echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5 | |
24308 | echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6 | |
24309 | if test "$ac_cv_search_SQLAllocEnv" != no; then | |
8647bec6 | 24310 | test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS" |
e6cc62c6 VS |
24311 | |
24312 | else | |
24313 | ||
24314 | wxUSE_ODBC=builtin; | |
24315 | { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5 | |
24316 | echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;} | |
24317 | ||
8647bec6 | 24318 | fi |
e6cc62c6 | 24319 | |
fd3d7534 RG |
24320 | fi |
24321 | if test "$wxUSE_ODBC" != "sys" ; then | |
24322 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8647bec6 RG |
24323 | fi |
24324 | ||
24325 | fi | |
e6cc62c6 | 24326 | |
6232543b | 24327 | fi |
21d1c967 GD |
24328 | |
24329 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24330 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24331 | fi |
21d1c967 GD |
24332 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24333 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24334 | fi |
24335 | ||
8284b0c5 | 24336 | |
21d1c967 | 24337 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24338 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24339 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24340 | elif test "$wxUSE_MSW" = 1; then | |
24341 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24342 | else | |
01aa5863 VS |
24343 | |
24344 | ||
24345 | ac_find_includes= | |
24346 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24347 | do | |
24348 | if test -f "$ac_dir/GL/gl.h"; then | |
24349 | ac_find_includes=$ac_dir | |
24350 | break | |
24351 | fi | |
24352 | done | |
24353 | ||
24354 | if test "$ac_find_includes" != "" ; then | |
24355 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24356 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24357 | set -x | |
24358 | ||
24359 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24360 | ac_path_to_include="" | |
24361 | else | |
24362 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24363 | result=$? | |
24364 | if test $result = 0; then | |
24365 | ac_path_to_include="" | |
24366 | else | |
24367 | ac_path_to_include=" -I$ac_find_includes" | |
24368 | fi | |
24369 | fi | |
24370 | ||
24371 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
24372 | set +x | |
24373 | fi | |
24374 | ||
e6cc62c6 VS |
24375 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24376 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24377 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24378 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24380 | fi | |
24381 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24382 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24383 | else | |
24384 | # Is the header compilable? | |
24385 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24386 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24387 | cat >conftest.$ac_ext <<_ACEOF | |
24388 | #line $LINENO "configure" | |
24389 | /* confdefs.h. */ | |
24390 | _ACEOF | |
24391 | cat confdefs.h >>conftest.$ac_ext | |
24392 | cat >>conftest.$ac_ext <<_ACEOF | |
24393 | /* end confdefs.h. */ | |
24394 | $ac_includes_default | |
21d1c967 | 24395 | #include <GL/gl.h> |
e6cc62c6 VS |
24396 | _ACEOF |
24397 | rm -f conftest.$ac_objext | |
24398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24399 | (eval $ac_compile) 2>&5 | |
24400 | ac_status=$? | |
24401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24402 | (exit $ac_status); } && | |
24403 | { ac_try='test -s conftest.$ac_objext' | |
24404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24405 | (eval $ac_try) 2>&5 | |
24406 | ac_status=$? | |
24407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24408 | (exit $ac_status); }; }; then | |
24409 | ac_header_compiler=yes | |
24410 | else | |
24411 | echo "$as_me: failed program was:" >&5 | |
24412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24413 | ||
24414 | ac_header_compiler=no | |
24415 | fi | |
24416 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24417 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24418 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24419 | ||
24420 | # Is the header present? | |
24421 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24422 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24423 | cat >conftest.$ac_ext <<_ACEOF | |
24424 | #line $LINENO "configure" | |
24425 | /* confdefs.h. */ | |
24426 | _ACEOF | |
24427 | cat confdefs.h >>conftest.$ac_ext | |
24428 | cat >>conftest.$ac_ext <<_ACEOF | |
24429 | /* end confdefs.h. */ | |
24430 | #include <GL/gl.h> | |
24431 | _ACEOF | |
24432 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24433 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24434 | ac_status=$? | |
24435 | grep -v '^ *+' conftest.er1 >conftest.err | |
24436 | rm -f conftest.er1 | |
24437 | cat conftest.err >&5 | |
24438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24439 | (exit $ac_status); } >/dev/null; then | |
24440 | if test -s conftest.err; then | |
24441 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24442 | else | |
24443 | ac_cpp_err= | |
24444 | fi | |
24445 | else | |
24446 | ac_cpp_err=yes | |
24447 | fi | |
24448 | if test -z "$ac_cpp_err"; then | |
24449 | ac_header_preproc=yes | |
24450 | else | |
24451 | echo "$as_me: failed program was:" >&5 | |
24452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24453 | ||
24454 | ac_header_preproc=no | |
24455 | fi | |
24456 | rm -f conftest.err conftest.$ac_ext | |
24457 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24458 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24459 | ||
24460 | # So? What about this header? | |
24461 | case $ac_header_compiler:$ac_header_preproc in | |
24462 | yes:no ) | |
24463 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24464 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24465 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24466 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24467 | ( | |
24468 | cat <<\_ASBOX | |
24469 | ## ------------------------------------ ## | |
24470 | ## Report this to bug-autoconf@gnu.org. ## | |
24471 | ## ------------------------------------ ## | |
24472 | _ASBOX | |
24473 | ) | | |
24474 | sed "s/^/$as_me: WARNING: /" >&2 | |
24475 | ;; | |
24476 | no:yes ) | |
24477 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24478 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24479 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24480 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24481 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24482 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24483 | ( | |
24484 | cat <<\_ASBOX | |
24485 | ## ------------------------------------ ## | |
24486 | ## Report this to bug-autoconf@gnu.org. ## | |
24487 | ## ------------------------------------ ## | |
24488 | _ASBOX | |
24489 | ) | | |
24490 | sed "s/^/$as_me: WARNING: /" >&2 | |
24491 | ;; | |
24492 | esac | |
24493 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24494 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24495 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24497 | else | |
24498 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 24499 | fi |
e6cc62c6 VS |
24500 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
24501 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24502 | ||
698dcdb6 | 24503 | fi |
e6cc62c6 VS |
24504 | if test $ac_cv_header_GL_gl_h = yes; then |
24505 | ||
89e3b3e4 VZ |
24506 | found_gl=0 |
24507 | ||
e6cc62c6 VS |
24508 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
24509 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24510 | ||
21d1c967 | 24511 | ac_find_libraries= |
2b5f62a0 | 24512 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24513 | do |
24514 | for ac_extension in a so sl dylib; do | |
24515 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24516 | ac_find_libraries=$ac_dir | |
24517 | break 2 | |
24518 | fi | |
24519 | done | |
24520 | done | |
24521 | ||
24522 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24523 | |
21d1c967 GD |
24524 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24525 | result=$? | |
24526 | if test $result = 0; then | |
24527 | ac_path_to_link="" | |
24528 | else | |
24529 | ac_path_to_link=" -L$ac_find_libraries" | |
24530 | fi | |
24531 | ||
89e3b3e4 VZ |
24532 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
24533 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 24534 | fi |
89e3b3e4 | 24535 | |
e6cc62c6 | 24536 | |
89e3b3e4 VZ |
24537 | ac_find_libraries= |
24538 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24539 | do | |
24540 | for ac_extension in a so sl dylib; do | |
24541 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24542 | ac_find_libraries=$ac_dir | |
24543 | break 2 | |
24544 | fi | |
24545 | done | |
24546 | done | |
24547 | ||
24548 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24549 | |
89e3b3e4 VZ |
24550 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24551 | result=$? | |
24552 | if test $result = 0; then | |
24553 | ac_path_to_link="" | |
24554 | else | |
24555 | ac_path_to_link=" -L$ac_find_libraries" | |
24556 | fi | |
24557 | ||
24558 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24559 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24560 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24561 | fi | |
24562 | ||
24563 | found_gl=1 | |
24564 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
24565 | echo "$as_me:$LINENO: result: yes" >&5 |
24566 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
24567 | fi |
24568 | fi | |
24569 | ||
24570 | if "$found_gl" != 1; then | |
e6cc62c6 VS |
24571 | echo "$as_me:$LINENO: result: no" >&5 |
24572 | echo "${ECHO_T}no" >&6 | |
24573 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
24574 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
24575 | ||
21d1c967 | 24576 | ac_find_libraries= |
2b5f62a0 | 24577 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24578 | do |
24579 | for ac_extension in a so sl dylib; do | |
24580 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
24581 | ac_find_libraries=$ac_dir | |
24582 | break 2 | |
24583 | fi | |
24584 | done | |
24585 | done | |
24586 | ||
24587 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24588 | |
21d1c967 GD |
24589 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24590 | result=$? | |
24591 | if test $result = 0; then | |
24592 | ac_path_to_link="" | |
24593 | else | |
24594 | ac_path_to_link=" -L$ac_find_libraries" | |
24595 | fi | |
24596 | ||
24597 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
24598 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
24599 | echo "$as_me:$LINENO: result: yes" >&5 |
24600 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 24601 | else |
e6cc62c6 VS |
24602 | echo "$as_me:$LINENO: result: no" >&5 |
24603 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24604 | fi |
24605 | fi | |
e6cc62c6 | 24606 | |
5c6fa7d2 | 24607 | fi |
52127426 | 24608 | |
8284b0c5 | 24609 | |
e6cc62c6 | 24610 | |
21d1c967 | 24611 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
24612 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
24613 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
24614 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
24615 | fi |
24616 | fi | |
90dd450c | 24617 | |
21d1c967 | 24618 | if test "$wxUSE_OPENGL" = "yes"; then |
e6cc62c6 | 24619 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24620 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 24621 | _ACEOF |
21d1c967 | 24622 | |
e6cc62c6 | 24623 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24624 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 24625 | _ACEOF |
21d1c967 GD |
24626 | |
24627 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
24628 | fi | |
10f2d63a | 24629 | fi |
21d1c967 GD |
24630 | |
24631 | if test -z "$TOOLKIT_VPATH" ; then | |
24632 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 24633 | fi |
21d1c967 GD |
24634 | |
24635 | if test -n "$TOOLKIT" ; then | |
24636 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
24637 | fi | |
24638 | ||
fe0895cf | 24639 | UNICODE=0 |
21d1c967 GD |
24640 | lib_unicode_suffix= |
24641 | if test "$wxUSE_UNICODE" = "yes"; then | |
24642 | lib_unicode_suffix=u | |
fe0895cf | 24643 | UNICODE=1 |
90dd450c | 24644 | fi |
698dcdb6 | 24645 | |
21d1c967 | 24646 | lib_debug_suffix= |
fe0895cf | 24647 | BUILD=release |
21d1c967 GD |
24648 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
24649 | lib_debug_suffix=d | |
fe0895cf | 24650 | BUILD=debug |
21d1c967 | 24651 | fi |
698dcdb6 | 24652 | |
2b5f62a0 VZ |
24653 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
24654 | ||
24655 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
24656 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
24657 | |
24658 | if test "$cross_compiling" = "yes"; then | |
24659 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
24660 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
24661 | fi | |
24662 | ||
24663 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
24664 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 24665 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
24666 | |
24667 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24668 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24669 | ||
24670 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
24671 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24672 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
24673 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24674 | ||
24675 | case "${host}" in | |
24676 | *-*-cygwin* | *-*-mingw32* ) | |
24677 | ||
e6cc62c6 VS |
24678 | |
24679 | ||
17234b26 | 24680 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
24681 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
24682 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
24683 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
24684 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24685 | else | |
24686 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24687 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24688 | fi | |
24689 | ;; | |
24690 | ||
24691 | *-*-darwin* ) | |
e6cc62c6 | 24692 | |
05159a27 GD |
24693 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
24694 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
24695 | ||
24696 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
24697 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24698 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
24699 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24700 | ||
21d1c967 | 24701 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
24702 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
24703 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
24704 | fi |
24705 | ;; | |
24706 | esac | |
24707 | ||
24708 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
24709 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
24710 | ||
24711 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
24712 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
24713 | ||
24714 | if test "$wxUSE_OPENGL" = "yes"; then | |
24715 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
24716 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
24717 | fi | |
24718 | ||
8284b0c5 MB |
24719 | |
24720 | ||
21d1c967 GD |
24721 | if test "$wxUSE_SHARED" = "yes"; then |
24722 | case "${host}" in | |
24723 | *-pc-os2_emx | *-pc-os2-emx | \ | |
24724 | *-pc-msdosdjgpp ) | |
24725 | wxUSE_SHARED=no | |
e6cc62c6 VS |
24726 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
24727 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
24728 | ;; |
24729 | esac | |
24730 | fi | |
24731 | ||
fe0895cf | 24732 | SHARED=0 |
2b5f62a0 | 24733 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 24734 | SHARED=1 |
2b5f62a0 | 24735 | |
e6cc62c6 | 24736 | |
2b5f62a0 VZ |
24737 | found_versioning=no |
24738 | ||
e6cc62c6 | 24739 | |
2b5f62a0 | 24740 | if test $found_versioning = no ; then |
e6cc62c6 VS |
24741 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
24742 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
24743 | if test "${wx_cv_version_script+set}" = set; then | |
24744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24745 | else |
e6cc62c6 | 24746 | |
2b5f62a0 VZ |
24747 | echo "VER_1 { *; };" >conftest.sym |
24748 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 24749 | |
2b5f62a0 VZ |
24750 | if { ac_try=' |
24751 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
24752 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
24753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24754 | (eval $ac_try) 2>&5 | |
24755 | ac_status=$? | |
24756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24757 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
24758 | if test -s conftest.stderr ; then |
24759 | wx_cv_version_script=no | |
24760 | else | |
24761 | wx_cv_version_script=yes | |
24762 | fi | |
24763 | else | |
24764 | wx_cv_version_script=no | |
24765 | fi | |
24766 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 24767 | |
e6cc62c6 VS |
24768 | fi |
24769 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
24770 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 24771 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 24772 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
24773 | fi |
24774 | fi | |
21d1c967 | 24775 | |
21d1c967 | 24776 | |
21d1c967 | 24777 | case "${host}" in |
fe0895cf | 24778 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 24779 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
21d1c967 GD |
24780 | ;; |
24781 | ||
24782 | *-*-solaris2* ) | |
24783 | if test "$GCC" = yes ; then | |
24784 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
24785 | |
24786 | saveLdflags="$LDFLAGS" | |
24787 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
24788 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
24789 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
24790 | cat >conftest.$ac_ext <<_ACEOF | |
24791 | #line $LINENO "configure" | |
24792 | /* confdefs.h. */ | |
24793 | _ACEOF | |
24794 | cat confdefs.h >>conftest.$ac_ext | |
24795 | cat >>conftest.$ac_ext <<_ACEOF | |
24796 | /* end confdefs.h. */ | |
24797 | ||
24798 | int | |
24799 | main () | |
24800 | { | |
fe0895cf | 24801 | |
e6cc62c6 VS |
24802 | ; |
24803 | return 0; | |
24804 | } | |
24805 | _ACEOF | |
24806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24808 | (eval $ac_link) 2>&5 | |
24809 | ac_status=$? | |
24810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24811 | (exit $ac_status); } && | |
24812 | { ac_try='test -s conftest$ac_exeext' | |
24813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24814 | (eval $ac_try) 2>&5 | |
24815 | ac_status=$? | |
24816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24817 | (exit $ac_status); }; }; then | |
24818 | ||
24819 | echo "$as_me:$LINENO: result: yes" >&5 | |
24820 | echo "${ECHO_T}yes" >&6 | |
24821 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
24822 | ||
24823 | else | |
24824 | echo "$as_me: failed program was:" >&5 | |
24825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24826 | ||
24827 | ||
24828 | echo "$as_me:$LINENO: result: no" >&5 | |
24829 | echo "${ECHO_T}no" >&6 | |
24830 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
24831 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 24832 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
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 | { | |
24844 | ||
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,-R,\$(top_builddir)lib" | |
24865 | else | |
24866 | echo "$as_me: failed program was:" >&5 | |
24867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 24868 | |
fe0895cf | 24869 | |
e6cc62c6 VS |
24870 | echo "$as_me:$LINENO: result: no" >&5 |
24871 | echo "${ECHO_T}no" >&6 | |
24872 | ||
fe0895cf | 24873 | fi |
e6cc62c6 VS |
24874 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24875 | ||
24876 | fi | |
24877 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 24878 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
24879 | else |
24880 | SHARED_LD="${CXX} -G -o" | |
24881 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 24882 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
24883 | fi |
24884 | ;; | |
24885 | ||
21d1c967 | 24886 | *-*-cygwin* | *-*-mingw32* ) |
f657dbe7 MB |
24887 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
24888 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
24889 | ||
24890 | if test "$wxUSE_OPENGL" = "yes"; then | |
24891 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
24892 | fi |
24893 | ;; | |
21d1c967 GD |
24894 | esac |
24895 | ||
24896 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
24897 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
24898 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
24899 | fi | |
24900 | ||
24901 | WX_TARGET_LIBRARY_TYPE="so" | |
24902 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 24903 | fi |
10f2d63a | 24904 | |
21d1c967 GD |
24905 | if test "$wxUSE_SHARED" = "no"; then |
24906 | ||
24907 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
24908 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
24909 | fi | |
24910 | ||
ac0c4cc3 | 24911 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
24912 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
24913 | fi | |
24914 | ||
24915 | if test "$wxUSE_OPENGL" = "yes"; then | |
24916 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
24917 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
24918 | else | |
24919 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
24920 | fi | |
24921 | ||
24922 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
24923 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
24924 | ||
24925 | WX_TARGET_LIBRARY_TYPE="a" | |
24926 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
24927 | |
24928 | STATIC_FLAG="yes" | |
24929 | else | |
24930 | STATIC_FLAG="no" | |
90dd450c | 24931 | fi |
1e487827 | 24932 | |
93fac604 VZ |
24933 | MACRESCOMP="@#" |
24934 | MACSETFILE="@#" | |
36825681 | 24935 | MACRESWXCONFIG="#" |
21d1c967 | 24936 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 24937 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
24938 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
24939 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
24940 | # Extract the first word of "Rez", so it can be a program name with args. | |
24941 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
24942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24944 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
24945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 24946 | else |
21d1c967 GD |
24947 | if test -n "$RESCOMP"; then |
24948 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 24949 | else |
e6cc62c6 VS |
24950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24951 | for as_dir in $PATH | |
24952 | do | |
24953 | IFS=$as_save_IFS | |
24954 | test -z "$as_dir" && as_dir=. | |
24955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24957 | ac_cv_prog_RESCOMP="Rez" | |
24958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24959 | break 2 | |
24960 | fi | |
24961 | done | |
24962 | done | |
24963 | ||
21d1c967 | 24964 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 24965 | fi |
b93d0d08 | 24966 | fi |
e6cc62c6 | 24967 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 24968 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
24969 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
24970 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 24971 | else |
e6cc62c6 VS |
24972 | echo "$as_me:$LINENO: result: no" >&5 |
24973 | echo "${ECHO_T}no" >&6 | |
90dd450c | 24974 | fi |
b93d0d08 | 24975 | |
21d1c967 GD |
24976 | # Extract the first word of "DeRez", so it can be a program name with args. |
24977 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
24978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24980 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
24981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 24982 | else |
21d1c967 GD |
24983 | if test -n "$DEREZ"; then |
24984 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 24985 | else |
e6cc62c6 VS |
24986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24987 | for as_dir in $PATH | |
24988 | do | |
24989 | IFS=$as_save_IFS | |
24990 | test -z "$as_dir" && as_dir=. | |
24991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24993 | ac_cv_prog_DEREZ="DeRez" | |
24994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24995 | break 2 | |
24996 | fi | |
24997 | done | |
24998 | done | |
24999 | ||
21d1c967 | 25000 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25001 | fi |
90dd450c | 25002 | fi |
e6cc62c6 | 25003 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25004 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25005 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25006 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25007 | else |
e6cc62c6 VS |
25008 | echo "$as_me:$LINENO: result: no" >&5 |
25009 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25010 | fi |
698dcdb6 | 25011 | |
36825681 GD |
25012 | # Extract the first word of "SetFile", so it can be a program name with args. |
25013 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25014 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25016 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25018 | else |
25019 | if test -n "$SETFILE"; then | |
25020 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25021 | else | |
e6cc62c6 VS |
25022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25023 | for as_dir in $PATH | |
25024 | do | |
25025 | IFS=$as_save_IFS | |
25026 | test -z "$as_dir" && as_dir=. | |
25027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25028 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25029 | ac_cv_prog_SETFILE="SetFile" | |
25030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25031 | break 2 | |
25032 | fi | |
25033 | done | |
25034 | done | |
25035 | ||
36825681 GD |
25036 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25037 | fi | |
25038 | fi | |
e6cc62c6 | 25039 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25040 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25041 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25042 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25043 | else |
e6cc62c6 VS |
25044 | echo "$as_me:$LINENO: result: no" >&5 |
25045 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25046 | fi |
25047 | ||
21d1c967 | 25048 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25049 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25050 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25051 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25052 | elif test "$wxUSE_COCOA" = 1; then |
25053 | # Extract the first word of "Rez", so it can be a program name with args. | |
25054 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25057 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25059 | else |
25060 | if test -n "$RESCOMP"; then | |
25061 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25062 | else | |
e6cc62c6 VS |
25063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25064 | for as_dir in $PATH | |
25065 | do | |
25066 | IFS=$as_save_IFS | |
25067 | test -z "$as_dir" && as_dir=. | |
25068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25070 | ac_cv_prog_RESCOMP="Rez" | |
25071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25072 | break 2 | |
25073 | fi | |
25074 | done | |
25075 | done | |
25076 | ||
64440d77 DE |
25077 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25078 | fi | |
25079 | fi | |
e6cc62c6 | 25080 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25081 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25082 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25083 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25084 | else |
e6cc62c6 VS |
25085 | echo "$as_me:$LINENO: result: no" >&5 |
25086 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25087 | fi |
25088 | ||
25089 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25090 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25091 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25093 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25095 | else |
25096 | if test -n "$DEREZ"; then | |
25097 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25098 | else | |
e6cc62c6 VS |
25099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25100 | for as_dir in $PATH | |
25101 | do | |
25102 | IFS=$as_save_IFS | |
25103 | test -z "$as_dir" && as_dir=. | |
25104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25106 | ac_cv_prog_DEREZ="DeRez" | |
25107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25108 | break 2 | |
25109 | fi | |
25110 | done | |
25111 | done | |
25112 | ||
64440d77 DE |
25113 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25114 | fi | |
25115 | fi | |
e6cc62c6 | 25116 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25117 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25118 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25119 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25120 | else |
e6cc62c6 VS |
25121 | echo "$as_me:$LINENO: result: no" >&5 |
25122 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25123 | fi |
25124 | ||
25125 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25126 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25129 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25131 | else |
25132 | if test -n "$SETFILE"; then | |
25133 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25134 | else | |
e6cc62c6 VS |
25135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25136 | for as_dir in $PATH | |
25137 | do | |
25138 | IFS=$as_save_IFS | |
25139 | test -z "$as_dir" && as_dir=. | |
25140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25142 | ac_cv_prog_SETFILE="SetFile" | |
25143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25144 | break 2 | |
25145 | fi | |
25146 | done | |
25147 | done | |
25148 | ||
64440d77 DE |
25149 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25150 | fi | |
25151 | fi | |
e6cc62c6 | 25152 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25153 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25154 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25155 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25156 | else |
e6cc62c6 VS |
25157 | echo "$as_me:$LINENO: result: no" >&5 |
25158 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25159 | fi |
25160 | ||
25161 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25162 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25163 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25164 | else |
25165 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25166 | MACRESCOMP="emxbind -ep" |
90dd450c | 25167 | fi |
4f14bcd8 | 25168 | fi |
10f2d63a | 25169 | |
8284b0c5 | 25170 | |
e6cc62c6 VS |
25171 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25172 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25173 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25175 | else |
e6cc62c6 VS |
25176 | cat >conftest.$ac_ext <<_ACEOF |
25177 | #line $LINENO "configure" | |
25178 | /* confdefs.h. */ | |
25179 | _ACEOF | |
25180 | cat confdefs.h >>conftest.$ac_ext | |
25181 | cat >>conftest.$ac_ext <<_ACEOF | |
25182 | /* end confdefs.h. */ | |
25183 | $ac_includes_default | |
25184 | int | |
25185 | main () | |
25186 | { | |
25187 | if ((mode_t *) 0) | |
25188 | return 0; | |
25189 | if (sizeof (mode_t)) | |
25190 | return 0; | |
25191 | ; | |
25192 | return 0; | |
25193 | } | |
25194 | _ACEOF | |
25195 | rm -f conftest.$ac_objext | |
25196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25197 | (eval $ac_compile) 2>&5 | |
25198 | ac_status=$? | |
25199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25200 | (exit $ac_status); } && | |
25201 | { ac_try='test -s conftest.$ac_objext' | |
25202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25203 | (eval $ac_try) 2>&5 | |
25204 | ac_status=$? | |
25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25206 | (exit $ac_status); }; }; then | |
25207 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25208 | else |
e6cc62c6 VS |
25209 | echo "$as_me: failed program was:" >&5 |
25210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25211 | |
e6cc62c6 | 25212 | ac_cv_type_mode_t=no |
a0b9e27f | 25213 | fi |
e6cc62c6 | 25214 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25215 | fi |
e6cc62c6 VS |
25216 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25217 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25218 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25219 | : |
25220 | else | |
a0b9e27f | 25221 | |
e6cc62c6 VS |
25222 | cat >>confdefs.h <<_ACEOF |
25223 | #define mode_t int | |
25224 | _ACEOF | |
8284b0c5 MB |
25225 | |
25226 | fi | |
25227 | ||
e6cc62c6 VS |
25228 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25229 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25230 | if test "${ac_cv_type_off_t+set}" = set; then | |
25231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25232 | else |
e6cc62c6 VS |
25233 | cat >conftest.$ac_ext <<_ACEOF |
25234 | #line $LINENO "configure" | |
25235 | /* confdefs.h. */ | |
25236 | _ACEOF | |
25237 | cat confdefs.h >>conftest.$ac_ext | |
25238 | cat >>conftest.$ac_ext <<_ACEOF | |
25239 | /* end confdefs.h. */ | |
25240 | $ac_includes_default | |
25241 | int | |
25242 | main () | |
25243 | { | |
25244 | if ((off_t *) 0) | |
25245 | return 0; | |
25246 | if (sizeof (off_t)) | |
25247 | return 0; | |
25248 | ; | |
25249 | return 0; | |
25250 | } | |
25251 | _ACEOF | |
25252 | rm -f conftest.$ac_objext | |
25253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25254 | (eval $ac_compile) 2>&5 | |
25255 | ac_status=$? | |
25256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25257 | (exit $ac_status); } && | |
25258 | { ac_try='test -s conftest.$ac_objext' | |
25259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25260 | (eval $ac_try) 2>&5 | |
25261 | ac_status=$? | |
25262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25263 | (exit $ac_status); }; }; then | |
25264 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25265 | else |
e6cc62c6 VS |
25266 | echo "$as_me: failed program was:" >&5 |
25267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25268 | |
e6cc62c6 | 25269 | ac_cv_type_off_t=no |
8284b0c5 | 25270 | fi |
e6cc62c6 | 25271 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25272 | fi |
e6cc62c6 VS |
25273 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25274 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25275 | if test $ac_cv_type_off_t = yes; then | |
25276 | : | |
247f5006 VZ |
25277 | else |
25278 | ||
e6cc62c6 | 25279 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25280 | #define off_t long |
e6cc62c6 | 25281 | _ACEOF |
10f2d63a | 25282 | |
90dd450c | 25283 | fi |
10f2d63a | 25284 | |
e6cc62c6 VS |
25285 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25286 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25287 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25289 | else |
e6cc62c6 VS |
25290 | cat >conftest.$ac_ext <<_ACEOF |
25291 | #line $LINENO "configure" | |
25292 | /* confdefs.h. */ | |
25293 | _ACEOF | |
25294 | cat confdefs.h >>conftest.$ac_ext | |
25295 | cat >>conftest.$ac_ext <<_ACEOF | |
25296 | /* end confdefs.h. */ | |
25297 | $ac_includes_default | |
25298 | int | |
25299 | main () | |
25300 | { | |
25301 | if ((pid_t *) 0) | |
25302 | return 0; | |
25303 | if (sizeof (pid_t)) | |
25304 | return 0; | |
25305 | ; | |
25306 | return 0; | |
25307 | } | |
25308 | _ACEOF | |
25309 | rm -f conftest.$ac_objext | |
25310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25311 | (eval $ac_compile) 2>&5 | |
25312 | ac_status=$? | |
25313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25314 | (exit $ac_status); } && | |
25315 | { ac_try='test -s conftest.$ac_objext' | |
25316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25317 | (eval $ac_try) 2>&5 | |
25318 | ac_status=$? | |
25319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25320 | (exit $ac_status); }; }; then | |
90dd450c | 25321 | ac_cv_type_pid_t=yes |
698dcdb6 | 25322 | else |
e6cc62c6 VS |
25323 | echo "$as_me: failed program was:" >&5 |
25324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25325 | |
e6cc62c6 VS |
25326 | ac_cv_type_pid_t=no |
25327 | fi | |
25328 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25329 | fi |
e6cc62c6 VS |
25330 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25331 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25332 | if test $ac_cv_type_pid_t = yes; then | |
25333 | : | |
25334 | else | |
25335 | ||
25336 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25337 | #define pid_t int |
e6cc62c6 | 25338 | _ACEOF |
10f2d63a | 25339 | |
7b4a847f RR |
25340 | fi |
25341 | ||
e6cc62c6 VS |
25342 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25343 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25344 | if test "${ac_cv_type_size_t+set}" = set; then | |
25345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25346 | else |
e6cc62c6 VS |
25347 | cat >conftest.$ac_ext <<_ACEOF |
25348 | #line $LINENO "configure" | |
25349 | /* confdefs.h. */ | |
25350 | _ACEOF | |
25351 | cat confdefs.h >>conftest.$ac_ext | |
25352 | cat >>conftest.$ac_ext <<_ACEOF | |
25353 | /* end confdefs.h. */ | |
25354 | $ac_includes_default | |
25355 | int | |
25356 | main () | |
25357 | { | |
25358 | if ((size_t *) 0) | |
25359 | return 0; | |
25360 | if (sizeof (size_t)) | |
25361 | return 0; | |
25362 | ; | |
25363 | return 0; | |
25364 | } | |
25365 | _ACEOF | |
25366 | rm -f conftest.$ac_objext | |
25367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25368 | (eval $ac_compile) 2>&5 | |
25369 | ac_status=$? | |
25370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25371 | (exit $ac_status); } && | |
25372 | { ac_try='test -s conftest.$ac_objext' | |
25373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25374 | (eval $ac_try) 2>&5 | |
25375 | ac_status=$? | |
25376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25377 | (exit $ac_status); }; }; then | |
90dd450c | 25378 | ac_cv_type_size_t=yes |
18dbb1f6 | 25379 | else |
e6cc62c6 VS |
25380 | echo "$as_me: failed program was:" >&5 |
25381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25382 | |
e6cc62c6 | 25383 | ac_cv_type_size_t=no |
a0b9e27f | 25384 | fi |
e6cc62c6 VS |
25385 | rm -f conftest.$ac_objext conftest.$ac_ext |
25386 | fi | |
25387 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25388 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25389 | if test $ac_cv_type_size_t = yes; then | |
25390 | : | |
25391 | else | |
25392 | ||
25393 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25394 | #define size_t unsigned |
e6cc62c6 | 25395 | _ACEOF |
90dd450c VZ |
25396 | |
25397 | fi | |
25398 | ||
e6cc62c6 VS |
25399 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25400 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25401 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25403 | else |
e6cc62c6 VS |
25404 | cat >conftest.$ac_ext <<_ACEOF |
25405 | #line $LINENO "configure" | |
25406 | /* confdefs.h. */ | |
25407 | _ACEOF | |
25408 | cat confdefs.h >>conftest.$ac_ext | |
25409 | cat >>conftest.$ac_ext <<_ACEOF | |
25410 | /* end confdefs.h. */ | |
90dd450c | 25411 | #include <sys/types.h> |
e6cc62c6 VS |
25412 | |
25413 | _ACEOF | |
90dd450c | 25414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25415 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25416 | ac_cv_type_uid_t=yes |
b3e8d00a | 25417 | else |
90dd450c | 25418 | ac_cv_type_uid_t=no |
b3e8d00a | 25419 | fi |
90dd450c | 25420 | rm -f conftest* |
b3e8d00a | 25421 | |
4f14bcd8 | 25422 | fi |
e6cc62c6 VS |
25423 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25424 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25425 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25426 | |
25427 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25428 | #define uid_t int |
e6cc62c6 | 25429 | _ACEOF |
247f5006 | 25430 | |
e6cc62c6 VS |
25431 | |
25432 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25433 | #define gid_t int |
e6cc62c6 | 25434 | _ACEOF |
4f14bcd8 | 25435 | |
b3e8d00a | 25436 | fi |
b3e8d00a | 25437 | |
8284b0c5 MB |
25438 | |
25439 | ||
e6cc62c6 VS |
25440 | |
25441 | ac_ext=cc | |
4f14bcd8 | 25442 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25443 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25444 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25445 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25446 | ||
25447 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25448 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25449 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25451 | else | |
25452 | ||
25453 | cat >conftest.$ac_ext <<_ACEOF | |
25454 | #line $LINENO "configure" | |
25455 | /* confdefs.h. */ | |
25456 | _ACEOF | |
25457 | cat confdefs.h >>conftest.$ac_ext | |
25458 | cat >>conftest.$ac_ext <<_ACEOF | |
25459 | /* end confdefs.h. */ | |
90dd450c | 25460 | #include <stddef.h> |
e6cc62c6 VS |
25461 | int |
25462 | main () | |
25463 | { | |
90dd450c VZ |
25464 | |
25465 | return 0; } | |
25466 | ||
25467 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25468 | ||
25469 | int bar() { | |
e6cc62c6 VS |
25470 | |
25471 | ; | |
25472 | return 0; | |
25473 | } | |
25474 | _ACEOF | |
25475 | rm -f conftest.$ac_objext | |
25476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25477 | (eval $ac_compile) 2>&5 | |
25478 | ac_status=$? | |
25479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25480 | (exit $ac_status); } && | |
25481 | { ac_try='test -s conftest.$ac_objext' | |
25482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25483 | (eval $ac_try) 2>&5 | |
25484 | ac_status=$? | |
25485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25486 | (exit $ac_status); }; }; then | |
90dd450c | 25487 | wx_cv_size_t_is_uint=no |
698dcdb6 | 25488 | else |
e6cc62c6 VS |
25489 | echo "$as_me: failed program was:" >&5 |
25490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25491 | ||
25492 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 25493 | |
247f5006 | 25494 | fi |
e6cc62c6 VS |
25495 | rm -f conftest.$ac_objext conftest.$ac_ext |
25496 | ||
a0b9e27f | 25497 | |
e6cc62c6 VS |
25498 | fi |
25499 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25500 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 25501 | |
90dd450c | 25502 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 25503 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25504 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 25505 | _ACEOF |
698dcdb6 | 25506 | |
90dd450c | 25507 | else |
e6cc62c6 VS |
25508 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
25509 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25510 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25512 | else |
e6cc62c6 VS |
25513 | cat >conftest.$ac_ext <<_ACEOF |
25514 | #line $LINENO "configure" | |
25515 | /* confdefs.h. */ | |
25516 | _ACEOF | |
25517 | cat confdefs.h >>conftest.$ac_ext | |
25518 | cat >>conftest.$ac_ext <<_ACEOF | |
25519 | /* end confdefs.h. */ | |
90dd450c | 25520 | #include <stddef.h> |
e6cc62c6 VS |
25521 | int |
25522 | main () | |
25523 | { | |
90dd450c VZ |
25524 | |
25525 | return 0; } | |
25526 | ||
25527 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25528 | ||
25529 | int bar() { | |
e6cc62c6 VS |
25530 | |
25531 | ; | |
25532 | return 0; | |
25533 | } | |
25534 | _ACEOF | |
25535 | rm -f conftest.$ac_objext | |
25536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25537 | (eval $ac_compile) 2>&5 | |
25538 | ac_status=$? | |
25539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25540 | (exit $ac_status); } && | |
25541 | { ac_try='test -s conftest.$ac_objext' | |
25542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25543 | (eval $ac_try) 2>&5 | |
25544 | ac_status=$? | |
25545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25546 | (exit $ac_status); }; }; then | |
90dd450c | 25547 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 25548 | else |
e6cc62c6 VS |
25549 | echo "$as_me: failed program was:" >&5 |
25550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25551 | ||
25552 | wx_cv_size_t_is_ulong=yes | |
25553 | ||
247f5006 | 25554 | fi |
e6cc62c6 | 25555 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25556 | |
e6cc62c6 VS |
25557 | fi |
25558 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25559 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 25560 | |
90dd450c | 25561 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 25562 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25563 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 25564 | _ACEOF |
4f14bcd8 GD |
25565 | |
25566 | fi | |
90dd450c | 25567 | fi |
1e487827 | 25568 | |
90dd450c | 25569 | ac_ext=c |
4f14bcd8 | 25570 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
25571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 25574 | |
5c6fa7d2 | 25575 | |
8284b0c5 | 25576 | |
e6cc62c6 VS |
25577 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
25578 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
25579 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
25580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25581 | else |
e6cc62c6 VS |
25582 | |
25583 | cat >conftest.$ac_ext <<_ACEOF | |
25584 | #line $LINENO "configure" | |
25585 | /* confdefs.h. */ | |
25586 | _ACEOF | |
25587 | cat confdefs.h >>conftest.$ac_ext | |
25588 | cat >>conftest.$ac_ext <<_ACEOF | |
25589 | /* end confdefs.h. */ | |
90dd450c | 25590 | #include <pwd.h> |
e6cc62c6 VS |
25591 | int |
25592 | main () | |
25593 | { | |
f6bcfd97 | 25594 | |
90dd450c VZ |
25595 | char *p; |
25596 | struct passwd *pw; | |
25597 | p = pw->pw_gecos; | |
e6cc62c6 VS |
25598 | |
25599 | ; | |
25600 | return 0; | |
25601 | } | |
25602 | _ACEOF | |
25603 | rm -f conftest.$ac_objext | |
25604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25605 | (eval $ac_compile) 2>&5 | |
25606 | ac_status=$? | |
25607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25608 | (exit $ac_status); } && | |
25609 | { ac_try='test -s conftest.$ac_objext' | |
25610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25611 | (eval $ac_try) 2>&5 | |
25612 | ac_status=$? | |
25613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25614 | (exit $ac_status); }; }; then | |
25615 | ||
90dd450c | 25616 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 25617 | |
10f2d63a | 25618 | else |
e6cc62c6 VS |
25619 | echo "$as_me: failed program was:" >&5 |
25620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25621 | ||
25622 | ||
90dd450c | 25623 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 25624 | |
247f5006 VZ |
25625 | |
25626 | fi | |
e6cc62c6 | 25627 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25628 | |
e6cc62c6 VS |
25629 | |
25630 | fi | |
25631 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
25632 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 25633 | |
90dd450c | 25634 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 25635 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25636 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 25637 | _ACEOF |
c521c494 | 25638 | |
90dd450c | 25639 | fi |
4f14bcd8 | 25640 | |
8284b0c5 | 25641 | |
d29b553b | 25642 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 25643 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25644 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 25645 | _ACEOF |
d74f4b5a | 25646 | |
8284b0c5 | 25647 | |
d74f4b5a VZ |
25648 | WCSLEN_FOUND=0 |
25649 | WCHAR_LINK= | |
e6cc62c6 VS |
25650 | |
25651 | for ac_func in wcslen | |
7a30264c | 25652 | do |
e6cc62c6 VS |
25653 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25654 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25655 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25656 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25658 | else | |
25659 | cat >conftest.$ac_ext <<_ACEOF | |
25660 | #line $LINENO "configure" | |
25661 | /* confdefs.h. */ | |
25662 | _ACEOF | |
25663 | cat confdefs.h >>conftest.$ac_ext | |
25664 | cat >>conftest.$ac_ext <<_ACEOF | |
25665 | /* end confdefs.h. */ | |
7a30264c | 25666 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25667 | which can conflict with char $ac_func (); below. |
25668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25669 | <limits.h> exists even on freestanding compilers. */ | |
25670 | #ifdef __STDC__ | |
25671 | # include <limits.h> | |
25672 | #else | |
25673 | # include <assert.h> | |
25674 | #endif | |
4f14bcd8 | 25675 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25676 | #ifdef __cplusplus |
25677 | extern "C" | |
25678 | { | |
25679 | #endif | |
4f14bcd8 | 25680 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25681 | builtin and then its argument prototype would still apply. */ |
25682 | char $ac_func (); | |
7a30264c VZ |
25683 | /* The GNU C library defines this for functions which it implements |
25684 | to always fail with ENOSYS. Some functions are actually named | |
25685 | something starting with __ and the normal name is an alias. */ | |
25686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25687 | choke me | |
25688 | #else | |
e6cc62c6 VS |
25689 | char (*f) () = $ac_func; |
25690 | #endif | |
25691 | #ifdef __cplusplus | |
25692 | } | |
7a30264c VZ |
25693 | #endif |
25694 | ||
e6cc62c6 VS |
25695 | int |
25696 | main () | |
25697 | { | |
25698 | return f != $ac_func; | |
25699 | ; | |
25700 | return 0; | |
25701 | } | |
25702 | _ACEOF | |
25703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25705 | (eval $ac_link) 2>&5 | |
25706 | ac_status=$? | |
25707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25708 | (exit $ac_status); } && | |
25709 | { ac_try='test -s conftest$ac_exeext' | |
25710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25711 | (eval $ac_try) 2>&5 | |
25712 | ac_status=$? | |
25713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25714 | (exit $ac_status); }; }; then | |
25715 | eval "$as_ac_var=yes" | |
25716 | else | |
25717 | echo "$as_me: failed program was:" >&5 | |
25718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25719 | ||
25720 | eval "$as_ac_var=no" | |
25721 | fi | |
25722 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25723 | fi | |
25724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25725 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25726 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25727 | cat >>confdefs.h <<_ACEOF | |
25728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25729 | _ACEOF | |
d74f4b5a | 25730 | WCSLEN_FOUND=1 |
7a30264c VZ |
25731 | fi |
25732 | done | |
9d8deca0 | 25733 | |
8284b0c5 | 25734 | |
d74f4b5a | 25735 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 25736 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
25737 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
25738 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
25739 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
25740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 25741 | else |
e6cc62c6 | 25742 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 25743 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
25744 | cat >conftest.$ac_ext <<_ACEOF |
25745 | #line $LINENO "configure" | |
25746 | /* confdefs.h. */ | |
25747 | _ACEOF | |
25748 | cat confdefs.h >>conftest.$ac_ext | |
25749 | cat >>conftest.$ac_ext <<_ACEOF | |
25750 | /* end confdefs.h. */ | |
25751 | ||
4f14bcd8 | 25752 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25753 | #ifdef __cplusplus |
25754 | extern "C" | |
25755 | #endif | |
4f14bcd8 | 25756 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25757 | builtin and then its argument prototype would still apply. */ |
25758 | char wcslen (); | |
25759 | int | |
25760 | main () | |
25761 | { | |
25762 | wcslen (); | |
25763 | ; | |
25764 | return 0; | |
25765 | } | |
25766 | _ACEOF | |
25767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25769 | (eval $ac_link) 2>&5 | |
25770 | ac_status=$? | |
25771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25772 | (exit $ac_status); } && | |
25773 | { ac_try='test -s conftest$ac_exeext' | |
25774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25775 | (eval $ac_try) 2>&5 | |
25776 | ac_status=$? | |
25777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25778 | (exit $ac_status); }; }; then | |
25779 | ac_cv_lib_msvcrt_wcslen=yes | |
25780 | else | |
25781 | echo "$as_me: failed program was:" >&5 | |
25782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25783 | ||
25784 | ac_cv_lib_msvcrt_wcslen=no | |
25785 | fi | |
25786 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25787 | LIBS=$ac_check_lib_save_LIBS | |
25788 | fi | |
25789 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
25790 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
25791 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 25792 | WCHAR_OK=1 |
d29b553b | 25793 | fi |
698dcdb6 | 25794 | |
7a30264c | 25795 | else |
e6cc62c6 VS |
25796 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
25797 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
25798 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
25799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25800 | else |
e6cc62c6 | 25801 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 25802 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
25803 | cat >conftest.$ac_ext <<_ACEOF |
25804 | #line $LINENO "configure" | |
25805 | /* confdefs.h. */ | |
25806 | _ACEOF | |
25807 | cat confdefs.h >>conftest.$ac_ext | |
25808 | cat >>conftest.$ac_ext <<_ACEOF | |
25809 | /* end confdefs.h. */ | |
25810 | ||
4f14bcd8 | 25811 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25812 | #ifdef __cplusplus |
25813 | extern "C" | |
25814 | #endif | |
4f14bcd8 | 25815 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25816 | builtin and then its argument prototype would still apply. */ |
25817 | char wcslen (); | |
25818 | int | |
25819 | main () | |
25820 | { | |
25821 | wcslen (); | |
25822 | ; | |
25823 | return 0; | |
25824 | } | |
25825 | _ACEOF | |
25826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25828 | (eval $ac_link) 2>&5 | |
25829 | ac_status=$? | |
25830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25831 | (exit $ac_status); } && | |
25832 | { ac_try='test -s conftest$ac_exeext' | |
25833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25834 | (eval $ac_try) 2>&5 | |
25835 | ac_status=$? | |
25836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25837 | (exit $ac_status); }; }; then | |
25838 | ac_cv_lib_w_wcslen=yes | |
25839 | else | |
25840 | echo "$as_me: failed program was:" >&5 | |
25841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25842 | ||
25843 | ac_cv_lib_w_wcslen=no | |
25844 | fi | |
25845 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25846 | LIBS=$ac_check_lib_save_LIBS | |
25847 | fi | |
25848 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
25849 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
25850 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 25851 | |
7a30264c | 25852 | WCHAR_LINK=" -lw" |
d74f4b5a | 25853 | WCSLEN_FOUND=1 |
e6cc62c6 | 25854 | |
4f14bcd8 | 25855 | fi |
10f2d63a | 25856 | |
7a30264c | 25857 | fi |
d29b553b | 25858 | fi |
95c8801c | 25859 | |
d74f4b5a | 25860 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 25861 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25862 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 25863 | _ACEOF |
10f2d63a | 25864 | |
d74f4b5a | 25865 | fi |
52127426 | 25866 | |
e6cc62c6 VS |
25867 | |
25868 | for ac_func in wcsrtombs | |
eb4efbdc | 25869 | do |
e6cc62c6 VS |
25870 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25871 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25872 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25873 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25875 | else | |
25876 | cat >conftest.$ac_ext <<_ACEOF | |
25877 | #line $LINENO "configure" | |
25878 | /* confdefs.h. */ | |
25879 | _ACEOF | |
25880 | cat confdefs.h >>conftest.$ac_ext | |
25881 | cat >>conftest.$ac_ext <<_ACEOF | |
25882 | /* end confdefs.h. */ | |
eb4efbdc | 25883 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25884 | which can conflict with char $ac_func (); below. |
25885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25886 | <limits.h> exists even on freestanding compilers. */ | |
25887 | #ifdef __STDC__ | |
25888 | # include <limits.h> | |
25889 | #else | |
25890 | # include <assert.h> | |
25891 | #endif | |
eb4efbdc | 25892 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25893 | #ifdef __cplusplus |
25894 | extern "C" | |
25895 | { | |
25896 | #endif | |
4f14bcd8 | 25897 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25898 | builtin and then its argument prototype would still apply. */ |
25899 | char $ac_func (); | |
10f2d63a VZ |
25900 | /* The GNU C library defines this for functions which it implements |
25901 | to always fail with ENOSYS. Some functions are actually named | |
25902 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 25903 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
25904 | choke me |
25905 | #else | |
e6cc62c6 VS |
25906 | char (*f) () = $ac_func; |
25907 | #endif | |
25908 | #ifdef __cplusplus | |
25909 | } | |
10f2d63a VZ |
25910 | #endif |
25911 | ||
e6cc62c6 VS |
25912 | int |
25913 | main () | |
25914 | { | |
25915 | return f != $ac_func; | |
25916 | ; | |
25917 | return 0; | |
25918 | } | |
25919 | _ACEOF | |
25920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25922 | (eval $ac_link) 2>&5 | |
25923 | ac_status=$? | |
25924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25925 | (exit $ac_status); } && | |
25926 | { ac_try='test -s conftest$ac_exeext' | |
25927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25928 | (eval $ac_try) 2>&5 | |
25929 | ac_status=$? | |
25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25931 | (exit $ac_status); }; }; then | |
25932 | eval "$as_ac_var=yes" | |
25933 | else | |
25934 | echo "$as_me: failed program was:" >&5 | |
25935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25936 | ||
25937 | eval "$as_ac_var=no" | |
25938 | fi | |
25939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25940 | fi | |
25941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25942 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25943 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25944 | cat >>confdefs.h <<_ACEOF | |
25945 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25946 | _ACEOF | |
270a909e | 25947 | |
4f14bcd8 | 25948 | fi |
247f5006 | 25949 | done |
1e487827 | 25950 | |
af15babd | 25951 | else |
e6cc62c6 VS |
25952 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
25953 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 25954 | fi |
52127426 | 25955 | |
8284b0c5 | 25956 | |
e6cc62c6 VS |
25957 | |
25958 | ac_ext=cc | |
247f5006 | 25959 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25960 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25961 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25962 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25963 | ||
af15babd | 25964 | |
247f5006 VZ |
25965 | |
25966 | for ac_func in vsnprintf | |
25967 | do | |
e6cc62c6 VS |
25968 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25969 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25970 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25971 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25973 | else | |
25974 | cat >conftest.$ac_ext <<_ACEOF | |
25975 | #line $LINENO "configure" | |
25976 | /* confdefs.h. */ | |
25977 | _ACEOF | |
25978 | cat confdefs.h >>conftest.$ac_ext | |
25979 | cat >>conftest.$ac_ext <<_ACEOF | |
25980 | /* end confdefs.h. */ | |
247f5006 | 25981 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25982 | which can conflict with char $ac_func (); below. |
25983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25984 | <limits.h> exists even on freestanding compilers. */ | |
25985 | #ifdef __STDC__ | |
25986 | # include <limits.h> | |
25987 | #else | |
25988 | # include <assert.h> | |
25989 | #endif | |
247f5006 VZ |
25990 | /* Override any gcc2 internal prototype to avoid an error. */ |
25991 | #ifdef __cplusplus | |
25992 | extern "C" | |
e6cc62c6 | 25993 | { |
247f5006 VZ |
25994 | #endif |
25995 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
25996 | builtin and then its argument prototype would still apply. */ |
25997 | char $ac_func (); | |
247f5006 VZ |
25998 | /* The GNU C library defines this for functions which it implements |
25999 | to always fail with ENOSYS. Some functions are actually named | |
26000 | something starting with __ and the normal name is an alias. */ | |
26001 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26002 | choke me | |
26003 | #else | |
e6cc62c6 VS |
26004 | char (*f) () = $ac_func; |
26005 | #endif | |
26006 | #ifdef __cplusplus | |
26007 | } | |
247f5006 | 26008 | #endif |
af15babd | 26009 | |
e6cc62c6 VS |
26010 | int |
26011 | main () | |
26012 | { | |
26013 | return f != $ac_func; | |
26014 | ; | |
26015 | return 0; | |
26016 | } | |
26017 | _ACEOF | |
26018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26020 | (eval $ac_link) 2>&5 | |
26021 | ac_status=$? | |
26022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26023 | (exit $ac_status); } && | |
26024 | { ac_try='test -s conftest$ac_exeext' | |
26025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26026 | (eval $ac_try) 2>&5 | |
26027 | ac_status=$? | |
26028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26029 | (exit $ac_status); }; }; then | |
26030 | eval "$as_ac_var=yes" | |
26031 | else | |
26032 | echo "$as_me: failed program was:" >&5 | |
26033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26034 | ||
26035 | eval "$as_ac_var=no" | |
26036 | fi | |
26037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26038 | fi | |
26039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26040 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26041 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26042 | cat >>confdefs.h <<_ACEOF | |
26043 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26044 | _ACEOF | |
52127426 | 26045 | |
5c6fa7d2 | 26046 | fi |
247f5006 | 26047 | done |
8284b0c5 | 26048 | |
4f14bcd8 | 26049 | |
8d90d2f2 | 26050 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26051 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26052 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26053 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26055 | else |
e6cc62c6 VS |
26056 | |
26057 | cat >conftest.$ac_ext <<_ACEOF | |
26058 | #line $LINENO "configure" | |
26059 | /* confdefs.h. */ | |
26060 | _ACEOF | |
26061 | cat confdefs.h >>conftest.$ac_ext | |
26062 | cat >>conftest.$ac_ext <<_ACEOF | |
26063 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26064 | |
26065 | #include <stdio.h> | |
26066 | #include <stdarg.h> | |
e6cc62c6 VS |
26067 | |
26068 | int | |
26069 | main () | |
26070 | { | |
8d90d2f2 VZ |
26071 | |
26072 | char *buf; | |
26073 | va_list ap; | |
26074 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26075 | |
26076 | ; | |
26077 | return 0; | |
26078 | } | |
26079 | _ACEOF | |
26080 | rm -f conftest.$ac_objext | |
26081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26082 | (eval $ac_compile) 2>&5 | |
26083 | ac_status=$? | |
26084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26085 | (exit $ac_status); } && | |
26086 | { ac_try='test -s conftest.$ac_objext' | |
26087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26088 | (eval $ac_try) 2>&5 | |
26089 | ac_status=$? | |
26090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26091 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26092 | wx_cv_func_vsnprintf_decl=yes |
26093 | else | |
e6cc62c6 VS |
26094 | echo "$as_me: failed program was:" >&5 |
26095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26096 | ||
26097 | wx_cv_func_vsnprintf_decl=no | |
26098 | ||
8d90d2f2 | 26099 | fi |
e6cc62c6 VS |
26100 | rm -f conftest.$ac_objext conftest.$ac_ext |
26101 | ||
8d90d2f2 | 26102 | |
e6cc62c6 VS |
26103 | fi |
26104 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26105 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26106 | |
26107 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26108 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26109 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26110 | _ACEOF |
8d90d2f2 VZ |
26111 | |
26112 | fi | |
26113 | fi | |
26114 | ||
247f5006 | 26115 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26116 | |
26117 | ||
26118 | ||
26119 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26120 | do |
e6cc62c6 VS |
26121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26122 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26124 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26126 | else | |
26127 | cat >conftest.$ac_ext <<_ACEOF | |
26128 | #line $LINENO "configure" | |
26129 | /* confdefs.h. */ | |
26130 | _ACEOF | |
26131 | cat confdefs.h >>conftest.$ac_ext | |
26132 | cat >>conftest.$ac_ext <<_ACEOF | |
26133 | /* end confdefs.h. */ | |
d74f4b5a | 26134 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26135 | which can conflict with char $ac_func (); below. |
26136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26137 | <limits.h> exists even on freestanding compilers. */ | |
26138 | #ifdef __STDC__ | |
26139 | # include <limits.h> | |
26140 | #else | |
26141 | # include <assert.h> | |
26142 | #endif | |
d74f4b5a | 26143 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26144 | #ifdef __cplusplus |
26145 | extern "C" | |
e6cc62c6 | 26146 | { |
247f5006 | 26147 | #endif |
d74f4b5a | 26148 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26149 | builtin and then its argument prototype would still apply. */ |
26150 | char $ac_func (); | |
d74f4b5a VZ |
26151 | /* The GNU C library defines this for functions which it implements |
26152 | to always fail with ENOSYS. Some functions are actually named | |
26153 | something starting with __ and the normal name is an alias. */ | |
26154 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26155 | choke me | |
26156 | #else | |
e6cc62c6 VS |
26157 | char (*f) () = $ac_func; |
26158 | #endif | |
26159 | #ifdef __cplusplus | |
26160 | } | |
d74f4b5a VZ |
26161 | #endif |
26162 | ||
e6cc62c6 VS |
26163 | int |
26164 | main () | |
26165 | { | |
26166 | return f != $ac_func; | |
26167 | ; | |
26168 | return 0; | |
26169 | } | |
26170 | _ACEOF | |
26171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26173 | (eval $ac_link) 2>&5 | |
26174 | ac_status=$? | |
26175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26176 | (exit $ac_status); } && | |
26177 | { ac_try='test -s conftest$ac_exeext' | |
26178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26179 | (eval $ac_try) 2>&5 | |
26180 | ac_status=$? | |
26181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26182 | (exit $ac_status); }; }; then | |
26183 | eval "$as_ac_var=yes" | |
26184 | else | |
26185 | echo "$as_me: failed program was:" >&5 | |
26186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26187 | ||
26188 | eval "$as_ac_var=no" | |
26189 | fi | |
26190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26191 | fi | |
26192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26193 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26194 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26195 | cat >>confdefs.h <<_ACEOF | |
26196 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26197 | _ACEOF | |
d74f4b5a | 26198 | |
d74f4b5a VZ |
26199 | fi |
26200 | done | |
26201 | ||
8d90d2f2 | 26202 | |
e6cc62c6 VS |
26203 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26204 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26205 | cat >conftest.$ac_ext <<_ACEOF | |
26206 | #line $LINENO "configure" | |
26207 | /* confdefs.h. */ | |
26208 | _ACEOF | |
26209 | cat confdefs.h >>conftest.$ac_ext | |
26210 | cat >>conftest.$ac_ext <<_ACEOF | |
26211 | /* end confdefs.h. */ | |
79668cae | 26212 | #include <wchar.h> |
e6cc62c6 VS |
26213 | int |
26214 | main () | |
26215 | { | |
79668cae | 26216 | &_vsnwprintf; |
e6cc62c6 VS |
26217 | ; |
26218 | return 0; | |
26219 | } | |
26220 | _ACEOF | |
26221 | rm -f conftest.$ac_objext | |
26222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26223 | (eval $ac_compile) 2>&5 | |
26224 | ac_status=$? | |
26225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26226 | (exit $ac_status); } && | |
26227 | { ac_try='test -s conftest.$ac_objext' | |
26228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26229 | (eval $ac_try) 2>&5 | |
26230 | ac_status=$? | |
26231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26232 | (exit $ac_status); }; }; then | |
26233 | echo "$as_me:$LINENO: result: yes" >&5 | |
26234 | echo "${ECHO_T}yes" >&6 | |
26235 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26236 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26237 | _ACEOF |
79668cae MB |
26238 | |
26239 | else | |
e6cc62c6 VS |
26240 | echo "$as_me: failed program was:" >&5 |
26241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26242 | ||
26243 | echo "$as_me:$LINENO: result: no" >&5 | |
26244 | echo "${ECHO_T}no" >&6 | |
79668cae | 26245 | fi |
e6cc62c6 | 26246 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26247 | fi |
26248 | ||
247f5006 VZ |
26249 | ac_ext=c |
26250 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26254 | |
26255 | ||
26256 | ||
26257 | ||
4f14bcd8 | 26258 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26259 | |
8284b0c5 MB |
26260 | |
26261 | ||
e6cc62c6 VS |
26262 | |
26263 | ac_ext=cc | |
4f14bcd8 | 26264 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26265 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26266 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26267 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26268 | |
52127426 | 26269 | |
e6cc62c6 VS |
26270 | |
26271 | ||
26272 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26273 | if test "${with_libiconv_prefix+set}" = set; then |
26274 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26275 | |
b040e242 VS |
26276 | for dir in `echo "$withval" | tr : ' '`; do |
26277 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26278 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26279 | done | |
b040e242 | 26280 | |
e6cc62c6 | 26281 | fi; |
b040e242 | 26282 | |
e6cc62c6 VS |
26283 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26284 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26285 | if test "${am_cv_func_iconv+set}" = set; then | |
26286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26287 | else |
e6cc62c6 | 26288 | |
b040e242 VS |
26289 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26290 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26291 | cat >conftest.$ac_ext <<_ACEOF |
26292 | #line $LINENO "configure" | |
26293 | /* confdefs.h. */ | |
26294 | _ACEOF | |
26295 | cat confdefs.h >>conftest.$ac_ext | |
26296 | cat >>conftest.$ac_ext <<_ACEOF | |
26297 | /* end confdefs.h. */ | |
b040e242 | 26298 | #include <stdlib.h> |
4f14bcd8 | 26299 | #include <iconv.h> |
e6cc62c6 VS |
26300 | int |
26301 | main () | |
26302 | { | |
b040e242 VS |
26303 | iconv_t cd = iconv_open("",""); |
26304 | iconv(cd,NULL,NULL,NULL,NULL); | |
26305 | iconv_close(cd); | |
e6cc62c6 VS |
26306 | ; |
26307 | return 0; | |
26308 | } | |
26309 | _ACEOF | |
26310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26312 | (eval $ac_link) 2>&5 | |
26313 | ac_status=$? | |
26314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26315 | (exit $ac_status); } && | |
26316 | { ac_try='test -s conftest$ac_exeext' | |
26317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26318 | (eval $ac_try) 2>&5 | |
26319 | ac_status=$? | |
26320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26321 | (exit $ac_status); }; }; then | |
b040e242 | 26322 | am_cv_func_iconv=yes |
af15babd | 26323 | else |
e6cc62c6 VS |
26324 | echo "$as_me: failed program was:" >&5 |
26325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26326 | ||
b040e242 | 26327 | fi |
e6cc62c6 | 26328 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26329 | if test "$am_cv_func_iconv" != yes; then |
26330 | am_save_LIBS="$LIBS" | |
26331 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26332 | cat >conftest.$ac_ext <<_ACEOF |
26333 | #line $LINENO "configure" | |
26334 | /* confdefs.h. */ | |
26335 | _ACEOF | |
26336 | cat confdefs.h >>conftest.$ac_ext | |
26337 | cat >>conftest.$ac_ext <<_ACEOF | |
26338 | /* end confdefs.h. */ | |
b040e242 VS |
26339 | #include <stdlib.h> |
26340 | #include <iconv.h> | |
e6cc62c6 VS |
26341 | int |
26342 | main () | |
26343 | { | |
b040e242 VS |
26344 | iconv_t cd = iconv_open("",""); |
26345 | iconv(cd,NULL,NULL,NULL,NULL); | |
26346 | iconv_close(cd); | |
e6cc62c6 VS |
26347 | ; |
26348 | return 0; | |
26349 | } | |
26350 | _ACEOF | |
26351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26353 | (eval $ac_link) 2>&5 | |
26354 | ac_status=$? | |
26355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26356 | (exit $ac_status); } && | |
26357 | { ac_try='test -s conftest$ac_exeext' | |
26358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26359 | (eval $ac_try) 2>&5 | |
26360 | ac_status=$? | |
26361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26362 | (exit $ac_status); }; }; then | |
b040e242 VS |
26363 | am_cv_lib_iconv=yes |
26364 | am_cv_func_iconv=yes | |
26365 | else | |
e6cc62c6 VS |
26366 | echo "$as_me: failed program was:" >&5 |
26367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26368 | ||
af15babd | 26369 | fi |
e6cc62c6 | 26370 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26371 | LIBS="$am_save_LIBS" |
26372 | fi | |
247f5006 | 26373 | |
e6cc62c6 VS |
26374 | fi |
26375 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26376 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26377 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26378 | |
26379 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26380 | #define HAVE_ICONV 1 |
e6cc62c6 | 26381 | _ACEOF |
b040e242 | 26382 | |
e6cc62c6 VS |
26383 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26384 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26385 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26387 | else |
e6cc62c6 VS |
26388 | cat >conftest.$ac_ext <<_ACEOF |
26389 | #line $LINENO "configure" | |
26390 | /* confdefs.h. */ | |
26391 | _ACEOF | |
26392 | cat confdefs.h >>conftest.$ac_ext | |
26393 | cat >>conftest.$ac_ext <<_ACEOF | |
26394 | /* end confdefs.h. */ | |
b040e242 VS |
26395 | |
26396 | #include <stdlib.h> | |
26397 | #include <iconv.h> | |
26398 | extern | |
26399 | #ifdef __cplusplus | |
26400 | "C" | |
26401 | #endif | |
26402 | #if defined(__STDC__) || defined(__cplusplus) | |
26403 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26404 | #else | |
26405 | size_t iconv(); | |
26406 | #endif | |
af15babd | 26407 | |
e6cc62c6 VS |
26408 | int |
26409 | main () | |
26410 | { | |
26411 | ||
26412 | ; | |
26413 | return 0; | |
26414 | } | |
26415 | _ACEOF | |
26416 | rm -f conftest.$ac_objext | |
26417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26418 | (eval $ac_compile) 2>&5 | |
26419 | ac_status=$? | |
26420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26421 | (exit $ac_status); } && | |
26422 | { ac_try='test -s conftest.$ac_objext' | |
26423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26424 | (eval $ac_try) 2>&5 | |
26425 | ac_status=$? | |
26426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26427 | (exit $ac_status); }; }; then | |
b7043674 | 26428 | wx_cv_func_iconv_const="no" |
b040e242 | 26429 | else |
e6cc62c6 VS |
26430 | echo "$as_me: failed program was:" >&5 |
26431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26432 | ||
26433 | wx_cv_func_iconv_const="yes" | |
26434 | ||
247f5006 | 26435 | fi |
e6cc62c6 | 26436 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26437 | |
e6cc62c6 VS |
26438 | fi |
26439 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26440 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26441 | |
26442 | iconv_const= | |
1c405bb5 | 26443 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
26444 | iconv_const="const" |
26445 | fi | |
26446 | ||
e6cc62c6 VS |
26447 | |
26448 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 26449 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 26450 | _ACEOF |
b040e242 VS |
26451 | |
26452 | fi | |
26453 | LIBICONV= | |
26454 | if test "$am_cv_lib_iconv" = yes; then | |
26455 | LIBICONV="-liconv" | |
26456 | fi | |
e6cc62c6 | 26457 | |
b040e242 VS |
26458 | |
26459 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 26460 | ac_ext=c |
4f14bcd8 | 26461 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 26465 | |
5c6fa7d2 | 26466 | |
8284b0c5 | 26467 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
26468 | |
26469 | for ac_func in sigaction | |
af15babd | 26470 | do |
e6cc62c6 VS |
26471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26472 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26474 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26476 | else | |
26477 | cat >conftest.$ac_ext <<_ACEOF | |
26478 | #line $LINENO "configure" | |
26479 | /* confdefs.h. */ | |
26480 | _ACEOF | |
26481 | cat confdefs.h >>conftest.$ac_ext | |
26482 | cat >>conftest.$ac_ext <<_ACEOF | |
26483 | /* end confdefs.h. */ | |
af15babd | 26484 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26485 | which can conflict with char $ac_func (); below. |
26486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26487 | <limits.h> exists even on freestanding compilers. */ | |
26488 | #ifdef __STDC__ | |
26489 | # include <limits.h> | |
26490 | #else | |
26491 | # include <assert.h> | |
26492 | #endif | |
af15babd | 26493 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26494 | #ifdef __cplusplus |
26495 | extern "C" | |
26496 | { | |
26497 | #endif | |
af15babd | 26498 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26499 | builtin and then its argument prototype would still apply. */ |
26500 | char $ac_func (); | |
af15babd VZ |
26501 | /* The GNU C library defines this for functions which it implements |
26502 | to always fail with ENOSYS. Some functions are actually named | |
26503 | something starting with __ and the normal name is an alias. */ | |
26504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26505 | choke me | |
26506 | #else | |
e6cc62c6 VS |
26507 | char (*f) () = $ac_func; |
26508 | #endif | |
26509 | #ifdef __cplusplus | |
26510 | } | |
af15babd VZ |
26511 | #endif |
26512 | ||
e6cc62c6 VS |
26513 | int |
26514 | main () | |
26515 | { | |
26516 | return f != $ac_func; | |
26517 | ; | |
26518 | return 0; | |
26519 | } | |
26520 | _ACEOF | |
26521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26523 | (eval $ac_link) 2>&5 | |
26524 | ac_status=$? | |
26525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26526 | (exit $ac_status); } && | |
26527 | { ac_try='test -s conftest$ac_exeext' | |
26528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26529 | (eval $ac_try) 2>&5 | |
26530 | ac_status=$? | |
26531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26532 | (exit $ac_status); }; }; then | |
26533 | eval "$as_ac_var=yes" | |
26534 | else | |
26535 | echo "$as_me: failed program was:" >&5 | |
26536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26537 | ||
26538 | eval "$as_ac_var=no" | |
26539 | fi | |
26540 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26541 | fi | |
26542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26543 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26544 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26545 | cat >>confdefs.h <<_ACEOF | |
26546 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26547 | _ACEOF | |
7b4a847f | 26548 | |
4f14bcd8 GD |
26549 | fi |
26550 | done | |
26551 | ||
8284b0c5 | 26552 | |
4f14bcd8 | 26553 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
26554 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
26555 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
26556 | wxUSE_ON_FATAL_EXCEPTION=no |
26557 | fi | |
26558 | ||
26559 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
26560 | |
26561 | ||
26562 | ac_ext=cc | |
5c6fa7d2 | 26563 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 26567 | |
5c6fa7d2 | 26568 | |
e6cc62c6 VS |
26569 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
26570 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
26571 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
26572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26573 | else |
e6cc62c6 VS |
26574 | |
26575 | cat >conftest.$ac_ext <<_ACEOF | |
26576 | #line $LINENO "configure" | |
26577 | /* confdefs.h. */ | |
26578 | _ACEOF | |
26579 | cat confdefs.h >>conftest.$ac_ext | |
26580 | cat >>conftest.$ac_ext <<_ACEOF | |
26581 | /* end confdefs.h. */ | |
4f14bcd8 | 26582 | #include <signal.h> |
e6cc62c6 VS |
26583 | int |
26584 | main () | |
26585 | { | |
4f14bcd8 GD |
26586 | |
26587 | extern void testSigHandler(int); | |
26588 | ||
26589 | struct sigaction sa; | |
26590 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
26591 | |
26592 | ; | |
26593 | return 0; | |
26594 | } | |
26595 | _ACEOF | |
26596 | rm -f conftest.$ac_objext | |
26597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26598 | (eval $ac_compile) 2>&5 | |
26599 | ac_status=$? | |
26600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26601 | (exit $ac_status); } && | |
26602 | { ac_try='test -s conftest.$ac_objext' | |
26603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26604 | (eval $ac_try) 2>&5 | |
26605 | ac_status=$? | |
26606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26607 | (exit $ac_status); }; }; then | |
26608 | ||
4f14bcd8 | 26609 | wx_cv_type_sa_handler=int |
e6cc62c6 | 26610 | |
af15babd | 26611 | else |
e6cc62c6 VS |
26612 | echo "$as_me: failed program was:" >&5 |
26613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26614 | ||
26615 | ||
4f14bcd8 | 26616 | wx_cv_type_sa_handler=void |
e6cc62c6 | 26617 | |
247f5006 | 26618 | fi |
e6cc62c6 | 26619 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26620 | |
e6cc62c6 VS |
26621 | fi |
26622 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
26623 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
26624 | |
26625 | ac_ext=c | |
4f14bcd8 | 26626 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 26630 | |
8284b0c5 | 26631 | |
e6cc62c6 | 26632 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26633 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 26634 | _ACEOF |
af15babd | 26635 | |
4f14bcd8 GD |
26636 | fi |
26637 | fi | |
af15babd | 26638 | |
e6cc62c6 VS |
26639 | |
26640 | ||
a1d22ad7 | 26641 | for ac_func in mkstemp mktemp |
af15babd | 26642 | do |
e6cc62c6 VS |
26643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26646 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26648 | else | |
26649 | cat >conftest.$ac_ext <<_ACEOF | |
26650 | #line $LINENO "configure" | |
26651 | /* confdefs.h. */ | |
26652 | _ACEOF | |
26653 | cat confdefs.h >>conftest.$ac_ext | |
26654 | cat >>conftest.$ac_ext <<_ACEOF | |
26655 | /* end confdefs.h. */ | |
af15babd | 26656 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26657 | which can conflict with char $ac_func (); below. |
26658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26659 | <limits.h> exists even on freestanding compilers. */ | |
26660 | #ifdef __STDC__ | |
26661 | # include <limits.h> | |
26662 | #else | |
26663 | # include <assert.h> | |
26664 | #endif | |
af15babd | 26665 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26666 | #ifdef __cplusplus |
26667 | extern "C" | |
26668 | { | |
26669 | #endif | |
af15babd | 26670 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26671 | builtin and then its argument prototype would still apply. */ |
26672 | char $ac_func (); | |
af15babd VZ |
26673 | /* The GNU C library defines this for functions which it implements |
26674 | to always fail with ENOSYS. Some functions are actually named | |
26675 | something starting with __ and the normal name is an alias. */ | |
26676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26677 | choke me | |
26678 | #else | |
e6cc62c6 VS |
26679 | char (*f) () = $ac_func; |
26680 | #endif | |
26681 | #ifdef __cplusplus | |
26682 | } | |
af15babd VZ |
26683 | #endif |
26684 | ||
e6cc62c6 VS |
26685 | int |
26686 | main () | |
26687 | { | |
26688 | return f != $ac_func; | |
26689 | ; | |
26690 | return 0; | |
26691 | } | |
26692 | _ACEOF | |
26693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26695 | (eval $ac_link) 2>&5 | |
26696 | ac_status=$? | |
26697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26698 | (exit $ac_status); } && | |
26699 | { ac_try='test -s conftest$ac_exeext' | |
26700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26701 | (eval $ac_try) 2>&5 | |
26702 | ac_status=$? | |
26703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26704 | (exit $ac_status); }; }; then | |
26705 | eval "$as_ac_var=yes" | |
26706 | else | |
26707 | echo "$as_me: failed program was:" >&5 | |
26708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26709 | ||
26710 | eval "$as_ac_var=no" | |
26711 | fi | |
26712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26713 | fi | |
26714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26715 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26716 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26717 | cat >>confdefs.h <<_ACEOF | |
26718 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26719 | _ACEOF | |
ade35f11 | 26720 | break |
ade35f11 VZ |
26721 | fi |
26722 | done | |
26723 | ||
8284b0c5 | 26724 | |
e6cc62c6 VS |
26725 | echo "$as_me:$LINENO: checking for statfs" >&5 |
26726 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
26727 | if test "${wx_cv_func_statfs+set}" = set; then | |
26728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 26729 | else |
e6cc62c6 VS |
26730 | cat >conftest.$ac_ext <<_ACEOF |
26731 | #line $LINENO "configure" | |
26732 | /* confdefs.h. */ | |
26733 | _ACEOF | |
26734 | cat confdefs.h >>conftest.$ac_ext | |
26735 | cat >>conftest.$ac_ext <<_ACEOF | |
26736 | /* end confdefs.h. */ | |
4f14bcd8 GD |
26737 | |
26738 | #if defined(__BSD__) | |
26739 | #include <sys/param.h> | |
26740 | #include <sys/mount.h> | |
26741 | #else | |
26742 | #include <sys/vfs.h> | |
26743 | #endif | |
e6cc62c6 VS |
26744 | |
26745 | int | |
26746 | main () | |
26747 | { | |
4f14bcd8 GD |
26748 | |
26749 | long l; | |
26750 | struct statfs fs; | |
26751 | statfs("/", &fs); | |
26752 | l = fs.f_bsize; | |
26753 | l += fs.f_blocks; | |
26754 | l += fs.f_bavail; | |
e6cc62c6 VS |
26755 | |
26756 | ; | |
26757 | return 0; | |
26758 | } | |
26759 | _ACEOF | |
26760 | rm -f conftest.$ac_objext | |
26761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26762 | (eval $ac_compile) 2>&5 | |
26763 | ac_status=$? | |
26764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26765 | (exit $ac_status); } && | |
26766 | { ac_try='test -s conftest.$ac_objext' | |
26767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26768 | (eval $ac_try) 2>&5 | |
26769 | ac_status=$? | |
26770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26771 | (exit $ac_status); }; }; then | |
26772 | ||
4f14bcd8 | 26773 | wx_cv_func_statfs=yes |
e6cc62c6 | 26774 | |
4f14bcd8 | 26775 | else |
e6cc62c6 VS |
26776 | echo "$as_me: failed program was:" >&5 |
26777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26778 | ||
26779 | ||
4f14bcd8 | 26780 | wx_cv_func_statfs=no |
e6cc62c6 | 26781 | |
8284b0c5 | 26782 | |
247f5006 | 26783 | fi |
e6cc62c6 | 26784 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26785 | |
e6cc62c6 VS |
26786 | fi |
26787 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
26788 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
26789 | |
26790 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 26791 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 26792 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26793 | #define HAVE_STATFS 1 |
e6cc62c6 | 26794 | _ACEOF |
4f14bcd8 GD |
26795 | |
26796 | else | |
e6cc62c6 VS |
26797 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
26798 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
26799 | if test "${wx_cv_func_statvfs+set}" = set; then | |
26800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26801 | else |
e6cc62c6 VS |
26802 | cat >conftest.$ac_ext <<_ACEOF |
26803 | #line $LINENO "configure" | |
26804 | /* confdefs.h. */ | |
26805 | _ACEOF | |
26806 | cat confdefs.h >>conftest.$ac_ext | |
26807 | cat >>conftest.$ac_ext <<_ACEOF | |
26808 | /* end confdefs.h. */ | |
af15babd | 26809 | |
54ab82b3 VZ |
26810 | #include <stddef.h> |
26811 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
26812 | |
26813 | int | |
26814 | main () | |
26815 | { | |
af15babd | 26816 | |
54ab82b3 | 26817 | statvfs("/", NULL); |
e6cc62c6 VS |
26818 | |
26819 | ; | |
26820 | return 0; | |
26821 | } | |
26822 | _ACEOF | |
26823 | rm -f conftest.$ac_objext | |
26824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26825 | (eval $ac_compile) 2>&5 | |
26826 | ac_status=$? | |
26827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26828 | (exit $ac_status); } && | |
26829 | { ac_try='test -s conftest.$ac_objext' | |
26830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26831 | (eval $ac_try) 2>&5 | |
26832 | ac_status=$? | |
26833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26834 | (exit $ac_status); }; }; then | |
54ab82b3 | 26835 | wx_cv_func_statvfs=yes |
af15babd | 26836 | else |
e6cc62c6 VS |
26837 | echo "$as_me: failed program was:" >&5 |
26838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26839 | ||
26840 | wx_cv_func_statvfs=no | |
26841 | ||
247f5006 | 26842 | fi |
e6cc62c6 | 26843 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26844 | |
e6cc62c6 VS |
26845 | fi |
26846 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
26847 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 26848 | |
4f14bcd8 | 26849 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
26850 | |
26851 | ||
26852 | ac_ext=cc | |
54ab82b3 | 26853 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
26857 | |
26858 | ||
e6cc62c6 VS |
26859 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
26860 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
26861 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
26862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 26863 | else |
e6cc62c6 VS |
26864 | cat >conftest.$ac_ext <<_ACEOF |
26865 | #line $LINENO "configure" | |
26866 | /* confdefs.h. */ | |
26867 | _ACEOF | |
26868 | cat confdefs.h >>conftest.$ac_ext | |
26869 | cat >>conftest.$ac_ext <<_ACEOF | |
26870 | /* end confdefs.h. */ | |
54ab82b3 VZ |
26871 | |
26872 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
26873 | |
26874 | int | |
26875 | main () | |
26876 | { | |
54ab82b3 VZ |
26877 | |
26878 | long l; | |
26879 | statvfs_t fs; | |
26880 | statvfs("/", &fs); | |
26881 | l = fs.f_bsize; | |
26882 | l += fs.f_blocks; | |
26883 | l += fs.f_bavail; | |
e6cc62c6 VS |
26884 | |
26885 | ; | |
26886 | return 0; | |
26887 | } | |
26888 | _ACEOF | |
26889 | rm -f conftest.$ac_objext | |
26890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26891 | (eval $ac_compile) 2>&5 | |
26892 | ac_status=$? | |
26893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26894 | (exit $ac_status); } && | |
26895 | { ac_try='test -s conftest.$ac_objext' | |
26896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26897 | (eval $ac_try) 2>&5 | |
26898 | ac_status=$? | |
26899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26900 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
26901 | wx_cv_type_statvfs_t=statvfs_t |
26902 | else | |
e6cc62c6 VS |
26903 | echo "$as_me: failed program was:" >&5 |
26904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26905 | ||
26906 | ||
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; | |
65d8ef1e | 26922 | struct statvfs fs; |
54ab82b3 VZ |
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="struct statvfs" |
26945 | else | |
e6cc62c6 VS |
26946 | echo "$as_me: failed program was:" >&5 |
26947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26948 | ||
26949 | wx_cv_type_statvfs_t="unknown" | |
26950 | ||
54ab82b3 | 26951 | fi |
e6cc62c6 VS |
26952 | rm -f conftest.$ac_objext conftest.$ac_ext |
26953 | ||
26954 | ||
54ab82b3 | 26955 | fi |
e6cc62c6 | 26956 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 26957 | |
e6cc62c6 VS |
26958 | fi |
26959 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
26960 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
26961 | |
26962 | ac_ext=c | |
54ab82b3 | 26963 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
26967 | |
26968 | ||
26969 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 26970 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26971 | #define HAVE_STATVFS 1 |
e6cc62c6 | 26972 | _ACEOF |
af15babd | 26973 | |
54ab82b3 | 26974 | fi |
4f14bcd8 | 26975 | else |
54ab82b3 | 26976 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
26977 | fi |
26978 | fi | |
af15babd | 26979 | |
54ab82b3 | 26980 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 26981 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 26982 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 26983 | _ACEOF |
54ab82b3 VZ |
26984 | |
26985 | else | |
e6cc62c6 VS |
26986 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
26987 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
26988 | fi |
26989 | ||
4f14bcd8 | 26990 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
26991 | |
26992 | ||
26993 | for ac_func in fcntl flock | |
af15babd | 26994 | do |
e6cc62c6 VS |
26995 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26996 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26997 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26998 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27000 | else | |
27001 | cat >conftest.$ac_ext <<_ACEOF | |
27002 | #line $LINENO "configure" | |
27003 | /* confdefs.h. */ | |
27004 | _ACEOF | |
27005 | cat confdefs.h >>conftest.$ac_ext | |
27006 | cat >>conftest.$ac_ext <<_ACEOF | |
27007 | /* end confdefs.h. */ | |
af15babd | 27008 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27009 | which can conflict with char $ac_func (); below. |
27010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27011 | <limits.h> exists even on freestanding compilers. */ | |
27012 | #ifdef __STDC__ | |
27013 | # include <limits.h> | |
27014 | #else | |
27015 | # include <assert.h> | |
27016 | #endif | |
af15babd | 27017 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27018 | #ifdef __cplusplus |
27019 | extern "C" | |
27020 | { | |
27021 | #endif | |
af15babd | 27022 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27023 | builtin and then its argument prototype would still apply. */ |
27024 | char $ac_func (); | |
af15babd VZ |
27025 | /* The GNU C library defines this for functions which it implements |
27026 | to always fail with ENOSYS. Some functions are actually named | |
27027 | something starting with __ and the normal name is an alias. */ | |
27028 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27029 | choke me | |
27030 | #else | |
e6cc62c6 VS |
27031 | char (*f) () = $ac_func; |
27032 | #endif | |
27033 | #ifdef __cplusplus | |
27034 | } | |
af15babd VZ |
27035 | #endif |
27036 | ||
e6cc62c6 VS |
27037 | int |
27038 | main () | |
27039 | { | |
27040 | return f != $ac_func; | |
27041 | ; | |
27042 | return 0; | |
27043 | } | |
27044 | _ACEOF | |
27045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27047 | (eval $ac_link) 2>&5 | |
27048 | ac_status=$? | |
27049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27050 | (exit $ac_status); } && | |
27051 | { ac_try='test -s conftest$ac_exeext' | |
27052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27053 | (eval $ac_try) 2>&5 | |
27054 | ac_status=$? | |
27055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27056 | (exit $ac_status); }; }; then | |
27057 | eval "$as_ac_var=yes" | |
27058 | else | |
27059 | echo "$as_me: failed program was:" >&5 | |
27060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27061 | ||
27062 | eval "$as_ac_var=no" | |
27063 | fi | |
27064 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27065 | fi | |
27066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27067 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27068 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27069 | cat >>confdefs.h <<_ACEOF | |
27070 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27071 | _ACEOF | |
4f14bcd8 | 27072 | break |
af15babd VZ |
27073 | fi |
27074 | done | |
27075 | ||
8284b0c5 | 27076 | |
4f14bcd8 | 27077 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27078 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27079 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27080 | wxUSE_SNGLINST_CHECKER=no |
27081 | fi | |
27082 | fi | |
af15babd | 27083 | |
e6cc62c6 | 27084 | |
4f14bcd8 | 27085 | for ac_func in timegm |
af15babd | 27086 | do |
e6cc62c6 VS |
27087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27090 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27092 | else | |
27093 | cat >conftest.$ac_ext <<_ACEOF | |
27094 | #line $LINENO "configure" | |
27095 | /* confdefs.h. */ | |
27096 | _ACEOF | |
27097 | cat confdefs.h >>conftest.$ac_ext | |
27098 | cat >>conftest.$ac_ext <<_ACEOF | |
27099 | /* end confdefs.h. */ | |
af15babd | 27100 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27101 | which can conflict with char $ac_func (); below. |
27102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27103 | <limits.h> exists even on freestanding compilers. */ | |
27104 | #ifdef __STDC__ | |
27105 | # include <limits.h> | |
27106 | #else | |
27107 | # include <assert.h> | |
27108 | #endif | |
af15babd | 27109 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27110 | #ifdef __cplusplus |
27111 | extern "C" | |
27112 | { | |
27113 | #endif | |
af15babd | 27114 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27115 | builtin and then its argument prototype would still apply. */ |
27116 | char $ac_func (); | |
af15babd VZ |
27117 | /* The GNU C library defines this for functions which it implements |
27118 | to always fail with ENOSYS. Some functions are actually named | |
27119 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27121 | choke me | |
27122 | #else | |
e6cc62c6 VS |
27123 | char (*f) () = $ac_func; |
27124 | #endif | |
27125 | #ifdef __cplusplus | |
27126 | } | |
247f5006 VZ |
27127 | #endif |
27128 | ||
e6cc62c6 VS |
27129 | int |
27130 | main () | |
27131 | { | |
27132 | return f != $ac_func; | |
27133 | ; | |
27134 | return 0; | |
27135 | } | |
27136 | _ACEOF | |
27137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27139 | (eval $ac_link) 2>&5 | |
27140 | ac_status=$? | |
27141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27142 | (exit $ac_status); } && | |
27143 | { ac_try='test -s conftest$ac_exeext' | |
27144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27145 | (eval $ac_try) 2>&5 | |
27146 | ac_status=$? | |
27147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27148 | (exit $ac_status); }; }; then | |
27149 | eval "$as_ac_var=yes" | |
27150 | else | |
27151 | echo "$as_me: failed program was:" >&5 | |
27152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27153 | ||
27154 | eval "$as_ac_var=no" | |
27155 | fi | |
27156 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27157 | fi | |
27158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27159 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27160 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27161 | cat >>confdefs.h <<_ACEOF | |
27162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27163 | _ACEOF | |
703e0a69 | 27164 | |
af15babd VZ |
27165 | fi |
27166 | done | |
27167 | ||
8284b0c5 | 27168 | |
e6cc62c6 VS |
27169 | |
27170 | ||
4f14bcd8 | 27171 | for ac_func in putenv setenv |
10f2d63a | 27172 | do |
e6cc62c6 VS |
27173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27174 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27176 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27178 | else | |
27179 | cat >conftest.$ac_ext <<_ACEOF | |
27180 | #line $LINENO "configure" | |
27181 | /* confdefs.h. */ | |
27182 | _ACEOF | |
27183 | cat confdefs.h >>conftest.$ac_ext | |
27184 | cat >>conftest.$ac_ext <<_ACEOF | |
27185 | /* end confdefs.h. */ | |
af15babd | 27186 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27187 | which can conflict with char $ac_func (); below. |
27188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27189 | <limits.h> exists even on freestanding compilers. */ | |
27190 | #ifdef __STDC__ | |
27191 | # include <limits.h> | |
27192 | #else | |
27193 | # include <assert.h> | |
27194 | #endif | |
af15babd | 27195 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27196 | #ifdef __cplusplus |
27197 | extern "C" | |
27198 | { | |
27199 | #endif | |
af15babd | 27200 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27201 | builtin and then its argument prototype would still apply. */ |
27202 | char $ac_func (); | |
af15babd VZ |
27203 | /* The GNU C library defines this for functions which it implements |
27204 | to always fail with ENOSYS. Some functions are actually named | |
27205 | something starting with __ and the normal name is an alias. */ | |
27206 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27207 | choke me | |
27208 | #else | |
e6cc62c6 VS |
27209 | char (*f) () = $ac_func; |
27210 | #endif | |
27211 | #ifdef __cplusplus | |
27212 | } | |
af15babd VZ |
27213 | #endif |
27214 | ||
e6cc62c6 VS |
27215 | int |
27216 | main () | |
27217 | { | |
27218 | return f != $ac_func; | |
27219 | ; | |
27220 | return 0; | |
27221 | } | |
27222 | _ACEOF | |
27223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27225 | (eval $ac_link) 2>&5 | |
27226 | ac_status=$? | |
27227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27228 | (exit $ac_status); } && | |
27229 | { ac_try='test -s conftest$ac_exeext' | |
27230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27231 | (eval $ac_try) 2>&5 | |
27232 | ac_status=$? | |
27233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27234 | (exit $ac_status); }; }; then | |
27235 | eval "$as_ac_var=yes" | |
27236 | else | |
27237 | echo "$as_me: failed program was:" >&5 | |
27238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27239 | ||
27240 | eval "$as_ac_var=no" | |
27241 | fi | |
27242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27243 | fi | |
27244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27245 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27246 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27247 | cat >>confdefs.h <<_ACEOF | |
27248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27249 | _ACEOF | |
4f14bcd8 | 27250 | break |
af15babd | 27251 | fi |
af15babd VZ |
27252 | done |
27253 | ||
8284b0c5 | 27254 | |
4f14bcd8 GD |
27255 | HAVE_SOME_SLEEP_FUNC=0 |
27256 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27257 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27258 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27259 | _ACEOF |
af15babd | 27260 | |
4f14bcd8 | 27261 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27262 | fi |
27263 | ||
4f14bcd8 | 27264 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27265 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27266 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27267 | _ACEOF |
10f2d63a | 27268 | |
4f14bcd8 | 27269 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27270 | fi |
27271 | ||
4f14bcd8 GD |
27272 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27273 | POSIX4_LINK= | |
e6cc62c6 VS |
27274 | |
27275 | for ac_func in nanosleep | |
4f14bcd8 | 27276 | do |
e6cc62c6 VS |
27277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27278 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27280 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27282 | else | |
27283 | cat >conftest.$ac_ext <<_ACEOF | |
27284 | #line $LINENO "configure" | |
27285 | /* confdefs.h. */ | |
27286 | _ACEOF | |
27287 | cat confdefs.h >>conftest.$ac_ext | |
27288 | cat >>conftest.$ac_ext <<_ACEOF | |
27289 | /* end confdefs.h. */ | |
4f14bcd8 | 27290 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27291 | which can conflict with char $ac_func (); below. |
27292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27293 | <limits.h> exists even on freestanding compilers. */ | |
27294 | #ifdef __STDC__ | |
27295 | # include <limits.h> | |
27296 | #else | |
27297 | # include <assert.h> | |
27298 | #endif | |
10f2d63a | 27299 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27300 | #ifdef __cplusplus |
27301 | extern "C" | |
27302 | { | |
27303 | #endif | |
10f2d63a | 27304 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27305 | builtin and then its argument prototype would still apply. */ |
27306 | char $ac_func (); | |
4f14bcd8 GD |
27307 | /* The GNU C library defines this for functions which it implements |
27308 | to always fail with ENOSYS. Some functions are actually named | |
27309 | something starting with __ and the normal name is an alias. */ | |
27310 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27311 | choke me | |
27312 | #else | |
e6cc62c6 VS |
27313 | char (*f) () = $ac_func; |
27314 | #endif | |
27315 | #ifdef __cplusplus | |
27316 | } | |
4f14bcd8 GD |
27317 | #endif |
27318 | ||
e6cc62c6 VS |
27319 | int |
27320 | main () | |
27321 | { | |
27322 | return f != $ac_func; | |
27323 | ; | |
27324 | return 0; | |
27325 | } | |
27326 | _ACEOF | |
27327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27329 | (eval $ac_link) 2>&5 | |
27330 | ac_status=$? | |
27331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27332 | (exit $ac_status); } && | |
27333 | { ac_try='test -s conftest$ac_exeext' | |
27334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27335 | (eval $ac_try) 2>&5 | |
27336 | ac_status=$? | |
27337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27338 | (exit $ac_status); }; }; then | |
27339 | eval "$as_ac_var=yes" | |
27340 | else | |
27341 | echo "$as_me: failed program was:" >&5 | |
27342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27343 | ||
27344 | eval "$as_ac_var=no" | |
27345 | fi | |
27346 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27347 | fi | |
27348 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27349 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27350 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27351 | cat >>confdefs.h <<_ACEOF | |
27352 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27353 | _ACEOF | |
27354 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27355 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27356 | _ACEOF |
4f14bcd8 | 27357 | |
10f2d63a | 27358 | else |
e6cc62c6 VS |
27359 | |
27360 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27361 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27362 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27364 | else |
e6cc62c6 | 27365 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27366 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27367 | cat >conftest.$ac_ext <<_ACEOF |
27368 | #line $LINENO "configure" | |
27369 | /* confdefs.h. */ | |
27370 | _ACEOF | |
27371 | cat confdefs.h >>conftest.$ac_ext | |
27372 | cat >>conftest.$ac_ext <<_ACEOF | |
27373 | /* end confdefs.h. */ | |
27374 | ||
10f2d63a | 27375 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27376 | #ifdef __cplusplus |
27377 | extern "C" | |
27378 | #endif | |
10f2d63a | 27379 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27380 | builtin and then its argument prototype would still apply. */ |
27381 | char nanosleep (); | |
27382 | int | |
27383 | main () | |
27384 | { | |
27385 | nanosleep (); | |
27386 | ; | |
27387 | return 0; | |
27388 | } | |
27389 | _ACEOF | |
27390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27392 | (eval $ac_link) 2>&5 | |
27393 | ac_status=$? | |
27394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27395 | (exit $ac_status); } && | |
27396 | { ac_try='test -s conftest$ac_exeext' | |
27397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27398 | (eval $ac_try) 2>&5 | |
27399 | ac_status=$? | |
27400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27401 | (exit $ac_status); }; }; then | |
27402 | ac_cv_lib_posix4_nanosleep=yes | |
27403 | else | |
27404 | echo "$as_me: failed program was:" >&5 | |
27405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27406 | ||
27407 | ac_cv_lib_posix4_nanosleep=no | |
27408 | fi | |
27409 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27410 | LIBS=$ac_check_lib_save_LIBS | |
27411 | fi | |
27412 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27413 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27414 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27415 | ||
27416 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27417 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27418 | _ACEOF |
4f14bcd8 | 27419 | |
3d63bc3a | 27420 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27421 | |
10f2d63a | 27422 | else |
10f2d63a | 27423 | |
e6cc62c6 VS |
27424 | |
27425 | for ac_func in usleep | |
4f14bcd8 | 27426 | do |
e6cc62c6 VS |
27427 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27428 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27429 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27430 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27432 | else | |
27433 | cat >conftest.$ac_ext <<_ACEOF | |
27434 | #line $LINENO "configure" | |
27435 | /* confdefs.h. */ | |
27436 | _ACEOF | |
27437 | cat confdefs.h >>conftest.$ac_ext | |
27438 | cat >>conftest.$ac_ext <<_ACEOF | |
27439 | /* end confdefs.h. */ | |
4f14bcd8 | 27440 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27441 | which can conflict with char $ac_func (); below. |
27442 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27443 | <limits.h> exists even on freestanding compilers. */ | |
27444 | #ifdef __STDC__ | |
27445 | # include <limits.h> | |
27446 | #else | |
27447 | # include <assert.h> | |
27448 | #endif | |
4f14bcd8 | 27449 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27450 | #ifdef __cplusplus |
27451 | extern "C" | |
27452 | { | |
27453 | #endif | |
4f14bcd8 | 27454 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27455 | builtin and then its argument prototype would still apply. */ |
27456 | char $ac_func (); | |
4f14bcd8 GD |
27457 | /* The GNU C library defines this for functions which it implements |
27458 | to always fail with ENOSYS. Some functions are actually named | |
27459 | something starting with __ and the normal name is an alias. */ | |
27460 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27461 | choke me | |
27462 | #else | |
e6cc62c6 VS |
27463 | char (*f) () = $ac_func; |
27464 | #endif | |
27465 | #ifdef __cplusplus | |
27466 | } | |
4f14bcd8 GD |
27467 | #endif |
27468 | ||
e6cc62c6 VS |
27469 | int |
27470 | main () | |
27471 | { | |
27472 | return f != $ac_func; | |
27473 | ; | |
27474 | return 0; | |
27475 | } | |
27476 | _ACEOF | |
27477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27479 | (eval $ac_link) 2>&5 | |
27480 | ac_status=$? | |
27481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27482 | (exit $ac_status); } && | |
27483 | { ac_try='test -s conftest$ac_exeext' | |
27484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27485 | (eval $ac_try) 2>&5 | |
27486 | ac_status=$? | |
27487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27488 | (exit $ac_status); }; }; then | |
27489 | eval "$as_ac_var=yes" | |
27490 | else | |
27491 | echo "$as_me: failed program was:" >&5 | |
27492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27493 | ||
27494 | eval "$as_ac_var=no" | |
27495 | fi | |
27496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27497 | fi | |
27498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27499 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27500 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27501 | cat >>confdefs.h <<_ACEOF | |
27502 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27503 | _ACEOF | |
27504 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27505 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27506 | _ACEOF |
4f14bcd8 | 27507 | |
698dcdb6 | 27508 | else |
e6cc62c6 VS |
27509 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
27510 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27511 | ||
10f2d63a | 27512 | fi |
4f14bcd8 | 27513 | done |
10f2d63a | 27514 | |
e6cc62c6 VS |
27515 | |
27516 | ||
6232543b | 27517 | fi |
10f2d63a | 27518 | |
e6cc62c6 VS |
27519 | |
27520 | ||
1e487827 | 27521 | fi |
4f14bcd8 | 27522 | done |
703e0a69 | 27523 | |
10f2d63a VZ |
27524 | fi |
27525 | ||
e6cc62c6 VS |
27526 | |
27527 | ||
4f14bcd8 | 27528 | for ac_func in uname gethostname |
70846f0a | 27529 | do |
e6cc62c6 VS |
27530 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27531 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27532 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27533 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27535 | else | |
27536 | cat >conftest.$ac_ext <<_ACEOF | |
27537 | #line $LINENO "configure" | |
27538 | /* confdefs.h. */ | |
27539 | _ACEOF | |
27540 | cat confdefs.h >>conftest.$ac_ext | |
27541 | cat >>conftest.$ac_ext <<_ACEOF | |
27542 | /* end confdefs.h. */ | |
70846f0a | 27543 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27544 | which can conflict with char $ac_func (); below. |
27545 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27546 | <limits.h> exists even on freestanding compilers. */ | |
27547 | #ifdef __STDC__ | |
27548 | # include <limits.h> | |
27549 | #else | |
27550 | # include <assert.h> | |
27551 | #endif | |
70846f0a | 27552 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27553 | #ifdef __cplusplus |
27554 | extern "C" | |
27555 | { | |
27556 | #endif | |
70846f0a | 27557 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27558 | builtin and then its argument prototype would still apply. */ |
27559 | char $ac_func (); | |
70846f0a VZ |
27560 | /* The GNU C library defines this for functions which it implements |
27561 | to always fail with ENOSYS. Some functions are actually named | |
27562 | something starting with __ and the normal name is an alias. */ | |
27563 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27564 | choke me | |
27565 | #else | |
e6cc62c6 VS |
27566 | char (*f) () = $ac_func; |
27567 | #endif | |
27568 | #ifdef __cplusplus | |
27569 | } | |
70846f0a VZ |
27570 | #endif |
27571 | ||
e6cc62c6 VS |
27572 | int |
27573 | main () | |
27574 | { | |
27575 | return f != $ac_func; | |
27576 | ; | |
27577 | return 0; | |
27578 | } | |
27579 | _ACEOF | |
27580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27582 | (eval $ac_link) 2>&5 | |
27583 | ac_status=$? | |
27584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27585 | (exit $ac_status); } && | |
27586 | { ac_try='test -s conftest$ac_exeext' | |
27587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27588 | (eval $ac_try) 2>&5 | |
27589 | ac_status=$? | |
27590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27591 | (exit $ac_status); }; }; then | |
27592 | eval "$as_ac_var=yes" | |
27593 | else | |
27594 | echo "$as_me: failed program was:" >&5 | |
27595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27596 | ||
27597 | eval "$as_ac_var=no" | |
27598 | fi | |
27599 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27600 | fi | |
27601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27602 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27603 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27604 | cat >>confdefs.h <<_ACEOF | |
27605 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27606 | _ACEOF | |
4f14bcd8 | 27607 | break |
70846f0a VZ |
27608 | fi |
27609 | done | |
27610 | ||
8284b0c5 MB |
27611 | |
27612 | ||
e6cc62c6 VS |
27613 | |
27614 | ac_ext=cc | |
4f14bcd8 | 27615 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27616 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27617 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27618 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27619 | ||
8284b0c5 | 27620 | |
4f14bcd8 GD |
27621 | |
27622 | for ac_func in strtok_r | |
10f2d63a | 27623 | do |
e6cc62c6 VS |
27624 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27625 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27626 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27627 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27629 | else | |
27630 | cat >conftest.$ac_ext <<_ACEOF | |
27631 | #line $LINENO "configure" | |
27632 | /* confdefs.h. */ | |
27633 | _ACEOF | |
27634 | cat confdefs.h >>conftest.$ac_ext | |
27635 | cat >>conftest.$ac_ext <<_ACEOF | |
27636 | /* end confdefs.h. */ | |
4f14bcd8 | 27637 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27638 | which can conflict with char $ac_func (); below. |
27639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27640 | <limits.h> exists even on freestanding compilers. */ | |
27641 | #ifdef __STDC__ | |
27642 | # include <limits.h> | |
27643 | #else | |
27644 | # include <assert.h> | |
27645 | #endif | |
4f14bcd8 GD |
27646 | /* Override any gcc2 internal prototype to avoid an error. */ |
27647 | #ifdef __cplusplus | |
27648 | extern "C" | |
e6cc62c6 | 27649 | { |
4f14bcd8 GD |
27650 | #endif |
27651 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
27652 | builtin and then its argument prototype would still apply. */ |
27653 | char $ac_func (); | |
4f14bcd8 GD |
27654 | /* The GNU C library defines this for functions which it implements |
27655 | to always fail with ENOSYS. Some functions are actually named | |
27656 | something starting with __ and the normal name is an alias. */ | |
27657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27658 | choke me | |
27659 | #else | |
e6cc62c6 VS |
27660 | char (*f) () = $ac_func; |
27661 | #endif | |
27662 | #ifdef __cplusplus | |
27663 | } | |
4f14bcd8 GD |
27664 | #endif |
27665 | ||
e6cc62c6 VS |
27666 | int |
27667 | main () | |
27668 | { | |
27669 | return f != $ac_func; | |
27670 | ; | |
27671 | return 0; | |
27672 | } | |
27673 | _ACEOF | |
27674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27676 | (eval $ac_link) 2>&5 | |
27677 | ac_status=$? | |
27678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27679 | (exit $ac_status); } && | |
27680 | { ac_try='test -s conftest$ac_exeext' | |
27681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27682 | (eval $ac_try) 2>&5 | |
27683 | ac_status=$? | |
27684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27685 | (exit $ac_status); }; }; then | |
27686 | eval "$as_ac_var=yes" | |
27687 | else | |
27688 | echo "$as_me: failed program was:" >&5 | |
27689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27690 | ||
27691 | eval "$as_ac_var=no" | |
27692 | fi | |
27693 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27694 | fi | |
27695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27696 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27697 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27698 | cat >>confdefs.h <<_ACEOF | |
27699 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27700 | _ACEOF | |
4f14bcd8 | 27701 | |
10f2d63a VZ |
27702 | fi |
27703 | done | |
27704 | ||
8284b0c5 | 27705 | |
4f14bcd8 | 27706 | ac_ext=c |
4f14bcd8 | 27707 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27711 | |
5c6fa7d2 | 27712 | |
8284b0c5 | 27713 | INET_LINK= |
e6cc62c6 | 27714 | |
4f14bcd8 GD |
27715 | for ac_func in inet_addr |
27716 | do | |
e6cc62c6 VS |
27717 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27718 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27719 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27720 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27722 | else | |
27723 | cat >conftest.$ac_ext <<_ACEOF | |
27724 | #line $LINENO "configure" | |
27725 | /* confdefs.h. */ | |
27726 | _ACEOF | |
27727 | cat confdefs.h >>conftest.$ac_ext | |
27728 | cat >>conftest.$ac_ext <<_ACEOF | |
27729 | /* end confdefs.h. */ | |
4f14bcd8 | 27730 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27731 | which can conflict with char $ac_func (); below. |
27732 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27733 | <limits.h> exists even on freestanding compilers. */ | |
27734 | #ifdef __STDC__ | |
27735 | # include <limits.h> | |
27736 | #else | |
27737 | # include <assert.h> | |
27738 | #endif | |
10f2d63a | 27739 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27740 | #ifdef __cplusplus |
27741 | extern "C" | |
27742 | { | |
27743 | #endif | |
10f2d63a | 27744 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27745 | builtin and then its argument prototype would still apply. */ |
27746 | char $ac_func (); | |
4f14bcd8 GD |
27747 | /* The GNU C library defines this for functions which it implements |
27748 | to always fail with ENOSYS. Some functions are actually named | |
27749 | something starting with __ and the normal name is an alias. */ | |
27750 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27751 | choke me | |
27752 | #else | |
e6cc62c6 VS |
27753 | char (*f) () = $ac_func; |
27754 | #endif | |
27755 | #ifdef __cplusplus | |
27756 | } | |
4f14bcd8 GD |
27757 | #endif |
27758 | ||
e6cc62c6 VS |
27759 | int |
27760 | main () | |
27761 | { | |
27762 | return f != $ac_func; | |
27763 | ; | |
27764 | return 0; | |
27765 | } | |
27766 | _ACEOF | |
27767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27769 | (eval $ac_link) 2>&5 | |
27770 | ac_status=$? | |
27771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27772 | (exit $ac_status); } && | |
27773 | { ac_try='test -s conftest$ac_exeext' | |
27774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27775 | (eval $ac_try) 2>&5 | |
27776 | ac_status=$? | |
27777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27778 | (exit $ac_status); }; }; then | |
27779 | eval "$as_ac_var=yes" | |
27780 | else | |
27781 | echo "$as_me: failed program was:" >&5 | |
27782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27783 | ||
27784 | eval "$as_ac_var=no" | |
27785 | fi | |
27786 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27787 | fi | |
27788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27789 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27790 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27791 | cat >>confdefs.h <<_ACEOF | |
27792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27793 | _ACEOF | |
27794 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27795 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 27796 | _ACEOF |
10f2d63a VZ |
27797 | |
27798 | else | |
e6cc62c6 VS |
27799 | |
27800 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
27801 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
27802 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
27803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27804 | else |
e6cc62c6 | 27805 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27806 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
27807 | cat >conftest.$ac_ext <<_ACEOF |
27808 | #line $LINENO "configure" | |
27809 | /* confdefs.h. */ | |
27810 | _ACEOF | |
27811 | cat confdefs.h >>conftest.$ac_ext | |
27812 | cat >>conftest.$ac_ext <<_ACEOF | |
27813 | /* end confdefs.h. */ | |
27814 | ||
10f2d63a | 27815 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27816 | #ifdef __cplusplus |
27817 | extern "C" | |
27818 | #endif | |
10f2d63a | 27819 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27820 | builtin and then its argument prototype would still apply. */ |
27821 | char inet_addr (); | |
27822 | int | |
27823 | main () | |
27824 | { | |
27825 | inet_addr (); | |
27826 | ; | |
27827 | return 0; | |
27828 | } | |
27829 | _ACEOF | |
27830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27832 | (eval $ac_link) 2>&5 | |
27833 | ac_status=$? | |
27834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27835 | (exit $ac_status); } && | |
27836 | { ac_try='test -s conftest$ac_exeext' | |
27837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27838 | (eval $ac_try) 2>&5 | |
27839 | ac_status=$? | |
27840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27841 | (exit $ac_status); }; }; then | |
27842 | ac_cv_lib_nsl_inet_addr=yes | |
27843 | else | |
27844 | echo "$as_me: failed program was:" >&5 | |
27845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27846 | ||
27847 | ac_cv_lib_nsl_inet_addr=no | |
27848 | fi | |
27849 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27850 | LIBS=$ac_check_lib_save_LIBS | |
27851 | fi | |
27852 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
27853 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
27854 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 27855 | INET_LINK="nsl" |
10f2d63a | 27856 | else |
e6cc62c6 VS |
27857 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
27858 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
27859 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
27860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27861 | else |
e6cc62c6 | 27862 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27863 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
27864 | cat >conftest.$ac_ext <<_ACEOF |
27865 | #line $LINENO "configure" | |
27866 | /* confdefs.h. */ | |
27867 | _ACEOF | |
27868 | cat confdefs.h >>conftest.$ac_ext | |
27869 | cat >>conftest.$ac_ext <<_ACEOF | |
27870 | /* end confdefs.h. */ | |
27871 | ||
5c6fa7d2 | 27872 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27873 | #ifdef __cplusplus |
27874 | extern "C" | |
27875 | #endif | |
5c6fa7d2 | 27876 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27877 | builtin and then its argument prototype would still apply. */ |
27878 | char inet_addr (); | |
27879 | int | |
27880 | main () | |
27881 | { | |
27882 | inet_addr (); | |
27883 | ; | |
27884 | return 0; | |
27885 | } | |
27886 | _ACEOF | |
27887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27889 | (eval $ac_link) 2>&5 | |
27890 | ac_status=$? | |
27891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27892 | (exit $ac_status); } && | |
27893 | { ac_try='test -s conftest$ac_exeext' | |
27894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27895 | (eval $ac_try) 2>&5 | |
27896 | ac_status=$? | |
27897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27898 | (exit $ac_status); }; }; then | |
27899 | ac_cv_lib_resolv_inet_addr=yes | |
27900 | else | |
27901 | echo "$as_me: failed program was:" >&5 | |
27902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27903 | ||
27904 | ac_cv_lib_resolv_inet_addr=no | |
27905 | fi | |
27906 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27907 | LIBS=$ac_check_lib_save_LIBS | |
27908 | fi | |
27909 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
27910 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
27911 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 27912 | INET_LINK="resolv" |
698dcdb6 | 27913 | else |
e6cc62c6 VS |
27914 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
27915 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
27916 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
27917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 27918 | else |
e6cc62c6 | 27919 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 27920 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
27921 | cat >conftest.$ac_ext <<_ACEOF |
27922 | #line $LINENO "configure" | |
27923 | /* confdefs.h. */ | |
27924 | _ACEOF | |
27925 | cat confdefs.h >>conftest.$ac_ext | |
27926 | cat >>conftest.$ac_ext <<_ACEOF | |
27927 | /* end confdefs.h. */ | |
27928 | ||
3c011993 | 27929 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27930 | #ifdef __cplusplus |
27931 | extern "C" | |
27932 | #endif | |
3c011993 | 27933 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27934 | builtin and then its argument prototype would still apply. */ |
27935 | char inet_addr (); | |
27936 | int | |
27937 | main () | |
27938 | { | |
27939 | inet_addr (); | |
27940 | ; | |
27941 | return 0; | |
27942 | } | |
27943 | _ACEOF | |
27944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27946 | (eval $ac_link) 2>&5 | |
27947 | ac_status=$? | |
27948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27949 | (exit $ac_status); } && | |
27950 | { ac_try='test -s conftest$ac_exeext' | |
27951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27952 | (eval $ac_try) 2>&5 | |
27953 | ac_status=$? | |
27954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27955 | (exit $ac_status); }; }; then | |
27956 | ac_cv_lib_socket_inet_addr=yes | |
27957 | else | |
27958 | echo "$as_me: failed program was:" >&5 | |
27959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27960 | ||
27961 | ac_cv_lib_socket_inet_addr=no | |
27962 | fi | |
27963 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27964 | LIBS=$ac_check_lib_save_LIBS | |
27965 | fi | |
27966 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
27967 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
27968 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
27969 | INET_LINK="socket" | |
4f14bcd8 | 27970 | |
8284b0c5 | 27971 | fi |
e6cc62c6 | 27972 | |
698dcdb6 | 27973 | |
7b4a847f | 27974 | fi |
e6cc62c6 VS |
27975 | |
27976 | ||
a0b9e27f | 27977 | fi |
579d8138 | 27978 | |
e6cc62c6 VS |
27979 | |
27980 | ||
5c6fa7d2 | 27981 | fi |
e6cc62c6 VS |
27982 | done |
27983 | ||
27984 | ||
27985 | ||
27986 | for ac_func in inet_aton | |
27987 | do | |
27988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27989 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27991 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27993 | else | |
27994 | cat >conftest.$ac_ext <<_ACEOF | |
27995 | #line $LINENO "configure" | |
27996 | /* confdefs.h. */ | |
27997 | _ACEOF | |
27998 | cat confdefs.h >>conftest.$ac_ext | |
27999 | cat >>conftest.$ac_ext <<_ACEOF | |
28000 | /* end confdefs.h. */ | |
28001 | /* System header to define __stub macros and hopefully few prototypes, | |
28002 | which can conflict with char $ac_func (); below. | |
28003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28004 | <limits.h> exists even on freestanding compilers. */ | |
28005 | #ifdef __STDC__ | |
28006 | # include <limits.h> | |
28007 | #else | |
28008 | # include <assert.h> | |
28009 | #endif | |
28010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28011 | #ifdef __cplusplus | |
28012 | extern "C" | |
28013 | { | |
28014 | #endif | |
28015 | /* We use char because int might match the return type of a gcc2 | |
28016 | builtin and then its argument prototype would still apply. */ | |
28017 | char $ac_func (); | |
28018 | /* The GNU C library defines this for functions which it implements | |
28019 | to always fail with ENOSYS. Some functions are actually named | |
28020 | something starting with __ and the normal name is an alias. */ | |
28021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28022 | choke me | |
28023 | #else | |
28024 | char (*f) () = $ac_func; | |
28025 | #endif | |
28026 | #ifdef __cplusplus | |
28027 | } | |
28028 | #endif | |
28029 | ||
28030 | int | |
28031 | main () | |
28032 | { | |
28033 | return f != $ac_func; | |
28034 | ; | |
28035 | return 0; | |
28036 | } | |
28037 | _ACEOF | |
28038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28040 | (eval $ac_link) 2>&5 | |
28041 | ac_status=$? | |
28042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28043 | (exit $ac_status); } && | |
28044 | { ac_try='test -s conftest$ac_exeext' | |
28045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28046 | (eval $ac_try) 2>&5 | |
28047 | ac_status=$? | |
28048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28049 | (exit $ac_status); }; }; then | |
28050 | eval "$as_ac_var=yes" | |
28051 | else | |
28052 | echo "$as_me: failed program was:" >&5 | |
28053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28054 | ||
28055 | eval "$as_ac_var=no" | |
28056 | fi | |
28057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28058 | fi | |
28059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28060 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28062 | cat >>confdefs.h <<_ACEOF | |
28063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28064 | _ACEOF | |
28065 | cat >>confdefs.h <<\_ACEOF | |
28066 | #define HAVE_INET_ATON 1 | |
28067 | _ACEOF | |
28068 | ||
28069 | else | |
28070 | ||
28071 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28072 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28073 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28074 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28076 | else | |
28077 | ac_check_lib_save_LIBS=$LIBS | |
28078 | LIBS="-l$INET_LINK $LIBS" | |
28079 | cat >conftest.$ac_ext <<_ACEOF | |
28080 | #line $LINENO "configure" | |
28081 | /* confdefs.h. */ | |
28082 | _ACEOF | |
28083 | cat confdefs.h >>conftest.$ac_ext | |
28084 | cat >>conftest.$ac_ext <<_ACEOF | |
28085 | /* end confdefs.h. */ | |
28086 | ||
28087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28088 | #ifdef __cplusplus | |
28089 | extern "C" | |
28090 | #endif | |
28091 | /* We use char because int might match the return type of a gcc2 | |
28092 | builtin and then its argument prototype would still apply. */ | |
28093 | char inet_aton (); | |
28094 | int | |
28095 | main () | |
28096 | { | |
28097 | inet_aton (); | |
28098 | ; | |
28099 | return 0; | |
28100 | } | |
28101 | _ACEOF | |
28102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28104 | (eval $ac_link) 2>&5 | |
28105 | ac_status=$? | |
28106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28107 | (exit $ac_status); } && | |
28108 | { ac_try='test -s conftest$ac_exeext' | |
28109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28110 | (eval $ac_try) 2>&5 | |
28111 | ac_status=$? | |
28112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28113 | (exit $ac_status); }; }; then | |
28114 | eval "$as_ac_Lib=yes" | |
28115 | else | |
28116 | echo "$as_me: failed program was:" >&5 | |
28117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28118 | ||
28119 | eval "$as_ac_Lib=no" | |
28120 | fi | |
28121 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28122 | LIBS=$ac_check_lib_save_LIBS | |
28123 | fi | |
28124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28125 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28126 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28127 | cat >>confdefs.h <<\_ACEOF | |
28128 | #define HAVE_INET_ATON 1 | |
28129 | _ACEOF | |
52127426 | 28130 | |
a0b9e27f | 28131 | fi |
247f5006 | 28132 | |
8284b0c5 | 28133 | |
698dcdb6 | 28134 | fi |
4f14bcd8 GD |
28135 | done |
28136 | ||
8284b0c5 | 28137 | |
e6cc62c6 VS |
28138 | if test "x$INET_LINK" != "x"; then |
28139 | cat >>confdefs.h <<\_ACEOF | |
28140 | #define HAVE_INET_ADDR 1 | |
28141 | _ACEOF | |
28142 | ||
28143 | INET_LINK=" -l$INET_LINK" | |
28144 | fi | |
28145 | ||
28146 | fi | |
a0b9e27f | 28147 | |
a0b9e27f | 28148 | |
4f14bcd8 | 28149 | |
e6cc62c6 VS |
28150 | ESD_LINK= |
28151 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28152 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28153 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28154 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28156 | fi | |
28157 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 | |
28158 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
28159 | else | |
28160 | # Is the header compilable? | |
28161 | echo "$as_me:$LINENO: checking esd.h usability" >&5 | |
28162 | echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6 | |
28163 | cat >conftest.$ac_ext <<_ACEOF | |
28164 | #line $LINENO "configure" | |
28165 | /* confdefs.h. */ | |
28166 | _ACEOF | |
28167 | cat confdefs.h >>conftest.$ac_ext | |
28168 | cat >>conftest.$ac_ext <<_ACEOF | |
28169 | /* end confdefs.h. */ | |
28170 | $ac_includes_default | |
28171 | #include <esd.h> | |
28172 | _ACEOF | |
28173 | rm -f conftest.$ac_objext | |
28174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28175 | (eval $ac_compile) 2>&5 | |
28176 | ac_status=$? | |
28177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28178 | (exit $ac_status); } && | |
28179 | { ac_try='test -s conftest.$ac_objext' | |
28180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28181 | (eval $ac_try) 2>&5 | |
28182 | ac_status=$? | |
28183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28184 | (exit $ac_status); }; }; then | |
28185 | ac_header_compiler=yes | |
28186 | else | |
28187 | echo "$as_me: failed program was:" >&5 | |
28188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28189 | ||
28190 | ac_header_compiler=no | |
28191 | fi | |
28192 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28193 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28194 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28195 | ||
28196 | # Is the header present? | |
28197 | echo "$as_me:$LINENO: checking esd.h presence" >&5 | |
28198 | echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6 | |
28199 | cat >conftest.$ac_ext <<_ACEOF | |
28200 | #line $LINENO "configure" | |
28201 | /* confdefs.h. */ | |
28202 | _ACEOF | |
28203 | cat confdefs.h >>conftest.$ac_ext | |
28204 | cat >>conftest.$ac_ext <<_ACEOF | |
28205 | /* end confdefs.h. */ | |
28206 | #include <esd.h> | |
28207 | _ACEOF | |
28208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28210 | ac_status=$? | |
28211 | grep -v '^ *+' conftest.er1 >conftest.err | |
28212 | rm -f conftest.er1 | |
28213 | cat conftest.err >&5 | |
28214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28215 | (exit $ac_status); } >/dev/null; then | |
28216 | if test -s conftest.err; then | |
28217 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28218 | else | |
28219 | ac_cpp_err= | |
28220 | fi | |
a0b9e27f | 28221 | else |
e6cc62c6 VS |
28222 | ac_cpp_err=yes |
28223 | fi | |
28224 | if test -z "$ac_cpp_err"; then | |
28225 | ac_header_preproc=yes | |
28226 | else | |
28227 | echo "$as_me: failed program was:" >&5 | |
28228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28229 | ||
28230 | ac_header_preproc=no | |
28231 | fi | |
28232 | rm -f conftest.err conftest.$ac_ext | |
28233 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28234 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28235 | ||
28236 | # So? What about this header? | |
28237 | case $ac_header_compiler:$ac_header_preproc in | |
28238 | yes:no ) | |
28239 | { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28240 | echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28241 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28242 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28243 | ( | |
28244 | cat <<\_ASBOX | |
28245 | ## ------------------------------------ ## | |
28246 | ## Report this to bug-autoconf@gnu.org. ## | |
28247 | ## ------------------------------------ ## | |
28248 | _ASBOX | |
28249 | ) | | |
28250 | sed "s/^/$as_me: WARNING: /" >&2 | |
28251 | ;; | |
28252 | no:yes ) | |
28253 | { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5 | |
28254 | echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;} | |
28255 | { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5 | |
28256 | echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;} | |
28257 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28258 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28259 | ( | |
28260 | cat <<\_ASBOX | |
28261 | ## ------------------------------------ ## | |
28262 | ## Report this to bug-autoconf@gnu.org. ## | |
28263 | ## ------------------------------------ ## | |
28264 | _ASBOX | |
28265 | ) | | |
28266 | sed "s/^/$as_me: WARNING: /" >&2 | |
28267 | ;; | |
28268 | esac | |
28269 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28270 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28271 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28273 | else | |
28274 | ac_cv_header_esd_h=$ac_header_preproc | |
a0b9e27f | 28275 | fi |
e6cc62c6 VS |
28276 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 |
28277 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
a0b9e27f | 28278 | |
e6cc62c6 VS |
28279 | fi |
28280 | if test $ac_cv_header_esd_h = yes; then | |
4f14bcd8 | 28281 | |
e6cc62c6 VS |
28282 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 |
28283 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28284 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28286 | else |
e6cc62c6 VS |
28287 | ac_check_lib_save_LIBS=$LIBS |
28288 | LIBS="-lesd $LIBS" | |
28289 | cat >conftest.$ac_ext <<_ACEOF | |
28290 | #line $LINENO "configure" | |
28291 | /* confdefs.h. */ | |
28292 | _ACEOF | |
28293 | cat confdefs.h >>conftest.$ac_ext | |
28294 | cat >>conftest.$ac_ext <<_ACEOF | |
28295 | /* end confdefs.h. */ | |
28296 | ||
6232543b | 28297 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28298 | #ifdef __cplusplus |
28299 | extern "C" | |
28300 | #endif | |
6232543b | 28301 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28302 | builtin and then its argument prototype would still apply. */ |
28303 | char esd_close (); | |
28304 | int | |
28305 | main () | |
28306 | { | |
28307 | esd_close (); | |
28308 | ; | |
28309 | return 0; | |
28310 | } | |
28311 | _ACEOF | |
28312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28314 | (eval $ac_link) 2>&5 | |
28315 | ac_status=$? | |
28316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28317 | (exit $ac_status); } && | |
28318 | { ac_try='test -s conftest$ac_exeext' | |
28319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28320 | (eval $ac_try) 2>&5 | |
28321 | ac_status=$? | |
28322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28323 | (exit $ac_status); }; }; then | |
28324 | ac_cv_lib_esd_esd_close=yes | |
a0b9e27f | 28325 | else |
e6cc62c6 VS |
28326 | echo "$as_me: failed program was:" >&5 |
28327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f14bcd8 | 28328 | |
e6cc62c6 | 28329 | ac_cv_lib_esd_esd_close=no |
10f2d63a | 28330 | fi |
e6cc62c6 VS |
28331 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
28332 | LIBS=$ac_check_lib_save_LIBS | |
a0b9e27f | 28333 | fi |
e6cc62c6 VS |
28334 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 |
28335 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28336 | if test $ac_cv_lib_esd_esd_close = yes; then | |
247f5006 | 28337 | |
e6cc62c6 | 28338 | ESD_LINK="-lesd" |
10f2d63a | 28339 | |
e6cc62c6 | 28340 | fi |
8284b0c5 | 28341 | |
4f14bcd8 | 28342 | |
6232543b | 28343 | fi |
10f2d63a | 28344 | |
703e0a69 | 28345 | |
8284b0c5 | 28346 | |
e6cc62c6 VS |
28347 | |
28348 | ||
28349 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28350 | # This file is a shell script that caches the results of configure |
28351 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28352 | # scripts and configure runs, see configure's option --config-cache. |
28353 | # It is not useful on other systems. If it contains results you don't | |
28354 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28355 | # |
e6cc62c6 VS |
28356 | # config.status only pays attention to the cache file if you give it |
28357 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28358 | # |
e6cc62c6 VS |
28359 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28360 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28361 | # following values. | |
28362 | ||
28363 | _ACEOF | |
28364 | ||
4f14bcd8 GD |
28365 | # The following way of writing the cache mishandles newlines in values, |
28366 | # but we know of no workaround that is simple, portable, and efficient. | |
28367 | # So, don't put newlines in cache variables' values. | |
28368 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28369 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28370 | { |
28371 | (set) 2>&1 | | |
28372 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28373 | *ac_space=\ *) | |
28374 | # `set' does not quote correctly, so add quotes (double-quote | |
28375 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28376 | sed -n \ | |
28377 | "s/'/'\\\\''/g; | |
28378 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28379 | ;; | |
28380 | *) | |
28381 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28382 | sed -n \ | |
28383 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28384 | ;; | |
28385 | esac; | |
28386 | } | | |
28387 | sed ' | |
28388 | t clear | |
28389 | : clear | |
28390 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28391 | t end | |
28392 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28393 | : end' >>confcache | |
28394 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28395 | if test -w $cache_file; then |
e6cc62c6 VS |
28396 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28397 | cat confcache >$cache_file | |
f6bcfd97 | 28398 | else |
4f14bcd8 | 28399 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28400 | fi |
4f14bcd8 GD |
28401 | fi |
28402 | rm -f confcache | |
f6bcfd97 | 28403 | |
8284b0c5 | 28404 | |
009fead0 | 28405 | CPP_MT_FLAG= |
4f14bcd8 GD |
28406 | if test "$TOOLKIT" != "MSW"; then |
28407 | ||
e6cc62c6 | 28408 | |
7274f1c7 | 28409 | THREADS_LINK= |
009fead0 | 28410 | THREADS_CFLAGS= |
7274f1c7 RL |
28411 | |
28412 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28413 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28414 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28415 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28416 | wxUSE_THREADS="no" |
28417 | fi | |
4f14bcd8 | 28418 | fi |
4f14bcd8 | 28419 | |
7274f1c7 | 28420 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28421 | |
28422 | ||
009fead0 VZ |
28423 | THREAD_OPTS="-pthread" |
28424 | case "${host}" in | |
28425 | *-*-solaris2* | *-*-sunos4* ) | |
28426 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28427 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28428 | else |
28429 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28430 | fi | |
28431 | ;; | |
28432 | *-*-freebsd*) | |
28433 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28434 | ;; | |
17234b26 MB |
28435 | *-*-darwin* | *-*-cygwin* ) |
28436 | THREAD_OPTS="" | |
4101db81 | 28437 | ;; |
8f4a9a10 | 28438 | *-*-aix*) |
009fead0 VZ |
28439 | THREAD_OPTS="pthreads" |
28440 | ;; | |
4f5a7f74 VZ |
28441 | *-hp-hpux* ) |
28442 | if test "x$GCC" != "xyes"; then | |
28443 | THREAD_OPTS="" | |
28444 | fi | |
89e3b3e4 VZ |
28445 | ;; |
28446 | ||
28447 | *-*-irix* ) | |
28448 | if test "x$GCC" = "xyes"; then | |
28449 | THREAD_OPTS="" | |
28450 | fi | |
28451 | ;; | |
28452 | ||
28453 | *-*-*UnixWare*) | |
28454 | if test "x$GCC" != "xyes"; then | |
28455 | THREAD_OPTS="-Ethread" | |
28456 | fi | |
28457 | ;; | |
009fead0 | 28458 | esac |
4f14bcd8 | 28459 | |
02a1dfba | 28460 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 28461 | |
009fead0 VZ |
28462 | THREADS_OK=no |
28463 | for flag in $THREAD_OPTS; do | |
28464 | case $flag in | |
28465 | none) | |
e6cc62c6 VS |
28466 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
28467 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 28468 | ;; |
698dcdb6 | 28469 | |
009fead0 | 28470 | -*) |
e6cc62c6 VS |
28471 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
28472 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
28473 | THREADS_CFLAGS="$flag" |
28474 | ;; | |
698dcdb6 | 28475 | |
009fead0 | 28476 | *) |
e6cc62c6 VS |
28477 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
28478 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
28479 | THREADS_LINK="-l$flag" |
28480 | ;; | |
28481 | esac | |
10f2d63a | 28482 | |
009fead0 VZ |
28483 | save_LIBS="$LIBS" |
28484 | save_CFLAGS="$CFLAGS" | |
28485 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 28486 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 28487 | |
e6cc62c6 VS |
28488 | cat >conftest.$ac_ext <<_ACEOF |
28489 | #line $LINENO "configure" | |
28490 | /* confdefs.h. */ | |
28491 | _ACEOF | |
28492 | cat confdefs.h >>conftest.$ac_ext | |
28493 | cat >>conftest.$ac_ext <<_ACEOF | |
28494 | /* end confdefs.h. */ | |
009fead0 | 28495 | #include <pthread.h> |
e6cc62c6 VS |
28496 | int |
28497 | main () | |
28498 | { | |
009fead0 | 28499 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
28500 | ; |
28501 | return 0; | |
28502 | } | |
28503 | _ACEOF | |
28504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28506 | (eval $ac_link) 2>&5 | |
28507 | ac_status=$? | |
28508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28509 | (exit $ac_status); } && | |
28510 | { ac_try='test -s conftest$ac_exeext' | |
28511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28512 | (eval $ac_try) 2>&5 | |
28513 | ac_status=$? | |
28514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28515 | (exit $ac_status); }; }; then | |
009fead0 | 28516 | THREADS_OK=yes |
10f2d63a | 28517 | else |
e6cc62c6 VS |
28518 | echo "$as_me: failed program was:" >&5 |
28519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28520 | ||
6232543b | 28521 | fi |
e6cc62c6 | 28522 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 28523 | |
009fead0 VZ |
28524 | LIBS="$save_LIBS" |
28525 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 28526 | |
e6cc62c6 VS |
28527 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
28528 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
28529 | if test "x$THREADS_OK" = "xyes"; then |
28530 | break; | |
28531 | fi | |
d9b9876f | 28532 | |
009fead0 VZ |
28533 | THREADS_LINK="" |
28534 | THREADS_CFLAGS="" | |
28535 | done | |
4f14bcd8 | 28536 | |
009fead0 VZ |
28537 | if test "x$THREADS_OK" != "xyes"; then |
28538 | wxUSE_THREADS=no | |
e6cc62c6 VS |
28539 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
28540 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 28541 | else |
db82f09e VZ |
28542 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
28543 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 28544 | |
e6cc62c6 VS |
28545 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
28546 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
28547 | flag=no |
28548 | case "${host}" in | |
2b5f62a0 VZ |
28549 | *-aix*) |
28550 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
28551 | flag="-D_THREAD_SAFE" | |
28552 | ;; | |
28553 | *-freebsd*) | |
009fead0 VZ |
28554 | flag="-D_THREAD_SAFE" |
28555 | ;; | |
06313569 GD |
28556 | *-hp-hpux* ) |
28557 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
28558 | if test "x$GCC" != "xyes"; then |
28559 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
28560 | fi | |
06313569 | 28561 | ;; |
009fead0 VZ |
28562 | *solaris* | alpha*-osf*) |
28563 | flag="-D_REENTRANT" | |
28564 | ;; | |
28565 | esac | |
e6cc62c6 VS |
28566 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
28567 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 28568 | if test "x$flag" != xno; then |
04727afd | 28569 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
28570 | fi |
28571 | ||
009fead0 | 28572 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 28573 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
28574 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
28575 | fi | |
28576 | fi | |
4f14bcd8 | 28577 | fi |
4f14bcd8 | 28578 | |
7274f1c7 | 28579 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28580 | |
28581 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 28582 | do |
e6cc62c6 VS |
28583 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28584 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28585 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28586 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28588 | else | |
28589 | cat >conftest.$ac_ext <<_ACEOF | |
28590 | #line $LINENO "configure" | |
28591 | /* confdefs.h. */ | |
28592 | _ACEOF | |
28593 | cat confdefs.h >>conftest.$ac_ext | |
28594 | cat >>conftest.$ac_ext <<_ACEOF | |
28595 | /* end confdefs.h. */ | |
4f14bcd8 | 28596 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28597 | which can conflict with char $ac_func (); below. |
28598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28599 | <limits.h> exists even on freestanding compilers. */ | |
28600 | #ifdef __STDC__ | |
28601 | # include <limits.h> | |
28602 | #else | |
28603 | # include <assert.h> | |
28604 | #endif | |
4f14bcd8 | 28605 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28606 | #ifdef __cplusplus |
28607 | extern "C" | |
28608 | { | |
28609 | #endif | |
4f14bcd8 | 28610 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28611 | builtin and then its argument prototype would still apply. */ |
28612 | char $ac_func (); | |
4f14bcd8 GD |
28613 | /* The GNU C library defines this for functions which it implements |
28614 | to always fail with ENOSYS. Some functions are actually named | |
28615 | something starting with __ and the normal name is an alias. */ | |
28616 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28617 | choke me | |
28618 | #else | |
e6cc62c6 VS |
28619 | char (*f) () = $ac_func; |
28620 | #endif | |
28621 | #ifdef __cplusplus | |
28622 | } | |
4f14bcd8 GD |
28623 | #endif |
28624 | ||
e6cc62c6 VS |
28625 | int |
28626 | main () | |
28627 | { | |
28628 | return f != $ac_func; | |
28629 | ; | |
28630 | return 0; | |
28631 | } | |
28632 | _ACEOF | |
28633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28635 | (eval $ac_link) 2>&5 | |
28636 | ac_status=$? | |
28637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28638 | (exit $ac_status); } && | |
28639 | { ac_try='test -s conftest$ac_exeext' | |
28640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28641 | (eval $ac_try) 2>&5 | |
28642 | ac_status=$? | |
28643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28644 | (exit $ac_status); }; }; then | |
28645 | eval "$as_ac_var=yes" | |
28646 | else | |
28647 | echo "$as_me: failed program was:" >&5 | |
28648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28649 | ||
28650 | eval "$as_ac_var=no" | |
28651 | fi | |
28652 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28653 | fi | |
28654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28655 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28656 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28657 | cat >>confdefs.h <<_ACEOF | |
28658 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28659 | _ACEOF | |
698dcdb6 | 28660 | |
10f2d63a | 28661 | fi |
4f14bcd8 | 28662 | done |
10f2d63a | 28663 | |
8284b0c5 | 28664 | |
e6cc62c6 VS |
28665 | |
28666 | for ac_header in sched.h | |
4f14bcd8 | 28667 | do |
e6cc62c6 VS |
28668 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
28669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28670 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28674 | fi | |
28675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28677 | else | |
28678 | # Is the header compilable? | |
28679 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
28680 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
28681 | cat >conftest.$ac_ext <<_ACEOF | |
28682 | #line $LINENO "configure" | |
28683 | /* confdefs.h. */ | |
28684 | _ACEOF | |
28685 | cat confdefs.h >>conftest.$ac_ext | |
28686 | cat >>conftest.$ac_ext <<_ACEOF | |
28687 | /* end confdefs.h. */ | |
28688 | $ac_includes_default | |
28689 | #include <$ac_header> | |
28690 | _ACEOF | |
28691 | rm -f conftest.$ac_objext | |
28692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28693 | (eval $ac_compile) 2>&5 | |
28694 | ac_status=$? | |
28695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28696 | (exit $ac_status); } && | |
28697 | { ac_try='test -s conftest.$ac_objext' | |
28698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28699 | (eval $ac_try) 2>&5 | |
28700 | ac_status=$? | |
28701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28702 | (exit $ac_status); }; }; then | |
28703 | ac_header_compiler=yes | |
28704 | else | |
28705 | echo "$as_me: failed program was:" >&5 | |
28706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28707 | ||
28708 | ac_header_compiler=no | |
28709 | fi | |
28710 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28713 | ||
28714 | # Is the header present? | |
28715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
28716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
28717 | cat >conftest.$ac_ext <<_ACEOF | |
28718 | #line $LINENO "configure" | |
28719 | /* confdefs.h. */ | |
28720 | _ACEOF | |
28721 | cat confdefs.h >>conftest.$ac_ext | |
28722 | cat >>conftest.$ac_ext <<_ACEOF | |
28723 | /* end confdefs.h. */ | |
28724 | #include <$ac_header> | |
28725 | _ACEOF | |
28726 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28727 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28728 | ac_status=$? | |
28729 | grep -v '^ *+' conftest.er1 >conftest.err | |
28730 | rm -f conftest.er1 | |
28731 | cat conftest.err >&5 | |
28732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28733 | (exit $ac_status); } >/dev/null; then | |
28734 | if test -s conftest.err; then | |
28735 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28736 | else | |
28737 | ac_cpp_err= | |
28738 | fi | |
28739 | else | |
28740 | ac_cpp_err=yes | |
28741 | fi | |
28742 | if test -z "$ac_cpp_err"; then | |
28743 | ac_header_preproc=yes | |
28744 | else | |
28745 | echo "$as_me: failed program was:" >&5 | |
28746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28747 | ||
28748 | ac_header_preproc=no | |
28749 | fi | |
28750 | rm -f conftest.err conftest.$ac_ext | |
28751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28753 | ||
28754 | # So? What about this header? | |
28755 | case $ac_header_compiler:$ac_header_preproc in | |
28756 | yes:no ) | |
28757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28760 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28761 | ( | |
28762 | cat <<\_ASBOX | |
28763 | ## ------------------------------------ ## | |
28764 | ## Report this to bug-autoconf@gnu.org. ## | |
28765 | ## ------------------------------------ ## | |
28766 | _ASBOX | |
28767 | ) | | |
28768 | sed "s/^/$as_me: WARNING: /" >&2 | |
28769 | ;; | |
28770 | no:yes ) | |
28771 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
28772 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28773 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28774 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28775 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28776 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28777 | ( | |
28778 | cat <<\_ASBOX | |
28779 | ## ------------------------------------ ## | |
28780 | ## Report this to bug-autoconf@gnu.org. ## | |
28781 | ## ------------------------------------ ## | |
28782 | _ASBOX | |
28783 | ) | | |
28784 | sed "s/^/$as_me: WARNING: /" >&2 | |
28785 | ;; | |
28786 | esac | |
28787 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28788 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28789 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28791 | else | |
28792 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 28793 | fi |
e6cc62c6 VS |
28794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28796 | ||
10f2d63a | 28797 | fi |
e6cc62c6 VS |
28798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28799 | cat >>confdefs.h <<_ACEOF | |
28800 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28801 | _ACEOF | |
28802 | ||
f6bcfd97 | 28803 | fi |
e6cc62c6 | 28804 | |
4f14bcd8 | 28805 | done |
f6bcfd97 | 28806 | |
009fead0 | 28807 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
28808 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
28809 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
28810 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
28811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28812 | else | |
28813 | cat >conftest.$ac_ext <<_ACEOF | |
28814 | #line $LINENO "configure" | |
28815 | /* confdefs.h. */ | |
28816 | _ACEOF | |
28817 | cat confdefs.h >>conftest.$ac_ext | |
28818 | cat >>conftest.$ac_ext <<_ACEOF | |
28819 | /* end confdefs.h. */ | |
009fead0 | 28820 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28821 | which can conflict with char sched_yield (); below. |
28822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28823 | <limits.h> exists even on freestanding compilers. */ | |
28824 | #ifdef __STDC__ | |
28825 | # include <limits.h> | |
28826 | #else | |
28827 | # include <assert.h> | |
28828 | #endif | |
4f14bcd8 | 28829 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28830 | #ifdef __cplusplus |
28831 | extern "C" | |
28832 | { | |
28833 | #endif | |
4f14bcd8 | 28834 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28835 | builtin and then its argument prototype would still apply. */ |
28836 | char sched_yield (); | |
009fead0 VZ |
28837 | /* The GNU C library defines this for functions which it implements |
28838 | to always fail with ENOSYS. Some functions are actually named | |
28839 | something starting with __ and the normal name is an alias. */ | |
28840 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
28841 | choke me | |
28842 | #else | |
e6cc62c6 VS |
28843 | char (*f) () = sched_yield; |
28844 | #endif | |
28845 | #ifdef __cplusplus | |
28846 | } | |
009fead0 VZ |
28847 | #endif |
28848 | ||
e6cc62c6 VS |
28849 | int |
28850 | main () | |
28851 | { | |
28852 | return f != sched_yield; | |
28853 | ; | |
28854 | return 0; | |
28855 | } | |
28856 | _ACEOF | |
28857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28859 | (eval $ac_link) 2>&5 | |
28860 | ac_status=$? | |
28861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28862 | (exit $ac_status); } && | |
28863 | { ac_try='test -s conftest$ac_exeext' | |
28864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28865 | (eval $ac_try) 2>&5 | |
28866 | ac_status=$? | |
28867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28868 | (exit $ac_status); }; }; then | |
28869 | ac_cv_func_sched_yield=yes | |
28870 | else | |
28871 | echo "$as_me: failed program was:" >&5 | |
28872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28873 | ||
28874 | ac_cv_func_sched_yield=no | |
28875 | fi | |
28876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28877 | fi | |
28878 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
28879 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
28880 | if test $ac_cv_func_sched_yield = yes; then | |
28881 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28882 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 28883 | _ACEOF |
10f2d63a | 28884 | |
4f14bcd8 | 28885 | else |
009fead0 | 28886 | |
e6cc62c6 VS |
28887 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
28888 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
28889 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
28890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 28891 | else |
e6cc62c6 | 28892 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28893 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
28894 | cat >conftest.$ac_ext <<_ACEOF |
28895 | #line $LINENO "configure" | |
28896 | /* confdefs.h. */ | |
28897 | _ACEOF | |
28898 | cat confdefs.h >>conftest.$ac_ext | |
28899 | cat >>conftest.$ac_ext <<_ACEOF | |
28900 | /* end confdefs.h. */ | |
28901 | ||
4f14bcd8 | 28902 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28903 | #ifdef __cplusplus |
28904 | extern "C" | |
28905 | #endif | |
4f14bcd8 | 28906 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28907 | builtin and then its argument prototype would still apply. */ |
28908 | char sched_yield (); | |
28909 | int | |
28910 | main () | |
28911 | { | |
28912 | sched_yield (); | |
28913 | ; | |
28914 | return 0; | |
28915 | } | |
28916 | _ACEOF | |
28917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28919 | (eval $ac_link) 2>&5 | |
28920 | ac_status=$? | |
28921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28922 | (exit $ac_status); } && | |
28923 | { ac_try='test -s conftest$ac_exeext' | |
28924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28925 | (eval $ac_try) 2>&5 | |
28926 | ac_status=$? | |
28927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28928 | (exit $ac_status); }; }; then | |
28929 | ac_cv_lib_posix4_sched_yield=yes | |
28930 | else | |
28931 | echo "$as_me: failed program was:" >&5 | |
28932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28933 | ||
28934 | ac_cv_lib_posix4_sched_yield=no | |
28935 | fi | |
28936 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28937 | LIBS=$ac_check_lib_save_LIBS | |
28938 | fi | |
28939 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
28940 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
28941 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
28942 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28943 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 28944 | _ACEOF |
3d63bc3a | 28945 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 28946 | else |
e6cc62c6 VS |
28947 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
28948 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
28949 | ||
54276ccf VZ |
28950 | fi |
28951 | ||
e6cc62c6 VS |
28952 | |
28953 | ||
4f14bcd8 | 28954 | fi |
698dcdb6 | 28955 | |
009fead0 | 28956 | fi |
10f2d63a | 28957 | |
7274f1c7 | 28958 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
28959 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
28960 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
28961 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
28962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28963 | else | |
28964 | cat >conftest.$ac_ext <<_ACEOF | |
28965 | #line $LINENO "configure" | |
28966 | /* confdefs.h. */ | |
28967 | _ACEOF | |
28968 | cat confdefs.h >>conftest.$ac_ext | |
28969 | cat >>conftest.$ac_ext <<_ACEOF | |
28970 | /* end confdefs.h. */ | |
009fead0 | 28971 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28972 | which can conflict with char pthread_attr_getschedpolicy (); below. |
28973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28974 | <limits.h> exists even on freestanding compilers. */ | |
28975 | #ifdef __STDC__ | |
28976 | # include <limits.h> | |
28977 | #else | |
28978 | # include <assert.h> | |
28979 | #endif | |
4f14bcd8 | 28980 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28981 | #ifdef __cplusplus |
28982 | extern "C" | |
28983 | { | |
28984 | #endif | |
4f14bcd8 | 28985 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28986 | builtin and then its argument prototype would still apply. */ |
28987 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
28988 | /* The GNU C library defines this for functions which it implements |
28989 | to always fail with ENOSYS. Some functions are actually named | |
28990 | something starting with __ and the normal name is an alias. */ | |
28991 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
28992 | choke me | |
28993 | #else | |
e6cc62c6 VS |
28994 | char (*f) () = pthread_attr_getschedpolicy; |
28995 | #endif | |
28996 | #ifdef __cplusplus | |
28997 | } | |
009fead0 VZ |
28998 | #endif |
28999 | ||
e6cc62c6 VS |
29000 | int |
29001 | main () | |
29002 | { | |
29003 | return f != pthread_attr_getschedpolicy; | |
29004 | ; | |
29005 | return 0; | |
29006 | } | |
29007 | _ACEOF | |
29008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29010 | (eval $ac_link) 2>&5 | |
29011 | ac_status=$? | |
29012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29013 | (exit $ac_status); } && | |
29014 | { ac_try='test -s conftest$ac_exeext' | |
29015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29016 | (eval $ac_try) 2>&5 | |
29017 | ac_status=$? | |
29018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29019 | (exit $ac_status); }; }; then | |
29020 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29021 | else | |
29022 | echo "$as_me: failed program was:" >&5 | |
29023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29024 | ||
29025 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29026 | fi | |
29027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29028 | fi | |
29029 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29030 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29031 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29032 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29033 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29034 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29036 | else | |
29037 | cat >conftest.$ac_ext <<_ACEOF | |
29038 | #line $LINENO "configure" | |
29039 | /* confdefs.h. */ | |
29040 | _ACEOF | |
29041 | cat confdefs.h >>conftest.$ac_ext | |
29042 | cat >>conftest.$ac_ext <<_ACEOF | |
29043 | /* end confdefs.h. */ | |
a0b9e27f | 29044 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29045 | which can conflict with char pthread_attr_setschedparam (); below. |
29046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29047 | <limits.h> exists even on freestanding compilers. */ | |
29048 | #ifdef __STDC__ | |
29049 | # include <limits.h> | |
29050 | #else | |
29051 | # include <assert.h> | |
29052 | #endif | |
422107f9 | 29053 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29054 | #ifdef __cplusplus |
29055 | extern "C" | |
29056 | { | |
29057 | #endif | |
422107f9 | 29058 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29059 | builtin and then its argument prototype would still apply. */ |
29060 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29061 | /* The GNU C library defines this for functions which it implements |
29062 | to always fail with ENOSYS. Some functions are actually named | |
29063 | something starting with __ and the normal name is an alias. */ | |
29064 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29065 | choke me | |
29066 | #else | |
e6cc62c6 VS |
29067 | char (*f) () = pthread_attr_setschedparam; |
29068 | #endif | |
29069 | #ifdef __cplusplus | |
29070 | } | |
009fead0 VZ |
29071 | #endif |
29072 | ||
e6cc62c6 VS |
29073 | int |
29074 | main () | |
29075 | { | |
29076 | return f != pthread_attr_setschedparam; | |
29077 | ; | |
29078 | return 0; | |
29079 | } | |
29080 | _ACEOF | |
29081 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29083 | (eval $ac_link) 2>&5 | |
29084 | ac_status=$? | |
29085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29086 | (exit $ac_status); } && | |
29087 | { ac_try='test -s conftest$ac_exeext' | |
29088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29089 | (eval $ac_try) 2>&5 | |
29090 | ac_status=$? | |
29091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29092 | (exit $ac_status); }; }; then | |
29093 | ac_cv_func_pthread_attr_setschedparam=yes | |
29094 | else | |
29095 | echo "$as_me: failed program was:" >&5 | |
29096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29097 | ||
29098 | ac_cv_func_pthread_attr_setschedparam=no | |
29099 | fi | |
29100 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29101 | fi | |
29102 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29103 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29104 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29105 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29106 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29107 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29109 | else | |
29110 | cat >conftest.$ac_ext <<_ACEOF | |
29111 | #line $LINENO "configure" | |
29112 | /* confdefs.h. */ | |
29113 | _ACEOF | |
29114 | cat confdefs.h >>conftest.$ac_ext | |
29115 | cat >>conftest.$ac_ext <<_ACEOF | |
29116 | /* end confdefs.h. */ | |
ef33c576 | 29117 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29118 | which can conflict with char sched_get_priority_max (); below. |
29119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29120 | <limits.h> exists even on freestanding compilers. */ | |
29121 | #ifdef __STDC__ | |
29122 | # include <limits.h> | |
29123 | #else | |
29124 | # include <assert.h> | |
29125 | #endif | |
4f14bcd8 | 29126 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29127 | #ifdef __cplusplus |
29128 | extern "C" | |
29129 | { | |
29130 | #endif | |
4f14bcd8 | 29131 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29132 | builtin and then its argument prototype would still apply. */ |
29133 | char sched_get_priority_max (); | |
009fead0 VZ |
29134 | /* The GNU C library defines this for functions which it implements |
29135 | to always fail with ENOSYS. Some functions are actually named | |
29136 | something starting with __ and the normal name is an alias. */ | |
29137 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29138 | choke me | |
29139 | #else | |
e6cc62c6 VS |
29140 | char (*f) () = sched_get_priority_max; |
29141 | #endif | |
29142 | #ifdef __cplusplus | |
29143 | } | |
009fead0 VZ |
29144 | #endif |
29145 | ||
e6cc62c6 VS |
29146 | int |
29147 | main () | |
29148 | { | |
29149 | return f != sched_get_priority_max; | |
29150 | ; | |
29151 | return 0; | |
29152 | } | |
29153 | _ACEOF | |
29154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29156 | (eval $ac_link) 2>&5 | |
29157 | ac_status=$? | |
29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29159 | (exit $ac_status); } && | |
29160 | { ac_try='test -s conftest$ac_exeext' | |
29161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29162 | (eval $ac_try) 2>&5 | |
29163 | ac_status=$? | |
29164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29165 | (exit $ac_status); }; }; then | |
29166 | ac_cv_func_sched_get_priority_max=yes | |
29167 | else | |
29168 | echo "$as_me: failed program was:" >&5 | |
29169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29170 | ||
29171 | ac_cv_func_sched_get_priority_max=no | |
29172 | fi | |
29173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29174 | fi | |
29175 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29176 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29177 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29178 | HAVE_PRIOR_FUNCS=1 |
29179 | else | |
e6cc62c6 VS |
29180 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29181 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29182 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29184 | else |
e6cc62c6 | 29185 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29186 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29187 | cat >conftest.$ac_ext <<_ACEOF |
29188 | #line $LINENO "configure" | |
29189 | /* confdefs.h. */ | |
29190 | _ACEOF | |
29191 | cat confdefs.h >>conftest.$ac_ext | |
29192 | cat >>conftest.$ac_ext <<_ACEOF | |
29193 | /* end confdefs.h. */ | |
29194 | ||
422107f9 | 29195 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29196 | #ifdef __cplusplus |
29197 | extern "C" | |
29198 | #endif | |
422107f9 | 29199 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29200 | builtin and then its argument prototype would still apply. */ |
29201 | char sched_get_priority_max (); | |
29202 | int | |
29203 | main () | |
29204 | { | |
29205 | sched_get_priority_max (); | |
29206 | ; | |
29207 | return 0; | |
29208 | } | |
29209 | _ACEOF | |
29210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29212 | (eval $ac_link) 2>&5 | |
29213 | ac_status=$? | |
29214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29215 | (exit $ac_status); } && | |
29216 | { ac_try='test -s conftest$ac_exeext' | |
29217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29218 | (eval $ac_try) 2>&5 | |
29219 | ac_status=$? | |
29220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29221 | (exit $ac_status); }; }; then | |
29222 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29223 | else | |
29224 | echo "$as_me: failed program was:" >&5 | |
29225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29226 | ||
29227 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29228 | fi | |
29229 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29230 | LIBS=$ac_check_lib_save_LIBS | |
29231 | fi | |
29232 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29233 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29234 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29235 | |
7274f1c7 RL |
29236 | HAVE_PRIOR_FUNCS=1 |
29237 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29238 | |
4f14bcd8 | 29239 | fi |
463abc64 | 29240 | |
e6cc62c6 | 29241 | |
328a083c | 29242 | fi |
463abc64 | 29243 | |
e6cc62c6 | 29244 | |
7b4a847f | 29245 | fi |
579d8138 | 29246 | |
e6cc62c6 | 29247 | |
5c6fa7d2 | 29248 | fi |
52127426 | 29249 | |
8284b0c5 | 29250 | |
7274f1c7 | 29251 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29252 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29253 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29254 | _ACEOF |
463abc64 | 29255 | |
7274f1c7 | 29256 | else |
e6cc62c6 VS |
29257 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29258 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29259 | fi |
463abc64 | 29260 | |
e6cc62c6 VS |
29261 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29262 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29263 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29265 | else | |
29266 | cat >conftest.$ac_ext <<_ACEOF | |
29267 | #line $LINENO "configure" | |
29268 | /* confdefs.h. */ | |
29269 | _ACEOF | |
29270 | cat confdefs.h >>conftest.$ac_ext | |
29271 | cat >>conftest.$ac_ext <<_ACEOF | |
29272 | /* end confdefs.h. */ | |
009fead0 | 29273 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29274 | which can conflict with char pthread_cancel (); below. |
29275 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29276 | <limits.h> exists even on freestanding compilers. */ | |
29277 | #ifdef __STDC__ | |
29278 | # include <limits.h> | |
29279 | #else | |
29280 | # include <assert.h> | |
29281 | #endif | |
422107f9 | 29282 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29283 | #ifdef __cplusplus |
29284 | extern "C" | |
29285 | { | |
29286 | #endif | |
422107f9 | 29287 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29288 | builtin and then its argument prototype would still apply. */ |
29289 | char pthread_cancel (); | |
009fead0 VZ |
29290 | /* The GNU C library defines this for functions which it implements |
29291 | to always fail with ENOSYS. Some functions are actually named | |
29292 | something starting with __ and the normal name is an alias. */ | |
29293 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29294 | choke me | |
29295 | #else | |
e6cc62c6 VS |
29296 | char (*f) () = pthread_cancel; |
29297 | #endif | |
29298 | #ifdef __cplusplus | |
29299 | } | |
009fead0 VZ |
29300 | #endif |
29301 | ||
e6cc62c6 VS |
29302 | int |
29303 | main () | |
29304 | { | |
29305 | return f != pthread_cancel; | |
29306 | ; | |
29307 | return 0; | |
29308 | } | |
29309 | _ACEOF | |
29310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29312 | (eval $ac_link) 2>&5 | |
29313 | ac_status=$? | |
29314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29315 | (exit $ac_status); } && | |
29316 | { ac_try='test -s conftest$ac_exeext' | |
29317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29318 | (eval $ac_try) 2>&5 | |
29319 | ac_status=$? | |
29320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29321 | (exit $ac_status); }; }; then | |
29322 | ac_cv_func_pthread_cancel=yes | |
29323 | else | |
29324 | echo "$as_me: failed program was:" >&5 | |
29325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29326 | ||
29327 | ac_cv_func_pthread_cancel=no | |
29328 | fi | |
29329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29330 | fi | |
29331 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29332 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29333 | if test $ac_cv_func_pthread_cancel = yes; then | |
29334 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29335 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29336 | _ACEOF |
4f14bcd8 | 29337 | |
698dcdb6 | 29338 | else |
e6cc62c6 VS |
29339 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29340 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29341 | fi |
29342 | ||
5c6fa7d2 | 29343 | |
e6cc62c6 VS |
29344 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29345 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29346 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29348 | else |
e6cc62c6 VS |
29349 | |
29350 | cat >conftest.$ac_ext <<_ACEOF | |
29351 | #line $LINENO "configure" | |
29352 | /* confdefs.h. */ | |
29353 | _ACEOF | |
29354 | cat confdefs.h >>conftest.$ac_ext | |
29355 | cat >>conftest.$ac_ext <<_ACEOF | |
29356 | /* end confdefs.h. */ | |
4f14bcd8 | 29357 | #include <pthread.h> |
e6cc62c6 VS |
29358 | int |
29359 | main () | |
29360 | { | |
4f14bcd8 | 29361 | |
7274f1c7 RL |
29362 | pthread_cleanup_push(NULL, NULL); |
29363 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29364 | |
29365 | ; | |
29366 | return 0; | |
29367 | } | |
29368 | _ACEOF | |
29369 | rm -f conftest.$ac_objext | |
29370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29371 | (eval $ac_compile) 2>&5 | |
29372 | ac_status=$? | |
29373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29374 | (exit $ac_status); } && | |
29375 | { ac_try='test -s conftest.$ac_objext' | |
29376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29377 | (eval $ac_try) 2>&5 | |
29378 | ac_status=$? | |
29379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29380 | (exit $ac_status); }; }; then | |
29381 | ||
7274f1c7 | 29382 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29383 | |
4f14bcd8 | 29384 | else |
e6cc62c6 VS |
29385 | echo "$as_me: failed program was:" >&5 |
29386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29387 | ||
29388 | ||
7274f1c7 | 29389 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29390 | |
247f5006 | 29391 | fi |
e6cc62c6 | 29392 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29393 | |
e6cc62c6 VS |
29394 | fi |
29395 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29396 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29397 | |
7274f1c7 | 29398 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29399 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29400 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29401 | _ACEOF |
c7a2bf27 | 29402 | |
7274f1c7 | 29403 | fi |
4f14bcd8 | 29404 | |
e6cc62c6 VS |
29405 | |
29406 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29407 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29408 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29410 | else |
e6cc62c6 VS |
29411 | |
29412 | cat >conftest.$ac_ext <<_ACEOF | |
29413 | #line $LINENO "configure" | |
29414 | /* confdefs.h. */ | |
29415 | _ACEOF | |
29416 | cat confdefs.h >>conftest.$ac_ext | |
29417 | cat >>conftest.$ac_ext <<_ACEOF | |
29418 | /* end confdefs.h. */ | |
4f14bcd8 | 29419 | #include <pthread.h> |
e6cc62c6 VS |
29420 | int |
29421 | main () | |
29422 | { | |
4f14bcd8 | 29423 | |
7274f1c7 RL |
29424 | pthread_mutexattr_t attr; |
29425 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29426 | |
29427 | ; | |
29428 | return 0; | |
29429 | } | |
29430 | _ACEOF | |
29431 | rm -f conftest.$ac_objext | |
29432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29433 | (eval $ac_compile) 2>&5 | |
29434 | ac_status=$? | |
29435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29436 | (exit $ac_status); } && | |
29437 | { ac_try='test -s conftest.$ac_objext' | |
29438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29439 | (eval $ac_try) 2>&5 | |
29440 | ac_status=$? | |
29441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29442 | (exit $ac_status); }; }; then | |
29443 | ||
7274f1c7 | 29444 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 29445 | |
3fed1840 | 29446 | else |
e6cc62c6 VS |
29447 | echo "$as_me: failed program was:" >&5 |
29448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29449 | ||
29450 | ||
7274f1c7 | 29451 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
29452 | |
29453 | ||
247f5006 | 29454 | fi |
e6cc62c6 | 29455 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29456 | |
e6cc62c6 VS |
29457 | fi |
29458 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29459 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 29460 | |
7274f1c7 | 29461 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 29462 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29463 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 29464 | _ACEOF |
4f14bcd8 | 29465 | |
7274f1c7 | 29466 | else |
e6cc62c6 VS |
29467 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
29468 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29469 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29471 | else | |
29472 | ||
29473 | cat >conftest.$ac_ext <<_ACEOF | |
29474 | #line $LINENO "configure" | |
29475 | /* confdefs.h. */ | |
29476 | _ACEOF | |
29477 | cat confdefs.h >>conftest.$ac_ext | |
29478 | cat >>conftest.$ac_ext <<_ACEOF | |
29479 | /* end confdefs.h. */ | |
4f14bcd8 | 29480 | #include <pthread.h> |
e6cc62c6 VS |
29481 | int |
29482 | main () | |
29483 | { | |
4f14bcd8 | 29484 | |
7274f1c7 | 29485 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
29486 | |
29487 | ; | |
29488 | return 0; | |
29489 | } | |
29490 | _ACEOF | |
29491 | rm -f conftest.$ac_objext | |
29492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29493 | (eval $ac_compile) 2>&5 | |
29494 | ac_status=$? | |
29495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29496 | (exit $ac_status); } && | |
29497 | { ac_try='test -s conftest.$ac_objext' | |
29498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29499 | (eval $ac_try) 2>&5 | |
29500 | ac_status=$? | |
29501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29502 | (exit $ac_status); }; }; then | |
29503 | ||
7274f1c7 | 29504 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 29505 | |
698dcdb6 | 29506 | else |
e6cc62c6 VS |
29507 | echo "$as_me: failed program was:" >&5 |
29508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29509 | ||
29510 | ||
7274f1c7 | 29511 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
29512 | |
29513 | ||
247f5006 | 29514 | fi |
e6cc62c6 | 29515 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29516 | |
e6cc62c6 VS |
29517 | fi |
29518 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
29519 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 29520 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 29521 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29522 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 29523 | _ACEOF |
3fed1840 | 29524 | |
7274f1c7 | 29525 | else |
e6cc62c6 VS |
29526 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
29527 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
29528 | fi |
29529 | fi | |
7274f1c7 | 29530 | fi |
3fed1840 | 29531 | |
a0b9e27f MB |
29532 | else |
29533 | if test "$wxUSE_THREADS" = "yes" ; then | |
29534 | case "${host}" in | |
29535 | *-*-mingw32* ) | |
e6cc62c6 VS |
29536 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
29537 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
29538 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
29539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 29540 | else |
e6cc62c6 | 29541 | |
ca8e52b3 VZ |
29542 | CFLAGS_OLD="$CFLAGS" |
29543 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
29544 | cat >conftest.$ac_ext <<_ACEOF |
29545 | #line $LINENO "configure" | |
29546 | /* confdefs.h. */ | |
29547 | _ACEOF | |
29548 | cat confdefs.h >>conftest.$ac_ext | |
29549 | cat >>conftest.$ac_ext <<_ACEOF | |
29550 | /* end confdefs.h. */ | |
29551 | ||
29552 | int | |
29553 | main () | |
29554 | { | |
ca8e52b3 | 29555 | |
e6cc62c6 VS |
29556 | ; |
29557 | return 0; | |
29558 | } | |
29559 | _ACEOF | |
29560 | rm -f conftest.$ac_objext | |
29561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29562 | (eval $ac_compile) 2>&5 | |
29563 | ac_status=$? | |
29564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29565 | (exit $ac_status); } && | |
29566 | { ac_try='test -s conftest.$ac_objext' | |
29567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29568 | (eval $ac_try) 2>&5 | |
29569 | ac_status=$? | |
29570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29571 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
29572 | wx_cv_cflags_mthread=yes |
29573 | else | |
e6cc62c6 VS |
29574 | echo "$as_me: failed program was:" >&5 |
29575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29576 | ||
29577 | wx_cv_cflags_mthread=no | |
29578 | ||
ca8e52b3 | 29579 | fi |
e6cc62c6 VS |
29580 | rm -f conftest.$ac_objext conftest.$ac_ext |
29581 | ||
ca8e52b3 | 29582 | |
e6cc62c6 VS |
29583 | fi |
29584 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
29585 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
29586 | |
29587 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
29588 | CXXFLAGS="$CXXFLAGS -mthreads" | |
29589 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
29590 | LDFLAGS="$LDFLAGS -mthreads" | |
29591 | else | |
29592 | CFLAGS="$CFLAGS_OLD" | |
29593 | fi | |
a0b9e27f MB |
29594 | ;; |
29595 | esac | |
29596 | fi | |
4f14bcd8 GD |
29597 | fi |
29598 | ||
29599 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 29600 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29601 | #define wxUSE_THREADS 1 |
e6cc62c6 | 29602 | _ACEOF |
7b6058cd | 29603 | |
8284b0c5 | 29604 | |
4f14bcd8 | 29605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 29606 | else |
4f14bcd8 | 29607 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
29608 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
29609 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
29610 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
29611 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
29612 | echo "$as_me:$LINENO: result: yes" >&5 |
29613 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 29614 | else |
e6cc62c6 VS |
29615 | echo "$as_me:$LINENO: result: no" >&5 |
29616 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
29617 | fi |
29618 | fi | |
29619 | fi | |
29620 | ||
29621 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 29622 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29623 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 29624 | _ACEOF |
4f14bcd8 GD |
29625 | |
29626 | WXGTK12=1 | |
10f2d63a | 29627 | fi |
4f14bcd8 GD |
29628 | |
29629 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 29630 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29631 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 29632 | _ACEOF |
4f14bcd8 | 29633 | |
10f2d63a | 29634 | fi |
698dcdb6 | 29635 | |
4f14bcd8 | 29636 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 29637 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29638 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 29639 | _ACEOF |
4f14bcd8 | 29640 | |
698dcdb6 | 29641 | fi |
10f2d63a | 29642 | |
4f14bcd8 GD |
29643 | WXDEBUG= |
29644 | ||
29645 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
29646 | WXDEBUG="-g" | |
29647 | wxUSE_OPTIMISE=no | |
698dcdb6 | 29648 | fi |
4f14bcd8 GD |
29649 | |
29650 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
29651 | wxUSE_DEBUG_INFO=yes | |
29652 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
29653 | fi |
29654 | ||
4f14bcd8 | 29655 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 29656 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29657 | #define WXDEBUG 1 |
e6cc62c6 | 29658 | _ACEOF |
4f14bcd8 GD |
29659 | |
29660 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 29661 | else |
4f14bcd8 GD |
29662 | if test "$wxUSE_GTK" = 1 ; then |
29663 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
29664 | fi | |
29665 | fi | |
29666 | ||
29667 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 29668 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29669 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 29670 | _ACEOF |
4f14bcd8 | 29671 | |
e6cc62c6 | 29672 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29673 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 29674 | _ACEOF |
4f14bcd8 | 29675 | |
e6cc62c6 | 29676 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29677 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 29678 | _ACEOF |
4f14bcd8 GD |
29679 | |
29680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
29681 | fi | |
29682 | ||
29683 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 29684 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
29685 | fi |
29686 | ||
29687 | PROFILE= | |
29688 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 29689 | PROFILE=" -pg" |
10f2d63a VZ |
29690 | fi |
29691 | ||
009fead0 VZ |
29692 | CODE_GEN_FLAGS= |
29693 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 29694 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
29695 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
29696 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 29697 | fi |
4f14bcd8 GD |
29698 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
29699 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
29700 | fi | |
29701 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
29702 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
29703 | fi | |
4f14bcd8 GD |
29704 | if test "$USE_WIN32" = 1 ; then |
29705 | # I'm not even really sure what this was ever added to solve, | |
29706 | # but someone added it for mingw native builds, so I guess | |
29707 | # they had a reason, right?? | |
29708 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
29709 | fi | |
1d1b75ac | 29710 | |
2b5f62a0 | 29711 | case "${host}" in |
1d1b75ac VZ |
29712 | powerpc*-*-aix* ) |
29713 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
29714 | ;; | |
2b5f62a0 VZ |
29715 | *-hppa* ) |
29716 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
29717 | ;; | |
1d1b75ac | 29718 | esac |
4f14bcd8 GD |
29719 | fi |
29720 | ||
af7b5345 | 29721 | OPTIMISE= |
4f14bcd8 | 29722 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
29723 | if test "$GCC" = yes ; then |
29724 | OPTIMISE="-O0" | |
29725 | fi | |
4f14bcd8 GD |
29726 | else |
29727 | if test "$GCC" = yes ; then | |
29728 | OPTIMISE="-O2" | |
af7b5345 VZ |
29729 | |
29730 | case "${host}" in | |
4f14bcd8 GD |
29731 | i586-*-*|i686-*-* ) |
29732 | OPTIMISE="${OPTIMISE} " | |
29733 | ;; | |
29734 | esac | |
29735 | else | |
29736 | OPTIMISE="-O" | |
29737 | fi | |
29738 | fi | |
29739 | ||
8d90d2f2 | 29740 | |
4f14bcd8 | 29741 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
e6cc62c6 | 29742 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29743 | #define WXWIN_COMPATIBILITY_2 1 |
e6cc62c6 | 29744 | _ACEOF |
4f14bcd8 | 29745 | |
8284b0c5 | 29746 | |
4f14bcd8 GD |
29747 | WXWIN_COMPATIBILITY_2_2="yes" |
29748 | fi | |
29749 | ||
65d8ef1e | 29750 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 29751 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29752 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 29753 | _ACEOF |
4f14bcd8 | 29754 | |
8d90d2f2 VZ |
29755 | |
29756 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
29757 | fi |
29758 | ||
65d8ef1e | 29759 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 29760 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 29761 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 29762 | _ACEOF |
65d8ef1e VS |
29763 | |
29764 | fi | |
29765 | ||
8284b0c5 | 29766 | |
10f2d63a | 29767 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 29768 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29769 | #define wxUSE_GUI 1 |
e6cc62c6 | 29770 | _ACEOF |
10f2d63a | 29771 | |
8284b0c5 | 29772 | |
10f2d63a | 29773 | else |
e6cc62c6 | 29774 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29775 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 29776 | _ACEOF |
10f2d63a VZ |
29777 | |
29778 | fi | |
29779 | ||
8284b0c5 | 29780 | |
10f2d63a | 29781 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 29782 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29783 | #define wxUSE_UNIX 1 |
e6cc62c6 | 29784 | _ACEOF |
10f2d63a VZ |
29785 | |
29786 | fi | |
29787 | ||
8284b0c5 | 29788 | |
10f2d63a | 29789 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 29790 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29791 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 29792 | _ACEOF |
10f2d63a VZ |
29793 | |
29794 | fi | |
29795 | ||
1e6feb95 | 29796 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 29797 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29798 | #define wxUSE_TIMER 1 |
e6cc62c6 | 29799 | _ACEOF |
1e6feb95 VZ |
29800 | |
29801 | fi | |
29802 | ||
10f2d63a | 29803 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 29804 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29805 | #define wxUSE_WAVE 1 |
e6cc62c6 | 29806 | _ACEOF |
10f2d63a VZ |
29807 | |
29808 | fi | |
29809 | ||
1e6feb95 | 29810 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 29811 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29812 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 29813 | _ACEOF |
1e6feb95 VZ |
29814 | |
29815 | fi | |
29816 | ||
29817 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 29818 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29819 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 29820 | _ACEOF |
1e6feb95 VZ |
29821 | |
29822 | fi | |
29823 | ||
29824 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 29825 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29826 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 29827 | _ACEOF |
1e6feb95 VZ |
29828 | |
29829 | fi | |
29830 | ||
10f2d63a | 29831 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 29832 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29833 | #define wxUSE_FILE 1 |
e6cc62c6 | 29834 | _ACEOF |
10f2d63a VZ |
29835 | |
29836 | fi | |
29837 | ||
1e6feb95 | 29838 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 29839 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29840 | #define wxUSE_FFILE 1 |
e6cc62c6 | 29841 | _ACEOF |
1e6feb95 VZ |
29842 | |
29843 | fi | |
29844 | ||
24528b0c | 29845 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 29846 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 29847 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 29848 | _ACEOF |
24528b0c VS |
29849 | |
29850 | fi | |
29851 | ||
10f2d63a | 29852 | if test "$wxUSE_FS_INET" = "yes"; then |
e6cc62c6 | 29853 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29854 | #define wxUSE_FS_INET 1 |
e6cc62c6 | 29855 | _ACEOF |
10f2d63a VZ |
29856 | |
29857 | fi | |
29858 | ||
29859 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
e6cc62c6 | 29860 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29861 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 29862 | _ACEOF |
10f2d63a VZ |
29863 | |
29864 | fi | |
29865 | ||
29866 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 29867 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29868 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 29869 | _ACEOF |
10f2d63a VZ |
29870 | |
29871 | fi | |
29872 | ||
eb4efbdc | 29873 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 29874 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 29875 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 29876 | _ACEOF |
eb4efbdc VZ |
29877 | |
29878 | fi | |
29879 | ||
4f3c5f06 | 29880 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 29881 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 29882 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 29883 | _ACEOF |
4f3c5f06 VZ |
29884 | |
29885 | fi | |
29886 | ||
10f2d63a | 29887 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 29888 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29889 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 29890 | _ACEOF |
10f2d63a VZ |
29891 | |
29892 | fi | |
29893 | ||
29894 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 29895 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29896 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 29897 | _ACEOF |
10f2d63a VZ |
29898 | |
29899 | fi | |
29900 | ||
a3a584a7 | 29901 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 29902 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 29903 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 29904 | _ACEOF |
a3a584a7 VZ |
29905 | |
29906 | fi | |
29907 | ||
10f2d63a | 29908 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 29909 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
29910 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
29911 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 29912 | else |
e6cc62c6 | 29913 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29914 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 29915 | _ACEOF |
10f2d63a VZ |
29916 | |
29917 | fi | |
29918 | fi | |
29919 | ||
29920 | if test "$wxUSE_CONFIG" = "yes" ; then | |
29921 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
29922 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
29923 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 29924 | else |
e6cc62c6 | 29925 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29926 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 29927 | _ACEOF |
10f2d63a VZ |
29928 | |
29929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
29930 | fi | |
29931 | fi | |
29932 | ||
29933 | if test "$wxUSE_INTL" = "yes" ; then | |
29934 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
29935 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
29936 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 29937 | else |
e6cc62c6 | 29938 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29939 | #define wxUSE_INTL 1 |
e6cc62c6 | 29940 | _ACEOF |
10f2d63a VZ |
29941 | |
29942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 29943 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
29944 | fi |
29945 | fi | |
29946 | ||
29947 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 29948 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29949 | #define wxUSE_LOG 1 |
e6cc62c6 | 29950 | _ACEOF |
10f2d63a | 29951 | |
8284b0c5 | 29952 | |
d73be714 | 29953 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 29954 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 29955 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 29956 | _ACEOF |
d73be714 VZ |
29957 | |
29958 | fi | |
29959 | ||
29960 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 29961 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 29962 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 29963 | _ACEOF |
69d27ff7 MB |
29964 | |
29965 | fi | |
29966 | ||
29967 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 29968 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 29969 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 29970 | _ACEOF |
d73be714 VZ |
29971 | |
29972 | fi | |
10f2d63a VZ |
29973 | fi |
29974 | ||
29975 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 29976 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29977 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 29978 | _ACEOF |
10f2d63a VZ |
29979 | |
29980 | fi | |
29981 | ||
e8f65ba6 | 29982 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 29983 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 29984 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 29985 | _ACEOF |
e8f65ba6 RR |
29986 | |
29987 | fi | |
29988 | ||
10f2d63a | 29989 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 29990 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29991 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 29992 | _ACEOF |
10f2d63a | 29993 | |
70f7a477 | 29994 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
29995 | fi |
29996 | ||
29997 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 29998 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29999 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30000 | _ACEOF |
10f2d63a VZ |
30001 | |
30002 | fi | |
30003 | ||
5c6fa7d2 | 30004 | |
8284b0c5 | 30005 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30006 | |
30007 | for ac_func in strptime | |
83307f33 | 30008 | do |
e6cc62c6 VS |
30009 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30010 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30011 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30012 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30014 | else | |
30015 | cat >conftest.$ac_ext <<_ACEOF | |
30016 | #line $LINENO "configure" | |
30017 | /* confdefs.h. */ | |
30018 | _ACEOF | |
30019 | cat confdefs.h >>conftest.$ac_ext | |
30020 | cat >>conftest.$ac_ext <<_ACEOF | |
30021 | /* end confdefs.h. */ | |
83307f33 | 30022 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30023 | which can conflict with char $ac_func (); below. |
30024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30025 | <limits.h> exists even on freestanding compilers. */ | |
30026 | #ifdef __STDC__ | |
30027 | # include <limits.h> | |
30028 | #else | |
30029 | # include <assert.h> | |
30030 | #endif | |
83307f33 | 30031 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30032 | #ifdef __cplusplus |
30033 | extern "C" | |
30034 | { | |
30035 | #endif | |
83307f33 | 30036 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30037 | builtin and then its argument prototype would still apply. */ |
30038 | char $ac_func (); | |
83307f33 VZ |
30039 | /* The GNU C library defines this for functions which it implements |
30040 | to always fail with ENOSYS. Some functions are actually named | |
30041 | something starting with __ and the normal name is an alias. */ | |
30042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30043 | choke me | |
30044 | #else | |
e6cc62c6 VS |
30045 | char (*f) () = $ac_func; |
30046 | #endif | |
30047 | #ifdef __cplusplus | |
30048 | } | |
83307f33 VZ |
30049 | #endif |
30050 | ||
e6cc62c6 VS |
30051 | int |
30052 | main () | |
30053 | { | |
30054 | return f != $ac_func; | |
30055 | ; | |
30056 | return 0; | |
30057 | } | |
30058 | _ACEOF | |
30059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30061 | (eval $ac_link) 2>&5 | |
30062 | ac_status=$? | |
30063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30064 | (exit $ac_status); } && | |
30065 | { ac_try='test -s conftest$ac_exeext' | |
30066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30067 | (eval $ac_try) 2>&5 | |
30068 | ac_status=$? | |
30069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30070 | (exit $ac_status); }; }; then | |
30071 | eval "$as_ac_var=yes" | |
30072 | else | |
30073 | echo "$as_me: failed program was:" >&5 | |
30074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30075 | ||
30076 | eval "$as_ac_var=no" | |
30077 | fi | |
30078 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30079 | fi | |
30080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30081 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30082 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30083 | cat >>confdefs.h <<_ACEOF | |
30084 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30085 | _ACEOF | |
83307f33 | 30086 | |
83307f33 VZ |
30087 | fi |
30088 | done | |
30089 | ||
5c6fa7d2 | 30090 | |
e6cc62c6 VS |
30091 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30092 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30093 | if test "${wx_cv_var_timezone+set}" = set; then | |
30094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30095 | else |
e6cc62c6 VS |
30096 | |
30097 | cat >conftest.$ac_ext <<_ACEOF | |
30098 | #line $LINENO "configure" | |
30099 | /* confdefs.h. */ | |
30100 | _ACEOF | |
30101 | cat confdefs.h >>conftest.$ac_ext | |
30102 | cat >>conftest.$ac_ext <<_ACEOF | |
30103 | /* end confdefs.h. */ | |
360d6699 | 30104 | |
b4085ce6 | 30105 | #include <time.h> |
e6cc62c6 VS |
30106 | |
30107 | int | |
30108 | main () | |
30109 | { | |
360d6699 VZ |
30110 | |
30111 | int tz; | |
4f11a343 | 30112 | tz = timezone; |
e6cc62c6 VS |
30113 | |
30114 | ; | |
30115 | return 0; | |
30116 | } | |
30117 | _ACEOF | |
30118 | rm -f conftest.$ac_objext | |
30119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30120 | (eval $ac_compile) 2>&5 | |
30121 | ac_status=$? | |
30122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30123 | (exit $ac_status); } && | |
30124 | { ac_try='test -s conftest.$ac_objext' | |
30125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30126 | (eval $ac_try) 2>&5 | |
30127 | ac_status=$? | |
30128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30129 | (exit $ac_status); }; }; then | |
30130 | ||
4f11a343 | 30131 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30132 | |
360d6699 | 30133 | else |
e6cc62c6 VS |
30134 | echo "$as_me: failed program was:" >&5 |
30135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30136 | ||
30137 | ||
30138 | cat >conftest.$ac_ext <<_ACEOF | |
30139 | #line $LINENO "configure" | |
30140 | /* confdefs.h. */ | |
30141 | _ACEOF | |
30142 | cat confdefs.h >>conftest.$ac_ext | |
30143 | cat >>conftest.$ac_ext <<_ACEOF | |
30144 | /* end confdefs.h. */ | |
360d6699 | 30145 | |
b4085ce6 | 30146 | #include <time.h> |
e6cc62c6 VS |
30147 | |
30148 | int | |
30149 | main () | |
30150 | { | |
360d6699 VZ |
30151 | |
30152 | int tz; | |
30153 | tz = _timezone; | |
e6cc62c6 VS |
30154 | |
30155 | ; | |
30156 | return 0; | |
30157 | } | |
30158 | _ACEOF | |
30159 | rm -f conftest.$ac_objext | |
30160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30161 | (eval $ac_compile) 2>&5 | |
30162 | ac_status=$? | |
30163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30164 | (exit $ac_status); } && | |
30165 | { ac_try='test -s conftest.$ac_objext' | |
30166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30167 | (eval $ac_try) 2>&5 | |
30168 | ac_status=$? | |
30169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30170 | (exit $ac_status); }; }; then | |
30171 | ||
360d6699 | 30172 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30173 | |
5357c8e8 | 30174 | else |
e6cc62c6 VS |
30175 | echo "$as_me: failed program was:" >&5 |
30176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30177 | ||
30178 | ||
30179 | cat >conftest.$ac_ext <<_ACEOF | |
30180 | #line $LINENO "configure" | |
30181 | /* confdefs.h. */ | |
30182 | _ACEOF | |
30183 | cat confdefs.h >>conftest.$ac_ext | |
30184 | cat >>conftest.$ac_ext <<_ACEOF | |
30185 | /* end confdefs.h. */ | |
5357c8e8 | 30186 | |
b4085ce6 | 30187 | #include <time.h> |
e6cc62c6 VS |
30188 | |
30189 | int | |
30190 | main () | |
30191 | { | |
5357c8e8 VZ |
30192 | |
30193 | int tz; | |
4f11a343 | 30194 | tz = __timezone; |
e6cc62c6 VS |
30195 | |
30196 | ; | |
30197 | return 0; | |
30198 | } | |
30199 | _ACEOF | |
30200 | rm -f conftest.$ac_objext | |
30201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30202 | (eval $ac_compile) 2>&5 | |
30203 | ac_status=$? | |
30204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30205 | (exit $ac_status); } && | |
30206 | { ac_try='test -s conftest.$ac_objext' | |
30207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30208 | (eval $ac_try) 2>&5 | |
30209 | ac_status=$? | |
30210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30211 | (exit $ac_status); }; }; then | |
30212 | ||
4f11a343 | 30213 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30214 | |
360d6699 | 30215 | else |
e6cc62c6 VS |
30216 | echo "$as_me: failed program was:" >&5 |
30217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30218 | ||
30219 | ||
f9bc1684 | 30220 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30221 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30222 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30223 | fi |
e6cc62c6 VS |
30224 | |
30225 | ||
7b4a847f | 30226 | fi |
e6cc62c6 VS |
30227 | rm -f conftest.$ac_objext conftest.$ac_ext |
30228 | ||
30229 | ||
5c6fa7d2 | 30230 | fi |
e6cc62c6 VS |
30231 | rm -f conftest.$ac_objext conftest.$ac_ext |
30232 | ||
30233 | ||
247f5006 | 30234 | fi |
e6cc62c6 | 30235 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30236 | |
e6cc62c6 VS |
30237 | |
30238 | fi | |
30239 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30240 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30241 | |
f9bc1684 | 30242 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30243 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30244 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30245 | _ACEOF |
360d6699 | 30246 | |
f9bc1684 | 30247 | fi |
698dcdb6 | 30248 | |
e6cc62c6 VS |
30249 | |
30250 | for ac_func in localtime | |
afc31813 | 30251 | do |
e6cc62c6 VS |
30252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30255 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30257 | else | |
30258 | cat >conftest.$ac_ext <<_ACEOF | |
30259 | #line $LINENO "configure" | |
30260 | /* confdefs.h. */ | |
30261 | _ACEOF | |
30262 | cat confdefs.h >>conftest.$ac_ext | |
30263 | cat >>conftest.$ac_ext <<_ACEOF | |
30264 | /* end confdefs.h. */ | |
afc31813 | 30265 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30266 | which can conflict with char $ac_func (); below. |
30267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30268 | <limits.h> exists even on freestanding compilers. */ | |
30269 | #ifdef __STDC__ | |
30270 | # include <limits.h> | |
30271 | #else | |
30272 | # include <assert.h> | |
30273 | #endif | |
afc31813 | 30274 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30275 | #ifdef __cplusplus |
30276 | extern "C" | |
30277 | { | |
30278 | #endif | |
afc31813 | 30279 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30280 | builtin and then its argument prototype would still apply. */ |
30281 | char $ac_func (); | |
afc31813 VZ |
30282 | /* The GNU C library defines this for functions which it implements |
30283 | to always fail with ENOSYS. Some functions are actually named | |
30284 | something starting with __ and the normal name is an alias. */ | |
30285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30286 | choke me | |
30287 | #else | |
e6cc62c6 VS |
30288 | char (*f) () = $ac_func; |
30289 | #endif | |
30290 | #ifdef __cplusplus | |
30291 | } | |
afc31813 VZ |
30292 | #endif |
30293 | ||
e6cc62c6 VS |
30294 | int |
30295 | main () | |
30296 | { | |
30297 | return f != $ac_func; | |
30298 | ; | |
30299 | return 0; | |
30300 | } | |
30301 | _ACEOF | |
30302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30304 | (eval $ac_link) 2>&5 | |
30305 | ac_status=$? | |
30306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30307 | (exit $ac_status); } && | |
30308 | { ac_try='test -s conftest$ac_exeext' | |
30309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30310 | (eval $ac_try) 2>&5 | |
30311 | ac_status=$? | |
30312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30313 | (exit $ac_status); }; }; then | |
30314 | eval "$as_ac_var=yes" | |
30315 | else | |
30316 | echo "$as_me: failed program was:" >&5 | |
30317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30318 | ||
30319 | eval "$as_ac_var=no" | |
30320 | fi | |
30321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30322 | fi | |
30323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30326 | cat >>confdefs.h <<_ACEOF | |
30327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30328 | _ACEOF | |
afc31813 | 30329 | |
afc31813 VZ |
30330 | fi |
30331 | done | |
30332 | ||
5c6fa7d2 | 30333 | |
8284b0c5 | 30334 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30335 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30336 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30337 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30339 | else |
e6cc62c6 VS |
30340 | |
30341 | cat >conftest.$ac_ext <<_ACEOF | |
30342 | #line $LINENO "configure" | |
30343 | /* confdefs.h. */ | |
30344 | _ACEOF | |
30345 | cat confdefs.h >>conftest.$ac_ext | |
30346 | cat >>conftest.$ac_ext <<_ACEOF | |
30347 | /* end confdefs.h. */ | |
0470b1e6 | 30348 | |
b4085ce6 | 30349 | #include <time.h> |
e6cc62c6 VS |
30350 | |
30351 | int | |
30352 | main () | |
30353 | { | |
0470b1e6 VZ |
30354 | |
30355 | struct tm tm; | |
30356 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30357 | |
30358 | ; | |
30359 | return 0; | |
30360 | } | |
30361 | _ACEOF | |
30362 | rm -f conftest.$ac_objext | |
30363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30364 | (eval $ac_compile) 2>&5 | |
30365 | ac_status=$? | |
30366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30367 | (exit $ac_status); } && | |
30368 | { ac_try='test -s conftest.$ac_objext' | |
30369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30370 | (eval $ac_try) 2>&5 | |
30371 | ac_status=$? | |
30372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30373 | (exit $ac_status); }; }; then | |
30374 | ||
f03a98d8 | 30375 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30376 | |
0470b1e6 | 30377 | else |
e6cc62c6 VS |
30378 | echo "$as_me: failed program was:" >&5 |
30379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30380 | ||
30381 | wx_cv_struct_tm_has_gmtoff=no | |
30382 | ||
247f5006 | 30383 | fi |
e6cc62c6 | 30384 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30385 | |
e6cc62c6 VS |
30386 | fi |
30387 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30388 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30389 | fi |
30390 | ||
30391 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30392 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30393 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30394 | _ACEOF |
0470b1e6 | 30395 | |
3fcdd07b VZ |
30396 | fi |
30397 | ||
e6cc62c6 VS |
30398 | |
30399 | ||
30400 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30401 | do |
e6cc62c6 VS |
30402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30407 | else | |
30408 | cat >conftest.$ac_ext <<_ACEOF | |
30409 | #line $LINENO "configure" | |
30410 | /* confdefs.h. */ | |
30411 | _ACEOF | |
30412 | cat confdefs.h >>conftest.$ac_ext | |
30413 | cat >>conftest.$ac_ext <<_ACEOF | |
30414 | /* end confdefs.h. */ | |
3fcdd07b | 30415 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30416 | which can conflict with char $ac_func (); below. |
30417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30418 | <limits.h> exists even on freestanding compilers. */ | |
30419 | #ifdef __STDC__ | |
30420 | # include <limits.h> | |
30421 | #else | |
30422 | # include <assert.h> | |
30423 | #endif | |
3fcdd07b | 30424 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30425 | #ifdef __cplusplus |
30426 | extern "C" | |
30427 | { | |
30428 | #endif | |
3fcdd07b | 30429 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30430 | builtin and then its argument prototype would still apply. */ |
30431 | char $ac_func (); | |
3fcdd07b VZ |
30432 | /* The GNU C library defines this for functions which it implements |
30433 | to always fail with ENOSYS. Some functions are actually named | |
30434 | something starting with __ and the normal name is an alias. */ | |
30435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30436 | choke me | |
30437 | #else | |
e6cc62c6 VS |
30438 | char (*f) () = $ac_func; |
30439 | #endif | |
30440 | #ifdef __cplusplus | |
30441 | } | |
3fcdd07b VZ |
30442 | #endif |
30443 | ||
e6cc62c6 VS |
30444 | int |
30445 | main () | |
30446 | { | |
30447 | return f != $ac_func; | |
30448 | ; | |
30449 | return 0; | |
30450 | } | |
30451 | _ACEOF | |
30452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30454 | (eval $ac_link) 2>&5 | |
30455 | ac_status=$? | |
30456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30457 | (exit $ac_status); } && | |
30458 | { ac_try='test -s conftest$ac_exeext' | |
30459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30460 | (eval $ac_try) 2>&5 | |
30461 | ac_status=$? | |
30462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30463 | (exit $ac_status); }; }; then | |
30464 | eval "$as_ac_var=yes" | |
30465 | else | |
30466 | echo "$as_me: failed program was:" >&5 | |
30467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30468 | ||
30469 | eval "$as_ac_var=no" | |
30470 | fi | |
30471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30472 | fi | |
30473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30474 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30475 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30476 | cat >>confdefs.h <<_ACEOF | |
30477 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30478 | _ACEOF | |
3fcdd07b | 30479 | break |
3fcdd07b VZ |
30480 | fi |
30481 | done | |
30482 | ||
698dcdb6 | 30483 | |
8284b0c5 | 30484 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
30485 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
30486 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30487 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30489 | else | |
30490 | ||
30491 | ||
30492 | ||
30493 | ac_ext=cc | |
5c6fa7d2 | 30494 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 30498 | |
8284b0c5 | 30499 | |
e6cc62c6 VS |
30500 | cat >conftest.$ac_ext <<_ACEOF |
30501 | #line $LINENO "configure" | |
30502 | /* confdefs.h. */ | |
30503 | _ACEOF | |
30504 | cat confdefs.h >>conftest.$ac_ext | |
30505 | cat >>conftest.$ac_ext <<_ACEOF | |
30506 | /* end confdefs.h. */ | |
afc31813 VZ |
30507 | |
30508 | #include <sys/time.h> | |
30509 | #include <unistd.h> | |
e6cc62c6 VS |
30510 | |
30511 | int | |
30512 | main () | |
30513 | { | |
afc31813 VZ |
30514 | |
30515 | struct timeval tv; | |
776862b4 | 30516 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
30517 | |
30518 | ; | |
30519 | return 0; | |
30520 | } | |
30521 | _ACEOF | |
30522 | rm -f conftest.$ac_objext | |
30523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30524 | (eval $ac_compile) 2>&5 | |
30525 | ac_status=$? | |
30526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30527 | (exit $ac_status); } && | |
30528 | { ac_try='test -s conftest.$ac_objext' | |
30529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30530 | (eval $ac_try) 2>&5 | |
30531 | ac_status=$? | |
30532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30533 | (exit $ac_status); }; }; then | |
afc31813 | 30534 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 30535 | else |
e6cc62c6 VS |
30536 | echo "$as_me: failed program was:" >&5 |
30537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30538 | ||
30539 | cat >conftest.$ac_ext <<_ACEOF | |
30540 | #line $LINENO "configure" | |
30541 | /* confdefs.h. */ | |
30542 | _ACEOF | |
30543 | cat confdefs.h >>conftest.$ac_ext | |
30544 | cat >>conftest.$ac_ext <<_ACEOF | |
30545 | /* end confdefs.h. */ | |
afc31813 VZ |
30546 | |
30547 | #include <sys/time.h> | |
30548 | #include <unistd.h> | |
e6cc62c6 VS |
30549 | |
30550 | int | |
30551 | main () | |
30552 | { | |
afc31813 VZ |
30553 | |
30554 | struct timeval tv; | |
30555 | gettimeofday(&tv); | |
e6cc62c6 VS |
30556 | |
30557 | ; | |
30558 | return 0; | |
30559 | } | |
30560 | _ACEOF | |
30561 | rm -f conftest.$ac_objext | |
30562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30563 | (eval $ac_compile) 2>&5 | |
30564 | ac_status=$? | |
30565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30566 | (exit $ac_status); } && | |
30567 | { ac_try='test -s conftest.$ac_objext' | |
30568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30569 | (eval $ac_try) 2>&5 | |
30570 | ac_status=$? | |
30571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30572 | (exit $ac_status); }; }; then | |
afc31813 | 30573 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 30574 | else |
e6cc62c6 VS |
30575 | echo "$as_me: failed program was:" >&5 |
30576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30577 | ||
30578 | ||
30579 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
30580 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 30581 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
30582 | |
30583 | ||
10f2d63a | 30584 | fi |
e6cc62c6 VS |
30585 | rm -f conftest.$ac_objext conftest.$ac_ext |
30586 | ||
10f2d63a | 30587 | fi |
e6cc62c6 | 30588 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 30589 | ac_ext=c |
10f2d63a | 30590 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 30594 | |
a0b9e27f | 30595 | |
e6cc62c6 VS |
30596 | fi |
30597 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
30598 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 30599 | |
afc31813 | 30600 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 30601 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30602 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 30603 | _ACEOF |
afc31813 VZ |
30604 | |
30605 | fi | |
30606 | fi | |
30607 | ||
afc31813 VZ |
30608 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
30609 | fi | |
30610 | ||
8284b0c5 | 30611 | |
52127426 | 30612 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 30613 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
30614 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
30615 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
30616 | wxUSE_SOCKETS="no" |
30617 | fi | |
0feee163 | 30618 | fi |
b089607b | 30619 | |
0feee163 VZ |
30620 | if test "$wxUSE_SOCKETS" = "yes"; then |
30621 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30622 | echo "$as_me:$LINENO: checking for socket" >&5 |
30623 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
30624 | if test "${ac_cv_func_socket+set}" = set; then | |
30625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30626 | else | |
30627 | cat >conftest.$ac_ext <<_ACEOF | |
30628 | #line $LINENO "configure" | |
30629 | /* confdefs.h. */ | |
30630 | _ACEOF | |
30631 | cat confdefs.h >>conftest.$ac_ext | |
30632 | cat >>conftest.$ac_ext <<_ACEOF | |
30633 | /* end confdefs.h. */ | |
c63c7106 | 30634 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30635 | which can conflict with char socket (); below. |
30636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30637 | <limits.h> exists even on freestanding compilers. */ | |
30638 | #ifdef __STDC__ | |
30639 | # include <limits.h> | |
30640 | #else | |
30641 | # include <assert.h> | |
30642 | #endif | |
c63c7106 | 30643 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30644 | #ifdef __cplusplus |
30645 | extern "C" | |
30646 | { | |
30647 | #endif | |
c63c7106 | 30648 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30649 | builtin and then its argument prototype would still apply. */ |
30650 | char socket (); | |
c63c7106 VZ |
30651 | /* The GNU C library defines this for functions which it implements |
30652 | to always fail with ENOSYS. Some functions are actually named | |
30653 | something starting with __ and the normal name is an alias. */ | |
30654 | #if defined (__stub_socket) || defined (__stub___socket) | |
30655 | choke me | |
30656 | #else | |
e6cc62c6 VS |
30657 | char (*f) () = socket; |
30658 | #endif | |
30659 | #ifdef __cplusplus | |
30660 | } | |
c63c7106 VZ |
30661 | #endif |
30662 | ||
e6cc62c6 VS |
30663 | int |
30664 | main () | |
30665 | { | |
30666 | return f != socket; | |
30667 | ; | |
30668 | return 0; | |
30669 | } | |
30670 | _ACEOF | |
30671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30673 | (eval $ac_link) 2>&5 | |
30674 | ac_status=$? | |
30675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30676 | (exit $ac_status); } && | |
30677 | { ac_try='test -s conftest$ac_exeext' | |
30678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30679 | (eval $ac_try) 2>&5 | |
30680 | ac_status=$? | |
30681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30682 | (exit $ac_status); }; }; then | |
30683 | ac_cv_func_socket=yes | |
30684 | else | |
30685 | echo "$as_me: failed program was:" >&5 | |
30686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30687 | ||
30688 | ac_cv_func_socket=no | |
30689 | fi | |
30690 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30691 | fi | |
30692 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
30693 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
30694 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
30695 | : |
30696 | else | |
e6cc62c6 VS |
30697 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
30698 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
30699 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
30700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 30701 | else |
e6cc62c6 | 30702 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 30703 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
30704 | cat >conftest.$ac_ext <<_ACEOF |
30705 | #line $LINENO "configure" | |
30706 | /* confdefs.h. */ | |
30707 | _ACEOF | |
30708 | cat confdefs.h >>conftest.$ac_ext | |
30709 | cat >>conftest.$ac_ext <<_ACEOF | |
30710 | /* end confdefs.h. */ | |
30711 | ||
c63c7106 | 30712 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30713 | #ifdef __cplusplus |
30714 | extern "C" | |
30715 | #endif | |
c63c7106 | 30716 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30717 | builtin and then its argument prototype would still apply. */ |
30718 | char socket (); | |
30719 | int | |
30720 | main () | |
30721 | { | |
30722 | socket (); | |
30723 | ; | |
30724 | return 0; | |
30725 | } | |
30726 | _ACEOF | |
30727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30729 | (eval $ac_link) 2>&5 | |
30730 | ac_status=$? | |
30731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30732 | (exit $ac_status); } && | |
30733 | { ac_try='test -s conftest$ac_exeext' | |
30734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30735 | (eval $ac_try) 2>&5 | |
30736 | ac_status=$? | |
30737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30738 | (exit $ac_status); }; }; then | |
30739 | ac_cv_lib_socket_socket=yes | |
30740 | else | |
30741 | echo "$as_me: failed program was:" >&5 | |
30742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30743 | ||
30744 | ac_cv_lib_socket_socket=no | |
30745 | fi | |
30746 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30747 | LIBS=$ac_check_lib_save_LIBS | |
30748 | fi | |
30749 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
30750 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
30751 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
30752 | if test "$INET_LINK" != " -lsocket"; then |
30753 | INET_LINK="$INET_LINK -lsocket" | |
30754 | fi | |
c63c7106 | 30755 | else |
afc31813 | 30756 | |
e6cc62c6 VS |
30757 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
30758 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 30759 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
30760 | |
30761 | ||
6232543b | 30762 | fi |
b089607b | 30763 | |
e6cc62c6 | 30764 | |
1e487827 | 30765 | fi |
afc31813 | 30766 | |
3a922bb4 | 30767 | fi |
0feee163 | 30768 | fi |
51a9faba | 30769 | |
0feee163 VZ |
30770 | if test "$wxUSE_SOCKETS" = "yes" ; then |
30771 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30772 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
30773 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
30774 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
30775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30776 | else |
e6cc62c6 VS |
30777 | |
30778 | cat >conftest.$ac_ext <<_ACEOF | |
30779 | #line $LINENO "configure" | |
30780 | /* confdefs.h. */ | |
30781 | _ACEOF | |
30782 | cat confdefs.h >>conftest.$ac_ext | |
30783 | cat >>conftest.$ac_ext <<_ACEOF | |
30784 | /* end confdefs.h. */ | |
51a9faba | 30785 | |
3a922bb4 RL |
30786 | #include <sys/types.h> |
30787 | #include <sys/socket.h> | |
e6cc62c6 VS |
30788 | |
30789 | int | |
30790 | main () | |
30791 | { | |
51a9faba | 30792 | |
3a922bb4 RL |
30793 | socklen_t len; |
30794 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30795 | |
30796 | ; | |
30797 | return 0; | |
30798 | } | |
30799 | _ACEOF | |
30800 | rm -f conftest.$ac_objext | |
30801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30802 | (eval $ac_compile) 2>&5 | |
30803 | ac_status=$? | |
30804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30805 | (exit $ac_status); } && | |
30806 | { ac_try='test -s conftest.$ac_objext' | |
30807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30808 | (eval $ac_try) 2>&5 | |
30809 | ac_status=$? | |
30810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30811 | (exit $ac_status); }; }; then | |
51a9faba | 30812 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 30813 | else |
e6cc62c6 VS |
30814 | echo "$as_me: failed program was:" >&5 |
30815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30816 | ||
30817 | ||
9711d31e GD |
30818 | CFLAGS_OLD="$CFLAGS" |
30819 | if test "$GCC" = yes ; then | |
30820 | CFLAGS="$CFLAGS -Werror" | |
30821 | fi | |
30822 | ||
e6cc62c6 VS |
30823 | cat >conftest.$ac_ext <<_ACEOF |
30824 | #line $LINENO "configure" | |
30825 | /* confdefs.h. */ | |
30826 | _ACEOF | |
30827 | cat confdefs.h >>conftest.$ac_ext | |
30828 | cat >>conftest.$ac_ext <<_ACEOF | |
30829 | /* end confdefs.h. */ | |
51a9faba | 30830 | |
9711d31e GD |
30831 | #include <sys/types.h> |
30832 | #include <sys/socket.h> | |
e6cc62c6 VS |
30833 | |
30834 | int | |
30835 | main () | |
30836 | { | |
51a9faba | 30837 | |
9711d31e GD |
30838 | size_t len; |
30839 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30840 | |
30841 | ; | |
30842 | return 0; | |
30843 | } | |
30844 | _ACEOF | |
30845 | rm -f conftest.$ac_objext | |
30846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30847 | (eval $ac_compile) 2>&5 | |
30848 | ac_status=$? | |
30849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30850 | (exit $ac_status); } && | |
30851 | { ac_try='test -s conftest.$ac_objext' | |
30852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30853 | (eval $ac_try) 2>&5 | |
30854 | ac_status=$? | |
30855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30856 | (exit $ac_status); }; }; then | |
51a9faba | 30857 | wx_cv_type_getsockname3=size_t |
afc31813 | 30858 | else |
e6cc62c6 VS |
30859 | echo "$as_me: failed program was:" >&5 |
30860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30861 | ||
30862 | cat >conftest.$ac_ext <<_ACEOF | |
30863 | #line $LINENO "configure" | |
30864 | /* confdefs.h. */ | |
30865 | _ACEOF | |
30866 | cat confdefs.h >>conftest.$ac_ext | |
30867 | cat >>conftest.$ac_ext <<_ACEOF | |
30868 | /* end confdefs.h. */ | |
51a9faba | 30869 | |
9711d31e GD |
30870 | #include <sys/types.h> |
30871 | #include <sys/socket.h> | |
e6cc62c6 VS |
30872 | |
30873 | int | |
30874 | main () | |
30875 | { | |
51a9faba | 30876 | |
9711d31e GD |
30877 | int len; |
30878 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30879 | |
30880 | ; | |
30881 | return 0; | |
30882 | } | |
30883 | _ACEOF | |
30884 | rm -f conftest.$ac_objext | |
30885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30886 | (eval $ac_compile) 2>&5 | |
30887 | ac_status=$? | |
30888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30889 | (exit $ac_status); } && | |
30890 | { ac_try='test -s conftest.$ac_objext' | |
30891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30892 | (eval $ac_try) 2>&5 | |
30893 | ac_status=$? | |
30894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30895 | (exit $ac_status); }; }; then | |
51a9faba | 30896 | wx_cv_type_getsockname3=int |
afc31813 | 30897 | else |
e6cc62c6 VS |
30898 | echo "$as_me: failed program was:" >&5 |
30899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30900 | ||
30901 | wx_cv_type_getsockname3=unknown | |
30902 | ||
afc31813 | 30903 | fi |
e6cc62c6 VS |
30904 | rm -f conftest.$ac_objext conftest.$ac_ext |
30905 | ||
afc31813 | 30906 | fi |
e6cc62c6 | 30907 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
30908 | |
30909 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
30910 | |
30911 | ||
247f5006 | 30912 | fi |
e6cc62c6 | 30913 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30914 | |
e6cc62c6 VS |
30915 | fi |
30916 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
30917 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 30918 | |
3a922bb4 RL |
30919 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
30920 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
30921 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
30922 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 30923 | else |
e6cc62c6 | 30924 | cat >>confdefs.h <<_ACEOF |
51a9faba | 30925 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 30926 | _ACEOF |
51a9faba | 30927 | |
3a922bb4 | 30928 | fi |
51a9faba VZ |
30929 | fi |
30930 | fi | |
afc31813 | 30931 | |
51a9faba | 30932 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 30933 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30934 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 30935 | _ACEOF |
afc31813 | 30936 | |
70f7a477 | 30937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
30938 | fi |
30939 | ||
8284b0c5 | 30940 | |
dc3d889d VZ |
30941 | if test "$wxUSE_GUI" = "yes"; then |
30942 | ||
ac0c4cc3 | 30943 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
30944 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
30945 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
30946 | wxUSE_JOYSTICK=no |
30947 | fi | |
30948 | if test "$TOOLKIT" = "MOTIF"; then | |
e6cc62c6 VS |
30949 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5 |
30950 | echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;} | |
156b2523 | 30951 | wxUSE_JOYSTICK=no |
f79bd02d JS |
30952 | fi |
30953 | if test "$TOOLKIT" = "X11"; then | |
e6cc62c6 VS |
30954 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5 |
30955 | echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;} | |
f79bd02d | 30956 | wxUSE_JOYSTICK=no |
156b2523 GD |
30957 | fi |
30958 | ||
3a922bb4 RL |
30959 | if test "$TOOLKIT" != "MSW"; then |
30960 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
e6cc62c6 VS |
30961 | |
30962 | for ac_header in linux/joystick.h | |
10f2d63a | 30963 | do |
e6cc62c6 VS |
30964 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
30965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30970 | fi | |
30971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30972 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30973 | else | |
30974 | # Is the header compilable? | |
30975 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30976 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30977 | cat >conftest.$ac_ext <<_ACEOF | |
30978 | #line $LINENO "configure" | |
30979 | /* confdefs.h. */ | |
30980 | _ACEOF | |
30981 | cat confdefs.h >>conftest.$ac_ext | |
30982 | cat >>conftest.$ac_ext <<_ACEOF | |
30983 | /* end confdefs.h. */ | |
30984 | $ac_includes_default | |
30985 | #include <$ac_header> | |
30986 | _ACEOF | |
30987 | rm -f conftest.$ac_objext | |
30988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30989 | (eval $ac_compile) 2>&5 | |
30990 | ac_status=$? | |
30991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30992 | (exit $ac_status); } && | |
30993 | { ac_try='test -s conftest.$ac_objext' | |
30994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30995 | (eval $ac_try) 2>&5 | |
30996 | ac_status=$? | |
30997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30998 | (exit $ac_status); }; }; then | |
30999 | ac_header_compiler=yes | |
31000 | else | |
31001 | echo "$as_me: failed program was:" >&5 | |
31002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31003 | ||
31004 | ac_header_compiler=no | |
31005 | fi | |
31006 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31007 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31008 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31009 | ||
31010 | # Is the header present? | |
31011 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31013 | cat >conftest.$ac_ext <<_ACEOF | |
31014 | #line $LINENO "configure" | |
31015 | /* confdefs.h. */ | |
31016 | _ACEOF | |
31017 | cat confdefs.h >>conftest.$ac_ext | |
31018 | cat >>conftest.$ac_ext <<_ACEOF | |
31019 | /* end confdefs.h. */ | |
31020 | #include <$ac_header> | |
31021 | _ACEOF | |
31022 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31023 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31024 | ac_status=$? | |
31025 | grep -v '^ *+' conftest.er1 >conftest.err | |
31026 | rm -f conftest.er1 | |
31027 | cat conftest.err >&5 | |
31028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31029 | (exit $ac_status); } >/dev/null; then | |
31030 | if test -s conftest.err; then | |
31031 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31032 | else | |
31033 | ac_cpp_err= | |
31034 | fi | |
31035 | else | |
31036 | ac_cpp_err=yes | |
31037 | fi | |
31038 | if test -z "$ac_cpp_err"; then | |
31039 | ac_header_preproc=yes | |
31040 | else | |
31041 | echo "$as_me: failed program was:" >&5 | |
31042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31043 | ||
31044 | ac_header_preproc=no | |
31045 | fi | |
31046 | rm -f conftest.err conftest.$ac_ext | |
31047 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31048 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31049 | ||
31050 | # So? What about this header? | |
31051 | case $ac_header_compiler:$ac_header_preproc in | |
31052 | yes:no ) | |
31053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31057 | ( | |
31058 | cat <<\_ASBOX | |
31059 | ## ------------------------------------ ## | |
31060 | ## Report this to bug-autoconf@gnu.org. ## | |
31061 | ## ------------------------------------ ## | |
31062 | _ASBOX | |
31063 | ) | | |
31064 | sed "s/^/$as_me: WARNING: /" >&2 | |
31065 | ;; | |
31066 | no:yes ) | |
31067 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31068 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31069 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31070 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31071 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31072 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31073 | ( | |
31074 | cat <<\_ASBOX | |
31075 | ## ------------------------------------ ## | |
31076 | ## Report this to bug-autoconf@gnu.org. ## | |
31077 | ## ------------------------------------ ## | |
31078 | _ASBOX | |
31079 | ) | | |
31080 | sed "s/^/$as_me: WARNING: /" >&2 | |
31081 | ;; | |
31082 | esac | |
31083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31087 | else | |
31088 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31089 | fi |
e6cc62c6 VS |
31090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31092 | ||
10f2d63a | 31093 | fi |
e6cc62c6 VS |
31094 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31095 | cat >>confdefs.h <<_ACEOF | |
31096 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31097 | _ACEOF | |
31098 | ||
247f5006 | 31099 | fi |
e6cc62c6 | 31100 | |
10f2d63a VZ |
31101 | done |
31102 | ||
3a922bb4 RL |
31103 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31104 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31105 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31106 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31107 | fi |
31108 | fi | |
31109 | fi | |
b089607b | 31110 | |
3a922bb4 | 31111 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31112 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31113 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31114 | _ACEOF |
10f2d63a | 31115 | |
3a922bb4 RL |
31116 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31117 | fi | |
dc3d889d VZ |
31118 | fi |
31119 | ||
8284b0c5 | 31120 | |
b089607b VZ |
31121 | if test "$TOOLKIT" != "MSW"; then |
31122 | ||
3a922bb4 RL |
31123 | HAVE_DL_FUNCS=0 |
31124 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31125 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31126 | if test "$USE_DARWIN" = 1; then |
31127 | HAVE_DL_FUNCS=1 | |
31128 | else | |
e6cc62c6 VS |
31129 | |
31130 | for ac_func in dlopen | |
10f2d63a | 31131 | do |
e6cc62c6 VS |
31132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31135 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31137 | else | |
31138 | cat >conftest.$ac_ext <<_ACEOF | |
31139 | #line $LINENO "configure" | |
31140 | /* confdefs.h. */ | |
31141 | _ACEOF | |
31142 | cat confdefs.h >>conftest.$ac_ext | |
31143 | cat >>conftest.$ac_ext <<_ACEOF | |
31144 | /* end confdefs.h. */ | |
10f2d63a | 31145 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31146 | which can conflict with char $ac_func (); below. |
31147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31148 | <limits.h> exists even on freestanding compilers. */ | |
31149 | #ifdef __STDC__ | |
31150 | # include <limits.h> | |
31151 | #else | |
31152 | # include <assert.h> | |
31153 | #endif | |
10f2d63a | 31154 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31155 | #ifdef __cplusplus |
31156 | extern "C" | |
31157 | { | |
31158 | #endif | |
10f2d63a | 31159 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31160 | builtin and then its argument prototype would still apply. */ |
31161 | char $ac_func (); | |
10f2d63a VZ |
31162 | /* The GNU C library defines this for functions which it implements |
31163 | to always fail with ENOSYS. Some functions are actually named | |
31164 | something starting with __ and the normal name is an alias. */ | |
31165 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31166 | choke me | |
31167 | #else | |
e6cc62c6 VS |
31168 | char (*f) () = $ac_func; |
31169 | #endif | |
31170 | #ifdef __cplusplus | |
31171 | } | |
10f2d63a VZ |
31172 | #endif |
31173 | ||
e6cc62c6 VS |
31174 | int |
31175 | main () | |
31176 | { | |
31177 | return f != $ac_func; | |
31178 | ; | |
31179 | return 0; | |
31180 | } | |
31181 | _ACEOF | |
31182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31184 | (eval $ac_link) 2>&5 | |
31185 | ac_status=$? | |
31186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31187 | (exit $ac_status); } && | |
31188 | { ac_try='test -s conftest$ac_exeext' | |
31189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31190 | (eval $ac_try) 2>&5 | |
31191 | ac_status=$? | |
31192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31193 | (exit $ac_status); }; }; then | |
31194 | eval "$as_ac_var=yes" | |
31195 | else | |
31196 | echo "$as_me: failed program was:" >&5 | |
31197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31198 | ||
31199 | eval "$as_ac_var=no" | |
31200 | fi | |
31201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31202 | fi | |
31203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31204 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31205 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31206 | cat >>confdefs.h <<_ACEOF | |
31207 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31208 | _ACEOF | |
31209 | ||
31210 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31211 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31212 | _ACEOF |
10f2d63a | 31213 | |
3a922bb4 | 31214 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31215 | |
10f2d63a | 31216 | else |
e6cc62c6 VS |
31217 | |
31218 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31219 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31220 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31222 | else |
e6cc62c6 | 31223 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31224 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31225 | cat >conftest.$ac_ext <<_ACEOF |
31226 | #line $LINENO "configure" | |
31227 | /* confdefs.h. */ | |
31228 | _ACEOF | |
31229 | cat confdefs.h >>conftest.$ac_ext | |
31230 | cat >>conftest.$ac_ext <<_ACEOF | |
31231 | /* end confdefs.h. */ | |
31232 | ||
10f2d63a | 31233 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31234 | #ifdef __cplusplus |
31235 | extern "C" | |
31236 | #endif | |
10f2d63a | 31237 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31238 | builtin and then its argument prototype would still apply. */ |
31239 | char dlopen (); | |
31240 | int | |
31241 | main () | |
31242 | { | |
31243 | dlopen (); | |
31244 | ; | |
31245 | return 0; | |
31246 | } | |
31247 | _ACEOF | |
31248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31250 | (eval $ac_link) 2>&5 | |
31251 | ac_status=$? | |
31252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31253 | (exit $ac_status); } && | |
31254 | { ac_try='test -s conftest$ac_exeext' | |
31255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31256 | (eval $ac_try) 2>&5 | |
31257 | ac_status=$? | |
31258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31259 | (exit $ac_status); }; }; then | |
31260 | ac_cv_lib_dl_dlopen=yes | |
31261 | else | |
31262 | echo "$as_me: failed program was:" >&5 | |
31263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31264 | ||
31265 | ac_cv_lib_dl_dlopen=no | |
31266 | fi | |
31267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31268 | LIBS=$ac_check_lib_save_LIBS | |
31269 | fi | |
31270 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31271 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31272 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31273 | ||
31274 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31275 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31276 | _ACEOF |
10f2d63a | 31277 | |
3a922bb4 | 31278 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31279 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31280 | |
10f2d63a | 31281 | else |
10f2d63a | 31282 | |
e6cc62c6 VS |
31283 | |
31284 | for ac_func in shl_load | |
10f2d63a | 31285 | do |
e6cc62c6 VS |
31286 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31287 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31289 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31291 | else | |
31292 | cat >conftest.$ac_ext <<_ACEOF | |
31293 | #line $LINENO "configure" | |
31294 | /* confdefs.h. */ | |
31295 | _ACEOF | |
31296 | cat confdefs.h >>conftest.$ac_ext | |
31297 | cat >>conftest.$ac_ext <<_ACEOF | |
31298 | /* end confdefs.h. */ | |
10f2d63a | 31299 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31300 | which can conflict with char $ac_func (); below. |
31301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31302 | <limits.h> exists even on freestanding compilers. */ | |
31303 | #ifdef __STDC__ | |
31304 | # include <limits.h> | |
31305 | #else | |
31306 | # include <assert.h> | |
31307 | #endif | |
10f2d63a | 31308 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31309 | #ifdef __cplusplus |
31310 | extern "C" | |
31311 | { | |
31312 | #endif | |
10f2d63a | 31313 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31314 | builtin and then its argument prototype would still apply. */ |
31315 | char $ac_func (); | |
10f2d63a VZ |
31316 | /* The GNU C library defines this for functions which it implements |
31317 | to always fail with ENOSYS. Some functions are actually named | |
31318 | something starting with __ and the normal name is an alias. */ | |
31319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31320 | choke me | |
31321 | #else | |
e6cc62c6 VS |
31322 | char (*f) () = $ac_func; |
31323 | #endif | |
31324 | #ifdef __cplusplus | |
31325 | } | |
10f2d63a VZ |
31326 | #endif |
31327 | ||
e6cc62c6 VS |
31328 | int |
31329 | main () | |
31330 | { | |
31331 | return f != $ac_func; | |
31332 | ; | |
31333 | return 0; | |
31334 | } | |
31335 | _ACEOF | |
31336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31338 | (eval $ac_link) 2>&5 | |
31339 | ac_status=$? | |
31340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31341 | (exit $ac_status); } && | |
31342 | { ac_try='test -s conftest$ac_exeext' | |
31343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31344 | (eval $ac_try) 2>&5 | |
31345 | ac_status=$? | |
31346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31347 | (exit $ac_status); }; }; then | |
31348 | eval "$as_ac_var=yes" | |
31349 | else | |
31350 | echo "$as_me: failed program was:" >&5 | |
31351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31352 | ||
31353 | eval "$as_ac_var=no" | |
31354 | fi | |
31355 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31356 | fi | |
31357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31359 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31360 | cat >>confdefs.h <<_ACEOF | |
31361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31362 | _ACEOF | |
31363 | ||
31364 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31365 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31366 | _ACEOF |
10f2d63a | 31367 | |
3a922bb4 | 31368 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31369 | |
10f2d63a | 31370 | else |
e6cc62c6 VS |
31371 | |
31372 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31373 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31374 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31376 | else |
e6cc62c6 | 31377 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31378 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31379 | cat >conftest.$ac_ext <<_ACEOF |
31380 | #line $LINENO "configure" | |
31381 | /* confdefs.h. */ | |
31382 | _ACEOF | |
31383 | cat confdefs.h >>conftest.$ac_ext | |
31384 | cat >>conftest.$ac_ext <<_ACEOF | |
31385 | /* end confdefs.h. */ | |
31386 | ||
8284b0c5 | 31387 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31388 | #ifdef __cplusplus |
31389 | extern "C" | |
31390 | #endif | |
f6bcfd97 | 31391 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31392 | builtin and then its argument prototype would still apply. */ |
31393 | char dld (); | |
31394 | int | |
31395 | main () | |
31396 | { | |
31397 | dld (); | |
31398 | ; | |
31399 | return 0; | |
31400 | } | |
31401 | _ACEOF | |
31402 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31404 | (eval $ac_link) 2>&5 | |
31405 | ac_status=$? | |
31406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31407 | (exit $ac_status); } && | |
31408 | { ac_try='test -s conftest$ac_exeext' | |
31409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31410 | (eval $ac_try) 2>&5 | |
31411 | ac_status=$? | |
31412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31413 | (exit $ac_status); }; }; then | |
31414 | ac_cv_lib_shl_load_dld=yes | |
31415 | else | |
31416 | echo "$as_me: failed program was:" >&5 | |
31417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31418 | ||
31419 | ac_cv_lib_shl_load_dld=no | |
31420 | fi | |
31421 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31422 | LIBS=$ac_check_lib_save_LIBS | |
31423 | fi | |
31424 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31425 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31426 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 31427 | |
3a922bb4 | 31428 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 31429 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 31430 | |
f6bcfd97 BP |
31431 | fi |
31432 | ||
e6cc62c6 | 31433 | |
10f2d63a VZ |
31434 | fi |
31435 | done | |
31436 | ||
e6cc62c6 | 31437 | |
10f2d63a VZ |
31438 | fi |
31439 | ||
e6cc62c6 | 31440 | |
10f2d63a VZ |
31441 | fi |
31442 | done | |
31443 | ||
5c6fa7d2 | 31444 | |
8284b0c5 | 31445 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
31446 | |
31447 | for ac_func in dlerror | |
f6bcfd97 | 31448 | do |
e6cc62c6 VS |
31449 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31450 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31451 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31452 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31454 | else | |
31455 | cat >conftest.$ac_ext <<_ACEOF | |
31456 | #line $LINENO "configure" | |
31457 | /* confdefs.h. */ | |
31458 | _ACEOF | |
31459 | cat confdefs.h >>conftest.$ac_ext | |
31460 | cat >>conftest.$ac_ext <<_ACEOF | |
31461 | /* end confdefs.h. */ | |
f6bcfd97 | 31462 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31463 | which can conflict with char $ac_func (); below. |
31464 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31465 | <limits.h> exists even on freestanding compilers. */ | |
31466 | #ifdef __STDC__ | |
31467 | # include <limits.h> | |
31468 | #else | |
31469 | # include <assert.h> | |
31470 | #endif | |
f6bcfd97 | 31471 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31472 | #ifdef __cplusplus |
31473 | extern "C" | |
31474 | { | |
31475 | #endif | |
f6bcfd97 | 31476 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31477 | builtin and then its argument prototype would still apply. */ |
31478 | char $ac_func (); | |
f6bcfd97 BP |
31479 | /* The GNU C library defines this for functions which it implements |
31480 | to always fail with ENOSYS. Some functions are actually named | |
31481 | something starting with __ and the normal name is an alias. */ | |
31482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31483 | choke me | |
31484 | #else | |
e6cc62c6 VS |
31485 | char (*f) () = $ac_func; |
31486 | #endif | |
31487 | #ifdef __cplusplus | |
31488 | } | |
f6bcfd97 BP |
31489 | #endif |
31490 | ||
e6cc62c6 VS |
31491 | int |
31492 | main () | |
31493 | { | |
31494 | return f != $ac_func; | |
31495 | ; | |
31496 | return 0; | |
31497 | } | |
31498 | _ACEOF | |
31499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31501 | (eval $ac_link) 2>&5 | |
31502 | ac_status=$? | |
31503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31504 | (exit $ac_status); } && | |
31505 | { ac_try='test -s conftest$ac_exeext' | |
31506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31507 | (eval $ac_try) 2>&5 | |
31508 | ac_status=$? | |
31509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31510 | (exit $ac_status); }; }; then | |
31511 | eval "$as_ac_var=yes" | |
31512 | else | |
31513 | echo "$as_me: failed program was:" >&5 | |
31514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31515 | ||
31516 | eval "$as_ac_var=no" | |
31517 | fi | |
31518 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31519 | fi | |
31520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31521 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31522 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31523 | cat >>confdefs.h <<_ACEOF | |
31524 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31525 | _ACEOF | |
31526 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31527 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31528 | _ACEOF |
f6bcfd97 BP |
31529 | |
31530 | else | |
e6cc62c6 VS |
31531 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
31532 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31533 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31535 | else |
e6cc62c6 | 31536 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31537 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31538 | cat >conftest.$ac_ext <<_ACEOF |
31539 | #line $LINENO "configure" | |
31540 | /* confdefs.h. */ | |
31541 | _ACEOF | |
31542 | cat confdefs.h >>conftest.$ac_ext | |
31543 | cat >>conftest.$ac_ext <<_ACEOF | |
31544 | /* end confdefs.h. */ | |
31545 | ||
f6bcfd97 | 31546 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31547 | #ifdef __cplusplus |
31548 | extern "C" | |
31549 | #endif | |
f6bcfd97 | 31550 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31551 | builtin and then its argument prototype would still apply. */ |
31552 | char dlerror (); | |
31553 | int | |
31554 | main () | |
31555 | { | |
31556 | dlerror (); | |
31557 | ; | |
31558 | return 0; | |
31559 | } | |
31560 | _ACEOF | |
31561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31563 | (eval $ac_link) 2>&5 | |
31564 | ac_status=$? | |
31565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31566 | (exit $ac_status); } && | |
31567 | { ac_try='test -s conftest$ac_exeext' | |
31568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31569 | (eval $ac_try) 2>&5 | |
31570 | ac_status=$? | |
31571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31572 | (exit $ac_status); }; }; then | |
31573 | ac_cv_lib_dl_dlerror=yes | |
31574 | else | |
31575 | echo "$as_me: failed program was:" >&5 | |
31576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31577 | ||
31578 | ac_cv_lib_dl_dlerror=no | |
31579 | fi | |
31580 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31581 | LIBS=$ac_check_lib_save_LIBS | |
31582 | fi | |
31583 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31584 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31585 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31586 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31587 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31588 | _ACEOF |
f6bcfd97 | 31589 | |
f6bcfd97 BP |
31590 | fi |
31591 | ||
31592 | fi | |
31593 | done | |
31594 | ||
3a922bb4 RL |
31595 | fi |
31596 | fi | |
f6bcfd97 | 31597 | |
3a922bb4 RL |
31598 | if test "$HAVE_DL_FUNCS" = 0; then |
31599 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31600 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
31601 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
31602 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 31603 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
31604 | wxUSE_DYNLIB_CLASS=no |
31605 | else | |
e6cc62c6 VS |
31606 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
31607 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
31608 | fi |
31609 | fi | |
10f2d63a VZ |
31610 | fi |
31611 | fi | |
31612 | fi | |
31613 | ||
0b9ab0bd | 31614 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 31615 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 31616 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 31617 | _ACEOF |
0b9ab0bd RL |
31618 | |
31619 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 31620 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31621 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 31622 | _ACEOF |
10f2d63a VZ |
31623 | |
31624 | fi | |
31625 | ||
8284b0c5 | 31626 | |
1e6feb95 | 31627 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 31628 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 31629 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 31630 | _ACEOF |
1e6feb95 VZ |
31631 | |
31632 | fi | |
31633 | ||
10f2d63a | 31634 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 31635 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31636 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 31637 | _ACEOF |
10f2d63a | 31638 | |
8284b0c5 | 31639 | |
bbc3925a VS |
31640 | if test "$wxUSE_MSW" != 1; then |
31641 | wxUSE_UNICODE_MSLU=no | |
31642 | fi | |
a72a4bfa VS |
31643 | |
31644 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
e6cc62c6 VS |
31645 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
31646 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
31647 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
31648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 31649 | else |
e6cc62c6 | 31650 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 31651 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
31652 | cat >conftest.$ac_ext <<_ACEOF |
31653 | #line $LINENO "configure" | |
31654 | /* confdefs.h. */ | |
31655 | _ACEOF | |
31656 | cat confdefs.h >>conftest.$ac_ext | |
31657 | cat >>conftest.$ac_ext <<_ACEOF | |
31658 | /* end confdefs.h. */ | |
a72a4bfa | 31659 | |
8284b0c5 | 31660 | |
e6cc62c6 VS |
31661 | int |
31662 | main () | |
31663 | { | |
31664 | main (); | |
31665 | ; | |
31666 | return 0; | |
31667 | } | |
31668 | _ACEOF | |
31669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31671 | (eval $ac_link) 2>&5 | |
31672 | ac_status=$? | |
31673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31674 | (exit $ac_status); } && | |
31675 | { ac_try='test -s conftest$ac_exeext' | |
31676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31677 | (eval $ac_try) 2>&5 | |
31678 | ac_status=$? | |
31679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31680 | (exit $ac_status); }; }; then | |
31681 | ac_cv_lib_unicows_main=yes | |
31682 | else | |
31683 | echo "$as_me: failed program was:" >&5 | |
31684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31685 | ||
31686 | ac_cv_lib_unicows_main=no | |
31687 | fi | |
31688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31689 | LIBS=$ac_check_lib_save_LIBS | |
31690 | fi | |
31691 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
31692 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
31693 | if test $ac_cv_lib_unicows_main = yes; then | |
31694 | ||
31695 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 31696 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
31697 | _ACEOF |
31698 | ||
a72a4bfa | 31699 | |
a72a4bfa | 31700 | else |
a72a4bfa | 31701 | |
e6cc62c6 VS |
31702 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
31703 | Applications will only run on Windows NT/2000/XP!" >&5 | |
31704 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
31705 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 31706 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 31707 | |
a72a4bfa VS |
31708 | fi |
31709 | ||
31710 | fi | |
10f2d63a VZ |
31711 | fi |
31712 | ||
10f2d63a | 31713 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 31714 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31715 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 31716 | _ACEOF |
10f2d63a VZ |
31717 | |
31718 | fi | |
31719 | ||
8284b0c5 | 31720 | |
10f2d63a | 31721 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 31722 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31723 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 31724 | _ACEOF |
10f2d63a VZ |
31725 | |
31726 | fi | |
31727 | ||
e6cc62c6 | 31728 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31729 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 31730 | _ACEOF |
10f2d63a | 31731 | |
8284b0c5 | 31732 | |
e6cc62c6 | 31733 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31734 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 31735 | _ACEOF |
10f2d63a | 31736 | |
8284b0c5 MB |
31737 | |
31738 | ||
10f2d63a | 31739 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 31740 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31741 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 31742 | _ACEOF |
10f2d63a VZ |
31743 | |
31744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
31745 | fi | |
31746 | ||
31747 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 31748 | |
8284b0c5 | 31749 | |
bb811f17 | 31750 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
e6cc62c6 | 31751 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31752 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 31753 | _ACEOF |
10f2d63a | 31754 | |
bb811f17 JS |
31755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
31756 | fi | |
10f2d63a VZ |
31757 | fi |
31758 | ||
31759 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 31760 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31761 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 31762 | _ACEOF |
10f2d63a VZ |
31763 | |
31764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
31765 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
31766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
31767 | fi | |
31768 | fi | |
31769 | ||
31770 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 31771 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31772 | #define wxUSE_HELP 1 |
e6cc62c6 | 31773 | _ACEOF |
10f2d63a VZ |
31774 | |
31775 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 31776 | |
77e13408 | 31777 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 31778 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 31779 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 31780 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 31781 | _ACEOF |
29fd3c0c | 31782 | |
3e44f09d | 31783 | fi |
3379ed37 | 31784 | fi |
031d8228 VS |
31785 | |
31786 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
31787 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 31788 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 31789 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 31790 | _ACEOF |
031d8228 VS |
31791 | |
31792 | else | |
e6cc62c6 VS |
31793 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
31794 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
31795 | wxUSE_WXHTML_HELP=no |
31796 | fi | |
31797 | fi | |
10f2d63a VZ |
31798 | fi |
31799 | ||
31800 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
31801 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
31802 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
31803 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 31804 | else |
e6cc62c6 | 31805 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31806 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 31807 | _ACEOF |
10f2d63a VZ |
31808 | |
31809 | fi | |
31810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
31811 | fi | |
31812 | ||
e6cc62c6 VS |
31813 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
31814 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
31815 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
31816 | { (exit 1); exit 1; }; } | |
31817 | fi | |
31818 | ||
31819 | ||
31820 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
31821 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
31822 | -o "$wxUSE_OLE" = "yes" \ | |
31823 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
31824 | ||
31825 | for ac_header in ole2.h | |
31826 | do | |
31827 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31829 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31830 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31831 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31833 | fi | |
31834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31836 | else | |
31837 | # Is the header compilable? | |
31838 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31839 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31840 | cat >conftest.$ac_ext <<_ACEOF | |
31841 | #line $LINENO "configure" | |
31842 | /* confdefs.h. */ | |
31843 | _ACEOF | |
31844 | cat confdefs.h >>conftest.$ac_ext | |
31845 | cat >>conftest.$ac_ext <<_ACEOF | |
31846 | /* end confdefs.h. */ | |
31847 | $ac_includes_default | |
31848 | #include <$ac_header> | |
31849 | _ACEOF | |
31850 | rm -f conftest.$ac_objext | |
31851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31852 | (eval $ac_compile) 2>&5 | |
31853 | ac_status=$? | |
31854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31855 | (exit $ac_status); } && | |
31856 | { ac_try='test -s conftest.$ac_objext' | |
31857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31858 | (eval $ac_try) 2>&5 | |
31859 | ac_status=$? | |
31860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31861 | (exit $ac_status); }; }; then | |
31862 | ac_header_compiler=yes | |
31863 | else | |
31864 | echo "$as_me: failed program was:" >&5 | |
31865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31866 | ||
31867 | ac_header_compiler=no | |
31868 | fi | |
31869 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31871 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31872 | ||
31873 | # Is the header present? | |
31874 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31875 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31876 | cat >conftest.$ac_ext <<_ACEOF | |
31877 | #line $LINENO "configure" | |
31878 | /* confdefs.h. */ | |
31879 | _ACEOF | |
31880 | cat confdefs.h >>conftest.$ac_ext | |
31881 | cat >>conftest.$ac_ext <<_ACEOF | |
31882 | /* end confdefs.h. */ | |
31883 | #include <$ac_header> | |
31884 | _ACEOF | |
31885 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31886 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31887 | ac_status=$? | |
31888 | grep -v '^ *+' conftest.er1 >conftest.err | |
31889 | rm -f conftest.er1 | |
31890 | cat conftest.err >&5 | |
31891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31892 | (exit $ac_status); } >/dev/null; then | |
31893 | if test -s conftest.err; then | |
31894 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31895 | else | |
31896 | ac_cpp_err= | |
31897 | fi | |
31898 | else | |
31899 | ac_cpp_err=yes | |
31900 | fi | |
31901 | if test -z "$ac_cpp_err"; then | |
31902 | ac_header_preproc=yes | |
31903 | else | |
31904 | echo "$as_me: failed program was:" >&5 | |
31905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31906 | ||
31907 | ac_header_preproc=no | |
31908 | fi | |
31909 | rm -f conftest.err conftest.$ac_ext | |
31910 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31911 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31912 | ||
31913 | # So? What about this header? | |
31914 | case $ac_header_compiler:$ac_header_preproc in | |
31915 | yes:no ) | |
31916 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31917 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31920 | ( | |
31921 | cat <<\_ASBOX | |
31922 | ## ------------------------------------ ## | |
31923 | ## Report this to bug-autoconf@gnu.org. ## | |
31924 | ## ------------------------------------ ## | |
31925 | _ASBOX | |
31926 | ) | | |
31927 | sed "s/^/$as_me: WARNING: /" >&2 | |
31928 | ;; | |
31929 | no:yes ) | |
31930 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31931 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31932 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31933 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31935 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31936 | ( | |
31937 | cat <<\_ASBOX | |
31938 | ## ------------------------------------ ## | |
31939 | ## Report this to bug-autoconf@gnu.org. ## | |
31940 | ## ------------------------------------ ## | |
31941 | _ASBOX | |
31942 | ) | | |
31943 | sed "s/^/$as_me: WARNING: /" >&2 | |
31944 | ;; | |
31945 | esac | |
31946 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31947 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31950 | else | |
31951 | eval "$as_ac_Header=$ac_header_preproc" | |
31952 | fi | |
31953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31954 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31955 | ||
10f2d63a | 31956 | fi |
e6cc62c6 VS |
31957 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31958 | cat >>confdefs.h <<_ACEOF | |
31959 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31960 | _ACEOF | |
10f2d63a | 31961 | |
10f2d63a | 31962 | fi |
e6cc62c6 | 31963 | |
10f2d63a VZ |
31964 | done |
31965 | ||
8284b0c5 | 31966 | |
2b9bdf71 VZ |
31967 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
31968 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
31969 | |
31970 | ||
e6cc62c6 VS |
31971 | ac_ext=cc |
31972 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31973 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31974 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31975 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31976 | ||
31977 | ||
31978 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
31979 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
31980 | cat >conftest.$ac_ext <<_ACEOF | |
31981 | #line $LINENO "configure" | |
31982 | /* confdefs.h. */ | |
31983 | _ACEOF | |
31984 | cat confdefs.h >>conftest.$ac_ext | |
31985 | cat >>conftest.$ac_ext <<_ACEOF | |
31986 | /* end confdefs.h. */ | |
8284b0c5 MB |
31987 | #include <windows.h> |
31988 | #include <ole2.h> | |
e6cc62c6 VS |
31989 | int |
31990 | main () | |
31991 | { | |
8284b0c5 | 31992 | |
e6cc62c6 VS |
31993 | ; |
31994 | return 0; | |
31995 | } | |
31996 | _ACEOF | |
31997 | rm -f conftest.$ac_objext | |
31998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31999 | (eval $ac_compile) 2>&5 | |
32000 | ac_status=$? | |
32001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32002 | (exit $ac_status); } && | |
32003 | { ac_try='test -s conftest.$ac_objext' | |
32004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32005 | (eval $ac_try) 2>&5 | |
32006 | ac_status=$? | |
32007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32008 | (exit $ac_status); }; }; then | |
32009 | echo "$as_me:$LINENO: result: no" >&5 | |
32010 | echo "${ECHO_T}no" >&6 | |
32011 | else | |
32012 | echo "$as_me: failed program was:" >&5 | |
32013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32014 | ||
32015 | echo "$as_me:$LINENO: result: yes" >&5 | |
32016 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32017 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32018 | fi | |
e6cc62c6 | 32019 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32020 | ac_ext=c |
8284b0c5 | 32021 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32025 | |
2b9bdf71 | 32026 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32027 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32028 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32029 | #define wxUSE_OLE 1 |
e6cc62c6 | 32030 | _ACEOF |
4f11a343 | 32031 | |
8284b0c5 | 32032 | |
2b9bdf71 VZ |
32033 | fi |
32034 | ||
e6cc62c6 | 32035 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32036 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32037 | _ACEOF |
2b9bdf71 VZ |
32038 | |
32039 | else | |
e6cc62c6 VS |
32040 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32041 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32042 | |
32043 | wxUSE_CLIPBOARD=no | |
32044 | wxUSE_DRAG_AND_DROP=no | |
32045 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32046 | wxUSE_OLE=no |
32047 | fi | |
32048 | ||
32049 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32050 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32051 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32052 | _ACEOF |
3bce6687 JS |
32053 | |
32054 | ||
e6cc62c6 | 32055 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32056 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32057 | _ACEOF |
3bce6687 JS |
32058 | |
32059 | fi | |
32060 | fi | |
32061 | ||
2b9bdf71 VZ |
32062 | if test "$wxUSE_IPC" = "yes"; then |
32063 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32064 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32065 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32066 | fi |
32067 | ||
e6cc62c6 | 32068 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32069 | #define wxUSE_IPC 1 |
e6cc62c6 | 32070 | _ACEOF |
2b9bdf71 VZ |
32071 | |
32072 | fi | |
32073 | ||
32074 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32075 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32076 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32077 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32078 | wxUSE_CLIPBOARD=no |
32079 | fi | |
32080 | ||
32081 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32082 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32083 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32084 | _ACEOF |
2b9bdf71 | 32085 | |
8284b0c5 | 32086 | |
e6cc62c6 | 32087 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32088 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32089 | _ACEOF |
673f4220 | 32090 | |
6c657b52 | 32091 | fi |
2b9bdf71 VZ |
32092 | fi |
32093 | ||
32094 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32095 | if test "$wxUSE_GTK" = 1; then | |
32096 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32097 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32098 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32099 | wxUSE_DRAG_AND_DROP=no |
32100 | fi | |
32101 | fi | |
32102 | ||
2b9bdf71 | 32103 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32104 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32105 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32106 | wxUSE_DRAG_AND_DROP=no |
32107 | fi | |
32108 | ||
f79bd02d | 32109 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32110 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32111 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32112 | wxUSE_DRAG_AND_DROP=no |
32113 | fi | |
32114 | ||
6c657b52 | 32115 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32116 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32117 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32118 | wxUSE_DRAG_AND_DROP=no |
32119 | fi | |
32120 | ||
10f2d63a | 32121 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32122 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32123 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32124 | _ACEOF |
10f2d63a VZ |
32125 | |
32126 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32127 | fi | |
32128 | ||
32129 | fi | |
32130 | ||
32131 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32132 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32133 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32134 | _ACEOF |
10f2d63a VZ |
32135 | |
32136 | fi | |
32137 | ||
8284b0c5 | 32138 | |
1e6feb95 VZ |
32139 | USES_CONTROLS=0 |
32140 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32141 | USES_CONTROLS=1 | |
32142 | fi | |
32143 | ||
10f2d63a | 32144 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32145 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32146 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32147 | _ACEOF |
10f2d63a | 32148 | |
1e6feb95 VZ |
32149 | USES_CONTROLS=1 |
32150 | fi | |
32151 | ||
32152 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32153 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32154 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32155 | _ACEOF |
1e6feb95 VZ |
32156 | |
32157 | USES_CONTROLS=1 | |
32158 | fi | |
32159 | ||
32160 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32161 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32162 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32163 | _ACEOF |
1e6feb95 VZ |
32164 | |
32165 | USES_CONTROLS=1 | |
32166 | fi | |
32167 | ||
32168 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32169 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32170 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32171 | _ACEOF |
1e6feb95 VZ |
32172 | |
32173 | USES_CONTROLS=1 | |
32174 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32175 | fi |
32176 | ||
32177 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32178 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32179 | #define wxUSE_CARET 1 |
e6cc62c6 | 32180 | _ACEOF |
10f2d63a | 32181 | |
1e6feb95 | 32182 | USES_CONTROLS=1 |
10f2d63a VZ |
32183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32184 | fi | |
32185 | ||
32186 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32187 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32188 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32189 | _ACEOF |
10f2d63a | 32190 | |
1e6feb95 | 32191 | USES_CONTROLS=1 |
10f2d63a VZ |
32192 | fi |
32193 | ||
32194 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32195 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32196 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32197 | _ACEOF |
10f2d63a | 32198 | |
1e6feb95 | 32199 | USES_CONTROLS=1 |
10f2d63a VZ |
32200 | fi |
32201 | ||
32202 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32203 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32204 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32205 | _ACEOF |
10f2d63a | 32206 | |
1e6feb95 | 32207 | USES_CONTROLS=1 |
10f2d63a VZ |
32208 | fi |
32209 | ||
32210 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32211 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32212 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32213 | _ACEOF |
10f2d63a | 32214 | |
1e6feb95 | 32215 | USES_CONTROLS=1 |
10f2d63a VZ |
32216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32217 | fi | |
32218 | ||
da494b40 | 32219 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32220 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32221 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32222 | _ACEOF |
da494b40 MB |
32223 | |
32224 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32225 | fi | |
32226 | ||
10f2d63a | 32227 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32228 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32229 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32230 | _ACEOF |
10f2d63a | 32231 | |
1e6feb95 | 32232 | USES_CONTROLS=1 |
10f2d63a VZ |
32233 | fi |
32234 | ||
d6a55c4b | 32235 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32236 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32237 | #define wxUSE_GRID 1 |
e6cc62c6 | 32238 | _ACEOF |
10f2d63a | 32239 | |
1e6feb95 | 32240 | USES_CONTROLS=1 |
d6a55c4b | 32241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32242 | fi |
32243 | ||
32244 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32245 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32246 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32247 | _ACEOF |
10f2d63a VZ |
32248 | |
32249 | fi | |
32250 | ||
32251 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32252 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32253 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32254 | _ACEOF |
10f2d63a | 32255 | |
1e6feb95 | 32256 | USES_CONTROLS=1 |
10f2d63a VZ |
32257 | fi |
32258 | ||
32259 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32260 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32261 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32262 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32263 | _ACEOF |
10f2d63a | 32264 | |
1e6feb95 | 32265 | USES_CONTROLS=1 |
10f2d63a VZ |
32266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32267 | else | |
e6cc62c6 VS |
32268 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32269 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32270 | fi |
32271 | fi | |
32272 | ||
32273 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32274 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32275 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32276 | _ACEOF |
10f2d63a | 32277 | |
1e6feb95 | 32278 | USES_CONTROLS=1 |
10f2d63a VZ |
32279 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32280 | fi | |
32281 | ||
24176f2c | 32282 | |
10f2d63a | 32283 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32284 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32285 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32286 | _ACEOF |
10f2d63a | 32287 | |
1e6feb95 | 32288 | USES_CONTROLS=1 |
10f2d63a VZ |
32289 | fi |
32290 | ||
32291 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32292 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32293 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32294 | _ACEOF |
10f2d63a | 32295 | |
1e6feb95 | 32296 | USES_CONTROLS=1 |
10f2d63a VZ |
32297 | fi |
32298 | ||
32299 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32300 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32301 | #define wxUSE_SASH 1 |
e6cc62c6 | 32302 | _ACEOF |
10f2d63a VZ |
32303 | |
32304 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32305 | fi | |
32306 | ||
32307 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32308 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32309 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32310 | _ACEOF |
10f2d63a | 32311 | |
1e6feb95 | 32312 | USES_CONTROLS=1 |
741a9306 | 32313 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32314 | fi |
32315 | ||
32316 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32317 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32318 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32319 | _ACEOF |
10f2d63a | 32320 | |
1e6feb95 | 32321 | USES_CONTROLS=1 |
10f2d63a VZ |
32322 | fi |
32323 | ||
32324 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32325 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32326 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32327 | _ACEOF |
10f2d63a | 32328 | |
1e6feb95 | 32329 | USES_CONTROLS=1 |
10f2d63a VZ |
32330 | fi |
32331 | ||
56cfaa52 | 32332 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32333 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32334 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32335 | _ACEOF |
56cfaa52 | 32336 | |
1e6feb95 | 32337 | USES_CONTROLS=1 |
56cfaa52 RR |
32338 | fi |
32339 | ||
10f2d63a | 32340 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32341 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32342 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32343 | _ACEOF |
10f2d63a VZ |
32344 | |
32345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32346 | fi | |
32347 | ||
32348 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32349 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32350 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32351 | _ACEOF |
10f2d63a | 32352 | |
1e6feb95 | 32353 | USES_CONTROLS=1 |
10f2d63a VZ |
32354 | fi |
32355 | ||
32356 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32357 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32358 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32359 | _ACEOF |
10f2d63a | 32360 | |
1e6feb95 VZ |
32361 | USES_CONTROLS=1 |
32362 | fi | |
32363 | ||
32364 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32365 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32366 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32367 | _ACEOF |
1e6feb95 VZ |
32368 | |
32369 | USES_CONTROLS=1 | |
10f2d63a VZ |
32370 | fi |
32371 | ||
32372 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32373 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32374 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32375 | _ACEOF |
10f2d63a | 32376 | |
89e6bf6d | 32377 | USES_CONTROLS=1 |
10f2d63a VZ |
32378 | fi |
32379 | ||
32380 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32381 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32382 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32383 | _ACEOF |
10f2d63a | 32384 | |
1e6feb95 | 32385 | USES_CONTROLS=1 |
698dcdb6 | 32386 | |
2286341c | 32387 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
32388 | fi |
32389 | ||
32390 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 32391 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32392 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 32393 | _ACEOF |
10f2d63a VZ |
32394 | |
32395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32396 | fi | |
32397 | ||
1e6feb95 | 32398 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 32399 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32400 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 32401 | _ACEOF |
1e6feb95 VZ |
32402 | |
32403 | USES_CONTROLS=1 | |
32404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32405 | fi | |
32406 | ||
1db8dc4a | 32407 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 32408 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32409 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
32410 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
32411 | wxUSE_TOGGLEBTN=no |
32412 | fi | |
32413 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
32414 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
32415 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
32416 | wxUSE_TOGGLEBTN=no |
32417 | fi | |
32418 | ||
32419 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 32420 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 32421 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 32422 | _ACEOF |
1db8dc4a | 32423 | |
1e6feb95 | 32424 | USES_CONTROLS=1 |
a45d7ab7 | 32425 | fi |
1db8dc4a VZ |
32426 | fi |
32427 | ||
360d6699 | 32428 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 32429 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32430 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 32431 | _ACEOF |
360d6699 VZ |
32432 | |
32433 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 32434 | USES_CONTROLS=1 |
360d6699 VZ |
32435 | fi |
32436 | ||
10f2d63a | 32437 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 32438 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32439 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 32440 | _ACEOF |
10f2d63a | 32441 | |
1e6feb95 | 32442 | USES_CONTROLS=1 |
698dcdb6 | 32443 | |
360d6699 VZ |
32444 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
32445 | wxUSE_TOOLBAR_NATIVE="yes" | |
32446 | fi | |
32447 | ||
1e6feb95 | 32448 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 32449 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32450 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 32451 | _ACEOF |
360d6699 | 32452 | |
1e6feb95 VZ |
32453 | USES_CONTROLS=1 |
32454 | fi | |
32455 | ||
32456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
32457 | fi |
32458 | ||
10f2d63a VZ |
32459 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
32460 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
32461 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
32462 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 32463 | else |
89e6bf6d | 32464 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
32465 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
32466 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 32467 | else |
e6cc62c6 | 32468 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32469 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 32470 | _ACEOF |
10f2d63a VZ |
32471 | |
32472 | fi | |
32473 | fi | |
32474 | fi | |
32475 | ||
32476 | if test "$wxUSE_TREECTRL" = "yes"; then | |
32477 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32478 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32479 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 32480 | _ACEOF |
10f2d63a | 32481 | |
1e6feb95 | 32482 | USES_CONTROLS=1 |
10f2d63a VZ |
32483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
32484 | else | |
e6cc62c6 VS |
32485 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
32486 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32487 | fi |
32488 | fi | |
32489 | ||
9f41d601 | 32490 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 32491 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32492 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
32493 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 32494 | else |
485cf710 | 32495 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32496 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
32497 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 32498 | else |
3c011993 | 32499 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32500 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
32501 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32502 | else |
e6cc62c6 | 32503 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 32504 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 32505 | _ACEOF |
9f41d601 | 32506 | |
8284b0c5 | 32507 | |
3c011993 VZ |
32508 | USES_CONTROLS=1 |
32509 | fi | |
485cf710 | 32510 | fi |
6abe4b65 | 32511 | fi |
9f41d601 RR |
32512 | fi |
32513 | ||
dd964dcc | 32514 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 32515 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32516 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
32517 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32518 | else |
e6cc62c6 | 32519 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 32520 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 32521 | _ACEOF |
dd964dcc | 32522 | |
3c011993 | 32523 | fi |
dd964dcc VZ |
32524 | fi |
32525 | ||
1e6feb95 | 32526 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 32527 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32528 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 32529 | _ACEOF |
10f2d63a | 32530 | |
10f2d63a VZ |
32531 | fi |
32532 | ||
8284b0c5 | 32533 | |
1e6feb95 | 32534 | |
24fd6d87 | 32535 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 32536 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 32537 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 32538 | _ACEOF |
24fd6d87 VZ |
32539 | |
32540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
32541 | fi | |
32542 | ||
7bb2947d | 32543 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 32544 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 32545 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 32546 | _ACEOF |
7bb2947d MB |
32547 | |
32548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
32549 | fi | |
32550 | ||
1e6feb95 | 32551 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 32552 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32553 | #define wxUSE_MENUS 1 |
e6cc62c6 | 32554 | _ACEOF |
10f2d63a | 32555 | |
1e6feb95 | 32556 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
32557 | fi |
32558 | ||
1e6feb95 | 32559 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 32560 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32561 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32562 | _ACEOF |
10f2d63a | 32563 | |
10f2d63a VZ |
32564 | fi |
32565 | ||
1e6feb95 | 32566 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 32567 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32568 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 32569 | _ACEOF |
10f2d63a | 32570 | |
10f2d63a VZ |
32571 | fi |
32572 | ||
3e44f09d | 32573 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 32574 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 32575 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 32576 | _ACEOF |
3e44f09d | 32577 | |
321d2b14 VZ |
32578 | if test "$TOOLKIT" = "MSW"; then |
32579 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
32580 | fi | |
32581 | ||
3e44f09d VZ |
32582 | fi |
32583 | ||
4cdb0ab0 | 32584 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 32585 | if test "$wxUSE_SOCKETS" != "yes"; then |
e6cc62c6 VS |
32586 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 |
32587 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
3954f9ca VS |
32588 | wxUSE_PROTOCOL=no |
32589 | fi | |
32590 | ||
32591 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 32592 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32593 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 32594 | _ACEOF |
4cdb0ab0 | 32595 | |
8284b0c5 | 32596 | |
3954f9ca | 32597 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
e6cc62c6 | 32598 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32599 | #define wxUSE_PROTOCOL_HTTP 1 |
e6cc62c6 | 32600 | _ACEOF |
4cdb0ab0 | 32601 | |
3954f9ca VS |
32602 | fi |
32603 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
e6cc62c6 | 32604 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32605 | #define wxUSE_PROTOCOL_FTP 1 |
e6cc62c6 | 32606 | _ACEOF |
4cdb0ab0 | 32607 | |
3954f9ca VS |
32608 | fi |
32609 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
e6cc62c6 | 32610 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 32611 | #define wxUSE_PROTOCOL_FILE 1 |
e6cc62c6 | 32612 | _ACEOF |
3954f9ca VS |
32613 | |
32614 | fi | |
4cdb0ab0 | 32615 | fi |
3954f9ca VS |
32616 | fi |
32617 | ||
32618 | if test "$wxUSE_URL" = "yes"; then | |
32619 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
e6cc62c6 VS |
32620 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 |
32621 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
3954f9ca VS |
32622 | wxUSE_URL=no |
32623 | fi | |
32624 | if test "$wxUSE_URL" = "yes"; then | |
e6cc62c6 | 32625 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 32626 | #define wxUSE_URL 1 |
e6cc62c6 | 32627 | _ACEOF |
4cdb0ab0 VS |
32628 | |
32629 | fi | |
32630 | fi | |
32631 | ||
10f2d63a | 32632 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 32633 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32634 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 32635 | _ACEOF |
10f2d63a VZ |
32636 | |
32637 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
32638 | fi | |
32639 | ||
32640 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32641 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32642 | #define wxUSE_HTML 1 |
e6cc62c6 | 32643 | _ACEOF |
10f2d63a | 32644 | |
c74dc163 | 32645 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
32646 | fi |
32647 | ||
32648 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 32649 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 32650 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 32651 | _ACEOF |
703e0a69 | 32652 | |
698dcdb6 VZ |
32653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
32654 | fi | |
32655 | ||
edae8572 | 32656 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 32657 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 32658 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 32659 | _ACEOF |
edae8572 VZ |
32660 | |
32661 | fi | |
32662 | ||
698dcdb6 | 32663 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 32664 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32665 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 32666 | _ACEOF |
698dcdb6 VZ |
32667 | |
32668 | fi | |
32669 | ||
32670 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 32671 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32672 | #define wxUSE_GIF 1 |
e6cc62c6 | 32673 | _ACEOF |
698dcdb6 VZ |
32674 | |
32675 | fi | |
32676 | ||
32677 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 32678 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32679 | #define wxUSE_PCX 1 |
e6cc62c6 | 32680 | _ACEOF |
698dcdb6 VZ |
32681 | |
32682 | fi | |
32683 | ||
4b6b4dfc | 32684 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 32685 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 32686 | #define wxUSE_IFF 1 |
e6cc62c6 | 32687 | _ACEOF |
4b6b4dfc RR |
32688 | |
32689 | fi | |
32690 | ||
698dcdb6 | 32691 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 32692 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32693 | #define wxUSE_PNM 1 |
e6cc62c6 | 32694 | _ACEOF |
698dcdb6 VZ |
32695 | |
32696 | fi | |
32697 | ||
32698 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 32699 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32700 | #define wxUSE_XPM 1 |
e6cc62c6 | 32701 | _ACEOF |
698dcdb6 VZ |
32702 | |
32703 | fi | |
32704 | ||
658974ae | 32705 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 32706 | cat >>confdefs.h <<\_ACEOF |
658974ae | 32707 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 32708 | _ACEOF |
658974ae VS |
32709 | |
32710 | fi | |
32711 | ||
a72a4bfa VS |
32712 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
32713 | LIBS=" -lunicows $LIBS" | |
32714 | fi | |
32715 | ||
8284b0c5 | 32716 | |
1e6feb95 | 32717 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 32718 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32719 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 32720 | _ACEOF |
1e6feb95 VZ |
32721 | |
32722 | fi | |
32723 | ||
32724 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 32725 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32726 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 32727 | _ACEOF |
1e6feb95 VZ |
32728 | |
32729 | fi | |
32730 | ||
32731 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 32732 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32733 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 32734 | _ACEOF |
1e6feb95 VZ |
32735 | |
32736 | fi | |
32737 | ||
8db37e06 | 32738 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 32739 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 32740 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 32741 | _ACEOF |
8db37e06 VZ |
32742 | |
32743 | fi | |
32744 | ||
1e6feb95 | 32745 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 32746 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32747 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 32748 | _ACEOF |
1e6feb95 VZ |
32749 | |
32750 | fi | |
32751 | ||
32752 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 32753 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
32754 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
32755 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 32756 | else |
e6cc62c6 | 32757 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32758 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 32759 | _ACEOF |
1e6feb95 | 32760 | |
1e6feb95 VZ |
32761 | fi |
32762 | fi | |
32763 | ||
32764 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 32765 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32766 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 32767 | _ACEOF |
1e6feb95 VZ |
32768 | |
32769 | fi | |
32770 | ||
32771 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 32772 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32773 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 32774 | _ACEOF |
1e6feb95 VZ |
32775 | |
32776 | fi | |
32777 | ||
32778 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
32779 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32780 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
32781 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 32782 | else |
e6cc62c6 | 32783 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32784 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 32785 | _ACEOF |
1e6feb95 VZ |
32786 | |
32787 | fi | |
32788 | fi | |
32789 | ||
cbca9943 | 32790 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 32791 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 32792 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 32793 | _ACEOF |
cbca9943 VZ |
32794 | |
32795 | fi | |
32796 | ||
1e6feb95 VZ |
32797 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
32798 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32799 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
32800 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 32801 | else |
e6cc62c6 | 32802 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32803 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 32804 | _ACEOF |
1e6feb95 | 32805 | |
7b4a847f RR |
32806 | fi |
32807 | fi | |
579d8138 | 32808 | |
8284b0c5 | 32809 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 32810 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 32811 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 32812 | _ACEOF |
8284b0c5 MB |
32813 | |
32814 | fi | |
32815 | ||
32816 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 32817 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 32818 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 32819 | _ACEOF |
8284b0c5 MB |
32820 | |
32821 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
32822 | fi | |
32823 | ||
32824 | ||
32825 | if test "$cross_compiling" = "yes"; then | |
32826 | OSINFO="\"$host\"" | |
32827 | else | |
32828 | OSINFO=`uname -s -r -m` | |
32829 | OSINFO="\"$OSINFO\"" | |
32830 | fi | |
32831 | ||
e6cc62c6 | 32832 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 32833 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 32834 | _ACEOF |
8284b0c5 MB |
32835 | |
32836 | ||
32837 | ||
32838 | if test "x$prefix" != "xNONE"; then | |
32839 | wxPREFIX=$prefix | |
32840 | else | |
32841 | wxPREFIX=$ac_default_prefix | |
32842 | fi | |
32843 | ||
e6cc62c6 | 32844 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 32845 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 32846 | _ACEOF |
8284b0c5 MB |
32847 | |
32848 | ||
e6cc62c6 | 32849 | top_builddir_wxconfig=`pwd` |
52c71b80 | 32850 | |
8284b0c5 MB |
32851 | |
32852 | ||
32853 | ||
32854 | if test "$wxUSE_MAC" = 1 ; then | |
32855 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
32856 | fi | |
ac0c4cc3 DE |
32857 | if test "$wxUSE_COCOA" = 1 ; then |
32858 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
32859 | fi | |
8284b0c5 MB |
32860 | |
32861 | ||
2b5f62a0 VZ |
32862 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
32863 | ||
32864 | have_cos=0 | |
32865 | have_floor=0 | |
e6cc62c6 | 32866 | |
2b5f62a0 VZ |
32867 | for ac_func in cos |
32868 | do | |
e6cc62c6 VS |
32869 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32870 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32871 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32872 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32874 | else | |
32875 | cat >conftest.$ac_ext <<_ACEOF | |
32876 | #line $LINENO "configure" | |
32877 | /* confdefs.h. */ | |
32878 | _ACEOF | |
32879 | cat confdefs.h >>conftest.$ac_ext | |
32880 | cat >>conftest.$ac_ext <<_ACEOF | |
32881 | /* end confdefs.h. */ | |
2b5f62a0 | 32882 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32883 | which can conflict with char $ac_func (); below. |
32884 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32885 | <limits.h> exists even on freestanding compilers. */ | |
32886 | #ifdef __STDC__ | |
32887 | # include <limits.h> | |
32888 | #else | |
32889 | # include <assert.h> | |
32890 | #endif | |
2b5f62a0 | 32891 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32892 | #ifdef __cplusplus |
32893 | extern "C" | |
32894 | { | |
32895 | #endif | |
2b5f62a0 | 32896 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32897 | builtin and then its argument prototype would still apply. */ |
32898 | char $ac_func (); | |
2b5f62a0 VZ |
32899 | /* The GNU C library defines this for functions which it implements |
32900 | to always fail with ENOSYS. Some functions are actually named | |
32901 | something starting with __ and the normal name is an alias. */ | |
32902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32903 | choke me | |
32904 | #else | |
e6cc62c6 VS |
32905 | char (*f) () = $ac_func; |
32906 | #endif | |
32907 | #ifdef __cplusplus | |
32908 | } | |
2b5f62a0 VZ |
32909 | #endif |
32910 | ||
e6cc62c6 VS |
32911 | int |
32912 | main () | |
32913 | { | |
32914 | return f != $ac_func; | |
32915 | ; | |
32916 | return 0; | |
32917 | } | |
32918 | _ACEOF | |
32919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32921 | (eval $ac_link) 2>&5 | |
32922 | ac_status=$? | |
32923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32924 | (exit $ac_status); } && | |
32925 | { ac_try='test -s conftest$ac_exeext' | |
32926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32927 | (eval $ac_try) 2>&5 | |
32928 | ac_status=$? | |
32929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32930 | (exit $ac_status); }; }; then | |
32931 | eval "$as_ac_var=yes" | |
32932 | else | |
32933 | echo "$as_me: failed program was:" >&5 | |
32934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32935 | ||
32936 | eval "$as_ac_var=no" | |
32937 | fi | |
32938 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32939 | fi | |
32940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32941 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32942 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32943 | cat >>confdefs.h <<_ACEOF | |
32944 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32945 | _ACEOF | |
2b5f62a0 | 32946 | have_cos=1 |
2b5f62a0 VZ |
32947 | fi |
32948 | done | |
32949 | ||
e6cc62c6 | 32950 | |
2b5f62a0 VZ |
32951 | for ac_func in floor |
32952 | do | |
e6cc62c6 VS |
32953 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32954 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32955 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32956 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32958 | else | |
32959 | cat >conftest.$ac_ext <<_ACEOF | |
32960 | #line $LINENO "configure" | |
32961 | /* confdefs.h. */ | |
32962 | _ACEOF | |
32963 | cat confdefs.h >>conftest.$ac_ext | |
32964 | cat >>conftest.$ac_ext <<_ACEOF | |
32965 | /* end confdefs.h. */ | |
2b5f62a0 | 32966 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32967 | which can conflict with char $ac_func (); below. |
32968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32969 | <limits.h> exists even on freestanding compilers. */ | |
32970 | #ifdef __STDC__ | |
32971 | # include <limits.h> | |
32972 | #else | |
32973 | # include <assert.h> | |
32974 | #endif | |
2b5f62a0 | 32975 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32976 | #ifdef __cplusplus |
32977 | extern "C" | |
32978 | { | |
32979 | #endif | |
2b5f62a0 | 32980 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32981 | builtin and then its argument prototype would still apply. */ |
32982 | char $ac_func (); | |
2b5f62a0 VZ |
32983 | /* The GNU C library defines this for functions which it implements |
32984 | to always fail with ENOSYS. Some functions are actually named | |
32985 | something starting with __ and the normal name is an alias. */ | |
32986 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32987 | choke me | |
32988 | #else | |
e6cc62c6 VS |
32989 | char (*f) () = $ac_func; |
32990 | #endif | |
32991 | #ifdef __cplusplus | |
32992 | } | |
2b5f62a0 VZ |
32993 | #endif |
32994 | ||
e6cc62c6 VS |
32995 | int |
32996 | main () | |
32997 | { | |
32998 | return f != $ac_func; | |
32999 | ; | |
33000 | return 0; | |
33001 | } | |
33002 | _ACEOF | |
33003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33005 | (eval $ac_link) 2>&5 | |
33006 | ac_status=$? | |
33007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33008 | (exit $ac_status); } && | |
33009 | { ac_try='test -s conftest$ac_exeext' | |
33010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33011 | (eval $ac_try) 2>&5 | |
33012 | ac_status=$? | |
33013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33014 | (exit $ac_status); }; }; then | |
33015 | eval "$as_ac_var=yes" | |
33016 | else | |
33017 | echo "$as_me: failed program was:" >&5 | |
33018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33019 | ||
33020 | eval "$as_ac_var=no" | |
33021 | fi | |
33022 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33023 | fi | |
33024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33026 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33027 | cat >>confdefs.h <<_ACEOF | |
33028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33029 | _ACEOF | |
2b5f62a0 | 33030 | have_floor=1 |
2b5f62a0 VZ |
33031 | fi |
33032 | done | |
33033 | ||
e6cc62c6 VS |
33034 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33035 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33036 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33037 | echo "$as_me:$LINENO: result: yes" >&5 |
33038 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33039 | else |
e6cc62c6 VS |
33040 | echo "$as_me:$LINENO: result: no" >&5 |
33041 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33042 | LIBS="$LIBS -lm" |
33043 | # use different functions to avoid configure caching | |
33044 | have_sin=0 | |
33045 | have_ceil=0 | |
e6cc62c6 VS |
33046 | |
33047 | for ac_func in sin | |
2b5f62a0 | 33048 | do |
e6cc62c6 VS |
33049 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33050 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33051 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33052 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33054 | else | |
33055 | cat >conftest.$ac_ext <<_ACEOF | |
33056 | #line $LINENO "configure" | |
33057 | /* confdefs.h. */ | |
33058 | _ACEOF | |
33059 | cat confdefs.h >>conftest.$ac_ext | |
33060 | cat >>conftest.$ac_ext <<_ACEOF | |
33061 | /* end confdefs.h. */ | |
2b5f62a0 | 33062 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33063 | which can conflict with char $ac_func (); below. |
33064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33065 | <limits.h> exists even on freestanding compilers. */ | |
33066 | #ifdef __STDC__ | |
33067 | # include <limits.h> | |
33068 | #else | |
33069 | # include <assert.h> | |
33070 | #endif | |
2b5f62a0 | 33071 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33072 | #ifdef __cplusplus |
33073 | extern "C" | |
33074 | { | |
33075 | #endif | |
2b5f62a0 | 33076 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33077 | builtin and then its argument prototype would still apply. */ |
33078 | char $ac_func (); | |
2b5f62a0 VZ |
33079 | /* The GNU C library defines this for functions which it implements |
33080 | to always fail with ENOSYS. Some functions are actually named | |
33081 | something starting with __ and the normal name is an alias. */ | |
33082 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33083 | choke me | |
33084 | #else | |
e6cc62c6 VS |
33085 | char (*f) () = $ac_func; |
33086 | #endif | |
33087 | #ifdef __cplusplus | |
33088 | } | |
2b5f62a0 VZ |
33089 | #endif |
33090 | ||
e6cc62c6 VS |
33091 | int |
33092 | main () | |
33093 | { | |
33094 | return f != $ac_func; | |
33095 | ; | |
33096 | return 0; | |
33097 | } | |
33098 | _ACEOF | |
33099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33101 | (eval $ac_link) 2>&5 | |
33102 | ac_status=$? | |
33103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33104 | (exit $ac_status); } && | |
33105 | { ac_try='test -s conftest$ac_exeext' | |
33106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33107 | (eval $ac_try) 2>&5 | |
33108 | ac_status=$? | |
33109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33110 | (exit $ac_status); }; }; then | |
33111 | eval "$as_ac_var=yes" | |
33112 | else | |
33113 | echo "$as_me: failed program was:" >&5 | |
33114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33115 | ||
33116 | eval "$as_ac_var=no" | |
33117 | fi | |
33118 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33119 | fi | |
33120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33121 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33122 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33123 | cat >>confdefs.h <<_ACEOF | |
33124 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33125 | _ACEOF | |
2b5f62a0 | 33126 | have_sin=1 |
2b5f62a0 VZ |
33127 | fi |
33128 | done | |
33129 | ||
e6cc62c6 VS |
33130 | |
33131 | for ac_func in ceil | |
2b5f62a0 | 33132 | do |
e6cc62c6 VS |
33133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33138 | else | |
33139 | cat >conftest.$ac_ext <<_ACEOF | |
33140 | #line $LINENO "configure" | |
33141 | /* confdefs.h. */ | |
33142 | _ACEOF | |
33143 | cat confdefs.h >>conftest.$ac_ext | |
33144 | cat >>conftest.$ac_ext <<_ACEOF | |
33145 | /* end confdefs.h. */ | |
2b5f62a0 | 33146 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33147 | which can conflict with char $ac_func (); below. |
33148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33149 | <limits.h> exists even on freestanding compilers. */ | |
33150 | #ifdef __STDC__ | |
33151 | # include <limits.h> | |
33152 | #else | |
33153 | # include <assert.h> | |
33154 | #endif | |
2b5f62a0 | 33155 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33156 | #ifdef __cplusplus |
33157 | extern "C" | |
33158 | { | |
33159 | #endif | |
2b5f62a0 | 33160 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33161 | builtin and then its argument prototype would still apply. */ |
33162 | char $ac_func (); | |
2b5f62a0 VZ |
33163 | /* The GNU C library defines this for functions which it implements |
33164 | to always fail with ENOSYS. Some functions are actually named | |
33165 | something starting with __ and the normal name is an alias. */ | |
33166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33167 | choke me | |
33168 | #else | |
e6cc62c6 VS |
33169 | char (*f) () = $ac_func; |
33170 | #endif | |
33171 | #ifdef __cplusplus | |
33172 | } | |
2b5f62a0 VZ |
33173 | #endif |
33174 | ||
e6cc62c6 VS |
33175 | int |
33176 | main () | |
33177 | { | |
33178 | return f != $ac_func; | |
33179 | ; | |
33180 | return 0; | |
33181 | } | |
33182 | _ACEOF | |
33183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33185 | (eval $ac_link) 2>&5 | |
33186 | ac_status=$? | |
33187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33188 | (exit $ac_status); } && | |
33189 | { ac_try='test -s conftest$ac_exeext' | |
33190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33191 | (eval $ac_try) 2>&5 | |
33192 | ac_status=$? | |
33193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33194 | (exit $ac_status); }; }; then | |
33195 | eval "$as_ac_var=yes" | |
33196 | else | |
33197 | echo "$as_me: failed program was:" >&5 | |
33198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33199 | ||
33200 | eval "$as_ac_var=no" | |
33201 | fi | |
33202 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33203 | fi | |
33204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33206 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33207 | cat >>confdefs.h <<_ACEOF | |
33208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33209 | _ACEOF | |
2b5f62a0 | 33210 | have_ceil=1 |
2b5f62a0 VZ |
33211 | fi |
33212 | done | |
33213 | ||
e6cc62c6 VS |
33214 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33215 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33216 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33217 | echo "$as_me:$LINENO: result: yes" >&5 |
33218 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33219 | else |
e6cc62c6 VS |
33220 | echo "$as_me:$LINENO: result: no" >&5 |
33221 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33222 | # not sure we should warn the user, crash, etc. |
33223 | fi | |
33224 | fi | |
8284b0c5 MB |
33225 | |
33226 | if test "$wxUSE_GUI" = "yes"; then | |
33227 | ||
e6cc62c6 | 33228 | |
8284b0c5 MB |
33229 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33230 | drawing dynamic erase event exec font image \ | |
1542ea39 | 33231 | minimal propsize rotate shaped widgets" |
b625909c VS |
33232 | |
33233 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33234 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33235 | fi | |
8284b0c5 MB |
33236 | else |
33237 | SAMPLES_SUBDIRS="console" | |
33238 | fi | |
33239 | ||
33240 | ||
e6cc62c6 | 33241 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33242 | -I\${top_srcdir}/include \ |
33243 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33244 | $TOOLKIT_INCLUDE" | |
33245 | ||
fddeb06b VS |
33246 | if test "$GXX" = yes ; then |
33247 | CXXWARNINGS="-Wall" | |
33248 | fi | |
33249 | ||
33250 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33251 | ||
95318f7d | 33252 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33253 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33254 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33255 | |
33256 | ||
fddeb06b | 33257 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 VS |
33258 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
33259 | if test "$wxUSE_GUI" = "yes"; then | |
33260 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33261 | fi | |
fddeb06b VS |
33262 | |
33263 | LDFLAGS="$LDFLAGS $PROFILE" | |
33264 | ||
8284b0c5 MB |
33265 | if test "$wxUSE_GTK" = 1; then |
33266 | WXCONFIG_INCLUDE= | |
33267 | else | |
33268 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33269 | fi | |
33270 | ||
fe0895cf VS |
33271 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33272 | WXUNIV=1 | |
33273 | else | |
33274 | WXUNIV=0 | |
8284b0c5 MB |
33275 | fi |
33276 | ||
8284b0c5 MB |
33277 | |
33278 | ||
33279 | ||
33280 | ||
33281 | ||
33282 | ||
33283 | ||
9747f85d VS |
33284 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33285 | MONOLITHIC=1 | |
33286 | else | |
33287 | MONOLITHIC=0 | |
33288 | fi | |
8284b0c5 | 33289 | |
8ee2dd05 VS |
33290 | VENDOR="custom" |
33291 | OFFICIAL_BUILD=0 | |
33292 | ||
33293 | ||
33294 | ||
8284b0c5 MB |
33295 | |
33296 | ||
33297 | ||
33298 | ||
33299 | ||
33300 | ||
c74dc163 | 33301 | |
fe0895cf | 33302 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33303 | |
33304 | ||
33305 | ||
33306 | ||
33307 | ||
fe0895cf | 33308 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33309 | |
33310 | if test -n "$ac_tool_prefix"; then | |
33311 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33312 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33315 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33317 | else |
fe0895cf VS |
33318 | if test -n "$RANLIB"; then |
33319 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33320 | else |
e6cc62c6 VS |
33321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33322 | for as_dir in $PATH | |
33323 | do | |
33324 | IFS=$as_save_IFS | |
33325 | test -z "$as_dir" && as_dir=. | |
33326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33328 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33330 | break 2 | |
33331 | fi | |
33332 | done | |
33333 | done | |
33334 | ||
10f2d63a | 33335 | fi |
10f2d63a | 33336 | fi |
e6cc62c6 | 33337 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33338 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33339 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33340 | echo "${ECHO_T}$RANLIB" >&6 | |
33341 | else | |
33342 | echo "$as_me:$LINENO: result: no" >&5 | |
33343 | echo "${ECHO_T}no" >&6 | |
33344 | fi | |
33345 | ||
33346 | fi | |
33347 | if test -z "$ac_cv_prog_RANLIB"; then | |
33348 | ac_ct_RANLIB=$RANLIB | |
33349 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33350 | set dummy ranlib; ac_word=$2 | |
33351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33353 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33355 | else | |
33356 | if test -n "$ac_ct_RANLIB"; then | |
33357 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33358 | else | |
33359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33360 | for as_dir in $PATH | |
33361 | do | |
33362 | IFS=$as_save_IFS | |
33363 | test -z "$as_dir" && as_dir=. | |
33364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33366 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33368 | break 2 | |
33369 | fi | |
33370 | done | |
33371 | done | |
33372 | ||
33373 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33374 | fi | |
33375 | fi | |
33376 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33377 | if test -n "$ac_ct_RANLIB"; then | |
33378 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33379 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 33380 | else |
e6cc62c6 VS |
33381 | echo "$as_me:$LINENO: result: no" >&5 |
33382 | echo "${ECHO_T}no" >&6 | |
33383 | fi | |
33384 | ||
33385 | RANLIB=$ac_ct_RANLIB | |
33386 | else | |
33387 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 33388 | fi |
665bbe97 | 33389 | |
fe0895cf VS |
33390 | # Find a good install program. We prefer a C program (faster), |
33391 | # so one script is as good as another. But avoid the broken or | |
33392 | # incompatible versions: | |
33393 | # SysV /etc/install, /usr/sbin/install | |
33394 | # SunOS /usr/etc/install | |
33395 | # IRIX /sbin/install | |
33396 | # AIX /bin/install | |
e6cc62c6 | 33397 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
33398 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
33399 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33400 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33401 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
33402 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
33403 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 33404 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
33405 | if test "${ac_cv_path_install+set}" = set; then |
33406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33407 | else | |
33408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33409 | for as_dir in $PATH | |
33410 | do | |
33411 | IFS=$as_save_IFS | |
33412 | test -z "$as_dir" && as_dir=. | |
33413 | # Account for people who put trailing slashes in PATH elements. | |
33414 | case $as_dir/ in | |
33415 | ./ | .// | /cC/* | \ | |
33416 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
33417 | /usr/ucb/* ) ;; | |
33418 | *) | |
33419 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
33420 | # Don't use installbsd from OSF since it installs stuff as root | |
33421 | # by default. | |
33422 | for ac_prog in ginstall scoinst install; do | |
33423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33424 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
33425 | if test $ac_prog = install && | |
33426 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33427 | # AIX install. It has an incompatible calling convention. | |
33428 | : | |
33429 | elif test $ac_prog = install && | |
33430 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33431 | # program-specific install script used by HP pwplus--don't use. | |
33432 | : | |
33433 | else | |
33434 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
33435 | break 3 | |
33436 | fi | |
33437 | fi | |
fe0895cf | 33438 | done |
e6cc62c6 VS |
33439 | done |
33440 | ;; | |
33441 | esac | |
33442 | done | |
33443 | ||
fe0895cf VS |
33444 | |
33445 | fi | |
33446 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 33447 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
33448 | else |
33449 | # As a last resort, use the slow shell script. We don't cache a | |
33450 | # path for INSTALL within a source directory, because that will | |
33451 | # break other packages using the cache if that directory is | |
33452 | # removed, or if the path is relative. | |
e6cc62c6 | 33453 | INSTALL=$ac_install_sh |
fe0895cf VS |
33454 | fi |
33455 | fi | |
e6cc62c6 VS |
33456 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
33457 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
33458 | |
33459 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
33460 | # It thinks the first close brace ends the variable substitution. | |
33461 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
33462 | ||
e6cc62c6 | 33463 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
33464 | |
33465 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
33466 | ||
e6cc62c6 VS |
33467 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
33468 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
33469 | LN_S=$as_ln_s | |
33470 | if test "$LN_S" = "ln -s"; then | |
33471 | echo "$as_me:$LINENO: result: yes" >&5 | |
33472 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 33473 | else |
e6cc62c6 VS |
33474 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
33475 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
33476 | fi |
33477 | ||
33478 | ||
e6cc62c6 VS |
33479 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
33480 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
33481 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
33482 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
33483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33484 | else |
e6cc62c6 | 33485 | cat >conftest.make <<\_ACEOF |
fe0895cf | 33486 | all: |
e6cc62c6 VS |
33487 | @echo 'ac_maketemp="$(MAKE)"' |
33488 | _ACEOF | |
fe0895cf | 33489 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 33490 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
33491 | if test -n "$ac_maketemp"; then |
33492 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33493 | else | |
33494 | eval ac_cv_prog_make_${ac_make}_set=no | |
33495 | fi | |
e6cc62c6 | 33496 | rm -f conftest.make |
fe0895cf VS |
33497 | fi |
33498 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
33499 | echo "$as_me:$LINENO: result: yes" >&5 |
33500 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
33501 | SET_MAKE= |
33502 | else | |
e6cc62c6 VS |
33503 | echo "$as_me:$LINENO: result: no" >&5 |
33504 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33505 | SET_MAKE="MAKE=${MAKE-make}" |
33506 | fi | |
33507 | ||
e6cc62c6 VS |
33508 | |
33509 | ||
fe0895cf VS |
33510 | if test "$build" != "$host" ; then |
33511 | AR=$host_alias-ar | |
33512 | STRIP=$host_alias-strip | |
33513 | else | |
33514 | # Extract the first word of "ar", so it can be a program name with args. | |
33515 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
33516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33518 | if test "${ac_cv_prog_AR+set}" = set; then | |
33519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33520 | else |
33521 | if test -n "$AR"; then | |
33522 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
33523 | else | |
e6cc62c6 VS |
33524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33525 | for as_dir in $PATH | |
33526 | do | |
33527 | IFS=$as_save_IFS | |
33528 | test -z "$as_dir" && as_dir=. | |
33529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33531 | ac_cv_prog_AR="ar" | |
33532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33533 | break 2 | |
33534 | fi | |
33535 | done | |
33536 | done | |
33537 | ||
fe0895cf VS |
33538 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
33539 | fi | |
33540 | fi | |
e6cc62c6 | 33541 | AR=$ac_cv_prog_AR |
fe0895cf | 33542 | if test -n "$AR"; then |
e6cc62c6 VS |
33543 | echo "$as_me:$LINENO: result: $AR" >&5 |
33544 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 33545 | else |
e6cc62c6 VS |
33546 | echo "$as_me:$LINENO: result: no" >&5 |
33547 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33548 | fi |
33549 | ||
33550 | # Extract the first word of "strip", so it can be a program name with args. | |
33551 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
33552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33554 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
33555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33556 | else |
33557 | if test -n "$STRIP"; then | |
33558 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33559 | else | |
e6cc62c6 VS |
33560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33561 | for as_dir in $PATH | |
33562 | do | |
33563 | IFS=$as_save_IFS | |
33564 | test -z "$as_dir" && as_dir=. | |
33565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33567 | ac_cv_prog_STRIP="strip" | |
33568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33569 | break 2 | |
33570 | fi | |
33571 | done | |
33572 | done | |
33573 | ||
fe0895cf VS |
33574 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
33575 | fi | |
33576 | fi | |
e6cc62c6 | 33577 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 33578 | if test -n "$STRIP"; then |
e6cc62c6 VS |
33579 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
33580 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 33581 | else |
e6cc62c6 VS |
33582 | echo "$as_me:$LINENO: result: no" >&5 |
33583 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33584 | fi |
33585 | ||
33586 | fi | |
33587 | ||
33588 | case ${host} in | |
33589 | *-hp-hpux* ) | |
33590 | INSTALL_DIR="mkdir" | |
33591 | ;; | |
33592 | *) INSTALL_DIR="$INSTALL -d" | |
33593 | ;; | |
33594 | esac | |
e6cc62c6 | 33595 | |
fe0895cf | 33596 | |
6b9d41a5 VS |
33597 | LDFLAGS_GUI= |
33598 | case ${host} in | |
33599 | *-*-cygwin* | *-*-mingw32* ) | |
33600 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
33601 | esac | |
33602 | ||
33603 | ||
fe0895cf | 33604 | fi |
e6cc62c6 VS |
33605 | |
33606 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
33607 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 33608 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 33609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 33610 | else |
e6cc62c6 | 33611 | |
fe0895cf VS |
33612 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
33613 | egrep -s GNU > /dev/null); then | |
33614 | bakefile_cv_prog_makeisgnu="yes" | |
33615 | else | |
33616 | bakefile_cv_prog_makeisgnu="no" | |
33617 | fi | |
fe0895cf | 33618 | |
e6cc62c6 | 33619 | fi |
49b0a3aa VS |
33620 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
33621 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
33622 | |
33623 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
33624 | IF_GNU_MAKE="" | |
33625 | else | |
33626 | IF_GNU_MAKE="#" | |
33627 | fi | |
fe0895cf | 33628 | |
e6cc62c6 VS |
33629 | |
33630 | ||
fe0895cf VS |
33631 | PLATFORM_UNIX=0 |
33632 | PLATFORM_WIN32=0 | |
33633 | PLATFORM_MSDOS=0 | |
33634 | PLATFORM_MAC=0 | |
33635 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 33636 | |
fe0895cf VS |
33637 | case "${host}" in |
33638 | *-*-cygwin* | *-*-mingw32* ) | |
33639 | PLATFORM_WIN32=1 | |
33640 | ;; | |
33641 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33642 | PLATFORM_MSDOS=1 | |
33643 | ;; | |
33644 | powerpc-*-darwin* ) | |
33645 | PLATFORM_MAC=1 | |
33646 | PLATFORM_MACOSX=1 | |
33647 | ;; | |
33648 | * ) | |
33649 | PLATFORM_UNIX=1 | |
33650 | ;; | |
33651 | esac | |
33652 | ||
fe0895cf | 33653 | |
e6cc62c6 VS |
33654 | |
33655 | ||
33656 | ||
33657 | ||
33658 | ||
33659 | ||
fe0895cf VS |
33660 | SO_SUFFIX="so" |
33661 | EXEEXT="" | |
33662 | DLLPREFIX=lib | |
e6cc62c6 | 33663 | |
fe0895cf VS |
33664 | case "${host}" in |
33665 | *-hp-hpux* ) | |
33666 | SO_SUFFIX="sl" | |
33667 | ;; | |
33668 | *-*-aix* ) | |
33669 | SO_SUFFIX="a" | |
33670 | ;; | |
33671 | *-*-cygwin* | *-*-mingw32* ) | |
33672 | SO_SUFFIX="dll" | |
33673 | EXEEXT=".exe" | |
33674 | DLLPREFIX="" | |
33675 | ;; | |
33676 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33677 | EXEEXT=".exe" | |
33678 | DLLPREFIX="" | |
33679 | ;; | |
33680 | powerpc-*-darwin* ) | |
33681 | SO_SUFFIX="dylib" | |
33682 | ;; | |
33683 | esac | |
33684 | ||
fe0895cf | 33685 | |
e6cc62c6 VS |
33686 | |
33687 | ||
33688 | ||
33689 | ||
fe0895cf VS |
33690 | SHARED_LD_CC="\$(CC) -shared -o" |
33691 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
33692 | ||
33693 | if test "x$GCC" = "xyes"; then | |
33694 | PIC_FLAG="-fPIC" | |
33695 | fi | |
33696 | ||
33697 | case "${host}" in | |
33698 | *-hp-hpux* ) | |
33699 | if test "x$GCC" = "xyes"; then | |
33700 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
33701 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
33702 | else | |
33703 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
33704 | ||
33705 | SHARED_LD_CC="${CC} -b -o" | |
33706 | SHARED_LD_CXX="${CXX} -b -o" | |
33707 | PIC_FLAG="+Z" | |
33708 | fi | |
33709 | ;; | |
33710 | ||
33711 | *-*-linux* ) | |
33712 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
33713 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
33714 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
33715 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
33716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33717 | else |
fe0895cf | 33718 | |
e6cc62c6 VS |
33719 | cat >conftest.$ac_ext <<_ACEOF |
33720 | #line $LINENO "configure" | |
33721 | /* confdefs.h. */ | |
33722 | _ACEOF | |
33723 | cat confdefs.h >>conftest.$ac_ext | |
33724 | cat >>conftest.$ac_ext <<_ACEOF | |
33725 | /* end confdefs.h. */ | |
33726 | ||
33727 | int | |
33728 | main () | |
33729 | { | |
fe0895cf VS |
33730 | |
33731 | #ifndef __INTEL_COMPILER | |
33732 | #error Not icc | |
33733 | #endif | |
e6cc62c6 VS |
33734 | |
33735 | ; | |
33736 | return 0; | |
33737 | } | |
33738 | _ACEOF | |
33739 | rm -f conftest.$ac_objext | |
33740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33741 | (eval $ac_compile) 2>&5 | |
33742 | ac_status=$? | |
33743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33744 | (exit $ac_status); } && | |
33745 | { ac_try='test -s conftest.$ac_objext' | |
33746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33747 | (eval $ac_try) 2>&5 | |
33748 | ac_status=$? | |
33749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33750 | (exit $ac_status); }; }; then | |
fe0895cf VS |
33751 | bakefile_cv_prog_icc=yes |
33752 | else | |
e6cc62c6 VS |
33753 | echo "$as_me: failed program was:" >&5 |
33754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33755 | ||
33756 | bakefile_cv_prog_icc=no | |
33757 | ||
fe0895cf | 33758 | fi |
e6cc62c6 | 33759 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 33760 | |
e6cc62c6 VS |
33761 | fi |
33762 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
33763 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
33764 | if test "$bakefile_cv_prog_icc" = "yes"; then |
33765 | PIC_FLAG="-KPIC" | |
33766 | fi | |
33767 | fi | |
33768 | ;; | |
33769 | ||
33770 | *-*-solaris2* ) | |
33771 | if test "x$GCC" != xyes ; then | |
33772 | SHARED_LD_CC="${CC} -G -o" | |
33773 | SHARED_LD_CXX="${CXX} -G -o" | |
33774 | PIC_FLAG="-KPIC" | |
33775 | fi | |
33776 | ;; | |
33777 | ||
33778 | *-*-darwin* ) | |
33779 | CFLAGS="$CFLAGS -fno-common" | |
33780 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
33781 | |
33782 | ||
fe0895cf VS |
33783 | cat <<EOF >shared-ld-sh |
33784 | #!/bin/sh | |
33785 | #----------------------------------------------------------------------------- | |
33786 | #-- Name: distrib/mac/shared-ld-sh | |
33787 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
33788 | #-- Author: Gilles Depeyrot | |
33789 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
33790 | #-- Licence: any use permitted | |
33791 | #----------------------------------------------------------------------------- | |
33792 | ||
33793 | verbose=0 | |
33794 | args="" | |
33795 | objects="" | |
33796 | ||
33797 | while test \${#} -gt 0; do | |
33798 | case \${1} in | |
33799 | ||
33800 | -v) | |
33801 | verbose=1 | |
33802 | ;; | |
33803 | ||
33804 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
33805 | # collect these options and values | |
33806 | args="\${args} \${1} \${2}" | |
33807 | shift | |
33808 | ;; | |
33809 | ||
33810 | -l*|-L*|-flat_namespace) | |
33811 | # collect these options | |
33812 | args="\${args} \${1}" | |
33813 | ;; | |
33814 | ||
33815 | -dynamiclib) | |
33816 | # skip these options | |
33817 | ;; | |
33818 | ||
33819 | -*) | |
33820 | echo "shared-ld: unhandled option '\${1}'" | |
33821 | exit 1 | |
33822 | ;; | |
33823 | ||
33824 | *.o | *.a) | |
33825 | # collect object files | |
33826 | objects="\${objects} \${1}" | |
33827 | ;; | |
33828 | ||
33829 | *) | |
33830 | echo "shared-ld: unhandled argument '\${1}'" | |
33831 | exit 1 | |
33832 | ;; | |
33833 | ||
33834 | esac | |
33835 | shift | |
33836 | done | |
33837 | ||
33838 | # | |
33839 | # Link one module containing all the others | |
33840 | # | |
33841 | if test \${verbose} = 1; then | |
33842 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
33843 | fi | |
33844 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
33845 | status=\$? | |
33846 | if test \${status} != 0; then | |
33847 | exit \${status} | |
33848 | fi | |
33849 | ||
33850 | # | |
33851 | # Link the shared library from the single module created | |
33852 | # | |
33853 | if test \${verbose} = 1; then | |
33854 | echo "cc -dynamiclib master.\$\$.o \${args}" | |
33855 | fi | |
33856 | c++ -dynamiclib master.\$\$.o \${args} | |
33857 | status=\$? | |
33858 | if test \${status} != 0; then | |
33859 | exit \${status} | |
33860 | fi | |
33861 | ||
33862 | # | |
33863 | # Remove intermediate module | |
33864 | # | |
33865 | rm -f master.\$\$.o | |
33866 | ||
33867 | exit 0 | |
33868 | EOF | |
33869 | chmod +x shared-ld-sh | |
33870 | ||
33871 | SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o" | |
33872 | SHARED_LD_CXX="$SHARED_LD_CC" | |
33873 | PIC_FLAG="-dynamic -fPIC" | |
33874 | ;; | |
33875 | ||
33876 | *-*-aix* ) | |
33877 | if test "x$GCC" != "xyes"; then | |
33878 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
33879 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
33880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33882 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
33883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33884 | else |
33885 | if test -n "$AIX_CXX_LD"; then | |
33886 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
33887 | else | |
e6cc62c6 VS |
33888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33889 | for as_dir in $PATH | |
33890 | do | |
33891 | IFS=$as_save_IFS | |
33892 | test -z "$as_dir" && as_dir=. | |
33893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33895 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
33896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33897 | break 2 | |
33898 | fi | |
33899 | done | |
33900 | done | |
33901 | ||
fe0895cf VS |
33902 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
33903 | fi | |
33904 | fi | |
e6cc62c6 | 33905 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 33906 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
33907 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
33908 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 33909 | else |
e6cc62c6 VS |
33910 | echo "$as_me:$LINENO: result: no" >&5 |
33911 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33912 | fi |
33913 | ||
33914 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
33915 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
33916 | fi | |
33917 | ;; | |
33918 | ||
33919 | *-*-beos* ) | |
33920 | SHARED_LD_CC="${LD} -shared -o" | |
33921 | SHARED_LD_CXX="${LD} -shared -o" | |
33922 | ;; | |
33923 | ||
33924 | *-*-irix* ) | |
33925 | if test "x$GCC" != "xyes"; then | |
33926 | PIC_FLAG="-KPIC" | |
33927 | fi | |
33928 | ;; | |
e6cc62c6 | 33929 | |
fe0895cf VS |
33930 | *-*-cygwin* | *-*-mingw32* ) |
33931 | PIC_FLAG="" | |
33932 | ;; | |
e6cc62c6 | 33933 | |
fe0895cf VS |
33934 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
33935 | *-*-sunos4* | \ | |
33936 | *-*-osf* | \ | |
33937 | *-*-dgux5* | \ | |
33938 | *-*-sysv5* ) | |
33939 | ;; | |
33940 | ||
33941 | *) | |
e6cc62c6 VS |
33942 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
33943 | echo "$as_me: error: unknown system type $host." >&2;} | |
33944 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
33945 | esac |
33946 | ||
fe0895cf | 33947 | |
e6cc62c6 VS |
33948 | |
33949 | ||
33950 | ||
33951 | ||
fe0895cf VS |
33952 | USE_SOVERSION=0 |
33953 | USE_SOVERLINUX=0 | |
33954 | USE_SOVERSOLARIS=0 | |
33955 | USE_SOSYMLINKS=0 | |
33956 | USE_MACVERSION=0 | |
33957 | SONAME_FLAG= | |
33958 | ||
33959 | case "${host}" in | |
33960 | *-*-linux* ) | |
33961 | SONAME_FLAG="-Wl,-soname," | |
33962 | USE_SOVERSION=1 | |
33963 | USE_SOVERLINUX=1 | |
33964 | USE_SOSYMLINKS=1 | |
33965 | ;; | |
33966 | ||
33967 | *-*-solaris2* ) | |
33968 | SONAME_FLAG="-h " | |
33969 | USE_SOVERSION=1 | |
33970 | USE_SOVERSOLARIS=1 | |
33971 | USE_SOSYMLINKS=1 | |
33972 | ;; | |
33973 | ||
33974 | *-*-darwin* ) | |
33975 | USE_MACVERSION=1 | |
33976 | USE_SOVERSION=1 | |
33977 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 33978 | ;; |
fe0895cf VS |
33979 | esac |
33980 | ||
fe0895cf | 33981 | |
e6cc62c6 VS |
33982 | |
33983 | ||
33984 | ||
33985 | ||
33986 | ||
33987 | ||
33988 | ||
49b0a3aa VS |
33989 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
33990 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
33991 | DEPS_TRACKING=0 | |
33992 | ||
fe0895cf | 33993 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
33994 | DEPSMODE=gcc |
33995 | DEPS_TRACKING=1 | |
33996 | echo "$as_me:$LINENO: result: gcc" >&5 | |
33997 | echo "${ECHO_T}gcc" >&6 | |
33998 | else | |
33999 | echo "$as_me:$LINENO: result: none" >&5 | |
34000 | echo "${ECHO_T}none" >&6 | |
34001 | fi | |
34002 | ||
34003 | if test $DEPS_TRACKING = 1 ; then | |
34004 | cat <<EOF >bk-deps | |
34005 | #!/bin/sh | |
34006 | ||
34007 | # This script is part of Bakefile (http://bakefile.sf.net) autoconf script. | |
34008 | # It is used to track C/C++ files dependencies in portable way. | |
34009 | # | |
34010 | # Permission is given to use this file in any way. | |
34011 | ||
34012 | DEPSMODE=$DEPSMODE | |
34013 | DEPSDIR=.deps | |
34014 | ||
34015 | mkdir -p \$DEPSDIR | |
34016 | ||
34017 | if test \$DEPSMODE = gcc ; then | |
34018 | \${*} -MMD | |
34019 | status=\${?} | |
34020 | if test \${status} != 0 ; then | |
34021 | exit \${status} | |
34022 | fi | |
34023 | # move created file to the location we want it in: | |
34024 | while test \${#} -gt 0; do | |
34025 | case "\${1}" in | |
34026 | -o ) | |
34027 | shift | |
34028 | objfile=\${1} | |
34029 | ;; | |
34030 | -* ) | |
34031 | ;; | |
34032 | * ) | |
34033 | srcfile=\${1} | |
34034 | ;; | |
34035 | esac | |
34036 | shift | |
34037 | done | |
34038 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34039 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34040 | if test -f \$depfile ; then |
34041 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34042 | rm -f \$depfile | |
34043 | else | |
34044 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34045 | if test -f \$depfile ; then | |
4c8b7f4b | 34046 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34047 | rm -f \$depfile |
34048 | fi | |
34049 | fi | |
49b0a3aa VS |
34050 | exit 0 |
34051 | else | |
34052 | \${*} | |
34053 | exit \${?} | |
34054 | fi | |
34055 | EOF | |
34056 | chmod +x bk-deps | |
fe0895cf | 34057 | fi |
fe0895cf | 34058 | |
e6cc62c6 VS |
34059 | |
34060 | ||
34061 | ||
fe0895cf VS |
34062 | RESCOMP= |
34063 | SETFILE= | |
34064 | ||
e6cc62c6 | 34065 | case ${host} in |
fe0895cf VS |
34066 | *-*-cygwin* | *-*-mingw32* ) |
34067 | if test "$build" != "$host" ; then | |
34068 | RESCOMP=$host_alias-windres | |
34069 | else | |
34070 | # Extract the first word of "windres", so it can be a program name with args. | |
34071 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34072 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34074 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34076 | else |
34077 | if test -n "$RESCOMP"; then | |
34078 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34079 | else | |
e6cc62c6 VS |
34080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34081 | for as_dir in $PATH | |
34082 | do | |
34083 | IFS=$as_save_IFS | |
34084 | test -z "$as_dir" && as_dir=. | |
34085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34086 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34087 | ac_cv_prog_RESCOMP="windres" | |
34088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34089 | break 2 | |
34090 | fi | |
34091 | done | |
34092 | done | |
34093 | ||
fe0895cf VS |
34094 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34095 | fi | |
34096 | fi | |
e6cc62c6 | 34097 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34098 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34099 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34100 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34101 | else |
e6cc62c6 VS |
34102 | echo "$as_me:$LINENO: result: no" >&5 |
34103 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34104 | fi |
34105 | ||
34106 | fi | |
34107 | ;; | |
e6cc62c6 | 34108 | |
fe0895cf VS |
34109 | *-*-darwin* ) |
34110 | # Extract the first word of "Rez", so it can be a program name with args. | |
34111 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34114 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34116 | else |
34117 | if test -n "$RESCOMP"; then | |
34118 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34119 | else | |
e6cc62c6 VS |
34120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34121 | for as_dir in $PATH | |
34122 | do | |
34123 | IFS=$as_save_IFS | |
34124 | test -z "$as_dir" && as_dir=. | |
34125 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34127 | ac_cv_prog_RESCOMP="Rez" | |
34128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34129 | break 2 | |
34130 | fi | |
34131 | done | |
34132 | done | |
34133 | ||
fe0895cf VS |
34134 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34135 | fi | |
34136 | fi | |
e6cc62c6 | 34137 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34138 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34139 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34140 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34141 | else |
e6cc62c6 VS |
34142 | echo "$as_me:$LINENO: result: no" >&5 |
34143 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34144 | fi |
34145 | ||
34146 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34147 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34148 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34150 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34152 | else |
34153 | if test -n "$SETFILE"; then | |
34154 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34155 | else | |
e6cc62c6 VS |
34156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34157 | for as_dir in $PATH | |
34158 | do | |
34159 | IFS=$as_save_IFS | |
34160 | test -z "$as_dir" && as_dir=. | |
34161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34163 | ac_cv_prog_SETFILE="SetFile" | |
34164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34165 | break 2 | |
34166 | fi | |
34167 | done | |
34168 | done | |
34169 | ||
fe0895cf VS |
34170 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34171 | fi | |
34172 | fi | |
e6cc62c6 | 34173 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34174 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34175 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34176 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34177 | else |
e6cc62c6 VS |
34178 | echo "$as_me:$LINENO: result: no" >&5 |
34179 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34180 | fi |
34181 | ||
34182 | ;; | |
34183 | esac | |
34184 | ||
fe0895cf VS |
34185 | |
34186 | ||
e6cc62c6 VS |
34187 | |
34188 | ||
34189 | ||
34190 | ||
d78c94f2 | 34191 | COND_BUILD_DEBUG="#" |
6f628073 | 34192 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34193 | COND_BUILD_DEBUG="" |
6f628073 VS |
34194 | fi |
34195 | ||
d78c94f2 | 34196 | COND_BUILD_RELEASE="#" |
6f628073 | 34197 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34198 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
34199 | fi |
34200 | ||
f95cd8fa VS |
34201 | COND_DEPS_TRACKING_0="#" |
34202 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34203 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
34204 | fi |
34205 | ||
8ee2dd05 VS |
34206 | COND_DEPS_TRACKING_1="#" |
34207 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34208 | COND_DEPS_TRACKING_1="" | |
34209 | fi | |
34210 | ||
6f628073 VS |
34211 | COND_MONOLITHIC_0="#" |
34212 | if test "x$MONOLITHIC" = "x0" ; then | |
34213 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
34214 | fi |
34215 | ||
6f628073 VS |
34216 | COND_MONOLITHIC_0_SHARED_0="#" |
34217 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
34218 | COND_MONOLITHIC_0_SHARED_0="" | |
34219 | fi | |
34220 | ||
34221 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
34222 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
34223 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 34224 | fi |
e6cc62c6 | 34225 | |
8ee2dd05 VS |
34226 | COND_MONOLITHIC_0_SHARED_1="#" |
34227 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
34228 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 34229 | fi |
e6cc62c6 | 34230 | |
6f628073 VS |
34231 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
34232 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
34233 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
34234 | fi | |
34235 | ||
3af038c0 VS |
34236 | COND_MONOLITHIC_1="#" |
34237 | if test "x$MONOLITHIC" = "x1" ; then | |
34238 | COND_MONOLITHIC_1="" | |
34239 | fi | |
34240 | ||
6f628073 VS |
34241 | COND_MONOLITHIC_1_SHARED_0="#" |
34242 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
34243 | COND_MONOLITHIC_1_SHARED_0="" | |
34244 | fi | |
34245 | ||
34246 | COND_MONOLITHIC_1_SHARED_1="#" | |
34247 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
34248 | COND_MONOLITHIC_1_SHARED_1="" | |
34249 | fi | |
34250 | ||
3af038c0 VS |
34251 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
34252 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34253 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
34254 | fi | |
34255 | ||
34256 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
34257 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
34258 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
34259 | fi | |
34260 | ||
6f628073 VS |
34261 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
34262 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
34263 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
34264 | fi | |
34265 | ||
3af038c0 VS |
34266 | COND_PLATFORM_MACOSX_1="#" |
34267 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
34268 | COND_PLATFORM_MACOSX_1="" | |
34269 | fi | |
34270 | ||
8ee2dd05 VS |
34271 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
34272 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
34273 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
34274 | fi | |
34275 | ||
3af038c0 VS |
34276 | COND_PLATFORM_UNIX_1="#" |
34277 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
34278 | COND_PLATFORM_UNIX_1="" | |
34279 | fi | |
34280 | ||
34281 | COND_PLATFORM_WIN32_0="#" | |
34282 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
34283 | COND_PLATFORM_WIN32_0="" | |
34284 | fi | |
34285 | ||
34286 | COND_PLATFORM_WIN32_1="#" | |
34287 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
34288 | COND_PLATFORM_WIN32_1="" | |
34289 | fi | |
34290 | ||
6f628073 VS |
34291 | COND_TOOLKIT_COCOA="#" |
34292 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
34293 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
34294 | fi |
34295 | ||
6f628073 VS |
34296 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
34297 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34298 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34299 | fi |
34300 | ||
6f628073 VS |
34301 | COND_TOOLKIT_GTK="#" |
34302 | if test "x$TOOLKIT" = "xGTK" ; then | |
34303 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
34304 | fi |
34305 | ||
6f628073 VS |
34306 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
34307 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
34308 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
34309 | fi |
34310 | ||
6f628073 VS |
34311 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
34312 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34313 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34314 | fi |
34315 | ||
6f628073 VS |
34316 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="#" |
34317 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34318 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1="" | |
8ee2dd05 VS |
34319 | fi |
34320 | ||
3af038c0 VS |
34321 | COND_TOOLKIT_MAC="#" |
34322 | if test "x$TOOLKIT" = "xMAC" ; then | |
34323 | COND_TOOLKIT_MAC="" | |
34324 | fi | |
34325 | ||
6f628073 VS |
34326 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
34327 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34328 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34329 | fi |
34330 | ||
6f628073 VS |
34331 | COND_TOOLKIT_MGL="#" |
34332 | if test "x$TOOLKIT" = "xMGL" ; then | |
34333 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
34334 | fi |
34335 | ||
6f628073 VS |
34336 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
34337 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
34338 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
34339 | fi |
34340 | ||
6f628073 VS |
34341 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="#" |
34342 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34343 | COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1="" | |
8ee2dd05 VS |
34344 | fi |
34345 | ||
6f628073 VS |
34346 | COND_TOOLKIT_MOTIF="#" |
34347 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
34348 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
34349 | fi |
34350 | ||
6f628073 VS |
34351 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
34352 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
34353 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 34354 | fi |
e6cc62c6 | 34355 | |
6f628073 VS |
34356 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
34357 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34358 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
34359 | fi |
34360 | ||
6f628073 VS |
34361 | COND_TOOLKIT_MSW="#" |
34362 | if test "x$TOOLKIT" = "xMSW" ; then | |
34363 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
34364 | fi |
34365 | ||
6f628073 VS |
34366 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
34367 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
34368 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 34369 | fi |
e6cc62c6 | 34370 | |
6f628073 VS |
34371 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
34372 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34373 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 34374 | fi |
e6cc62c6 | 34375 | |
6f628073 VS |
34376 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="#" |
34377 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34378 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1="" | |
f95cd8fa VS |
34379 | fi |
34380 | ||
6f628073 VS |
34381 | COND_TOOLKIT_OS2="#" |
34382 | if test "x$TOOLKIT" = "xOS2" ; then | |
34383 | COND_TOOLKIT_OS2="" | |
9747f85d VS |
34384 | fi |
34385 | ||
6f628073 VS |
34386 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" |
34387 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
34388 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
f95cd8fa VS |
34389 | fi |
34390 | ||
6f628073 VS |
34391 | COND_TOOLKIT_X11="#" |
34392 | if test "x$TOOLKIT" = "xX11" ; then | |
34393 | COND_TOOLKIT_X11="" | |
9747f85d VS |
34394 | fi |
34395 | ||
6f628073 VS |
34396 | COND_TOOLKIT_X11_USE_GUI_1="#" |
34397 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
34398 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
34399 | fi |
34400 | ||
8ee2dd05 VS |
34401 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="#" |
34402 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
34403 | COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1="" | |
f95cd8fa VS |
34404 | fi |
34405 | ||
3af038c0 VS |
34406 | COND_UNICODE_1="#" |
34407 | if test "x$UNICODE" = "x1" ; then | |
34408 | COND_UNICODE_1="" | |
34409 | fi | |
34410 | ||
34411 | COND_USE_GUI_0="#" | |
34412 | if test "x$USE_GUI" = "x0" ; then | |
34413 | COND_USE_GUI_0="" | |
34414 | fi | |
34415 | ||
34416 | COND_USE_GUI_1="#" | |
34417 | if test "x$USE_GUI" = "x1" ; then | |
34418 | COND_USE_GUI_1="" | |
34419 | fi | |
34420 | ||
e6cc62c6 | 34421 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
34422 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
34423 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 34424 | fi |
e6cc62c6 VS |
34425 | |
34426 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
34427 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
34428 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
34429 | fi |
34430 | ||
6f628073 VS |
34431 | COND_USE_SOSYMLINKS_1="#" |
34432 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
34433 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
34434 | fi |
34435 | ||
6f628073 VS |
34436 | COND_USE_SOVERLINUX_1="#" |
34437 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
34438 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
34439 | fi |
34440 | ||
6f628073 VS |
34441 | COND_USE_SOVERSION_0="#" |
34442 | if test "x$USE_SOVERSION" = "x0" ; then | |
34443 | COND_USE_SOVERSION_0="" | |
fddeb06b | 34444 | fi |
fe0895cf | 34445 | |
6f628073 VS |
34446 | COND_USE_SOVERSOLARIS_1="#" |
34447 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
34448 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 34449 | fi |
fe0895cf | 34450 | |
3af038c0 VS |
34451 | COND_WXUNIV_1="#" |
34452 | if test "x$WXUNIV" = "x1" ; then | |
34453 | COND_WXUNIV_1="" | |
34454 | fi | |
34455 | ||
02980527 VS |
34456 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
34457 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
34458 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
34459 | fi | |
34460 | ||
34461 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
34462 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
34463 | COND_WXUSE_LIBPNG_BUILTIN="" | |
34464 | fi | |
34465 | ||
34466 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
34467 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
34468 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
34469 | fi | |
34470 | ||
34471 | COND_WXUSE_ODBC_BUILTIN="#" | |
34472 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
34473 | COND_WXUSE_ODBC_BUILTIN="" | |
34474 | fi | |
34475 | ||
34476 | COND_WXUSE_REGEX_BUILTIN="#" | |
34477 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
34478 | COND_WXUSE_REGEX_BUILTIN="" | |
34479 | fi | |
34480 | ||
34481 | COND_WXUSE_ZLIB_BUILTIN="#" | |
34482 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
34483 | COND_WXUSE_ZLIB_BUILTIN="" | |
34484 | fi | |
34485 | ||
dc838d98 VS |
34486 | COND_PLATFORM_MAC_1="#" |
34487 | if test "x$PLATFORM_MAC" = "x1" ; then | |
34488 | COND_PLATFORM_MAC_1="" | |
34489 | fi | |
34490 | ||
34491 | COND_SHARED_1="#" | |
34492 | if test "x$SHARED" = "x1" ; then | |
34493 | COND_SHARED_1="" | |
34494 | fi | |
34495 | ||
34496 | COND_SHARED_0="#" | |
34497 | if test "x$SHARED" = "x0" ; then | |
34498 | COND_SHARED_0="" | |
34499 | fi | |
34500 | ||
fe0895cf | 34501 | |
fe0895cf | 34502 | |
fe0895cf | 34503 | |
fe0895cf VS |
34504 | |
34505 | ||
fddeb06b | 34506 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
34507 | |
34508 | ||
34509 | ||
34510 | ||
34511 | ||
34512 | ||
34513 | ||
34514 | ||
34515 | ||
34516 | ||
34517 | ||
34518 | ||
34519 | ||
34520 | ||
34521 | ||
34522 | ||
34523 | ||
34524 | ||
34525 | ||
34526 | ||
34527 | ||
34528 | ||
34529 | ||
34530 | ||
34531 | ||
34532 | ||
34533 | ||
34534 | ||
34535 | ||
34536 | ||
34537 | ||
34538 | ||
34539 | ||
34540 | ||
34541 | ||
34542 | ||
34543 | ||
34544 | ||
34545 | ||
34546 | ||
34547 | ||
34548 | ||
34549 | ||
34550 | ||
34551 | ||
34552 | ||
34553 | ||
34554 | ||
34555 | ||
34556 | ||
34557 | ||
34558 | ||
34559 | ||
34560 | ||
34561 | ||
34562 | ||
34563 | ||
34564 | ||
34565 | ||
34566 | ||
34567 | ||
34568 | ||
34569 | ||
34570 | ||
34571 | ||
34572 | ||
34573 | ||
34574 | ||
34575 | ||
34576 | ||
34577 | ||
34578 | ||
34579 | ||
34580 | ||
34581 | ||
34582 | ||
34583 | ||
34584 | ||
34585 | ||
34586 | ||
34587 | ||
34588 | ||
34589 | ||
34590 | ||
34591 | ||
34592 | ||
34593 | ||
34594 | ||
34595 | ||
34596 | ||
34597 | ||
34598 | ||
34599 | ||
34600 | ||
fe0895cf | 34601 | |
f0290fca VS |
34602 | |
34603 | ||
e6cc62c6 VS |
34604 | |
34605 | ||
34606 | ||
34607 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
34608 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34609 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34610 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34612 | else | |
34613 | cat >conftest.make <<\_ACEOF | |
34614 | all: | |
34615 | @echo 'ac_maketemp="$(MAKE)"' | |
34616 | _ACEOF | |
34617 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
34618 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
34619 | if test -n "$ac_maketemp"; then | |
34620 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34621 | else | |
34622 | eval ac_cv_prog_make_${ac_make}_set=no | |
34623 | fi | |
34624 | rm -f conftest.make | |
34625 | fi | |
34626 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
34627 | echo "$as_me:$LINENO: result: yes" >&5 | |
34628 | echo "${ECHO_T}yes" >&6 | |
34629 | SET_MAKE= | |
34630 | else | |
34631 | echo "$as_me:$LINENO: result: no" >&5 | |
34632 | echo "${ECHO_T}no" >&6 | |
34633 | SET_MAKE="MAKE=${MAKE-make}" | |
34634 | fi | |
34635 | ||
34636 | ||
34637 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
34638 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
34639 | fi | |
34640 | ||
34641 | ac_config_headers="$ac_config_headers setup.h" | |
34642 | ||
34643 | ||
81345eef | 34644 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
34645 | |
34646 | ||
34647 | ac_config_commands="$ac_config_commands default" | |
34648 | ||
34649 | ||
9de9b8f0 | 34650 | |
6c3e36af VZ |
34651 | if test "$wxUSE_GUI" = "yes"; then |
34652 | SUBDIRS="samples demos utils contrib" | |
34653 | else SUBDIRS="samples utils" | |
34654 | fi | |
e6cc62c6 | 34655 | |
166263e6 | 34656 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 34657 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 34658 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 VZ |
34659 | if test ${subdir} = "samples"; then |
34660 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
34661 | if test -d $srcdir/samples/$sample; then | |
34662 | makefiles="samples/$sample/Makefile.in $makefiles" | |
34663 | fi | |
34664 | done | |
34665 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
34666 | fi | |
6c3e36af VZ |
34667 | else if test ${subdir} = "samples"; then |
34668 | makefiles="samples/console/Makefile.in" | |
34669 | else makefiles="utils/HelpGen/Makefile.in \ | |
34670 | utils/HelpGen/src/Makefile.in \ | |
34671 | utils/makegen/Makefile.in" | |
34672 | fi | |
34673 | fi | |
34674 | ||
9747f85d VS |
34675 | for mkin in $makefiles ; do |
34676 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
34677 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 34678 | |
9747f85d VS |
34679 | done |
34680 | fi | |
34681 | done | |
e6cc62c6 | 34682 | |
9de9b8f0 | 34683 | |
e6cc62c6 VS |
34684 | cat >confcache <<\_ACEOF |
34685 | # This file is a shell script that caches the results of configure | |
34686 | # tests run on this system so they can be shared between configure | |
34687 | # scripts and configure runs, see configure's option --config-cache. | |
34688 | # It is not useful on other systems. If it contains results you don't | |
34689 | # want to keep, you may remove or edit it. | |
34690 | # | |
34691 | # config.status only pays attention to the cache file if you give it | |
34692 | # the --recheck option to rerun configure. | |
34693 | # | |
34694 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
34695 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
34696 | # following values. | |
34697 | ||
34698 | _ACEOF | |
34699 | ||
34700 | # The following way of writing the cache mishandles newlines in values, | |
34701 | # but we know of no workaround that is simple, portable, and efficient. | |
34702 | # So, don't put newlines in cache variables' values. | |
34703 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
34704 | # and sets the high bit in the cache file unless we assign to the vars. | |
34705 | { | |
34706 | (set) 2>&1 | | |
34707 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
34708 | *ac_space=\ *) | |
34709 | # `set' does not quote correctly, so add quotes (double-quote | |
34710 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
34711 | sed -n \ | |
34712 | "s/'/'\\\\''/g; | |
34713 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
34714 | ;; | |
34715 | *) | |
34716 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
34717 | sed -n \ | |
34718 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
34719 | ;; | |
34720 | esac; | |
34721 | } | | |
34722 | sed ' | |
34723 | t clear | |
34724 | : clear | |
34725 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
34726 | t end | |
34727 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
34728 | : end' >>confcache | |
34729 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
34730 | if test -w $cache_file; then | |
34731 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
34732 | cat confcache >$cache_file | |
34733 | else | |
34734 | echo "not updating unwritable cache $cache_file" | |
34735 | fi | |
34736 | fi | |
34737 | rm -f confcache | |
34738 | ||
34739 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
34740 | # Let make expand exec_prefix. | |
34741 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
34742 | ||
34743 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
34744 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
34745 | # trailing colons and then remove the whole line if VPATH becomes empty | |
34746 | # (actually we leave an empty line to preserve line numbers). | |
34747 | if test "x$srcdir" = x.; then | |
34748 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
34749 | s/:*\$(srcdir):*/:/; | |
34750 | s/:*\${srcdir}:*/:/; | |
34751 | s/:*@srcdir@:*/:/; | |
34752 | s/^\([^=]*=[ ]*\):*/\1/; | |
34753 | s/:*$//; | |
34754 | s/^[^=]*=[ ]*$//; | |
34755 | }' | |
34756 | fi | |
34757 | ||
34758 | DEFS=-DHAVE_CONFIG_H | |
34759 | ||
34760 | ac_libobjs= | |
34761 | ac_ltlibobjs= | |
34762 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
34763 | # 1. Remove the extension, and $U if already installed. | |
34764 | ac_i=`echo "$ac_i" | | |
34765 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
34766 | # 2. Add them. | |
34767 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
34768 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
34769 | done | |
34770 | LIBOBJS=$ac_libobjs | |
34771 | ||
34772 | LTLIBOBJS=$ac_ltlibobjs | |
34773 | ||
34774 | ||
34775 | ||
34776 | : ${CONFIG_STATUS=./config.status} | |
34777 | ac_clean_files_save=$ac_clean_files | |
34778 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
34779 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
34780 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
34781 | cat >$CONFIG_STATUS <<_ACEOF | |
34782 | #! $SHELL | |
34783 | # Generated by $as_me. | |
34784 | # Run this file to recreate the current configuration. | |
34785 | # Compiler output produced by configure, useful for debugging | |
34786 | # configure, is in config.log if it exists. | |
34787 | ||
34788 | debug=false | |
34789 | ac_cs_recheck=false | |
34790 | ac_cs_silent=false | |
34791 | SHELL=\${CONFIG_SHELL-$SHELL} | |
34792 | _ACEOF | |
34793 | ||
34794 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34795 | ## --------------------- ## | |
34796 | ## M4sh Initialization. ## | |
34797 | ## --------------------- ## | |
34798 | ||
34799 | # Be Bourne compatible | |
34800 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
34801 | emulate sh | |
34802 | NULLCMD=: | |
34803 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
34804 | # is contrary to our usage. Disable this feature. | |
34805 | alias -g '${1+"$@"}'='"$@"' | |
34806 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
34807 | set -o posix | |
34808 | fi | |
34809 | ||
34810 | # Support unset when possible. | |
34811 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
34812 | as_unset=unset | |
34813 | else | |
34814 | as_unset=false | |
34815 | fi | |
34816 | ||
34817 | ||
34818 | # Work around bugs in pre-3.0 UWIN ksh. | |
34819 | $as_unset ENV MAIL MAILPATH | |
34820 | PS1='$ ' | |
34821 | PS2='> ' | |
34822 | PS4='+ ' | |
34823 | ||
34824 | # NLS nuisances. | |
34825 | for as_var in \ | |
34826 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
34827 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
34828 | LC_TELEPHONE LC_TIME | |
34829 | do | |
34830 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
34831 | eval $as_var=C; export $as_var | |
34832 | else | |
34833 | $as_unset $as_var | |
34834 | fi | |
34835 | done | |
34836 | ||
34837 | # Required to use basename. | |
34838 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
34839 | as_expr=expr | |
34840 | else | |
34841 | as_expr=false | |
34842 | fi | |
34843 | ||
34844 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
34845 | as_basename=basename | |
34846 | else | |
34847 | as_basename=false | |
34848 | fi | |
34849 | ||
34850 | ||
34851 | # Name of the executable. | |
34852 | as_me=`$as_basename "$0" || | |
34853 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
34854 | X"$0" : 'X\(//\)$' \| \ | |
34855 | X"$0" : 'X\(/\)$' \| \ | |
34856 | . : '\(.\)' 2>/dev/null || | |
34857 | echo X/"$0" | | |
34858 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
34859 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
34860 | /^X\/\(\/\).*/{ s//\1/; q; } | |
34861 | s/.*/./; q'` | |
34862 | ||
34863 | ||
34864 | # PATH needs CR, and LINENO needs CR and PATH. | |
34865 | # Avoid depending upon Character Ranges. | |
34866 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34867 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
34868 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
34869 | as_cr_digits='0123456789' | |
34870 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
34871 | ||
34872 | # The user is always right. | |
34873 | if test "${PATH_SEPARATOR+set}" != set; then | |
34874 | echo "#! /bin/sh" >conf$$.sh | |
34875 | echo "exit 0" >>conf$$.sh | |
34876 | chmod +x conf$$.sh | |
34877 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
34878 | PATH_SEPARATOR=';' | |
34879 | else | |
34880 | PATH_SEPARATOR=: | |
34881 | fi | |
34882 | rm -f conf$$.sh | |
34883 | fi | |
34884 | ||
34885 | ||
34886 | as_lineno_1=$LINENO | |
34887 | as_lineno_2=$LINENO | |
34888 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34889 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34890 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
34891 | # Find who we are. Look in the path if we contain no path at all | |
34892 | # relative or not. | |
34893 | case $0 in | |
34894 | *[\\/]* ) as_myself=$0 ;; | |
34895 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34896 | for as_dir in $PATH | |
34897 | do | |
34898 | IFS=$as_save_IFS | |
34899 | test -z "$as_dir" && as_dir=. | |
34900 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
34901 | done | |
34902 | ||
34903 | ;; | |
34904 | esac | |
34905 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
34906 | # in which case we are not to be found in the path. | |
34907 | if test "x$as_myself" = x; then | |
34908 | as_myself=$0 | |
34909 | fi | |
34910 | if test ! -f "$as_myself"; then | |
34911 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
34912 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
34913 | { (exit 1); exit 1; }; } | |
34914 | fi | |
34915 | case $CONFIG_SHELL in | |
34916 | '') | |
34917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34918 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
34919 | do | |
34920 | IFS=$as_save_IFS | |
34921 | test -z "$as_dir" && as_dir=. | |
34922 | for as_base in sh bash ksh sh5; do | |
34923 | case $as_dir in | |
34924 | /*) | |
34925 | if ("$as_dir/$as_base" -c ' | |
34926 | as_lineno_1=$LINENO | |
34927 | as_lineno_2=$LINENO | |
34928 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34929 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34930 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
34931 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
34932 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
34933 | CONFIG_SHELL=$as_dir/$as_base | |
34934 | export CONFIG_SHELL | |
34935 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
34936 | fi;; | |
34937 | esac | |
34938 | done | |
34939 | done | |
34940 | ;; | |
34941 | esac | |
34942 | ||
34943 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
34944 | # uniformly replaced by the line number. The first 'sed' inserts a | |
34945 | # line-number line before each line; the second 'sed' does the real | |
34946 | # work. The second script uses 'N' to pair each line-number line | |
34947 | # with the numbered line, and appends trailing '-' during | |
34948 | # substitution so that $LINENO is not a special case at line end. | |
34949 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
34950 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
34951 | sed '=' <$as_myself | | |
34952 | sed ' | |
34953 | N | |
34954 | s,$,-, | |
34955 | : loop | |
34956 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
34957 | t loop | |
34958 | s,-$,, | |
34959 | s,^['$as_cr_digits']*\n,, | |
34960 | ' >$as_me.lineno && | |
34961 | chmod +x $as_me.lineno || | |
34962 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
34963 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
34964 | { (exit 1); exit 1; }; } | |
34965 | ||
34966 | # Don't try to exec as it changes $[0], causing all sort of problems | |
34967 | # (the dirname of $[0] is not the place where we might find the | |
34968 | # original and so on. Autoconf is especially sensible to this). | |
34969 | . ./$as_me.lineno | |
34970 | # Exit status is that of the last command. | |
34971 | exit | |
34972 | } | |
34973 | ||
34974 | ||
34975 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
34976 | *c*,-n*) ECHO_N= ECHO_C=' | |
34977 | ' ECHO_T=' ' ;; | |
34978 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
34979 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
34980 | esac | |
34981 | ||
34982 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
34983 | as_expr=expr | |
34984 | else | |
34985 | as_expr=false | |
34986 | fi | |
34987 | ||
34988 | rm -f conf$$ conf$$.exe conf$$.file | |
34989 | echo >conf$$.file | |
34990 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
34991 | # We could just check for DJGPP; but this test a) works b) is more generic | |
34992 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
34993 | if test -f conf$$.exe; then | |
34994 | # Don't use ln at all; we don't have any links | |
34995 | as_ln_s='cp -p' | |
34996 | else | |
34997 | as_ln_s='ln -s' | |
34998 | fi | |
34999 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35000 | as_ln_s=ln | |
35001 | else | |
35002 | as_ln_s='cp -p' | |
35003 | fi | |
35004 | rm -f conf$$ conf$$.exe conf$$.file | |
35005 | ||
35006 | if mkdir -p . 2>/dev/null; then | |
35007 | as_mkdir_p=: | |
35008 | else | |
35009 | as_mkdir_p=false | |
35010 | fi | |
35011 | ||
35012 | as_executable_p="test -f" | |
35013 | ||
35014 | # Sed expression to map a string onto a valid CPP name. | |
35015 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35016 | ||
35017 | # Sed expression to map a string onto a valid variable name. | |
35018 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35019 | ||
35020 | ||
35021 | # IFS | |
35022 | # We need space, tab and new line, in precisely that order. | |
35023 | as_nl=' | |
35024 | ' | |
35025 | IFS=" $as_nl" | |
35026 | ||
35027 | # CDPATH. | |
35028 | $as_unset CDPATH | |
35029 | ||
35030 | exec 6>&1 | |
35031 | ||
35032 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35033 | # report actual input values of CONFIG_FILES etc. instead of their | |
35034 | # values after options handling. Logging --version etc. is OK. | |
35035 | exec 5>>config.log | |
35036 | { | |
35037 | echo | |
35038 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35039 | ## Running $as_me. ## | |
35040 | _ASBOX | |
35041 | } >&5 | |
35042 | cat >&5 <<_CSEOF | |
35043 | ||
35044 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35045 | generated by GNU Autoconf 2.57. Invocation command line was | |
35046 | ||
35047 | CONFIG_FILES = $CONFIG_FILES | |
35048 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35049 | CONFIG_LINKS = $CONFIG_LINKS | |
35050 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35051 | $ $0 $@ | |
35052 | ||
35053 | _CSEOF | |
35054 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35055 | echo >&5 | |
35056 | _ACEOF | |
35057 | ||
35058 | # Files that config.status was made for. | |
35059 | if test -n "$ac_config_files"; then | |
35060 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35061 | fi | |
35062 | ||
35063 | if test -n "$ac_config_headers"; then | |
35064 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35065 | fi | |
35066 | ||
35067 | if test -n "$ac_config_links"; then | |
35068 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35069 | fi | |
35070 | ||
35071 | if test -n "$ac_config_commands"; then | |
35072 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35073 | fi | |
35074 | ||
35075 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35076 | ||
35077 | ac_cs_usage="\ | |
35078 | \`$as_me' instantiates files from templates according to the | |
35079 | current configuration. | |
35080 | ||
35081 | Usage: $0 [OPTIONS] [FILE]... | |
35082 | ||
35083 | -h, --help print this help, then exit | |
35084 | -V, --version print version number, then exit | |
35085 | -q, --quiet do not print progress messages | |
35086 | -d, --debug don't remove temporary files | |
35087 | --recheck update $as_me by reconfiguring in the same conditions | |
35088 | --file=FILE[:TEMPLATE] | |
35089 | instantiate the configuration file FILE | |
35090 | --header=FILE[:TEMPLATE] | |
35091 | instantiate the configuration header FILE | |
35092 | ||
35093 | Configuration files: | |
35094 | $config_files | |
35095 | ||
35096 | Configuration headers: | |
35097 | $config_headers | |
35098 | ||
35099 | Configuration commands: | |
35100 | $config_commands | |
35101 | ||
35102 | Report bugs to <bug-autoconf@gnu.org>." | |
35103 | _ACEOF | |
35104 | ||
35105 | cat >>$CONFIG_STATUS <<_ACEOF | |
35106 | ac_cs_version="\\ | |
35107 | wxWindows config.status 2.5.0 | |
35108 | configured by $0, generated by GNU Autoconf 2.57, | |
35109 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35110 | ||
35111 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35112 | Free Software Foundation, Inc. | |
35113 | This config.status script is free software; the Free Software Foundation | |
35114 | gives unlimited permission to copy, distribute and modify it." | |
35115 | srcdir=$srcdir | |
35116 | INSTALL="$INSTALL" | |
35117 | _ACEOF | |
35118 | ||
35119 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35120 | # If no file are specified by the user, then we need to provide default | |
35121 | # value. By we need to know if files were specified by the user. | |
35122 | ac_need_defaults=: | |
35123 | while test $# != 0 | |
35124 | do | |
35125 | case $1 in | |
35126 | --*=*) | |
35127 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35128 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35129 | ac_shift=: | |
35130 | ;; | |
35131 | -*) | |
35132 | ac_option=$1 | |
35133 | ac_optarg=$2 | |
35134 | ac_shift=shift | |
35135 | ;; | |
35136 | *) # This is not an option, so the user has probably given explicit | |
35137 | # arguments. | |
35138 | ac_option=$1 | |
35139 | ac_need_defaults=false;; | |
35140 | esac | |
35141 | ||
35142 | case $ac_option in | |
35143 | # Handling of the options. | |
35144 | _ACEOF | |
35145 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35146 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35147 | ac_cs_recheck=: ;; | |
35148 | --version | --vers* | -V ) | |
35149 | echo "$ac_cs_version"; exit 0 ;; | |
35150 | --he | --h) | |
35151 | # Conflict between --help and --header | |
35152 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35153 | Try \`$0 --help' for more information." >&5 | |
35154 | echo "$as_me: error: ambiguous option: $1 | |
35155 | Try \`$0 --help' for more information." >&2;} | |
35156 | { (exit 1); exit 1; }; };; | |
35157 | --help | --hel | -h ) | |
35158 | echo "$ac_cs_usage"; exit 0 ;; | |
35159 | --debug | --d* | -d ) | |
35160 | debug=: ;; | |
35161 | --file | --fil | --fi | --f ) | |
35162 | $ac_shift | |
35163 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35164 | ac_need_defaults=false;; | |
35165 | --header | --heade | --head | --hea ) | |
35166 | $ac_shift | |
35167 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35168 | ac_need_defaults=false;; | |
35169 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35170 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35171 | ac_cs_silent=: ;; | |
35172 | ||
35173 | # This is an error. | |
35174 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35175 | Try \`$0 --help' for more information." >&5 | |
35176 | echo "$as_me: error: unrecognized option: $1 | |
35177 | Try \`$0 --help' for more information." >&2;} | |
35178 | { (exit 1); exit 1; }; } ;; | |
35179 | ||
35180 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35181 | ||
35182 | esac | |
35183 | shift | |
35184 | done | |
35185 | ||
35186 | ac_configure_extra_args= | |
35187 | ||
35188 | if $ac_cs_silent; then | |
35189 | exec 6>/dev/null | |
35190 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
35191 | fi |
35192 | ||
e6cc62c6 VS |
35193 | _ACEOF |
35194 | cat >>$CONFIG_STATUS <<_ACEOF | |
35195 | if \$ac_cs_recheck; then | |
35196 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35197 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
35198 | fi |
35199 | ||
e6cc62c6 | 35200 | _ACEOF |
fe0895cf | 35201 | |
e6cc62c6 | 35202 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 35203 | # |
e6cc62c6 | 35204 | # INIT-COMMANDS section. |
10f2d63a | 35205 | # |
10f2d63a | 35206 | |
a0b9e27f | 35207 | |
e6cc62c6 VS |
35208 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
35209 | LN_S="${LN_S}" | |
10f2d63a | 35210 | |
10f2d63a | 35211 | |
10f2d63a | 35212 | |
e6cc62c6 | 35213 | _ACEOF |
8284b0c5 | 35214 | |
52127426 | 35215 | |
247f5006 | 35216 | |
e6cc62c6 VS |
35217 | cat >>$CONFIG_STATUS <<\_ACEOF |
35218 | for ac_config_target in $ac_config_targets | |
247f5006 | 35219 | do |
e6cc62c6 VS |
35220 | case "$ac_config_target" in |
35221 | # Handling of arguments. | |
81345eef VZ |
35222 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
35223 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
35224 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 35225 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
35226 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
35227 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
35228 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
35229 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35230 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
35231 | esac |
35232 | done | |
35233 | ||
e6cc62c6 VS |
35234 | # If the user did not use the arguments to specify the items to instantiate, |
35235 | # then the envvar interface is used. Set only those that are not. | |
35236 | # We use the long form for the default assignment because of an extremely | |
35237 | # bizarre bug on SunOS 4.1.3. | |
35238 | if $ac_need_defaults; then | |
35239 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
35240 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
35241 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
35242 | fi | |
35243 | ||
35244 | # Have a temporary directory for convenience. Make it in the build tree | |
35245 | # simply because there is no reason to put it here, and in addition, | |
35246 | # creating and moving files from /tmp can sometimes cause problems. | |
35247 | # Create a temporary directory, and hook for its removal unless debugging. | |
35248 | $debug || | |
35249 | { | |
35250 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
35251 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
35252 | } | |
247f5006 | 35253 | |
e6cc62c6 | 35254 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 35255 | |
e6cc62c6 VS |
35256 | { |
35257 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
35258 | test -n "$tmp" && test -d "$tmp" | |
35259 | } || | |
35260 | { | |
35261 | tmp=./confstat$$-$RANDOM | |
35262 | (umask 077 && mkdir $tmp) | |
35263 | } || | |
35264 | { | |
35265 | echo "$me: cannot create a temporary directory in ." >&2 | |
35266 | { (exit 1); exit 1; } | |
35267 | } | |
35268 | ||
35269 | _ACEOF | |
35270 | ||
35271 | cat >>$CONFIG_STATUS <<_ACEOF | |
35272 | ||
35273 | # | |
35274 | # CONFIG_FILES section. | |
35275 | # | |
247f5006 | 35276 | |
e6cc62c6 VS |
35277 | # No need to generate the scripts if there are no CONFIG_FILES. |
35278 | # This happens for instance when ./config.status config.h | |
35279 | if test -n "\$CONFIG_FILES"; then | |
35280 | # Protect against being on the right side of a sed subst in config.status. | |
35281 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
35282 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
35283 | s,@SHELL@,$SHELL,;t t | |
35284 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35285 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
35286 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
35287 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
35288 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
35289 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
35290 | s,@exec_prefix@,$exec_prefix,;t t | |
35291 | s,@prefix@,$prefix,;t t | |
35292 | s,@program_transform_name@,$program_transform_name,;t t | |
35293 | s,@bindir@,$bindir,;t t | |
35294 | s,@sbindir@,$sbindir,;t t | |
35295 | s,@libexecdir@,$libexecdir,;t t | |
35296 | s,@datadir@,$datadir,;t t | |
35297 | s,@sysconfdir@,$sysconfdir,;t t | |
35298 | s,@sharedstatedir@,$sharedstatedir,;t t | |
35299 | s,@localstatedir@,$localstatedir,;t t | |
35300 | s,@libdir@,$libdir,;t t | |
35301 | s,@includedir@,$includedir,;t t | |
35302 | s,@oldincludedir@,$oldincludedir,;t t | |
35303 | s,@infodir@,$infodir,;t t | |
35304 | s,@mandir@,$mandir,;t t | |
35305 | s,@build_alias@,$build_alias,;t t | |
35306 | s,@host_alias@,$host_alias,;t t | |
35307 | s,@target_alias@,$target_alias,;t t | |
35308 | s,@DEFS@,$DEFS,;t t | |
35309 | s,@ECHO_C@,$ECHO_C,;t t | |
35310 | s,@ECHO_N@,$ECHO_N,;t t | |
35311 | s,@ECHO_T@,$ECHO_T,;t t | |
35312 | s,@LIBS@,$LIBS,;t t | |
35313 | s,@build@,$build,;t t | |
35314 | s,@build_cpu@,$build_cpu,;t t | |
35315 | s,@build_vendor@,$build_vendor,;t t | |
35316 | s,@build_os@,$build_os,;t t | |
35317 | s,@host@,$host,;t t | |
35318 | s,@host_cpu@,$host_cpu,;t t | |
35319 | s,@host_vendor@,$host_vendor,;t t | |
35320 | s,@host_os@,$host_os,;t t | |
35321 | s,@target@,$target,;t t | |
35322 | s,@target_cpu@,$target_cpu,;t t | |
35323 | s,@target_vendor@,$target_vendor,;t t | |
35324 | s,@target_os@,$target_os,;t t | |
35325 | s,@CC@,$CC,;t t | |
35326 | s,@CFLAGS@,$CFLAGS,;t t | |
35327 | s,@LDFLAGS@,$LDFLAGS,;t t | |
35328 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
35329 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
35330 | s,@EXEEXT@,$EXEEXT,;t t | |
35331 | s,@OBJEXT@,$OBJEXT,;t t | |
35332 | s,@CPP@,$CPP,;t t | |
35333 | s,@EGREP@,$EGREP,;t t | |
35334 | s,@CXX@,$CXX,;t t | |
35335 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
35336 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
35337 | s,@RANLIB@,$RANLIB,;t t | |
35338 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
35339 | s,@AR@,$AR,;t t | |
35340 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
35341 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
35342 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
35343 | s,@STRIP@,$STRIP,;t t | |
35344 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
35345 | s,@YACC@,$YACC,;t t | |
35346 | s,@LEX@,$LEX,;t t | |
35347 | s,@LEXLIB@,$LEXLIB,;t t | |
35348 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
35349 | s,@LN_S@,$LN_S,;t t | |
35350 | s,@CXXCPP@,$CXXCPP,;t t | |
35351 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
35352 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
35353 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
35354 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
35355 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
35356 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
35357 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
35358 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
35359 | s,@X_LIBS@,$X_LIBS,;t t | |
35360 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
35361 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
35362 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
35363 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
35364 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
35365 | s,@RESCOMP@,$RESCOMP,;t t |
35366 | s,@DEREZ@,$DEREZ,;t t | |
35367 | s,@SETFILE@,$SETFILE,;t t | |
35368 | s,@LIBICONV@,$LIBICONV,;t t | |
35369 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
35370 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
35371 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
35372 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
35373 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
35374 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
35375 | s,@VENDOR@,$VENDOR,;t t |
35376 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
35377 | s,@WXUNIV@,$WXUNIV,;t t |
35378 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
35379 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
c74dc163 | 35380 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
e6cc62c6 VS |
35381 | s,@UNICODE@,$UNICODE,;t t |
35382 | s,@BUILD@,$BUILD,;t t | |
35383 | s,@SHARED@,$SHARED,;t t | |
35384 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
35385 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
35386 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
35387 | s,@SET_MAKE@,$SET_MAKE,;t t | |
35388 | s,@MAKE_SET@,$MAKE_SET,;t t | |
35389 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 35390 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
35391 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
35392 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
35393 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
35394 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
35395 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
35396 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
35397 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
dc838d98 | 35398 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
35399 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
35400 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
35401 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
35402 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
35403 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
35404 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
35405 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
35406 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
35407 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 35408 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
d78c94f2 VS |
35409 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
35410 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
f95cd8fa | 35411 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 35412 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
6f628073 | 35413 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
35414 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
35415 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8ee2dd05 | 35416 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 35417 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
3af038c0 | 35418 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
35419 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
35420 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
35421 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
35422 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 35423 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 35424 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
8ee2dd05 | 35425 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
3af038c0 VS |
35426 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
35427 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
35428 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
6f628073 VS |
35429 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
35430 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
35431 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
35432 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 VS |
35433 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
35434 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_1,;t t | |
3af038c0 | 35435 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
6f628073 VS |
35436 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
35437 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
35438 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
35439 | s,@COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MGL_USE_GUI_1_WXUNIV_1,;t t | |
35440 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
35441 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
35442 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 35443 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
35444 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
35445 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 35446 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_1,;t t |
6f628073 VS |
35447 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t |
35448 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t | |
35449 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
35450 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
8ee2dd05 | 35451 | s,@COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1@,$COND_TOOLKIT_X11_USE_GUI_1_WXUNIV_1,;t t |
3af038c0 VS |
35452 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
35453 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
35454 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
35455 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
35456 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
6f628073 VS |
35457 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
35458 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
35459 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
35460 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 VS |
35461 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
35462 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
35463 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
35464 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
35465 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
35466 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
35467 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
dc838d98 VS |
35468 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
35469 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
35470 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
e6cc62c6 VS |
35471 | s,@LEX_STEM@,$LEX_STEM,;t t |
35472 | s,@PATH_IFS@,$PATH_IFS,;t t | |
35473 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
35474 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
35475 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
35476 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
35477 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
35478 | s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t | |
35479 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
35480 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
35481 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
35482 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
35483 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
35484 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
35485 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
35486 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
35487 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
35488 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
35489 | s,@WX_ALL@,$WX_ALL,;t t | |
35490 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
35491 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
35492 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
35493 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
35494 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
35495 | s,@USE_GUI@,$USE_GUI,;t t | |
35496 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
35497 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
35498 | s,@TOOLKIT@,$TOOLKIT,;t t | |
35499 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
35500 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
35501 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
35502 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
35503 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
35504 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
35505 | s,@cross_compiling@,$cross_compiling,;t t | |
35506 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
35507 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
35508 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
35509 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
35510 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
35511 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
35512 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
f0290fca VS |
35513 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
35514 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
35515 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
35516 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
35517 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
35518 | s,@GUIDIST@,$GUIDIST,;t t | |
35519 | s,@PORT_FILES@,$PORT_FILES,;t t | |
35520 | s,@DISTDIR@,$DISTDIR,;t t | |
35521 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
35522 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
35523 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
35524 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
35525 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
35526 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
35527 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
35528 | s,@RESFLAGS@,$RESFLAGS,;t t | |
35529 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
35530 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
35531 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
35532 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
35533 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
35534 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
35535 | s,@MACSETFILE@,$MACSETFILE,;t t | |
35536 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
35537 | s,@GCC@,$GCC,;t t | |
35538 | s,@DLLTOOL@,$DLLTOOL,;t t | |
35539 | s,@AS@,$AS,;t t | |
35540 | s,@NM@,$NM,;t t | |
35541 | s,@LD@,$LD,;t t | |
35542 | s,@MAKEINFO@,$MAKEINFO,;t t | |
35543 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
35544 | s,@ESD_LINK@,$ESD_LINK,;t t | |
35545 | s,@LIBOBJS@,$LIBOBJS,;t t | |
35546 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
35547 | CEOF |
35548 | ||
e6cc62c6 VS |
35549 | _ACEOF |
35550 | ||
35551 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35552 | # Split the substitutions into bite-sized pieces for seds with | |
35553 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
35554 | ac_max_sed_lines=48 | |
35555 | ac_sed_frag=1 # Number of current file. | |
35556 | ac_beg=1 # First line for current file. | |
35557 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
35558 | ac_more_lines=: | |
35559 | ac_sed_cmds= | |
35560 | while $ac_more_lines; do | |
35561 | if test $ac_beg -gt 1; then | |
35562 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 35563 | else |
e6cc62c6 VS |
35564 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
35565 | fi | |
35566 | if test ! -s $tmp/subs.frag; then | |
35567 | ac_more_lines=false | |
35568 | else | |
35569 | # The purpose of the label and of the branching condition is to | |
35570 | # speed up the sed processing (if there are no `@' at all, there | |
35571 | # is no need to browse any of the substitutions). | |
35572 | # These are the two extra sed commands mentioned above. | |
35573 | (echo ':t | |
35574 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
35575 | if test -z "$ac_sed_cmds"; then | |
35576 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
35577 | else | |
35578 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
35579 | fi | |
35580 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
35581 | ac_beg=$ac_end | |
35582 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 35583 | fi |
e6cc62c6 VS |
35584 | done |
35585 | if test -z "$ac_sed_cmds"; then | |
35586 | ac_sed_cmds=cat | |
10f2d63a | 35587 | fi |
e6cc62c6 | 35588 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 35589 | |
e6cc62c6 VS |
35590 | _ACEOF |
35591 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35592 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 35593 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
35594 | case $ac_file in |
35595 | - | *:- | *:-:* ) # input from stdin | |
35596 | cat >$tmp/stdin | |
35597 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35598 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35599 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35600 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35601 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 35602 | esac |
247f5006 | 35603 | |
e6cc62c6 VS |
35604 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
35605 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35606 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35607 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35608 | X"$ac_file" : 'X\(//\)$' \| \ | |
35609 | X"$ac_file" : 'X\(/\)' \| \ | |
35610 | . : '\(.\)' 2>/dev/null || | |
35611 | echo X"$ac_file" | | |
35612 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35613 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35614 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35615 | /^X\(\/\).*/{ s//\1/; q; } | |
35616 | s/.*/./; q'` | |
35617 | { if $as_mkdir_p; then | |
35618 | mkdir -p "$ac_dir" | |
a0b9e27f | 35619 | else |
e6cc62c6 VS |
35620 | as_dir="$ac_dir" |
35621 | as_dirs= | |
35622 | while test ! -d "$as_dir"; do | |
35623 | as_dirs="$as_dir $as_dirs" | |
35624 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35625 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35626 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35627 | X"$as_dir" : 'X\(//\)$' \| \ | |
35628 | X"$as_dir" : 'X\(/\)' \| \ | |
35629 | . : '\(.\)' 2>/dev/null || | |
35630 | echo X"$as_dir" | | |
35631 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35632 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35633 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35634 | /^X\(\/\).*/{ s//\1/; q; } | |
35635 | s/.*/./; q'` | |
35636 | done | |
35637 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35638 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35639 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35640 | { (exit 1); exit 1; }; }; } | |
35641 | ||
35642 | ac_builddir=. | |
35643 | ||
35644 | if test "$ac_dir" != .; then | |
35645 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
35646 | # A "../" for each directory in $ac_dir_suffix. | |
35647 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
35648 | else | |
35649 | ac_dir_suffix= ac_top_builddir= | |
35650 | fi | |
247f5006 | 35651 | |
e6cc62c6 VS |
35652 | case $srcdir in |
35653 | .) # No --srcdir option. We are building in place. | |
35654 | ac_srcdir=. | |
35655 | if test -z "$ac_top_builddir"; then | |
35656 | ac_top_srcdir=. | |
35657 | else | |
35658 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
35659 | fi ;; | |
35660 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
35661 | ac_srcdir=$srcdir$ac_dir_suffix; | |
35662 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 35663 | *) # Relative path. |
e6cc62c6 VS |
35664 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
35665 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
35666 | esac | |
35667 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
35668 | # absolute. | |
35669 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
35670 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
35671 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
35672 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 35673 | |
247f5006 | 35674 | |
e6cc62c6 VS |
35675 | case $INSTALL in |
35676 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
35677 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 35678 | esac |
247f5006 | 35679 | |
e6cc62c6 VS |
35680 | if test x"$ac_file" != x-; then |
35681 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
35682 | echo "$as_me: creating $ac_file" >&6;} | |
35683 | rm -f "$ac_file" | |
35684 | fi | |
35685 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35686 | # use $as_me), people would be surprised to read: | |
35687 | # /* config.h. Generated by config.status. */ | |
35688 | if test x"$ac_file" = x-; then | |
35689 | configure_input= | |
35690 | else | |
35691 | configure_input="$ac_file. " | |
35692 | fi | |
35693 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35694 | sed 's,.*/,,'` by configure." | |
35695 | ||
35696 | # First look for the input files in the build tree, otherwise in the | |
35697 | # src tree. | |
35698 | ac_file_inputs=`IFS=: | |
35699 | for f in $ac_file_in; do | |
35700 | case $f in | |
35701 | -) echo $tmp/stdin ;; | |
35702 | [\\/$]*) | |
35703 | # Absolute (can't be DOS-style, as IFS=:) | |
35704 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35705 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35706 | { (exit 1); exit 1; }; } | |
35707 | echo $f;; | |
35708 | *) # Relative | |
35709 | if test -f "$f"; then | |
35710 | # Build tree | |
35711 | echo $f | |
35712 | elif test -f "$srcdir/$f"; then | |
35713 | # Source tree | |
35714 | echo $srcdir/$f | |
35715 | else | |
35716 | # /dev/null tree | |
35717 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35718 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35719 | { (exit 1); exit 1; }; } | |
35720 | fi;; | |
35721 | esac | |
35722 | done` || { (exit 1); exit 1; } | |
35723 | _ACEOF | |
35724 | cat >>$CONFIG_STATUS <<_ACEOF | |
35725 | sed "$ac_vpsub | |
35726 | $extrasub | |
35727 | _ACEOF | |
35728 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35729 | :t | |
35730 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
35731 | s,@configure_input@,$configure_input,;t t | |
35732 | s,@srcdir@,$ac_srcdir,;t t | |
35733 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
35734 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
35735 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
35736 | s,@builddir@,$ac_builddir,;t t | |
35737 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
35738 | s,@top_builddir@,$ac_top_builddir,;t t | |
35739 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
35740 | s,@INSTALL@,$ac_INSTALL,;t t | |
35741 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
35742 | rm -f $tmp/stdin | |
35743 | if test x"$ac_file" != x-; then | |
35744 | mv $tmp/out $ac_file | |
35745 | else | |
35746 | cat $tmp/out | |
35747 | rm -f $tmp/out | |
35748 | fi | |
35749 | ||
35750 | done | |
35751 | _ACEOF | |
35752 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35753 | ||
35754 | # | |
35755 | # CONFIG_HEADER section. | |
35756 | # | |
10f2d63a VZ |
35757 | |
35758 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
35759 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
35760 | # | |
35761 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
35762 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
35763 | ac_dB='[ ].*$,\1#\2' | |
35764 | ac_dC=' ' | |
35765 | ac_dD=',;t' | |
35766 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35767 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
35768 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 35769 | ac_uC=' ' |
e6cc62c6 VS |
35770 | ac_uD=',;t' |
35771 | ||
35772 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 35773 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
35774 | case $ac_file in |
35775 | - | *:- | *:-:* ) # input from stdin | |
35776 | cat >$tmp/stdin | |
35777 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35778 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35779 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35780 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35781 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
35782 | esac |
35783 | ||
e6cc62c6 VS |
35784 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
35785 | echo "$as_me: creating $ac_file" >&6;} | |
35786 | ||
35787 | # First look for the input files in the build tree, otherwise in the | |
35788 | # src tree. | |
35789 | ac_file_inputs=`IFS=: | |
35790 | for f in $ac_file_in; do | |
35791 | case $f in | |
35792 | -) echo $tmp/stdin ;; | |
35793 | [\\/$]*) | |
35794 | # Absolute (can't be DOS-style, as IFS=:) | |
35795 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35796 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35797 | { (exit 1); exit 1; }; } | |
35798 | echo $f;; | |
35799 | *) # Relative | |
35800 | if test -f "$f"; then | |
35801 | # Build tree | |
35802 | echo $f | |
35803 | elif test -f "$srcdir/$f"; then | |
35804 | # Source tree | |
35805 | echo $srcdir/$f | |
35806 | else | |
35807 | # /dev/null tree | |
35808 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35809 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35810 | { (exit 1); exit 1; }; } | |
35811 | fi;; | |
35812 | esac | |
35813 | done` || { (exit 1); exit 1; } | |
35814 | # Remove the trailing spaces. | |
35815 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
35816 | ||
35817 | _ACEOF | |
35818 | ||
35819 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
35820 | # `conftest.undefs', that substitutes the proper values into | |
35821 | # config.h.in to produce config.h. The first handles `#define' | |
35822 | # templates, and the second `#undef' templates. | |
35823 | # And first: Protect against being on the right side of a sed subst in | |
35824 | # config.status. Protect against being in an unquoted here document | |
35825 | # in config.status. | |
35826 | rm -f conftest.defines conftest.undefs | |
35827 | # Using a here document instead of a string reduces the quoting nightmare. | |
35828 | # Putting comments in sed scripts is not portable. | |
35829 | # | |
35830 | # `end' is used to avoid that the second main sed command (meant for | |
35831 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
35832 | # See the Autoconf documentation for `clear'. | |
35833 | cat >confdef2sed.sed <<\_ACEOF | |
35834 | s/[\\&,]/\\&/g | |
35835 | s,[\\$`],\\&,g | |
35836 | t clear | |
35837 | : clear | |
35838 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
35839 | t end | |
35840 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
35841 | : end | |
35842 | _ACEOF | |
35843 | # If some macros were called several times there might be several times | |
35844 | # the same #defines, which is useless. Nevertheless, we may not want to | |
35845 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
35846 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
35847 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
35848 | rm -f confdef2sed.sed | |
10f2d63a VZ |
35849 | |
35850 | # This sed command replaces #undef with comments. This is necessary, for | |
35851 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
35852 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
35853 | cat >>conftest.undefs <<\_ACEOF |
35854 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
35855 | _ACEOF | |
35856 | ||
35857 | # Break up conftest.defines because some shells have a limit on the size | |
35858 | # of here documents, and old seds have small limits too (100 cmds). | |
35859 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35860 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
35861 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
35862 | echo ' :' >>$CONFIG_STATUS | |
35863 | rm -f conftest.tail | |
35864 | while grep . conftest.defines >/dev/null | |
35865 | do | |
35866 | # Write a limited-size here document to $tmp/defines.sed. | |
35867 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
35868 | # Speed up: don't consider the non `#define' lines. | |
35869 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
35870 | # Work around the forget-to-reset-the-flag bug. | |
35871 | echo 't clr' >>$CONFIG_STATUS | |
35872 | echo ': clr' >>$CONFIG_STATUS | |
35873 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
35874 | echo 'CEOF | |
35875 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
35876 | rm -f $tmp/in | |
35877 | mv $tmp/out $tmp/in | |
35878 | ' >>$CONFIG_STATUS | |
35879 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
35880 | rm -f conftest.defines | |
35881 | mv conftest.tail conftest.defines | |
35882 | done | |
35883 | rm -f conftest.defines | |
35884 | echo ' fi # grep' >>$CONFIG_STATUS | |
35885 | echo >>$CONFIG_STATUS | |
10f2d63a | 35886 | |
e6cc62c6 VS |
35887 | # Break up conftest.undefs because some shells have a limit on the size |
35888 | # of here documents, and old seds have small limits too (100 cmds). | |
35889 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 35890 | rm -f conftest.tail |
e6cc62c6 | 35891 | while grep . conftest.undefs >/dev/null |
10f2d63a | 35892 | do |
e6cc62c6 VS |
35893 | # Write a limited-size here document to $tmp/undefs.sed. |
35894 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
35895 | # Speed up: don't consider the non `#undef' | |
35896 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
35897 | # Work around the forget-to-reset-the-flag bug. | |
35898 | echo 't clr' >>$CONFIG_STATUS | |
35899 | echo ': clr' >>$CONFIG_STATUS | |
35900 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 35901 | echo 'CEOF |
e6cc62c6 VS |
35902 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
35903 | rm -f $tmp/in | |
35904 | mv $tmp/out $tmp/in | |
35905 | ' >>$CONFIG_STATUS | |
35906 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
35907 | rm -f conftest.undefs | |
35908 | mv conftest.tail conftest.undefs | |
10f2d63a | 35909 | done |
e6cc62c6 VS |
35910 | rm -f conftest.undefs |
35911 | ||
35912 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35913 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35914 | # use $as_me), people would be surprised to read: | |
35915 | # /* config.h. Generated by config.status. */ | |
35916 | if test x"$ac_file" = x-; then | |
35917 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 35918 | else |
e6cc62c6 | 35919 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 35920 | fi |
e6cc62c6 VS |
35921 | cat $tmp/in >>$tmp/config.h |
35922 | rm -f $tmp/in | |
35923 | if test x"$ac_file" != x-; then | |
35924 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
35925 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
35926 | echo "$as_me: $ac_file is unchanged" >&6;} | |
35927 | else | |
35928 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35929 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35930 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35931 | X"$ac_file" : 'X\(//\)$' \| \ | |
35932 | X"$ac_file" : 'X\(/\)' \| \ | |
35933 | . : '\(.\)' 2>/dev/null || | |
35934 | echo X"$ac_file" | | |
35935 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35936 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35937 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35938 | /^X\(\/\).*/{ s//\1/; q; } | |
35939 | s/.*/./; q'` | |
35940 | { if $as_mkdir_p; then | |
35941 | mkdir -p "$ac_dir" | |
35942 | else | |
35943 | as_dir="$ac_dir" | |
35944 | as_dirs= | |
35945 | while test ! -d "$as_dir"; do | |
35946 | as_dirs="$as_dir $as_dirs" | |
35947 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35948 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35949 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35950 | X"$as_dir" : 'X\(//\)$' \| \ | |
35951 | X"$as_dir" : 'X\(/\)' \| \ | |
35952 | . : '\(.\)' 2>/dev/null || | |
35953 | echo X"$as_dir" | | |
35954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35955 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35956 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35957 | /^X\(\/\).*/{ s//\1/; q; } | |
35958 | s/.*/./; q'` | |
35959 | done | |
35960 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35961 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35962 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35963 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 35964 | |
e6cc62c6 VS |
35965 | rm -f $ac_file |
35966 | mv $tmp/config.h $ac_file | |
35967 | fi | |
35968 | else | |
35969 | cat $tmp/config.h | |
35970 | rm -f $tmp/config.h | |
35971 | fi | |
35972 | done | |
35973 | _ACEOF | |
35974 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 35975 | |
e6cc62c6 VS |
35976 | # |
35977 | # CONFIG_COMMANDS section. | |
35978 | # | |
35979 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
35980 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
35981 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35982 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
35983 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35984 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
35985 | X"$ac_dest" : 'X\(//\)$' \| \ | |
35986 | X"$ac_dest" : 'X\(/\)' \| \ | |
35987 | . : '\(.\)' 2>/dev/null || | |
35988 | echo X"$ac_dest" | | |
35989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35990 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35991 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35992 | /^X\(\/\).*/{ s//\1/; q; } | |
35993 | s/.*/./; q'` | |
35994 | ac_builddir=. | |
35995 | ||
35996 | if test "$ac_dir" != .; then | |
35997 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
35998 | # A "../" for each directory in $ac_dir_suffix. | |
35999 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36000 | else | |
36001 | ac_dir_suffix= ac_top_builddir= | |
36002 | fi | |
36003 | ||
36004 | case $srcdir in | |
36005 | .) # No --srcdir option. We are building in place. | |
36006 | ac_srcdir=. | |
36007 | if test -z "$ac_top_builddir"; then | |
36008 | ac_top_srcdir=. | |
36009 | else | |
36010 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36011 | fi ;; | |
36012 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36013 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36014 | ac_top_srcdir=$srcdir ;; | |
36015 | *) # Relative path. | |
36016 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36017 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36018 | esac | |
36019 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36020 | # absolute. | |
36021 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36022 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36023 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36024 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36025 | ||
36026 | ||
36027 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36028 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36029 | case $ac_dest in | |
36030 | default ) | |
652d930d | 36031 | if test ! -h wx-config; then |
991a5759 | 36032 | chmod +x wx-config |
3a922bb4 RL |
36033 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36034 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36035 | fi |
665bbe97 | 36036 | |
00cf1208 RR |
36037 | if test ! -d lib; then |
36038 | mkdir lib | |
36039 | fi | |
36040 | if test ! -d lib/wx; then | |
36041 | mkdir lib/wx | |
36042 | fi | |
36043 | if test ! -d lib/wx/include; then | |
36044 | mkdir lib/wx/include | |
36045 | fi | |
3a922bb4 RL |
36046 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36047 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36048 | fi |
3a922bb4 RL |
36049 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36050 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36051 | fi |
36052 | if test -f setup.h; then | |
3a922bb4 | 36053 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36054 | fi |
e6cc62c6 VS |
36055 | ;; |
36056 | esac | |
36057 | done | |
36058 | _ACEOF | |
2224580a | 36059 | |
e6cc62c6 | 36060 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36061 | |
e6cc62c6 VS |
36062 | { (exit 0); exit 0; } |
36063 | _ACEOF | |
36064 | chmod +x $CONFIG_STATUS | |
36065 | ac_clean_files=$ac_clean_files_save | |
36066 | ||
36067 | ||
36068 | # configure is writing to config.log, and then calls config.status. | |
36069 | # config.status does its own redirection, appending to config.log. | |
36070 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36071 | # by configure, so config.status won't be able to write to it; its | |
36072 | # output is simply discarded. So we exec the FD to /dev/null, | |
36073 | # effectively closing config.log, so it can be properly (re)opened and | |
36074 | # appended to by config.status. When coming back to configure, we | |
36075 | # need to make the FD available again. | |
36076 | if test "$no_create" != yes; then | |
36077 | ac_cs_success=: | |
36078 | ac_config_status_args= | |
36079 | test "$silent" = yes && | |
36080 | ac_config_status_args="$ac_config_status_args --quiet" | |
36081 | exec 5>/dev/null | |
36082 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36083 | exec 5>>config.log | |
36084 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36085 | # would make configure fail if this is the last instruction. | |
36086 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
36087 | fi |
36088 | ||
8284b0c5 | 36089 | |
2b5f62a0 VZ |
36090 | echo |
36091 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
36092 | echo "" | |
36093 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 36094 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
36095 | |
36096 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
36097 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
36098 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
36099 | ||
0c98a14e GD |
36100 | echo " What level of wxWindows compatibility should be enabled?" |
36101 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
36102 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
36103 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 36104 | |
2b5f62a0 VZ |
36105 | echo " Which libraries should wxWindows use?" |
36106 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
36107 | echo " png ${wxUSE_LIBPNG-none}" | |
36108 | echo " regex ${wxUSE_REGEX}" | |
36109 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
36110 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 36111 | echo " odbc ${wxUSE_ODBC}" |
2b5f62a0 VZ |
36112 | |
36113 | echo "" | |
36114 |